From 2fad2e56da039fcf1009d3bc71dec0ac586ad270 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 13 Dec 2022 01:15:39 +0000 Subject: [PATCH 1/2] feat: added node groups API protos PiperOrigin-RevId: 494840237 Source-Link: https://github.com/googleapis/googleapis/commit/28449ecb37897d665a5a2c6d916133b1863f0966 Source-Link: https://github.com/googleapis/googleapis-gen/commit/786b1889c07c4ead16093d375c59455a0576ee25 Copy-Tag: eyJwIjoiamF2YS1kYXRhcHJvYy8uT3dsQm90LnlhbWwiLCJoIjoiNzg2YjE4ODljMDdjNGVhZDE2MDkzZDM3NWM1OTQ1NWEwNTc2ZWUyNSJ9 --- .../v1/AutoscalingPolicyServiceGrpc.java | 889 ----- .../dataproc/v1/BatchControllerGrpc.java | 694 ---- .../dataproc/v1/ClusterControllerGrpc.java | 1205 ------ .../cloud/dataproc/v1/JobControllerGrpc.java | 1023 ------ .../dataproc/v1/AutoscalingPoliciesProto.java | 314 -- .../v1/AuxiliaryServicesConfigOrBuilder.java | 108 - .../cloud/dataproc/v1/BatchesProto.java | 357 -- .../cloud/dataproc/v1/ClustersProto.java | 971 ----- .../ConfidentialInstanceConfigOrBuilder.java | 38 - .../v1/DataprocMetricConfigOrBuilder.java | 87 - .../v1/DeleteBatchRequestOrBuilder.java | 54 - .../v1/EnvironmentConfigOrBuilder.java | 107 - .../dataproc/v1/GetBatchRequestOrBuilder.java | 54 - .../dataproc/v1/IdentityConfigOrBuilder.java | 94 - .../dataproc/v1/JobSchedulingOrBuilder.java | 68 - .../google/cloud/dataproc/v1/JobsProto.java | 825 ----- .../dataproc/v1/MetastoreConfigOrBuilder.java | 58 - .../cloud/dataproc/v1/OperationsProto.java | 172 - .../google/cloud/dataproc/v1/SharedProto.java | 358 -- ...dateAutoscalingPolicyRequestOrBuilder.java | 66 - ...pdateWorkflowTemplateRequestOrBuilder.java | 69 - .../dataproc/v1/WorkflowGraphOrBuilder.java | 87 - .../dataproc/v1/WorkflowTemplatesProto.java | 640 ---- .../v1/AutoscalingPolicyServiceClient.java | 0 .../v1/AutoscalingPolicyServiceSettings.java | 1 + .../dataproc/v1/BatchControllerClient.java | 0 .../dataproc/v1/BatchControllerSettings.java | 1 + .../dataproc/v1/ClusterControllerClient.java | 0 .../v1/ClusterControllerSettings.java | 1 + .../dataproc/v1/JobControllerClient.java | 0 .../dataproc/v1/JobControllerSettings.java | 1 + .../v1/NodeGroupControllerClient.java | 666 ++++ .../v1/NodeGroupControllerSettings.java | 252 ++ .../v1/WorkflowTemplateServiceClient.java | 0 .../v1/WorkflowTemplateServiceSettings.java | 1 + .../cloud/dataproc/v1/gapic_metadata.json | 18 + .../cloud/dataproc/v1/package-info.java | 19 + .../v1/stub/AutoscalingPolicyServiceStub.java | 0 .../AutoscalingPolicyServiceStubSettings.java | 0 .../dataproc/v1/stub/BatchControllerStub.java | 0 .../v1/stub/BatchControllerStubSettings.java | 0 .../v1/stub/ClusterControllerStub.java | 0 .../stub/ClusterControllerStubSettings.java | 0 ...toscalingPolicyServiceCallableFactory.java | 0 .../GrpcAutoscalingPolicyServiceStub.java | 1 + .../GrpcBatchControllerCallableFactory.java | 0 .../v1/stub/GrpcBatchControllerStub.java | 1 + .../GrpcClusterControllerCallableFactory.java | 0 .../v1/stub/GrpcClusterControllerStub.java | 1 + .../GrpcJobControllerCallableFactory.java | 0 .../v1/stub/GrpcJobControllerStub.java | 1 + ...rpcNodeGroupControllerCallableFactory.java | 113 + .../v1/stub/GrpcNodeGroupControllerStub.java | 253 ++ ...orkflowTemplateServiceCallableFactory.java | 0 .../stub/GrpcWorkflowTemplateServiceStub.java | 1 + ...toscalingPolicyServiceCallableFactory.java | 0 .../HttpJsonAutoscalingPolicyServiceStub.java | 0 ...ttpJsonBatchControllerCallableFactory.java | 0 .../v1/stub/HttpJsonBatchControllerStub.java | 1 + ...pJsonClusterControllerCallableFactory.java | 0 .../stub/HttpJsonClusterControllerStub.java | 10 +- .../HttpJsonJobControllerCallableFactory.java | 0 .../v1/stub/HttpJsonJobControllerStub.java | 4 +- ...sonNodeGroupControllerCallableFactory.java | 105 + .../stub/HttpJsonNodeGroupControllerStub.java | 354 ++ ...orkflowTemplateServiceCallableFactory.java | 0 .../HttpJsonWorkflowTemplateServiceStub.java | 1 + .../dataproc/v1/stub/JobControllerStub.java | 0 .../v1/stub/JobControllerStubSettings.java | 0 .../v1/stub/NodeGroupControllerStub.java | 72 + .../stub/NodeGroupControllerStubSettings.java | 461 +++ .../v1/stub/WorkflowTemplateServiceStub.java | 0 .../WorkflowTemplateServiceStubSettings.java | 0 ...calingPolicyServiceClientHttpJsonTest.java | 0 .../AutoscalingPolicyServiceClientTest.java | 0 .../v1/BatchControllerClientHttpJsonTest.java | 0 .../v1/BatchControllerClientTest.java | 0 .../ClusterControllerClientHttpJsonTest.java | 0 .../v1/ClusterControllerClientTest.java | 0 .../v1/JobControllerClientHttpJsonTest.java | 5 + .../dataproc/v1/JobControllerClientTest.java | 5 + .../v1/MockAutoscalingPolicyService.java | 0 .../v1/MockAutoscalingPolicyServiceImpl.java | 0 .../dataproc/v1/MockBatchController.java | 0 .../dataproc/v1/MockBatchControllerImpl.java | 0 .../dataproc/v1/MockClusterController.java | 0 .../v1/MockClusterControllerImpl.java | 0 .../cloud/dataproc/v1/MockJobController.java | 0 .../dataproc/v1/MockJobControllerImpl.java | 0 .../dataproc/v1/MockNodeGroupController.java | 59 + .../v1/MockNodeGroupControllerImpl.java | 124 + .../v1/MockWorkflowTemplateService.java | 0 .../v1/MockWorkflowTemplateServiceImpl.java | 0 ...NodeGroupControllerClientHttpJsonTest.java | 347 ++ .../v1/NodeGroupControllerClientTest.java | 332 ++ ...flowTemplateServiceClientHttpJsonTest.java | 0 .../v1/WorkflowTemplateServiceClientTest.java | 0 .../v1/AutoscalingPolicyServiceGrpc.java | 664 ++++ .../dataproc/v1/BatchControllerGrpc.java | 565 +++ .../dataproc/v1/ClusterControllerGrpc.java | 970 +++++ .../cloud/dataproc/v1/JobControllerGrpc.java | 839 +++++ .../dataproc/v1/NodeGroupControllerGrpc.java | 500 +++ .../v1/WorkflowTemplateServiceGrpc.java | 874 ++--- .../cloud/dataproc/v1/AcceleratorConfig.java | 355 +- .../v1/AcceleratorConfigOrBuilder.java | 30 +- .../cloud/dataproc/v1/AutoscalingConfig.java | 320 +- .../v1/AutoscalingConfigOrBuilder.java | 27 +- .../dataproc/v1/AutoscalingPoliciesProto.java | 277 ++ .../cloud/dataproc/v1/AutoscalingPolicy.java | 1133 +++--- .../dataproc/v1/AutoscalingPolicyName.java | 0 .../v1/AutoscalingPolicyOrBuilder.java | 127 +- .../cloud/dataproc/v1/AuxiliaryNodeGroup.java | 825 +++++ .../v1/AuxiliaryNodeGroupOrBuilder.java | 62 + .../dataproc/v1/AuxiliaryServicesConfig.java | 534 +-- .../v1/AuxiliaryServicesConfigOrBuilder.java | 63 + .../v1/BasicAutoscalingAlgorithm.java | 567 ++- .../BasicAutoscalingAlgorithmOrBuilder.java | 55 +- .../v1/BasicYarnAutoscalingConfig.java | 568 ++- .../BasicYarnAutoscalingConfigOrBuilder.java | 53 +- .../com/google/cloud/dataproc/v1/Batch.java | 3107 ++++++---------- .../google/cloud/dataproc/v1/BatchName.java | 0 .../dataproc/v1/BatchOperationMetadata.java | 1167 +++--- .../v1/BatchOperationMetadataOrBuilder.java | 122 +- .../cloud/dataproc/v1/BatchOrBuilder.java | 320 +- .../cloud/dataproc/v1/BatchesProto.java | 302 ++ .../cloud/dataproc/v1/CancelJobRequest.java | 478 ++- .../v1/CancelJobRequestOrBuilder.java | 45 +- .../com/google/cloud/dataproc/v1/Cluster.java | 1769 ++++----- .../cloud/dataproc/v1/ClusterConfig.java | 2866 ++++++--------- .../dataproc/v1/ClusterConfigOrBuilder.java | 386 +- .../cloud/dataproc/v1/ClusterMetrics.java | 730 ++-- .../dataproc/v1/ClusterMetricsOrBuilder.java | 82 +- .../cloud/dataproc/v1/ClusterOperation.java | 437 +-- .../dataproc/v1/ClusterOperationMetadata.java | 1334 +++---- .../v1/ClusterOperationMetadataOrBuilder.java | 176 +- .../v1/ClusterOperationOrBuilder.java | 39 +- .../dataproc/v1/ClusterOperationStatus.java | 710 ++-- .../v1/ClusterOperationStatusOrBuilder.java | 70 +- .../cloud/dataproc/v1/ClusterOrBuilder.java | 254 +- .../cloud/dataproc/v1/ClusterRegionName.java | 223 ++ .../cloud/dataproc/v1/ClusterSelector.java | 604 ++- .../dataproc/v1/ClusterSelectorOrBuilder.java | 73 +- .../cloud/dataproc/v1/ClusterStatus.java | 842 ++--- .../dataproc/v1/ClusterStatusOrBuilder.java | 83 +- .../cloud/dataproc/v1/ClustersProto.java | 893 +++++ .../google/cloud/dataproc/v1/Component.java | 150 +- .../v1/ConfidentialInstanceConfig.java | 304 +- .../ConfidentialInstanceConfigOrBuilder.java | 20 + .../v1/CreateAutoscalingPolicyRequest.java | 495 +-- ...eateAutoscalingPolicyRequestOrBuilder.java | 55 +- .../cloud/dataproc/v1/CreateBatchRequest.java | 614 ++-- .../v1/CreateBatchRequestOrBuilder.java | 70 +- .../dataproc/v1/CreateClusterRequest.java | 748 ++-- .../v1/CreateClusterRequestOrBuilder.java | 90 +- .../dataproc/v1/CreateNodeGroupRequest.java | 1225 ++++++ .../v1/CreateNodeGroupRequestOrBuilder.java | 122 + .../v1/CreateWorkflowTemplateRequest.java | 492 +-- ...reateWorkflowTemplateRequestOrBuilder.java | 55 +- .../dataproc/v1/DataprocMetricConfig.java | 1104 ++---- .../v1/DataprocMetricConfigOrBuilder.java | 53 + .../v1/DeleteAutoscalingPolicyRequest.java | 361 +- ...leteAutoscalingPolicyRequestOrBuilder.java | 35 +- .../cloud/dataproc/v1/DeleteBatchRequest.java | 351 +- .../v1/DeleteBatchRequestOrBuilder.java | 29 + .../dataproc/v1/DeleteClusterRequest.java | 663 ++-- .../v1/DeleteClusterRequestOrBuilder.java | 71 +- .../cloud/dataproc/v1/DeleteJobRequest.java | 478 ++- .../v1/DeleteJobRequestOrBuilder.java | 45 +- .../v1/DeleteWorkflowTemplateRequest.java | 393 +- ...eleteWorkflowTemplateRequestOrBuilder.java | 38 +- .../dataproc/v1/DiagnoseClusterRequest.java | 485 ++- .../v1/DiagnoseClusterRequestOrBuilder.java | 45 +- .../dataproc/v1/DiagnoseClusterResults.java | 327 +- .../v1/DiagnoseClusterResultsOrBuilder.java | 27 +- .../google/cloud/dataproc/v1/DiskConfig.java | 466 +-- .../dataproc/v1/DiskConfigOrBuilder.java | 44 +- .../dataproc/v1/DriverSchedulingConfig.java | 569 +++ .../v1/DriverSchedulingConfigOrBuilder.java | 29 + .../cloud/dataproc/v1/EncryptionConfig.java | 320 +- .../v1/EncryptionConfigOrBuilder.java | 27 +- .../cloud/dataproc/v1/EndpointConfig.java | 573 ++- .../dataproc/v1/EndpointConfigOrBuilder.java | 67 +- .../cloud/dataproc/v1/EnvironmentConfig.java | 513 +-- .../v1/EnvironmentConfigOrBuilder.java | 63 + .../cloud/dataproc/v1/ExecutionConfig.java | 732 ++-- .../dataproc/v1/ExecutionConfigOrBuilder.java | 78 +- .../cloud/dataproc/v1/FailureAction.java | 82 +- .../cloud/dataproc/v1/GceClusterConfig.java | 1896 ++++------ .../v1/GceClusterConfigOrBuilder.java | 245 +- .../v1/GetAutoscalingPolicyRequest.java | 358 +- .../GetAutoscalingPolicyRequestOrBuilder.java | 35 +- .../cloud/dataproc/v1/GetBatchRequest.java | 348 +- .../dataproc/v1/GetBatchRequestOrBuilder.java | 29 + .../cloud/dataproc/v1/GetClusterRequest.java | 478 ++- .../v1/GetClusterRequestOrBuilder.java | 45 +- .../cloud/dataproc/v1/GetJobRequest.java | 478 ++- .../dataproc/v1/GetJobRequestOrBuilder.java | 45 +- .../dataproc/v1/GetNodeGroupRequest.java | 588 +++ .../v1/GetNodeGroupRequestOrBuilder.java | 33 + .../v1/GetWorkflowTemplateRequest.java | 393 +- .../GetWorkflowTemplateRequestOrBuilder.java | 38 +- .../cloud/dataproc/v1/GkeClusterConfig.java | 546 +-- .../v1/GkeClusterConfigOrBuilder.java | 65 +- .../cloud/dataproc/v1/GkeNodePoolConfig.java | 2384 +++++------- .../v1/GkeNodePoolConfigOrBuilder.java | 79 +- .../cloud/dataproc/v1/GkeNodePoolTarget.java | 733 ++-- .../v1/GkeNodePoolTargetOrBuilder.java | 85 +- .../google/cloud/dataproc/v1/HadoopJob.java | 1310 +++---- .../cloud/dataproc/v1/HadoopJobOrBuilder.java | 180 +- .../com/google/cloud/dataproc/v1/HiveJob.java | 1165 +++--- .../cloud/dataproc/v1/HiveJobOrBuilder.java | 151 +- .../cloud/dataproc/v1/IdentityConfig.java | 529 ++- .../dataproc/v1/IdentityConfigOrBuilder.java | 65 + .../InstanceGroupAutoscalingPolicyConfig.java | 391 +- ...GroupAutoscalingPolicyConfigOrBuilder.java | 27 +- .../dataproc/v1/InstanceGroupConfig.java | 1359 +++---- .../v1/InstanceGroupConfigOrBuilder.java | 161 +- ...tantiateInlineWorkflowTemplateRequest.java | 601 ++- ...nlineWorkflowTemplateRequestOrBuilder.java | 64 +- .../InstantiateWorkflowTemplateRequest.java | 781 ++-- ...tiateWorkflowTemplateRequestOrBuilder.java | 93 +- .../com/google/cloud/dataproc/v1/Job.java | 3268 +++++++---------- .../google/cloud/dataproc/v1/JobMetadata.java | 634 ++-- .../dataproc/v1/JobMetadataOrBuilder.java | 73 +- .../cloud/dataproc/v1/JobOrBuilder.java | 426 +-- .../cloud/dataproc/v1/JobPlacement.java | 714 ++-- .../dataproc/v1/JobPlacementOrBuilder.java | 97 +- .../cloud/dataproc/v1/JobReference.java | 427 +-- .../dataproc/v1/JobReferenceOrBuilder.java | 44 +- .../cloud/dataproc/v1/JobScheduling.java | 394 +- .../dataproc/v1/JobSchedulingOrBuilder.java | 44 + .../google/cloud/dataproc/v1/JobStatus.java | 830 ++--- .../cloud/dataproc/v1/JobStatusOrBuilder.java | 83 +- .../google/cloud/dataproc/v1/JobsProto.java | 714 ++++ .../cloud/dataproc/v1/KerberosConfig.java | 1441 +++----- .../dataproc/v1/KerberosConfigOrBuilder.java | 159 +- .../dataproc/v1/KubernetesClusterConfig.java | 654 ++-- .../v1/KubernetesClusterConfigOrBuilder.java | 70 +- .../dataproc/v1/KubernetesSoftwareConfig.java | 729 ++-- .../v1/KubernetesSoftwareConfigOrBuilder.java | 80 +- .../cloud/dataproc/v1/LifecycleConfig.java | 874 ++--- .../dataproc/v1/LifecycleConfigOrBuilder.java | 101 +- .../v1/ListAutoscalingPoliciesRequest.java | 475 +-- ...stAutoscalingPoliciesRequestOrBuilder.java | 47 +- .../v1/ListAutoscalingPoliciesResponse.java | 588 ++- ...tAutoscalingPoliciesResponseOrBuilder.java | 65 +- .../cloud/dataproc/v1/ListBatchesRequest.java | 465 +-- .../v1/ListBatchesRequestOrBuilder.java | 47 +- .../dataproc/v1/ListBatchesResponse.java | 482 +-- .../v1/ListBatchesResponseOrBuilder.java | 46 +- .../dataproc/v1/ListClustersRequest.java | 591 ++- .../v1/ListClustersRequestOrBuilder.java | 57 +- .../dataproc/v1/ListClustersResponse.java | 574 ++- .../v1/ListClustersResponseOrBuilder.java | 65 +- .../cloud/dataproc/v1/ListJobsRequest.java | 836 ++--- .../dataproc/v1/ListJobsRequestOrBuilder.java | 80 +- .../cloud/dataproc/v1/ListJobsResponse.java | 572 ++- .../v1/ListJobsResponseOrBuilder.java | 66 +- .../v1/ListWorkflowTemplatesRequest.java | 472 +-- ...ListWorkflowTemplatesRequestOrBuilder.java | 47 +- .../v1/ListWorkflowTemplatesResponse.java | 578 ++- ...istWorkflowTemplatesResponseOrBuilder.java | 65 +- .../cloud/dataproc/v1/LocationName.java | 0 .../cloud/dataproc/v1/LoggingConfig.java | 797 ++-- .../dataproc/v1/LoggingConfigOrBuilder.java | 95 +- .../cloud/dataproc/v1/ManagedCluster.java | 716 ++-- .../dataproc/v1/ManagedClusterOrBuilder.java | 78 +- .../cloud/dataproc/v1/ManagedGroupConfig.java | 426 +-- .../v1/ManagedGroupConfigOrBuilder.java | 42 +- .../cloud/dataproc/v1/MetastoreConfig.java | 351 +- .../dataproc/v1/MetastoreConfigOrBuilder.java | 33 + .../google/cloud/dataproc/v1/NodeGroup.java | 1657 +++++++++ .../cloud/dataproc/v1/NodeGroupAffinity.java | 324 +- .../v1/NodeGroupAffinityOrBuilder.java | 27 +- .../cloud/dataproc/v1/NodeGroupName.java | 257 ++ .../v1/NodeGroupOperationMetadata.java | 2442 ++++++++++++ .../NodeGroupOperationMetadataOrBuilder.java | 256 ++ .../cloud/dataproc/v1/NodeGroupOrBuilder.java | 191 + .../cloud/dataproc/v1/NodeGroupsProto.java | 138 + .../dataproc/v1/NodeInitializationAction.java | 468 +-- .../v1/NodeInitializationActionOrBuilder.java | 47 +- .../cloud/dataproc/v1/OperationsProto.java | 173 + .../google/cloud/dataproc/v1/OrderedJob.java | 2046 ++++------- .../dataproc/v1/OrderedJobOrBuilder.java | 262 +- .../dataproc/v1/ParameterValidation.java | 483 +-- .../v1/ParameterValidationOrBuilder.java | 37 +- .../cloud/dataproc/v1/PeripheralsConfig.java | 473 +-- .../v1/PeripheralsConfigOrBuilder.java | 50 +- .../com/google/cloud/dataproc/v1/PigJob.java | 1303 +++---- .../cloud/dataproc/v1/PigJobOrBuilder.java | 171 +- .../google/cloud/dataproc/v1/PrestoJob.java | 1106 +++--- .../cloud/dataproc/v1/PrestoJobOrBuilder.java | 134 +- .../cloud/dataproc/v1/PySparkBatch.java | 851 ++--- .../dataproc/v1/PySparkBatchOrBuilder.java | 117 +- .../google/cloud/dataproc/v1/PySparkJob.java | 1269 +++---- .../dataproc/v1/PySparkJobOrBuilder.java | 183 +- .../google/cloud/dataproc/v1/QueryList.java | 341 +- .../cloud/dataproc/v1/QueryListOrBuilder.java | 36 +- .../cloud/dataproc/v1/RegexValidation.java | 348 +- .../dataproc/v1/RegexValidationOrBuilder.java | 36 +- .../google/cloud/dataproc/v1/RegionName.java | 0 .../dataproc/v1/ReservationAffinity.java | 608 ++- .../v1/ReservationAffinityOrBuilder.java | 59 +- .../dataproc/v1/ResizeNodeGroupRequest.java | 1254 +++++++ .../v1/ResizeNodeGroupRequestOrBuilder.java | 140 + .../cloud/dataproc/v1/RuntimeConfig.java | 685 ++-- .../dataproc/v1/RuntimeConfigOrBuilder.java | 82 +- .../google/cloud/dataproc/v1/RuntimeInfo.java | 685 ++-- .../dataproc/v1/RuntimeInfoOrBuilder.java | 82 +- .../cloud/dataproc/v1/SecurityConfig.java | 508 +-- .../dataproc/v1/SecurityConfigOrBuilder.java | 58 +- .../google/cloud/dataproc/v1/SharedProto.java | 316 ++ .../dataproc/v1/ShieldedInstanceConfig.java | 365 +- .../v1/ShieldedInstanceConfigOrBuilder.java | 27 +- .../cloud/dataproc/v1/SoftwareConfig.java | 797 ++-- .../dataproc/v1/SoftwareConfigOrBuilder.java | 111 +- .../google/cloud/dataproc/v1/SparkBatch.java | 893 ++--- .../dataproc/v1/SparkBatchOrBuilder.java | 114 +- .../dataproc/v1/SparkHistoryServerConfig.java | 330 +- .../v1/SparkHistoryServerConfigOrBuilder.java | 27 +- .../google/cloud/dataproc/v1/SparkJob.java | 1317 +++---- .../cloud/dataproc/v1/SparkJobOrBuilder.java | 180 +- .../google/cloud/dataproc/v1/SparkRBatch.java | 634 ++-- .../dataproc/v1/SparkRBatchOrBuilder.java | 81 +- .../google/cloud/dataproc/v1/SparkRJob.java | 1051 +++--- .../cloud/dataproc/v1/SparkRJobOrBuilder.java | 147 +- .../cloud/dataproc/v1/SparkSqlBatch.java | 713 ++-- .../dataproc/v1/SparkSqlBatchOrBuilder.java | 91 +- .../google/cloud/dataproc/v1/SparkSqlJob.java | 1273 +++---- .../dataproc/v1/SparkSqlJobOrBuilder.java | 168 +- .../dataproc/v1/StartClusterRequest.java | 663 ++-- .../v1/StartClusterRequestOrBuilder.java | 71 +- .../cloud/dataproc/v1/StopClusterRequest.java | 659 ++-- .../v1/StopClusterRequestOrBuilder.java | 71 +- .../cloud/dataproc/v1/SubmitJobRequest.java | 548 ++- .../v1/SubmitJobRequestOrBuilder.java | 53 +- .../cloud/dataproc/v1/TemplateParameter.java | 634 ++-- .../v1/TemplateParameterOrBuilder.java | 74 +- .../v1/UpdateAutoscalingPolicyRequest.java | 391 +- ...dateAutoscalingPolicyRequestOrBuilder.java | 36 + .../dataproc/v1/UpdateClusterRequest.java | 979 ++--- .../v1/UpdateClusterRequestOrBuilder.java | 116 +- .../cloud/dataproc/v1/UpdateJobRequest.java | 675 ++-- .../v1/UpdateJobRequestOrBuilder.java | 70 +- .../v1/UpdateWorkflowTemplateRequest.java | 388 +- ...pdateWorkflowTemplateRequestOrBuilder.java | 39 + .../cloud/dataproc/v1/ValueValidation.java | 348 +- .../dataproc/v1/ValueValidationOrBuilder.java | 36 +- .../dataproc/v1/VirtualClusterConfig.java | 733 ++-- .../v1/VirtualClusterConfigOrBuilder.java | 89 +- .../cloud/dataproc/v1/WorkflowGraph.java | 490 +-- .../dataproc/v1/WorkflowGraphOrBuilder.java | 53 + .../cloud/dataproc/v1/WorkflowMetadata.java | 1958 ++++------ .../v1/WorkflowMetadataOrBuilder.java | 244 +- .../cloud/dataproc/v1/WorkflowNode.java | 807 ++-- .../dataproc/v1/WorkflowNodeOrBuilder.java | 89 +- .../cloud/dataproc/v1/WorkflowTemplate.java | 1684 ++++----- .../dataproc/v1/WorkflowTemplateName.java | 0 .../v1/WorkflowTemplateOrBuilder.java | 214 +- .../v1/WorkflowTemplatePlacement.java | 478 +-- .../WorkflowTemplatePlacementOrBuilder.java | 34 +- .../dataproc/v1/WorkflowTemplatesProto.java | 559 +++ .../cloud/dataproc/v1/YarnApplication.java | 643 ++-- .../dataproc/v1/YarnApplicationOrBuilder.java | 53 +- .../dataproc/v1/autoscaling_policies.proto | 0 .../google/cloud/dataproc/v1/batches.proto | 0 .../google/cloud/dataproc/v1/clusters.proto | 304 +- .../proto/google/cloud/dataproc/v1/jobs.proto | 93 +- .../cloud/dataproc/v1/node_groups.proto | 174 + .../google/cloud/dataproc/v1/operations.proto | 54 +- .../google/cloud/dataproc/v1/shared.proto | 0 .../dataproc/v1/workflow_templates.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateAutoscalingPolicy.java | 0 .../SyncCreateAutoscalingPolicy.java | 0 ...ngPolicyLocationnameAutoscalingpolicy.java | 0 ...lingPolicyRegionnameAutoscalingpolicy.java | 0 ...oscalingPolicyStringAutoscalingpolicy.java | 0 .../AsyncDeleteAutoscalingPolicy.java | 0 .../SyncDeleteAutoscalingPolicy.java | 0 ...utoscalingPolicyAutoscalingpolicyname.java | 0 .../SyncDeleteAutoscalingPolicyString.java | 0 .../AsyncGetAutoscalingPolicy.java | 0 .../SyncGetAutoscalingPolicy.java | 0 ...utoscalingPolicyAutoscalingpolicyname.java | 0 .../SyncGetAutoscalingPolicyString.java | 0 .../AsyncListAutoscalingPolicies.java | 0 .../AsyncListAutoscalingPoliciesPaged.java | 0 .../SyncListAutoscalingPolicies.java | 0 ...ncListAutoscalingPoliciesLocationname.java | 0 ...SyncListAutoscalingPoliciesRegionname.java | 0 .../SyncListAutoscalingPoliciesString.java | 0 .../AsyncUpdateAutoscalingPolicy.java | 0 .../SyncUpdateAutoscalingPolicy.java | 0 ...ateAutoscalingPolicyAutoscalingpolicy.java | 0 .../SyncCreateAutoscalingPolicy.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createbatch/AsyncCreateBatch.java | 0 .../createbatch/AsyncCreateBatchLRO.java | 0 .../createbatch/SyncCreateBatch.java | 0 ...yncCreateBatchLocationnameBatchString.java | 0 .../SyncCreateBatchStringBatchString.java | 0 .../deletebatch/AsyncDeleteBatch.java | 0 .../deletebatch/SyncDeleteBatch.java | 0 .../deletebatch/SyncDeleteBatchBatchname.java | 0 .../deletebatch/SyncDeleteBatchString.java | 0 .../getbatch/AsyncGetBatch.java | 0 .../getbatch/SyncGetBatch.java | 0 .../getbatch/SyncGetBatchBatchname.java | 0 .../getbatch/SyncGetBatchString.java | 0 .../listbatches/AsyncListBatches.java | 0 .../listbatches/AsyncListBatchesPaged.java | 0 .../listbatches/SyncListBatches.java | 0 .../SyncListBatchesLocationname.java | 0 .../listbatches/SyncListBatchesString.java | 0 .../getbatch/SyncGetBatch.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createcluster/AsyncCreateCluster.java | 0 .../createcluster/AsyncCreateClusterLRO.java | 0 .../createcluster/SyncCreateCluster.java | 0 .../SyncCreateClusterStringStringCluster.java | 0 .../deletecluster/AsyncDeleteCluster.java | 0 .../deletecluster/AsyncDeleteClusterLRO.java | 0 .../deletecluster/SyncDeleteCluster.java | 0 .../SyncDeleteClusterStringStringString.java | 0 .../diagnosecluster/AsyncDiagnoseCluster.java | 0 .../AsyncDiagnoseClusterLRO.java | 0 .../diagnosecluster/SyncDiagnoseCluster.java | 0 ...SyncDiagnoseClusterStringStringString.java | 0 .../getcluster/AsyncGetCluster.java | 0 .../getcluster/SyncGetCluster.java | 0 .../SyncGetClusterStringStringString.java | 0 .../listclusters/AsyncListClusters.java | 0 .../listclusters/AsyncListClustersPaged.java | 0 .../listclusters/SyncListClusters.java | 0 .../SyncListClustersStringString.java | 0 .../SyncListClustersStringStringString.java | 0 .../startcluster/AsyncStartCluster.java | 0 .../startcluster/AsyncStartClusterLRO.java | 0 .../startcluster/SyncStartCluster.java | 0 .../stopcluster/AsyncStopCluster.java | 0 .../stopcluster/AsyncStopClusterLRO.java | 0 .../stopcluster/SyncStopCluster.java | 0 .../updatecluster/AsyncUpdateCluster.java | 0 .../updatecluster/AsyncUpdateClusterLRO.java | 0 .../updatecluster/SyncUpdateCluster.java | 0 ...terStringStringStringClusterFieldmask.java | 0 .../getcluster/SyncGetCluster.java | 0 .../canceljob/AsyncCancelJob.java | 0 .../canceljob/SyncCancelJob.java | 0 .../SyncCancelJobStringStringString.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../deletejob/AsyncDeleteJob.java | 0 .../deletejob/SyncDeleteJob.java | 0 .../SyncDeleteJobStringStringString.java | 0 .../v1/jobcontroller/getjob/AsyncGetJob.java | 0 .../v1/jobcontroller/getjob/SyncGetJob.java | 0 .../getjob/SyncGetJobStringStringString.java | 0 .../jobcontroller/listjobs/AsyncListJobs.java | 0 .../listjobs/AsyncListJobsPaged.java | 0 .../jobcontroller/listjobs/SyncListJobs.java | 0 .../listjobs/SyncListJobsStringString.java | 0 .../SyncListJobsStringStringString.java | 0 .../submitjob/AsyncSubmitJob.java | 0 .../submitjob/SyncSubmitJob.java | 0 .../SyncSubmitJobStringStringJob.java | 0 .../AsyncSubmitJobAsOperation.java | 0 .../AsyncSubmitJobAsOperationLRO.java | 0 .../SyncSubmitJobAsOperation.java | 0 ...ncSubmitJobAsOperationStringStringJob.java | 0 .../updatejob/AsyncUpdateJob.java | 0 .../updatejob/SyncUpdateJob.java | 0 .../submitjob/SyncSubmitJob.java | 0 .../SyncCreateSetCredentialsProvider.java | 45 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 42 + .../createnodegroup/AsyncCreateNodeGroup.java | 54 + .../AsyncCreateNodeGroupLRO.java | 54 + .../createnodegroup/SyncCreateNodeGroup.java | 49 + ...GroupClusterregionnameNodegroupString.java | 45 + ...cCreateNodeGroupStringNodegroupString.java | 45 + .../getnodegroup/AsyncGetNodeGroup.java | 51 + .../getnodegroup/SyncGetNodeGroup.java | 47 + .../SyncGetNodeGroupNodegroupname.java | 42 + .../getnodegroup/SyncGetNodeGroupString.java | 43 + .../resizenodegroup/AsyncResizeNodeGroup.java | 53 + .../AsyncResizeNodeGroupLRO.java | 54 + .../resizenodegroup/SyncResizeNodeGroup.java | 49 + .../SyncResizeNodeGroupStringInt.java | 42 + .../getnodegroup/SyncGetNodeGroup.java | 47 + .../SyncCreateAutoscalingPolicy.java | 0 .../getbatch/SyncGetBatch.java | 0 .../getcluster/SyncGetCluster.java | 0 .../submitjob/SyncSubmitJob.java | 0 .../getnodegroup/SyncGetNodeGroup.java | 47 + .../SyncCreateWorkflowTemplate.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateWorkflowTemplate.java | 0 .../SyncCreateWorkflowTemplate.java | 0 ...wTemplateLocationnameWorkflowtemplate.java | 0 ...lowTemplateRegionnameWorkflowtemplate.java | 0 ...orkflowTemplateStringWorkflowtemplate.java | 0 .../AsyncDeleteWorkflowTemplate.java | 0 .../SyncDeleteWorkflowTemplate.java | 0 .../SyncDeleteWorkflowTemplateString.java | 0 ...eWorkflowTemplateWorkflowtemplatename.java | 0 .../AsyncGetWorkflowTemplate.java | 0 .../SyncGetWorkflowTemplate.java | 0 .../SyncGetWorkflowTemplateString.java | 0 ...tWorkflowTemplateWorkflowtemplatename.java | 0 ...syncInstantiateInlineWorkflowTemplate.java | 0 ...cInstantiateInlineWorkflowTemplateLRO.java | 0 ...SyncInstantiateInlineWorkflowTemplate.java | 0 ...wTemplateLocationnameWorkflowtemplate.java | 0 ...lowTemplateRegionnameWorkflowtemplate.java | 0 ...orkflowTemplateStringWorkflowtemplate.java | 0 .../AsyncInstantiateWorkflowTemplate.java | 0 .../AsyncInstantiateWorkflowTemplateLRO.java | 0 .../SyncInstantiateWorkflowTemplate.java | 0 ...SyncInstantiateWorkflowTemplateString.java | 0 ...WorkflowTemplateStringMapstringstring.java | 0 ...eWorkflowTemplateWorkflowtemplatename.java | 0 ...teWorkflowtemplatenameMapstringstring.java | 0 .../AsyncListWorkflowTemplates.java | 0 .../AsyncListWorkflowTemplatesPaged.java | 0 .../SyncListWorkflowTemplates.java | 0 ...SyncListWorkflowTemplatesLocationname.java | 0 .../SyncListWorkflowTemplatesRegionname.java | 0 .../SyncListWorkflowTemplatesString.java | 0 .../AsyncUpdateWorkflowTemplate.java | 0 .../SyncUpdateWorkflowTemplate.java | 0 ...pdateWorkflowTemplateWorkflowtemplate.java | 0 .../SyncCreateWorkflowTemplate.java | 0 543 files changed, 59677 insertions(+), 70766 deletions(-) delete mode 100644 java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java delete mode 100644 java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java delete mode 100644 java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java delete mode 100644 java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfigOrBuilder.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java delete mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java (99%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java (99%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java (99%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java (99%) create mode 100644 owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerClient.java create mode 100644 owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerSettings.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java (99%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json (90%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java (85%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java (99%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java (99%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java (99%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java (99%) create mode 100644 owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcNodeGroupControllerCallableFactory.java create mode 100644 owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcNodeGroupControllerStub.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java (99%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceCallableFactory.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerCallableFactory.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java (99%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerCallableFactory.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java (99%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerCallableFactory.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java (99%) create mode 100644 owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonNodeGroupControllerCallableFactory.java create mode 100644 owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonNodeGroupControllerStub.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceCallableFactory.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java (99%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java (100%) create mode 100644 owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStub.java create mode 100644 owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStubSettings.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientHttpJsonTest.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientHttpJsonTest.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientHttpJsonTest.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java (97%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java (97%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java (100%) create mode 100644 owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockNodeGroupController.java create mode 100644 owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockNodeGroupControllerImpl.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java (100%) create mode 100644 owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/NodeGroupControllerClientHttpJsonTest.java create mode 100644 owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/NodeGroupControllerClientTest.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientHttpJsonTest.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java (100%) create mode 100644 owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java create mode 100644 owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java create mode 100644 owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java create mode 100644 owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java create mode 100644 owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerGrpc.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java (50%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java (73%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.java (75%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java (70%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.java (67%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicy.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java (71%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroup.java create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroupOrBuilder.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java (60%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfigOrBuilder.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java (64%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java (60%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java (73%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.java (78%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java (68%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java (74%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java (66%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java (64%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java (59%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java (60%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java (63%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java (55%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java (52%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java (63%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java (62%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java (58%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java (58%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterRegionName.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java (62%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java (59%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java (66%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java (52%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java (74%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java (64%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java (64%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.java (57%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java (71%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java (73%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java (68%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java (71%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequest.java create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequestOrBuilder.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java (64%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java (57%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java (74%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java (67%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.java (61%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java (61%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java (73%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java (77%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java (64%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java (66%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.java (56%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java (73%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java (76%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfig.java create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfigOrBuilder.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java (67%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.java (54%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java (60%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java (58%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java (60%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java (72%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java (76%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java (68%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java (71%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java (78%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java (68%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.java (60%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java (61%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java (64%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequest.java create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequestOrBuilder.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java (71%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java (67%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java (66%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java (73%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java (81%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java (66%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java (74%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java (57%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java (72%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java (77%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java (71%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java (75%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java (66%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java (66%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java (72%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java (66%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java (61%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java (62%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java (58%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java (68%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java (63%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java (60%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java (66%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java (51%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java (75%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java (80%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java (60%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java (63%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java (75%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java (68%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java (73%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java (70%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.java (67%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java (63%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java (50%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java (67%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java (58%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java (71%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java (67%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java (75%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java (80%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java (53%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java (73%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java (77%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java (64%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java (50%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.java (66%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java (54%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java (62%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java (62%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java (66%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java (76%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java (67%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java (59%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java (62%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroup.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java (70%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java (68%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupName.java create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadata.java create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadataOrBuilder.java create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOrBuilder.java create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupsProto.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java (68%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java (67%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java (70%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java (64%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java (55%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java (72%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java (68%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java (73%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java (77%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java (83%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java (73%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java (79%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java (74%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java (79%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java (71%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java (67%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java (65%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequest.java create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequestOrBuilder.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java (63%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java (63%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java (63%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java (63%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java (61%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java (50%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java (68%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java (61%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java (75%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java (76%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java (83%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java (67%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java (59%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java (72%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java (79%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java (76%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java (81%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java (70%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java (77%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java (64%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java (67%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java (63%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java (73%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java (76%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java (73%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java (76%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java (74%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java (79%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java (81%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java (88%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java (61%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java (79%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java (86%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java (74%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java (79%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java (62%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java (68%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java (62%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java (64%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java (58%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java (61%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java (66%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java (76%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java (72%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.java (75%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplication.java (69%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java (65%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/batches.proto (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto (84%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto (92%) create mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/node_groups.proto rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto (67%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetEndpoint.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicy.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPolicies.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPolicies.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetEndpoint.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatch.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatchLRO.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatch.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchLocationnameBatchString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchStringBatchString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/AsyncDeleteBatch.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatch.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchBatchname.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/AsyncGetBatch.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatch.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchBatchname.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatches.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatchesPaged.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatches.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesLocationname.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetEndpoint.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateCluster.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateClusterLRO.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateCluster.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateClusterStringStringCluster.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteCluster.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteClusterLRO.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteCluster.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteClusterStringStringString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseCluster.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseClusterLRO.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseCluster.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseClusterStringStringString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/AsyncGetCluster.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetCluster.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetClusterStringStringString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClusters.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClustersPaged.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClusters.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringStringString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartCluster.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartClusterLRO.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/SyncStartCluster.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopCluster.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopClusterLRO.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/SyncStopCluster.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateCluster.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateClusterLRO.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateCluster.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/AsyncCancelJob.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJob.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJobStringStringString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetEndpoint.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/AsyncDeleteJob.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJob.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJobStringStringString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/AsyncGetJob.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJob.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJobStringStringString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobs.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobsPaged.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobs.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringStringString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/AsyncSubmitJob.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJob.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJobStringStringJob.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperation.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperation.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/AsyncUpdateJob.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/SyncUpdateJob.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java (100%) create mode 100644 owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/AsyncCreateNodeGroup.java create mode 100644 owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/AsyncCreateNodeGroupLRO.java create mode 100644 owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroup.java create mode 100644 owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroupClusterregionnameNodegroupString.java create mode 100644 owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroupStringNodegroupString.java create mode 100644 owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/AsyncGetNodeGroup.java create mode 100644 owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroup.java create mode 100644 owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroupNodegroupname.java create mode 100644 owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroupString.java create mode 100644 owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/AsyncResizeNodeGroup.java create mode 100644 owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/AsyncResizeNodeGroupLRO.java create mode 100644 owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/SyncResizeNodeGroup.java create mode 100644 owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/SyncResizeNodeGroupStringInt.java create mode 100644 owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontrollersettings/getnodegroup/SyncGetNodeGroup.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java (100%) create mode 100644 owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/nodegroupcontrollerstubsettings/getnodegroup/SyncGetNodeGroup.java rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetEndpoint.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/AsyncCreateWorkflowTemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/AsyncGetWorkflowTemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplates.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplates.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesString.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java (100%) rename {java-dataproc => owl-bot-staging/java-dataproc/v1}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java (100%) diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java deleted file mode 100644 index cb0b6ad2e6d5..000000000000 --- a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java +++ /dev/null @@ -1,889 +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.dataproc.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The API interface for managing autoscaling policies in the
- * Dataproc API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/autoscaling_policies.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AutoscalingPolicyServiceGrpc { - - private AutoscalingPolicyServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dataproc.v1.AutoscalingPolicyService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getCreateAutoscalingPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAutoscalingPolicy", - requestType = com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.class, - responseType = com.google.cloud.dataproc.v1.AutoscalingPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getCreateAutoscalingPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getCreateAutoscalingPolicyMethod; - if ((getCreateAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod) - == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getCreateAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod) - == null) { - AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod = - getCreateAutoscalingPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateAutoscalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance())) - .setSchemaDescriptor( - new AutoscalingPolicyServiceMethodDescriptorSupplier( - "CreateAutoscalingPolicy")) - .build(); - } - } - } - return getCreateAutoscalingPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getUpdateAutoscalingPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAutoscalingPolicy", - requestType = com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.class, - responseType = com.google.cloud.dataproc.v1.AutoscalingPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getUpdateAutoscalingPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getUpdateAutoscalingPolicyMethod; - if ((getUpdateAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getUpdateAutoscalingPolicyMethod) - == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getUpdateAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getUpdateAutoscalingPolicyMethod) - == null) { - AutoscalingPolicyServiceGrpc.getUpdateAutoscalingPolicyMethod = - getUpdateAutoscalingPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateAutoscalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance())) - .setSchemaDescriptor( - new AutoscalingPolicyServiceMethodDescriptorSupplier( - "UpdateAutoscalingPolicy")) - .build(); - } - } - } - return getUpdateAutoscalingPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getGetAutoscalingPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAutoscalingPolicy", - requestType = com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.class, - responseType = com.google.cloud.dataproc.v1.AutoscalingPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getGetAutoscalingPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getGetAutoscalingPolicyMethod; - if ((getGetAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getGetAutoscalingPolicyMethod) - == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getGetAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getGetAutoscalingPolicyMethod) - == null) { - AutoscalingPolicyServiceGrpc.getGetAutoscalingPolicyMethod = - getGetAutoscalingPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetAutoscalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance())) - .setSchemaDescriptor( - new AutoscalingPolicyServiceMethodDescriptorSupplier( - "GetAutoscalingPolicy")) - .build(); - } - } - } - return getGetAutoscalingPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest, - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse> - getListAutoscalingPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAutoscalingPolicies", - requestType = com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.class, - responseType = com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest, - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse> - getListAutoscalingPoliciesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest, - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse> - getListAutoscalingPoliciesMethod; - if ((getListAutoscalingPoliciesMethod = - AutoscalingPolicyServiceGrpc.getListAutoscalingPoliciesMethod) - == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getListAutoscalingPoliciesMethod = - AutoscalingPolicyServiceGrpc.getListAutoscalingPoliciesMethod) - == null) { - AutoscalingPolicyServiceGrpc.getListAutoscalingPoliciesMethod = - getListAutoscalingPoliciesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListAutoscalingPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AutoscalingPolicyServiceMethodDescriptorSupplier( - "ListAutoscalingPolicies")) - .build(); - } - } - } - return getListAutoscalingPoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest, com.google.protobuf.Empty> - getDeleteAutoscalingPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAutoscalingPolicy", - requestType = com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest, com.google.protobuf.Empty> - getDeleteAutoscalingPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest, com.google.protobuf.Empty> - getDeleteAutoscalingPolicyMethod; - if ((getDeleteAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getDeleteAutoscalingPolicyMethod) - == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getDeleteAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getDeleteAutoscalingPolicyMethod) - == null) { - AutoscalingPolicyServiceGrpc.getDeleteAutoscalingPolicyMethod = - getDeleteAutoscalingPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteAutoscalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AutoscalingPolicyServiceMethodDescriptorSupplier( - "DeleteAutoscalingPolicy")) - .build(); - } - } - } - return getDeleteAutoscalingPolicyMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AutoscalingPolicyServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoscalingPolicyServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceStub(channel, callOptions); - } - }; - return AutoscalingPolicyServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AutoscalingPolicyServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoscalingPolicyServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceBlockingStub(channel, callOptions); - } - }; - return AutoscalingPolicyServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AutoscalingPolicyServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoscalingPolicyServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceFutureStub(channel, callOptions); - } - }; - return AutoscalingPolicyServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The API interface for managing autoscaling policies in the
-   * Dataproc API.
-   * 
- */ - public abstract static class AutoscalingPolicyServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates new autoscaling policy.
-     * 
- */ - public void createAutoscalingPolicy( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateAutoscalingPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates (replaces) autoscaling policy.
-     * Disabled check for update_mask, because all updates will be full
-     * replacements.
-     * 
- */ - public void updateAutoscalingPolicy( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateAutoscalingPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves autoscaling policy.
-     * 
- */ - public void getAutoscalingPolicy( - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAutoscalingPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists autoscaling policies in the project.
-     * 
- */ - public void listAutoscalingPolicies( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAutoscalingPoliciesMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an autoscaling policy. It is an error to delete an autoscaling
-     * policy that is in use by one or more clusters.
-     * 
- */ - public void deleteAutoscalingPolicy( - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAutoscalingPolicyMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateAutoscalingPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy>( - this, METHODID_CREATE_AUTOSCALING_POLICY))) - .addMethod( - getUpdateAutoscalingPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy>( - this, METHODID_UPDATE_AUTOSCALING_POLICY))) - .addMethod( - getGetAutoscalingPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy>( - this, METHODID_GET_AUTOSCALING_POLICY))) - .addMethod( - getListAutoscalingPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest, - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse>( - this, METHODID_LIST_AUTOSCALING_POLICIES))) - .addMethod( - getDeleteAutoscalingPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_AUTOSCALING_POLICY))) - .build(); - } - } - - /** - * - * - *
-   * The API interface for managing autoscaling policies in the
-   * Dataproc API.
-   * 
- */ - public static final class AutoscalingPolicyServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AutoscalingPolicyServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoscalingPolicyServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates new autoscaling policy.
-     * 
- */ - public void createAutoscalingPolicy( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAutoscalingPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates (replaces) autoscaling policy.
-     * Disabled check for update_mask, because all updates will be full
-     * replacements.
-     * 
- */ - public void updateAutoscalingPolicy( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAutoscalingPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves autoscaling policy.
-     * 
- */ - public void getAutoscalingPolicy( - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAutoscalingPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists autoscaling policies in the project.
-     * 
- */ - public void listAutoscalingPolicies( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAutoscalingPoliciesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an autoscaling policy. It is an error to delete an autoscaling
-     * policy that is in use by one or more clusters.
-     * 
- */ - public void deleteAutoscalingPolicy( - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAutoscalingPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The API interface for managing autoscaling policies in the
-   * Dataproc API.
-   * 
- */ - public static final class AutoscalingPolicyServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AutoscalingPolicyServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoscalingPolicyServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates new autoscaling policy.
-     * 
- */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy createAutoscalingPolicy( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAutoscalingPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates (replaces) autoscaling policy.
-     * Disabled check for update_mask, because all updates will be full
-     * replacements.
-     * 
- */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy updateAutoscalingPolicy( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAutoscalingPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves autoscaling policy.
-     * 
- */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy getAutoscalingPolicy( - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAutoscalingPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists autoscaling policies in the project.
-     * 
- */ - public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse listAutoscalingPolicies( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAutoscalingPoliciesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an autoscaling policy. It is an error to delete an autoscaling
-     * policy that is in use by one or more clusters.
-     * 
- */ - public com.google.protobuf.Empty deleteAutoscalingPolicy( - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAutoscalingPolicyMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The API interface for managing autoscaling policies in the
-   * Dataproc API.
-   * 
- */ - public static final class AutoscalingPolicyServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AutoscalingPolicyServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoscalingPolicyServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates new autoscaling policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.AutoscalingPolicy> - createAutoscalingPolicy( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAutoscalingPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates (replaces) autoscaling policy.
-     * Disabled check for update_mask, because all updates will be full
-     * replacements.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.AutoscalingPolicy> - updateAutoscalingPolicy( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAutoscalingPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves autoscaling policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getAutoscalingPolicy(com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAutoscalingPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists autoscaling policies in the project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse> - listAutoscalingPolicies( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAutoscalingPoliciesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an autoscaling policy. It is an error to delete an autoscaling
-     * policy that is in use by one or more clusters.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteAutoscalingPolicy( - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAutoscalingPolicyMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_AUTOSCALING_POLICY = 0; - private static final int METHODID_UPDATE_AUTOSCALING_POLICY = 1; - private static final int METHODID_GET_AUTOSCALING_POLICY = 2; - private static final int METHODID_LIST_AUTOSCALING_POLICIES = 3; - private static final int METHODID_DELETE_AUTOSCALING_POLICY = 4; - - 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 AutoscalingPolicyServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AutoscalingPolicyServiceImplBase 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_AUTOSCALING_POLICY: - serviceImpl.createAutoscalingPolicy( - (com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_AUTOSCALING_POLICY: - serviceImpl.updateAutoscalingPolicy( - (com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_AUTOSCALING_POLICY: - serviceImpl.getAutoscalingPolicy( - (com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_AUTOSCALING_POLICIES: - serviceImpl.listAutoscalingPolicies( - (com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse>) - responseObserver); - break; - case METHODID_DELETE_AUTOSCALING_POLICY: - serviceImpl.deleteAutoscalingPolicy( - (com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) 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 AutoscalingPolicyServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AutoscalingPolicyServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AutoscalingPolicyService"); - } - } - - private static final class AutoscalingPolicyServiceFileDescriptorSupplier - extends AutoscalingPolicyServiceBaseDescriptorSupplier { - AutoscalingPolicyServiceFileDescriptorSupplier() {} - } - - private static final class AutoscalingPolicyServiceMethodDescriptorSupplier - extends AutoscalingPolicyServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AutoscalingPolicyServiceMethodDescriptorSupplier(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 (AutoscalingPolicyServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AutoscalingPolicyServiceFileDescriptorSupplier()) - .addMethod(getCreateAutoscalingPolicyMethod()) - .addMethod(getUpdateAutoscalingPolicyMethod()) - .addMethod(getGetAutoscalingPolicyMethod()) - .addMethod(getListAutoscalingPoliciesMethod()) - .addMethod(getDeleteAutoscalingPolicyMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java deleted file mode 100644 index a188740cb052..000000000000 --- a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java +++ /dev/null @@ -1,694 +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.dataproc.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The BatchController provides methods to manage batch workloads.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/batches.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BatchControllerGrpc { - - private BatchControllerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dataproc.v1.BatchController"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateBatchRequest, com.google.longrunning.Operation> - getCreateBatchMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateBatch", - requestType = com.google.cloud.dataproc.v1.CreateBatchRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateBatchRequest, com.google.longrunning.Operation> - getCreateBatchMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateBatchRequest, com.google.longrunning.Operation> - getCreateBatchMethod; - if ((getCreateBatchMethod = BatchControllerGrpc.getCreateBatchMethod) == null) { - synchronized (BatchControllerGrpc.class) { - if ((getCreateBatchMethod = BatchControllerGrpc.getCreateBatchMethod) == null) { - BatchControllerGrpc.getCreateBatchMethod = - getCreateBatchMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBatch")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.CreateBatchRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BatchControllerMethodDescriptorSupplier("CreateBatch")) - .build(); - } - } - } - return getCreateBatchMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetBatchRequest, com.google.cloud.dataproc.v1.Batch> - getGetBatchMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBatch", - requestType = com.google.cloud.dataproc.v1.GetBatchRequest.class, - responseType = com.google.cloud.dataproc.v1.Batch.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetBatchRequest, com.google.cloud.dataproc.v1.Batch> - getGetBatchMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetBatchRequest, com.google.cloud.dataproc.v1.Batch> - getGetBatchMethod; - if ((getGetBatchMethod = BatchControllerGrpc.getGetBatchMethod) == null) { - synchronized (BatchControllerGrpc.class) { - if ((getGetBatchMethod = BatchControllerGrpc.getGetBatchMethod) == null) { - BatchControllerGrpc.getGetBatchMethod = - getGetBatchMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBatch")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.GetBatchRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.Batch.getDefaultInstance())) - .setSchemaDescriptor(new BatchControllerMethodDescriptorSupplier("GetBatch")) - .build(); - } - } - } - return getGetBatchMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListBatchesRequest, - com.google.cloud.dataproc.v1.ListBatchesResponse> - getListBatchesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListBatches", - requestType = com.google.cloud.dataproc.v1.ListBatchesRequest.class, - responseType = com.google.cloud.dataproc.v1.ListBatchesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListBatchesRequest, - com.google.cloud.dataproc.v1.ListBatchesResponse> - getListBatchesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListBatchesRequest, - com.google.cloud.dataproc.v1.ListBatchesResponse> - getListBatchesMethod; - if ((getListBatchesMethod = BatchControllerGrpc.getListBatchesMethod) == null) { - synchronized (BatchControllerGrpc.class) { - if ((getListBatchesMethod = BatchControllerGrpc.getListBatchesMethod) == null) { - BatchControllerGrpc.getListBatchesMethod = - getListBatchesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBatches")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListBatchesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListBatchesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BatchControllerMethodDescriptorSupplier("ListBatches")) - .build(); - } - } - } - return getListBatchesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteBatchRequest, com.google.protobuf.Empty> - getDeleteBatchMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteBatch", - requestType = com.google.cloud.dataproc.v1.DeleteBatchRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteBatchRequest, com.google.protobuf.Empty> - getDeleteBatchMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteBatchRequest, com.google.protobuf.Empty> - getDeleteBatchMethod; - if ((getDeleteBatchMethod = BatchControllerGrpc.getDeleteBatchMethod) == null) { - synchronized (BatchControllerGrpc.class) { - if ((getDeleteBatchMethod = BatchControllerGrpc.getDeleteBatchMethod) == null) { - BatchControllerGrpc.getDeleteBatchMethod = - getDeleteBatchMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBatch")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.DeleteBatchRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new BatchControllerMethodDescriptorSupplier("DeleteBatch")) - .build(); - } - } - } - return getDeleteBatchMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static BatchControllerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BatchControllerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchControllerStub(channel, callOptions); - } - }; - return BatchControllerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BatchControllerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BatchControllerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchControllerBlockingStub(channel, callOptions); - } - }; - return BatchControllerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static BatchControllerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BatchControllerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchControllerFutureStub(channel, callOptions); - } - }; - return BatchControllerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The BatchController provides methods to manage batch workloads.
-   * 
- */ - public abstract static class BatchControllerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a batch workload that executes asynchronously.
-     * 
- */ - public void createBatch( - com.google.cloud.dataproc.v1.CreateBatchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBatchMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the batch workload resource representation.
-     * 
- */ - public void getBatch( - com.google.cloud.dataproc.v1.GetBatchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBatchMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists batch workloads.
-     * 
- */ - public void listBatches( - com.google.cloud.dataproc.v1.ListBatchesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBatchesMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the batch workload resource. If the batch is not in terminal state,
-     * the delete fails and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public void deleteBatch( - com.google.cloud.dataproc.v1.DeleteBatchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBatchMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateBatchMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.CreateBatchRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_BATCH))) - .addMethod( - getGetBatchMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.GetBatchRequest, - com.google.cloud.dataproc.v1.Batch>(this, METHODID_GET_BATCH))) - .addMethod( - getListBatchesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.ListBatchesRequest, - com.google.cloud.dataproc.v1.ListBatchesResponse>( - this, METHODID_LIST_BATCHES))) - .addMethod( - getDeleteBatchMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.DeleteBatchRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_BATCH))) - .build(); - } - } - - /** - * - * - *
-   * The BatchController provides methods to manage batch workloads.
-   * 
- */ - public static final class BatchControllerStub - extends io.grpc.stub.AbstractAsyncStub { - private BatchControllerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BatchControllerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchControllerStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a batch workload that executes asynchronously.
-     * 
- */ - public void createBatch( - com.google.cloud.dataproc.v1.CreateBatchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBatchMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the batch workload resource representation.
-     * 
- */ - public void getBatch( - com.google.cloud.dataproc.v1.GetBatchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBatchMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists batch workloads.
-     * 
- */ - public void listBatches( - com.google.cloud.dataproc.v1.ListBatchesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBatchesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the batch workload resource. If the batch is not in terminal state,
-     * the delete fails and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public void deleteBatch( - com.google.cloud.dataproc.v1.DeleteBatchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBatchMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The BatchController provides methods to manage batch workloads.
-   * 
- */ - public static final class BatchControllerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private BatchControllerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BatchControllerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchControllerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a batch workload that executes asynchronously.
-     * 
- */ - public com.google.longrunning.Operation createBatch( - com.google.cloud.dataproc.v1.CreateBatchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateBatchMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the batch workload resource representation.
-     * 
- */ - public com.google.cloud.dataproc.v1.Batch getBatch( - com.google.cloud.dataproc.v1.GetBatchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBatchMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists batch workloads.
-     * 
- */ - public com.google.cloud.dataproc.v1.ListBatchesResponse listBatches( - com.google.cloud.dataproc.v1.ListBatchesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBatchesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the batch workload resource. If the batch is not in terminal state,
-     * the delete fails and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public com.google.protobuf.Empty deleteBatch( - com.google.cloud.dataproc.v1.DeleteBatchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBatchMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The BatchController provides methods to manage batch workloads.
-   * 
- */ - public static final class BatchControllerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private BatchControllerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BatchControllerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchControllerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a batch workload that executes asynchronously.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createBatch(com.google.cloud.dataproc.v1.CreateBatchRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateBatchMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the batch workload resource representation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getBatch(com.google.cloud.dataproc.v1.GetBatchRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetBatchMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists batch workloads.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.ListBatchesResponse> - listBatches(com.google.cloud.dataproc.v1.ListBatchesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListBatchesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the batch workload resource. If the batch is not in terminal state,
-     * the delete fails and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteBatch(com.google.cloud.dataproc.v1.DeleteBatchRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteBatchMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_BATCH = 0; - private static final int METHODID_GET_BATCH = 1; - private static final int METHODID_LIST_BATCHES = 2; - private static final int METHODID_DELETE_BATCH = 3; - - 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 BatchControllerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BatchControllerImplBase 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_BATCH: - serviceImpl.createBatch( - (com.google.cloud.dataproc.v1.CreateBatchRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_BATCH: - serviceImpl.getBatch( - (com.google.cloud.dataproc.v1.GetBatchRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_BATCHES: - serviceImpl.listBatches( - (com.google.cloud.dataproc.v1.ListBatchesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_BATCH: - serviceImpl.deleteBatch( - (com.google.cloud.dataproc.v1.DeleteBatchRequest) 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 BatchControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BatchControllerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BatchController"); - } - } - - private static final class BatchControllerFileDescriptorSupplier - extends BatchControllerBaseDescriptorSupplier { - BatchControllerFileDescriptorSupplier() {} - } - - private static final class BatchControllerMethodDescriptorSupplier - extends BatchControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BatchControllerMethodDescriptorSupplier(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 (BatchControllerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BatchControllerFileDescriptorSupplier()) - .addMethod(getCreateBatchMethod()) - .addMethod(getGetBatchMethod()) - .addMethod(getListBatchesMethod()) - .addMethod(getDeleteBatchMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java deleted file mode 100644 index 95cd8ec5d1e4..000000000000 --- a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java +++ /dev/null @@ -1,1205 +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.dataproc.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The ClusterControllerService provides methods to manage clusters
- * of Compute Engine instances.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/clusters.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ClusterControllerGrpc { - - private ClusterControllerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dataproc.v1.ClusterController"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateClusterRequest, com.google.longrunning.Operation> - getCreateClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCluster", - requestType = com.google.cloud.dataproc.v1.CreateClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateClusterRequest, com.google.longrunning.Operation> - getCreateClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateClusterRequest, com.google.longrunning.Operation> - getCreateClusterMethod; - if ((getCreateClusterMethod = ClusterControllerGrpc.getCreateClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getCreateClusterMethod = ClusterControllerGrpc.getCreateClusterMethod) == null) { - ClusterControllerGrpc.getCreateClusterMethod = - getCreateClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.CreateClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("CreateCluster")) - .build(); - } - } - } - return getCreateClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateClusterRequest, com.google.longrunning.Operation> - getUpdateClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCluster", - requestType = com.google.cloud.dataproc.v1.UpdateClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateClusterRequest, com.google.longrunning.Operation> - getUpdateClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateClusterRequest, com.google.longrunning.Operation> - getUpdateClusterMethod; - if ((getUpdateClusterMethod = ClusterControllerGrpc.getUpdateClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getUpdateClusterMethod = ClusterControllerGrpc.getUpdateClusterMethod) == null) { - ClusterControllerGrpc.getUpdateClusterMethod = - getUpdateClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.UpdateClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("UpdateCluster")) - .build(); - } - } - } - return getUpdateClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.StopClusterRequest, com.google.longrunning.Operation> - getStopClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopCluster", - requestType = com.google.cloud.dataproc.v1.StopClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.StopClusterRequest, com.google.longrunning.Operation> - getStopClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.StopClusterRequest, com.google.longrunning.Operation> - getStopClusterMethod; - if ((getStopClusterMethod = ClusterControllerGrpc.getStopClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getStopClusterMethod = ClusterControllerGrpc.getStopClusterMethod) == null) { - ClusterControllerGrpc.getStopClusterMethod = - getStopClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.StopClusterRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("StopCluster")) - .build(); - } - } - } - return getStopClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.StartClusterRequest, com.google.longrunning.Operation> - getStartClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartCluster", - requestType = com.google.cloud.dataproc.v1.StartClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.StartClusterRequest, com.google.longrunning.Operation> - getStartClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.StartClusterRequest, com.google.longrunning.Operation> - getStartClusterMethod; - if ((getStartClusterMethod = ClusterControllerGrpc.getStartClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getStartClusterMethod = ClusterControllerGrpc.getStartClusterMethod) == null) { - ClusterControllerGrpc.getStartClusterMethod = - getStartClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.StartClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("StartCluster")) - .build(); - } - } - } - return getStartClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteClusterRequest, com.google.longrunning.Operation> - getDeleteClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCluster", - requestType = com.google.cloud.dataproc.v1.DeleteClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteClusterRequest, com.google.longrunning.Operation> - getDeleteClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteClusterRequest, com.google.longrunning.Operation> - getDeleteClusterMethod; - if ((getDeleteClusterMethod = ClusterControllerGrpc.getDeleteClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getDeleteClusterMethod = ClusterControllerGrpc.getDeleteClusterMethod) == null) { - ClusterControllerGrpc.getDeleteClusterMethod = - getDeleteClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.DeleteClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("DeleteCluster")) - .build(); - } - } - } - return getDeleteClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetClusterRequest, com.google.cloud.dataproc.v1.Cluster> - getGetClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCluster", - requestType = com.google.cloud.dataproc.v1.GetClusterRequest.class, - responseType = com.google.cloud.dataproc.v1.Cluster.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetClusterRequest, com.google.cloud.dataproc.v1.Cluster> - getGetClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetClusterRequest, com.google.cloud.dataproc.v1.Cluster> - getGetClusterMethod; - if ((getGetClusterMethod = ClusterControllerGrpc.getGetClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getGetClusterMethod = ClusterControllerGrpc.getGetClusterMethod) == null) { - ClusterControllerGrpc.getGetClusterMethod = - getGetClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.GetClusterRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.Cluster.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("GetCluster")) - .build(); - } - } - } - return getGetClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListClustersRequest, - com.google.cloud.dataproc.v1.ListClustersResponse> - getListClustersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListClusters", - requestType = com.google.cloud.dataproc.v1.ListClustersRequest.class, - responseType = com.google.cloud.dataproc.v1.ListClustersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListClustersRequest, - com.google.cloud.dataproc.v1.ListClustersResponse> - getListClustersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListClustersRequest, - com.google.cloud.dataproc.v1.ListClustersResponse> - getListClustersMethod; - if ((getListClustersMethod = ClusterControllerGrpc.getListClustersMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getListClustersMethod = ClusterControllerGrpc.getListClustersMethod) == null) { - ClusterControllerGrpc.getListClustersMethod = - getListClustersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListClusters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListClustersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListClustersResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("ListClusters")) - .build(); - } - } - } - return getListClustersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DiagnoseClusterRequest, com.google.longrunning.Operation> - getDiagnoseClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DiagnoseCluster", - requestType = com.google.cloud.dataproc.v1.DiagnoseClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DiagnoseClusterRequest, com.google.longrunning.Operation> - getDiagnoseClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DiagnoseClusterRequest, com.google.longrunning.Operation> - getDiagnoseClusterMethod; - if ((getDiagnoseClusterMethod = ClusterControllerGrpc.getDiagnoseClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getDiagnoseClusterMethod = ClusterControllerGrpc.getDiagnoseClusterMethod) == null) { - ClusterControllerGrpc.getDiagnoseClusterMethod = - getDiagnoseClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DiagnoseCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.DiagnoseClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("DiagnoseCluster")) - .build(); - } - } - } - return getDiagnoseClusterMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ClusterControllerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ClusterControllerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterControllerStub(channel, callOptions); - } - }; - return ClusterControllerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ClusterControllerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ClusterControllerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterControllerBlockingStub(channel, callOptions); - } - }; - return ClusterControllerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ClusterControllerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ClusterControllerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterControllerFutureStub(channel, callOptions); - } - }; - return ClusterControllerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The ClusterControllerService provides methods to manage clusters
-   * of Compute Engine instances.
-   * 
- */ - public abstract static class ClusterControllerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * 
- */ - public void createCluster( - com.google.cloud.dataproc.v1.CreateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error
-     * is returned.
-     * 
- */ - public void updateCluster( - com.google.cloud.dataproc.v1.UpdateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Stops a cluster in a project.
-     * 
- */ - public void stopCluster( - com.google.cloud.dataproc.v1.StopClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStopClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Starts a cluster in a project.
-     * 
- */ - public void startCluster( - com.google.cloud.dataproc.v1.StartClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * 
- */ - public void deleteCluster( - com.google.cloud.dataproc.v1.DeleteClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the resource representation for a cluster in a project.
-     * 
- */ - public void getCluster( - com.google.cloud.dataproc.v1.GetClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all regions/{region}/clusters in a project alphabetically.
-     * 
- */ - public void listClusters( - com.google.cloud.dataproc.v1.ListClustersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListClustersMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets cluster diagnostic information. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * After the operation completes,
-     * [Operation.response][google.longrunning.Operation.response]
-     * contains
-     * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
-     * 
- */ - public void diagnoseCluster( - com.google.cloud.dataproc.v1.DiagnoseClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDiagnoseClusterMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.CreateClusterRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_CLUSTER))) - .addMethod( - getUpdateClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.UpdateClusterRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_CLUSTER))) - .addMethod( - getStopClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.StopClusterRequest, - com.google.longrunning.Operation>(this, METHODID_STOP_CLUSTER))) - .addMethod( - getStartClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.StartClusterRequest, - com.google.longrunning.Operation>(this, METHODID_START_CLUSTER))) - .addMethod( - getDeleteClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.DeleteClusterRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_CLUSTER))) - .addMethod( - getGetClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.GetClusterRequest, - com.google.cloud.dataproc.v1.Cluster>(this, METHODID_GET_CLUSTER))) - .addMethod( - getListClustersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.ListClustersRequest, - com.google.cloud.dataproc.v1.ListClustersResponse>( - this, METHODID_LIST_CLUSTERS))) - .addMethod( - getDiagnoseClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.DiagnoseClusterRequest, - com.google.longrunning.Operation>(this, METHODID_DIAGNOSE_CLUSTER))) - .build(); - } - } - - /** - * - * - *
-   * The ClusterControllerService provides methods to manage clusters
-   * of Compute Engine instances.
-   * 
- */ - public static final class ClusterControllerStub - extends io.grpc.stub.AbstractAsyncStub { - private ClusterControllerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ClusterControllerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterControllerStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * 
- */ - public void createCluster( - com.google.cloud.dataproc.v1.CreateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error
-     * is returned.
-     * 
- */ - public void updateCluster( - com.google.cloud.dataproc.v1.UpdateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Stops a cluster in a project.
-     * 
- */ - public void stopCluster( - com.google.cloud.dataproc.v1.StopClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Starts a cluster in a project.
-     * 
- */ - public void startCluster( - com.google.cloud.dataproc.v1.StartClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * 
- */ - public void deleteCluster( - com.google.cloud.dataproc.v1.DeleteClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the resource representation for a cluster in a project.
-     * 
- */ - public void getCluster( - com.google.cloud.dataproc.v1.GetClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists all regions/{region}/clusters in a project alphabetically.
-     * 
- */ - public void listClusters( - com.google.cloud.dataproc.v1.ListClustersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListClustersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets cluster diagnostic information. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * After the operation completes,
-     * [Operation.response][google.longrunning.Operation.response]
-     * contains
-     * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
-     * 
- */ - public void diagnoseCluster( - com.google.cloud.dataproc.v1.DiagnoseClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDiagnoseClusterMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The ClusterControllerService provides methods to manage clusters
-   * of Compute Engine instances.
-   * 
- */ - public static final class ClusterControllerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ClusterControllerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ClusterControllerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterControllerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * 
- */ - public com.google.longrunning.Operation createCluster( - com.google.cloud.dataproc.v1.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error
-     * is returned.
-     * 
- */ - public com.google.longrunning.Operation updateCluster( - com.google.cloud.dataproc.v1.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Stops a cluster in a project.
-     * 
- */ - public com.google.longrunning.Operation stopCluster( - com.google.cloud.dataproc.v1.StopClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Starts a cluster in a project.
-     * 
- */ - public com.google.longrunning.Operation startCluster( - com.google.cloud.dataproc.v1.StartClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * 
- */ - public com.google.longrunning.Operation deleteCluster( - com.google.cloud.dataproc.v1.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the resource representation for a cluster in a project.
-     * 
- */ - public com.google.cloud.dataproc.v1.Cluster getCluster( - com.google.cloud.dataproc.v1.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all regions/{region}/clusters in a project alphabetically.
-     * 
- */ - public com.google.cloud.dataproc.v1.ListClustersResponse listClusters( - com.google.cloud.dataproc.v1.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListClustersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets cluster diagnostic information. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * After the operation completes,
-     * [Operation.response][google.longrunning.Operation.response]
-     * contains
-     * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
-     * 
- */ - public com.google.longrunning.Operation diagnoseCluster( - com.google.cloud.dataproc.v1.DiagnoseClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDiagnoseClusterMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The ClusterControllerService provides methods to manage clusters
-   * of Compute Engine instances.
-   * 
- */ - public static final class ClusterControllerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ClusterControllerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ClusterControllerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterControllerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createCluster(com.google.cloud.dataproc.v1.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error
-     * is returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateCluster(com.google.cloud.dataproc.v1.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Stops a cluster in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - stopCluster(com.google.cloud.dataproc.v1.StopClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Starts a cluster in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - startCluster(com.google.cloud.dataproc.v1.StartClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteCluster(com.google.cloud.dataproc.v1.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the resource representation for a cluster in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getCluster(com.google.cloud.dataproc.v1.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all regions/{region}/clusters in a project alphabetically.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.ListClustersResponse> - listClusters(com.google.cloud.dataproc.v1.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListClustersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets cluster diagnostic information. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * After the operation completes,
-     * [Operation.response][google.longrunning.Operation.response]
-     * contains
-     * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - diagnoseCluster(com.google.cloud.dataproc.v1.DiagnoseClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDiagnoseClusterMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CLUSTER = 0; - private static final int METHODID_UPDATE_CLUSTER = 1; - private static final int METHODID_STOP_CLUSTER = 2; - private static final int METHODID_START_CLUSTER = 3; - private static final int METHODID_DELETE_CLUSTER = 4; - private static final int METHODID_GET_CLUSTER = 5; - private static final int METHODID_LIST_CLUSTERS = 6; - private static final int METHODID_DIAGNOSE_CLUSTER = 7; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ClusterControllerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ClusterControllerImplBase 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_CLUSTER: - serviceImpl.createCluster( - (com.google.cloud.dataproc.v1.CreateClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CLUSTER: - serviceImpl.updateCluster( - (com.google.cloud.dataproc.v1.UpdateClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_CLUSTER: - serviceImpl.stopCluster( - (com.google.cloud.dataproc.v1.StopClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_CLUSTER: - serviceImpl.startCluster( - (com.google.cloud.dataproc.v1.StartClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CLUSTER: - serviceImpl.deleteCluster( - (com.google.cloud.dataproc.v1.DeleteClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CLUSTER: - serviceImpl.getCluster( - (com.google.cloud.dataproc.v1.GetClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CLUSTERS: - serviceImpl.listClusters( - (com.google.cloud.dataproc.v1.ListClustersRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DIAGNOSE_CLUSTER: - serviceImpl.diagnoseCluster( - (com.google.cloud.dataproc.v1.DiagnoseClusterRequest) 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 ClusterControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ClusterControllerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ClusterController"); - } - } - - private static final class ClusterControllerFileDescriptorSupplier - extends ClusterControllerBaseDescriptorSupplier { - ClusterControllerFileDescriptorSupplier() {} - } - - private static final class ClusterControllerMethodDescriptorSupplier - extends ClusterControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ClusterControllerMethodDescriptorSupplier(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 (ClusterControllerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ClusterControllerFileDescriptorSupplier()) - .addMethod(getCreateClusterMethod()) - .addMethod(getUpdateClusterMethod()) - .addMethod(getStopClusterMethod()) - .addMethod(getStartClusterMethod()) - .addMethod(getDeleteClusterMethod()) - .addMethod(getGetClusterMethod()) - .addMethod(getListClustersMethod()) - .addMethod(getDiagnoseClusterMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java deleted file mode 100644 index f9c7c4847fdc..000000000000 --- a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java +++ /dev/null @@ -1,1023 +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.dataproc.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The JobController provides methods to manage jobs.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/jobs.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class JobControllerGrpc { - - private JobControllerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dataproc.v1.JobController"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.cloud.dataproc.v1.Job> - getSubmitJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SubmitJob", - requestType = com.google.cloud.dataproc.v1.SubmitJobRequest.class, - responseType = com.google.cloud.dataproc.v1.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.cloud.dataproc.v1.Job> - getSubmitJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.cloud.dataproc.v1.Job> - getSubmitJobMethod; - if ((getSubmitJobMethod = JobControllerGrpc.getSubmitJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getSubmitJobMethod = JobControllerGrpc.getSubmitJobMethod) == null) { - JobControllerGrpc.getSubmitJobMethod = - getSubmitJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubmitJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.SubmitJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.Job.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("SubmitJob")) - .build(); - } - } - } - return getSubmitJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.longrunning.Operation> - getSubmitJobAsOperationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SubmitJobAsOperation", - requestType = com.google.cloud.dataproc.v1.SubmitJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.longrunning.Operation> - getSubmitJobAsOperationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.longrunning.Operation> - getSubmitJobAsOperationMethod; - if ((getSubmitJobAsOperationMethod = JobControllerGrpc.getSubmitJobAsOperationMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getSubmitJobAsOperationMethod = JobControllerGrpc.getSubmitJobAsOperationMethod) - == null) { - JobControllerGrpc.getSubmitJobAsOperationMethod = - getSubmitJobAsOperationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "SubmitJobAsOperation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.SubmitJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new JobControllerMethodDescriptorSupplier("SubmitJobAsOperation")) - .build(); - } - } - } - return getSubmitJobAsOperationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetJobRequest, com.google.cloud.dataproc.v1.Job> - getGetJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetJob", - requestType = com.google.cloud.dataproc.v1.GetJobRequest.class, - responseType = com.google.cloud.dataproc.v1.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetJobRequest, com.google.cloud.dataproc.v1.Job> - getGetJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetJobRequest, com.google.cloud.dataproc.v1.Job> - getGetJobMethod; - if ((getGetJobMethod = JobControllerGrpc.getGetJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getGetJobMethod = JobControllerGrpc.getGetJobMethod) == null) { - JobControllerGrpc.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.dataproc.v1.GetJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.Job.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("GetJob")) - .build(); - } - } - } - return getGetJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListJobsRequest, - com.google.cloud.dataproc.v1.ListJobsResponse> - getListJobsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListJobs", - requestType = com.google.cloud.dataproc.v1.ListJobsRequest.class, - responseType = com.google.cloud.dataproc.v1.ListJobsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListJobsRequest, - com.google.cloud.dataproc.v1.ListJobsResponse> - getListJobsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListJobsRequest, - com.google.cloud.dataproc.v1.ListJobsResponse> - getListJobsMethod; - if ((getListJobsMethod = JobControllerGrpc.getListJobsMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getListJobsMethod = JobControllerGrpc.getListJobsMethod) == null) { - JobControllerGrpc.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.dataproc.v1.ListJobsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListJobsResponse.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("ListJobs")) - .build(); - } - } - } - return getListJobsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateJobRequest, com.google.cloud.dataproc.v1.Job> - getUpdateJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateJob", - requestType = com.google.cloud.dataproc.v1.UpdateJobRequest.class, - responseType = com.google.cloud.dataproc.v1.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateJobRequest, com.google.cloud.dataproc.v1.Job> - getUpdateJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateJobRequest, com.google.cloud.dataproc.v1.Job> - getUpdateJobMethod; - if ((getUpdateJobMethod = JobControllerGrpc.getUpdateJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getUpdateJobMethod = JobControllerGrpc.getUpdateJobMethod) == null) { - JobControllerGrpc.getUpdateJobMethod = - getUpdateJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.UpdateJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.Job.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("UpdateJob")) - .build(); - } - } - } - return getUpdateJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CancelJobRequest, com.google.cloud.dataproc.v1.Job> - getCancelJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CancelJob", - requestType = com.google.cloud.dataproc.v1.CancelJobRequest.class, - responseType = com.google.cloud.dataproc.v1.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CancelJobRequest, com.google.cloud.dataproc.v1.Job> - getCancelJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CancelJobRequest, com.google.cloud.dataproc.v1.Job> - getCancelJobMethod; - if ((getCancelJobMethod = JobControllerGrpc.getCancelJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getCancelJobMethod = JobControllerGrpc.getCancelJobMethod) == null) { - JobControllerGrpc.getCancelJobMethod = - getCancelJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.CancelJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.Job.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("CancelJob")) - .build(); - } - } - } - return getCancelJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteJobRequest, com.google.protobuf.Empty> - getDeleteJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteJob", - requestType = com.google.cloud.dataproc.v1.DeleteJobRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteJobRequest, com.google.protobuf.Empty> - getDeleteJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteJobRequest, com.google.protobuf.Empty> - getDeleteJobMethod; - if ((getDeleteJobMethod = JobControllerGrpc.getDeleteJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getDeleteJobMethod = JobControllerGrpc.getDeleteJobMethod) == null) { - JobControllerGrpc.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.dataproc.v1.DeleteJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("DeleteJob")) - .build(); - } - } - } - return getDeleteJobMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static JobControllerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public JobControllerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerStub(channel, callOptions); - } - }; - return JobControllerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static JobControllerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public JobControllerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerBlockingStub(channel, callOptions); - } - }; - return JobControllerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static JobControllerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public JobControllerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerFutureStub(channel, callOptions); - } - }; - return JobControllerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The JobController provides methods to manage jobs.
-   * 
- */ - public abstract static class JobControllerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Submits a job to a cluster.
-     * 
- */ - public void submitJob( - com.google.cloud.dataproc.v1.SubmitJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Submits job to a cluster.
-     * 
- */ - public void submitJobAsOperation( - com.google.cloud.dataproc.v1.SubmitJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSubmitJobAsOperationMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the resource representation for a job in a project.
-     * 
- */ - public void getJob( - com.google.cloud.dataproc.v1.GetJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists regions/{region}/jobs in a project.
-     * 
- */ - public void listJobs( - com.google.cloud.dataproc.v1.ListJobsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListJobsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a job in a project.
-     * 
- */ - public void updateJob( - com.google.cloud.dataproc.v1.UpdateJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Starts a job cancellation request. To access the job resource
-     * after cancellation, call
-     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
-     * or
-     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
-     * 
- */ - public void cancelJob( - com.google.cloud.dataproc.v1.CancelJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the job from the project. If the job is active, the delete fails,
-     * and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public void deleteJob( - com.google.cloud.dataproc.v1.DeleteJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteJobMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getSubmitJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.SubmitJobRequest, - com.google.cloud.dataproc.v1.Job>(this, METHODID_SUBMIT_JOB))) - .addMethod( - getSubmitJobAsOperationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.SubmitJobRequest, - com.google.longrunning.Operation>(this, METHODID_SUBMIT_JOB_AS_OPERATION))) - .addMethod( - getGetJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.GetJobRequest, com.google.cloud.dataproc.v1.Job>( - this, METHODID_GET_JOB))) - .addMethod( - getListJobsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.ListJobsRequest, - com.google.cloud.dataproc.v1.ListJobsResponse>(this, METHODID_LIST_JOBS))) - .addMethod( - getUpdateJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.UpdateJobRequest, - com.google.cloud.dataproc.v1.Job>(this, METHODID_UPDATE_JOB))) - .addMethod( - getCancelJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.CancelJobRequest, - com.google.cloud.dataproc.v1.Job>(this, METHODID_CANCEL_JOB))) - .addMethod( - getDeleteJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.DeleteJobRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_JOB))) - .build(); - } - } - - /** - * - * - *
-   * The JobController provides methods to manage jobs.
-   * 
- */ - public static final class JobControllerStub - extends io.grpc.stub.AbstractAsyncStub { - private JobControllerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected JobControllerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerStub(channel, callOptions); - } - - /** - * - * - *
-     * Submits a job to a cluster.
-     * 
- */ - public void submitJob( - com.google.cloud.dataproc.v1.SubmitJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSubmitJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Submits job to a cluster.
-     * 
- */ - public void submitJobAsOperation( - com.google.cloud.dataproc.v1.SubmitJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSubmitJobAsOperationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the resource representation for a job in a project.
-     * 
- */ - public void getJob( - com.google.cloud.dataproc.v1.GetJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists regions/{region}/jobs in a project.
-     * 
- */ - public void listJobs( - com.google.cloud.dataproc.v1.ListJobsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListJobsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates a job in a project.
-     * 
- */ - public void updateJob( - com.google.cloud.dataproc.v1.UpdateJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Starts a job cancellation request. To access the job resource
-     * after cancellation, call
-     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
-     * or
-     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
-     * 
- */ - public void cancelJob( - com.google.cloud.dataproc.v1.CancelJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes the job from the project. If the job is active, the delete fails,
-     * and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public void deleteJob( - com.google.cloud.dataproc.v1.DeleteJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * - * - *
-   * The JobController provides methods to manage jobs.
-   * 
- */ - public static final class JobControllerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private JobControllerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected JobControllerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Submits a job to a cluster.
-     * 
- */ - public com.google.cloud.dataproc.v1.Job submitJob( - com.google.cloud.dataproc.v1.SubmitJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSubmitJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Submits job to a cluster.
-     * 
- */ - public com.google.longrunning.Operation submitJobAsOperation( - com.google.cloud.dataproc.v1.SubmitJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSubmitJobAsOperationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the resource representation for a job in a project.
-     * 
- */ - public com.google.cloud.dataproc.v1.Job getJob( - com.google.cloud.dataproc.v1.GetJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists regions/{region}/jobs in a project.
-     * 
- */ - public com.google.cloud.dataproc.v1.ListJobsResponse listJobs( - com.google.cloud.dataproc.v1.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListJobsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a job in a project.
-     * 
- */ - public com.google.cloud.dataproc.v1.Job updateJob( - com.google.cloud.dataproc.v1.UpdateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Starts a job cancellation request. To access the job resource
-     * after cancellation, call
-     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
-     * or
-     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
-     * 
- */ - public com.google.cloud.dataproc.v1.Job cancelJob( - com.google.cloud.dataproc.v1.CancelJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the job from the project. If the job is active, the delete fails,
-     * and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public com.google.protobuf.Empty deleteJob( - com.google.cloud.dataproc.v1.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteJobMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The JobController provides methods to manage jobs.
-   * 
- */ - public static final class JobControllerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private JobControllerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected JobControllerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Submits a job to a cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - submitJob(com.google.cloud.dataproc.v1.SubmitJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSubmitJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Submits job to a cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - submitJobAsOperation(com.google.cloud.dataproc.v1.SubmitJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSubmitJobAsOperationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the resource representation for a job in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getJob(com.google.cloud.dataproc.v1.GetJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists regions/{region}/jobs in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.ListJobsResponse> - listJobs(com.google.cloud.dataproc.v1.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListJobsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a job in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateJob(com.google.cloud.dataproc.v1.UpdateJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Starts a job cancellation request. To access the job resource
-     * after cancellation, call
-     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
-     * or
-     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - cancelJob(com.google.cloud.dataproc.v1.CancelJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCancelJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the job from the project. If the job is active, the delete fails,
-     * and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteJob( - com.google.cloud.dataproc.v1.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_SUBMIT_JOB = 0; - private static final int METHODID_SUBMIT_JOB_AS_OPERATION = 1; - private static final int METHODID_GET_JOB = 2; - private static final int METHODID_LIST_JOBS = 3; - private static final int METHODID_UPDATE_JOB = 4; - private static final int METHODID_CANCEL_JOB = 5; - private static final int METHODID_DELETE_JOB = 6; - - 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 JobControllerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(JobControllerImplBase 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_SUBMIT_JOB: - serviceImpl.submitJob( - (com.google.cloud.dataproc.v1.SubmitJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SUBMIT_JOB_AS_OPERATION: - serviceImpl.submitJobAsOperation( - (com.google.cloud.dataproc.v1.SubmitJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_JOB: - serviceImpl.getJob( - (com.google.cloud.dataproc.v1.GetJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_JOBS: - serviceImpl.listJobs( - (com.google.cloud.dataproc.v1.ListJobsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_JOB: - serviceImpl.updateJob( - (com.google.cloud.dataproc.v1.UpdateJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CANCEL_JOB: - serviceImpl.cancelJob( - (com.google.cloud.dataproc.v1.CancelJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_JOB: - serviceImpl.deleteJob( - (com.google.cloud.dataproc.v1.DeleteJobRequest) 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 JobControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - JobControllerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("JobController"); - } - } - - private static final class JobControllerFileDescriptorSupplier - extends JobControllerBaseDescriptorSupplier { - JobControllerFileDescriptorSupplier() {} - } - - private static final class JobControllerMethodDescriptorSupplier - extends JobControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - JobControllerMethodDescriptorSupplier(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 (JobControllerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new JobControllerFileDescriptorSupplier()) - .addMethod(getSubmitJobMethod()) - .addMethod(getSubmitJobAsOperationMethod()) - .addMethod(getGetJobMethod()) - .addMethod(getListJobsMethod()) - .addMethod(getUpdateJobMethod()) - .addMethod(getCancelJobMethod()) - .addMethod(getDeleteJobMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java deleted file mode 100644 index 524fac61042b..000000000000 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java +++ /dev/null @@ -1,314 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -public final class AutoscalingPoliciesProto { - private AutoscalingPoliciesProto() {} - - 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_dataproc_v1_AutoscalingPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/dataproc/v1/autoscaling_p" - + "olicies.proto\022\030google.cloud.dataproc.v1\032" - + "\034google/api/annotations.proto\032\027google/ap" - + "i/client.proto\032\037google/api/field_behavio" - + "r.proto\032\031google/api/resource.proto\032\036goog" - + "le/protobuf/duration.proto\032\033google/proto" - + "buf/empty.proto\"\245\005\n\021AutoscalingPolicy\022\n\n" - + "\002id\030\001 \001(\t\022\021\n\004name\030\002 \001(\tB\003\340A\003\022S\n\017basic_al" - + "gorithm\030\003 \001(\01323.google.cloud.dataproc.v1" - + ".BasicAutoscalingAlgorithmB\003\340A\002H\000\022Z\n\rwor" - + "ker_config\030\004 \001(\0132>.google.cloud.dataproc" - + ".v1.InstanceGroupAutoscalingPolicyConfig" - + "B\003\340A\002\022d\n\027secondary_worker_config\030\005 \001(\0132>" - + ".google.cloud.dataproc.v1.InstanceGroupA" - + "utoscalingPolicyConfigB\003\340A\001\022L\n\006labels\030\006 " - + "\003(\01327.google.cloud.dataproc.v1.Autoscali" - + "ngPolicy.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\317\001\352A\313\001\n" - + ")dataproc.googleapis.com/AutoscalingPoli" - + "cy\022Pprojects/{project}/locations/{locati" - + "on}/autoscalingPolicies/{autoscaling_pol" - + "icy}\022Lprojects/{project}/regions/{region" - + "}/autoscalingPolicies/{autoscaling_polic" - + "y}B\013\n\talgorithm\"\260\001\n\031BasicAutoscalingAlgo" - + "rithm\022P\n\013yarn_config\030\001 \001(\01324.google.clou" - + "d.dataproc.v1.BasicYarnAutoscalingConfig" - + "B\003\340A\002H\000\0227\n\017cooldown_period\030\002 \001(\0132\031.googl" - + "e.protobuf.DurationB\003\340A\001B\010\n\006config\"\371\001\n\032B" - + "asicYarnAutoscalingConfig\022E\n\035graceful_de" - + "commission_timeout\030\005 \001(\0132\031.google.protob" - + "uf.DurationB\003\340A\002\022\034\n\017scale_up_factor\030\001 \001(" - + "\001B\003\340A\002\022\036\n\021scale_down_factor\030\002 \001(\001B\003\340A\002\022)" - + "\n\034scale_up_min_worker_fraction\030\003 \001(\001B\003\340A" - + "\001\022+\n\036scale_down_min_worker_fraction\030\004 \001(" - + "\001B\003\340A\001\"s\n$InstanceGroupAutoscalingPolicy" - + "Config\022\032\n\rmin_instances\030\001 \001(\005B\003\340A\001\022\032\n\rma" - + "x_instances\030\002 \001(\005B\003\340A\002\022\023\n\006weight\030\003 \001(\005B\003" - + "\340A\001\"\245\001\n\036CreateAutoscalingPolicyRequest\022A" - + "\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)dataproc.googlea" - + "pis.com/AutoscalingPolicy\022@\n\006policy\030\002 \001(" - + "\0132+.google.cloud.dataproc.v1.Autoscaling" - + "PolicyB\003\340A\002\"^\n\033GetAutoscalingPolicyReque" - + "st\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)dataproc.googl" - + "eapis.com/AutoscalingPolicy\"b\n\036UpdateAut" - + "oscalingPolicyRequest\022@\n\006policy\030\001 \001(\0132+." - + "google.cloud.dataproc.v1.AutoscalingPoli" - + "cyB\003\340A\002\"a\n\036DeleteAutoscalingPolicyReques" - + "t\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)dataproc.google" - + "apis.com/AutoscalingPolicy\"\224\001\n\036ListAutos" - + "calingPoliciesRequest\022A\n\006parent\030\001 \001(\tB1\340" - + "A\002\372A+\022)dataproc.googleapis.com/Autoscali" - + "ngPolicy\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" - + "_token\030\003 \001(\tB\003\340A\001\"\203\001\n\037ListAutoscalingPol" - + "iciesResponse\022B\n\010policies\030\001 \003(\0132+.google" - + ".cloud.dataproc.v1.AutoscalingPolicyB\003\340A" - + "\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\0032\256\013\n\030Auto" - + "scalingPolicyService\022\234\002\n\027CreateAutoscali" - + "ngPolicy\0228.google.cloud.dataproc.v1.Crea" - + "teAutoscalingPolicyRequest\032+.google.clou" - + "d.dataproc.v1.AutoscalingPolicy\"\231\001\202\323\344\223\002\202" - + "\001\"7/v1/{parent=projects/*/locations/*}/a" - + "utoscalingPolicies:\006policyZ?\"5/v1/{paren" - + "t=projects/*/regions/*}/autoscalingPolic" - + "ies:\006policy\332A\rparent,policy\022\243\002\n\027UpdateAu" - + "toscalingPolicy\0228.google.cloud.dataproc." - + "v1.UpdateAutoscalingPolicyRequest\032+.goog" - + "le.cloud.dataproc.v1.AutoscalingPolicy\"\240" - + "\001\202\323\344\223\002\220\001\032>/v1/{policy.name=projects/*/lo" - + "cations/*/autoscalingPolicies/*}:\006policy" - + "ZF\032 - * Optional. The Hive Metastore configuration for this workload. - * - * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the metastoreConfig field is set. - */ - boolean hasMetastoreConfig(); - /** - * - * - *
-   * Optional. The Hive Metastore configuration for this workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The metastoreConfig. - */ - com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig(); - /** - * - * - *
-   * Optional. The Hive Metastore configuration for this workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The Spark History Server configuration for the workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkHistoryServerConfig field is set. - */ - boolean hasSparkHistoryServerConfig(); - /** - * - * - *
-   * Optional. The Spark History Server configuration for the workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkHistoryServerConfig. - */ - com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig(); - /** - * - * - *
-   * Optional. The Spark History Server configuration for the workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder - getSparkHistoryServerConfigOrBuilder(); -} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java deleted file mode 100644 index aea24497aa51..000000000000 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java +++ /dev/null @@ -1,357 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -public final class BatchesProto { - private BatchesProto() {} - - 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_dataproc_v1_CreateBatchRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_Batch_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_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/dataproc/v1/batches.proto" - + "\022\030google.cloud.dataproc.v1\032\034google/api/a" - + "nnotations.proto\032\027google/api/client.prot" - + "o\032\037google/api/field_behavior.proto\032\031goog" - + "le/api/resource.proto\032%google/cloud/data" - + "proc/v1/shared.proto\032#google/longrunning" - + "/operations.proto\032\033google/protobuf/empty" - + ".proto\032\037google/protobuf/timestamp.proto\"" - + "\260\001\n\022CreateBatchRequest\0225\n\006parent\030\001 \001(\tB%" - + "\340A\002\372A\037\022\035dataproc.googleapis.com/Batch\0223\n" - + "\005batch\030\002 \001(\0132\037.google.cloud.dataproc.v1." - + "BatchB\003\340A\002\022\025\n\010batch_id\030\003 \001(\tB\003\340A\001\022\027\n\nreq" - + "uest_id\030\004 \001(\tB\003\340A\001\"F\n\017GetBatchRequest\0223\n" - + "\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dataproc.googleapis" - + ".com/Batch\"|\n\022ListBatchesRequest\0225\n\006pare" - + "nt\030\001 \001(\tB%\340A\002\372A\037\022\035dataproc.googleapis.co" - + "m/Batch\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_" - + "token\030\003 \001(\tB\003\340A\001\"`\n\023ListBatchesResponse\022" - + "0\n\007batches\030\001 \003(\0132\037.google.cloud.dataproc" - + ".v1.Batch\022\027\n\017next_page_token\030\002 \001(\t\"I\n\022De" - + "leteBatchRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035" - + "dataproc.googleapis.com/Batch\"\310\n\n\005Batch\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\021\n\004uuid\030\002 \001(\tB\003\340A\003\0224\n" - + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\022D\n\rpyspark_batch\030\004 \001(\0132&.goo" - + "gle.cloud.dataproc.v1.PySparkBatchB\003\340A\001H" - + "\000\022@\n\013spark_batch\030\005 \001(\0132$.google.cloud.da" - + "taproc.v1.SparkBatchB\003\340A\001H\000\022C\n\rspark_r_b" - + "atch\030\006 \001(\0132%.google.cloud.dataproc.v1.Sp" - + "arkRBatchB\003\340A\001H\000\022G\n\017spark_sql_batch\030\007 \001(" - + "\0132\'.google.cloud.dataproc.v1.SparkSqlBat" - + "chB\003\340A\001H\000\022@\n\014runtime_info\030\010 \001(\0132%.google" - + ".cloud.dataproc.v1.RuntimeInfoB\003\340A\003\0229\n\005s" - + "tate\030\t \001(\0162%.google.cloud.dataproc.v1.Ba" - + "tch.StateB\003\340A\003\022\032\n\rstate_message\030\n \001(\tB\003\340" - + "A\003\0223\n\nstate_time\030\013 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022\024\n\007creator\030\014 \001(\tB\003\340A\003\022@\n" - + "\006labels\030\r \003(\0132+.google.cloud.dataproc.v1" - + ".Batch.LabelsEntryB\003\340A\001\022D\n\016runtime_confi" - + "g\030\016 \001(\0132\'.google.cloud.dataproc.v1.Runti" - + "meConfigB\003\340A\001\022L\n\022environment_config\030\017 \001(" - + "\0132+.google.cloud.dataproc.v1.Environment" - + "ConfigB\003\340A\001\022\026\n\toperation\030\020 \001(\tB\003\340A\003\022H\n\rs" - + "tate_history\030\021 \003(\0132,.google.cloud.datapr" - + "oc.v1.Batch.StateHistoryB\003\340A\003\032\240\001\n\014StateH" - + "istory\0229\n\005state\030\001 \001(\0162%.google.cloud.dat" - + "aproc.v1.Batch.StateB\003\340A\003\022\032\n\rstate_messa" - + "ge\030\002 \001(\tB\003\340A\003\0229\n\020state_start_time\030\003 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\032-\n\013Labe" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" - + "r\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDI" - + "NG\020\001\022\013\n\007RUNNING\020\002\022\016\n\nCANCELLING\020\003\022\r\n\tCAN" - + "CELLED\020\004\022\r\n\tSUCCEEDED\020\005\022\n\n\006FAILED\020\006:[\352AX" - + "\n\035dataproc.googleapis.com/Batch\0227project" - + "s/{project}/locations/{location}/batches" - + "/{batch}B\016\n\014batch_config\"\262\001\n\014PySparkBatc" - + "h\022!\n\024main_python_file_uri\030\001 \001(\tB\003\340A\002\022\021\n\004" - + "args\030\002 \003(\tB\003\340A\001\022\035\n\020python_file_uris\030\003 \003(" - + "\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 \003(\tB\003\340A\001\022\026\n\tfi" - + "le_uris\030\005 \003(\tB\003\340A\001\022\031\n\014archive_uris\030\006 \003(\t" - + "B\003\340A\001\"\265\001\n\nSparkBatch\022 \n\021main_jar_file_ur" - + "i\030\001 \001(\tB\003\340A\001H\000\022\031\n\nmain_class\030\002 \001(\tB\003\340A\001H" - + "\000\022\021\n\004args\030\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 " - + "\003(\tB\003\340A\001\022\026\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014arch" - + "ive_uris\030\006 \003(\tB\003\340A\001B\010\n\006driver\"q\n\013SparkRB" - + "atch\022\034\n\017main_r_file_uri\030\001 \001(\tB\003\340A\002\022\021\n\004ar" - + "gs\030\002 \003(\tB\003\340A\001\022\026\n\tfile_uris\030\003 \003(\tB\003\340A\001\022\031\n" - + "\014archive_uris\030\004 \003(\tB\003\340A\001\"\332\001\n\rSparkSqlBat" - + "ch\022\033\n\016query_file_uri\030\001 \001(\tB\003\340A\002\022Y\n\017query" - + "_variables\030\002 \003(\0132;.google.cloud.dataproc" - + ".v1.SparkSqlBatch.QueryVariablesEntryB\003\340" - + "A\001\022\032\n\rjar_file_uris\030\003 \003(\tB\003\340A\001\0325\n\023QueryV" - + "ariablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\0012\235\006\n\017BatchController\022\352\001\n\013CreateBatc" - + "h\022,.google.cloud.dataproc.v1.CreateBatch" - + "Request\032\035.google.longrunning.Operation\"\215" - + "\001\202\323\344\223\0024\"+/v1/{parent=projects/*/location" - + "s/*}/batches:\005batch\332A\025parent,batch,batch" - + "_id\312A8\n\005Batch\022/google.cloud.dataproc.v1." - + "BatchOperationMetadata\022\222\001\n\010GetBatch\022).go" - + "ogle.cloud.dataproc.v1.GetBatchRequest\032\037" - + ".google.cloud.dataproc.v1.Batch\":\202\323\344\223\002-\022" - + "+/v1/{name=projects/*/locations/*/batche" - + "s/*}\332A\004name\022\250\001\n\013ListBatches\022,.google.clo" - + "ud.dataproc.v1.ListBatchesRequest\032-.goog" - + "le.cloud.dataproc.v1.ListBatchesResponse" - + "\"<\202\323\344\223\002-\022+/v1/{parent=projects/*/locatio" - + "ns/*}/batches\332A\006parent\022\217\001\n\013DeleteBatch\022," - + ".google.cloud.dataproc.v1.DeleteBatchReq" - + "uest\032\026.google.protobuf.Empty\":\202\323\344\223\002-*+/v" - + "1/{name=projects/*/locations/*/batches/*" - + "}\332A\004name\032K\312A\027dataproc.googleapis.com\322A.h" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tformBp\n\034com.google.cloud.dataproc.v1B\014B" - + "atchesProtoP\001Z@google.golang.org/genprot" - + "o/googleapis/cloud/dataproc/v1;dataprocb" - + "\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.dataproc.v1.SharedProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor, - new java.lang.String[] { - "Parent", "Batch", "BatchId", "RequestId", - }); - internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor, - new java.lang.String[] { - "Batches", "NextPageToken", - }); - internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_dataproc_v1_Batch_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Batch_descriptor, - new java.lang.String[] { - "Name", - "Uuid", - "CreateTime", - "PysparkBatch", - "SparkBatch", - "SparkRBatch", - "SparkSqlBatch", - "RuntimeInfo", - "State", - "StateMessage", - "StateTime", - "Creator", - "Labels", - "RuntimeConfig", - "EnvironmentConfig", - "Operation", - "StateHistory", - "BatchConfig", - }); - internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor = - internal_static_google_cloud_dataproc_v1_Batch_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor, - new java.lang.String[] { - "State", "StateMessage", "StateStartTime", - }); - internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_Batch_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor, - new java.lang.String[] { - "MainPythonFileUri", - "Args", - "PythonFileUris", - "JarFileUris", - "FileUris", - "ArchiveUris", - }); - internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor, - new java.lang.String[] { - "MainJarFileUri", - "MainClass", - "Args", - "JarFileUris", - "FileUris", - "ArchiveUris", - "Driver", - }); - internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor, - new java.lang.String[] { - "MainRFileUri", "Args", "FileUris", "ArchiveUris", - }); - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor, - new java.lang.String[] { - "QueryFileUri", "QueryVariables", "JarFileUris", - }); - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.dataproc.v1.SharedProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java deleted file mode 100644 index 125c4937d0e2..000000000000 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java +++ /dev/null @@ -1,971 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public final class ClustersProto { - private ClustersProto() {} - - 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_dataproc_v1_Cluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ReservationAffinity_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/dataproc/v1/clusters.prot" - + "o\022\030google.cloud.dataproc.v1\032\034google/api/" - + "annotations.proto\032\027google/api/client.pro" - + "to\032\037google/api/field_behavior.proto\032\031goo" - + "gle/api/resource.proto\032%google/cloud/dat" - + "aproc/v1/shared.proto\032#google/longrunnin" - + "g/operations.proto\032\036google/protobuf/dura" - + "tion.proto\032 google/protobuf/field_mask.p" - + "roto\032\037google/protobuf/timestamp.proto\"\242\004" - + "\n\007Cluster\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\031\n\014cl" - + "uster_name\030\002 \001(\tB\003\340A\002\022<\n\006config\030\003 \001(\0132\'." - + "google.cloud.dataproc.v1.ClusterConfigB\003" - + "\340A\001\022S\n\026virtual_cluster_config\030\n \001(\0132..go" - + "ogle.cloud.dataproc.v1.VirtualClusterCon" - + "figB\003\340A\001\022B\n\006labels\030\010 \003(\0132-.google.cloud." - + "dataproc.v1.Cluster.LabelsEntryB\003\340A\001\022<\n\006" - + "status\030\004 \001(\0132\'.google.cloud.dataproc.v1." - + "ClusterStatusB\003\340A\003\022D\n\016status_history\030\007 \003" - + "(\0132\'.google.cloud.dataproc.v1.ClusterSta" - + "tusB\003\340A\003\022\031\n\014cluster_uuid\030\006 \001(\tB\003\340A\003\022>\n\007m" - + "etrics\030\t \001(\0132(.google.cloud.dataproc.v1." - + "ClusterMetricsB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\261\010\n\rClusterCo" - + "nfig\022\032\n\rconfig_bucket\030\001 \001(\tB\003\340A\001\022\030\n\013temp" - + "_bucket\030\002 \001(\tB\003\340A\001\022K\n\022gce_cluster_config" - + "\030\010 \001(\0132*.google.cloud.dataproc.v1.GceClu" - + "sterConfigB\003\340A\001\022I\n\rmaster_config\030\t \001(\0132-" - + ".google.cloud.dataproc.v1.InstanceGroupC" - + "onfigB\003\340A\001\022I\n\rworker_config\030\n \001(\0132-.goog" - + "le.cloud.dataproc.v1.InstanceGroupConfig" - + "B\003\340A\001\022S\n\027secondary_worker_config\030\014 \001(\0132-" - + ".google.cloud.dataproc.v1.InstanceGroupC" - + "onfigB\003\340A\001\022F\n\017software_config\030\r \001(\0132(.go" - + "ogle.cloud.dataproc.v1.SoftwareConfigB\003\340" - + "A\001\022W\n\026initialization_actions\030\013 \003(\01322.goo" - + "gle.cloud.dataproc.v1.NodeInitialization" - + "ActionB\003\340A\001\022J\n\021encryption_config\030\017 \001(\0132*" - + ".google.cloud.dataproc.v1.EncryptionConf" - + "igB\003\340A\001\022L\n\022autoscaling_config\030\022 \001(\0132+.go" - + "ogle.cloud.dataproc.v1.AutoscalingConfig" - + "B\003\340A\001\022F\n\017security_config\030\020 \001(\0132(.google." - + "cloud.dataproc.v1.SecurityConfigB\003\340A\001\022H\n" - + "\020lifecycle_config\030\021 \001(\0132).google.cloud.d" - + "ataproc.v1.LifecycleConfigB\003\340A\001\022F\n\017endpo" - + "int_config\030\023 \001(\0132(.google.cloud.dataproc" - + ".v1.EndpointConfigB\003\340A\001\022H\n\020metastore_con" - + "fig\030\024 \001(\0132).google.cloud.dataproc.v1.Met" - + "astoreConfigB\003\340A\001\022S\n\026dataproc_metric_con" - + "fig\030\027 \001(\0132..google.cloud.dataproc.v1.Dat" - + "aprocMetricConfigB\003\340A\001\"\204\002\n\024VirtualCluste" - + "rConfig\022\033\n\016staging_bucket\030\001 \001(\tB\003\340A\001\022[\n\031" - + "kubernetes_cluster_config\030\006 \001(\01321.google" - + ".cloud.dataproc.v1.KubernetesClusterConf" - + "igB\003\340A\002H\000\022Y\n\031auxiliary_services_config\030\007" - + " \001(\01321.google.cloud.dataproc.v1.Auxiliar" - + "yServicesConfigB\003\340A\001B\027\n\025infrastructure_c" - + "onfig\"\301\001\n\027AuxiliaryServicesConfig\022H\n\020met" - + "astore_config\030\001 \001(\0132).google.cloud.datap" - + "roc.v1.MetastoreConfigB\003\340A\001\022\\\n\033spark_his" - + "tory_server_config\030\002 \001(\01322.google.cloud." - + "dataproc.v1.SparkHistoryServerConfigB\003\340A" - + "\001\"\272\001\n\016EndpointConfig\022P\n\nhttp_ports\030\001 \003(\013" - + "27.google.cloud.dataproc.v1.EndpointConf" - + "ig.HttpPortsEntryB\003\340A\003\022$\n\027enable_http_po" - + "rt_access\030\002 \001(\010B\003\340A\001\0320\n\016HttpPortsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\",\n\021Autosc" - + "alingConfig\022\027\n\npolicy_uri\030\001 \001(\tB\003\340A\001\"4\n\020" - + "EncryptionConfig\022 \n\023gce_pd_kms_key_name\030" - + "\001 \001(\tB\003\340A\001\"\233\007\n\020GceClusterConfig\022\025\n\010zone_" - + "uri\030\001 \001(\tB\003\340A\001\022\030\n\013network_uri\030\002 \001(\tB\003\340A\001" - + "\022\033\n\016subnetwork_uri\030\006 \001(\tB\003\340A\001\022\035\n\020interna" - + "l_ip_only\030\007 \001(\010B\003\340A\001\022k\n\032private_ipv6_goo" - + "gle_access\030\014 \001(\0162B.google.cloud.dataproc" - + ".v1.GceClusterConfig.PrivateIpv6GoogleAc" - + "cessB\003\340A\001\022\034\n\017service_account\030\010 \001(\tB\003\340A\001\022" - + "#\n\026service_account_scopes\030\003 \003(\tB\003\340A\001\022\014\n\004" - + "tags\030\004 \003(\t\022J\n\010metadata\030\005 \003(\01328.google.cl" - + "oud.dataproc.v1.GceClusterConfig.Metadat" - + "aEntry\022P\n\024reservation_affinity\030\013 \001(\0132-.g" - + "oogle.cloud.dataproc.v1.ReservationAffin" - + "ityB\003\340A\001\022M\n\023node_group_affinity\030\r \001(\0132+." - + "google.cloud.dataproc.v1.NodeGroupAffini" - + "tyB\003\340A\001\022W\n\030shielded_instance_config\030\016 \001(" - + "\01320.google.cloud.dataproc.v1.ShieldedIns" - + "tanceConfigB\003\340A\001\022_\n\034confidential_instanc" - + "e_config\030\017 \001(\01324.google.cloud.dataproc.v" - + "1.ConfidentialInstanceConfigB\003\340A\001\032/\n\rMet" - + "adataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001\"\203\001\n\027PrivateIpv6GoogleAccess\022*\n&PRIVAT" - + "E_IPV6_GOOGLE_ACCESS_UNSPECIFIED\020\000\022\033\n\027IN" - + "HERIT_FROM_SUBNETWORK\020\001\022\014\n\010OUTBOUND\020\002\022\021\n" - + "\rBIDIRECTIONAL\020\003\"0\n\021NodeGroupAffinity\022\033\n" - + "\016node_group_uri\030\001 \001(\tB\003\340A\002\"}\n\026ShieldedIn" - + "stanceConfig\022\037\n\022enable_secure_boot\030\001 \001(\010" - + "B\003\340A\001\022\030\n\013enable_vtpm\030\002 \001(\010B\003\340A\001\022(\n\033enabl" - + "e_integrity_monitoring\030\003 \001(\010B\003\340A\001\"F\n\032Con" - + "fidentialInstanceConfig\022(\n\033enable_confid" - + "ential_compute\030\001 \001(\010B\003\340A\001\"\315\004\n\023InstanceGr" - + "oupConfig\022\032\n\rnum_instances\030\001 \001(\005B\003\340A\001\022\033\n" - + "\016instance_names\030\002 \003(\tB\003\340A\003\022\026\n\timage_uri\030" - + "\003 \001(\tB\003\340A\001\022\035\n\020machine_type_uri\030\004 \001(\tB\003\340A" - + "\001\022>\n\013disk_config\030\005 \001(\0132$.google.cloud.da" - + "taproc.v1.DiskConfigB\003\340A\001\022\033\n\016is_preempti" - + "ble\030\006 \001(\010B\003\340A\003\022Y\n\016preemptibility\030\n \001(\0162<" - + ".google.cloud.dataproc.v1.InstanceGroupC" - + "onfig.PreemptibilityB\003\340A\001\022O\n\024managed_gro" - + "up_config\030\007 \001(\0132,.google.cloud.dataproc." - + "v1.ManagedGroupConfigB\003\340A\003\022F\n\014accelerato" - + "rs\030\010 \003(\0132+.google.cloud.dataproc.v1.Acce" - + "leratorConfigB\003\340A\001\022\035\n\020min_cpu_platform\030\t" - + " \001(\tB\003\340A\001\"V\n\016Preemptibility\022\036\n\032PREEMPTIB" - + "ILITY_UNSPECIFIED\020\000\022\023\n\017NON_PREEMPTIBLE\020\001" - + "\022\017\n\013PREEMPTIBLE\020\002\"c\n\022ManagedGroupConfig\022" - + "#\n\026instance_template_name\030\001 \001(\tB\003\340A\003\022(\n\033" - + "instance_group_manager_name\030\002 \001(\tB\003\340A\003\"L" - + "\n\021AcceleratorConfig\022\034\n\024accelerator_type_" - + "uri\030\001 \001(\t\022\031\n\021accelerator_count\030\002 \001(\005\"\210\001\n" - + "\nDiskConfig\022\033\n\016boot_disk_type\030\003 \001(\tB\003\340A\001" - + "\022\036\n\021boot_disk_size_gb\030\001 \001(\005B\003\340A\001\022\033\n\016num_" - + "local_ssds\030\002 \001(\005B\003\340A\001\022 \n\023local_ssd_inter" - + "face\030\004 \001(\tB\003\340A\001\"s\n\030NodeInitializationAct" - + "ion\022\034\n\017executable_file\030\001 \001(\tB\003\340A\002\0229\n\021exe" - + "cution_timeout\030\002 \001(\0132\031.google.protobuf.D" - + "urationB\003\340A\001\"\307\003\n\rClusterStatus\022A\n\005state\030" - + "\001 \001(\0162-.google.cloud.dataproc.v1.Cluster" - + "Status.StateB\003\340A\003\022\026\n\006detail\030\002 \001(\tB\006\340A\003\340A" - + "\001\0229\n\020state_start_time\030\003 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\022G\n\010substate\030\004 \001(\01620" - + ".google.cloud.dataproc.v1.ClusterStatus." - + "SubstateB\003\340A\003\"\230\001\n\005State\022\013\n\007UNKNOWN\020\000\022\014\n\010" - + "CREATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003\022\027\n\023ER" - + "ROR_DUE_TO_UPDATE\020\t\022\014\n\010DELETING\020\004\022\014\n\010UPD" - + "ATING\020\005\022\014\n\010STOPPING\020\006\022\013\n\007STOPPED\020\007\022\014\n\010ST" - + "ARTING\020\010\"<\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022\r\n" - + "\tUNHEALTHY\020\001\022\020\n\014STALE_STATUS\020\002\"\240\001\n\016Secur" - + "ityConfig\022F\n\017kerberos_config\030\001 \001(\0132(.goo" - + "gle.cloud.dataproc.v1.KerberosConfigB\003\340A" - + "\001\022F\n\017identity_config\030\002 \001(\0132(.google.clou" - + "d.dataproc.v1.IdentityConfigB\003\340A\001\"\220\004\n\016Ke" - + "rberosConfig\022\034\n\017enable_kerberos\030\001 \001(\010B\003\340" - + "A\001\022(\n\033root_principal_password_uri\030\002 \001(\tB" - + "\003\340A\001\022\030\n\013kms_key_uri\030\003 \001(\tB\003\340A\001\022\031\n\014keysto" - + "re_uri\030\004 \001(\tB\003\340A\001\022\033\n\016truststore_uri\030\005 \001(" - + "\tB\003\340A\001\022\"\n\025keystore_password_uri\030\006 \001(\tB\003\340" - + "A\001\022\035\n\020key_password_uri\030\007 \001(\tB\003\340A\001\022$\n\027tru" - + "ststore_password_uri\030\010 \001(\tB\003\340A\001\022$\n\027cross" - + "_realm_trust_realm\030\t \001(\tB\003\340A\001\022\"\n\025cross_r" - + "ealm_trust_kdc\030\n \001(\tB\003\340A\001\022+\n\036cross_realm" - + "_trust_admin_server\030\013 \001(\tB\003\340A\001\0222\n%cross_" - + "realm_trust_shared_password_uri\030\014 \001(\tB\003\340" - + "A\001\022\033\n\016kdc_db_key_uri\030\r \001(\tB\003\340A\001\022\037\n\022tgt_l" - + "ifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n\005realm\030\017 \001(\tB" - + "\003\340A\001\"\306\001\n\016IdentityConfig\022r\n\034user_service_" - + "account_mapping\030\001 \003(\0132G.google.cloud.dat" - + "aproc.v1.IdentityConfig.UserServiceAccou" - + "ntMappingEntryB\003\340A\002\032@\n\036UserServiceAccoun" - + "tMappingEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001\"\371\001\n\016SoftwareConfig\022\032\n\rimage_versio" - + "n\030\001 \001(\tB\003\340A\001\022Q\n\nproperties\030\002 \003(\01328.googl" - + "e.cloud.dataproc.v1.SoftwareConfig.Prope" - + "rtiesEntryB\003\340A\001\022E\n\023optional_components\030\003" - + " \003(\0162#.google.cloud.dataproc.v1.Componen" - + "tB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\"\203\002\n\017LifecycleConfig\0227\n" - + "\017idle_delete_ttl\030\001 \001(\0132\031.google.protobuf" - + ".DurationB\003\340A\001\022;\n\020auto_delete_time\030\002 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\001H\000\0229\n\017a" - + "uto_delete_ttl\030\003 \001(\0132\031.google.protobuf.D" - + "urationB\003\340A\001H\000\0228\n\017idle_start_time\030\004 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003B\005\n\003ttl\"" - + "_\n\017MetastoreConfig\022L\n\032dataproc_metastore" - + "_service\030\001 \001(\tB(\340A\002\372A\"\n metastore.google" - + "apis.com/Service\"\377\002\n\024DataprocMetricConfi" - + "g\022K\n\007metrics\030\001 \003(\01325.google.cloud.datapr" - + "oc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200" - + "\001\n\006Metric\022W\n\rmetric_source\030\001 \001(\0162;.googl" - + "e.cloud.dataproc.v1.DataprocMetricConfig" - + ".MetricSourceB\003\340A\002\022\035\n\020metric_overrides\030\002" - + " \003(\tB\003\340A\001\"\226\001\n\014MetricSource\022\035\n\031METRIC_SOU" - + "RCE_UNSPECIFIED\020\000\022\035\n\031MONITORING_AGENT_DE" - + "FAULTS\020\001\022\010\n\004HDFS\020\002\022\t\n\005SPARK\020\003\022\010\n\004YARN\020\004\022" - + "\030\n\024SPARK_HISTORY_SERVER\020\005\022\017\n\013HIVESERVER2" - + "\020\006\"\232\002\n\016ClusterMetrics\022O\n\014hdfs_metrics\030\001 " - + "\003(\01329.google.cloud.dataproc.v1.ClusterMe" - + "trics.HdfsMetricsEntry\022O\n\014yarn_metrics\030\002" - + " \003(\01329.google.cloud.dataproc.v1.ClusterM" - + "etrics.YarnMetricsEntry\0322\n\020HdfsMetricsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0322\n\020Y" - + "arnMetricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\003:\0028\001\"\356\001\n\024CreateClusterRequest\022\027\n\nproj" - + "ect_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\0227" - + "\n\007cluster\030\002 \001(\0132!.google.cloud.dataproc." - + "v1.ClusterB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001" - + "\022V\n action_on_failed_primary_workers\030\005 \001" - + "(\0162\'.google.cloud.dataproc.v1.FailureAct" - + "ionB\003\340A\001\"\256\002\n\024UpdateClusterRequest\022\027\n\npro" - + "ject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\005 \001(\tB\003\340A\002\022" - + "\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\0227\n\007cluster\030\003 " - + "\001(\0132!.google.cloud.dataproc.v1.ClusterB\003" - + "\340A\002\022E\n\035graceful_decommission_timeout\030\006 \001" - + "(\0132\031.google.protobuf.DurationB\003\340A\001\0224\n\013up" - + "date_mask\030\004 \001(\0132\032.google.protobuf.FieldM" - + "askB\003\340A\002\022\027\n\nrequest_id\030\007 \001(\tB\003\340A\001\"\221\001\n\022St" - + "opClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A" - + "\002\022\023\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\003" - + " \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\n" - + "request_id\030\005 \001(\tB\003\340A\001\"\222\001\n\023StartClusterRe" - + "quest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region" - + "\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\003 \001(\tB\003\340A\002\022\031" - + "\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030" - + "\005 \001(\tB\003\340A\001\"\223\001\n\024DeleteClusterRequest\022\027\n\np" - + "roject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A" - + "\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_" - + "uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001" - + "\"\\\n\021GetClusterRequest\022\027\n\nproject_id\030\001 \001(" - + "\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_n" - + "ame\030\002 \001(\tB\003\340A\002\"\211\001\n\023ListClustersRequest\022\027" - + "\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\004 \001(\tB" - + "\003\340A\002\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\026\n\tpage_size\030\002" - + " \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"n\n\024Li" - + "stClustersResponse\0228\n\010clusters\030\001 \003(\0132!.g" - + "oogle.cloud.dataproc.v1.ClusterB\003\340A\003\022\034\n\017" - + "next_page_token\030\002 \001(\tB\003\340A\003\"a\n\026DiagnoseCl" - + "usterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n" - + "\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\t" - + "B\003\340A\002\"1\n\026DiagnoseClusterResults\022\027\n\noutpu" - + "t_uri\030\001 \001(\tB\003\340A\003\"\370\001\n\023ReservationAffinity" - + "\022Y\n\030consume_reservation_type\030\001 \001(\01622.goo" - + "gle.cloud.dataproc.v1.ReservationAffinit" - + "y.TypeB\003\340A\001\022\020\n\003key\030\002 \001(\tB\003\340A\001\022\023\n\006values\030" - + "\003 \003(\tB\003\340A\001\"_\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000" - + "\022\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY_RESERVATION\020" - + "\002\022\030\n\024SPECIFIC_RESERVATION\020\0032\344\020\n\021ClusterC" - + "ontroller\022\200\002\n\rCreateCluster\022..google.clo" - + "ud.dataproc.v1.CreateClusterRequest\032\035.go" - + "ogle.longrunning.Operation\"\237\001\202\323\344\223\002>\"3/v1" - + "/projects/{project_id}/regions/{region}/" - + "clusters:\007cluster\332A\031project_id,region,cl" - + "uster\312A<\n\007Cluster\0221google.cloud.dataproc" - + ".v1.ClusterOperationMetadata\022\250\002\n\rUpdateC" - + "luster\022..google.cloud.dataproc.v1.Update" - + "ClusterRequest\032\035.google.longrunning.Oper" - + "ation\"\307\001\202\323\344\223\002M2B/v1/projects/{project_id" - + "}/regions/{region}/clusters/{cluster_nam" - + "e}:\007cluster\332A2project_id,region,cluster_" - + "name,cluster,update_mask\312A<\n\007Cluster\0221go" - + "ogle.cloud.dataproc.v1.ClusterOperationM" - + "etadata\022\356\001\n\013StopCluster\022,.google.cloud.d" - + "ataproc.v1.StopClusterRequest\032\035.google.l" - + "ongrunning.Operation\"\221\001\202\323\344\223\002L\"G/v1/proje" - + "cts/{project_id}/regions/{region}/cluste" - + "rs/{cluster_name}:stop:\001*\312A<\n\007Cluster\0221g" - + "oogle.cloud.dataproc.v1.ClusterOperation" - + "Metadata\022\361\001\n\014StartCluster\022-.google.cloud" - + ".dataproc.v1.StartClusterRequest\032\035.googl" - + "e.longrunning.Operation\"\222\001\202\323\344\223\002M\"H/v1/pr" - + "ojects/{project_id}/regions/{region}/clu" - + "sters/{cluster_name}:start:\001*\312A<\n\007Cluste" - + "r\0221google.cloud.dataproc.v1.ClusterOpera" - + "tionMetadata\022\231\002\n\rDeleteCluster\022..google." - + "cloud.dataproc.v1.DeleteClusterRequest\032\035" - + ".google.longrunning.Operation\"\270\001\202\323\344\223\002D*B" - + "/v1/projects/{project_id}/regions/{regio" - + "n}/clusters/{cluster_name}\332A\036project_id," - + "region,cluster_name\312AJ\n\025google.protobuf." - + "Empty\0221google.cloud.dataproc.v1.ClusterO" - + "perationMetadata\022\311\001\n\nGetCluster\022+.google" - + ".cloud.dataproc.v1.GetClusterRequest\032!.g" - + "oogle.cloud.dataproc.v1.Cluster\"k\202\323\344\223\002D\022" - + "B/v1/projects/{project_id}/regions/{regi" - + "on}/clusters/{cluster_name}\332A\036project_id" - + ",region,cluster_name\022\331\001\n\014ListClusters\022-." - + "google.cloud.dataproc.v1.ListClustersReq" - + "uest\032..google.cloud.dataproc.v1.ListClus" - + "tersResponse\"j\202\323\344\223\0025\0223/v1/projects/{proj" - + "ect_id}/regions/{region}/clusters\332A\021proj" - + "ect_id,region\332A\030project_id,region,filter" - + "\022\252\002\n\017DiagnoseCluster\0220.google.cloud.data" - + "proc.v1.DiagnoseClusterRequest\032\035.google." - + "longrunning.Operation\"\305\001\202\323\344\223\002P\"K/v1/proj" - + "ects/{project_id}/regions/{region}/clust" - + "ers/{cluster_name}:diagnose:\001*\332A\036project" - + "_id,region,cluster_name\312AK\n\026DiagnoseClus" - + "terResults\0221google.cloud.dataproc.v1.Clu" - + "sterOperationMetadata\032K\312A\027dataproc.googl" - + "eapis.com\322A.https://www.googleapis.com/a" - + "uth/cloud-platformB\263\002\n\034com.google.cloud." - + "dataproc.v1B\rClustersProtoP\001Z@google.gol" - + "ang.org/genproto/googleapis/cloud/datapr" - + "oc/v1;dataproc\352A^\n container.googleapis." - + "com/Cluster\022:projects/{project}/location" - + "s/{location}/clusters/{cluster}\352A^\n meta" - + "store.googleapis.com/Service\022:projects/{" - + "project}/locations/{location}/services/{" - + "service}b\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.dataproc.v1.SharedProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1_Cluster_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Cluster_descriptor, - new java.lang.String[] { - "ProjectId", - "ClusterName", - "Config", - "VirtualClusterConfig", - "Labels", - "Status", - "StatusHistory", - "ClusterUuid", - "Metrics", - }); - internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_Cluster_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor, - new java.lang.String[] { - "ConfigBucket", - "TempBucket", - "GceClusterConfig", - "MasterConfig", - "WorkerConfig", - "SecondaryWorkerConfig", - "SoftwareConfig", - "InitializationActions", - "EncryptionConfig", - "AutoscalingConfig", - "SecurityConfig", - "LifecycleConfig", - "EndpointConfig", - "MetastoreConfig", - "DataprocMetricConfig", - }); - internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor, - new java.lang.String[] { - "StagingBucket", - "KubernetesClusterConfig", - "AuxiliaryServicesConfig", - "InfrastructureConfig", - }); - internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor, - new java.lang.String[] { - "MetastoreConfig", "SparkHistoryServerConfig", - }); - internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor, - new java.lang.String[] { - "HttpPorts", "EnableHttpPortAccess", - }); - internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor, - new java.lang.String[] { - "PolicyUri", - }); - internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor, - new java.lang.String[] { - "GcePdKmsKeyName", - }); - internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor, - new java.lang.String[] { - "ZoneUri", - "NetworkUri", - "SubnetworkUri", - "InternalIpOnly", - "PrivateIpv6GoogleAccess", - "ServiceAccount", - "ServiceAccountScopes", - "Tags", - "Metadata", - "ReservationAffinity", - "NodeGroupAffinity", - "ShieldedInstanceConfig", - "ConfidentialInstanceConfig", - }); - internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor = - internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor, - new java.lang.String[] { - "NodeGroupUri", - }); - internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor, - new java.lang.String[] { - "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", - }); - internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor, - new java.lang.String[] { - "EnableConfidentialCompute", - }); - internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor, - new java.lang.String[] { - "NumInstances", - "InstanceNames", - "ImageUri", - "MachineTypeUri", - "DiskConfig", - "IsPreemptible", - "Preemptibility", - "ManagedGroupConfig", - "Accelerators", - "MinCpuPlatform", - }); - internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor, - new java.lang.String[] { - "InstanceTemplateName", "InstanceGroupManagerName", - }); - internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor, - new java.lang.String[] { - "AcceleratorTypeUri", "AcceleratorCount", - }); - internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor, - new java.lang.String[] { - "BootDiskType", "BootDiskSizeGb", "NumLocalSsds", "LocalSsdInterface", - }); - internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor, - new java.lang.String[] { - "ExecutableFile", "ExecutionTimeout", - }); - internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor, - new java.lang.String[] { - "State", "Detail", "StateStartTime", "Substate", - }); - internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor, - new java.lang.String[] { - "KerberosConfig", "IdentityConfig", - }); - internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor, - new java.lang.String[] { - "EnableKerberos", - "RootPrincipalPasswordUri", - "KmsKeyUri", - "KeystoreUri", - "TruststoreUri", - "KeystorePasswordUri", - "KeyPasswordUri", - "TruststorePasswordUri", - "CrossRealmTrustRealm", - "CrossRealmTrustKdc", - "CrossRealmTrustAdminServer", - "CrossRealmTrustSharedPasswordUri", - "KdcDbKeyUri", - "TgtLifetimeHours", - "Realm", - }); - internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor, - new java.lang.String[] { - "UserServiceAccountMapping", - }); - internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor = - internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor, - new java.lang.String[] { - "ImageVersion", "Properties", "OptionalComponents", - }); - internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor, - new java.lang.String[] { - "IdleDeleteTtl", "AutoDeleteTime", "AutoDeleteTtl", "IdleStartTime", "Ttl", - }); - internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor, - new java.lang.String[] { - "DataprocMetastoreService", - }); - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor, - new java.lang.String[] { - "Metrics", - }); - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor = - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor, - new java.lang.String[] { - "MetricSource", "MetricOverrides", - }); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor, - new java.lang.String[] { - "HdfsMetrics", "YarnMetrics", - }); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "Cluster", "RequestId", "ActionOnFailedPrimaryWorkers", - }); - internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", - "Region", - "ClusterName", - "Cluster", - "GracefulDecommissionTimeout", - "UpdateMask", - "RequestId", - }); - internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", - }); - internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", - }); - internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", - }); - internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "ClusterName", - }); - internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor, - new java.lang.String[] { - "Clusters", "NextPageToken", - }); - internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "ClusterName", - }); - internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor, - new java.lang.String[] { - "OutputUri", - }); - internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor, - new java.lang.String[] { - "ConsumeReservationType", "Key", "Values", - }); - 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.resourceDefinition); - 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.dataproc.v1.SharedProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java deleted file mode 100644 index dcf27cf823f9..000000000000 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface ConfidentialInstanceConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ConfidentialInstanceConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Defines whether the instance should have confidential compute enabled.
-   * 
- * - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableConfidentialCompute. - */ - boolean getEnableConfidentialCompute(); -} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java deleted file mode 100644 index 63851c5bfd63..000000000000 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface DataprocMetricConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DataprocMetricConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Metrics sources to enable.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getMetricsList(); - /** - * - * - *
-   * Required. Metrics sources to enable.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getMetrics(int index); - /** - * - * - *
-   * Required. Metrics sources to enable.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getMetricsCount(); - /** - * - * - *
-   * Required. Metrics sources to enable.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getMetricsOrBuilderList(); - /** - * - * - *
-   * Required. Metrics sources to enable.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder getMetricsOrBuilder(int index); -} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java deleted file mode 100644 index 55c734caa408..000000000000 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -public interface DeleteBatchRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DeleteBatchRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the batch resource to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the batch resource to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java deleted file mode 100644 index 3ffbd5d84964..000000000000 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -public interface EnvironmentConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.EnvironmentConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Execution configuration for a workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the executionConfig field is set. - */ - boolean hasExecutionConfig(); - /** - * - * - *
-   * Optional. Execution configuration for a workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The executionConfig. - */ - com.google.cloud.dataproc.v1.ExecutionConfig getExecutionConfig(); - /** - * - * - *
-   * Optional. Execution configuration for a workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder getExecutionConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Peripherals configuration that workload has access to.
-   * 
- * - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the peripheralsConfig field is set. - */ - boolean hasPeripheralsConfig(); - /** - * - * - *
-   * Optional. Peripherals configuration that workload has access to.
-   * 
- * - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The peripheralsConfig. - */ - com.google.cloud.dataproc.v1.PeripheralsConfig getPeripheralsConfig(); - /** - * - * - *
-   * Optional. Peripherals configuration that workload has access to.
-   * 
- * - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder getPeripheralsConfigOrBuilder(); -} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java deleted file mode 100644 index e8b97dd46998..000000000000 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -public interface GetBatchRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetBatchRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the batch to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the batch to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java deleted file mode 100644 index 023e87a5431a..000000000000 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface IdentityConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.IdentityConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Map of user to service account.
-   * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getUserServiceAccountMappingCount(); - /** - * - * - *
-   * Required. Map of user to service account.
-   * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - boolean containsUserServiceAccountMapping(java.lang.String key); - /** Use {@link #getUserServiceAccountMappingMap()} instead. */ - @java.lang.Deprecated - java.util.Map getUserServiceAccountMapping(); - /** - * - * - *
-   * Required. Map of user to service account.
-   * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.Map getUserServiceAccountMappingMap(); - /** - * - * - *
-   * Required. Map of user to service account.
-   * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - - /* nullable */ - java.lang.String getUserServiceAccountMappingOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Required. Map of user to service account.
-   * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.lang.String getUserServiceAccountMappingOrThrow(java.lang.String key); -} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java deleted file mode 100644 index a65b1cfc8edc..000000000000 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface JobSchedulingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.JobScheduling) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Maximum number of times per hour a driver may be restarted as
-   * a result of driver exiting with non-zero code before job is
-   * reported failed.
-   * A job may be reported as thrashing if driver exits with non-zero code
-   * 4 times within 10 minute window.
-   * Maximum value is 10.
-   * **Note:** Currently, this restartable job option is
-   * not supported in Dataproc
-   * [workflow
-   * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-   * jobs.
-   * 
- * - * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The maxFailuresPerHour. - */ - int getMaxFailuresPerHour(); - - /** - * - * - *
-   * Optional. Maximum number of times in total a driver may be restarted as a result of
-   * driver exiting with non-zero code before job is reported failed.
-   * Maximum value is 240.
-   * **Note:** Currently, this restartable job option is
-   * not supported in Dataproc
-   * [workflow
-   * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-   * jobs.
-   * 
- * - * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The maxFailuresTotal. - */ - int getMaxFailuresTotal(); -} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java deleted file mode 100644 index 6ce22a02f71d..000000000000 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java +++ /dev/null @@ -1,825 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public final class JobsProto { - private JobsProto() {} - - 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_dataproc_v1_LoggingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_QueryList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_HiveJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PigJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_JobReference_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_Job_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DeleteJobRequest_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/dataproc/v1/jobs.proto\022\030g" - + "oogle.cloud.dataproc.v1\032\034google/api/anno" - + "tations.proto\032\027google/api/client.proto\032\037" - + "google/api/field_behavior.proto\032#google/" - + "longrunning/operations.proto\032\033google/pro" - + "tobuf/empty.proto\032 google/protobuf/field" - + "_mask.proto\032\037google/protobuf/timestamp.p" - + "roto\"\301\002\n\rLoggingConfig\022W\n\021driver_log_lev" - + "els\030\002 \003(\0132<.google.cloud.dataproc.v1.Log" - + "gingConfig.DriverLogLevelsEntry\032e\n\024Drive" - + "rLogLevelsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 " - + "\001(\0162-.google.cloud.dataproc.v1.LoggingCo" - + "nfig.Level:\0028\001\"p\n\005Level\022\025\n\021LEVEL_UNSPECI" - + "FIED\020\000\022\007\n\003ALL\020\001\022\t\n\005TRACE\020\002\022\t\n\005DEBUG\020\003\022\010\n" - + "\004INFO\020\004\022\010\n\004WARN\020\005\022\t\n\005ERROR\020\006\022\t\n\005FATAL\020\007\022" - + "\007\n\003OFF\020\010\"\361\002\n\tHadoopJob\022\033\n\021main_jar_file_" - + "uri\030\001 \001(\tH\000\022\024\n\nmain_class\030\002 \001(\tH\000\022\021\n\004arg" - + "s\030\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 \003(\tB\003\340A\001" - + "\022\026\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014archive_uris" - + "\030\006 \003(\tB\003\340A\001\022L\n\nproperties\030\007 \003(\01323.google" - + ".cloud.dataproc.v1.HadoopJob.PropertiesE" - + "ntryB\003\340A\001\022D\n\016logging_config\030\010 \001(\0132\'.goog" - + "le.cloud.dataproc.v1.LoggingConfigB\003\340A\001\032" - + "1\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t:\0028\001B\010\n\006driver\"\357\002\n\010SparkJob\022\033\n\021mai" - + "n_jar_file_uri\030\001 \001(\tH\000\022\024\n\nmain_class\030\002 \001" - + "(\tH\000\022\021\n\004args\030\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris" - + "\030\004 \003(\tB\003\340A\001\022\026\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014a" - + "rchive_uris\030\006 \003(\tB\003\340A\001\022K\n\nproperties\030\007 \003" - + "(\01322.google.cloud.dataproc.v1.SparkJob.P" - + "ropertiesEntryB\003\340A\001\022D\n\016logging_config\030\010 " - + "\001(\0132\'.google.cloud.dataproc.v1.LoggingCo" - + "nfigB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006driver\"\370\002\n\nPySpa" - + "rkJob\022!\n\024main_python_file_uri\030\001 \001(\tB\003\340A\002" - + "\022\021\n\004args\030\002 \003(\tB\003\340A\001\022\035\n\020python_file_uris\030" - + "\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 \003(\tB\003\340A\001\022\026" - + "\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014archive_uris\030\006" - + " \003(\tB\003\340A\001\022M\n\nproperties\030\007 \003(\01324.google.c" - + "loud.dataproc.v1.PySparkJob.PropertiesEn" - + "tryB\003\340A\001\022D\n\016logging_config\030\010 \001(\0132\'.googl" - + "e.cloud.dataproc.v1.LoggingConfigB\003\340A\001\0321" - + "\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\"!\n\tQueryList\022\024\n\007queries\030\001 \003(\tB" - + "\003\340A\002\"\265\003\n\007HiveJob\022\030\n\016query_file_uri\030\001 \001(\t" - + "H\000\0229\n\nquery_list\030\002 \001(\0132#.google.cloud.da" - + "taproc.v1.QueryListH\000\022 \n\023continue_on_fai" - + "lure\030\003 \001(\010B\003\340A\001\022U\n\020script_variables\030\004 \003(" - + "\01326.google.cloud.dataproc.v1.HiveJob.Scr" - + "iptVariablesEntryB\003\340A\001\022J\n\nproperties\030\005 \003" - + "(\01321.google.cloud.dataproc.v1.HiveJob.Pr" - + "opertiesEntryB\003\340A\001\022\032\n\rjar_file_uris\030\006 \003(" - + "\tB\003\340A\001\0326\n\024ScriptVariablesEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017PropertiesEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007que" - + "ries\"\345\003\n\013SparkSqlJob\022\030\n\016query_file_uri\030\001" - + " \001(\tH\000\0229\n\nquery_list\030\002 \001(\0132#.google.clou" - + "d.dataproc.v1.QueryListH\000\022Y\n\020script_vari" - + "ables\030\003 \003(\0132:.google.cloud.dataproc.v1.S" - + "parkSqlJob.ScriptVariablesEntryB\003\340A\001\022N\n\n" - + "properties\030\004 \003(\01325.google.cloud.dataproc" - + ".v1.SparkSqlJob.PropertiesEntryB\003\340A\001\022\032\n\r" - + "jar_file_uris\0308 \003(\tB\003\340A\001\022D\n\016logging_conf" - + "ig\030\006 \001(\0132\'.google.cloud.dataproc.v1.Logg" - + "ingConfigB\003\340A\001\0326\n\024ScriptVariablesEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017Proper" - + "tiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001B\t\n\007queries\"\370\003\n\006PigJob\022\030\n\016query_file_ur" - + "i\030\001 \001(\tH\000\0229\n\nquery_list\030\002 \001(\0132#.google.c" - + "loud.dataproc.v1.QueryListH\000\022 \n\023continue" - + "_on_failure\030\003 \001(\010B\003\340A\001\022T\n\020script_variabl" - + "es\030\004 \003(\01325.google.cloud.dataproc.v1.PigJ" - + "ob.ScriptVariablesEntryB\003\340A\001\022I\n\nproperti" - + "es\030\005 \003(\01320.google.cloud.dataproc.v1.PigJ" - + "ob.PropertiesEntryB\003\340A\001\022\032\n\rjar_file_uris" - + "\030\006 \003(\tB\003\340A\001\022D\n\016logging_config\030\007 \001(\0132\'.go" - + "ogle.cloud.dataproc.v1.LoggingConfigB\003\340A" - + "\001\0326\n\024ScriptVariablesEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\0321\n\017PropertiesEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007queries\"" - + "\266\002\n\tSparkRJob\022\034\n\017main_r_file_uri\030\001 \001(\tB\003" - + "\340A\002\022\021\n\004args\030\002 \003(\tB\003\340A\001\022\026\n\tfile_uris\030\003 \003(" - + "\tB\003\340A\001\022\031\n\014archive_uris\030\004 \003(\tB\003\340A\001\022L\n\npro" - + "perties\030\005 \003(\01323.google.cloud.dataproc.v1" - + ".SparkRJob.PropertiesEntryB\003\340A\001\022D\n\016loggi" - + "ng_config\030\006 \001(\0132\'.google.cloud.dataproc." - + "v1.LoggingConfigB\003\340A\001\0321\n\017PropertiesEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\212\003\n\tPre" - + "stoJob\022\030\n\016query_file_uri\030\001 \001(\tH\000\0229\n\nquer" - + "y_list\030\002 \001(\0132#.google.cloud.dataproc.v1." - + "QueryListH\000\022 \n\023continue_on_failure\030\003 \001(\010" - + "B\003\340A\001\022\032\n\routput_format\030\004 \001(\tB\003\340A\001\022\030\n\013cli" - + "ent_tags\030\005 \003(\tB\003\340A\001\022L\n\nproperties\030\006 \003(\0132" - + "3.google.cloud.dataproc.v1.PrestoJob.Pro" - + "pertiesEntryB\003\340A\001\022D\n\016logging_config\030\007 \001(" - + "\0132\'.google.cloud.dataproc.v1.LoggingConf" - + "igB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007queries\"\322\001\n\014JobPla" - + "cement\022\031\n\014cluster_name\030\001 \001(\tB\003\340A\002\022\031\n\014clu" - + "ster_uuid\030\002 \001(\tB\003\340A\003\022V\n\016cluster_labels\030\003" - + " \003(\01329.google.cloud.dataproc.v1.JobPlace" - + "ment.ClusterLabelsEntryB\003\340A\001\0324\n\022ClusterL" - + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001\"\331\003\n\tJobStatus\022=\n\005state\030\001 \001(\0162).google" - + ".cloud.dataproc.v1.JobStatus.StateB\003\340A\003\022" - + "\027\n\007details\030\002 \001(\tB\006\340A\003\340A\001\0229\n\020state_start_" - + "time\030\006 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\022C\n\010substate\030\007 \001(\0162,.google.cloud.dat" - + "aproc.v1.JobStatus.SubstateB\003\340A\003\"\251\001\n\005Sta" - + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\016" - + "\n\nSETUP_DONE\020\010\022\013\n\007RUNNING\020\002\022\022\n\016CANCEL_PE" - + "NDING\020\003\022\022\n\016CANCEL_STARTED\020\007\022\r\n\tCANCELLED" - + "\020\004\022\010\n\004DONE\020\005\022\t\n\005ERROR\020\006\022\023\n\017ATTEMPT_FAILU" - + "RE\020\t\"H\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022\r\n\tSUB" - + "MITTED\020\001\022\n\n\006QUEUED\020\002\022\020\n\014STALE_STATUS\020\003\"<" - + "\n\014JobReference\022\027\n\nproject_id\030\001 \001(\tB\003\340A\001\022" - + "\023\n\006job_id\030\002 \001(\tB\003\340A\001\"\245\002\n\017YarnApplication" - + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022C\n\005state\030\002 \001(\0162/.goo" - + "gle.cloud.dataproc.v1.YarnApplication.St" - + "ateB\003\340A\002\022\025\n\010progress\030\003 \001(\002B\003\340A\002\022\031\n\014track" - + "ing_url\030\004 \001(\tB\003\340A\001\"\207\001\n\005State\022\025\n\021STATE_UN" - + "SPECIFIED\020\000\022\007\n\003NEW\020\001\022\016\n\nNEW_SAVING\020\002\022\r\n\t" - + "SUBMITTED\020\003\022\014\n\010ACCEPTED\020\004\022\013\n\007RUNNING\020\005\022\014" - + "\n\010FINISHED\020\006\022\n\n\006FAILED\020\007\022\n\n\006KILLED\020\010\"\377\010\n" - + "\003Job\022>\n\treference\030\001 \001(\0132&.google.cloud.d" - + "ataproc.v1.JobReferenceB\003\340A\001\022>\n\tplacemen" - + "t\030\002 \001(\0132&.google.cloud.dataproc.v1.JobPl" - + "acementB\003\340A\002\022>\n\nhadoop_job\030\003 \001(\0132#.googl" - + "e.cloud.dataproc.v1.HadoopJobB\003\340A\001H\000\022<\n\t" - + "spark_job\030\004 \001(\0132\".google.cloud.dataproc." - + "v1.SparkJobB\003\340A\001H\000\022@\n\013pyspark_job\030\005 \001(\0132" - + "$.google.cloud.dataproc.v1.PySparkJobB\003\340" - + "A\001H\000\022:\n\010hive_job\030\006 \001(\0132!.google.cloud.da" - + "taproc.v1.HiveJobB\003\340A\001H\000\0228\n\007pig_job\030\007 \001(" - + "\0132 .google.cloud.dataproc.v1.PigJobB\003\340A\001" - + "H\000\022?\n\013spark_r_job\030\025 \001(\0132#.google.cloud.d" - + "ataproc.v1.SparkRJobB\003\340A\001H\000\022C\n\rspark_sql" - + "_job\030\014 \001(\0132%.google.cloud.dataproc.v1.Sp" - + "arkSqlJobB\003\340A\001H\000\022>\n\npresto_job\030\027 \001(\0132#.g" - + "oogle.cloud.dataproc.v1.PrestoJobB\003\340A\001H\000" - + "\0228\n\006status\030\010 \001(\0132#.google.cloud.dataproc" - + ".v1.JobStatusB\003\340A\003\022@\n\016status_history\030\r \003" - + "(\0132#.google.cloud.dataproc.v1.JobStatusB" - + "\003\340A\003\022I\n\021yarn_applications\030\t \003(\0132).google" - + ".cloud.dataproc.v1.YarnApplicationB\003\340A\003\022" - + "\'\n\032driver_output_resource_uri\030\021 \001(\tB\003\340A\003" - + "\022%\n\030driver_control_files_uri\030\017 \001(\tB\003\340A\003\022" - + ">\n\006labels\030\022 \003(\0132).google.cloud.dataproc." - + "v1.Job.LabelsEntryB\003\340A\001\022@\n\nscheduling\030\024 " - + "\001(\0132\'.google.cloud.dataproc.v1.JobSchedu" - + "lingB\003\340A\001\022\025\n\010job_uuid\030\026 \001(\tB\003\340A\003\022\021\n\004done" - + "\030\030 \001(\010B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001B\n\n\010type_job\"T\n\rJobSch" - + "eduling\022\"\n\025max_failures_per_hour\030\001 \001(\005B\003" - + "\340A\001\022\037\n\022max_failures_total\030\002 \001(\005B\003\340A\001\"\212\001\n" - + "\020SubmitJobRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340" - + "A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022/\n\003job\030\002 \001(\0132\035.g" - + "oogle.cloud.dataproc.v1.JobB\003\340A\002\022\027\n\nrequ" - + "est_id\030\004 \001(\tB\003\340A\001\"\256\001\n\013JobMetadata\022\023\n\006job" - + "_id\030\001 \001(\tB\003\340A\003\0228\n\006status\030\002 \001(\0132#.google." - + "cloud.dataproc.v1.JobStatusB\003\340A\003\022\033\n\016oper" - + "ation_type\030\003 \001(\tB\003\340A\003\0223\n\nstart_time\030\004 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\"R\n\rGe" - + "tJobRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006" - + "region\030\003 \001(\tB\003\340A\002\022\023\n\006job_id\030\002 \001(\tB\003\340A\002\"\263" - + "\002\n\017ListJobsRequest\022\027\n\nproject_id\030\001 \001(\tB\003" - + "\340A\002\022\023\n\006region\030\006 \001(\tB\003\340A\002\022\026\n\tpage_size\030\002 " - + "\001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\031\n\014clu" - + "ster_name\030\004 \001(\tB\003\340A\001\022Y\n\021job_state_matche" - + "r\030\005 \001(\01629.google.cloud.dataproc.v1.ListJ" - + "obsRequest.JobStateMatcherB\003\340A\001\022\023\n\006filte" - + "r\030\007 \001(\tB\003\340A\001\"6\n\017JobStateMatcher\022\007\n\003ALL\020\000" - + "\022\n\n\006ACTIVE\020\001\022\016\n\nNON_ACTIVE\020\002\"\274\001\n\020UpdateJ" - + "obRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006re" - + "gion\030\002 \001(\tB\003\340A\002\022\023\n\006job_id\030\003 \001(\tB\003\340A\002\022/\n\003" - + "job\030\004 \001(\0132\035.google.cloud.dataproc.v1.Job" - + "B\003\340A\002\0224\n\013update_mask\030\005 \001(\0132\032.google.prot" - + "obuf.FieldMaskB\003\340A\002\"b\n\020ListJobsResponse\022" - + "0\n\004jobs\030\001 \003(\0132\035.google.cloud.dataproc.v1" - + ".JobB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"" - + "U\n\020CancelJobRequest\022\027\n\nproject_id\030\001 \001(\tB" - + "\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\023\n\006job_id\030\002 \001(" - + "\tB\003\340A\002\"U\n\020DeleteJobRequest\022\027\n\nproject_id" - + "\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\023\n\006job_" - + "id\030\002 \001(\tB\003\340A\0022\374\n\n\rJobController\022\261\001\n\tSubm" - + "itJob\022*.google.cloud.dataproc.v1.SubmitJ" - + "obRequest\032\035.google.cloud.dataproc.v1.Job" - + "\"Y\202\323\344\223\002;\"6/v1/projects/{project_id}/regi" - + "ons/{region}/jobs:submit:\001*\332A\025project_id" - + ",region,job\022\336\001\n\024SubmitJobAsOperation\022*.g" - + "oogle.cloud.dataproc.v1.SubmitJobRequest" - + "\032\035.google.longrunning.Operation\"{\202\323\344\223\002F\"" - + "A/v1/projects/{project_id}/regions/{regi" - + "on}/jobs:submitAsOperation:\001*\332A\027project_" - + "id, region, job\312A\022\n\003Job\022\013JobMetadata\022\255\001\n" - + "\006GetJob\022\'.google.cloud.dataproc.v1.GetJo" - + "bRequest\032\035.google.cloud.dataproc.v1.Job\"" - + "[\202\323\344\223\002:\0228/v1/projects/{project_id}/regio" - + "ns/{region}/jobs/{job_id}\332A\030project_id,r" - + "egion,job_id\022\311\001\n\010ListJobs\022).google.cloud" - + ".dataproc.v1.ListJobsRequest\032*.google.cl" - + "oud.dataproc.v1.ListJobsResponse\"f\202\323\344\223\0021" - + "\022//v1/projects/{project_id}/regions/{reg" - + "ion}/jobs\332A\021project_id,region\332A\030project_" - + "id,region,filter\022\235\001\n\tUpdateJob\022*.google." - + "cloud.dataproc.v1.UpdateJobRequest\032\035.goo" - + "gle.cloud.dataproc.v1.Job\"E\202\323\344\223\002?28/v1/p" - + "rojects/{project_id}/regions/{region}/jo" - + "bs/{job_id}:\003job\022\275\001\n\tCancelJob\022*.google." - + "cloud.dataproc.v1.CancelJobRequest\032\035.goo" - + "gle.cloud.dataproc.v1.Job\"e\202\323\344\223\002D\"?/v1/p" - + "rojects/{project_id}/regions/{region}/jo" - + "bs/{job_id}:cancel:\001*\332A\030project_id,regio" - + "n,job_id\022\254\001\n\tDeleteJob\022*.google.cloud.da" - + "taproc.v1.DeleteJobRequest\032\026.google.prot" - + "obuf.Empty\"[\202\323\344\223\002:*8/v1/projects/{projec" - + "t_id}/regions/{region}/jobs/{job_id}\332A\030p" - + "roject_id,region,job_id\032K\312A\027dataproc.goo" - + "gleapis.com\322A.https://www.googleapis.com" - + "/auth/cloud-platformBm\n\034com.google.cloud" - + ".dataproc.v1B\tJobsProtoP\001Z@google.golang" - + ".org/genproto/googleapis/cloud/dataproc/" - + "v1;dataprocb\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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor, - new java.lang.String[] { - "DriverLogLevels", - }); - internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor, - new java.lang.String[] { - "MainJarFileUri", - "MainClass", - "Args", - "JarFileUris", - "FileUris", - "ArchiveUris", - "Properties", - "LoggingConfig", - "Driver", - }); - internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_SparkJob_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkJob_descriptor, - new java.lang.String[] { - "MainJarFileUri", - "MainClass", - "Args", - "JarFileUris", - "FileUris", - "ArchiveUris", - "Properties", - "LoggingConfig", - "Driver", - }); - internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_SparkJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor, - new java.lang.String[] { - "MainPythonFileUri", - "Args", - "PythonFileUris", - "JarFileUris", - "FileUris", - "ArchiveUris", - "Properties", - "LoggingConfig", - }); - internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_QueryList_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_QueryList_descriptor, - new java.lang.String[] { - "Queries", - }); - internal_static_google_cloud_dataproc_v1_HiveJob_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_HiveJob_descriptor, - new java.lang.String[] { - "QueryFileUri", - "QueryList", - "ContinueOnFailure", - "ScriptVariables", - "Properties", - "JarFileUris", - "Queries", - }); - internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_HiveJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_HiveJob_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor, - new java.lang.String[] { - "QueryFileUri", - "QueryList", - "ScriptVariables", - "Properties", - "JarFileUris", - "LoggingConfig", - "Queries", - }); - internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_PigJob_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PigJob_descriptor, - new java.lang.String[] { - "QueryFileUri", - "QueryList", - "ContinueOnFailure", - "ScriptVariables", - "Properties", - "JarFileUris", - "LoggingConfig", - "Queries", - }); - internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_PigJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_PigJob_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor, - new java.lang.String[] { - "MainRFileUri", "Args", "FileUris", "ArchiveUris", "Properties", "LoggingConfig", - }); - internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor, - new java.lang.String[] { - "QueryFileUri", - "QueryList", - "ContinueOnFailure", - "OutputFormat", - "ClientTags", - "Properties", - "LoggingConfig", - "Queries", - }); - internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor, - new java.lang.String[] { - "ClusterName", "ClusterUuid", "ClusterLabels", - }); - internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_JobStatus_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_JobStatus_descriptor, - new java.lang.String[] { - "State", "Details", "StateStartTime", "Substate", - }); - internal_static_google_cloud_dataproc_v1_JobReference_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_JobReference_descriptor, - new java.lang.String[] { - "ProjectId", "JobId", - }); - internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor, - new java.lang.String[] { - "Name", "State", "Progress", "TrackingUrl", - }); - internal_static_google_cloud_dataproc_v1_Job_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Job_descriptor, - new java.lang.String[] { - "Reference", - "Placement", - "HadoopJob", - "SparkJob", - "PysparkJob", - "HiveJob", - "PigJob", - "SparkRJob", - "SparkSqlJob", - "PrestoJob", - "Status", - "StatusHistory", - "YarnApplications", - "DriverOutputResourceUri", - "DriverControlFilesUri", - "Labels", - "Scheduling", - "JobUuid", - "Done", - "TypeJob", - }); - internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_Job_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor, - new java.lang.String[] { - "MaxFailuresPerHour", "MaxFailuresTotal", - }); - internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "Job", "RequestId", - }); - internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor, - new java.lang.String[] { - "JobId", "Status", "OperationType", "StartTime", - }); - internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "JobId", - }); - internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor, - new java.lang.String[] { - "ProjectId", - "Region", - "PageSize", - "PageToken", - "ClusterName", - "JobStateMatcher", - "Filter", - }); - internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "JobId", "Job", "UpdateMask", - }); - internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor, - new java.lang.String[] { - "Jobs", "NextPageToken", - }); - internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "JobId", - }); - internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_dataproc_v1_DeleteJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "JobId", - }); - 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.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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java deleted file mode 100644 index c0c1d17bc9aa..000000000000 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface MetastoreConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.MetastoreConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of an existing Dataproc Metastore service.
-   * Example:
-   * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
-   * 
- * - * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The dataprocMetastoreService. - */ - java.lang.String getDataprocMetastoreService(); - /** - * - * - *
-   * Required. Resource name of an existing Dataproc Metastore service.
-   * Example:
-   * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
-   * 
- * - * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for dataprocMetastoreService. - */ - com.google.protobuf.ByteString getDataprocMetastoreServiceBytes(); -} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java deleted file mode 100644 index bda660402bb0..000000000000 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/operations.proto - -package com.google.cloud.dataproc.v1; - -public final class OperationsProto { - private OperationsProto() {} - - 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_dataproc_v1_BatchOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_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/dataproc/v1/operations.pr" - + "oto\022\030google.cloud.dataproc.v1\032\037google/ap" - + "i/field_behavior.proto\032\037google/protobuf/" - + "timestamp.proto\"\343\003\n\026BatchOperationMetada" - + "ta\022\r\n\005batch\030\001 \001(\t\022\022\n\nbatch_uuid\030\002 \001(\t\022/\n" - + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" - + "estamp\022-\n\tdone_time\030\004 \001(\0132\032.google.proto" - + "buf.Timestamp\022[\n\016operation_type\030\006 \001(\0162C." - + "google.cloud.dataproc.v1.BatchOperationM" - + "etadata.BatchOperationType\022\023\n\013descriptio" - + "n\030\007 \001(\t\022L\n\006labels\030\010 \003(\0132<.google.cloud.d" - + "ataproc.v1.BatchOperationMetadata.Labels" - + "Entry\022\020\n\010warnings\030\t \003(\t\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\022BatchO" - + "perationType\022$\n BATCH_OPERATION_TYPE_UNS" - + "PECIFIED\020\000\022\t\n\005BATCH\020\001\"\211\002\n\026ClusterOperati" - + "onStatus\022J\n\005state\030\001 \001(\01626.google.cloud.d" - + "ataproc.v1.ClusterOperationStatus.StateB" - + "\003\340A\003\022\030\n\013inner_state\030\002 \001(\tB\003\340A\003\022\024\n\007detail" - + "s\030\003 \001(\tB\003\340A\003\0229\n\020state_start_time\030\004 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\"8\n\005State" - + "\022\013\n\007UNKNOWN\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022" - + "\010\n\004DONE\020\003\"\270\003\n\030ClusterOperationMetadata\022\031" - + "\n\014cluster_name\030\007 \001(\tB\003\340A\003\022\031\n\014cluster_uui" - + "d\030\010 \001(\tB\003\340A\003\022E\n\006status\030\t \001(\01320.google.cl" - + "oud.dataproc.v1.ClusterOperationStatusB\003" - + "\340A\003\022M\n\016status_history\030\n \003(\01320.google.clo" - + "ud.dataproc.v1.ClusterOperationStatusB\003\340" - + "A\003\022\033\n\016operation_type\030\013 \001(\tB\003\340A\003\022\030\n\013descr" - + "iption\030\014 \001(\tB\003\340A\003\022S\n\006labels\030\r \003(\0132>.goog" - + "le.cloud.dataproc.v1.ClusterOperationMet" - + "adata.LabelsEntryB\003\340A\003\022\025\n\010warnings\030\016 \003(\t" - + "B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001Bs\n\034com.google.cloud.datapro" - + "c.v1B\017OperationsProtoP\001Z@google.golang.o" - + "rg/genproto/googleapis/cloud/dataproc/v1" - + ";dataprocb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor, - new java.lang.String[] { - "Batch", - "BatchUuid", - "CreateTime", - "DoneTime", - "OperationType", - "Description", - "Labels", - "Warnings", - }); - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor, - new java.lang.String[] { - "State", "InnerState", "Details", "StateStartTime", - }); - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor, - new java.lang.String[] { - "ClusterName", - "ClusterUuid", - "Status", - "StatusHistory", - "OperationType", - "Description", - "Labels", - "Warnings", - }); - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java deleted file mode 100644 index d1d12ca9472c..000000000000 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java +++ /dev/null @@ -1,358 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -public final class SharedProto { - private SharedProto() {} - - 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_dataproc_v1_RuntimeConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_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/dataproc/v1/shared.proto\022" - + "\030google.cloud.dataproc.v1\032\037google/api/fi" - + "eld_behavior.proto\"\310\001\n\rRuntimeConfig\022\024\n\007" - + "version\030\001 \001(\tB\003\340A\001\022\034\n\017container_image\030\002 " - + "\001(\tB\003\340A\001\022P\n\nproperties\030\003 \003(\01327.google.cl" - + "oud.dataproc.v1.RuntimeConfig.Properties" - + "EntryB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\253\001\n\021EnvironmentCon" - + "fig\022H\n\020execution_config\030\001 \001(\0132).google.c" - + "loud.dataproc.v1.ExecutionConfigB\003\340A\001\022L\n" - + "\022peripherals_config\030\002 \001(\0132+.google.cloud" - + ".dataproc.v1.PeripheralsConfigB\003\340A\001\"\246\001\n\017" - + "ExecutionConfig\022\034\n\017service_account\030\002 \001(\t" - + "B\003\340A\001\022\032\n\013network_uri\030\004 \001(\tB\003\340A\001H\000\022\035\n\016sub" - + "network_uri\030\005 \001(\tB\003\340A\001H\000\022\031\n\014network_tags" - + "\030\006 \003(\tB\003\340A\001\022\024\n\007kms_key\030\007 \001(\tB\003\340A\001B\t\n\007net" - + "work\"9\n\030SparkHistoryServerConfig\022\035\n\020data" - + "proc_cluster\030\001 \001(\tB\003\340A\001\"\221\001\n\021PeripheralsC" - + "onfig\022\036\n\021metastore_service\030\001 \001(\tB\003\340A\001\022\\\n" - + "\033spark_history_server_config\030\002 \001(\01322.goo" - + "gle.cloud.dataproc.v1.SparkHistoryServer" - + "ConfigB\003\340A\001\"\312\001\n\013RuntimeInfo\022L\n\tendpoints" - + "\030\001 \003(\01324.google.cloud.dataproc.v1.Runtim" - + "eInfo.EndpointsEntryB\003\340A\003\022\027\n\noutput_uri\030" - + "\002 \001(\tB\003\340A\003\022\"\n\025diagnostic_output_uri\030\003 \001(" - + "\tB\003\340A\003\0320\n\016EndpointsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\177\n\020GkeClusterConfig\022\037\n\022" - + "gke_cluster_target\030\002 \001(\tB\003\340A\001\022J\n\020node_po" - + "ol_target\030\003 \003(\0132+.google.cloud.dataproc." - + "v1.GkeNodePoolTargetB\003\340A\001\"\362\001\n\027Kubernetes" - + "ClusterConfig\022!\n\024kubernetes_namespace\030\001 " - + "\001(\tB\003\340A\001\022M\n\022gke_cluster_config\030\002 \001(\0132*.g" - + "oogle.cloud.dataproc.v1.GkeClusterConfig" - + "B\003\340A\002H\000\022[\n\032kubernetes_software_config\030\003 " - + "\001(\01322.google.cloud.dataproc.v1.Kubernete" - + "sSoftwareConfigB\003\340A\001B\010\n\006config\"\303\002\n\030Kuber" - + "netesSoftwareConfig\022c\n\021component_version" - + "\030\001 \003(\0132H.google.cloud.dataproc.v1.Kubern" - + "etesSoftwareConfig.ComponentVersionEntry" - + "\022V\n\nproperties\030\002 \003(\0132B.google.cloud.data" - + "proc.v1.KubernetesSoftwareConfig.Propert" - + "iesEntry\0327\n\025ComponentVersionEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017PropertiesE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\236\002\n" - + "\021GkeNodePoolTarget\022\026\n\tnode_pool\030\001 \001(\tB\003\340" - + "A\002\022D\n\005roles\030\002 \003(\01620.google.cloud.datapro" - + "c.v1.GkeNodePoolTarget.RoleB\003\340A\002\022J\n\020node" - + "_pool_config\030\003 \001(\0132+.google.cloud.datapr" - + "oc.v1.GkeNodePoolConfigB\003\340A\001\"_\n\004Role\022\024\n\020" - + "ROLE_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\016\n\nCONTR" - + "OLLER\020\002\022\020\n\014SPARK_DRIVER\020\003\022\022\n\016SPARK_EXECU" - + "TOR\020\004\"\355\004\n\021GkeNodePoolConfig\022N\n\006config\030\002 " - + "\001(\01329.google.cloud.dataproc.v1.GkeNodePo" - + "olConfig.GkeNodeConfigB\003\340A\001\022\026\n\tlocations" - + "\030\r \003(\tB\003\340A\001\022b\n\013autoscaling\030\004 \001(\0132H.googl" - + "e.cloud.dataproc.v1.GkeNodePoolConfig.Gk" - + "eNodePoolAutoscalingConfigB\003\340A\001\032\346\001\n\rGkeN" - + "odeConfig\022\031\n\014machine_type\030\001 \001(\tB\003\340A\001\022\030\n\013" - + "preemptible\030\n \001(\010B\003\340A\001\022\034\n\017local_ssd_coun" - + "t\030\007 \001(\005B\003\340A\001\022c\n\014accelerators\030\013 \003(\0132H.goo" - + "gle.cloud.dataproc.v1.GkeNodePoolConfig." - + "GkeNodePoolAcceleratorConfigB\003\340A\001\022\035\n\020min" - + "_cpu_platform\030\r \001(\tB\003\340A\001\032S\n\034GkeNodePoolA" - + "cceleratorConfig\022\031\n\021accelerator_count\030\001 " - + "\001(\003\022\030\n\020accelerator_type\030\002 \001(\t\032N\n\034GkeNode" - + "PoolAutoscalingConfig\022\026\n\016min_node_count\030" - + "\002 \001(\005\022\026\n\016max_node_count\030\003 \001(\005*\277\001\n\tCompon" - + "ent\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\014\n\010ANACON" - + "DA\020\005\022\n\n\006DOCKER\020\r\022\t\n\005DRUID\020\t\022\t\n\005FLINK\020\016\022\t" - + "\n\005HBASE\020\013\022\020\n\014HIVE_WEBHCAT\020\003\022\013\n\007JUPYTER\020\001" - + "\022\n\n\006PRESTO\020\006\022\n\n\006RANGER\020\014\022\010\n\004SOLR\020\n\022\014\n\010ZE" - + "PPELIN\020\004\022\r\n\tZOOKEEPER\020\010*J\n\rFailureAction" - + "\022\036\n\032FAILURE_ACTION_UNSPECIFIED\020\000\022\r\n\tNO_A" - + "CTION\020\001\022\n\n\006DELETE\020\002Bo\n\034com.google.cloud." - + "dataproc.v1B\013SharedProtoP\001Z@google.golan" - + "g.org/genproto/googleapis/cloud/dataproc" - + "/v1;dataprocb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor, - new java.lang.String[] { - "Version", "ContainerImage", "Properties", - }); - internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor, - new java.lang.String[] { - "ExecutionConfig", "PeripheralsConfig", - }); - internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor, - new java.lang.String[] { - "ServiceAccount", "NetworkUri", "SubnetworkUri", "NetworkTags", "KmsKey", "Network", - }); - internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor, - new java.lang.String[] { - "DataprocCluster", - }); - internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor, - new java.lang.String[] { - "MetastoreService", "SparkHistoryServerConfig", - }); - internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor, - new java.lang.String[] { - "Endpoints", "OutputUri", "DiagnosticOutputUri", - }); - internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor, - new java.lang.String[] { - "GkeClusterTarget", "NodePoolTarget", - }); - internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor, - new java.lang.String[] { - "KubernetesNamespace", "GkeClusterConfig", "KubernetesSoftwareConfig", "Config", - }); - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor, - new java.lang.String[] { - "ComponentVersion", "Properties", - }); - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor = - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor, - new java.lang.String[] { - "NodePool", "Roles", "NodePoolConfig", - }); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor, - new java.lang.String[] { - "Config", "Locations", "Autoscaling", - }); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor = - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor, - new java.lang.String[] { - "MachineType", "Preemptible", "LocalSsdCount", "Accelerators", "MinCpuPlatform", - }); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor = - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor, - new java.lang.String[] { - "AcceleratorCount", "AcceleratorType", - }); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor = - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor, - new java.lang.String[] { - "MinNodeCount", "MaxNodeCount", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java deleted file mode 100644 index 6ca8ce6df66a..000000000000 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -public interface UpdateAutoscalingPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The updated autoscaling policy.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policy field is set. - */ - boolean hasPolicy(); - /** - * - * - *
-   * Required. The updated autoscaling policy.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policy. - */ - com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy(); - /** - * - * - *
-   * Required. The updated autoscaling policy.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder(); -} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java deleted file mode 100644 index 0d428c4aba75..000000000000 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface UpdateWorkflowTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The updated workflow template.
-   * The `template.version` field must match the current version.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - boolean hasTemplate(); - /** - * - * - *
-   * Required. The updated workflow template.
-   * The `template.version` field must match the current version.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate(); - /** - * - * - *
-   * Required. The updated workflow template.
-   * The `template.version` field must match the current version.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder(); -} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java deleted file mode 100644 index c1aefd7ffb66..000000000000 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface WorkflowGraphOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.WorkflowGraph) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getNodesList(); - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.WorkflowNode getNodes(int index); - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getNodesCount(); - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getNodesOrBuilderList(); - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder getNodesOrBuilder(int index); -} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java deleted file mode 100644 index b5036aaf926b..000000000000 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java +++ /dev/null @@ -1,640 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public final class WorkflowTemplatesProto { - private WorkflowTemplatesProto() {} - - 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_dataproc_v1_WorkflowTemplate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_WorkflowTemplate_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowTemplate_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ManagedCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ManagedCluster_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ManagedCluster_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterSelector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterSelector_ClusterLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterSelector_ClusterLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_OrderedJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_OrderedJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_OrderedJob_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_OrderedJob_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_TemplateParameter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ParameterValidation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_RegexValidation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ValueValidation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_WorkflowMetadata_ParametersEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowMetadata_ParametersEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterOperation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowGraph_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowNode_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_ParametersEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_ParametersEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/dataproc/v1/workflow_temp" - + "lates.proto\022\030google.cloud.dataproc.v1\032\034g" - + "oogle/api/annotations.proto\032\027google/api/" - + "client.proto\032\037google/api/field_behavior." - + "proto\032\031google/api/resource.proto\032\'google" - + "/cloud/dataproc/v1/clusters.proto\032#googl" - + "e/cloud/dataproc/v1/jobs.proto\032#google/l" - + "ongrunning/operations.proto\032\036google/prot" - + "obuf/duration.proto\032\033google/protobuf/emp" - + "ty.proto\032\037google/protobuf/timestamp.prot" - + "o\"\202\006\n\020WorkflowTemplate\022\017\n\002id\030\002 \001(\tB\003\340A\002\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007version\030\003 \001(\005B\003\340A\001" - + "\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\022K\n\006labels\030\006" - + " \003(\01326.google.cloud.dataproc.v1.Workflow" - + "Template.LabelsEntryB\003\340A\001\022K\n\tplacement\030\007" - + " \001(\01323.google.cloud.dataproc.v1.Workflow" - + "TemplatePlacementB\003\340A\002\0227\n\004jobs\030\010 \003(\0132$.g" - + "oogle.cloud.dataproc.v1.OrderedJobB\003\340A\002\022" - + "D\n\nparameters\030\t \003(\0132+.google.cloud.datap" - + "roc.v1.TemplateParameterB\003\340A\001\0223\n\013dag_tim" - + "eout\030\n \001(\0132\031.google.protobuf.DurationB\003\340" - + "A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001:\312\001\352A\306\001\n(dataproc.googleapis.co" - + "m/WorkflowTemplate\022Iprojects/{project}/r" - + "egions/{region}/workflowTemplates/{workf" - + "low_template}\022Mprojects/{project}/locati" - + "ons/{location}/workflowTemplates/{workfl" - + "ow_template} \001\"\264\001\n\031WorkflowTemplatePlace" - + "ment\022C\n\017managed_cluster\030\001 \001(\0132(.google.c" - + "loud.dataproc.v1.ManagedClusterH\000\022E\n\020clu" - + "ster_selector\030\002 \001(\0132).google.cloud.datap" - + "roc.v1.ClusterSelectorH\000B\013\n\tplacement\"\343\001" - + "\n\016ManagedCluster\022\031\n\014cluster_name\030\002 \001(\tB\003" - + "\340A\002\022<\n\006config\030\003 \001(\0132\'.google.cloud.datap" - + "roc.v1.ClusterConfigB\003\340A\002\022I\n\006labels\030\004 \003(" - + "\01324.google.cloud.dataproc.v1.ManagedClus" - + "ter.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\265\001\n\017ClusterS" - + "elector\022\021\n\004zone\030\001 \001(\tB\003\340A\001\022Y\n\016cluster_la" - + "bels\030\002 \003(\0132<.google.cloud.dataproc.v1.Cl" - + "usterSelector.ClusterLabelsEntryB\003\340A\002\0324\n" - + "\022ClusterLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001\"\206\006\n\nOrderedJob\022\024\n\007step_id\030\001 " - + "\001(\tB\003\340A\002\022>\n\nhadoop_job\030\002 \001(\0132#.google.cl" - + "oud.dataproc.v1.HadoopJobB\003\340A\001H\000\022<\n\tspar" - + "k_job\030\003 \001(\0132\".google.cloud.dataproc.v1.S" - + "parkJobB\003\340A\001H\000\022@\n\013pyspark_job\030\004 \001(\0132$.go" - + "ogle.cloud.dataproc.v1.PySparkJobB\003\340A\001H\000" - + "\022:\n\010hive_job\030\005 \001(\0132!.google.cloud.datapr" - + "oc.v1.HiveJobB\003\340A\001H\000\0228\n\007pig_job\030\006 \001(\0132 ." - + "google.cloud.dataproc.v1.PigJobB\003\340A\001H\000\022?" - + "\n\013spark_r_job\030\013 \001(\0132#.google.cloud.datap" - + "roc.v1.SparkRJobB\003\340A\001H\000\022C\n\rspark_sql_job" - + "\030\007 \001(\0132%.google.cloud.dataproc.v1.SparkS" - + "qlJobB\003\340A\001H\000\022>\n\npresto_job\030\014 \001(\0132#.googl" - + "e.cloud.dataproc.v1.PrestoJobB\003\340A\001H\000\022E\n\006" - + "labels\030\010 \003(\01320.google.cloud.dataproc.v1." - + "OrderedJob.LabelsEntryB\003\340A\001\022@\n\nschedulin" - + "g\030\t \001(\0132\'.google.cloud.dataproc.v1.JobSc" - + "hedulingB\003\340A\001\022\"\n\025prerequisite_step_ids\030\n" - + " \003(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001B\n\n\010job_type\"\235\001\n\021Templat" - + "eParameter\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\006fields\030" - + "\002 \003(\tB\003\340A\002\022\030\n\013description\030\003 \001(\tB\003\340A\001\022F\n\n" - + "validation\030\004 \001(\0132-.google.cloud.dataproc" - + ".v1.ParameterValidationB\003\340A\001\"\241\001\n\023Paramet" - + "erValidation\022:\n\005regex\030\001 \001(\0132).google.clo" - + "ud.dataproc.v1.RegexValidationH\000\022;\n\006valu" - + "es\030\002 \001(\0132).google.cloud.dataproc.v1.Valu" - + "eValidationH\000B\021\n\017validation_type\"\'\n\017Rege" - + "xValidation\022\024\n\007regexes\030\001 \003(\tB\003\340A\002\"&\n\017Val" - + "ueValidation\022\023\n\006values\030\001 \003(\tB\003\340A\002\"\324\006\n\020Wo" - + "rkflowMetadata\022\025\n\010template\030\001 \001(\tB\003\340A\003\022\024\n" - + "\007version\030\002 \001(\005B\003\340A\003\022G\n\016create_cluster\030\003 " - + "\001(\0132*.google.cloud.dataproc.v1.ClusterOp" - + "erationB\003\340A\003\022;\n\005graph\030\004 \001(\0132\'.google.clo" - + "ud.dataproc.v1.WorkflowGraphB\003\340A\003\022G\n\016del" - + "ete_cluster\030\005 \001(\0132*.google.cloud.datapro" - + "c.v1.ClusterOperationB\003\340A\003\022D\n\005state\030\006 \001(" - + "\01620.google.cloud.dataproc.v1.WorkflowMet" - + "adata.StateB\003\340A\003\022\031\n\014cluster_name\030\007 \001(\tB\003" - + "\340A\003\022N\n\nparameters\030\010 \003(\0132:.google.cloud.d" - + "ataproc.v1.WorkflowMetadata.ParametersEn" - + "try\0223\n\nstart_time\030\t \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\0221\n\010end_time\030\n \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\022\031\n\014cluster_u" - + "uid\030\013 \001(\tB\003\340A\003\0223\n\013dag_timeout\030\014 \001(\0132\031.go" - + "ogle.protobuf.DurationB\003\340A\003\0227\n\016dag_start" - + "_time\030\r \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0225\n\014dag_end_time\030\016 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\0321\n\017ParametersEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\005State\022" - + "\013\n\007UNKNOWN\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010" - + "\n\004DONE\020\003\"T\n\020ClusterOperation\022\031\n\014operatio" - + "n_id\030\001 \001(\tB\003\340A\003\022\022\n\005error\030\002 \001(\tB\003\340A\003\022\021\n\004d" - + "one\030\003 \001(\010B\003\340A\003\"K\n\rWorkflowGraph\022:\n\005nodes" - + "\030\001 \003(\0132&.google.cloud.dataproc.v1.Workfl" - + "owNodeB\003\340A\003\"\243\002\n\014WorkflowNode\022\024\n\007step_id\030" - + "\001 \001(\tB\003\340A\003\022\"\n\025prerequisite_step_ids\030\002 \003(" - + "\tB\003\340A\003\022\023\n\006job_id\030\003 \001(\tB\003\340A\003\022D\n\005state\030\005 \001" - + "(\01620.google.cloud.dataproc.v1.WorkflowNo" - + "de.NodeStateB\003\340A\003\022\022\n\005error\030\006 \001(\tB\003\340A\003\"j\n" - + "\tNodeState\022\032\n\026NODE_STATE_UNSPECIFIED\020\000\022\013" - + "\n\007BLOCKED\020\001\022\014\n\010RUNNABLE\020\002\022\013\n\007RUNNING\020\003\022\r" - + "\n\tCOMPLETED\020\004\022\n\n\006FAILED\020\005\"\244\001\n\035CreateWork" - + "flowTemplateRequest\022@\n\006parent\030\001 \001(\tB0\340A\002" - + "\372A*\022(dataproc.googleapis.com/WorkflowTem" - + "plate\022A\n\010template\030\002 \001(\0132*.google.cloud.d" - + "ataproc.v1.WorkflowTemplateB\003\340A\002\"r\n\032GetW" - + "orkflowTemplateRequest\022>\n\004name\030\001 \001(\tB0\340A" - + "\002\372A*\n(dataproc.googleapis.com/WorkflowTe" - + "mplate\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\255\002\n\"Instant" - + "iateWorkflowTemplateRequest\022>\n\004name\030\001 \001(" - + "\tB0\340A\002\372A*\n(dataproc.googleapis.com/Workf" - + "lowTemplate\022\024\n\007version\030\002 \001(\005B\003\340A\001\022\027\n\nreq" - + "uest_id\030\005 \001(\tB\003\340A\001\022e\n\nparameters\030\006 \003(\0132L" - + ".google.cloud.dataproc.v1.InstantiateWor" - + "kflowTemplateRequest.ParametersEntryB\003\340A" - + "\001\0321\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"\310\001\n(InstantiateInlineWorkfl" - + "owTemplateRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A" - + "*\022(dataproc.googleapis.com/WorkflowTempl" - + "ate\022A\n\010template\030\002 \001(\0132*.google.cloud.dat" - + "aproc.v1.WorkflowTemplateB\003\340A\002\022\027\n\nreques" - + "t_id\030\003 \001(\tB\003\340A\001\"b\n\035UpdateWorkflowTemplat" - + "eRequest\022A\n\010template\030\001 \001(\0132*.google.clou" - + "d.dataproc.v1.WorkflowTemplateB\003\340A\002\"\221\001\n\034" - + "ListWorkflowTemplatesRequest\022@\n\006parent\030\001" - + " \001(\tB0\340A\002\372A*\022(dataproc.googleapis.com/Wo" - + "rkflowTemplate\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" - + "\n\npage_token\030\003 \001(\tB\003\340A\001\"\201\001\n\035ListWorkflow" - + "TemplatesResponse\022B\n\ttemplates\030\001 \003(\0132*.g" - + "oogle.cloud.dataproc.v1.WorkflowTemplate" - + "B\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\"u\n\035D" - + "eleteWorkflowTemplateRequest\022>\n\004name\030\001 \001" - + "(\tB0\340A\002\372A*\n(dataproc.googleapis.com/Work" - + "flowTemplate\022\024\n\007version\030\002 \001(\005B\003\340A\0012\346\020\n\027W" - + "orkflowTemplateService\022\233\002\n\026CreateWorkflo" - + "wTemplate\0227.google.cloud.dataproc.v1.Cre" - + "ateWorkflowTemplateRequest\032*.google.clou" - + "d.dataproc.v1.WorkflowTemplate\"\233\001\202\323\344\223\002\202\001" - + "\"5/v1/{parent=projects/*/locations/*}/wo" - + "rkflowTemplates:\010templateZ?\"3/v1/{parent" - + "=projects/*/regions/*}/workflowTemplates" - + ":\010template\332A\017parent,template\022\364\001\n\023GetWork" - + "flowTemplate\0224.google.cloud.dataproc.v1." - + "GetWorkflowTemplateRequest\032*.google.clou" - + "d.dataproc.v1.WorkflowTemplate\"{\202\323\344\223\002n\0225" - + "/v1/{name=projects/*/locations/*/workflo" - + "wTemplates/*}Z5\0223/v1/{name=projects/*/re" - + "gions/*/workflowTemplates/*}\332A\004name\022\325\002\n\033" - + "InstantiateWorkflowTemplate\022<.google.clo" - + "ud.dataproc.v1.InstantiateWorkflowTempla" - + "teRequest\032\035.google.longrunning.Operation" - + "\"\330\001\202\323\344\223\002\214\001\"A/v1/{name=projects/*/locatio" - + "ns/*/workflowTemplates/*}:instantiate:\001*" - + "ZD\"?/v1/{name=projects/*/regions/*/workf" - + "lowTemplates/*}:instantiate:\001*\332A\004name\332A\017" - + "name,parameters\312A)\n\025google.protobuf.Empt" - + "y\022\020WorkflowMetadata\022\364\002\n!InstantiateInlin" - + "eWorkflowTemplate\022B.google.cloud.datapro" - + "c.v1.InstantiateInlineWorkflowTemplateRe" - + "quest\032\035.google.longrunning.Operation\"\353\001\202" - + "\323\344\223\002\246\001\"G/v1/{parent=projects/*/locations" - + "/*}/workflowTemplates:instantiateInline:" - + "\010templateZQ\"E/v1/{parent=projects/*/regi" - + "ons/*}/workflowTemplates:instantiateInli" - + "ne:\010template\332A\017parent,template\312A)\n\025googl" - + "e.protobuf.Empty\022\020WorkflowMetadata\022\246\002\n\026U" - + "pdateWorkflowTemplate\0227.google.cloud.dat" - + "aproc.v1.UpdateWorkflowTemplateRequest\032*" - + ".google.cloud.dataproc.v1.WorkflowTempla" - + "te\"\246\001\202\323\344\223\002\224\001\032>/v1/{template.name=project" - + "s/*/locations/*/workflowTemplates/*}:\010te" - + "mplateZH\032This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) {
+ *   NodeGroupName name = NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]");
+ *   NodeGroup response = nodeGroupControllerClient.getNodeGroup(name);
+ * }
+ * }
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

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

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

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) {
+   *   ClusterRegionName parent = ClusterRegionName.of("[PROJECT]", "[REGION]", "[CLUSTER]");
+   *   NodeGroup nodeGroup = NodeGroup.newBuilder().build();
+   *   String nodeGroupId = "nodeGroupId1097129880";
+   *   NodeGroup response =
+   *       nodeGroupControllerClient.createNodeGroupAsync(parent, nodeGroup, nodeGroupId).get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this node group will be created. Format: + * `projects/{project}/regions/{region}/clusters/{cluster}` + * @param nodeGroup Required. The node group to create. + * @param nodeGroupId Optional. An optional node group ID. Generated if not specified. + *

The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens + * (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 + * characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createNodeGroupAsync( + ClusterRegionName parent, NodeGroup nodeGroup, String nodeGroupId) { + CreateNodeGroupRequest request = + CreateNodeGroupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setNodeGroup(nodeGroup) + .setNodeGroupId(nodeGroupId) + .build(); + return createNodeGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a node group in a cluster. The returned + * [Operation.metadata][google.longrunning.Operation.metadata] is + * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) {
+   *   String parent = ClusterRegionName.of("[PROJECT]", "[REGION]", "[CLUSTER]").toString();
+   *   NodeGroup nodeGroup = NodeGroup.newBuilder().build();
+   *   String nodeGroupId = "nodeGroupId1097129880";
+   *   NodeGroup response =
+   *       nodeGroupControllerClient.createNodeGroupAsync(parent, nodeGroup, nodeGroupId).get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this node group will be created. Format: + * `projects/{project}/regions/{region}/clusters/{cluster}` + * @param nodeGroup Required. The node group to create. + * @param nodeGroupId Optional. An optional node group ID. Generated if not specified. + *

The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens + * (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 + * characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createNodeGroupAsync( + String parent, NodeGroup nodeGroup, String nodeGroupId) { + CreateNodeGroupRequest request = + CreateNodeGroupRequest.newBuilder() + .setParent(parent) + .setNodeGroup(nodeGroup) + .setNodeGroupId(nodeGroupId) + .build(); + return createNodeGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a node group in a cluster. The returned + * [Operation.metadata][google.longrunning.Operation.metadata] is + * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) {
+   *   CreateNodeGroupRequest request =
+   *       CreateNodeGroupRequest.newBuilder()
+   *           .setParent(ClusterRegionName.of("[PROJECT]", "[REGION]", "[CLUSTER]").toString())
+   *           .setNodeGroup(NodeGroup.newBuilder().build())
+   *           .setNodeGroupId("nodeGroupId1097129880")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   NodeGroup response = nodeGroupControllerClient.createNodeGroupAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createNodeGroupAsync( + CreateNodeGroupRequest request) { + return createNodeGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a node group in a cluster. The returned + * [Operation.metadata][google.longrunning.Operation.metadata] is + * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) {
+   *   CreateNodeGroupRequest request =
+   *       CreateNodeGroupRequest.newBuilder()
+   *           .setParent(ClusterRegionName.of("[PROJECT]", "[REGION]", "[CLUSTER]").toString())
+   *           .setNodeGroup(NodeGroup.newBuilder().build())
+   *           .setNodeGroupId("nodeGroupId1097129880")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       nodeGroupControllerClient.createNodeGroupOperationCallable().futureCall(request);
+   *   // Do something.
+   *   NodeGroup response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createNodeGroupOperationCallable() { + return stub.createNodeGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a node group in a cluster. The returned + * [Operation.metadata][google.longrunning.Operation.metadata] is + * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) {
+   *   CreateNodeGroupRequest request =
+   *       CreateNodeGroupRequest.newBuilder()
+   *           .setParent(ClusterRegionName.of("[PROJECT]", "[REGION]", "[CLUSTER]").toString())
+   *           .setNodeGroup(NodeGroup.newBuilder().build())
+   *           .setNodeGroupId("nodeGroupId1097129880")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       nodeGroupControllerClient.createNodeGroupCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createNodeGroupCallable() { + return stub.createNodeGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resizes a node group in a cluster. The returned + * [Operation.metadata][google.longrunning.Operation.metadata] is + * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) {
+   *   String name = "name3373707";
+   *   int size = 3530753;
+   *   NodeGroup response = nodeGroupControllerClient.resizeNodeGroupAsync(name, size).get();
+   * }
+   * }
+ * + * @param name Required. The name of the node group to resize. Format: + * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}` + * @param size Required. The number of running instances for the node group to maintain. The group + * adds or removes instances to maintain the number of instances specified by this parameter. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture resizeNodeGroupAsync( + String name, int size) { + ResizeNodeGroupRequest request = + ResizeNodeGroupRequest.newBuilder().setName(name).setSize(size).build(); + return resizeNodeGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resizes a node group in a cluster. The returned + * [Operation.metadata][google.longrunning.Operation.metadata] is + * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) {
+   *   ResizeNodeGroupRequest request =
+   *       ResizeNodeGroupRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setSize(3530753)
+   *           .setRequestId("requestId693933066")
+   *           .setGracefulDecommissionTimeout(Duration.newBuilder().build())
+   *           .build();
+   *   NodeGroup response = nodeGroupControllerClient.resizeNodeGroupAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture resizeNodeGroupAsync( + ResizeNodeGroupRequest request) { + return resizeNodeGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resizes a node group in a cluster. The returned + * [Operation.metadata][google.longrunning.Operation.metadata] is + * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) {
+   *   ResizeNodeGroupRequest request =
+   *       ResizeNodeGroupRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setSize(3530753)
+   *           .setRequestId("requestId693933066")
+   *           .setGracefulDecommissionTimeout(Duration.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       nodeGroupControllerClient.resizeNodeGroupOperationCallable().futureCall(request);
+   *   // Do something.
+   *   NodeGroup response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + resizeNodeGroupOperationCallable() { + return stub.resizeNodeGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resizes a node group in a cluster. The returned + * [Operation.metadata][google.longrunning.Operation.metadata] is + * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) {
+   *   ResizeNodeGroupRequest request =
+   *       ResizeNodeGroupRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setSize(3530753)
+   *           .setRequestId("requestId693933066")
+   *           .setGracefulDecommissionTimeout(Duration.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       nodeGroupControllerClient.resizeNodeGroupCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable resizeNodeGroupCallable() { + return stub.resizeNodeGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the resource representation for a node group in a cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) {
+   *   NodeGroupName name = NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]");
+   *   NodeGroup response = nodeGroupControllerClient.getNodeGroup(name);
+   * }
+   * }
+ * + * @param name Required. The name of the node group to retrieve. Format: + * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NodeGroup getNodeGroup(NodeGroupName name) { + GetNodeGroupRequest request = + GetNodeGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getNodeGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the resource representation for a node group in a cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) {
+   *   String name =
+   *       NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]").toString();
+   *   NodeGroup response = nodeGroupControllerClient.getNodeGroup(name);
+   * }
+   * }
+ * + * @param name Required. The name of the node group to retrieve. Format: + * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NodeGroup getNodeGroup(String name) { + GetNodeGroupRequest request = GetNodeGroupRequest.newBuilder().setName(name).build(); + return getNodeGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the resource representation for a node group in a cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) {
+   *   GetNodeGroupRequest request =
+   *       GetNodeGroupRequest.newBuilder()
+   *           .setName(
+   *               NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]").toString())
+   *           .build();
+   *   NodeGroup response = nodeGroupControllerClient.getNodeGroup(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NodeGroup getNodeGroup(GetNodeGroupRequest request) { + return getNodeGroupCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the resource representation for a node group in a cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) {
+   *   GetNodeGroupRequest request =
+   *       GetNodeGroupRequest.newBuilder()
+   *           .setName(
+   *               NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       nodeGroupControllerClient.getNodeGroupCallable().futureCall(request);
+   *   // Do something.
+   *   NodeGroup response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getNodeGroupCallable() { + return stub.getNodeGroupCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerSettings.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerSettings.java new file mode 100644 index 000000000000..94aa61f94bbe --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerSettings.java @@ -0,0 +1,252 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.dataproc.v1.stub.NodeGroupControllerStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link NodeGroupControllerClient}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

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

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createNodeGroup. */ + public UnaryCallSettings.Builder createNodeGroupSettings() { + return getStubSettingsBuilder().createNodeGroupSettings(); + } + + /** Returns the builder for the settings used for calls to createNodeGroup. */ + public OperationCallSettings.Builder< + CreateNodeGroupRequest, NodeGroup, NodeGroupOperationMetadata> + createNodeGroupOperationSettings() { + return getStubSettingsBuilder().createNodeGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to resizeNodeGroup. */ + public UnaryCallSettings.Builder resizeNodeGroupSettings() { + return getStubSettingsBuilder().resizeNodeGroupSettings(); + } + + /** Returns the builder for the settings used for calls to resizeNodeGroup. */ + public OperationCallSettings.Builder< + ResizeNodeGroupRequest, NodeGroup, NodeGroupOperationMetadata> + resizeNodeGroupOperationSettings() { + return getStubSettingsBuilder().resizeNodeGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getNodeGroup. */ + public UnaryCallSettings.Builder getNodeGroupSettings() { + return getStubSettingsBuilder().getNodeGroupSettings(); + } + + @Override + public NodeGroupControllerSettings build() throws IOException { + return new NodeGroupControllerSettings(this); + } + } +} diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java similarity index 99% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java index 9224a7d5e0e9..226b2e1d3555 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.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.dataproc.v1.stub.WorkflowTemplateServiceStubSettings; diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json similarity index 90% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json index 26e0eeb58e8f..832368b59430 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json @@ -142,6 +142,24 @@ } } } + }, + "NodeGroupController": { + "clients": { + "grpc": { + "libraryClient": "NodeGroupControllerClient", + "rpcs": { + "CreateNodeGroup": { + "methods": ["createNodeGroupAsync", "createNodeGroupAsync", "createNodeGroupAsync", "createNodeGroupOperationCallable", "createNodeGroupCallable"] + }, + "GetNodeGroup": { + "methods": ["getNodeGroup", "getNodeGroup", "getNodeGroup", "getNodeGroupCallable"] + }, + "ResizeNodeGroup": { + "methods": ["resizeNodeGroupAsync", "resizeNodeGroupAsync", "resizeNodeGroupOperationCallable", "resizeNodeGroupCallable"] + } + } + } + } } } } \ No newline at end of file diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java similarity index 85% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java index 7f608efc866d..ab6d8c1c9171 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java @@ -117,6 +117,25 @@ * workflowTemplateServiceClient.createWorkflowTemplate(parent, template); * } * } + * + *

======================= NodeGroupControllerClient ======================= + * + *

Service Description: The `NodeGroupControllerService` provides methods to manage node groups + * of Compute Engine managed instances. + * + *

Sample for NodeGroupControllerClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) {
+ *   NodeGroupName name = NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]");
+ *   NodeGroup response = nodeGroupControllerClient.getNodeGroup(name);
+ * }
+ * }
*/ @Generated("by gapic-generator-java") package com.google.cloud.dataproc.v1; diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java similarity index 99% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java index 1a8d03fa912e..4680891e2661 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java @@ -37,6 +37,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java similarity index 99% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java index 044146baa455..0f9418453c57 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java @@ -39,6 +39,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java similarity index 99% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java index 078395cc0c98..c46d67edceb1 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.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/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java similarity index 99% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java index 52b5ae898e1c..101e9ca7f7e5 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java @@ -41,6 +41,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcNodeGroupControllerCallableFactory.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcNodeGroupControllerCallableFactory.java new file mode 100644 index 000000000000..95148608da7e --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcNodeGroupControllerCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the NodeGroupController service API. + * + *

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

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcNodeGroupControllerStub extends NodeGroupControllerStub { + private static final MethodDescriptor + createNodeGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataproc.v1.NodeGroupController/CreateNodeGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateNodeGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + resizeNodeGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataproc.v1.NodeGroupController/ResizeNodeGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(ResizeNodeGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getNodeGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataproc.v1.NodeGroupController/GetNodeGroup") + .setRequestMarshaller(ProtoUtils.marshaller(GetNodeGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(NodeGroup.getDefaultInstance())) + .build(); + + private final UnaryCallable createNodeGroupCallable; + private final OperationCallable + createNodeGroupOperationCallable; + private final UnaryCallable resizeNodeGroupCallable; + private final OperationCallable + resizeNodeGroupOperationCallable; + private final UnaryCallable getNodeGroupCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcNodeGroupControllerStub create(NodeGroupControllerStubSettings settings) + throws IOException { + return new GrpcNodeGroupControllerStub(settings, ClientContext.create(settings)); + } + + public static final GrpcNodeGroupControllerStub create(ClientContext clientContext) + throws IOException { + return new GrpcNodeGroupControllerStub( + NodeGroupControllerStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcNodeGroupControllerStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcNodeGroupControllerStub( + NodeGroupControllerStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcNodeGroupControllerStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcNodeGroupControllerStub( + NodeGroupControllerStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcNodeGroupControllerCallableFactory()); + } + + /** + * Constructs an instance of GrpcNodeGroupControllerStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcNodeGroupControllerStub( + NodeGroupControllerStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createNodeGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createNodeGroupMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings resizeNodeGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(resizeNodeGroupMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings getNodeGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getNodeGroupMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + + this.createNodeGroupCallable = + callableFactory.createUnaryCallable( + createNodeGroupTransportSettings, settings.createNodeGroupSettings(), clientContext); + this.createNodeGroupOperationCallable = + callableFactory.createOperationCallable( + createNodeGroupTransportSettings, + settings.createNodeGroupOperationSettings(), + clientContext, + operationsStub); + this.resizeNodeGroupCallable = + callableFactory.createUnaryCallable( + resizeNodeGroupTransportSettings, settings.resizeNodeGroupSettings(), clientContext); + this.resizeNodeGroupOperationCallable = + callableFactory.createOperationCallable( + resizeNodeGroupTransportSettings, + settings.resizeNodeGroupOperationSettings(), + clientContext, + operationsStub); + this.getNodeGroupCallable = + callableFactory.createUnaryCallable( + getNodeGroupTransportSettings, settings.getNodeGroupSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createNodeGroupCallable() { + return createNodeGroupCallable; + } + + @Override + public OperationCallable + createNodeGroupOperationCallable() { + return createNodeGroupOperationCallable; + } + + @Override + public UnaryCallable resizeNodeGroupCallable() { + return resizeNodeGroupCallable; + } + + @Override + public OperationCallable + resizeNodeGroupOperationCallable() { + return resizeNodeGroupOperationCallable; + } + + @Override + public UnaryCallable getNodeGroupCallable() { + return getNodeGroupCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java similarity index 99% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java index 1efd3f9289ec..c0e33248385a 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java @@ -42,6 +42,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceCallableFactory.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceCallableFactory.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceCallableFactory.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceCallableFactory.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerCallableFactory.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerCallableFactory.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerCallableFactory.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerCallableFactory.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java similarity index 99% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java index 3e54921710b4..c3670b1c2b28 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java @@ -30,6 +30,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerCallableFactory.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerCallableFactory.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerCallableFactory.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerCallableFactory.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java similarity index 99% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java index dc0d25f3f93a..e99f430724da 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java @@ -30,6 +30,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -201,8 +202,7 @@ public class HttpJsonClusterControllerStub extends ClusterControllerStub { ProtoRestSerializer.create() .toBody( "*", - request - .toBuilder() + request.toBuilder() .clearClusterName() .clearProjectId() .clearRegion() @@ -252,8 +252,7 @@ public class HttpJsonClusterControllerStub extends ClusterControllerStub { ProtoRestSerializer.create() .toBody( "*", - request - .toBuilder() + request.toBuilder() .clearClusterName() .clearProjectId() .clearRegion() @@ -419,8 +418,7 @@ public class HttpJsonClusterControllerStub extends ClusterControllerStub { ProtoRestSerializer.create() .toBody( "*", - request - .toBuilder() + request.toBuilder() .clearClusterName() .clearProjectId() .clearRegion() diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerCallableFactory.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerCallableFactory.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerCallableFactory.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerCallableFactory.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java similarity index 99% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java index c0c51913bfe4..36c359b13248 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java @@ -30,6 +30,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -294,8 +295,7 @@ public class HttpJsonJobControllerStub extends JobControllerStub { ProtoRestSerializer.create() .toBody( "*", - request - .toBuilder() + request.toBuilder() .clearJobId() .clearProjectId() .clearRegion() diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonNodeGroupControllerCallableFactory.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonNodeGroupControllerCallableFactory.java new file mode 100644 index 000000000000..e3209b9e61ac --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonNodeGroupControllerCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the NodeGroupController service API. + * + *

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

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonNodeGroupControllerStub extends NodeGroupControllerStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(NodeGroup.getDescriptor()) + .add(NodeGroupOperationMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + createNodeGroupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.NodeGroupController/CreateNodeGroup") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/regions/*/clusters/*}/nodeGroups", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "nodeGroupId", request.getNodeGroupId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("nodeGroup", request.getNodeGroup(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateNodeGroupRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + resizeNodeGroupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.NodeGroupController/ResizeNodeGroup") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/regions/*/clusters/*/nodeGroups/*}:resize", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ResizeNodeGroupRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getNodeGroupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.NodeGroupController/GetNodeGroup") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/regions/*/clusters/*/nodeGroups/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(NodeGroup.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createNodeGroupCallable; + private final OperationCallable + createNodeGroupOperationCallable; + private final UnaryCallable resizeNodeGroupCallable; + private final OperationCallable + resizeNodeGroupOperationCallable; + private final UnaryCallable getNodeGroupCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonNodeGroupControllerStub create( + NodeGroupControllerStubSettings settings) throws IOException { + return new HttpJsonNodeGroupControllerStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonNodeGroupControllerStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonNodeGroupControllerStub( + NodeGroupControllerStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonNodeGroupControllerStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonNodeGroupControllerStub( + NodeGroupControllerStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonNodeGroupControllerStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonNodeGroupControllerStub( + NodeGroupControllerStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonNodeGroupControllerCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonNodeGroupControllerStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonNodeGroupControllerStub( + NodeGroupControllerStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings createNodeGroupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createNodeGroupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings resizeNodeGroupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(resizeNodeGroupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getNodeGroupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getNodeGroupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createNodeGroupCallable = + callableFactory.createUnaryCallable( + createNodeGroupTransportSettings, settings.createNodeGroupSettings(), clientContext); + this.createNodeGroupOperationCallable = + callableFactory.createOperationCallable( + createNodeGroupTransportSettings, + settings.createNodeGroupOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.resizeNodeGroupCallable = + callableFactory.createUnaryCallable( + resizeNodeGroupTransportSettings, settings.resizeNodeGroupSettings(), clientContext); + this.resizeNodeGroupOperationCallable = + callableFactory.createOperationCallable( + resizeNodeGroupTransportSettings, + settings.resizeNodeGroupOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getNodeGroupCallable = + callableFactory.createUnaryCallable( + getNodeGroupTransportSettings, settings.getNodeGroupSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createNodeGroupMethodDescriptor); + methodDescriptors.add(resizeNodeGroupMethodDescriptor); + methodDescriptors.add(getNodeGroupMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createNodeGroupCallable() { + return createNodeGroupCallable; + } + + @Override + public OperationCallable + createNodeGroupOperationCallable() { + return createNodeGroupOperationCallable; + } + + @Override + public UnaryCallable resizeNodeGroupCallable() { + return resizeNodeGroupCallable; + } + + @Override + public OperationCallable + resizeNodeGroupOperationCallable() { + return resizeNodeGroupOperationCallable; + } + + @Override + public UnaryCallable getNodeGroupCallable() { + return getNodeGroupCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceCallableFactory.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceCallableFactory.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceCallableFactory.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceCallableFactory.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java similarity index 99% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java index 535eb1ccd8d8..3063fc741dcf 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java @@ -30,6 +30,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStub.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStub.java new file mode 100644 index 000000000000..168f263a9449 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStub.java @@ -0,0 +1,72 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dataproc.v1.CreateNodeGroupRequest; +import com.google.cloud.dataproc.v1.GetNodeGroupRequest; +import com.google.cloud.dataproc.v1.NodeGroup; +import com.google.cloud.dataproc.v1.NodeGroupOperationMetadata; +import com.google.cloud.dataproc.v1.ResizeNodeGroupRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the NodeGroupController service API. + * + *

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

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * NodeGroupControllerStubSettings.Builder nodeGroupControllerSettingsBuilder =
+ *     NodeGroupControllerStubSettings.newBuilder();
+ * nodeGroupControllerSettingsBuilder
+ *     .getNodeGroupSettings()
+ *     .setRetrySettings(
+ *         nodeGroupControllerSettingsBuilder.getNodeGroupSettings().getRetrySettings().toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * NodeGroupControllerStubSettings nodeGroupControllerSettings =
+ *     nodeGroupControllerSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class NodeGroupControllerStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings createNodeGroupSettings; + private final OperationCallSettings + createNodeGroupOperationSettings; + private final UnaryCallSettings resizeNodeGroupSettings; + private final OperationCallSettings + resizeNodeGroupOperationSettings; + private final UnaryCallSettings getNodeGroupSettings; + + /** Returns the object with the settings used for calls to createNodeGroup. */ + public UnaryCallSettings createNodeGroupSettings() { + return createNodeGroupSettings; + } + + /** Returns the object with the settings used for calls to createNodeGroup. */ + public OperationCallSettings + createNodeGroupOperationSettings() { + return createNodeGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to resizeNodeGroup. */ + public UnaryCallSettings resizeNodeGroupSettings() { + return resizeNodeGroupSettings; + } + + /** Returns the object with the settings used for calls to resizeNodeGroup. */ + public OperationCallSettings + resizeNodeGroupOperationSettings() { + return resizeNodeGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to getNodeGroup. */ + public UnaryCallSettings getNodeGroupSettings() { + return getNodeGroupSettings; + } + + public NodeGroupControllerStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcNodeGroupControllerStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonNodeGroupControllerStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "dataproc.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dataproc.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(NodeGroupControllerStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(NodeGroupControllerStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return NodeGroupControllerStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected NodeGroupControllerStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createNodeGroupSettings = settingsBuilder.createNodeGroupSettings().build(); + createNodeGroupOperationSettings = settingsBuilder.createNodeGroupOperationSettings().build(); + resizeNodeGroupSettings = settingsBuilder.resizeNodeGroupSettings().build(); + resizeNodeGroupOperationSettings = settingsBuilder.resizeNodeGroupOperationSettings().build(); + getNodeGroupSettings = settingsBuilder.getNodeGroupSettings().build(); + } + + /** Builder for NodeGroupControllerStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createNodeGroupSettings; + private final OperationCallSettings.Builder< + CreateNodeGroupRequest, NodeGroup, NodeGroupOperationMetadata> + createNodeGroupOperationSettings; + private final UnaryCallSettings.Builder + resizeNodeGroupSettings; + private final OperationCallSettings.Builder< + ResizeNodeGroupRequest, NodeGroup, NodeGroupOperationMetadata> + resizeNodeGroupOperationSettings; + private final UnaryCallSettings.Builder getNodeGroupSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createNodeGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createNodeGroupOperationSettings = OperationCallSettings.newBuilder(); + resizeNodeGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + resizeNodeGroupOperationSettings = OperationCallSettings.newBuilder(); + getNodeGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createNodeGroupSettings, resizeNodeGroupSettings, getNodeGroupSettings); + initDefaults(this); + } + + protected Builder(NodeGroupControllerStubSettings settings) { + super(settings); + + createNodeGroupSettings = settings.createNodeGroupSettings.toBuilder(); + createNodeGroupOperationSettings = settings.createNodeGroupOperationSettings.toBuilder(); + resizeNodeGroupSettings = settings.resizeNodeGroupSettings.toBuilder(); + resizeNodeGroupOperationSettings = settings.resizeNodeGroupOperationSettings.toBuilder(); + getNodeGroupSettings = settings.getNodeGroupSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createNodeGroupSettings, resizeNodeGroupSettings, getNodeGroupSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createNodeGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .resizeNodeGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getNodeGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createNodeGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(NodeGroup.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + NodeGroupOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .resizeNodeGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(NodeGroup.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + NodeGroupOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createNodeGroup. */ + public UnaryCallSettings.Builder createNodeGroupSettings() { + return createNodeGroupSettings; + } + + /** Returns the builder for the settings used for calls to createNodeGroup. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateNodeGroupRequest, NodeGroup, NodeGroupOperationMetadata> + createNodeGroupOperationSettings() { + return createNodeGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to resizeNodeGroup. */ + public UnaryCallSettings.Builder resizeNodeGroupSettings() { + return resizeNodeGroupSettings; + } + + /** Returns the builder for the settings used for calls to resizeNodeGroup. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + ResizeNodeGroupRequest, NodeGroup, NodeGroupOperationMetadata> + resizeNodeGroupOperationSettings() { + return resizeNodeGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to getNodeGroup. */ + public UnaryCallSettings.Builder getNodeGroupSettings() { + return getNodeGroupSettings; + } + + @Override + public NodeGroupControllerStubSettings build() throws IOException { + return new NodeGroupControllerStubSettings(this); + } + } +} diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientHttpJsonTest.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientHttpJsonTest.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientHttpJsonTest.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientHttpJsonTest.java diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientHttpJsonTest.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientHttpJsonTest.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientHttpJsonTest.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientHttpJsonTest.java diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientHttpJsonTest.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientHttpJsonTest.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientHttpJsonTest.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientHttpJsonTest.java diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java similarity index 97% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java index 0bcb2ad9211d..f1c70ae5bd42 100644 --- a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java @@ -97,6 +97,7 @@ public void submitJobTest() throws Exception { .setScheduling(JobScheduling.newBuilder().build()) .setJobUuid("jobUuid-1437868776") .setDone(true) + .setDriverSchedulingConfig(DriverSchedulingConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -155,6 +156,7 @@ public void submitJobAsOperationTest() throws Exception { .setScheduling(JobScheduling.newBuilder().build()) .setJobUuid("jobUuid-1437868776") .setDone(true) + .setDriverSchedulingConfig(DriverSchedulingConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -218,6 +220,7 @@ public void getJobTest() throws Exception { .setScheduling(JobScheduling.newBuilder().build()) .setJobUuid("jobUuid-1437868776") .setDone(true) + .setDriverSchedulingConfig(DriverSchedulingConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -382,6 +385,7 @@ public void updateJobTest() throws Exception { .setScheduling(JobScheduling.newBuilder().build()) .setJobUuid("jobUuid-1437868776") .setDone(true) + .setDriverSchedulingConfig(DriverSchedulingConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -450,6 +454,7 @@ public void cancelJobTest() throws Exception { .setScheduling(JobScheduling.newBuilder().build()) .setJobUuid("jobUuid-1437868776") .setDone(true) + .setDriverSchedulingConfig(DriverSchedulingConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java similarity index 97% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java index ffa2b83b4e3a..15db8d588ee5 100644 --- a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java @@ -101,6 +101,7 @@ public void submitJobTest() throws Exception { .setScheduling(JobScheduling.newBuilder().build()) .setJobUuid("jobUuid-1437868776") .setDone(true) + .setDriverSchedulingConfig(DriverSchedulingConfig.newBuilder().build()) .build(); mockJobController.addResponse(expectedResponse); @@ -155,6 +156,7 @@ public void submitJobAsOperationTest() throws Exception { .setScheduling(JobScheduling.newBuilder().build()) .setJobUuid("jobUuid-1437868776") .setDone(true) + .setDriverSchedulingConfig(DriverSchedulingConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -217,6 +219,7 @@ public void getJobTest() throws Exception { .setScheduling(JobScheduling.newBuilder().build()) .setJobUuid("jobUuid-1437868776") .setDone(true) + .setDriverSchedulingConfig(DriverSchedulingConfig.newBuilder().build()) .build(); mockJobController.addResponse(expectedResponse); @@ -368,6 +371,7 @@ public void updateJobTest() throws Exception { .setScheduling(JobScheduling.newBuilder().build()) .setJobUuid("jobUuid-1437868776") .setDone(true) + .setDriverSchedulingConfig(DriverSchedulingConfig.newBuilder().build()) .build(); mockJobController.addResponse(expectedResponse); @@ -434,6 +438,7 @@ public void cancelJobTest() throws Exception { .setScheduling(JobScheduling.newBuilder().build()) .setJobUuid("jobUuid-1437868776") .setDone(true) + .setDriverSchedulingConfig(DriverSchedulingConfig.newBuilder().build()) .build(); mockJobController.addResponse(expectedResponse); diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockNodeGroupController.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockNodeGroupController.java new file mode 100644 index 000000000000..7b7cff37c787 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockNodeGroupController.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockNodeGroupController implements MockGrpcService { + private final MockNodeGroupControllerImpl serviceImpl; + + public MockNodeGroupController() { + serviceImpl = new MockNodeGroupControllerImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockNodeGroupControllerImpl.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockNodeGroupControllerImpl.java new file mode 100644 index 000000000000..873c3d8b5148 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockNodeGroupControllerImpl.java @@ -0,0 +1,124 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.dataproc.v1.NodeGroupControllerGrpc.NodeGroupControllerImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockNodeGroupControllerImpl extends NodeGroupControllerImplBase { + private List requests; + private Queue responses; + + public MockNodeGroupControllerImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createNodeGroup( + CreateNodeGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateNodeGroup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void resizeNodeGroup( + ResizeNodeGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ResizeNodeGroup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getNodeGroup( + GetNodeGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof NodeGroup) { + requests.add(request); + responseObserver.onNext(((NodeGroup) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetNodeGroup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + NodeGroup.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/NodeGroupControllerClientHttpJsonTest.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/NodeGroupControllerClientHttpJsonTest.java new file mode 100644 index 000000000000..eade609312c2 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/NodeGroupControllerClientHttpJsonTest.java @@ -0,0 +1,347 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.dataproc.v1.stub.HttpJsonNodeGroupControllerStub; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class NodeGroupControllerClientHttpJsonTest { + private static MockHttpService mockService; + private static NodeGroupControllerClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonNodeGroupControllerStub.getMethodDescriptors(), + NodeGroupControllerSettings.getDefaultEndpoint()); + NodeGroupControllerSettings settings = + NodeGroupControllerSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + NodeGroupControllerSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = NodeGroupControllerClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createNodeGroupTest() throws Exception { + NodeGroup expectedResponse = + NodeGroup.newBuilder() + .setName( + NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]").toString()) + .addAllRoles(new ArrayList()) + .setNodeGroupConfig(InstanceGroupConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createNodeGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ClusterRegionName parent = ClusterRegionName.of("[PROJECT]", "[REGION]", "[CLUSTER]"); + NodeGroup nodeGroup = NodeGroup.newBuilder().build(); + String nodeGroupId = "nodeGroupId1097129880"; + + NodeGroup actualResponse = client.createNodeGroupAsync(parent, nodeGroup, nodeGroupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createNodeGroupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClusterRegionName parent = ClusterRegionName.of("[PROJECT]", "[REGION]", "[CLUSTER]"); + NodeGroup nodeGroup = NodeGroup.newBuilder().build(); + String nodeGroupId = "nodeGroupId1097129880"; + client.createNodeGroupAsync(parent, nodeGroup, nodeGroupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createNodeGroupTest2() throws Exception { + NodeGroup expectedResponse = + NodeGroup.newBuilder() + .setName( + NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]").toString()) + .addAllRoles(new ArrayList()) + .setNodeGroupConfig(InstanceGroupConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createNodeGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-3127/regions/region-3127/clusters/cluster-3127"; + NodeGroup nodeGroup = NodeGroup.newBuilder().build(); + String nodeGroupId = "nodeGroupId1097129880"; + + NodeGroup actualResponse = client.createNodeGroupAsync(parent, nodeGroup, nodeGroupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createNodeGroupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-3127/regions/region-3127/clusters/cluster-3127"; + NodeGroup nodeGroup = NodeGroup.newBuilder().build(); + String nodeGroupId = "nodeGroupId1097129880"; + client.createNodeGroupAsync(parent, nodeGroup, nodeGroupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void resizeNodeGroupTest() throws Exception { + NodeGroup expectedResponse = + NodeGroup.newBuilder() + .setName( + NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]").toString()) + .addAllRoles(new ArrayList()) + .setNodeGroupConfig(InstanceGroupConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resizeNodeGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8856/regions/region-8856/clusters/cluster-8856/nodeGroups/nodeGroup-8856"; + int size = 3530753; + + NodeGroup actualResponse = client.resizeNodeGroupAsync(name, size).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void resizeNodeGroupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8856/regions/region-8856/clusters/cluster-8856/nodeGroups/nodeGroup-8856"; + int size = 3530753; + client.resizeNodeGroupAsync(name, size).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getNodeGroupTest() throws Exception { + NodeGroup expectedResponse = + NodeGroup.newBuilder() + .setName( + NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]").toString()) + .addAllRoles(new ArrayList()) + .setNodeGroupConfig(InstanceGroupConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + NodeGroupName name = NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]"); + + NodeGroup actualResponse = client.getNodeGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getNodeGroupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NodeGroupName name = NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]"); + client.getNodeGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNodeGroupTest2() throws Exception { + NodeGroup expectedResponse = + NodeGroup.newBuilder() + .setName( + NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]").toString()) + .addAllRoles(new ArrayList()) + .setNodeGroupConfig(InstanceGroupConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8856/regions/region-8856/clusters/cluster-8856/nodeGroups/nodeGroup-8856"; + + NodeGroup actualResponse = client.getNodeGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getNodeGroupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8856/regions/region-8856/clusters/cluster-8856/nodeGroups/nodeGroup-8856"; + client.getNodeGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/NodeGroupControllerClientTest.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/NodeGroupControllerClientTest.java new file mode 100644 index 000000000000..1f022990c80f --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/NodeGroupControllerClientTest.java @@ -0,0 +1,332 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class NodeGroupControllerClientTest { + private static MockNodeGroupController mockNodeGroupController; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private NodeGroupControllerClient client; + + @BeforeClass + public static void startStaticServer() { + mockNodeGroupController = new MockNodeGroupController(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockNodeGroupController)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + NodeGroupControllerSettings settings = + NodeGroupControllerSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = NodeGroupControllerClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createNodeGroupTest() throws Exception { + NodeGroup expectedResponse = + NodeGroup.newBuilder() + .setName( + NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]").toString()) + .addAllRoles(new ArrayList()) + .setNodeGroupConfig(InstanceGroupConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createNodeGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNodeGroupController.addResponse(resultOperation); + + ClusterRegionName parent = ClusterRegionName.of("[PROJECT]", "[REGION]", "[CLUSTER]"); + NodeGroup nodeGroup = NodeGroup.newBuilder().build(); + String nodeGroupId = "nodeGroupId1097129880"; + + NodeGroup actualResponse = client.createNodeGroupAsync(parent, nodeGroup, nodeGroupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNodeGroupController.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateNodeGroupRequest actualRequest = ((CreateNodeGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(nodeGroup, actualRequest.getNodeGroup()); + Assert.assertEquals(nodeGroupId, actualRequest.getNodeGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createNodeGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNodeGroupController.addException(exception); + + try { + ClusterRegionName parent = ClusterRegionName.of("[PROJECT]", "[REGION]", "[CLUSTER]"); + NodeGroup nodeGroup = NodeGroup.newBuilder().build(); + String nodeGroupId = "nodeGroupId1097129880"; + client.createNodeGroupAsync(parent, nodeGroup, nodeGroupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createNodeGroupTest2() throws Exception { + NodeGroup expectedResponse = + NodeGroup.newBuilder() + .setName( + NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]").toString()) + .addAllRoles(new ArrayList()) + .setNodeGroupConfig(InstanceGroupConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createNodeGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNodeGroupController.addResponse(resultOperation); + + String parent = "parent-995424086"; + NodeGroup nodeGroup = NodeGroup.newBuilder().build(); + String nodeGroupId = "nodeGroupId1097129880"; + + NodeGroup actualResponse = client.createNodeGroupAsync(parent, nodeGroup, nodeGroupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNodeGroupController.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateNodeGroupRequest actualRequest = ((CreateNodeGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(nodeGroup, actualRequest.getNodeGroup()); + Assert.assertEquals(nodeGroupId, actualRequest.getNodeGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createNodeGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNodeGroupController.addException(exception); + + try { + String parent = "parent-995424086"; + NodeGroup nodeGroup = NodeGroup.newBuilder().build(); + String nodeGroupId = "nodeGroupId1097129880"; + client.createNodeGroupAsync(parent, nodeGroup, nodeGroupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void resizeNodeGroupTest() throws Exception { + NodeGroup expectedResponse = + NodeGroup.newBuilder() + .setName( + NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]").toString()) + .addAllRoles(new ArrayList()) + .setNodeGroupConfig(InstanceGroupConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resizeNodeGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNodeGroupController.addResponse(resultOperation); + + String name = "name3373707"; + int size = 3530753; + + NodeGroup actualResponse = client.resizeNodeGroupAsync(name, size).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNodeGroupController.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ResizeNodeGroupRequest actualRequest = ((ResizeNodeGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(size, actualRequest.getSize()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void resizeNodeGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNodeGroupController.addException(exception); + + try { + String name = "name3373707"; + int size = 3530753; + client.resizeNodeGroupAsync(name, size).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getNodeGroupTest() throws Exception { + NodeGroup expectedResponse = + NodeGroup.newBuilder() + .setName( + NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]").toString()) + .addAllRoles(new ArrayList()) + .setNodeGroupConfig(InstanceGroupConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockNodeGroupController.addResponse(expectedResponse); + + NodeGroupName name = NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]"); + + NodeGroup actualResponse = client.getNodeGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNodeGroupController.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetNodeGroupRequest actualRequest = ((GetNodeGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getNodeGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNodeGroupController.addException(exception); + + try { + NodeGroupName name = NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]"); + client.getNodeGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNodeGroupTest2() throws Exception { + NodeGroup expectedResponse = + NodeGroup.newBuilder() + .setName( + NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]").toString()) + .addAllRoles(new ArrayList()) + .setNodeGroupConfig(InstanceGroupConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockNodeGroupController.addResponse(expectedResponse); + + String name = "name3373707"; + + NodeGroup actualResponse = client.getNodeGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNodeGroupController.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetNodeGroupRequest actualRequest = ((GetNodeGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getNodeGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNodeGroupController.addException(exception); + + try { + String name = "name3373707"; + client.getNodeGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientHttpJsonTest.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientHttpJsonTest.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientHttpJsonTest.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientHttpJsonTest.java diff --git a/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java b/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java similarity index 100% rename from java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java rename to owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java diff --git a/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java b/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java new file mode 100644 index 000000000000..98571129828e --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java @@ -0,0 +1,664 @@ +package com.google.cloud.dataproc.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * The API interface for managing autoscaling policies in the
+ * Dataproc API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dataproc/v1/autoscaling_policies.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AutoscalingPolicyServiceGrpc { + + private AutoscalingPolicyServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dataproc.v1.AutoscalingPolicyService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateAutoscalingPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAutoscalingPolicy", + requestType = com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.class, + responseType = com.google.cloud.dataproc.v1.AutoscalingPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateAutoscalingPolicyMethod() { + io.grpc.MethodDescriptor getCreateAutoscalingPolicyMethod; + if ((getCreateAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod) == null) { + synchronized (AutoscalingPolicyServiceGrpc.class) { + if ((getCreateAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod) == null) { + AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod = getCreateAutoscalingPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAutoscalingPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance())) + .setSchemaDescriptor(new AutoscalingPolicyServiceMethodDescriptorSupplier("CreateAutoscalingPolicy")) + .build(); + } + } + } + return getCreateAutoscalingPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateAutoscalingPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAutoscalingPolicy", + requestType = com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.class, + responseType = com.google.cloud.dataproc.v1.AutoscalingPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateAutoscalingPolicyMethod() { + io.grpc.MethodDescriptor getUpdateAutoscalingPolicyMethod; + if ((getUpdateAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getUpdateAutoscalingPolicyMethod) == null) { + synchronized (AutoscalingPolicyServiceGrpc.class) { + if ((getUpdateAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getUpdateAutoscalingPolicyMethod) == null) { + AutoscalingPolicyServiceGrpc.getUpdateAutoscalingPolicyMethod = getUpdateAutoscalingPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAutoscalingPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance())) + .setSchemaDescriptor(new AutoscalingPolicyServiceMethodDescriptorSupplier("UpdateAutoscalingPolicy")) + .build(); + } + } + } + return getUpdateAutoscalingPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetAutoscalingPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAutoscalingPolicy", + requestType = com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.class, + responseType = com.google.cloud.dataproc.v1.AutoscalingPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetAutoscalingPolicyMethod() { + io.grpc.MethodDescriptor getGetAutoscalingPolicyMethod; + if ((getGetAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getGetAutoscalingPolicyMethod) == null) { + synchronized (AutoscalingPolicyServiceGrpc.class) { + if ((getGetAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getGetAutoscalingPolicyMethod) == null) { + AutoscalingPolicyServiceGrpc.getGetAutoscalingPolicyMethod = getGetAutoscalingPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAutoscalingPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance())) + .setSchemaDescriptor(new AutoscalingPolicyServiceMethodDescriptorSupplier("GetAutoscalingPolicy")) + .build(); + } + } + } + return getGetAutoscalingPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getListAutoscalingPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAutoscalingPolicies", + requestType = com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.class, + responseType = com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListAutoscalingPoliciesMethod() { + io.grpc.MethodDescriptor getListAutoscalingPoliciesMethod; + if ((getListAutoscalingPoliciesMethod = AutoscalingPolicyServiceGrpc.getListAutoscalingPoliciesMethod) == null) { + synchronized (AutoscalingPolicyServiceGrpc.class) { + if ((getListAutoscalingPoliciesMethod = AutoscalingPolicyServiceGrpc.getListAutoscalingPoliciesMethod) == null) { + AutoscalingPolicyServiceGrpc.getListAutoscalingPoliciesMethod = getListAutoscalingPoliciesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAutoscalingPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.getDefaultInstance())) + .setSchemaDescriptor(new AutoscalingPolicyServiceMethodDescriptorSupplier("ListAutoscalingPolicies")) + .build(); + } + } + } + return getListAutoscalingPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteAutoscalingPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAutoscalingPolicy", + requestType = com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteAutoscalingPolicyMethod() { + io.grpc.MethodDescriptor getDeleteAutoscalingPolicyMethod; + if ((getDeleteAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getDeleteAutoscalingPolicyMethod) == null) { + synchronized (AutoscalingPolicyServiceGrpc.class) { + if ((getDeleteAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getDeleteAutoscalingPolicyMethod) == null) { + AutoscalingPolicyServiceGrpc.getDeleteAutoscalingPolicyMethod = getDeleteAutoscalingPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAutoscalingPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AutoscalingPolicyServiceMethodDescriptorSupplier("DeleteAutoscalingPolicy")) + .build(); + } + } + } + return getDeleteAutoscalingPolicyMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AutoscalingPolicyServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AutoscalingPolicyServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoscalingPolicyServiceStub(channel, callOptions); + } + }; + return AutoscalingPolicyServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AutoscalingPolicyServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AutoscalingPolicyServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoscalingPolicyServiceBlockingStub(channel, callOptions); + } + }; + return AutoscalingPolicyServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AutoscalingPolicyServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AutoscalingPolicyServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoscalingPolicyServiceFutureStub(channel, callOptions); + } + }; + return AutoscalingPolicyServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * The API interface for managing autoscaling policies in the
+   * Dataproc API.
+   * 
+ */ + public static abstract class AutoscalingPolicyServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates new autoscaling policy.
+     * 
+ */ + public void createAutoscalingPolicy(com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAutoscalingPolicyMethod(), responseObserver); + } + + /** + *
+     * Updates (replaces) autoscaling policy.
+     * Disabled check for update_mask, because all updates will be full
+     * replacements.
+     * 
+ */ + public void updateAutoscalingPolicy(com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAutoscalingPolicyMethod(), responseObserver); + } + + /** + *
+     * Retrieves autoscaling policy.
+     * 
+ */ + public void getAutoscalingPolicy(com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAutoscalingPolicyMethod(), responseObserver); + } + + /** + *
+     * Lists autoscaling policies in the project.
+     * 
+ */ + public void listAutoscalingPolicies(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAutoscalingPoliciesMethod(), responseObserver); + } + + /** + *
+     * Deletes an autoscaling policy. It is an error to delete an autoscaling
+     * policy that is in use by one or more clusters.
+     * 
+ */ + public void deleteAutoscalingPolicy(com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAutoscalingPolicyMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateAutoscalingPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1.AutoscalingPolicy>( + this, METHODID_CREATE_AUTOSCALING_POLICY))) + .addMethod( + getUpdateAutoscalingPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1.AutoscalingPolicy>( + this, METHODID_UPDATE_AUTOSCALING_POLICY))) + .addMethod( + getGetAutoscalingPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1.AutoscalingPolicy>( + this, METHODID_GET_AUTOSCALING_POLICY))) + .addMethod( + getListAutoscalingPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest, + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse>( + this, METHODID_LIST_AUTOSCALING_POLICIES))) + .addMethod( + getDeleteAutoscalingPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_AUTOSCALING_POLICY))) + .build(); + } + } + + /** + *
+   * The API interface for managing autoscaling policies in the
+   * Dataproc API.
+   * 
+ */ + public static final class AutoscalingPolicyServiceStub extends io.grpc.stub.AbstractAsyncStub { + private AutoscalingPolicyServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AutoscalingPolicyServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoscalingPolicyServiceStub(channel, callOptions); + } + + /** + *
+     * Creates new autoscaling policy.
+     * 
+ */ + public void createAutoscalingPolicy(com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAutoscalingPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates (replaces) autoscaling policy.
+     * Disabled check for update_mask, because all updates will be full
+     * replacements.
+     * 
+ */ + public void updateAutoscalingPolicy(com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAutoscalingPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves autoscaling policy.
+     * 
+ */ + public void getAutoscalingPolicy(com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAutoscalingPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists autoscaling policies in the project.
+     * 
+ */ + public void listAutoscalingPolicies(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAutoscalingPoliciesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an autoscaling policy. It is an error to delete an autoscaling
+     * policy that is in use by one or more clusters.
+     * 
+ */ + public void deleteAutoscalingPolicy(com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAutoscalingPolicyMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * The API interface for managing autoscaling policies in the
+   * Dataproc API.
+   * 
+ */ + public static final class AutoscalingPolicyServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private AutoscalingPolicyServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AutoscalingPolicyServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoscalingPolicyServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates new autoscaling policy.
+     * 
+ */ + public com.google.cloud.dataproc.v1.AutoscalingPolicy createAutoscalingPolicy(com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAutoscalingPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates (replaces) autoscaling policy.
+     * Disabled check for update_mask, because all updates will be full
+     * replacements.
+     * 
+ */ + public com.google.cloud.dataproc.v1.AutoscalingPolicy updateAutoscalingPolicy(com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAutoscalingPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieves autoscaling policy.
+     * 
+ */ + public com.google.cloud.dataproc.v1.AutoscalingPolicy getAutoscalingPolicy(com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAutoscalingPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists autoscaling policies in the project.
+     * 
+ */ + public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse listAutoscalingPolicies(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAutoscalingPoliciesMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an autoscaling policy. It is an error to delete an autoscaling
+     * policy that is in use by one or more clusters.
+     * 
+ */ + public com.google.protobuf.Empty deleteAutoscalingPolicy(com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAutoscalingPolicyMethod(), getCallOptions(), request); + } + } + + /** + *
+   * The API interface for managing autoscaling policies in the
+   * Dataproc API.
+   * 
+ */ + public static final class AutoscalingPolicyServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private AutoscalingPolicyServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AutoscalingPolicyServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoscalingPolicyServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Creates new autoscaling policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createAutoscalingPolicy( + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAutoscalingPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates (replaces) autoscaling policy.
+     * Disabled check for update_mask, because all updates will be full
+     * replacements.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateAutoscalingPolicy( + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAutoscalingPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieves autoscaling policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getAutoscalingPolicy( + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAutoscalingPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists autoscaling policies in the project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listAutoscalingPolicies( + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAutoscalingPoliciesMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an autoscaling policy. It is an error to delete an autoscaling
+     * policy that is in use by one or more clusters.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteAutoscalingPolicy( + com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAutoscalingPolicyMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_AUTOSCALING_POLICY = 0; + private static final int METHODID_UPDATE_AUTOSCALING_POLICY = 1; + private static final int METHODID_GET_AUTOSCALING_POLICY = 2; + private static final int METHODID_LIST_AUTOSCALING_POLICIES = 3; + private static final int METHODID_DELETE_AUTOSCALING_POLICY = 4; + + 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 AutoscalingPolicyServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AutoscalingPolicyServiceImplBase 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_AUTOSCALING_POLICY: + serviceImpl.createAutoscalingPolicy((com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_AUTOSCALING_POLICY: + serviceImpl.updateAutoscalingPolicy((com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_AUTOSCALING_POLICY: + serviceImpl.getAutoscalingPolicy((com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_AUTOSCALING_POLICIES: + serviceImpl.listAutoscalingPolicies((com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_AUTOSCALING_POLICY: + serviceImpl.deleteAutoscalingPolicy((com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) 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 AutoscalingPolicyServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AutoscalingPolicyServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AutoscalingPolicyService"); + } + } + + private static final class AutoscalingPolicyServiceFileDescriptorSupplier + extends AutoscalingPolicyServiceBaseDescriptorSupplier { + AutoscalingPolicyServiceFileDescriptorSupplier() {} + } + + private static final class AutoscalingPolicyServiceMethodDescriptorSupplier + extends AutoscalingPolicyServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AutoscalingPolicyServiceMethodDescriptorSupplier(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 (AutoscalingPolicyServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AutoscalingPolicyServiceFileDescriptorSupplier()) + .addMethod(getCreateAutoscalingPolicyMethod()) + .addMethod(getUpdateAutoscalingPolicyMethod()) + .addMethod(getGetAutoscalingPolicyMethod()) + .addMethod(getListAutoscalingPoliciesMethod()) + .addMethod(getDeleteAutoscalingPolicyMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java b/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java new file mode 100644 index 000000000000..25dffd869bf1 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java @@ -0,0 +1,565 @@ +package com.google.cloud.dataproc.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * The BatchController provides methods to manage batch workloads.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dataproc/v1/batches.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BatchControllerGrpc { + + private BatchControllerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dataproc.v1.BatchController"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateBatchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBatch", + requestType = com.google.cloud.dataproc.v1.CreateBatchRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateBatchMethod() { + io.grpc.MethodDescriptor getCreateBatchMethod; + if ((getCreateBatchMethod = BatchControllerGrpc.getCreateBatchMethod) == null) { + synchronized (BatchControllerGrpc.class) { + if ((getCreateBatchMethod = BatchControllerGrpc.getCreateBatchMethod) == null) { + BatchControllerGrpc.getCreateBatchMethod = getCreateBatchMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBatch")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.CreateBatchRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BatchControllerMethodDescriptorSupplier("CreateBatch")) + .build(); + } + } + } + return getCreateBatchMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetBatchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBatch", + requestType = com.google.cloud.dataproc.v1.GetBatchRequest.class, + responseType = com.google.cloud.dataproc.v1.Batch.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetBatchMethod() { + io.grpc.MethodDescriptor getGetBatchMethod; + if ((getGetBatchMethod = BatchControllerGrpc.getGetBatchMethod) == null) { + synchronized (BatchControllerGrpc.class) { + if ((getGetBatchMethod = BatchControllerGrpc.getGetBatchMethod) == null) { + BatchControllerGrpc.getGetBatchMethod = getGetBatchMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBatch")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.GetBatchRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.Batch.getDefaultInstance())) + .setSchemaDescriptor(new BatchControllerMethodDescriptorSupplier("GetBatch")) + .build(); + } + } + } + return getGetBatchMethod; + } + + private static volatile io.grpc.MethodDescriptor getListBatchesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBatches", + requestType = com.google.cloud.dataproc.v1.ListBatchesRequest.class, + responseType = com.google.cloud.dataproc.v1.ListBatchesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListBatchesMethod() { + io.grpc.MethodDescriptor getListBatchesMethod; + if ((getListBatchesMethod = BatchControllerGrpc.getListBatchesMethod) == null) { + synchronized (BatchControllerGrpc.class) { + if ((getListBatchesMethod = BatchControllerGrpc.getListBatchesMethod) == null) { + BatchControllerGrpc.getListBatchesMethod = getListBatchesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBatches")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.ListBatchesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.ListBatchesResponse.getDefaultInstance())) + .setSchemaDescriptor(new BatchControllerMethodDescriptorSupplier("ListBatches")) + .build(); + } + } + } + return getListBatchesMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteBatchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBatch", + requestType = com.google.cloud.dataproc.v1.DeleteBatchRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteBatchMethod() { + io.grpc.MethodDescriptor getDeleteBatchMethod; + if ((getDeleteBatchMethod = BatchControllerGrpc.getDeleteBatchMethod) == null) { + synchronized (BatchControllerGrpc.class) { + if ((getDeleteBatchMethod = BatchControllerGrpc.getDeleteBatchMethod) == null) { + BatchControllerGrpc.getDeleteBatchMethod = getDeleteBatchMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBatch")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.DeleteBatchRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new BatchControllerMethodDescriptorSupplier("DeleteBatch")) + .build(); + } + } + } + return getDeleteBatchMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static BatchControllerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BatchControllerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BatchControllerStub(channel, callOptions); + } + }; + return BatchControllerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BatchControllerBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BatchControllerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BatchControllerBlockingStub(channel, callOptions); + } + }; + return BatchControllerBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static BatchControllerFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BatchControllerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BatchControllerFutureStub(channel, callOptions); + } + }; + return BatchControllerFutureStub.newStub(factory, channel); + } + + /** + *
+   * The BatchController provides methods to manage batch workloads.
+   * 
+ */ + public static abstract class BatchControllerImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a batch workload that executes asynchronously.
+     * 
+ */ + public void createBatch(com.google.cloud.dataproc.v1.CreateBatchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBatchMethod(), responseObserver); + } + + /** + *
+     * Gets the batch workload resource representation.
+     * 
+ */ + public void getBatch(com.google.cloud.dataproc.v1.GetBatchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBatchMethod(), responseObserver); + } + + /** + *
+     * Lists batch workloads.
+     * 
+ */ + public void listBatches(com.google.cloud.dataproc.v1.ListBatchesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBatchesMethod(), responseObserver); + } + + /** + *
+     * Deletes the batch workload resource. If the batch is not in terminal state,
+     * the delete fails and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public void deleteBatch(com.google.cloud.dataproc.v1.DeleteBatchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBatchMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateBatchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.CreateBatchRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_BATCH))) + .addMethod( + getGetBatchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.GetBatchRequest, + com.google.cloud.dataproc.v1.Batch>( + this, METHODID_GET_BATCH))) + .addMethod( + getListBatchesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.ListBatchesRequest, + com.google.cloud.dataproc.v1.ListBatchesResponse>( + this, METHODID_LIST_BATCHES))) + .addMethod( + getDeleteBatchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.DeleteBatchRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_BATCH))) + .build(); + } + } + + /** + *
+   * The BatchController provides methods to manage batch workloads.
+   * 
+ */ + public static final class BatchControllerStub extends io.grpc.stub.AbstractAsyncStub { + private BatchControllerStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BatchControllerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BatchControllerStub(channel, callOptions); + } + + /** + *
+     * Creates a batch workload that executes asynchronously.
+     * 
+ */ + public void createBatch(com.google.cloud.dataproc.v1.CreateBatchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBatchMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the batch workload resource representation.
+     * 
+ */ + public void getBatch(com.google.cloud.dataproc.v1.GetBatchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBatchMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists batch workloads.
+     * 
+ */ + public void listBatches(com.google.cloud.dataproc.v1.ListBatchesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBatchesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the batch workload resource. If the batch is not in terminal state,
+     * the delete fails and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public void deleteBatch(com.google.cloud.dataproc.v1.DeleteBatchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBatchMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * The BatchController provides methods to manage batch workloads.
+   * 
+ */ + public static final class BatchControllerBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private BatchControllerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BatchControllerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BatchControllerBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a batch workload that executes asynchronously.
+     * 
+ */ + public com.google.longrunning.Operation createBatch(com.google.cloud.dataproc.v1.CreateBatchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBatchMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the batch workload resource representation.
+     * 
+ */ + public com.google.cloud.dataproc.v1.Batch getBatch(com.google.cloud.dataproc.v1.GetBatchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBatchMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists batch workloads.
+     * 
+ */ + public com.google.cloud.dataproc.v1.ListBatchesResponse listBatches(com.google.cloud.dataproc.v1.ListBatchesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBatchesMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the batch workload resource. If the batch is not in terminal state,
+     * the delete fails and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public com.google.protobuf.Empty deleteBatch(com.google.cloud.dataproc.v1.DeleteBatchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBatchMethod(), getCallOptions(), request); + } + } + + /** + *
+   * The BatchController provides methods to manage batch workloads.
+   * 
+ */ + public static final class BatchControllerFutureStub extends io.grpc.stub.AbstractFutureStub { + private BatchControllerFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BatchControllerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BatchControllerFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a batch workload that executes asynchronously.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createBatch( + com.google.cloud.dataproc.v1.CreateBatchRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBatchMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the batch workload resource representation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getBatch( + com.google.cloud.dataproc.v1.GetBatchRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBatchMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists batch workloads.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listBatches( + com.google.cloud.dataproc.v1.ListBatchesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBatchesMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the batch workload resource. If the batch is not in terminal state,
+     * the delete fails and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteBatch( + com.google.cloud.dataproc.v1.DeleteBatchRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBatchMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_BATCH = 0; + private static final int METHODID_GET_BATCH = 1; + private static final int METHODID_LIST_BATCHES = 2; + private static final int METHODID_DELETE_BATCH = 3; + + 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 BatchControllerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BatchControllerImplBase 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_BATCH: + serviceImpl.createBatch((com.google.cloud.dataproc.v1.CreateBatchRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BATCH: + serviceImpl.getBatch((com.google.cloud.dataproc.v1.GetBatchRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BATCHES: + serviceImpl.listBatches((com.google.cloud.dataproc.v1.ListBatchesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BATCH: + serviceImpl.deleteBatch((com.google.cloud.dataproc.v1.DeleteBatchRequest) 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 BatchControllerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BatchControllerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BatchController"); + } + } + + private static final class BatchControllerFileDescriptorSupplier + extends BatchControllerBaseDescriptorSupplier { + BatchControllerFileDescriptorSupplier() {} + } + + private static final class BatchControllerMethodDescriptorSupplier + extends BatchControllerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BatchControllerMethodDescriptorSupplier(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 (BatchControllerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BatchControllerFileDescriptorSupplier()) + .addMethod(getCreateBatchMethod()) + .addMethod(getGetBatchMethod()) + .addMethod(getListBatchesMethod()) + .addMethod(getDeleteBatchMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java b/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java new file mode 100644 index 000000000000..280b78d15ea4 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java @@ -0,0 +1,970 @@ +package com.google.cloud.dataproc.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * The ClusterControllerService provides methods to manage clusters
+ * of Compute Engine instances.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dataproc/v1/clusters.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ClusterControllerGrpc { + + private ClusterControllerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dataproc.v1.ClusterController"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCluster", + requestType = com.google.cloud.dataproc.v1.CreateClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateClusterMethod() { + io.grpc.MethodDescriptor getCreateClusterMethod; + if ((getCreateClusterMethod = ClusterControllerGrpc.getCreateClusterMethod) == null) { + synchronized (ClusterControllerGrpc.class) { + if ((getCreateClusterMethod = ClusterControllerGrpc.getCreateClusterMethod) == null) { + ClusterControllerGrpc.getCreateClusterMethod = getCreateClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.CreateClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterControllerMethodDescriptorSupplier("CreateCluster")) + .build(); + } + } + } + return getCreateClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCluster", + requestType = com.google.cloud.dataproc.v1.UpdateClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateClusterMethod() { + io.grpc.MethodDescriptor getUpdateClusterMethod; + if ((getUpdateClusterMethod = ClusterControllerGrpc.getUpdateClusterMethod) == null) { + synchronized (ClusterControllerGrpc.class) { + if ((getUpdateClusterMethod = ClusterControllerGrpc.getUpdateClusterMethod) == null) { + ClusterControllerGrpc.getUpdateClusterMethod = getUpdateClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.UpdateClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterControllerMethodDescriptorSupplier("UpdateCluster")) + .build(); + } + } + } + return getUpdateClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getStopClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopCluster", + requestType = com.google.cloud.dataproc.v1.StopClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStopClusterMethod() { + io.grpc.MethodDescriptor getStopClusterMethod; + if ((getStopClusterMethod = ClusterControllerGrpc.getStopClusterMethod) == null) { + synchronized (ClusterControllerGrpc.class) { + if ((getStopClusterMethod = ClusterControllerGrpc.getStopClusterMethod) == null) { + ClusterControllerGrpc.getStopClusterMethod = getStopClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.StopClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterControllerMethodDescriptorSupplier("StopCluster")) + .build(); + } + } + } + return getStopClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartCluster", + requestType = com.google.cloud.dataproc.v1.StartClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartClusterMethod() { + io.grpc.MethodDescriptor getStartClusterMethod; + if ((getStartClusterMethod = ClusterControllerGrpc.getStartClusterMethod) == null) { + synchronized (ClusterControllerGrpc.class) { + if ((getStartClusterMethod = ClusterControllerGrpc.getStartClusterMethod) == null) { + ClusterControllerGrpc.getStartClusterMethod = getStartClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.StartClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterControllerMethodDescriptorSupplier("StartCluster")) + .build(); + } + } + } + return getStartClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCluster", + requestType = com.google.cloud.dataproc.v1.DeleteClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteClusterMethod() { + io.grpc.MethodDescriptor getDeleteClusterMethod; + if ((getDeleteClusterMethod = ClusterControllerGrpc.getDeleteClusterMethod) == null) { + synchronized (ClusterControllerGrpc.class) { + if ((getDeleteClusterMethod = ClusterControllerGrpc.getDeleteClusterMethod) == null) { + ClusterControllerGrpc.getDeleteClusterMethod = getDeleteClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.DeleteClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterControllerMethodDescriptorSupplier("DeleteCluster")) + .build(); + } + } + } + return getDeleteClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCluster", + requestType = com.google.cloud.dataproc.v1.GetClusterRequest.class, + responseType = com.google.cloud.dataproc.v1.Cluster.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetClusterMethod() { + io.grpc.MethodDescriptor getGetClusterMethod; + if ((getGetClusterMethod = ClusterControllerGrpc.getGetClusterMethod) == null) { + synchronized (ClusterControllerGrpc.class) { + if ((getGetClusterMethod = ClusterControllerGrpc.getGetClusterMethod) == null) { + ClusterControllerGrpc.getGetClusterMethod = getGetClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.GetClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.Cluster.getDefaultInstance())) + .setSchemaDescriptor(new ClusterControllerMethodDescriptorSupplier("GetCluster")) + .build(); + } + } + } + return getGetClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getListClustersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListClusters", + requestType = com.google.cloud.dataproc.v1.ListClustersRequest.class, + responseType = com.google.cloud.dataproc.v1.ListClustersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListClustersMethod() { + io.grpc.MethodDescriptor getListClustersMethod; + if ((getListClustersMethod = ClusterControllerGrpc.getListClustersMethod) == null) { + synchronized (ClusterControllerGrpc.class) { + if ((getListClustersMethod = ClusterControllerGrpc.getListClustersMethod) == null) { + ClusterControllerGrpc.getListClustersMethod = getListClustersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListClusters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.ListClustersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.ListClustersResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterControllerMethodDescriptorSupplier("ListClusters")) + .build(); + } + } + } + return getListClustersMethod; + } + + private static volatile io.grpc.MethodDescriptor getDiagnoseClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DiagnoseCluster", + requestType = com.google.cloud.dataproc.v1.DiagnoseClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDiagnoseClusterMethod() { + io.grpc.MethodDescriptor getDiagnoseClusterMethod; + if ((getDiagnoseClusterMethod = ClusterControllerGrpc.getDiagnoseClusterMethod) == null) { + synchronized (ClusterControllerGrpc.class) { + if ((getDiagnoseClusterMethod = ClusterControllerGrpc.getDiagnoseClusterMethod) == null) { + ClusterControllerGrpc.getDiagnoseClusterMethod = getDiagnoseClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DiagnoseCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.DiagnoseClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterControllerMethodDescriptorSupplier("DiagnoseCluster")) + .build(); + } + } + } + return getDiagnoseClusterMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ClusterControllerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ClusterControllerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterControllerStub(channel, callOptions); + } + }; + return ClusterControllerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ClusterControllerBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ClusterControllerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterControllerBlockingStub(channel, callOptions); + } + }; + return ClusterControllerBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ClusterControllerFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ClusterControllerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterControllerFutureStub(channel, callOptions); + } + }; + return ClusterControllerFutureStub.newStub(factory, channel); + } + + /** + *
+   * The ClusterControllerService provides methods to manage clusters
+   * of Compute Engine instances.
+   * 
+ */ + public static abstract class ClusterControllerImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a cluster in a project. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] will be
+     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
+     * 
+ */ + public void createCluster(com.google.cloud.dataproc.v1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateClusterMethod(), responseObserver); + } + + /** + *
+     * Updates a cluster in a project. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] will be
+     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
+     * The cluster must be in a
+     * [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error
+     * is returned.
+     * 
+ */ + public void updateCluster(com.google.cloud.dataproc.v1.UpdateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateClusterMethod(), responseObserver); + } + + /** + *
+     * Stops a cluster in a project.
+     * 
+ */ + public void stopCluster(com.google.cloud.dataproc.v1.StopClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopClusterMethod(), responseObserver); + } + + /** + *
+     * Starts a cluster in a project.
+     * 
+ */ + public void startCluster(com.google.cloud.dataproc.v1.StartClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartClusterMethod(), responseObserver); + } + + /** + *
+     * Deletes a cluster in a project. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] will be
+     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
+     * 
+ */ + public void deleteCluster(com.google.cloud.dataproc.v1.DeleteClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteClusterMethod(), responseObserver); + } + + /** + *
+     * Gets the resource representation for a cluster in a project.
+     * 
+ */ + public void getCluster(com.google.cloud.dataproc.v1.GetClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); + } + + /** + *
+     * Lists all regions/{region}/clusters in a project alphabetically.
+     * 
+ */ + public void listClusters(com.google.cloud.dataproc.v1.ListClustersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListClustersMethod(), responseObserver); + } + + /** + *
+     * Gets cluster diagnostic information. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] will be
+     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
+     * After the operation completes,
+     * [Operation.response][google.longrunning.Operation.response]
+     * contains
+     * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
+     * 
+ */ + public void diagnoseCluster(com.google.cloud.dataproc.v1.DiagnoseClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDiagnoseClusterMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.CreateClusterRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CLUSTER))) + .addMethod( + getUpdateClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.UpdateClusterRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CLUSTER))) + .addMethod( + getStopClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.StopClusterRequest, + com.google.longrunning.Operation>( + this, METHODID_STOP_CLUSTER))) + .addMethod( + getStartClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.StartClusterRequest, + com.google.longrunning.Operation>( + this, METHODID_START_CLUSTER))) + .addMethod( + getDeleteClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.DeleteClusterRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_CLUSTER))) + .addMethod( + getGetClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.GetClusterRequest, + com.google.cloud.dataproc.v1.Cluster>( + this, METHODID_GET_CLUSTER))) + .addMethod( + getListClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.ListClustersRequest, + com.google.cloud.dataproc.v1.ListClustersResponse>( + this, METHODID_LIST_CLUSTERS))) + .addMethod( + getDiagnoseClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.DiagnoseClusterRequest, + com.google.longrunning.Operation>( + this, METHODID_DIAGNOSE_CLUSTER))) + .build(); + } + } + + /** + *
+   * The ClusterControllerService provides methods to manage clusters
+   * of Compute Engine instances.
+   * 
+ */ + public static final class ClusterControllerStub extends io.grpc.stub.AbstractAsyncStub { + private ClusterControllerStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ClusterControllerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterControllerStub(channel, callOptions); + } + + /** + *
+     * Creates a cluster in a project. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] will be
+     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
+     * 
+ */ + public void createCluster(com.google.cloud.dataproc.v1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a cluster in a project. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] will be
+     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
+     * The cluster must be in a
+     * [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error
+     * is returned.
+     * 
+ */ + public void updateCluster(com.google.cloud.dataproc.v1.UpdateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Stops a cluster in a project.
+     * 
+ */ + public void stopCluster(com.google.cloud.dataproc.v1.StopClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Starts a cluster in a project.
+     * 
+ */ + public void startCluster(com.google.cloud.dataproc.v1.StartClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a cluster in a project. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] will be
+     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
+     * 
+ */ + public void deleteCluster(com.google.cloud.dataproc.v1.DeleteClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the resource representation for a cluster in a project.
+     * 
+ */ + public void getCluster(com.google.cloud.dataproc.v1.GetClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all regions/{region}/clusters in a project alphabetically.
+     * 
+ */ + public void listClusters(com.google.cloud.dataproc.v1.ListClustersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListClustersMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets cluster diagnostic information. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] will be
+     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
+     * After the operation completes,
+     * [Operation.response][google.longrunning.Operation.response]
+     * contains
+     * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
+     * 
+ */ + public void diagnoseCluster(com.google.cloud.dataproc.v1.DiagnoseClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDiagnoseClusterMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * The ClusterControllerService provides methods to manage clusters
+   * of Compute Engine instances.
+   * 
+ */ + public static final class ClusterControllerBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ClusterControllerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ClusterControllerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterControllerBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a cluster in a project. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] will be
+     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
+     * 
+ */ + public com.google.longrunning.Operation createCluster(com.google.cloud.dataproc.v1.CreateClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a cluster in a project. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] will be
+     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
+     * The cluster must be in a
+     * [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error
+     * is returned.
+     * 
+ */ + public com.google.longrunning.Operation updateCluster(com.google.cloud.dataproc.v1.UpdateClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Stops a cluster in a project.
+     * 
+ */ + public com.google.longrunning.Operation stopCluster(com.google.cloud.dataproc.v1.StopClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Starts a cluster in a project.
+     * 
+ */ + public com.google.longrunning.Operation startCluster(com.google.cloud.dataproc.v1.StartClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a cluster in a project. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] will be
+     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
+     * 
+ */ + public com.google.longrunning.Operation deleteCluster(com.google.cloud.dataproc.v1.DeleteClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the resource representation for a cluster in a project.
+     * 
+ */ + public com.google.cloud.dataproc.v1.Cluster getCluster(com.google.cloud.dataproc.v1.GetClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all regions/{region}/clusters in a project alphabetically.
+     * 
+ */ + public com.google.cloud.dataproc.v1.ListClustersResponse listClusters(com.google.cloud.dataproc.v1.ListClustersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListClustersMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets cluster diagnostic information. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] will be
+     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
+     * After the operation completes,
+     * [Operation.response][google.longrunning.Operation.response]
+     * contains
+     * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
+     * 
+ */ + public com.google.longrunning.Operation diagnoseCluster(com.google.cloud.dataproc.v1.DiagnoseClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDiagnoseClusterMethod(), getCallOptions(), request); + } + } + + /** + *
+   * The ClusterControllerService provides methods to manage clusters
+   * of Compute Engine instances.
+   * 
+ */ + public static final class ClusterControllerFutureStub extends io.grpc.stub.AbstractFutureStub { + private ClusterControllerFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ClusterControllerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterControllerFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a cluster in a project. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] will be
+     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createCluster( + com.google.cloud.dataproc.v1.CreateClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a cluster in a project. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] will be
+     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
+     * The cluster must be in a
+     * [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error
+     * is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCluster( + com.google.cloud.dataproc.v1.UpdateClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Stops a cluster in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture stopCluster( + com.google.cloud.dataproc.v1.StopClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Starts a cluster in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startCluster( + com.google.cloud.dataproc.v1.StartClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a cluster in a project. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] will be
+     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteCluster( + com.google.cloud.dataproc.v1.DeleteClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the resource representation for a cluster in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCluster( + com.google.cloud.dataproc.v1.GetClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all regions/{region}/clusters in a project alphabetically.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listClusters( + com.google.cloud.dataproc.v1.ListClustersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListClustersMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets cluster diagnostic information. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] will be
+     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
+     * After the operation completes,
+     * [Operation.response][google.longrunning.Operation.response]
+     * contains
+     * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture diagnoseCluster( + com.google.cloud.dataproc.v1.DiagnoseClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDiagnoseClusterMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CLUSTER = 0; + private static final int METHODID_UPDATE_CLUSTER = 1; + private static final int METHODID_STOP_CLUSTER = 2; + private static final int METHODID_START_CLUSTER = 3; + private static final int METHODID_DELETE_CLUSTER = 4; + private static final int METHODID_GET_CLUSTER = 5; + private static final int METHODID_LIST_CLUSTERS = 6; + private static final int METHODID_DIAGNOSE_CLUSTER = 7; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ClusterControllerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ClusterControllerImplBase 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_CLUSTER: + serviceImpl.createCluster((com.google.cloud.dataproc.v1.CreateClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CLUSTER: + serviceImpl.updateCluster((com.google.cloud.dataproc.v1.UpdateClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_CLUSTER: + serviceImpl.stopCluster((com.google.cloud.dataproc.v1.StopClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_CLUSTER: + serviceImpl.startCluster((com.google.cloud.dataproc.v1.StartClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CLUSTER: + serviceImpl.deleteCluster((com.google.cloud.dataproc.v1.DeleteClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CLUSTER: + serviceImpl.getCluster((com.google.cloud.dataproc.v1.GetClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CLUSTERS: + serviceImpl.listClusters((com.google.cloud.dataproc.v1.ListClustersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DIAGNOSE_CLUSTER: + serviceImpl.diagnoseCluster((com.google.cloud.dataproc.v1.DiagnoseClusterRequest) 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 ClusterControllerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ClusterControllerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ClusterController"); + } + } + + private static final class ClusterControllerFileDescriptorSupplier + extends ClusterControllerBaseDescriptorSupplier { + ClusterControllerFileDescriptorSupplier() {} + } + + private static final class ClusterControllerMethodDescriptorSupplier + extends ClusterControllerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ClusterControllerMethodDescriptorSupplier(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 (ClusterControllerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ClusterControllerFileDescriptorSupplier()) + .addMethod(getCreateClusterMethod()) + .addMethod(getUpdateClusterMethod()) + .addMethod(getStopClusterMethod()) + .addMethod(getStartClusterMethod()) + .addMethod(getDeleteClusterMethod()) + .addMethod(getGetClusterMethod()) + .addMethod(getListClustersMethod()) + .addMethod(getDiagnoseClusterMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java b/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java new file mode 100644 index 000000000000..3698d2064977 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java @@ -0,0 +1,839 @@ +package com.google.cloud.dataproc.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * The JobController provides methods to manage jobs.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dataproc/v1/jobs.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class JobControllerGrpc { + + private JobControllerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dataproc.v1.JobController"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getSubmitJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SubmitJob", + requestType = com.google.cloud.dataproc.v1.SubmitJobRequest.class, + responseType = com.google.cloud.dataproc.v1.Job.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSubmitJobMethod() { + io.grpc.MethodDescriptor getSubmitJobMethod; + if ((getSubmitJobMethod = JobControllerGrpc.getSubmitJobMethod) == null) { + synchronized (JobControllerGrpc.class) { + if ((getSubmitJobMethod = JobControllerGrpc.getSubmitJobMethod) == null) { + JobControllerGrpc.getSubmitJobMethod = getSubmitJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubmitJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.SubmitJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.Job.getDefaultInstance())) + .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("SubmitJob")) + .build(); + } + } + } + return getSubmitJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getSubmitJobAsOperationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SubmitJobAsOperation", + requestType = com.google.cloud.dataproc.v1.SubmitJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSubmitJobAsOperationMethod() { + io.grpc.MethodDescriptor getSubmitJobAsOperationMethod; + if ((getSubmitJobAsOperationMethod = JobControllerGrpc.getSubmitJobAsOperationMethod) == null) { + synchronized (JobControllerGrpc.class) { + if ((getSubmitJobAsOperationMethod = JobControllerGrpc.getSubmitJobAsOperationMethod) == null) { + JobControllerGrpc.getSubmitJobAsOperationMethod = getSubmitJobAsOperationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubmitJobAsOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.SubmitJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("SubmitJobAsOperation")) + .build(); + } + } + } + return getSubmitJobAsOperationMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetJob", + requestType = com.google.cloud.dataproc.v1.GetJobRequest.class, + responseType = com.google.cloud.dataproc.v1.Job.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetJobMethod() { + io.grpc.MethodDescriptor getGetJobMethod; + if ((getGetJobMethod = JobControllerGrpc.getGetJobMethod) == null) { + synchronized (JobControllerGrpc.class) { + if ((getGetJobMethod = JobControllerGrpc.getGetJobMethod) == null) { + JobControllerGrpc.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.dataproc.v1.GetJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.Job.getDefaultInstance())) + .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("GetJob")) + .build(); + } + } + } + return getGetJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getListJobsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListJobs", + requestType = com.google.cloud.dataproc.v1.ListJobsRequest.class, + responseType = com.google.cloud.dataproc.v1.ListJobsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListJobsMethod() { + io.grpc.MethodDescriptor getListJobsMethod; + if ((getListJobsMethod = JobControllerGrpc.getListJobsMethod) == null) { + synchronized (JobControllerGrpc.class) { + if ((getListJobsMethod = JobControllerGrpc.getListJobsMethod) == null) { + JobControllerGrpc.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.dataproc.v1.ListJobsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.ListJobsResponse.getDefaultInstance())) + .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("ListJobs")) + .build(); + } + } + } + return getListJobsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateJob", + requestType = com.google.cloud.dataproc.v1.UpdateJobRequest.class, + responseType = com.google.cloud.dataproc.v1.Job.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateJobMethod() { + io.grpc.MethodDescriptor getUpdateJobMethod; + if ((getUpdateJobMethod = JobControllerGrpc.getUpdateJobMethod) == null) { + synchronized (JobControllerGrpc.class) { + if ((getUpdateJobMethod = JobControllerGrpc.getUpdateJobMethod) == null) { + JobControllerGrpc.getUpdateJobMethod = getUpdateJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.UpdateJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.Job.getDefaultInstance())) + .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("UpdateJob")) + .build(); + } + } + } + return getUpdateJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getCancelJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelJob", + requestType = com.google.cloud.dataproc.v1.CancelJobRequest.class, + responseType = com.google.cloud.dataproc.v1.Job.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCancelJobMethod() { + io.grpc.MethodDescriptor getCancelJobMethod; + if ((getCancelJobMethod = JobControllerGrpc.getCancelJobMethod) == null) { + synchronized (JobControllerGrpc.class) { + if ((getCancelJobMethod = JobControllerGrpc.getCancelJobMethod) == null) { + JobControllerGrpc.getCancelJobMethod = getCancelJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.CancelJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.Job.getDefaultInstance())) + .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("CancelJob")) + .build(); + } + } + } + return getCancelJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteJob", + requestType = com.google.cloud.dataproc.v1.DeleteJobRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteJobMethod() { + io.grpc.MethodDescriptor getDeleteJobMethod; + if ((getDeleteJobMethod = JobControllerGrpc.getDeleteJobMethod) == null) { + synchronized (JobControllerGrpc.class) { + if ((getDeleteJobMethod = JobControllerGrpc.getDeleteJobMethod) == null) { + JobControllerGrpc.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.dataproc.v1.DeleteJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("DeleteJob")) + .build(); + } + } + } + return getDeleteJobMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static JobControllerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public JobControllerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobControllerStub(channel, callOptions); + } + }; + return JobControllerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static JobControllerBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public JobControllerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobControllerBlockingStub(channel, callOptions); + } + }; + return JobControllerBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static JobControllerFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public JobControllerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobControllerFutureStub(channel, callOptions); + } + }; + return JobControllerFutureStub.newStub(factory, channel); + } + + /** + *
+   * The JobController provides methods to manage jobs.
+   * 
+ */ + public static abstract class JobControllerImplBase implements io.grpc.BindableService { + + /** + *
+     * Submits a job to a cluster.
+     * 
+ */ + public void submitJob(com.google.cloud.dataproc.v1.SubmitJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitJobMethod(), responseObserver); + } + + /** + *
+     * Submits job to a cluster.
+     * 
+ */ + public void submitJobAsOperation(com.google.cloud.dataproc.v1.SubmitJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitJobAsOperationMethod(), responseObserver); + } + + /** + *
+     * Gets the resource representation for a job in a project.
+     * 
+ */ + public void getJob(com.google.cloud.dataproc.v1.GetJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobMethod(), responseObserver); + } + + /** + *
+     * Lists regions/{region}/jobs in a project.
+     * 
+ */ + public void listJobs(com.google.cloud.dataproc.v1.ListJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListJobsMethod(), responseObserver); + } + + /** + *
+     * Updates a job in a project.
+     * 
+ */ + public void updateJob(com.google.cloud.dataproc.v1.UpdateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateJobMethod(), responseObserver); + } + + /** + *
+     * Starts a job cancellation request. To access the job resource
+     * after cancellation, call
+     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
+     * or
+     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
+     * 
+ */ + public void cancelJob(com.google.cloud.dataproc.v1.CancelJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelJobMethod(), responseObserver); + } + + /** + *
+     * Deletes the job from the project. If the job is active, the delete fails,
+     * and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public void deleteJob(com.google.cloud.dataproc.v1.DeleteJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteJobMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getSubmitJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.SubmitJobRequest, + com.google.cloud.dataproc.v1.Job>( + this, METHODID_SUBMIT_JOB))) + .addMethod( + getSubmitJobAsOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.SubmitJobRequest, + com.google.longrunning.Operation>( + this, METHODID_SUBMIT_JOB_AS_OPERATION))) + .addMethod( + getGetJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.GetJobRequest, + com.google.cloud.dataproc.v1.Job>( + this, METHODID_GET_JOB))) + .addMethod( + getListJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.ListJobsRequest, + com.google.cloud.dataproc.v1.ListJobsResponse>( + this, METHODID_LIST_JOBS))) + .addMethod( + getUpdateJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.UpdateJobRequest, + com.google.cloud.dataproc.v1.Job>( + this, METHODID_UPDATE_JOB))) + .addMethod( + getCancelJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.CancelJobRequest, + com.google.cloud.dataproc.v1.Job>( + this, METHODID_CANCEL_JOB))) + .addMethod( + getDeleteJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.DeleteJobRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_JOB))) + .build(); + } + } + + /** + *
+   * The JobController provides methods to manage jobs.
+   * 
+ */ + public static final class JobControllerStub extends io.grpc.stub.AbstractAsyncStub { + private JobControllerStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected JobControllerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobControllerStub(channel, callOptions); + } + + /** + *
+     * Submits a job to a cluster.
+     * 
+ */ + public void submitJob(com.google.cloud.dataproc.v1.SubmitJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSubmitJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Submits job to a cluster.
+     * 
+ */ + public void submitJobAsOperation(com.google.cloud.dataproc.v1.SubmitJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSubmitJobAsOperationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the resource representation for a job in a project.
+     * 
+ */ + public void getJob(com.google.cloud.dataproc.v1.GetJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists regions/{region}/jobs in a project.
+     * 
+ */ + public void listJobs(com.google.cloud.dataproc.v1.ListJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListJobsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a job in a project.
+     * 
+ */ + public void updateJob(com.google.cloud.dataproc.v1.UpdateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Starts a job cancellation request. To access the job resource
+     * after cancellation, call
+     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
+     * or
+     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
+     * 
+ */ + public void cancelJob(com.google.cloud.dataproc.v1.CancelJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the job from the project. If the job is active, the delete fails,
+     * and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public void deleteJob(com.google.cloud.dataproc.v1.DeleteJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * The JobController provides methods to manage jobs.
+   * 
+ */ + public static final class JobControllerBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private JobControllerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected JobControllerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobControllerBlockingStub(channel, callOptions); + } + + /** + *
+     * Submits a job to a cluster.
+     * 
+ */ + public com.google.cloud.dataproc.v1.Job submitJob(com.google.cloud.dataproc.v1.SubmitJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSubmitJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Submits job to a cluster.
+     * 
+ */ + public com.google.longrunning.Operation submitJobAsOperation(com.google.cloud.dataproc.v1.SubmitJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSubmitJobAsOperationMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the resource representation for a job in a project.
+     * 
+ */ + public com.google.cloud.dataproc.v1.Job getJob(com.google.cloud.dataproc.v1.GetJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists regions/{region}/jobs in a project.
+     * 
+ */ + public com.google.cloud.dataproc.v1.ListJobsResponse listJobs(com.google.cloud.dataproc.v1.ListJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListJobsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a job in a project.
+     * 
+ */ + public com.google.cloud.dataproc.v1.Job updateJob(com.google.cloud.dataproc.v1.UpdateJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Starts a job cancellation request. To access the job resource
+     * after cancellation, call
+     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
+     * or
+     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
+     * 
+ */ + public com.google.cloud.dataproc.v1.Job cancelJob(com.google.cloud.dataproc.v1.CancelJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the job from the project. If the job is active, the delete fails,
+     * and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public com.google.protobuf.Empty deleteJob(com.google.cloud.dataproc.v1.DeleteJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteJobMethod(), getCallOptions(), request); + } + } + + /** + *
+   * The JobController provides methods to manage jobs.
+   * 
+ */ + public static final class JobControllerFutureStub extends io.grpc.stub.AbstractFutureStub { + private JobControllerFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected JobControllerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobControllerFutureStub(channel, callOptions); + } + + /** + *
+     * Submits a job to a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture submitJob( + com.google.cloud.dataproc.v1.SubmitJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSubmitJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Submits job to a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture submitJobAsOperation( + com.google.cloud.dataproc.v1.SubmitJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSubmitJobAsOperationMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the resource representation for a job in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getJob( + com.google.cloud.dataproc.v1.GetJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists regions/{region}/jobs in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listJobs( + com.google.cloud.dataproc.v1.ListJobsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListJobsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a job in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateJob( + com.google.cloud.dataproc.v1.UpdateJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Starts a job cancellation request. To access the job resource
+     * after cancellation, call
+     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
+     * or
+     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture cancelJob( + com.google.cloud.dataproc.v1.CancelJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the job from the project. If the job is active, the delete fails,
+     * and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteJob( + com.google.cloud.dataproc.v1.DeleteJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_SUBMIT_JOB = 0; + private static final int METHODID_SUBMIT_JOB_AS_OPERATION = 1; + private static final int METHODID_GET_JOB = 2; + private static final int METHODID_LIST_JOBS = 3; + private static final int METHODID_UPDATE_JOB = 4; + private static final int METHODID_CANCEL_JOB = 5; + private static final int METHODID_DELETE_JOB = 6; + + 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 JobControllerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(JobControllerImplBase 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_SUBMIT_JOB: + serviceImpl.submitJob((com.google.cloud.dataproc.v1.SubmitJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SUBMIT_JOB_AS_OPERATION: + serviceImpl.submitJobAsOperation((com.google.cloud.dataproc.v1.SubmitJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_JOB: + serviceImpl.getJob((com.google.cloud.dataproc.v1.GetJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_JOBS: + serviceImpl.listJobs((com.google.cloud.dataproc.v1.ListJobsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_JOB: + serviceImpl.updateJob((com.google.cloud.dataproc.v1.UpdateJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CANCEL_JOB: + serviceImpl.cancelJob((com.google.cloud.dataproc.v1.CancelJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_JOB: + serviceImpl.deleteJob((com.google.cloud.dataproc.v1.DeleteJobRequest) 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 JobControllerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + JobControllerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("JobController"); + } + } + + private static final class JobControllerFileDescriptorSupplier + extends JobControllerBaseDescriptorSupplier { + JobControllerFileDescriptorSupplier() {} + } + + private static final class JobControllerMethodDescriptorSupplier + extends JobControllerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + JobControllerMethodDescriptorSupplier(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 (JobControllerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new JobControllerFileDescriptorSupplier()) + .addMethod(getSubmitJobMethod()) + .addMethod(getSubmitJobAsOperationMethod()) + .addMethod(getGetJobMethod()) + .addMethod(getListJobsMethod()) + .addMethod(getUpdateJobMethod()) + .addMethod(getCancelJobMethod()) + .addMethod(getDeleteJobMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerGrpc.java b/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerGrpc.java new file mode 100644 index 000000000000..31f7f8222503 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerGrpc.java @@ -0,0 +1,500 @@ +package com.google.cloud.dataproc.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * The `NodeGroupControllerService` provides methods to manage node groups
+ * of Compute Engine managed instances.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dataproc/v1/node_groups.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class NodeGroupControllerGrpc { + + private NodeGroupControllerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dataproc.v1.NodeGroupController"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateNodeGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateNodeGroup", + requestType = com.google.cloud.dataproc.v1.CreateNodeGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateNodeGroupMethod() { + io.grpc.MethodDescriptor getCreateNodeGroupMethod; + if ((getCreateNodeGroupMethod = NodeGroupControllerGrpc.getCreateNodeGroupMethod) == null) { + synchronized (NodeGroupControllerGrpc.class) { + if ((getCreateNodeGroupMethod = NodeGroupControllerGrpc.getCreateNodeGroupMethod) == null) { + NodeGroupControllerGrpc.getCreateNodeGroupMethod = getCreateNodeGroupMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNodeGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.CreateNodeGroupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NodeGroupControllerMethodDescriptorSupplier("CreateNodeGroup")) + .build(); + } + } + } + return getCreateNodeGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor getResizeNodeGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResizeNodeGroup", + requestType = com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getResizeNodeGroupMethod() { + io.grpc.MethodDescriptor getResizeNodeGroupMethod; + if ((getResizeNodeGroupMethod = NodeGroupControllerGrpc.getResizeNodeGroupMethod) == null) { + synchronized (NodeGroupControllerGrpc.class) { + if ((getResizeNodeGroupMethod = NodeGroupControllerGrpc.getResizeNodeGroupMethod) == null) { + NodeGroupControllerGrpc.getResizeNodeGroupMethod = getResizeNodeGroupMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResizeNodeGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NodeGroupControllerMethodDescriptorSupplier("ResizeNodeGroup")) + .build(); + } + } + } + return getResizeNodeGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetNodeGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNodeGroup", + requestType = com.google.cloud.dataproc.v1.GetNodeGroupRequest.class, + responseType = com.google.cloud.dataproc.v1.NodeGroup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetNodeGroupMethod() { + io.grpc.MethodDescriptor getGetNodeGroupMethod; + if ((getGetNodeGroupMethod = NodeGroupControllerGrpc.getGetNodeGroupMethod) == null) { + synchronized (NodeGroupControllerGrpc.class) { + if ((getGetNodeGroupMethod = NodeGroupControllerGrpc.getGetNodeGroupMethod) == null) { + NodeGroupControllerGrpc.getGetNodeGroupMethod = getGetNodeGroupMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNodeGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.GetNodeGroupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance())) + .setSchemaDescriptor(new NodeGroupControllerMethodDescriptorSupplier("GetNodeGroup")) + .build(); + } + } + } + return getGetNodeGroupMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static NodeGroupControllerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NodeGroupControllerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NodeGroupControllerStub(channel, callOptions); + } + }; + return NodeGroupControllerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static NodeGroupControllerBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NodeGroupControllerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NodeGroupControllerBlockingStub(channel, callOptions); + } + }; + return NodeGroupControllerBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static NodeGroupControllerFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NodeGroupControllerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NodeGroupControllerFutureStub(channel, callOptions); + } + }; + return NodeGroupControllerFutureStub.newStub(factory, channel); + } + + /** + *
+   * The `NodeGroupControllerService` provides methods to manage node groups
+   * of Compute Engine managed instances.
+   * 
+ */ + public static abstract class NodeGroupControllerImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a node group in a cluster. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] is
+     * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
+     * 
+ */ + public void createNodeGroup(com.google.cloud.dataproc.v1.CreateNodeGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNodeGroupMethod(), responseObserver); + } + + /** + *
+     * Resizes a node group in a cluster. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] is
+     * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
+     * 
+ */ + public void resizeNodeGroup(com.google.cloud.dataproc.v1.ResizeNodeGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResizeNodeGroupMethod(), responseObserver); + } + + /** + *
+     * Gets the resource representation for a node group in a
+     * cluster.
+     * 
+ */ + public void getNodeGroup(com.google.cloud.dataproc.v1.GetNodeGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodeGroupMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateNodeGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.CreateNodeGroupRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_NODE_GROUP))) + .addMethod( + getResizeNodeGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest, + com.google.longrunning.Operation>( + this, METHODID_RESIZE_NODE_GROUP))) + .addMethod( + getGetNodeGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.GetNodeGroupRequest, + com.google.cloud.dataproc.v1.NodeGroup>( + this, METHODID_GET_NODE_GROUP))) + .build(); + } + } + + /** + *
+   * The `NodeGroupControllerService` provides methods to manage node groups
+   * of Compute Engine managed instances.
+   * 
+ */ + public static final class NodeGroupControllerStub extends io.grpc.stub.AbstractAsyncStub { + private NodeGroupControllerStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NodeGroupControllerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NodeGroupControllerStub(channel, callOptions); + } + + /** + *
+     * Creates a node group in a cluster. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] is
+     * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
+     * 
+ */ + public void createNodeGroup(com.google.cloud.dataproc.v1.CreateNodeGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNodeGroupMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Resizes a node group in a cluster. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] is
+     * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
+     * 
+ */ + public void resizeNodeGroup(com.google.cloud.dataproc.v1.ResizeNodeGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResizeNodeGroupMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the resource representation for a node group in a
+     * cluster.
+     * 
+ */ + public void getNodeGroup(com.google.cloud.dataproc.v1.GetNodeGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNodeGroupMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * The `NodeGroupControllerService` provides methods to manage node groups
+   * of Compute Engine managed instances.
+   * 
+ */ + public static final class NodeGroupControllerBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private NodeGroupControllerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NodeGroupControllerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NodeGroupControllerBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a node group in a cluster. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] is
+     * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
+     * 
+ */ + public com.google.longrunning.Operation createNodeGroup(com.google.cloud.dataproc.v1.CreateNodeGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNodeGroupMethod(), getCallOptions(), request); + } + + /** + *
+     * Resizes a node group in a cluster. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] is
+     * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
+     * 
+ */ + public com.google.longrunning.Operation resizeNodeGroup(com.google.cloud.dataproc.v1.ResizeNodeGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResizeNodeGroupMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the resource representation for a node group in a
+     * cluster.
+     * 
+ */ + public com.google.cloud.dataproc.v1.NodeGroup getNodeGroup(com.google.cloud.dataproc.v1.GetNodeGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNodeGroupMethod(), getCallOptions(), request); + } + } + + /** + *
+   * The `NodeGroupControllerService` provides methods to manage node groups
+   * of Compute Engine managed instances.
+   * 
+ */ + public static final class NodeGroupControllerFutureStub extends io.grpc.stub.AbstractFutureStub { + private NodeGroupControllerFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NodeGroupControllerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NodeGroupControllerFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a node group in a cluster. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] is
+     * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createNodeGroup( + com.google.cloud.dataproc.v1.CreateNodeGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateNodeGroupMethod(), getCallOptions()), request); + } + + /** + *
+     * Resizes a node group in a cluster. The returned
+     * [Operation.metadata][google.longrunning.Operation.metadata] is
+     * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture resizeNodeGroup( + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResizeNodeGroupMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the resource representation for a node group in a
+     * cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getNodeGroup( + com.google.cloud.dataproc.v1.GetNodeGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNodeGroupMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_NODE_GROUP = 0; + private static final int METHODID_RESIZE_NODE_GROUP = 1; + private static final int METHODID_GET_NODE_GROUP = 2; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final NodeGroupControllerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(NodeGroupControllerImplBase 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_NODE_GROUP: + serviceImpl.createNodeGroup((com.google.cloud.dataproc.v1.CreateNodeGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESIZE_NODE_GROUP: + serviceImpl.resizeNodeGroup((com.google.cloud.dataproc.v1.ResizeNodeGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NODE_GROUP: + serviceImpl.getNodeGroup((com.google.cloud.dataproc.v1.GetNodeGroupRequest) 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 NodeGroupControllerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + NodeGroupControllerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dataproc.v1.NodeGroupsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("NodeGroupController"); + } + } + + private static final class NodeGroupControllerFileDescriptorSupplier + extends NodeGroupControllerBaseDescriptorSupplier { + NodeGroupControllerFileDescriptorSupplier() {} + } + + private static final class NodeGroupControllerMethodDescriptorSupplier + extends NodeGroupControllerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + NodeGroupControllerMethodDescriptorSupplier(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 (NodeGroupControllerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new NodeGroupControllerFileDescriptorSupplier()) + .addMethod(getCreateNodeGroupMethod()) + .addMethod(getResizeNodeGroupMethod()) + .addMethod(getGetNodeGroupMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java b/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java similarity index 50% rename from java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java rename to owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java index 3b23792fec75..fe316c22620d 100644 --- a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java +++ b/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.dataproc.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * The API interface for managing Workflow Templates in the
  * Dataproc API.
@@ -36,453 +19,298 @@ private WorkflowTemplateServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.dataproc.v1.WorkflowTemplateService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest,
-          com.google.cloud.dataproc.v1.WorkflowTemplate>
-      getCreateWorkflowTemplateMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateWorkflowTemplateMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateWorkflowTemplate",
       requestType = com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.class,
       responseType = com.google.cloud.dataproc.v1.WorkflowTemplate.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest,
-          com.google.cloud.dataproc.v1.WorkflowTemplate>
-      getCreateWorkflowTemplateMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest,
-            com.google.cloud.dataproc.v1.WorkflowTemplate>
-        getCreateWorkflowTemplateMethod;
-    if ((getCreateWorkflowTemplateMethod =
-            WorkflowTemplateServiceGrpc.getCreateWorkflowTemplateMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getCreateWorkflowTemplateMethod() {
+    io.grpc.MethodDescriptor getCreateWorkflowTemplateMethod;
+    if ((getCreateWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getCreateWorkflowTemplateMethod) == null) {
       synchronized (WorkflowTemplateServiceGrpc.class) {
-        if ((getCreateWorkflowTemplateMethod =
-                WorkflowTemplateServiceGrpc.getCreateWorkflowTemplateMethod)
-            == null) {
-          WorkflowTemplateServiceGrpc.getCreateWorkflowTemplateMethod =
-              getCreateWorkflowTemplateMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "CreateWorkflowTemplate"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new WorkflowTemplateServiceMethodDescriptorSupplier(
-                              "CreateWorkflowTemplate"))
-                      .build();
+        if ((getCreateWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getCreateWorkflowTemplateMethod) == null) {
+          WorkflowTemplateServiceGrpc.getCreateWorkflowTemplateMethod = getCreateWorkflowTemplateMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkflowTemplate"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()))
+              .setSchemaDescriptor(new WorkflowTemplateServiceMethodDescriptorSupplier("CreateWorkflowTemplate"))
+              .build();
         }
       }
     }
     return getCreateWorkflowTemplateMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest,
-          com.google.cloud.dataproc.v1.WorkflowTemplate>
-      getGetWorkflowTemplateMethod;
+  private static volatile io.grpc.MethodDescriptor getGetWorkflowTemplateMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetWorkflowTemplate",
       requestType = com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.class,
       responseType = com.google.cloud.dataproc.v1.WorkflowTemplate.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest,
-          com.google.cloud.dataproc.v1.WorkflowTemplate>
-      getGetWorkflowTemplateMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest,
-            com.google.cloud.dataproc.v1.WorkflowTemplate>
-        getGetWorkflowTemplateMethod;
-    if ((getGetWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getGetWorkflowTemplateMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getGetWorkflowTemplateMethod() {
+    io.grpc.MethodDescriptor getGetWorkflowTemplateMethod;
+    if ((getGetWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getGetWorkflowTemplateMethod) == null) {
       synchronized (WorkflowTemplateServiceGrpc.class) {
-        if ((getGetWorkflowTemplateMethod =
-                WorkflowTemplateServiceGrpc.getGetWorkflowTemplateMethod)
-            == null) {
-          WorkflowTemplateServiceGrpc.getGetWorkflowTemplateMethod =
-              getGetWorkflowTemplateMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "GetWorkflowTemplate"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new WorkflowTemplateServiceMethodDescriptorSupplier(
-                              "GetWorkflowTemplate"))
-                      .build();
+        if ((getGetWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getGetWorkflowTemplateMethod) == null) {
+          WorkflowTemplateServiceGrpc.getGetWorkflowTemplateMethod = getGetWorkflowTemplateMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkflowTemplate"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()))
+              .setSchemaDescriptor(new WorkflowTemplateServiceMethodDescriptorSupplier("GetWorkflowTemplate"))
+              .build();
         }
       }
     }
     return getGetWorkflowTemplateMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest,
-          com.google.longrunning.Operation>
-      getInstantiateWorkflowTemplateMethod;
+  private static volatile io.grpc.MethodDescriptor getInstantiateWorkflowTemplateMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "InstantiateWorkflowTemplate",
       requestType = com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest,
-          com.google.longrunning.Operation>
-      getInstantiateWorkflowTemplateMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest,
-            com.google.longrunning.Operation>
-        getInstantiateWorkflowTemplateMethod;
-    if ((getInstantiateWorkflowTemplateMethod =
-            WorkflowTemplateServiceGrpc.getInstantiateWorkflowTemplateMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getInstantiateWorkflowTemplateMethod() {
+    io.grpc.MethodDescriptor getInstantiateWorkflowTemplateMethod;
+    if ((getInstantiateWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getInstantiateWorkflowTemplateMethod) == null) {
       synchronized (WorkflowTemplateServiceGrpc.class) {
-        if ((getInstantiateWorkflowTemplateMethod =
-                WorkflowTemplateServiceGrpc.getInstantiateWorkflowTemplateMethod)
-            == null) {
-          WorkflowTemplateServiceGrpc.getInstantiateWorkflowTemplateMethod =
-              getInstantiateWorkflowTemplateMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "InstantiateWorkflowTemplate"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new WorkflowTemplateServiceMethodDescriptorSupplier(
-                              "InstantiateWorkflowTemplate"))
-                      .build();
+        if ((getInstantiateWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getInstantiateWorkflowTemplateMethod) == null) {
+          WorkflowTemplateServiceGrpc.getInstantiateWorkflowTemplateMethod = getInstantiateWorkflowTemplateMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InstantiateWorkflowTemplate"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new WorkflowTemplateServiceMethodDescriptorSupplier("InstantiateWorkflowTemplate"))
+              .build();
         }
       }
     }
     return getInstantiateWorkflowTemplateMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest,
-          com.google.longrunning.Operation>
-      getInstantiateInlineWorkflowTemplateMethod;
+  private static volatile io.grpc.MethodDescriptor getInstantiateInlineWorkflowTemplateMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "InstantiateInlineWorkflowTemplate",
       requestType = com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest,
-          com.google.longrunning.Operation>
-      getInstantiateInlineWorkflowTemplateMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest,
-            com.google.longrunning.Operation>
-        getInstantiateInlineWorkflowTemplateMethod;
-    if ((getInstantiateInlineWorkflowTemplateMethod =
-            WorkflowTemplateServiceGrpc.getInstantiateInlineWorkflowTemplateMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getInstantiateInlineWorkflowTemplateMethod() {
+    io.grpc.MethodDescriptor getInstantiateInlineWorkflowTemplateMethod;
+    if ((getInstantiateInlineWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getInstantiateInlineWorkflowTemplateMethod) == null) {
       synchronized (WorkflowTemplateServiceGrpc.class) {
-        if ((getInstantiateInlineWorkflowTemplateMethod =
-                WorkflowTemplateServiceGrpc.getInstantiateInlineWorkflowTemplateMethod)
-            == null) {
-          WorkflowTemplateServiceGrpc.getInstantiateInlineWorkflowTemplateMethod =
-              getInstantiateInlineWorkflowTemplateMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "InstantiateInlineWorkflowTemplate"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new WorkflowTemplateServiceMethodDescriptorSupplier(
-                              "InstantiateInlineWorkflowTemplate"))
-                      .build();
+        if ((getInstantiateInlineWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getInstantiateInlineWorkflowTemplateMethod) == null) {
+          WorkflowTemplateServiceGrpc.getInstantiateInlineWorkflowTemplateMethod = getInstantiateInlineWorkflowTemplateMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InstantiateInlineWorkflowTemplate"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new WorkflowTemplateServiceMethodDescriptorSupplier("InstantiateInlineWorkflowTemplate"))
+              .build();
         }
       }
     }
     return getInstantiateInlineWorkflowTemplateMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest,
-          com.google.cloud.dataproc.v1.WorkflowTemplate>
-      getUpdateWorkflowTemplateMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateWorkflowTemplateMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateWorkflowTemplate",
       requestType = com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.class,
       responseType = com.google.cloud.dataproc.v1.WorkflowTemplate.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest,
-          com.google.cloud.dataproc.v1.WorkflowTemplate>
-      getUpdateWorkflowTemplateMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest,
-            com.google.cloud.dataproc.v1.WorkflowTemplate>
-        getUpdateWorkflowTemplateMethod;
-    if ((getUpdateWorkflowTemplateMethod =
-            WorkflowTemplateServiceGrpc.getUpdateWorkflowTemplateMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getUpdateWorkflowTemplateMethod() {
+    io.grpc.MethodDescriptor getUpdateWorkflowTemplateMethod;
+    if ((getUpdateWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getUpdateWorkflowTemplateMethod) == null) {
       synchronized (WorkflowTemplateServiceGrpc.class) {
-        if ((getUpdateWorkflowTemplateMethod =
-                WorkflowTemplateServiceGrpc.getUpdateWorkflowTemplateMethod)
-            == null) {
-          WorkflowTemplateServiceGrpc.getUpdateWorkflowTemplateMethod =
-              getUpdateWorkflowTemplateMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "UpdateWorkflowTemplate"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new WorkflowTemplateServiceMethodDescriptorSupplier(
-                              "UpdateWorkflowTemplate"))
-                      .build();
+        if ((getUpdateWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getUpdateWorkflowTemplateMethod) == null) {
+          WorkflowTemplateServiceGrpc.getUpdateWorkflowTemplateMethod = getUpdateWorkflowTemplateMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkflowTemplate"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()))
+              .setSchemaDescriptor(new WorkflowTemplateServiceMethodDescriptorSupplier("UpdateWorkflowTemplate"))
+              .build();
         }
       }
     }
     return getUpdateWorkflowTemplateMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest,
-          com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse>
-      getListWorkflowTemplatesMethod;
+  private static volatile io.grpc.MethodDescriptor getListWorkflowTemplatesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListWorkflowTemplates",
       requestType = com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.class,
       responseType = com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest,
-          com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse>
-      getListWorkflowTemplatesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest,
-            com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse>
-        getListWorkflowTemplatesMethod;
-    if ((getListWorkflowTemplatesMethod =
-            WorkflowTemplateServiceGrpc.getListWorkflowTemplatesMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getListWorkflowTemplatesMethod() {
+    io.grpc.MethodDescriptor getListWorkflowTemplatesMethod;
+    if ((getListWorkflowTemplatesMethod = WorkflowTemplateServiceGrpc.getListWorkflowTemplatesMethod) == null) {
       synchronized (WorkflowTemplateServiceGrpc.class) {
-        if ((getListWorkflowTemplatesMethod =
-                WorkflowTemplateServiceGrpc.getListWorkflowTemplatesMethod)
-            == null) {
-          WorkflowTemplateServiceGrpc.getListWorkflowTemplatesMethod =
-              getListWorkflowTemplatesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "ListWorkflowTemplates"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new WorkflowTemplateServiceMethodDescriptorSupplier(
-                              "ListWorkflowTemplates"))
-                      .build();
+        if ((getListWorkflowTemplatesMethod = WorkflowTemplateServiceGrpc.getListWorkflowTemplatesMethod) == null) {
+          WorkflowTemplateServiceGrpc.getListWorkflowTemplatesMethod = getListWorkflowTemplatesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkflowTemplates"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new WorkflowTemplateServiceMethodDescriptorSupplier("ListWorkflowTemplates"))
+              .build();
         }
       }
     }
     return getListWorkflowTemplatesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest, com.google.protobuf.Empty>
-      getDeleteWorkflowTemplateMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteWorkflowTemplateMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteWorkflowTemplate",
       requestType = com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest, com.google.protobuf.Empty>
-      getDeleteWorkflowTemplateMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest, com.google.protobuf.Empty>
-        getDeleteWorkflowTemplateMethod;
-    if ((getDeleteWorkflowTemplateMethod =
-            WorkflowTemplateServiceGrpc.getDeleteWorkflowTemplateMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getDeleteWorkflowTemplateMethod() {
+    io.grpc.MethodDescriptor getDeleteWorkflowTemplateMethod;
+    if ((getDeleteWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getDeleteWorkflowTemplateMethod) == null) {
       synchronized (WorkflowTemplateServiceGrpc.class) {
-        if ((getDeleteWorkflowTemplateMethod =
-                WorkflowTemplateServiceGrpc.getDeleteWorkflowTemplateMethod)
-            == null) {
-          WorkflowTemplateServiceGrpc.getDeleteWorkflowTemplateMethod =
-              getDeleteWorkflowTemplateMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "DeleteWorkflowTemplate"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new WorkflowTemplateServiceMethodDescriptorSupplier(
-                              "DeleteWorkflowTemplate"))
-                      .build();
+        if ((getDeleteWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getDeleteWorkflowTemplateMethod) == null) {
+          WorkflowTemplateServiceGrpc.getDeleteWorkflowTemplateMethod = getDeleteWorkflowTemplateMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkflowTemplate"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new WorkflowTemplateServiceMethodDescriptorSupplier("DeleteWorkflowTemplate"))
+              .build();
         }
       }
     }
     return getDeleteWorkflowTemplateMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static WorkflowTemplateServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public WorkflowTemplateServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new WorkflowTemplateServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public WorkflowTemplateServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new WorkflowTemplateServiceStub(channel, callOptions);
+        }
+      };
     return WorkflowTemplateServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static WorkflowTemplateServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static WorkflowTemplateServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public WorkflowTemplateServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new WorkflowTemplateServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public WorkflowTemplateServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new WorkflowTemplateServiceBlockingStub(channel, callOptions);
+        }
+      };
     return WorkflowTemplateServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static WorkflowTemplateServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static WorkflowTemplateServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public WorkflowTemplateServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new WorkflowTemplateServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public WorkflowTemplateServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new WorkflowTemplateServiceFutureStub(channel, callOptions);
+        }
+      };
     return WorkflowTemplateServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * The API interface for managing Workflow Templates in the
    * Dataproc API.
    * 
*/ - public abstract static class WorkflowTemplateServiceImplBase implements io.grpc.BindableService { + public static abstract class WorkflowTemplateServiceImplBase implements io.grpc.BindableService { /** - * - * *
      * Creates new workflow template.
      * 
*/ - public void createWorkflowTemplate( - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWorkflowTemplateMethod(), responseObserver); + public void createWorkflowTemplate(com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkflowTemplateMethod(), responseObserver); } /** - * - * *
      * Retrieves the latest workflow template.
      * Can retrieve previously instantiated template by specifying optional
      * version parameter.
      * 
*/ - public void getWorkflowTemplate( - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWorkflowTemplateMethod(), responseObserver); + public void getWorkflowTemplate(com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkflowTemplateMethod(), responseObserver); } /** - * - * *
      * Instantiates a template and begins execution.
      * The returned Operation can be used to track execution of
@@ -502,16 +330,12 @@ public void getWorkflowTemplate(
      * [Empty][google.protobuf.Empty].
      * 
*/ - public void instantiateWorkflowTemplate( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request, + public void instantiateWorkflowTemplate(com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getInstantiateWorkflowTemplateMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInstantiateWorkflowTemplateMethod(), responseObserver); } /** - * - * *
      * Instantiates a template and begins execution.
      * This method is equivalent to executing the sequence
@@ -534,124 +358,106 @@ public void instantiateWorkflowTemplate(
      * [Empty][google.protobuf.Empty].
      * 
*/ - public void instantiateInlineWorkflowTemplate( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request, + public void instantiateInlineWorkflowTemplate(com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getInstantiateInlineWorkflowTemplateMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInstantiateInlineWorkflowTemplateMethod(), responseObserver); } /** - * - * *
      * Updates (replaces) workflow template. The updated template
      * must contain version that matches the current server version.
      * 
*/ - public void updateWorkflowTemplate( - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWorkflowTemplateMethod(), responseObserver); + public void updateWorkflowTemplate(com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkflowTemplateMethod(), responseObserver); } /** - * - * *
      * Lists workflows that match the specified filter in the request.
      * 
*/ - public void listWorkflowTemplates( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWorkflowTemplatesMethod(), responseObserver); + public void listWorkflowTemplates(com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkflowTemplatesMethod(), responseObserver); } /** - * - * *
      * Deletes a workflow template. It does not cancel in-progress workflows.
      * 
*/ - public void deleteWorkflowTemplate( - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request, + public void deleteWorkflowTemplate(com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWorkflowTemplateMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkflowTemplateMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1.WorkflowTemplate>( - this, METHODID_CREATE_WORKFLOW_TEMPLATE))) + getCreateWorkflowTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest, + com.google.cloud.dataproc.v1.WorkflowTemplate>( + this, METHODID_CREATE_WORKFLOW_TEMPLATE))) .addMethod( - getGetWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest, - com.google.cloud.dataproc.v1.WorkflowTemplate>( - this, METHODID_GET_WORKFLOW_TEMPLATE))) + getGetWorkflowTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest, + com.google.cloud.dataproc.v1.WorkflowTemplate>( + this, METHODID_GET_WORKFLOW_TEMPLATE))) .addMethod( - getInstantiateWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest, - com.google.longrunning.Operation>( - this, METHODID_INSTANTIATE_WORKFLOW_TEMPLATE))) + getInstantiateWorkflowTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest, + com.google.longrunning.Operation>( + this, METHODID_INSTANTIATE_WORKFLOW_TEMPLATE))) .addMethod( - getInstantiateInlineWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest, - com.google.longrunning.Operation>( - this, METHODID_INSTANTIATE_INLINE_WORKFLOW_TEMPLATE))) + getInstantiateInlineWorkflowTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest, + com.google.longrunning.Operation>( + this, METHODID_INSTANTIATE_INLINE_WORKFLOW_TEMPLATE))) .addMethod( - getUpdateWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1.WorkflowTemplate>( - this, METHODID_UPDATE_WORKFLOW_TEMPLATE))) + getUpdateWorkflowTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest, + com.google.cloud.dataproc.v1.WorkflowTemplate>( + this, METHODID_UPDATE_WORKFLOW_TEMPLATE))) .addMethod( - getListWorkflowTemplatesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest, - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse>( - this, METHODID_LIST_WORKFLOW_TEMPLATES))) + getListWorkflowTemplatesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest, + com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse>( + this, METHODID_LIST_WORKFLOW_TEMPLATES))) .addMethod( - getDeleteWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_WORKFLOW_TEMPLATE))) + getDeleteWorkflowTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_WORKFLOW_TEMPLATE))) .build(); } } /** - * - * *
    * The API interface for managing Workflow Templates in the
    * Dataproc API.
    * 
*/ - public static final class WorkflowTemplateServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private WorkflowTemplateServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class WorkflowTemplateServiceStub extends io.grpc.stub.AbstractAsyncStub { + private WorkflowTemplateServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -662,44 +468,30 @@ protected WorkflowTemplateServiceStub build( } /** - * - * *
      * Creates new workflow template.
      * 
*/ - public void createWorkflowTemplate( - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createWorkflowTemplate(com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkflowTemplateMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Retrieves the latest workflow template.
      * Can retrieve previously instantiated template by specifying optional
      * version parameter.
      * 
*/ - public void getWorkflowTemplate( - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void getWorkflowTemplate(com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkflowTemplateMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Instantiates a template and begins execution.
      * The returned Operation can be used to track execution of
@@ -719,18 +511,13 @@ public void getWorkflowTemplate(
      * [Empty][google.protobuf.Empty].
      * 
*/ - public void instantiateWorkflowTemplate( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request, + public void instantiateWorkflowTemplate(com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getInstantiateWorkflowTemplateMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getInstantiateWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Instantiates a template and begins execution.
      * This method is equivalent to executing the sequence
@@ -753,77 +540,54 @@ public void instantiateWorkflowTemplate(
      * [Empty][google.protobuf.Empty].
      * 
*/ - public void instantiateInlineWorkflowTemplate( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request, + public void instantiateInlineWorkflowTemplate(com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getInstantiateInlineWorkflowTemplateMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getInstantiateInlineWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates (replaces) workflow template. The updated template
      * must contain version that matches the current server version.
      * 
*/ - public void updateWorkflowTemplate( - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void updateWorkflowTemplate(com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkflowTemplateMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists workflows that match the specified filter in the request.
      * 
*/ - public void listWorkflowTemplates( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listWorkflowTemplates(com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkflowTemplatesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListWorkflowTemplatesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes a workflow template. It does not cancel in-progress workflows.
      * 
*/ - public void deleteWorkflowTemplate( - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request, + public void deleteWorkflowTemplate(com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkflowTemplateMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * The API interface for managing Workflow Templates in the
    * Dataproc API.
    * 
*/ - public static final class WorkflowTemplateServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { + public static final class WorkflowTemplateServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private WorkflowTemplateServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -836,36 +600,28 @@ protected WorkflowTemplateServiceBlockingStub build( } /** - * - * *
      * Creates new workflow template.
      * 
*/ - public com.google.cloud.dataproc.v1.WorkflowTemplate createWorkflowTemplate( - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request) { + public com.google.cloud.dataproc.v1.WorkflowTemplate createWorkflowTemplate(com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateWorkflowTemplateMethod(), getCallOptions(), request); } /** - * - * *
      * Retrieves the latest workflow template.
      * Can retrieve previously instantiated template by specifying optional
      * version parameter.
      * 
*/ - public com.google.cloud.dataproc.v1.WorkflowTemplate getWorkflowTemplate( - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request) { + public com.google.cloud.dataproc.v1.WorkflowTemplate getWorkflowTemplate(com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetWorkflowTemplateMethod(), getCallOptions(), request); } /** - * - * *
      * Instantiates a template and begins execution.
      * The returned Operation can be used to track execution of
@@ -885,15 +641,12 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate getWorkflowTemplate(
      * [Empty][google.protobuf.Empty].
      * 
*/ - public com.google.longrunning.Operation instantiateWorkflowTemplate( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request) { + public com.google.longrunning.Operation instantiateWorkflowTemplate(com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getInstantiateWorkflowTemplateMethod(), getCallOptions(), request); } /** - * - * *
      * Instantiates a template and begins execution.
      * This method is equivalent to executing the sequence
@@ -916,63 +669,50 @@ public com.google.longrunning.Operation instantiateWorkflowTemplate(
      * [Empty][google.protobuf.Empty].
      * 
*/ - public com.google.longrunning.Operation instantiateInlineWorkflowTemplate( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request) { + public com.google.longrunning.Operation instantiateInlineWorkflowTemplate(com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getInstantiateInlineWorkflowTemplateMethod(), getCallOptions(), request); } /** - * - * *
      * Updates (replaces) workflow template. The updated template
      * must contain version that matches the current server version.
      * 
*/ - public com.google.cloud.dataproc.v1.WorkflowTemplate updateWorkflowTemplate( - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request) { + public com.google.cloud.dataproc.v1.WorkflowTemplate updateWorkflowTemplate(com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateWorkflowTemplateMethod(), getCallOptions(), request); } /** - * - * *
      * Lists workflows that match the specified filter in the request.
      * 
*/ - public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse listWorkflowTemplates( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request) { + public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse listWorkflowTemplates(com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListWorkflowTemplatesMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes a workflow template. It does not cancel in-progress workflows.
      * 
*/ - public com.google.protobuf.Empty deleteWorkflowTemplate( - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request) { + public com.google.protobuf.Empty deleteWorkflowTemplate(com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteWorkflowTemplateMethod(), getCallOptions(), request); } } /** - * - * *
    * The API interface for managing Workflow Templates in the
    * Dataproc API.
    * 
*/ - public static final class WorkflowTemplateServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { + public static final class WorkflowTemplateServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private WorkflowTemplateServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -985,38 +725,30 @@ protected WorkflowTemplateServiceFutureStub build( } /** - * - * *
      * Creates new workflow template.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.WorkflowTemplate> - createWorkflowTemplate(com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request) { + public com.google.common.util.concurrent.ListenableFuture createWorkflowTemplate( + com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateWorkflowTemplateMethod(), getCallOptions()), request); } /** - * - * *
      * Retrieves the latest workflow template.
      * Can retrieve previously instantiated template by specifying optional
      * version parameter.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.WorkflowTemplate> - getWorkflowTemplate(com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request) { + public com.google.common.util.concurrent.ListenableFuture getWorkflowTemplate( + com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetWorkflowTemplateMethod(), getCallOptions()), request); } /** - * - * *
      * Instantiates a template and begins execution.
      * The returned Operation can be used to track execution of
@@ -1036,16 +768,13 @@ protected WorkflowTemplateServiceFutureStub build(
      * [Empty][google.protobuf.Empty].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - instantiateWorkflowTemplate( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request) { + public com.google.common.util.concurrent.ListenableFuture instantiateWorkflowTemplate( + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getInstantiateWorkflowTemplateMethod(), getCallOptions()), request); } /** - * - * *
      * Instantiates a template and begins execution.
      * This method is equivalent to executing the sequence
@@ -1068,52 +797,42 @@ protected WorkflowTemplateServiceFutureStub build(
      * [Empty][google.protobuf.Empty].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - instantiateInlineWorkflowTemplate( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request) { + public com.google.common.util.concurrent.ListenableFuture instantiateInlineWorkflowTemplate( + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getInstantiateInlineWorkflowTemplateMethod(), getCallOptions()), - request); + getChannel().newCall(getInstantiateInlineWorkflowTemplateMethod(), getCallOptions()), request); } /** - * - * *
      * Updates (replaces) workflow template. The updated template
      * must contain version that matches the current server version.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.WorkflowTemplate> - updateWorkflowTemplate(com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateWorkflowTemplate( + com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateWorkflowTemplateMethod(), getCallOptions()), request); } /** - * - * *
      * Lists workflows that match the specified filter in the request.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse> - listWorkflowTemplates(com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request) { + public com.google.common.util.concurrent.ListenableFuture listWorkflowTemplates( + com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListWorkflowTemplatesMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes a workflow template. It does not cancel in-progress workflows.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteWorkflowTemplate(com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteWorkflowTemplate( + com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteWorkflowTemplateMethod(), getCallOptions()), request); } @@ -1127,11 +846,11 @@ protected WorkflowTemplateServiceFutureStub build( private static final int METHODID_LIST_WORKFLOW_TEMPLATES = 5; private static final int METHODID_DELETE_WORKFLOW_TEMPLATE = 6; - 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 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 WorkflowTemplateServiceImplBase serviceImpl; private final int methodId; @@ -1145,43 +864,31 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_WORKFLOW_TEMPLATE: - serviceImpl.createWorkflowTemplate( - (com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createWorkflowTemplate((com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_WORKFLOW_TEMPLATE: - serviceImpl.getWorkflowTemplate( - (com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getWorkflowTemplate((com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_INSTANTIATE_WORKFLOW_TEMPLATE: - serviceImpl.instantiateWorkflowTemplate( - (com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) request, + serviceImpl.instantiateWorkflowTemplate((com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_INSTANTIATE_INLINE_WORKFLOW_TEMPLATE: - serviceImpl.instantiateInlineWorkflowTemplate( - (com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) request, + serviceImpl.instantiateInlineWorkflowTemplate((com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_WORKFLOW_TEMPLATE: - serviceImpl.updateWorkflowTemplate( - (com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updateWorkflowTemplate((com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_WORKFLOW_TEMPLATES: - serviceImpl.listWorkflowTemplates( - (com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse>) - responseObserver); + serviceImpl.listWorkflowTemplates((com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_WORKFLOW_TEMPLATE: - serviceImpl.deleteWorkflowTemplate( - (com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) request, + serviceImpl.deleteWorkflowTemplate((com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -1200,9 +907,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class WorkflowTemplateServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class WorkflowTemplateServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { WorkflowTemplateServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -1244,18 +950,16 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (WorkflowTemplateServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WorkflowTemplateServiceFileDescriptorSupplier()) - .addMethod(getCreateWorkflowTemplateMethod()) - .addMethod(getGetWorkflowTemplateMethod()) - .addMethod(getInstantiateWorkflowTemplateMethod()) - .addMethod(getInstantiateInlineWorkflowTemplateMethod()) - .addMethod(getUpdateWorkflowTemplateMethod()) - .addMethod(getListWorkflowTemplatesMethod()) - .addMethod(getDeleteWorkflowTemplateMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WorkflowTemplateServiceFileDescriptorSupplier()) + .addMethod(getCreateWorkflowTemplateMethod()) + .addMethod(getGetWorkflowTemplateMethod()) + .addMethod(getInstantiateWorkflowTemplateMethod()) + .addMethod(getInstantiateInlineWorkflowTemplateMethod()) + .addMethod(getUpdateWorkflowTemplateMethod()) + .addMethod(getListWorkflowTemplatesMethod()) + .addMethod(getDeleteWorkflowTemplateMethod()) + .build(); } } } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java similarity index 73% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java index 5a9d6ee74eff..a334455b17a3 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Specifies the type and number of accelerator cards attached to the instances
  * of an instance. See [GPUs on Compute
@@ -29,51 +12,47 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.AcceleratorConfig}
  */
-public final class AcceleratorConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AcceleratorConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.AcceleratorConfig)
     AcceleratorConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AcceleratorConfig.newBuilder() to construct.
   private AcceleratorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AcceleratorConfig() {
     acceleratorTypeUri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AcceleratorConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto
-        .internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.ClustersProto
-        .internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.AcceleratorConfig.class,
-            com.google.cloud.dataproc.v1.AcceleratorConfig.Builder.class);
+            com.google.cloud.dataproc.v1.AcceleratorConfig.class, com.google.cloud.dataproc.v1.AcceleratorConfig.Builder.class);
   }
 
   public static final int ACCELERATOR_TYPE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object acceleratorTypeUri_;
   /**
-   *
-   *
    * 
    * Full URL, partial URI, or short name of the accelerator type resource to
    * expose to this instance. See
@@ -91,7 +70,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string accelerator_type_uri = 1; - * * @return The acceleratorTypeUri. */ @java.lang.Override @@ -100,15 +78,14 @@ public java.lang.String getAcceleratorTypeUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); acceleratorTypeUri_ = s; return s; } } /** - * - * *
    * Full URL, partial URI, or short name of the accelerator type resource to
    * expose to this instance. See
@@ -126,15 +103,16 @@ public java.lang.String getAcceleratorTypeUri() {
    * 
* * string accelerator_type_uri = 1; - * * @return The bytes for acceleratorTypeUri. */ @java.lang.Override - public com.google.protobuf.ByteString getAcceleratorTypeUriBytes() { + public com.google.protobuf.ByteString + getAcceleratorTypeUriBytes() { java.lang.Object ref = acceleratorTypeUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); acceleratorTypeUri_ = b; return b; } else { @@ -145,14 +123,11 @@ public com.google.protobuf.ByteString getAcceleratorTypeUriBytes() { public static final int ACCELERATOR_COUNT_FIELD_NUMBER = 2; private int acceleratorCount_; /** - * - * *
    * The number of the accelerator cards of this type exposed to this instance.
    * 
* * int32 accelerator_count = 2; - * * @return The acceleratorCount. */ @java.lang.Override @@ -161,7 +136,6 @@ public int getAcceleratorCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,7 +147,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorTypeUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, acceleratorTypeUri_); } @@ -193,7 +168,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, acceleratorTypeUri_); } if (acceleratorCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, acceleratorCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, acceleratorCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -203,16 +179,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.dataproc.v1.AcceleratorConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.AcceleratorConfig other = - (com.google.cloud.dataproc.v1.AcceleratorConfig) obj; + com.google.cloud.dataproc.v1.AcceleratorConfig other = (com.google.cloud.dataproc.v1.AcceleratorConfig) obj; - if (!getAcceleratorTypeUri().equals(other.getAcceleratorTypeUri())) return false; - if (getAcceleratorCount() != other.getAcceleratorCount()) return false; + if (!getAcceleratorTypeUri() + .equals(other.getAcceleratorTypeUri())) return false; + if (getAcceleratorCount() + != other.getAcceleratorCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,104 +210,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.AcceleratorConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.AcceleratorConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specifies the type and number of accelerator cards attached to the instances
    * of an instance. See [GPUs on Compute
@@ -339,32 +309,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.AcceleratorConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.AcceleratorConfig)
       com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.AcceleratorConfig.class,
-              com.google.cloud.dataproc.v1.AcceleratorConfig.Builder.class);
+              com.google.cloud.dataproc.v1.AcceleratorConfig.class, com.google.cloud.dataproc.v1.AcceleratorConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.AcceleratorConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -376,9 +347,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor;
     }
 
     @java.lang.Override
@@ -397,8 +368,7 @@ public com.google.cloud.dataproc.v1.AcceleratorConfig build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.AcceleratorConfig buildPartial() {
-      com.google.cloud.dataproc.v1.AcceleratorConfig result =
-          new com.google.cloud.dataproc.v1.AcceleratorConfig(this);
+      com.google.cloud.dataproc.v1.AcceleratorConfig result = new com.google.cloud.dataproc.v1.AcceleratorConfig(this);
       result.acceleratorTypeUri_ = acceleratorTypeUri_;
       result.acceleratorCount_ = acceleratorCount_;
       onBuilt();
@@ -409,39 +379,38 @@ public com.google.cloud.dataproc.v1.AcceleratorConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.AcceleratorConfig) {
-        return mergeFrom((com.google.cloud.dataproc.v1.AcceleratorConfig) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.AcceleratorConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -483,25 +452,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                acceleratorTypeUri_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 16:
-              {
-                acceleratorCount_ = input.readInt32();
-
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              acceleratorTypeUri_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 16: {
+              acceleratorCount_ = input.readInt32();
+
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -514,8 +480,6 @@ public Builder mergeFrom(
 
     private java.lang.Object acceleratorTypeUri_ = "";
     /**
-     *
-     *
      * 
      * Full URL, partial URI, or short name of the accelerator type resource to
      * expose to this instance. See
@@ -533,13 +497,13 @@ public Builder mergeFrom(
      * 
* * string accelerator_type_uri = 1; - * * @return The acceleratorTypeUri. */ public java.lang.String getAcceleratorTypeUri() { java.lang.Object ref = acceleratorTypeUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); acceleratorTypeUri_ = s; return s; @@ -548,8 +512,6 @@ public java.lang.String getAcceleratorTypeUri() { } } /** - * - * *
      * Full URL, partial URI, or short name of the accelerator type resource to
      * expose to this instance. See
@@ -567,14 +529,15 @@ public java.lang.String getAcceleratorTypeUri() {
      * 
* * string accelerator_type_uri = 1; - * * @return The bytes for acceleratorTypeUri. */ - public com.google.protobuf.ByteString getAcceleratorTypeUriBytes() { + public com.google.protobuf.ByteString + getAcceleratorTypeUriBytes() { java.lang.Object ref = acceleratorTypeUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); acceleratorTypeUri_ = b; return b; } else { @@ -582,8 +545,6 @@ public com.google.protobuf.ByteString getAcceleratorTypeUriBytes() { } } /** - * - * *
      * Full URL, partial URI, or short name of the accelerator type resource to
      * expose to this instance. See
@@ -601,22 +562,20 @@ public com.google.protobuf.ByteString getAcceleratorTypeUriBytes() {
      * 
* * string accelerator_type_uri = 1; - * * @param value The acceleratorTypeUri to set. * @return This builder for chaining. */ - public Builder setAcceleratorTypeUri(java.lang.String value) { + public Builder setAcceleratorTypeUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + acceleratorTypeUri_ = value; onChanged(); return this; } /** - * - * *
      * Full URL, partial URI, or short name of the accelerator type resource to
      * expose to this instance. See
@@ -634,18 +593,15 @@ public Builder setAcceleratorTypeUri(java.lang.String value) {
      * 
* * string accelerator_type_uri = 1; - * * @return This builder for chaining. */ public Builder clearAcceleratorTypeUri() { - + acceleratorTypeUri_ = getDefaultInstance().getAcceleratorTypeUri(); onChanged(); return this; } /** - * - * *
      * Full URL, partial URI, or short name of the accelerator type resource to
      * expose to this instance. See
@@ -663,31 +619,28 @@ public Builder clearAcceleratorTypeUri() {
      * 
* * string accelerator_type_uri = 1; - * * @param value The bytes for acceleratorTypeUri to set. * @return This builder for chaining. */ - public Builder setAcceleratorTypeUriBytes(com.google.protobuf.ByteString value) { + public Builder setAcceleratorTypeUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + acceleratorTypeUri_ = value; onChanged(); return this; } - private int acceleratorCount_; + private int acceleratorCount_ ; /** - * - * *
      * The number of the accelerator cards of this type exposed to this instance.
      * 
* * int32 accelerator_count = 2; - * * @return The acceleratorCount. */ @java.lang.Override @@ -695,43 +648,37 @@ public int getAcceleratorCount() { return acceleratorCount_; } /** - * - * *
      * The number of the accelerator cards of this type exposed to this instance.
      * 
* * int32 accelerator_count = 2; - * * @param value The acceleratorCount to set. * @return This builder for chaining. */ public Builder setAcceleratorCount(int value) { - + acceleratorCount_ = value; onChanged(); return this; } /** - * - * *
      * The number of the accelerator cards of this type exposed to this instance.
      * 
* * int32 accelerator_count = 2; - * * @return This builder for chaining. */ public Builder clearAcceleratorCount() { - + acceleratorCount_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -741,12 +688,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.AcceleratorConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AcceleratorConfig) private static final com.google.cloud.dataproc.v1.AcceleratorConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.AcceleratorConfig(); } @@ -755,27 +702,27 @@ public static com.google.cloud.dataproc.v1.AcceleratorConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcceleratorConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcceleratorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -790,4 +737,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.AcceleratorConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.java similarity index 75% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.java index 5e5572144d6e..fab675888f63 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface AcceleratorConfigOrBuilder - extends +public interface AcceleratorConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.AcceleratorConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Full URL, partial URI, or short name of the accelerator type resource to
    * expose to this instance. See
@@ -43,13 +25,10 @@ public interface AcceleratorConfigOrBuilder
    * 
* * string accelerator_type_uri = 1; - * * @return The acceleratorTypeUri. */ java.lang.String getAcceleratorTypeUri(); /** - * - * *
    * Full URL, partial URI, or short name of the accelerator type resource to
    * expose to this instance. See
@@ -67,20 +46,17 @@ public interface AcceleratorConfigOrBuilder
    * 
* * string accelerator_type_uri = 1; - * * @return The bytes for acceleratorTypeUri. */ - com.google.protobuf.ByteString getAcceleratorTypeUriBytes(); + com.google.protobuf.ByteString + getAcceleratorTypeUriBytes(); /** - * - * *
    * The number of the accelerator cards of this type exposed to this instance.
    * 
* * int32 accelerator_count = 2; - * * @return The acceleratorCount. */ int getAcceleratorCount(); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java similarity index 70% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java index b222d07a03d6..d1d1238b0cdb 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java @@ -1,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Autoscaling Policy config associated with the cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.AutoscalingConfig} */ -public final class AutoscalingConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AutoscalingConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.AutoscalingConfig) AutoscalingConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AutoscalingConfig.newBuilder() to construct. private AutoscalingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AutoscalingConfig() { policyUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AutoscalingConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AutoscalingConfig.class, - com.google.cloud.dataproc.v1.AutoscalingConfig.Builder.class); + com.google.cloud.dataproc.v1.AutoscalingConfig.class, com.google.cloud.dataproc.v1.AutoscalingConfig.Builder.class); } public static final int POLICY_URI_FIELD_NUMBER = 1; private volatile java.lang.Object policyUri_; /** - * - * *
    * Optional. The autoscaling policy used by the cluster.
    * Only resource names including projectid and location (region) are valid.
@@ -82,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The policyUri. */ @java.lang.Override @@ -91,15 +69,14 @@ public java.lang.String getPolicyUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyUri_ = s; return s; } } /** - * - * *
    * Optional. The autoscaling policy used by the cluster.
    * Only resource names including projectid and location (region) are valid.
@@ -110,15 +87,16 @@ public java.lang.String getPolicyUri() {
    * 
* * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for policyUri. */ @java.lang.Override - public com.google.protobuf.ByteString getPolicyUriBytes() { + public com.google.protobuf.ByteString + getPolicyUriBytes() { java.lang.Object ref = policyUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); policyUri_ = b; return b; } else { @@ -127,7 +105,6 @@ public com.google.protobuf.ByteString getPolicyUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,7 +116,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(policyUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyUri_); } @@ -163,15 +141,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.dataproc.v1.AutoscalingConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.AutoscalingConfig other = - (com.google.cloud.dataproc.v1.AutoscalingConfig) obj; + com.google.cloud.dataproc.v1.AutoscalingConfig other = (com.google.cloud.dataproc.v1.AutoscalingConfig) obj; - if (!getPolicyUri().equals(other.getPolicyUri())) return false; + if (!getPolicyUri() + .equals(other.getPolicyUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -190,136 +168,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.AutoscalingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.AutoscalingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Autoscaling Policy config associated with the cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.AutoscalingConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.AutoscalingConfig) com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AutoscalingConfig.class, - com.google.cloud.dataproc.v1.AutoscalingConfig.Builder.class); + com.google.cloud.dataproc.v1.AutoscalingConfig.class, com.google.cloud.dataproc.v1.AutoscalingConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.AutoscalingConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -329,9 +301,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; } @java.lang.Override @@ -350,8 +322,7 @@ public com.google.cloud.dataproc.v1.AutoscalingConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.AutoscalingConfig buildPartial() { - com.google.cloud.dataproc.v1.AutoscalingConfig result = - new com.google.cloud.dataproc.v1.AutoscalingConfig(this); + com.google.cloud.dataproc.v1.AutoscalingConfig result = new com.google.cloud.dataproc.v1.AutoscalingConfig(this); result.policyUri_ = policyUri_; onBuilt(); return result; @@ -361,39 +332,38 @@ public com.google.cloud.dataproc.v1.AutoscalingConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.AutoscalingConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.AutoscalingConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.AutoscalingConfig)other); } else { super.mergeFrom(other); return this; @@ -432,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - policyUri_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + policyUri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -457,8 +425,6 @@ public Builder mergeFrom( private java.lang.Object policyUri_ = ""; /** - * - * *
      * Optional. The autoscaling policy used by the cluster.
      * Only resource names including projectid and location (region) are valid.
@@ -469,13 +435,13 @@ public Builder mergeFrom(
      * 
* * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The policyUri. */ public java.lang.String getPolicyUri() { java.lang.Object ref = policyUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyUri_ = s; return s; @@ -484,8 +450,6 @@ public java.lang.String getPolicyUri() { } } /** - * - * *
      * Optional. The autoscaling policy used by the cluster.
      * Only resource names including projectid and location (region) are valid.
@@ -496,14 +460,15 @@ public java.lang.String getPolicyUri() {
      * 
* * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for policyUri. */ - public com.google.protobuf.ByteString getPolicyUriBytes() { + public com.google.protobuf.ByteString + getPolicyUriBytes() { java.lang.Object ref = policyUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); policyUri_ = b; return b; } else { @@ -511,8 +476,6 @@ public com.google.protobuf.ByteString getPolicyUriBytes() { } } /** - * - * *
      * Optional. The autoscaling policy used by the cluster.
      * Only resource names including projectid and location (region) are valid.
@@ -523,22 +486,20 @@ public com.google.protobuf.ByteString getPolicyUriBytes() {
      * 
* * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The policyUri to set. * @return This builder for chaining. */ - public Builder setPolicyUri(java.lang.String value) { + public Builder setPolicyUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + policyUri_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The autoscaling policy used by the cluster.
      * Only resource names including projectid and location (region) are valid.
@@ -549,18 +510,15 @@ public Builder setPolicyUri(java.lang.String value) {
      * 
* * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPolicyUri() { - + policyUri_ = getDefaultInstance().getPolicyUri(); onChanged(); return this; } /** - * - * *
      * Optional. The autoscaling policy used by the cluster.
      * Only resource names including projectid and location (region) are valid.
@@ -571,23 +529,23 @@ public Builder clearPolicyUri() {
      * 
* * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for policyUri to set. * @return This builder for chaining. */ - public Builder setPolicyUriBytes(com.google.protobuf.ByteString value) { + public Builder setPolicyUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policyUri_ = 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 +555,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.AutoscalingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AutoscalingConfig) private static final com.google.cloud.dataproc.v1.AutoscalingConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.AutoscalingConfig(); } @@ -611,27 +569,27 @@ public static com.google.cloud.dataproc.v1.AutoscalingConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutoscalingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoscalingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -646,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.AutoscalingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.java similarity index 67% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.java index f9438be4e45c..eb9734774ccc 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface AutoscalingConfigOrBuilder - extends +public interface AutoscalingConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.AutoscalingConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The autoscaling policy used by the cluster.
    * Only resource names including projectid and location (region) are valid.
@@ -36,13 +18,10 @@ public interface AutoscalingConfigOrBuilder
    * 
* * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The policyUri. */ java.lang.String getPolicyUri(); /** - * - * *
    * Optional. The autoscaling policy used by the cluster.
    * Only resource names including projectid and location (region) are valid.
@@ -53,8 +32,8 @@ public interface AutoscalingConfigOrBuilder
    * 
* * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for policyUri. */ - com.google.protobuf.ByteString getPolicyUriBytes(); + com.google.protobuf.ByteString + getPolicyUriBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java new file mode 100644 index 000000000000..d26f01201c19 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java @@ -0,0 +1,277 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/autoscaling_policies.proto + +package com.google.cloud.dataproc.v1; + +public final class AutoscalingPoliciesProto { + private AutoscalingPoliciesProto() {} + 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_dataproc_v1_AutoscalingPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/dataproc/v1/autoscaling_p" + + "olicies.proto\022\030google.cloud.dataproc.v1\032" + + "\034google/api/annotations.proto\032\027google/ap" + + "i/client.proto\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\032\036goog" + + "le/protobuf/duration.proto\032\033google/proto" + + "buf/empty.proto\"\245\005\n\021AutoscalingPolicy\022\n\n" + + "\002id\030\001 \001(\t\022\021\n\004name\030\002 \001(\tB\003\340A\003\022S\n\017basic_al" + + "gorithm\030\003 \001(\01323.google.cloud.dataproc.v1" + + ".BasicAutoscalingAlgorithmB\003\340A\002H\000\022Z\n\rwor" + + "ker_config\030\004 \001(\0132>.google.cloud.dataproc" + + ".v1.InstanceGroupAutoscalingPolicyConfig" + + "B\003\340A\002\022d\n\027secondary_worker_config\030\005 \001(\0132>" + + ".google.cloud.dataproc.v1.InstanceGroupA" + + "utoscalingPolicyConfigB\003\340A\001\022L\n\006labels\030\006 " + + "\003(\01327.google.cloud.dataproc.v1.Autoscali" + + "ngPolicy.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\317\001\352A\313\001\n" + + ")dataproc.googleapis.com/AutoscalingPoli" + + "cy\022Pprojects/{project}/locations/{locati" + + "on}/autoscalingPolicies/{autoscaling_pol" + + "icy}\022Lprojects/{project}/regions/{region" + + "}/autoscalingPolicies/{autoscaling_polic" + + "y}B\013\n\talgorithm\"\260\001\n\031BasicAutoscalingAlgo" + + "rithm\022P\n\013yarn_config\030\001 \001(\01324.google.clou" + + "d.dataproc.v1.BasicYarnAutoscalingConfig" + + "B\003\340A\002H\000\0227\n\017cooldown_period\030\002 \001(\0132\031.googl" + + "e.protobuf.DurationB\003\340A\001B\010\n\006config\"\371\001\n\032B" + + "asicYarnAutoscalingConfig\022E\n\035graceful_de" + + "commission_timeout\030\005 \001(\0132\031.google.protob" + + "uf.DurationB\003\340A\002\022\034\n\017scale_up_factor\030\001 \001(" + + "\001B\003\340A\002\022\036\n\021scale_down_factor\030\002 \001(\001B\003\340A\002\022)" + + "\n\034scale_up_min_worker_fraction\030\003 \001(\001B\003\340A" + + "\001\022+\n\036scale_down_min_worker_fraction\030\004 \001(" + + "\001B\003\340A\001\"s\n$InstanceGroupAutoscalingPolicy" + + "Config\022\032\n\rmin_instances\030\001 \001(\005B\003\340A\001\022\032\n\rma" + + "x_instances\030\002 \001(\005B\003\340A\002\022\023\n\006weight\030\003 \001(\005B\003" + + "\340A\001\"\245\001\n\036CreateAutoscalingPolicyRequest\022A" + + "\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)dataproc.googlea" + + "pis.com/AutoscalingPolicy\022@\n\006policy\030\002 \001(" + + "\0132+.google.cloud.dataproc.v1.Autoscaling" + + "PolicyB\003\340A\002\"^\n\033GetAutoscalingPolicyReque" + + "st\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)dataproc.googl" + + "eapis.com/AutoscalingPolicy\"b\n\036UpdateAut" + + "oscalingPolicyRequest\022@\n\006policy\030\001 \001(\0132+." + + "google.cloud.dataproc.v1.AutoscalingPoli" + + "cyB\003\340A\002\"a\n\036DeleteAutoscalingPolicyReques" + + "t\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)dataproc.google" + + "apis.com/AutoscalingPolicy\"\224\001\n\036ListAutos" + + "calingPoliciesRequest\022A\n\006parent\030\001 \001(\tB1\340" + + "A\002\372A+\022)dataproc.googleapis.com/Autoscali" + + "ngPolicy\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" + + "_token\030\003 \001(\tB\003\340A\001\"\203\001\n\037ListAutoscalingPol" + + "iciesResponse\022B\n\010policies\030\001 \003(\0132+.google" + + ".cloud.dataproc.v1.AutoscalingPolicyB\003\340A" + + "\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\0032\256\013\n\030Auto" + + "scalingPolicyService\022\234\002\n\027CreateAutoscali" + + "ngPolicy\0228.google.cloud.dataproc.v1.Crea" + + "teAutoscalingPolicyRequest\032+.google.clou" + + "d.dataproc.v1.AutoscalingPolicy\"\231\001\202\323\344\223\002\202" + + "\001\"7/v1/{parent=projects/*/locations/*}/a" + + "utoscalingPolicies:\006policyZ?\"5/v1/{paren" + + "t=projects/*/regions/*}/autoscalingPolic" + + "ies:\006policy\332A\rparent,policy\022\243\002\n\027UpdateAu" + + "toscalingPolicy\0228.google.cloud.dataproc." + + "v1.UpdateAutoscalingPolicyRequest\032+.goog" + + "le.cloud.dataproc.v1.AutoscalingPolicy\"\240" + + "\001\202\323\344\223\002\220\001\032>/v1/{policy.name=projects/*/lo" + + "cations/*/autoscalingPolicies/*}:\006policy" + + "ZF\032 * Describes an autoscaling policy for Dataproc cluster autoscaler. *
* * Protobuf type {@code google.cloud.dataproc.v1.AutoscalingPolicy} */ -public final class AutoscalingPolicy extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AutoscalingPolicy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.AutoscalingPolicy) AutoscalingPolicyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AutoscalingPolicy.newBuilder() to construct. private AutoscalingPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AutoscalingPolicy() { id_ = ""; name_ = ""; @@ -44,52 +26,49 @@ private AutoscalingPolicy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AutoscalingPolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_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.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AutoscalingPolicy.class, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder.class); + com.google.cloud.dataproc.v1.AutoscalingPolicy.class, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder.class); } private int algorithmCase_ = 0; private java.lang.Object algorithm_; - public enum AlgorithmCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BASIC_ALGORITHM(3), ALGORITHM_NOT_SET(0); private final int value; - private AlgorithmCase(int value) { this.value = value; } @@ -105,29 +84,25 @@ public static AlgorithmCase valueOf(int value) { public static AlgorithmCase forNumber(int value) { switch (value) { - case 3: - return BASIC_ALGORITHM; - case 0: - return ALGORITHM_NOT_SET; - default: - return null; + case 3: return BASIC_ALGORITHM; + case 0: return ALGORITHM_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AlgorithmCase getAlgorithmCase() { - return AlgorithmCase.forNumber(algorithmCase_); + public AlgorithmCase + getAlgorithmCase() { + return AlgorithmCase.forNumber( + algorithmCase_); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** - * - * *
    * Required. The policy id.
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -136,7 +111,6 @@ public AlgorithmCase getAlgorithmCase() {
    * 
* * string id = 1; - * * @return The id. */ @java.lang.Override @@ -145,15 +119,14 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** - * - * *
    * Required. The policy id.
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -162,15 +135,16 @@ public java.lang.String getId() {
    * 
* * string id = 1; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -181,8 +155,6 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -195,7 +167,6 @@ public com.google.protobuf.ByteString getIdBytes() {
    * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -204,15 +175,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -225,15 +195,16 @@ public java.lang.String getName() {
    * 
* * string name = 2 [(.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 { @@ -243,10 +214,7 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int BASIC_ALGORITHM_FIELD_NUMBER = 3; /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the basicAlgorithm field is set. */ @java.lang.Override @@ -254,29 +222,23 @@ public boolean hasBasicAlgorithm() { return algorithmCase_ == 3; } /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The basicAlgorithm. */ @java.lang.Override public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm getBasicAlgorithm() { if (algorithmCase_ == 3) { - return (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_; + return (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_; } return com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance(); } /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder - getBasicAlgorithmOrBuilder() { + public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder getBasicAlgorithmOrBuilder() { if (algorithmCase_ == 3) { - return (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_; + return (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_; } return com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance(); } @@ -284,16 +246,11 @@ public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm getBasicAlgorithm( public static final int WORKER_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig workerConfig_; /** - * - * *
    * Required. Describes how the autoscaler will operate for primary workers.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workerConfig field is set. */ @java.lang.Override @@ -301,54 +258,37 @@ public boolean hasWorkerConfig() { return workerConfig_ != null; } /** - * - * *
    * Required. Describes how the autoscaler will operate for primary workers.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The workerConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getWorkerConfig() { - return workerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() - : workerConfig_; + return workerConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() : workerConfig_; } /** - * - * *
    * Required. Describes how the autoscaler will operate for primary workers.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder - getWorkerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder getWorkerConfigOrBuilder() { return getWorkerConfig(); } public static final int SECONDARY_WORKER_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondaryWorkerConfig_; /** - * - * *
    * Optional. Describes how the autoscaler will operate for secondary workers.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the secondaryWorkerConfig field is set. */ @java.lang.Override @@ -356,60 +296,48 @@ public boolean hasSecondaryWorkerConfig() { return secondaryWorkerConfig_ != null; } /** - * - * *
    * Optional. Describes how the autoscaler will operate for secondary workers.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The secondaryWorkerConfig. */ @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig - getSecondaryWorkerConfig() { - return secondaryWorkerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() - : secondaryWorkerConfig_; + public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getSecondaryWorkerConfig() { + return secondaryWorkerConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() : secondaryWorkerConfig_; } /** - * - * *
    * Optional. Describes how the autoscaler will operate for secondary workers.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder - getSecondaryWorkerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder getSecondaryWorkerConfigOrBuilder() { return getSecondaryWorkerConfig(); } 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.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_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.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_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_; } @@ -418,8 +346,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels to associate with this autoscaling policy.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -432,22 +358,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @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();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this autoscaling policy.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -461,12 +387,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this autoscaling policy.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -480,16 +405,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this autoscaling policy.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -503,11 +428,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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();
     }
@@ -515,7 +441,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -527,7 +452,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(id_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
     }
@@ -543,8 +469,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (secondaryWorkerConfig_ != null) {
       output.writeMessage(5, getSecondaryWorkerConfig());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        6);
     getUnknownFields().writeTo(output);
   }
 
@@ -561,26 +491,26 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
     }
     if (algorithmCase_ == 3) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_);
     }
     if (workerConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getWorkerConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getWorkerConfig());
     }
     if (secondaryWorkerConfig_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSecondaryWorkerConfig());
-    }
-    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(5, getSecondaryWorkerConfig());
+    }
+    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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -590,29 +520,34 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.dataproc.v1.AutoscalingPolicy)) {
       return super.equals(obj);
     }
-    com.google.cloud.dataproc.v1.AutoscalingPolicy other =
-        (com.google.cloud.dataproc.v1.AutoscalingPolicy) obj;
+    com.google.cloud.dataproc.v1.AutoscalingPolicy other = (com.google.cloud.dataproc.v1.AutoscalingPolicy) obj;
 
-    if (!getId().equals(other.getId())) return false;
-    if (!getName().equals(other.getName())) return false;
+    if (!getId()
+        .equals(other.getId())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasWorkerConfig() != other.hasWorkerConfig()) return false;
     if (hasWorkerConfig()) {
-      if (!getWorkerConfig().equals(other.getWorkerConfig())) return false;
+      if (!getWorkerConfig()
+          .equals(other.getWorkerConfig())) return false;
     }
     if (hasSecondaryWorkerConfig() != other.hasSecondaryWorkerConfig()) return false;
     if (hasSecondaryWorkerConfig()) {
-      if (!getSecondaryWorkerConfig().equals(other.getSecondaryWorkerConfig())) return false;
+      if (!getSecondaryWorkerConfig()
+          .equals(other.getSecondaryWorkerConfig())) return false;
     }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getAlgorithmCase().equals(other.getAlgorithmCase())) return false;
     switch (algorithmCase_) {
       case 3:
-        if (!getBasicAlgorithm().equals(other.getBasicAlgorithm())) return false;
+        if (!getBasicAlgorithm()
+            .equals(other.getBasicAlgorithm())) return false;
         break;
       case 0:
       default:
@@ -657,156 +592,152 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.dataproc.v1.AutoscalingPolicy prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Describes an autoscaling policy for Dataproc cluster autoscaler.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.AutoscalingPolicy} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.AutoscalingPolicy) com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_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.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AutoscalingPolicy.class, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder.class); + com.google.cloud.dataproc.v1.AutoscalingPolicy.class, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder.class); } // Construct using com.google.cloud.dataproc.v1.AutoscalingPolicy.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -836,9 +767,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_descriptor; } @java.lang.Override @@ -857,8 +788,7 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicy build() { @java.lang.Override public com.google.cloud.dataproc.v1.AutoscalingPolicy buildPartial() { - com.google.cloud.dataproc.v1.AutoscalingPolicy result = - new com.google.cloud.dataproc.v1.AutoscalingPolicy(this); + com.google.cloud.dataproc.v1.AutoscalingPolicy result = new com.google.cloud.dataproc.v1.AutoscalingPolicy(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; @@ -890,39 +820,38 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicy buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.AutoscalingPolicy) { - return mergeFrom((com.google.cloud.dataproc.v1.AutoscalingPolicy) other); + return mergeFrom((com.google.cloud.dataproc.v1.AutoscalingPolicy)other); } else { super.mergeFrom(other); return this; @@ -945,17 +874,16 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.AutoscalingPolicy other) { if (other.hasSecondaryWorkerConfig()) { mergeSecondaryWorkerConfig(other.getSecondaryWorkerConfig()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); switch (other.getAlgorithmCase()) { - case BASIC_ALGORITHM: - { - mergeBasicAlgorithm(other.getBasicAlgorithm()); - break; - } - case ALGORITHM_NOT_SET: - { - break; - } + case BASIC_ALGORITHM: { + mergeBasicAlgorithm(other.getBasicAlgorithm()); + break; + } + case ALGORITHM_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -983,55 +911,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - id_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getBasicAlgorithmFieldBuilder().getBuilder(), extensionRegistry); - algorithmCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage( - getSecondaryWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + id_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getBasicAlgorithmFieldBuilder().getBuilder(), + extensionRegistry); + algorithmCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getWorkerConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + input.readMessage( + getSecondaryWorkerConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1041,12 +965,12 @@ public Builder mergeFrom( } // finally return this; } - private int algorithmCase_ = 0; private java.lang.Object algorithm_; - - public AlgorithmCase getAlgorithmCase() { - return AlgorithmCase.forNumber(algorithmCase_); + public AlgorithmCase + getAlgorithmCase() { + return AlgorithmCase.forNumber( + algorithmCase_); } public Builder clearAlgorithm() { @@ -1060,8 +984,6 @@ public Builder clearAlgorithm() { private java.lang.Object id_ = ""; /** - * - * *
      * Required. The policy id.
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1070,13 +992,13 @@ public Builder clearAlgorithm() {
      * 
* * string id = 1; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -1085,8 +1007,6 @@ public java.lang.String getId() { } } /** - * - * *
      * Required. The policy id.
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1095,14 +1015,15 @@ public java.lang.String getId() {
      * 
* * string id = 1; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -1110,8 +1031,6 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * Required. The policy id.
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1120,22 +1039,20 @@ public com.google.protobuf.ByteString getIdBytes() {
      * 
* * string id = 1; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** - * - * *
      * Required. The policy id.
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1144,18 +1061,15 @@ public Builder setId(java.lang.String value) {
      * 
* * string id = 1; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * Required. The policy id.
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1164,16 +1078,16 @@ public Builder clearId() {
      * 
* * string id = 1; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -1181,8 +1095,6 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1195,13 +1107,13 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string name = 2 [(.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; @@ -1210,8 +1122,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1224,14 +1134,15 @@ public java.lang.String getName() {
      * 
* * string name = 2 [(.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 { @@ -1239,8 +1150,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1253,22 +1162,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1281,18 +1188,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1305,31 +1209,25 @@ public Builder clearName() {
      * 
* * string name = 2 [(.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; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm, - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder, - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder> - basicAlgorithmBuilder_; + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm, com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder, com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder> basicAlgorithmBuilder_; /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the basicAlgorithm field is set. */ @java.lang.Override @@ -1337,10 +1235,7 @@ public boolean hasBasicAlgorithm() { return algorithmCase_ == 3; } /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The basicAlgorithm. */ @java.lang.Override @@ -1358,9 +1253,7 @@ public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm getBasicAlgorithm( } } /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBasicAlgorithm(com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm value) { if (basicAlgorithmBuilder_ == null) { @@ -1376,9 +1269,7 @@ public Builder setBasicAlgorithm(com.google.cloud.dataproc.v1.BasicAutoscalingAl return this; } /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBasicAlgorithm( com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder builderForValue) { @@ -1392,21 +1283,14 @@ public Builder setBasicAlgorithm( return this; } /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeBasicAlgorithm( - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm value) { + public Builder mergeBasicAlgorithm(com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm value) { if (basicAlgorithmBuilder_ == null) { - if (algorithmCase_ == 3 - && algorithm_ - != com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance()) { - algorithm_ = - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.newBuilder( - (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_) - .mergeFrom(value) - .buildPartial(); + if (algorithmCase_ == 3 && + algorithm_ != com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance()) { + algorithm_ = com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.newBuilder((com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_) + .mergeFrom(value).buildPartial(); } else { algorithm_ = value; } @@ -1422,9 +1306,7 @@ public Builder mergeBasicAlgorithm( return this; } /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBasicAlgorithm() { if (basicAlgorithmBuilder_ == null) { @@ -1443,22 +1325,16 @@ public Builder clearBasicAlgorithm() { return this; } /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder - getBasicAlgorithmBuilder() { + public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder getBasicAlgorithmBuilder() { return getBasicAlgorithmFieldBuilder().getBuilder(); } /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder - getBasicAlgorithmOrBuilder() { + public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder getBasicAlgorithmOrBuilder() { if ((algorithmCase_ == 3) && (basicAlgorithmBuilder_ != null)) { return basicAlgorithmBuilder_.getMessageOrBuilder(); } else { @@ -1469,92 +1345,64 @@ public Builder clearBasicAlgorithm() { } } /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm, - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder, - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder> + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm, com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder, com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder> getBasicAlgorithmFieldBuilder() { if (basicAlgorithmBuilder_ == null) { if (!(algorithmCase_ == 3)) { algorithm_ = com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance(); } - basicAlgorithmBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm, - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder, - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder>( + basicAlgorithmBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm, com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder, com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder>( (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_, getParentForChildren(), isClean()); algorithm_ = null; } algorithmCase_ = 3; - onChanged(); - ; + onChanged();; return basicAlgorithmBuilder_; } private com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig workerConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> - workerConfigBuilder_; + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> workerConfigBuilder_; /** - * - * *
      * Required. Describes how the autoscaler will operate for primary workers.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workerConfig field is set. */ public boolean hasWorkerConfig() { return workerConfigBuilder_ != null || workerConfig_ != null; } /** - * - * *
      * Required. Describes how the autoscaler will operate for primary workers.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The workerConfig. */ public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getWorkerConfig() { if (workerConfigBuilder_ == null) { - return workerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() - : workerConfig_; + return workerConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() : workerConfig_; } else { return workerConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Describes how the autoscaler will operate for primary workers.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setWorkerConfig( - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { + public Builder setWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { if (workerConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1568,15 +1416,11 @@ public Builder setWorkerConfig( return this; } /** - * - * *
      * Required. Describes how the autoscaler will operate for primary workers.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkerConfig( com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder builderForValue) { @@ -1590,25 +1434,17 @@ public Builder setWorkerConfig( return this; } /** - * - * *
      * Required. Describes how the autoscaler will operate for primary workers.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeWorkerConfig( - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { + public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { if (workerConfigBuilder_ == null) { if (workerConfig_ != null) { workerConfig_ = - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.newBuilder( - workerConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.newBuilder(workerConfig_).mergeFrom(value).buildPartial(); } else { workerConfig_ = value; } @@ -1620,15 +1456,11 @@ public Builder mergeWorkerConfig( return this; } /** - * - * *
      * Required. Describes how the autoscaler will operate for primary workers.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkerConfig() { if (workerConfigBuilder_ == null) { @@ -1642,130 +1474,90 @@ public Builder clearWorkerConfig() { return this; } /** - * - * *
      * Required. Describes how the autoscaler will operate for primary workers.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder - getWorkerConfigBuilder() { - + public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder getWorkerConfigBuilder() { + onChanged(); return getWorkerConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Describes how the autoscaler will operate for primary workers.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder - getWorkerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder getWorkerConfigOrBuilder() { if (workerConfigBuilder_ != null) { return workerConfigBuilder_.getMessageOrBuilder(); } else { - return workerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() - : workerConfig_; + return workerConfig_ == null ? + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() : workerConfig_; } } /** - * - * *
      * Required. Describes how the autoscaler will operate for primary workers.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> getWorkerConfigFieldBuilder() { if (workerConfigBuilder_ == null) { - workerConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder>( - getWorkerConfig(), getParentForChildren(), isClean()); + workerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder>( + getWorkerConfig(), + getParentForChildren(), + isClean()); workerConfig_ = null; } return workerConfigBuilder_; } - private com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig - secondaryWorkerConfig_; + private com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondaryWorkerConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> - secondaryWorkerConfigBuilder_; + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> secondaryWorkerConfigBuilder_; /** - * - * *
      * Optional. Describes how the autoscaler will operate for secondary workers.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the secondaryWorkerConfig field is set. */ public boolean hasSecondaryWorkerConfig() { return secondaryWorkerConfigBuilder_ != null || secondaryWorkerConfig_ != null; } /** - * - * *
      * Optional. Describes how the autoscaler will operate for secondary workers.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The secondaryWorkerConfig. */ - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig - getSecondaryWorkerConfig() { + public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getSecondaryWorkerConfig() { if (secondaryWorkerConfigBuilder_ == null) { - return secondaryWorkerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() - : secondaryWorkerConfig_; + return secondaryWorkerConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() : secondaryWorkerConfig_; } else { return secondaryWorkerConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Describes how the autoscaler will operate for secondary workers.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setSecondaryWorkerConfig( - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { + public Builder setSecondaryWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { if (secondaryWorkerConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1779,15 +1571,11 @@ public Builder setSecondaryWorkerConfig( return this; } /** - * - * *
      * Optional. Describes how the autoscaler will operate for secondary workers.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSecondaryWorkerConfig( com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder builderForValue) { @@ -1801,25 +1589,17 @@ public Builder setSecondaryWorkerConfig( return this; } /** - * - * *
      * Optional. Describes how the autoscaler will operate for secondary workers.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeSecondaryWorkerConfig( - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { + public Builder mergeSecondaryWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { if (secondaryWorkerConfigBuilder_ == null) { if (secondaryWorkerConfig_ != null) { secondaryWorkerConfig_ = - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.newBuilder( - secondaryWorkerConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.newBuilder(secondaryWorkerConfig_).mergeFrom(value).buildPartial(); } else { secondaryWorkerConfig_ = value; } @@ -1831,15 +1611,11 @@ public Builder mergeSecondaryWorkerConfig( return this; } /** - * - * *
      * Optional. Describes how the autoscaler will operate for secondary workers.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSecondaryWorkerConfig() { if (secondaryWorkerConfigBuilder_ == null) { @@ -1853,86 +1629,69 @@ public Builder clearSecondaryWorkerConfig() { return this; } /** - * - * *
      * Optional. Describes how the autoscaler will operate for secondary workers.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder - getSecondaryWorkerConfigBuilder() { - + public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder getSecondaryWorkerConfigBuilder() { + onChanged(); return getSecondaryWorkerConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Describes how the autoscaler will operate for secondary workers.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder - getSecondaryWorkerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder getSecondaryWorkerConfigOrBuilder() { if (secondaryWorkerConfigBuilder_ != null) { return secondaryWorkerConfigBuilder_.getMessageOrBuilder(); } else { - return secondaryWorkerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() - : secondaryWorkerConfig_; + return secondaryWorkerConfig_ == null ? + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() : secondaryWorkerConfig_; } } /** - * - * *
      * Optional. Describes how the autoscaler will operate for secondary workers.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> getSecondaryWorkerConfigFieldBuilder() { if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder>( - getSecondaryWorkerConfig(), getParentForChildren(), isClean()); + secondaryWorkerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder>( + getSecondaryWorkerConfig(), + getParentForChildren(), + isClean()); secondaryWorkerConfig_ = null; } return secondaryWorkerConfigBuilder_; } - 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(); @@ -1944,8 +1703,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels to associate with this autoscaling policy.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1958,22 +1715,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @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();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this autoscaling policy.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1987,12 +1744,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this autoscaling policy.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -2006,17 +1762,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this autoscaling policy.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -2030,11 +1785,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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();
       }
@@ -2042,12 +1798,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this autoscaling policy.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -2060,21 +1815,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this autoscaling policy.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -2087,20 +1844,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this autoscaling policy.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -2113,13 +1869,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().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);
     }
 
@@ -2129,12 +1888,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.AutoscalingPolicy)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AutoscalingPolicy)
   private static final com.google.cloud.dataproc.v1.AutoscalingPolicy DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.AutoscalingPolicy();
   }
@@ -2143,27 +1902,27 @@ public static com.google.cloud.dataproc.v1.AutoscalingPolicy getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AutoscalingPolicy parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AutoscalingPolicy parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2178,4 +1937,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.dataproc.v1.AutoscalingPolicy getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java
similarity index 100%
rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java
rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java
diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java
similarity index 71%
rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java
rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java
index 46ddc82ec653..8c0a5e3553c8 100644
--- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java
+++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.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/dataproc/v1/autoscaling_policies.proto
 
 package com.google.cloud.dataproc.v1;
 
-public interface AutoscalingPolicyOrBuilder
-    extends
+public interface AutoscalingPolicyOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.AutoscalingPolicy)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The policy id.
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -34,13 +16,10 @@ public interface AutoscalingPolicyOrBuilder
    * 
* * string id = 1; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * Required. The policy id.
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -49,14 +28,12 @@ public interface AutoscalingPolicyOrBuilder
    * 
* * string id = 1; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * Output only. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -69,13 +46,10 @@ public interface AutoscalingPolicyOrBuilder
    * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -88,121 +62,81 @@ public interface AutoscalingPolicyOrBuilder
    * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the basicAlgorithm field is set. */ boolean hasBasicAlgorithm(); /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The basicAlgorithm. */ com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm getBasicAlgorithm(); /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder getBasicAlgorithmOrBuilder(); /** - * - * *
    * Required. Describes how the autoscaler will operate for primary workers.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workerConfig field is set. */ boolean hasWorkerConfig(); /** - * - * *
    * Required. Describes how the autoscaler will operate for primary workers.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The workerConfig. */ com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getWorkerConfig(); /** - * - * *
    * Required. Describes how the autoscaler will operate for primary workers.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder - getWorkerConfigOrBuilder(); + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder getWorkerConfigOrBuilder(); /** - * - * *
    * Optional. Describes how the autoscaler will operate for secondary workers.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the secondaryWorkerConfig field is set. */ boolean hasSecondaryWorkerConfig(); /** - * - * *
    * Optional. Describes how the autoscaler will operate for secondary workers.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The secondaryWorkerConfig. */ com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getSecondaryWorkerConfig(); /** - * - * *
    * Optional. Describes how the autoscaler will operate for secondary workers.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder - getSecondaryWorkerConfigOrBuilder(); + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder getSecondaryWorkerConfigOrBuilder(); /** - * - * *
    * Optional. The labels to associate with this autoscaling policy.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -217,8 +151,6 @@ public interface AutoscalingPolicyOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this autoscaling policy.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -231,13 +163,15 @@ public interface AutoscalingPolicyOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  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();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this autoscaling policy.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -250,10 +184,9 @@ public interface AutoscalingPolicyOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this autoscaling policy.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -268,13 +201,11 @@ public interface AutoscalingPolicyOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this autoscaling policy.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -287,7 +218,9 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   public com.google.cloud.dataproc.v1.AutoscalingPolicy.AlgorithmCase getAlgorithmCase();
 }
diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroup.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroup.java
new file mode 100644
index 000000000000..72e3ebec1445
--- /dev/null
+++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroup.java
@@ -0,0 +1,825 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/dataproc/v1/clusters.proto
+
+package com.google.cloud.dataproc.v1;
+
+/**
+ * 
+ * Node group identification and configuration information.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.AuxiliaryNodeGroup} + */ +public final class AuxiliaryNodeGroup extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.AuxiliaryNodeGroup) + AuxiliaryNodeGroupOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuxiliaryNodeGroup.newBuilder() to construct. + private AuxiliaryNodeGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuxiliaryNodeGroup() { + nodeGroupId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuxiliaryNodeGroup(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.class, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder.class); + } + + public static final int NODE_GROUP_FIELD_NUMBER = 1; + private com.google.cloud.dataproc.v1.NodeGroup nodeGroup_; + /** + *
+   * Required. Node group configuration.
+   * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the nodeGroup field is set. + */ + @java.lang.Override + public boolean hasNodeGroup() { + return nodeGroup_ != null; + } + /** + *
+   * Required. Node group configuration.
+   * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The nodeGroup. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroup getNodeGroup() { + return nodeGroup_ == null ? com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance() : nodeGroup_; + } + /** + *
+   * Required. Node group configuration.
+   * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder() { + return getNodeGroup(); + } + + public static final int NODE_GROUP_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object nodeGroupId_; + /** + *
+   * Optional. A node group ID. Generated if not specified.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). Cannot begin or end with underscore
+   * or hyphen. Must consist of from 3 to 33 characters.
+   * 
+ * + * string node_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The nodeGroupId. + */ + @java.lang.Override + public java.lang.String getNodeGroupId() { + java.lang.Object ref = nodeGroupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeGroupId_ = s; + return s; + } + } + /** + *
+   * Optional. A node group ID. Generated if not specified.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). Cannot begin or end with underscore
+   * or hyphen. Must consist of from 3 to 33 characters.
+   * 
+ * + * string node_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for nodeGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNodeGroupIdBytes() { + java.lang.Object ref = nodeGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (nodeGroup_ != null) { + output.writeMessage(1, getNodeGroup()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroupId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nodeGroupId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nodeGroup_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNodeGroup()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroupId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeGroupId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataproc.v1.AuxiliaryNodeGroup)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup other = (com.google.cloud.dataproc.v1.AuxiliaryNodeGroup) obj; + + if (hasNodeGroup() != other.hasNodeGroup()) return false; + if (hasNodeGroup()) { + if (!getNodeGroup() + .equals(other.getNodeGroup())) return false; + } + if (!getNodeGroupId() + .equals(other.getNodeGroupId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNodeGroup()) { + hash = (37 * hash) + NODE_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getNodeGroup().hashCode(); + } + hash = (37 * hash) + NODE_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeGroupId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup 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.dataproc.v1.AuxiliaryNodeGroup parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.dataproc.v1.AuxiliaryNodeGroup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Node group identification and configuration information.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.AuxiliaryNodeGroup} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.AuxiliaryNodeGroup) + com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.class, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodeGroupBuilder_ == null) { + nodeGroup_ = null; + } else { + nodeGroup_ = null; + nodeGroupBuilder_ = null; + } + nodeGroupId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup build() { + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup buildPartial() { + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup result = new com.google.cloud.dataproc.v1.AuxiliaryNodeGroup(this); + if (nodeGroupBuilder_ == null) { + result.nodeGroup_ = nodeGroup_; + } else { + result.nodeGroup_ = nodeGroupBuilder_.build(); + } + result.nodeGroupId_ = nodeGroupId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataproc.v1.AuxiliaryNodeGroup) { + return mergeFrom((com.google.cloud.dataproc.v1.AuxiliaryNodeGroup)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.AuxiliaryNodeGroup other) { + if (other == com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.getDefaultInstance()) return this; + if (other.hasNodeGroup()) { + mergeNodeGroup(other.getNodeGroup()); + } + if (!other.getNodeGroupId().isEmpty()) { + nodeGroupId_ = other.nodeGroupId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getNodeGroupFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + nodeGroupId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.cloud.dataproc.v1.NodeGroup nodeGroup_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.NodeGroup, com.google.cloud.dataproc.v1.NodeGroup.Builder, com.google.cloud.dataproc.v1.NodeGroupOrBuilder> nodeGroupBuilder_; + /** + *
+     * Required. Node group configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the nodeGroup field is set. + */ + public boolean hasNodeGroup() { + return nodeGroupBuilder_ != null || nodeGroup_ != null; + } + /** + *
+     * Required. Node group configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The nodeGroup. + */ + public com.google.cloud.dataproc.v1.NodeGroup getNodeGroup() { + if (nodeGroupBuilder_ == null) { + return nodeGroup_ == null ? com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance() : nodeGroup_; + } else { + return nodeGroupBuilder_.getMessage(); + } + } + /** + *
+     * Required. Node group configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setNodeGroup(com.google.cloud.dataproc.v1.NodeGroup value) { + if (nodeGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeGroup_ = value; + onChanged(); + } else { + nodeGroupBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. Node group configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setNodeGroup( + com.google.cloud.dataproc.v1.NodeGroup.Builder builderForValue) { + if (nodeGroupBuilder_ == null) { + nodeGroup_ = builderForValue.build(); + onChanged(); + } else { + nodeGroupBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. Node group configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeNodeGroup(com.google.cloud.dataproc.v1.NodeGroup value) { + if (nodeGroupBuilder_ == null) { + if (nodeGroup_ != null) { + nodeGroup_ = + com.google.cloud.dataproc.v1.NodeGroup.newBuilder(nodeGroup_).mergeFrom(value).buildPartial(); + } else { + nodeGroup_ = value; + } + onChanged(); + } else { + nodeGroupBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. Node group configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearNodeGroup() { + if (nodeGroupBuilder_ == null) { + nodeGroup_ = null; + onChanged(); + } else { + nodeGroup_ = null; + nodeGroupBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. Node group configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.dataproc.v1.NodeGroup.Builder getNodeGroupBuilder() { + + onChanged(); + return getNodeGroupFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Node group configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder() { + if (nodeGroupBuilder_ != null) { + return nodeGroupBuilder_.getMessageOrBuilder(); + } else { + return nodeGroup_ == null ? + com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance() : nodeGroup_; + } + } + /** + *
+     * Required. Node group configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.NodeGroup, com.google.cloud.dataproc.v1.NodeGroup.Builder, com.google.cloud.dataproc.v1.NodeGroupOrBuilder> + getNodeGroupFieldBuilder() { + if (nodeGroupBuilder_ == null) { + nodeGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.NodeGroup, com.google.cloud.dataproc.v1.NodeGroup.Builder, com.google.cloud.dataproc.v1.NodeGroupOrBuilder>( + getNodeGroup(), + getParentForChildren(), + isClean()); + nodeGroup_ = null; + } + return nodeGroupBuilder_; + } + + private java.lang.Object nodeGroupId_ = ""; + /** + *
+     * Optional. A node group ID. Generated if not specified.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). Cannot begin or end with underscore
+     * or hyphen. Must consist of from 3 to 33 characters.
+     * 
+ * + * string node_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The nodeGroupId. + */ + public java.lang.String getNodeGroupId() { + java.lang.Object ref = nodeGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. A node group ID. Generated if not specified.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). Cannot begin or end with underscore
+     * or hyphen. Must consist of from 3 to 33 characters.
+     * 
+ * + * string node_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for nodeGroupId. + */ + public com.google.protobuf.ByteString + getNodeGroupIdBytes() { + java.lang.Object ref = nodeGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. A node group ID. Generated if not specified.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). Cannot begin or end with underscore
+     * or hyphen. Must consist of from 3 to 33 characters.
+     * 
+ * + * string node_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The nodeGroupId to set. + * @return This builder for chaining. + */ + public Builder setNodeGroupId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeGroupId_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional. A node group ID. Generated if not specified.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). Cannot begin or end with underscore
+     * or hyphen. Must consist of from 3 to 33 characters.
+     * 
+ * + * string node_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearNodeGroupId() { + + nodeGroupId_ = getDefaultInstance().getNodeGroupId(); + onChanged(); + return this; + } + /** + *
+     * Optional. A node group ID. Generated if not specified.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). Cannot begin or end with underscore
+     * or hyphen. Must consist of from 3 to 33 characters.
+     * 
+ * + * string node_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for nodeGroupId to set. + * @return This builder for chaining. + */ + public Builder setNodeGroupIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeGroupId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.AuxiliaryNodeGroup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AuxiliaryNodeGroup) + private static final com.google.cloud.dataproc.v1.AuxiliaryNodeGroup DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.AuxiliaryNodeGroup(); + } + + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuxiliaryNodeGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroupOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroupOrBuilder.java new file mode 100644 index 000000000000..d0a1341412a9 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroupOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface AuxiliaryNodeGroupOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.AuxiliaryNodeGroup) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Node group configuration.
+   * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the nodeGroup field is set. + */ + boolean hasNodeGroup(); + /** + *
+   * Required. Node group configuration.
+   * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The nodeGroup. + */ + com.google.cloud.dataproc.v1.NodeGroup getNodeGroup(); + /** + *
+   * Required. Node group configuration.
+   * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder(); + + /** + *
+   * Optional. A node group ID. Generated if not specified.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). Cannot begin or end with underscore
+   * or hyphen. Must consist of from 3 to 33 characters.
+   * 
+ * + * string node_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The nodeGroupId. + */ + java.lang.String getNodeGroupId(); + /** + *
+   * Optional. A node group ID. Generated if not specified.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). Cannot begin or end with underscore
+   * or hyphen. Must consist of from 3 to 33 characters.
+   * 
+ * + * string node_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for nodeGroupId. + */ + com.google.protobuf.ByteString + getNodeGroupIdBytes(); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java similarity index 60% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java index af0e2ec88fbf..d04e5ba49700 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java @@ -1,83 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Auxiliary services configuration for a Cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.AuxiliaryServicesConfig} */ -public final class AuxiliaryServicesConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AuxiliaryServicesConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.AuxiliaryServicesConfig) AuxiliaryServicesConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AuxiliaryServicesConfig.newBuilder() to construct. private AuxiliaryServicesConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AuxiliaryServicesConfig() {} + private AuxiliaryServicesConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AuxiliaryServicesConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.class, - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder.class); + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.class, com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder.class); } public static final int METASTORE_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfig_; /** - * - * *
    * Optional. The Hive Metastore configuration for this workload.
    * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the metastoreConfig field is set. */ @java.lang.Override @@ -85,34 +62,23 @@ public boolean hasMetastoreConfig() { return metastoreConfig_ != null; } /** - * - * *
    * Optional. The Hive Metastore configuration for this workload.
    * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The metastoreConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig() { - return metastoreConfig_ == null - ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() - : metastoreConfig_; + return metastoreConfig_ == null ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() : metastoreConfig_; } /** - * - * *
    * Optional. The Hive Metastore configuration for this workload.
    * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder() { @@ -122,16 +88,11 @@ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigO public static final int SPARK_HISTORY_SERVER_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; /** - * - * *
    * Optional. The Spark History Server configuration for the workload.
    * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkHistoryServerConfig field is set. */ @java.lang.Override @@ -139,43 +100,30 @@ public boolean hasSparkHistoryServerConfig() { return sparkHistoryServerConfig_ != null; } /** - * - * *
    * Optional. The Spark History Server configuration for the workload.
    * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkHistoryServerConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { - return sparkHistoryServerConfig_ == null - ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() - : sparkHistoryServerConfig_; + return sparkHistoryServerConfig_ == null ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; } /** - * - * *
    * Optional. The Spark History Server configuration for the workload.
    * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder - getSparkHistoryServerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder() { return getSparkHistoryServerConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +135,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 (metastoreConfig_ != null) { output.writeMessage(1, getMetastoreConfig()); } @@ -204,12 +153,12 @@ public int getSerializedSize() { size = 0; if (metastoreConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetastoreConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetastoreConfig()); } if (sparkHistoryServerConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getSparkHistoryServerConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSparkHistoryServerConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -219,21 +168,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.dataproc.v1.AuxiliaryServicesConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig other = - (com.google.cloud.dataproc.v1.AuxiliaryServicesConfig) obj; + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig other = (com.google.cloud.dataproc.v1.AuxiliaryServicesConfig) obj; if (hasMetastoreConfig() != other.hasMetastoreConfig()) return false; if (hasMetastoreConfig()) { - if (!getMetastoreConfig().equals(other.getMetastoreConfig())) return false; + if (!getMetastoreConfig() + .equals(other.getMetastoreConfig())) return false; } if (hasSparkHistoryServerConfig() != other.hasSparkHistoryServerConfig()) return false; if (hasSparkHistoryServerConfig()) { - if (!getSparkHistoryServerConfig().equals(other.getSparkHistoryServerConfig())) return false; + if (!getSparkHistoryServerConfig() + .equals(other.getSparkHistoryServerConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -260,135 +210,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig 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.dataproc.v1.AuxiliaryServicesConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.AuxiliaryServicesConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Auxiliary services configuration for a Cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.AuxiliaryServicesConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.AuxiliaryServicesConfig) com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.class, - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder.class); + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.class, com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +352,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; } @java.lang.Override @@ -429,8 +373,7 @@ public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig buildPartial() { - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig result = - new com.google.cloud.dataproc.v1.AuxiliaryServicesConfig(this); + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig result = new com.google.cloud.dataproc.v1.AuxiliaryServicesConfig(this); if (metastoreConfigBuilder_ == null) { result.metastoreConfig_ = metastoreConfig_; } else { @@ -449,39 +392,38 @@ public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.AuxiliaryServicesConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.AuxiliaryServicesConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.AuxiliaryServicesConfig)other); } else { super.mergeFrom(other); return this; @@ -489,8 +431,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.AuxiliaryServicesConfig other) { - if (other == com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance()) return this; if (other.hasMetastoreConfig()) { mergeMetastoreConfig(other.getMetastoreConfig()); } @@ -523,26 +464,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getMetastoreConfigFieldBuilder().getBuilder(), extensionRegistry); + case 10: { + input.readMessage( + getMetastoreConfigFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 10 - case 18: - { - input.readMessage( - getSparkHistoryServerConfigFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getSparkHistoryServerConfigFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,58 +496,39 @@ public Builder mergeFrom( private com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.MetastoreConfig, - com.google.cloud.dataproc.v1.MetastoreConfig.Builder, - com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> - metastoreConfigBuilder_; + com.google.cloud.dataproc.v1.MetastoreConfig, com.google.cloud.dataproc.v1.MetastoreConfig.Builder, com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> metastoreConfigBuilder_; /** - * - * *
      * Optional. The Hive Metastore configuration for this workload.
      * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the metastoreConfig field is set. */ public boolean hasMetastoreConfig() { return metastoreConfigBuilder_ != null || metastoreConfig_ != null; } /** - * - * *
      * Optional. The Hive Metastore configuration for this workload.
      * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The metastoreConfig. */ public com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig() { if (metastoreConfigBuilder_ == null) { - return metastoreConfig_ == null - ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() - : metastoreConfig_; + return metastoreConfig_ == null ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() : metastoreConfig_; } else { return metastoreConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The Hive Metastore configuration for this workload.
      * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { if (metastoreConfigBuilder_ == null) { @@ -622,15 +544,11 @@ public Builder setMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig v return this; } /** - * - * *
      * Optional. The Hive Metastore configuration for this workload.
      * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMetastoreConfig( com.google.cloud.dataproc.v1.MetastoreConfig.Builder builderForValue) { @@ -644,23 +562,17 @@ public Builder setMetastoreConfig( return this; } /** - * - * *
      * Optional. The Hive Metastore configuration for this workload.
      * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { if (metastoreConfigBuilder_ == null) { if (metastoreConfig_ != null) { metastoreConfig_ = - com.google.cloud.dataproc.v1.MetastoreConfig.newBuilder(metastoreConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.MetastoreConfig.newBuilder(metastoreConfig_).mergeFrom(value).buildPartial(); } else { metastoreConfig_ = value; } @@ -672,15 +584,11 @@ public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig return this; } /** - * - * *
      * Optional. The Hive Metastore configuration for this workload.
      * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearMetastoreConfig() { if (metastoreConfigBuilder_ == null) { @@ -694,64 +602,48 @@ public Builder clearMetastoreConfig() { return this; } /** - * - * *
      * Optional. The Hive Metastore configuration for this workload.
      * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.MetastoreConfig.Builder getMetastoreConfigBuilder() { - + onChanged(); return getMetastoreConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The Hive Metastore configuration for this workload.
      * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder() { if (metastoreConfigBuilder_ != null) { return metastoreConfigBuilder_.getMessageOrBuilder(); } else { - return metastoreConfig_ == null - ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() - : metastoreConfig_; + return metastoreConfig_ == null ? + com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() : metastoreConfig_; } } /** - * - * *
      * Optional. The Hive Metastore configuration for this workload.
      * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.MetastoreConfig, - com.google.cloud.dataproc.v1.MetastoreConfig.Builder, - com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> + com.google.cloud.dataproc.v1.MetastoreConfig, com.google.cloud.dataproc.v1.MetastoreConfig.Builder, com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> getMetastoreConfigFieldBuilder() { if (metastoreConfigBuilder_ == null) { - metastoreConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.MetastoreConfig, - com.google.cloud.dataproc.v1.MetastoreConfig.Builder, - com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder>( - getMetastoreConfig(), getParentForChildren(), isClean()); + metastoreConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.MetastoreConfig, com.google.cloud.dataproc.v1.MetastoreConfig.Builder, com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder>( + getMetastoreConfig(), + getParentForChildren(), + isClean()); metastoreConfig_ = null; } return metastoreConfigBuilder_; @@ -759,61 +651,41 @@ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigO private com.google.cloud.dataproc.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkHistoryServerConfig, - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> - sparkHistoryServerConfigBuilder_; + com.google.cloud.dataproc.v1.SparkHistoryServerConfig, com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> sparkHistoryServerConfigBuilder_; /** - * - * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkHistoryServerConfig field is set. */ public boolean hasSparkHistoryServerConfig() { return sparkHistoryServerConfigBuilder_ != null || sparkHistoryServerConfig_ != null; } /** - * - * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkHistoryServerConfig. */ public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { if (sparkHistoryServerConfigBuilder_ == null) { - return sparkHistoryServerConfig_ == null - ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() - : sparkHistoryServerConfig_; + return sparkHistoryServerConfig_ == null ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; } else { return sparkHistoryServerConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setSparkHistoryServerConfig( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { + public Builder setSparkHistoryServerConfig(com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { if (sparkHistoryServerConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -827,15 +699,11 @@ public Builder setSparkHistoryServerConfig( return this; } /** - * - * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSparkHistoryServerConfig( com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder builderForValue) { @@ -849,25 +717,17 @@ public Builder setSparkHistoryServerConfig( return this; } /** - * - * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeSparkHistoryServerConfig( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { + public Builder mergeSparkHistoryServerConfig(com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { if (sparkHistoryServerConfigBuilder_ == null) { if (sparkHistoryServerConfig_ != null) { sparkHistoryServerConfig_ = - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.newBuilder( - sparkHistoryServerConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.newBuilder(sparkHistoryServerConfig_).mergeFrom(value).buildPartial(); } else { sparkHistoryServerConfig_ = value; } @@ -879,15 +739,11 @@ public Builder mergeSparkHistoryServerConfig( return this; } /** - * - * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSparkHistoryServerConfig() { if (sparkHistoryServerConfigBuilder_ == null) { @@ -901,73 +757,55 @@ public Builder clearSparkHistoryServerConfig() { return this; } /** - * - * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder - getSparkHistoryServerConfigBuilder() { - + public com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder getSparkHistoryServerConfigBuilder() { + onChanged(); return getSparkHistoryServerConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder - getSparkHistoryServerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder() { if (sparkHistoryServerConfigBuilder_ != null) { return sparkHistoryServerConfigBuilder_.getMessageOrBuilder(); } else { - return sparkHistoryServerConfig_ == null - ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() - : sparkHistoryServerConfig_; + return sparkHistoryServerConfig_ == null ? + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; } } /** - * - * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkHistoryServerConfig, - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> + com.google.cloud.dataproc.v1.SparkHistoryServerConfig, com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> getSparkHistoryServerConfigFieldBuilder() { if (sparkHistoryServerConfigBuilder_ == null) { - sparkHistoryServerConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkHistoryServerConfig, - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder>( - getSparkHistoryServerConfig(), getParentForChildren(), isClean()); + sparkHistoryServerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkHistoryServerConfig, com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder>( + getSparkHistoryServerConfig(), + getParentForChildren(), + isClean()); sparkHistoryServerConfig_ = null; } return sparkHistoryServerConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -977,12 +815,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.AuxiliaryServicesConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AuxiliaryServicesConfig) private static final com.google.cloud.dataproc.v1.AuxiliaryServicesConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.AuxiliaryServicesConfig(); } @@ -991,27 +829,27 @@ public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuxiliaryServicesConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuxiliaryServicesConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1026,4 +864,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfigOrBuilder.java new file mode 100644 index 000000000000..d71e9edae862 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfigOrBuilder.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface AuxiliaryServicesConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.AuxiliaryServicesConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Optional. The Hive Metastore configuration for this workload.
+   * 
+ * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the metastoreConfig field is set. + */ + boolean hasMetastoreConfig(); + /** + *
+   * Optional. The Hive Metastore configuration for this workload.
+   * 
+ * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The metastoreConfig. + */ + com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig(); + /** + *
+   * Optional. The Hive Metastore configuration for this workload.
+   * 
+ * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder(); + + /** + *
+   * Optional. The Spark History Server configuration for the workload.
+   * 
+ * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the sparkHistoryServerConfig field is set. + */ + boolean hasSparkHistoryServerConfig(); + /** + *
+   * Optional. The Spark History Server configuration for the workload.
+   * 
+ * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The sparkHistoryServerConfig. + */ + com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig(); + /** + *
+   * Optional. The Spark History Server configuration for the workload.
+   * 
+ * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder(); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java similarity index 64% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java index a0b6f742896e..9cbed7a0f4e2 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java @@ -1,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Basic algorithm for autoscaling.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.BasicAutoscalingAlgorithm} */ -public final class BasicAutoscalingAlgorithm extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BasicAutoscalingAlgorithm extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) BasicAutoscalingAlgorithmOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BasicAutoscalingAlgorithm.newBuilder() to construct. private BasicAutoscalingAlgorithm(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BasicAutoscalingAlgorithm() {} + private BasicAutoscalingAlgorithm() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BasicAutoscalingAlgorithm(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.class, - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder.class); + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.class, com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder.class); } private int configCase_ = 0; private java.lang.Object config_; - public enum ConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { YARN_CONFIG(1), CONFIG_NOT_SET(0); private final int value; - private ConfigCase(int value) { this.value = value; } @@ -91,36 +70,29 @@ public static ConfigCase valueOf(int value) { public static ConfigCase forNumber(int value) { switch (value) { - case 1: - return YARN_CONFIG; - case 0: - return CONFIG_NOT_SET; - default: - return null; + case 1: return YARN_CONFIG; + case 0: return CONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ConfigCase getConfigCase() { - return ConfigCase.forNumber(configCase_); + public ConfigCase + getConfigCase() { + return ConfigCase.forNumber( + configCase_); } public static final int YARN_CONFIG_FIELD_NUMBER = 1; /** - * - * *
    * Required. YARN autoscaling configuration.
    * 
* - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the yarnConfig field is set. */ @java.lang.Override @@ -128,40 +100,31 @@ public boolean hasYarnConfig() { return configCase_ == 1; } /** - * - * *
    * Required. YARN autoscaling configuration.
    * 
* - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The yarnConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getYarnConfig() { if (configCase_ == 1) { - return (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_; + return (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_; } return com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance(); } /** - * - * *
    * Required. YARN autoscaling configuration.
    * 
* - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder getYarnConfigOrBuilder() { if (configCase_ == 1) { - return (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_; + return (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_; } return com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance(); } @@ -169,17 +132,13 @@ public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder getYarnC public static final int COOLDOWN_PERIOD_FIELD_NUMBER = 2; private com.google.protobuf.Duration cooldownPeriod_; /** - * - * *
    * Optional. Duration between scaling events. A scaling period starts after
    * the update operation from the previous event has completed.
    * Bounds: [2m, 1d]. Default: 2m.
    * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the cooldownPeriod field is set. */ @java.lang.Override @@ -187,36 +146,27 @@ public boolean hasCooldownPeriod() { return cooldownPeriod_ != null; } /** - * - * *
    * Optional. Duration between scaling events. A scaling period starts after
    * the update operation from the previous event has completed.
    * Bounds: [2m, 1d]. Default: 2m.
    * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The cooldownPeriod. */ @java.lang.Override public com.google.protobuf.Duration getCooldownPeriod() { - return cooldownPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : cooldownPeriod_; + return cooldownPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : cooldownPeriod_; } /** - * - * *
    * Optional. Duration between scaling events. A scaling period starts after
    * the update operation from the previous event has completed.
    * Bounds: [2m, 1d]. Default: 2m.
    * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder() { @@ -224,7 +174,6 @@ public com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,7 +185,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 (configCase_ == 1) { output.writeMessage(1, (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_); } @@ -253,12 +203,12 @@ public int getSerializedSize() { size = 0; if (configCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_); } if (cooldownPeriod_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCooldownPeriod()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCooldownPeriod()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -268,22 +218,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm other = - (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) obj; + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm other = (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) obj; if (hasCooldownPeriod() != other.hasCooldownPeriod()) return false; if (hasCooldownPeriod()) { - if (!getCooldownPeriod().equals(other.getCooldownPeriod())) return false; + if (!getCooldownPeriod() + .equals(other.getCooldownPeriod())) return false; } if (!getConfigCase().equals(other.getConfigCase())) return false; switch (configCase_) { case 1: - if (!getYarnConfig().equals(other.getYarnConfig())) return false; + if (!getYarnConfig() + .equals(other.getYarnConfig())) return false; break; case 0: default: @@ -317,136 +268,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm 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.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Basic algorithm for autoscaling.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.BasicAutoscalingAlgorithm} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.class, - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder.class); + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.class, com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder.class); } // Construct using com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -465,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; } @java.lang.Override @@ -486,8 +430,7 @@ public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm build() { @java.lang.Override public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm buildPartial() { - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm result = - new com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm(this); + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm result = new com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm(this); if (configCase_ == 1) { if (yarnConfigBuilder_ == null) { result.config_ = config_; @@ -509,39 +452,38 @@ public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) { - return mergeFrom((com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) other); + return mergeFrom((com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm)other); } else { super.mergeFrom(other); return this; @@ -549,21 +491,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm other) { - if (other == com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance()) return this; if (other.hasCooldownPeriod()) { mergeCooldownPeriod(other.getCooldownPeriod()); } switch (other.getConfigCase()) { - case YARN_CONFIG: - { - mergeYarnConfig(other.getYarnConfig()); - break; - } - case CONFIG_NOT_SET: - { - break; - } + case YARN_CONFIG: { + mergeYarnConfig(other.getYarnConfig()); + break; + } + case CONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -591,25 +530,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getYarnConfigFieldBuilder().getBuilder(), extensionRegistry); - configCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getCooldownPeriodFieldBuilder().getBuilder(), extensionRegistry); + case 10: { + input.readMessage( + getYarnConfigFieldBuilder().getBuilder(), + extensionRegistry); + configCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getCooldownPeriodFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -619,12 +559,12 @@ public Builder mergeFrom( } // finally return this; } - private int configCase_ = 0; private java.lang.Object config_; - - public ConfigCase getConfigCase() { - return ConfigCase.forNumber(configCase_); + public ConfigCase + getConfigCase() { + return ConfigCase.forNumber( + configCase_); } public Builder clearConfig() { @@ -634,22 +574,15 @@ public Builder clearConfig() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig, - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder, - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder> - yarnConfigBuilder_; + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig, com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder, com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder> yarnConfigBuilder_; /** - * - * *
      * Required. YARN autoscaling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the yarnConfig field is set. */ @java.lang.Override @@ -657,16 +590,11 @@ public boolean hasYarnConfig() { return configCase_ == 1; } /** - * - * *
      * Required. YARN autoscaling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The yarnConfig. */ @java.lang.Override @@ -684,15 +612,11 @@ public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getYarnConfig() { } } /** - * - * *
      * Required. YARN autoscaling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setYarnConfig(com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig value) { if (yarnConfigBuilder_ == null) { @@ -708,15 +632,11 @@ public Builder setYarnConfig(com.google.cloud.dataproc.v1.BasicYarnAutoscalingCo return this; } /** - * - * *
      * Required. YARN autoscaling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setYarnConfig( com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder builderForValue) { @@ -730,26 +650,18 @@ public Builder setYarnConfig( return this; } /** - * - * *
      * Required. YARN autoscaling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeYarnConfig(com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig value) { if (yarnConfigBuilder_ == null) { - if (configCase_ == 1 - && config_ - != com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance()) { - config_ = - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.newBuilder( - (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_) - .mergeFrom(value) - .buildPartial(); + if (configCase_ == 1 && + config_ != com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance()) { + config_ = com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.newBuilder((com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_) + .mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -765,15 +677,11 @@ public Builder mergeYarnConfig(com.google.cloud.dataproc.v1.BasicYarnAutoscaling return this; } /** - * - * *
      * Required. YARN autoscaling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearYarnConfig() { if (yarnConfigBuilder_ == null) { @@ -792,33 +700,24 @@ public Builder clearYarnConfig() { return this; } /** - * - * *
      * Required. YARN autoscaling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder getYarnConfigBuilder() { return getYarnConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. YARN autoscaling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder - getYarnConfigOrBuilder() { + public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder getYarnConfigOrBuilder() { if ((configCase_ == 1) && (yarnConfigBuilder_ != null)) { return yarnConfigBuilder_.getMessageOrBuilder(); } else { @@ -829,101 +728,72 @@ public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder getYarnCo } } /** - * - * *
      * Required. YARN autoscaling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig, - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder, - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder> + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig, com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder, com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder> getYarnConfigFieldBuilder() { if (yarnConfigBuilder_ == null) { if (!(configCase_ == 1)) { config_ = com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance(); } - yarnConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig, - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder, - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder>( + yarnConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig, com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder, com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder>( (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_, getParentForChildren(), isClean()); config_ = null; } configCase_ = 1; - onChanged(); - ; + onChanged();; return yarnConfigBuilder_; } private com.google.protobuf.Duration cooldownPeriod_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - cooldownPeriodBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> cooldownPeriodBuilder_; /** - * - * *
      * Optional. Duration between scaling events. A scaling period starts after
      * the update operation from the previous event has completed.
      * Bounds: [2m, 1d]. Default: 2m.
      * 
* - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the cooldownPeriod field is set. */ public boolean hasCooldownPeriod() { return cooldownPeriodBuilder_ != null || cooldownPeriod_ != null; } /** - * - * *
      * Optional. Duration between scaling events. A scaling period starts after
      * the update operation from the previous event has completed.
      * Bounds: [2m, 1d]. Default: 2m.
      * 
* - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The cooldownPeriod. */ public com.google.protobuf.Duration getCooldownPeriod() { if (cooldownPeriodBuilder_ == null) { - return cooldownPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : cooldownPeriod_; + return cooldownPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : cooldownPeriod_; } else { return cooldownPeriodBuilder_.getMessage(); } } /** - * - * *
      * Optional. Duration between scaling events. A scaling period starts after
      * the update operation from the previous event has completed.
      * Bounds: [2m, 1d]. Default: 2m.
      * 
* - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCooldownPeriod(com.google.protobuf.Duration value) { if (cooldownPeriodBuilder_ == null) { @@ -939,19 +809,16 @@ public Builder setCooldownPeriod(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. Duration between scaling events. A scaling period starts after
      * the update operation from the previous event has completed.
      * Bounds: [2m, 1d]. Default: 2m.
      * 
* - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setCooldownPeriod(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setCooldownPeriod( + com.google.protobuf.Duration.Builder builderForValue) { if (cooldownPeriodBuilder_ == null) { cooldownPeriod_ = builderForValue.build(); onChanged(); @@ -962,25 +829,19 @@ public Builder setCooldownPeriod(com.google.protobuf.Duration.Builder builderFor return this; } /** - * - * *
      * Optional. Duration between scaling events. A scaling period starts after
      * the update operation from the previous event has completed.
      * Bounds: [2m, 1d]. Default: 2m.
      * 
* - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeCooldownPeriod(com.google.protobuf.Duration value) { if (cooldownPeriodBuilder_ == null) { if (cooldownPeriod_ != null) { cooldownPeriod_ = - com.google.protobuf.Duration.newBuilder(cooldownPeriod_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(cooldownPeriod_).mergeFrom(value).buildPartial(); } else { cooldownPeriod_ = value; } @@ -992,17 +853,13 @@ public Builder mergeCooldownPeriod(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. Duration between scaling events. A scaling period starts after
      * the update operation from the previous event has completed.
      * Bounds: [2m, 1d]. Default: 2m.
      * 
* - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCooldownPeriod() { if (cooldownPeriodBuilder_ == null) { @@ -1016,77 +873,61 @@ public Builder clearCooldownPeriod() { return this; } /** - * - * *
      * Optional. Duration between scaling events. A scaling period starts after
      * the update operation from the previous event has completed.
      * Bounds: [2m, 1d]. Default: 2m.
      * 
* - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getCooldownPeriodBuilder() { - + onChanged(); return getCooldownPeriodFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Duration between scaling events. A scaling period starts after
      * the update operation from the previous event has completed.
      * Bounds: [2m, 1d]. Default: 2m.
      * 
* - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder() { if (cooldownPeriodBuilder_ != null) { return cooldownPeriodBuilder_.getMessageOrBuilder(); } else { - return cooldownPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : cooldownPeriod_; + return cooldownPeriod_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : cooldownPeriod_; } } /** - * - * *
      * Optional. Duration between scaling events. A scaling period starts after
      * the update operation from the previous event has completed.
      * Bounds: [2m, 1d]. Default: 2m.
      * 
* - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; */ 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> getCooldownPeriodFieldBuilder() { if (cooldownPeriodBuilder_ == null) { - cooldownPeriodBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getCooldownPeriod(), getParentForChildren(), isClean()); + cooldownPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getCooldownPeriod(), + getParentForChildren(), + isClean()); cooldownPeriod_ = null; } return cooldownPeriodBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1096,12 +937,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) private static final com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm(); } @@ -1110,27 +951,27 @@ public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BasicAutoscalingAlgorithm parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BasicAutoscalingAlgorithm parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1145,4 +986,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java similarity index 60% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java index 788c995b9b91..cd3f65138b4e 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java @@ -1,110 +1,69 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; -public interface BasicAutoscalingAlgorithmOrBuilder - extends +public interface BasicAutoscalingAlgorithmOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. YARN autoscaling configuration.
    * 
* - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the yarnConfig field is set. */ boolean hasYarnConfig(); /** - * - * *
    * Required. YARN autoscaling configuration.
    * 
* - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The yarnConfig. */ com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getYarnConfig(); /** - * - * *
    * Required. YARN autoscaling configuration.
    * 
* - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder getYarnConfigOrBuilder(); /** - * - * *
    * Optional. Duration between scaling events. A scaling period starts after
    * the update operation from the previous event has completed.
    * Bounds: [2m, 1d]. Default: 2m.
    * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the cooldownPeriod field is set. */ boolean hasCooldownPeriod(); /** - * - * *
    * Optional. Duration between scaling events. A scaling period starts after
    * the update operation from the previous event has completed.
    * Bounds: [2m, 1d]. Default: 2m.
    * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The cooldownPeriod. */ com.google.protobuf.Duration getCooldownPeriod(); /** - * - * *
    * Optional. Duration between scaling events. A scaling period starts after
    * the update operation from the previous event has completed.
    * Bounds: [2m, 1d]. Default: 2m.
    * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder(); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java similarity index 73% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java index 32a15e6292d9..5be394daf6c3 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java @@ -1,75 +1,55 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Basic autoscaling configurations for YARN.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.BasicYarnAutoscalingConfig} */ -public final class BasicYarnAutoscalingConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BasicYarnAutoscalingConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) BasicYarnAutoscalingConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BasicYarnAutoscalingConfig.newBuilder() to construct. private BasicYarnAutoscalingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BasicYarnAutoscalingConfig() {} + private BasicYarnAutoscalingConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BasicYarnAutoscalingConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.class, - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder.class); + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.class, com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder.class); } public static final int GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER = 5; private com.google.protobuf.Duration gracefulDecommissionTimeout_; /** - * - * *
    * Required. Timeout for YARN graceful decommissioning of Node Managers.
    * Specifies the duration to wait for jobs to complete before forcefully
@@ -78,10 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * Bounds: [0s, 1d].
    * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gracefulDecommissionTimeout field is set. */ @java.lang.Override @@ -89,8 +66,6 @@ public boolean hasGracefulDecommissionTimeout() { return gracefulDecommissionTimeout_ != null; } /** - * - * *
    * Required. Timeout for YARN graceful decommissioning of Node Managers.
    * Specifies the duration to wait for jobs to complete before forcefully
@@ -99,21 +74,14 @@ public boolean hasGracefulDecommissionTimeout() {
    * Bounds: [0s, 1d].
    * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The gracefulDecommissionTimeout. */ @java.lang.Override public com.google.protobuf.Duration getGracefulDecommissionTimeout() { - return gracefulDecommissionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : gracefulDecommissionTimeout_; + return gracefulDecommissionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : gracefulDecommissionTimeout_; } /** - * - * *
    * Required. Timeout for YARN graceful decommissioning of Node Managers.
    * Specifies the duration to wait for jobs to complete before forcefully
@@ -122,9 +90,7 @@ public com.google.protobuf.Duration getGracefulDecommissionTimeout() {
    * Bounds: [0s, 1d].
    * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { @@ -134,8 +100,6 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui public static final int SCALE_UP_FACTOR_FIELD_NUMBER = 1; private double scaleUpFactor_; /** - * - * *
    * Required. Fraction of average YARN pending memory in the last cooldown period
    * for which to add workers. A scale-up factor of 1.0 will result in scaling
@@ -149,7 +113,6 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui
    * 
* * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scaleUpFactor. */ @java.lang.Override @@ -160,8 +123,6 @@ public double getScaleUpFactor() { public static final int SCALE_DOWN_FACTOR_FIELD_NUMBER = 2; private double scaleDownFactor_; /** - * - * *
    * Required. Fraction of average YARN pending memory in the last cooldown period
    * for which to remove workers. A scale-down factor of 1 will result in
@@ -175,7 +136,6 @@ public double getScaleUpFactor() {
    * 
* * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scaleDownFactor. */ @java.lang.Override @@ -186,8 +146,6 @@ public double getScaleDownFactor() { public static final int SCALE_UP_MIN_WORKER_FRACTION_FIELD_NUMBER = 3; private double scaleUpMinWorkerFraction_; /** - * - * *
    * Optional. Minimum scale-up threshold as a fraction of total cluster size
    * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -198,7 +156,6 @@ public double getScaleDownFactor() {
    * 
* * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The scaleUpMinWorkerFraction. */ @java.lang.Override @@ -209,8 +166,6 @@ public double getScaleUpMinWorkerFraction() { public static final int SCALE_DOWN_MIN_WORKER_FRACTION_FIELD_NUMBER = 4; private double scaleDownMinWorkerFraction_; /** - * - * *
    * Optional. Minimum scale-down threshold as a fraction of total cluster size
    * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -220,9 +175,7 @@ public double getScaleUpMinWorkerFraction() {
    * Bounds: [0.0, 1.0]. Default: 0.0.
    * 
* - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The scaleDownMinWorkerFraction. */ @java.lang.Override @@ -231,7 +184,6 @@ public double getScaleDownMinWorkerFraction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,7 +195,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 (java.lang.Double.doubleToRawLongBits(scaleUpFactor_) != 0) { output.writeDouble(1, scaleUpFactor_); } @@ -269,22 +222,24 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(scaleUpFactor_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, scaleUpFactor_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, scaleUpFactor_); } if (java.lang.Double.doubleToRawLongBits(scaleDownFactor_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, scaleDownFactor_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, scaleDownFactor_); } if (java.lang.Double.doubleToRawLongBits(scaleUpMinWorkerFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, scaleUpMinWorkerFraction_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, scaleUpMinWorkerFraction_); } if (java.lang.Double.doubleToRawLongBits(scaleDownMinWorkerFraction_) != 0) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize(4, scaleDownMinWorkerFraction_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, scaleDownMinWorkerFraction_); } if (gracefulDecommissionTimeout_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, getGracefulDecommissionTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getGracefulDecommissionTimeout()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -294,27 +249,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig other = - (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) obj; + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig other = (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) obj; if (hasGracefulDecommissionTimeout() != other.hasGracefulDecommissionTimeout()) return false; if (hasGracefulDecommissionTimeout()) { - if (!getGracefulDecommissionTimeout().equals(other.getGracefulDecommissionTimeout())) - return false; + if (!getGracefulDecommissionTimeout() + .equals(other.getGracefulDecommissionTimeout())) return false; } if (java.lang.Double.doubleToLongBits(getScaleUpFactor()) - != java.lang.Double.doubleToLongBits(other.getScaleUpFactor())) return false; + != java.lang.Double.doubleToLongBits( + other.getScaleUpFactor())) return false; if (java.lang.Double.doubleToLongBits(getScaleDownFactor()) - != java.lang.Double.doubleToLongBits(other.getScaleDownFactor())) return false; + != java.lang.Double.doubleToLongBits( + other.getScaleDownFactor())) return false; if (java.lang.Double.doubleToLongBits(getScaleUpMinWorkerFraction()) - != java.lang.Double.doubleToLongBits(other.getScaleUpMinWorkerFraction())) return false; + != java.lang.Double.doubleToLongBits( + other.getScaleUpMinWorkerFraction())) return false; if (java.lang.Double.doubleToLongBits(getScaleDownMinWorkerFraction()) - != java.lang.Double.doubleToLongBits(other.getScaleDownMinWorkerFraction())) return false; + != java.lang.Double.doubleToLongBits( + other.getScaleDownMinWorkerFraction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -331,161 +289,146 @@ public int hashCode() { hash = (53 * hash) + getGracefulDecommissionTimeout().hashCode(); } hash = (37 * hash) + SCALE_UP_FACTOR_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getScaleUpFactor())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScaleUpFactor())); hash = (37 * hash) + SCALE_DOWN_FACTOR_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getScaleDownFactor())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScaleDownFactor())); hash = (37 * hash) + SCALE_UP_MIN_WORKER_FRACTION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getScaleUpMinWorkerFraction())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScaleUpMinWorkerFraction())); hash = (37 * hash) + SCALE_DOWN_MIN_WORKER_FRACTION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getScaleDownMinWorkerFraction())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScaleDownMinWorkerFraction())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig 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.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Basic autoscaling configurations for YARN.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.BasicYarnAutoscalingConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.class, - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder.class); + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.class, com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -507,9 +450,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; } @java.lang.Override @@ -528,8 +471,7 @@ public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig buildPartial() { - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig result = - new com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig(this); + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig result = new com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig(this); if (gracefulDecommissionTimeoutBuilder_ == null) { result.gracefulDecommissionTimeout_ = gracefulDecommissionTimeout_; } else { @@ -547,39 +489,38 @@ public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig)other); } else { super.mergeFrom(other); return this; @@ -587,8 +528,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig other) { - if (other == com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance()) return this; if (other.hasGracefulDecommissionTimeout()) { mergeGracefulDecommissionTimeout(other.getGracefulDecommissionTimeout()); } @@ -630,44 +570,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 9: - { - scaleUpFactor_ = input.readDouble(); + case 9: { + scaleUpFactor_ = input.readDouble(); - break; - } // case 9 - case 17: - { - scaleDownFactor_ = input.readDouble(); + break; + } // case 9 + case 17: { + scaleDownFactor_ = input.readDouble(); - break; - } // case 17 - case 25: - { - scaleUpMinWorkerFraction_ = input.readDouble(); + break; + } // case 17 + case 25: { + scaleUpMinWorkerFraction_ = input.readDouble(); - break; - } // case 25 - case 33: - { - scaleDownMinWorkerFraction_ = input.readDouble(); + break; + } // case 25 + case 33: { + scaleDownMinWorkerFraction_ = input.readDouble(); - break; - } // case 33 - case 42: - { - input.readMessage( - getGracefulDecommissionTimeoutFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 33 + case 42: { + input.readMessage( + getGracefulDecommissionTimeoutFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -680,13 +615,8 @@ public Builder mergeFrom( private com.google.protobuf.Duration gracefulDecommissionTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - gracefulDecommissionTimeoutBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> gracefulDecommissionTimeoutBuilder_; /** - * - * *
      * Required. Timeout for YARN graceful decommissioning of Node Managers.
      * Specifies the duration to wait for jobs to complete before forcefully
@@ -695,18 +625,13 @@ public Builder mergeFrom(
      * Bounds: [0s, 1d].
      * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gracefulDecommissionTimeout field is set. */ public boolean hasGracefulDecommissionTimeout() { return gracefulDecommissionTimeoutBuilder_ != null || gracefulDecommissionTimeout_ != null; } /** - * - * *
      * Required. Timeout for YARN graceful decommissioning of Node Managers.
      * Specifies the duration to wait for jobs to complete before forcefully
@@ -715,24 +640,17 @@ public boolean hasGracefulDecommissionTimeout() {
      * Bounds: [0s, 1d].
      * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The gracefulDecommissionTimeout. */ public com.google.protobuf.Duration getGracefulDecommissionTimeout() { if (gracefulDecommissionTimeoutBuilder_ == null) { - return gracefulDecommissionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : gracefulDecommissionTimeout_; + return gracefulDecommissionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : gracefulDecommissionTimeout_; } else { return gracefulDecommissionTimeoutBuilder_.getMessage(); } } /** - * - * *
      * Required. Timeout for YARN graceful decommissioning of Node Managers.
      * Specifies the duration to wait for jobs to complete before forcefully
@@ -741,9 +659,7 @@ public com.google.protobuf.Duration getGracefulDecommissionTimeout() {
      * Bounds: [0s, 1d].
      * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value) { if (gracefulDecommissionTimeoutBuilder_ == null) { @@ -759,8 +675,6 @@ public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value return this; } /** - * - * *
      * Required. Timeout for YARN graceful decommissioning of Node Managers.
      * Specifies the duration to wait for jobs to complete before forcefully
@@ -769,9 +683,7 @@ public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value
      * Bounds: [0s, 1d].
      * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGracefulDecommissionTimeout( com.google.protobuf.Duration.Builder builderForValue) { @@ -785,8 +697,6 @@ public Builder setGracefulDecommissionTimeout( return this; } /** - * - * *
      * Required. Timeout for YARN graceful decommissioning of Node Managers.
      * Specifies the duration to wait for jobs to complete before forcefully
@@ -795,17 +705,13 @@ public Builder setGracefulDecommissionTimeout(
      * Bounds: [0s, 1d].
      * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration value) { if (gracefulDecommissionTimeoutBuilder_ == null) { if (gracefulDecommissionTimeout_ != null) { gracefulDecommissionTimeout_ = - com.google.protobuf.Duration.newBuilder(gracefulDecommissionTimeout_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(gracefulDecommissionTimeout_).mergeFrom(value).buildPartial(); } else { gracefulDecommissionTimeout_ = value; } @@ -817,8 +723,6 @@ public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration val return this; } /** - * - * *
      * Required. Timeout for YARN graceful decommissioning of Node Managers.
      * Specifies the duration to wait for jobs to complete before forcefully
@@ -827,9 +731,7 @@ public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration val
      * Bounds: [0s, 1d].
      * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearGracefulDecommissionTimeout() { if (gracefulDecommissionTimeoutBuilder_ == null) { @@ -843,8 +745,6 @@ public Builder clearGracefulDecommissionTimeout() { return this; } /** - * - * *
      * Required. Timeout for YARN graceful decommissioning of Node Managers.
      * Specifies the duration to wait for jobs to complete before forcefully
@@ -853,18 +753,14 @@ public Builder clearGracefulDecommissionTimeout() {
      * Bounds: [0s, 1d].
      * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Duration.Builder getGracefulDecommissionTimeoutBuilder() { - + onChanged(); return getGracefulDecommissionTimeoutFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Timeout for YARN graceful decommissioning of Node Managers.
      * Specifies the duration to wait for jobs to complete before forcefully
@@ -873,22 +769,17 @@ public com.google.protobuf.Duration.Builder getGracefulDecommissionTimeoutBuilde
      * Bounds: [0s, 1d].
      * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { if (gracefulDecommissionTimeoutBuilder_ != null) { return gracefulDecommissionTimeoutBuilder_.getMessageOrBuilder(); } else { - return gracefulDecommissionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : gracefulDecommissionTimeout_; + return gracefulDecommissionTimeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : gracefulDecommissionTimeout_; } } /** - * - * *
      * Required. Timeout for YARN graceful decommissioning of Node Managers.
      * Specifies the duration to wait for jobs to complete before forcefully
@@ -897,31 +788,24 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui
      * Bounds: [0s, 1d].
      * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; */ 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> getGracefulDecommissionTimeoutFieldBuilder() { if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getGracefulDecommissionTimeout(), getParentForChildren(), isClean()); + gracefulDecommissionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getGracefulDecommissionTimeout(), + getParentForChildren(), + isClean()); gracefulDecommissionTimeout_ = null; } return gracefulDecommissionTimeoutBuilder_; } - private double scaleUpFactor_; + private double scaleUpFactor_ ; /** - * - * *
      * Required. Fraction of average YARN pending memory in the last cooldown period
      * for which to add workers. A scale-up factor of 1.0 will result in scaling
@@ -935,7 +819,6 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui
      * 
* * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scaleUpFactor. */ @java.lang.Override @@ -943,8 +826,6 @@ public double getScaleUpFactor() { return scaleUpFactor_; } /** - * - * *
      * Required. Fraction of average YARN pending memory in the last cooldown period
      * for which to add workers. A scale-up factor of 1.0 will result in scaling
@@ -958,19 +839,16 @@ public double getScaleUpFactor() {
      * 
* * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The scaleUpFactor to set. * @return This builder for chaining. */ public Builder setScaleUpFactor(double value) { - + scaleUpFactor_ = value; onChanged(); return this; } /** - * - * *
      * Required. Fraction of average YARN pending memory in the last cooldown period
      * for which to add workers. A scale-up factor of 1.0 will result in scaling
@@ -984,20 +862,17 @@ public Builder setScaleUpFactor(double value) {
      * 
* * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearScaleUpFactor() { - + scaleUpFactor_ = 0D; onChanged(); return this; } - private double scaleDownFactor_; + private double scaleDownFactor_ ; /** - * - * *
      * Required. Fraction of average YARN pending memory in the last cooldown period
      * for which to remove workers. A scale-down factor of 1 will result in
@@ -1011,7 +886,6 @@ public Builder clearScaleUpFactor() {
      * 
* * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scaleDownFactor. */ @java.lang.Override @@ -1019,8 +893,6 @@ public double getScaleDownFactor() { return scaleDownFactor_; } /** - * - * *
      * Required. Fraction of average YARN pending memory in the last cooldown period
      * for which to remove workers. A scale-down factor of 1 will result in
@@ -1034,19 +906,16 @@ public double getScaleDownFactor() {
      * 
* * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The scaleDownFactor to set. * @return This builder for chaining. */ public Builder setScaleDownFactor(double value) { - + scaleDownFactor_ = value; onChanged(); return this; } /** - * - * *
      * Required. Fraction of average YARN pending memory in the last cooldown period
      * for which to remove workers. A scale-down factor of 1 will result in
@@ -1060,20 +929,17 @@ public Builder setScaleDownFactor(double value) {
      * 
* * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearScaleDownFactor() { - + scaleDownFactor_ = 0D; onChanged(); return this; } - private double scaleUpMinWorkerFraction_; + private double scaleUpMinWorkerFraction_ ; /** - * - * *
      * Optional. Minimum scale-up threshold as a fraction of total cluster size
      * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -1083,9 +949,7 @@ public Builder clearScaleDownFactor() {
      * Bounds: [0.0, 1.0]. Default: 0.0.
      * 
* - * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The scaleUpMinWorkerFraction. */ @java.lang.Override @@ -1093,8 +957,6 @@ public double getScaleUpMinWorkerFraction() { return scaleUpMinWorkerFraction_; } /** - * - * *
      * Optional. Minimum scale-up threshold as a fraction of total cluster size
      * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -1104,21 +966,17 @@ public double getScaleUpMinWorkerFraction() {
      * Bounds: [0.0, 1.0]. Default: 0.0.
      * 
* - * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The scaleUpMinWorkerFraction to set. * @return This builder for chaining. */ public Builder setScaleUpMinWorkerFraction(double value) { - + scaleUpMinWorkerFraction_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Minimum scale-up threshold as a fraction of total cluster size
      * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -1128,22 +986,18 @@ public Builder setScaleUpMinWorkerFraction(double value) {
      * Bounds: [0.0, 1.0]. Default: 0.0.
      * 
* - * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearScaleUpMinWorkerFraction() { - + scaleUpMinWorkerFraction_ = 0D; onChanged(); return this; } - private double scaleDownMinWorkerFraction_; + private double scaleDownMinWorkerFraction_ ; /** - * - * *
      * Optional. Minimum scale-down threshold as a fraction of total cluster size
      * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -1153,9 +1007,7 @@ public Builder clearScaleUpMinWorkerFraction() {
      * Bounds: [0.0, 1.0]. Default: 0.0.
      * 
* - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The scaleDownMinWorkerFraction. */ @java.lang.Override @@ -1163,8 +1015,6 @@ public double getScaleDownMinWorkerFraction() { return scaleDownMinWorkerFraction_; } /** - * - * *
      * Optional. Minimum scale-down threshold as a fraction of total cluster size
      * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -1174,21 +1024,17 @@ public double getScaleDownMinWorkerFraction() {
      * Bounds: [0.0, 1.0]. Default: 0.0.
      * 
* - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The scaleDownMinWorkerFraction to set. * @return This builder for chaining. */ public Builder setScaleDownMinWorkerFraction(double value) { - + scaleDownMinWorkerFraction_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Minimum scale-down threshold as a fraction of total cluster size
      * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -1198,20 +1044,18 @@ public Builder setScaleDownMinWorkerFraction(double value) {
      * Bounds: [0.0, 1.0]. Default: 0.0.
      * 
* - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearScaleDownMinWorkerFraction() { - + scaleDownMinWorkerFraction_ = 0D; 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); } @@ -1221,12 +1065,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) private static final com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig(); } @@ -1235,27 +1079,27 @@ public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BasicYarnAutoscalingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BasicYarnAutoscalingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1270,4 +1114,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.java similarity index 78% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.java index 142f7b304236..e07d3c216f6b 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.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/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; -public interface BasicYarnAutoscalingConfigOrBuilder - extends +public interface BasicYarnAutoscalingConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Timeout for YARN graceful decommissioning of Node Managers.
    * Specifies the duration to wait for jobs to complete before forcefully
@@ -34,16 +16,11 @@ public interface BasicYarnAutoscalingConfigOrBuilder
    * Bounds: [0s, 1d].
    * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gracefulDecommissionTimeout field is set. */ boolean hasGracefulDecommissionTimeout(); /** - * - * *
    * Required. Timeout for YARN graceful decommissioning of Node Managers.
    * Specifies the duration to wait for jobs to complete before forcefully
@@ -52,16 +29,11 @@ public interface BasicYarnAutoscalingConfigOrBuilder
    * Bounds: [0s, 1d].
    * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The gracefulDecommissionTimeout. */ com.google.protobuf.Duration getGracefulDecommissionTimeout(); /** - * - * *
    * Required. Timeout for YARN graceful decommissioning of Node Managers.
    * Specifies the duration to wait for jobs to complete before forcefully
@@ -70,15 +42,11 @@ public interface BasicYarnAutoscalingConfigOrBuilder
    * Bounds: [0s, 1d].
    * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder(); /** - * - * *
    * Required. Fraction of average YARN pending memory in the last cooldown period
    * for which to add workers. A scale-up factor of 1.0 will result in scaling
@@ -92,14 +60,11 @@ public interface BasicYarnAutoscalingConfigOrBuilder
    * 
* * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scaleUpFactor. */ double getScaleUpFactor(); /** - * - * *
    * Required. Fraction of average YARN pending memory in the last cooldown period
    * for which to remove workers. A scale-down factor of 1 will result in
@@ -113,14 +78,11 @@ public interface BasicYarnAutoscalingConfigOrBuilder
    * 
* * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scaleDownFactor. */ double getScaleDownFactor(); /** - * - * *
    * Optional. Minimum scale-up threshold as a fraction of total cluster size
    * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -131,14 +93,11 @@ public interface BasicYarnAutoscalingConfigOrBuilder
    * 
* * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The scaleUpMinWorkerFraction. */ double getScaleUpMinWorkerFraction(); /** - * - * *
    * Optional. Minimum scale-down threshold as a fraction of total cluster size
    * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -148,9 +107,7 @@ public interface BasicYarnAutoscalingConfigOrBuilder
    * Bounds: [0.0, 1.0]. Default: 0.0.
    * 
* - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The scaleDownMinWorkerFraction. */ double getScaleDownMinWorkerFraction(); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java index 64d781765ad3..e5989b395204 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.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/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A representation of a batch workload in the service.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.Batch} */ -public final class Batch extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Batch extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.Batch) BatchOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Batch.newBuilder() to construct. private Batch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Batch() { name_ = ""; uuid_ = ""; @@ -49,54 +31,51 @@ private Batch() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Batch(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_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 13: 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.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.Batch.class, - com.google.cloud.dataproc.v1.Batch.Builder.class); + com.google.cloud.dataproc.v1.Batch.class, com.google.cloud.dataproc.v1.Batch.Builder.class); } /** - * - * *
    * The batch state.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.Batch.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The batch state is unknown.
      * 
@@ -105,8 +84,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The batch is created before running.
      * 
@@ -115,8 +92,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PENDING(1), /** - * - * *
      * The batch is running.
      * 
@@ -125,8 +100,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(2), /** - * - * *
      * The batch is cancelling.
      * 
@@ -135,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CANCELLING(3), /** - * - * *
      * The batch cancellation was successful.
      * 
@@ -145,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CANCELLED(4), /** - * - * *
      * The batch completed successfully.
      * 
@@ -155,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(5), /** - * - * *
      * The batch is no longer running due to an error.
      * 
@@ -168,8 +135,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The batch state is unknown.
      * 
@@ -178,8 +143,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The batch is created before running.
      * 
@@ -188,8 +151,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PENDING_VALUE = 1; /** - * - * *
      * The batch is running.
      * 
@@ -198,8 +159,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 2; /** - * - * *
      * The batch is cancelling.
      * 
@@ -208,8 +167,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLING_VALUE = 3; /** - * - * *
      * The batch cancellation was successful.
      * 
@@ -218,8 +175,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 4; /** - * - * *
      * The batch completed successfully.
      * 
@@ -228,8 +183,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 5; /** - * - * *
      * The batch is no longer running due to an error.
      * 
@@ -238,6 +191,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -262,57 +216,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return PENDING; - case 2: - return RUNNING; - case 3: - return CANCELLING; - case 4: - return CANCELLED; - case 5: - return SUCCEEDED; - case 6: - return FAILED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return PENDING; + case 2: return RUNNING; + case 3: return CANCELLING; + case 4: return CANCELLED; + case 5: return SUCCEEDED; + case 6: return FAILED; + 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.dataproc.v1.Batch.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -329,125 +279,92 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.Batch.State) } - public interface StateHistoryOrBuilder - extends + public interface StateHistoryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.Batch.StateHistory) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Output only. The state of the batch at this point in history.
      * 
* - * - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
      * Output only. The state of the batch at this point in history.
      * 
* - * - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.dataproc.v1.Batch.State getState(); /** - * - * *
      * Output only. Details about the state at this point in history.
      * 
* * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateMessage. */ java.lang.String getStateMessage(); /** - * - * *
      * Output only. Details about the state at this point in history.
      * 
* * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stateMessage. */ - com.google.protobuf.ByteString getStateMessageBytes(); + com.google.protobuf.ByteString + getStateMessageBytes(); /** - * - * *
      * Output only. The time when the batch entered the historical state.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateStartTime field is set. */ boolean hasStateStartTime(); /** - * - * *
      * Output only. The time when the batch entered the historical state.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateStartTime. */ com.google.protobuf.Timestamp getStateStartTime(); /** - * - * *
      * Output only. The time when the batch entered the historical state.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder(); } /** - * - * *
    * Historical state information.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.Batch.StateHistory} */ - public static final class StateHistory extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class StateHistory extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.Batch.StateHistory) StateHistoryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StateHistory.newBuilder() to construct. private StateHistory(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StateHistory() { state_ = 0; stateMessage_ = ""; @@ -455,81 +372,64 @@ private StateHistory() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StateHistory(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.Batch.StateHistory.class, - com.google.cloud.dataproc.v1.Batch.StateHistory.Builder.class); + com.google.cloud.dataproc.v1.Batch.StateHistory.class, com.google.cloud.dataproc.v1.Batch.StateHistory.Builder.class); } public static final int STATE_FIELD_NUMBER = 1; private int state_; /** - * - * *
      * Output only. The state of the batch at this point in history.
      * 
* - * - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The state of the batch at this point in history.
      * 
* - * - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.dataproc.v1.Batch.State getState() { + @java.lang.Override public com.google.cloud.dataproc.v1.Batch.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.Batch.State result = - com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); + com.google.cloud.dataproc.v1.Batch.State result = com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); return result == null ? com.google.cloud.dataproc.v1.Batch.State.UNRECOGNIZED : result; } public static final int STATE_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object stateMessage_; /** - * - * *
      * Output only. Details about the state at this point in history.
      * 
* * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateMessage. */ @java.lang.Override @@ -538,29 +438,29 @@ public java.lang.String getStateMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; } } /** - * - * *
      * Output only. Details about the state at this point in history.
      * 
* * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stateMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStateMessageBytes() { + public com.google.protobuf.ByteString + getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -571,16 +471,11 @@ public com.google.protobuf.ByteString getStateMessageBytes() { public static final int STATE_START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp stateStartTime_; /** - * - * *
      * Output only. The time when the batch entered the historical state.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateStartTime field is set. */ @java.lang.Override @@ -588,34 +483,23 @@ public boolean hasStateStartTime() { return stateStartTime_ != null; } /** - * - * *
      * Output only. The time when the batch entered the historical state.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStateStartTime() { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; + return stateStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; } /** - * - * *
      * Output only. The time when the batch entered the historical state.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { @@ -623,7 +507,6 @@ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -635,7 +518,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 (state_ != com.google.cloud.dataproc.v1.Batch.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } @@ -655,13 +539,15 @@ public int getSerializedSize() { size = 0; if (state_ != com.google.cloud.dataproc.v1.Batch.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stateMessage_); } if (stateStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStateStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStateStartTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -671,19 +557,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.Batch.StateHistory)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.Batch.StateHistory other = - (com.google.cloud.dataproc.v1.Batch.StateHistory) obj; + com.google.cloud.dataproc.v1.Batch.StateHistory other = (com.google.cloud.dataproc.v1.Batch.StateHistory) obj; if (state_ != other.state_) return false; - if (!getStateMessage().equals(other.getStateMessage())) return false; + if (!getStateMessage() + .equals(other.getStateMessage())) return false; if (hasStateStartTime() != other.hasStateStartTime()) return false; if (hasStateStartTime()) { - if (!getStateStartTime().equals(other.getStateStartTime())) return false; + if (!getStateStartTime() + .equals(other.getStateStartTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -710,93 +597,87 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.Batch.StateHistory 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.dataproc.v1.Batch.StateHistory parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.Batch.StateHistory prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -806,41 +687,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Historical state information.
      * 
* * Protobuf type {@code google.cloud.dataproc.v1.Batch.StateHistory} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.Batch.StateHistory) com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.Batch.StateHistory.class, - com.google.cloud.dataproc.v1.Batch.StateHistory.Builder.class); + com.google.cloud.dataproc.v1.Batch.StateHistory.class, com.google.cloud.dataproc.v1.Batch.StateHistory.Builder.class); } // Construct using com.google.cloud.dataproc.v1.Batch.StateHistory.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -858,9 +737,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; } @java.lang.Override @@ -879,8 +758,7 @@ public com.google.cloud.dataproc.v1.Batch.StateHistory build() { @java.lang.Override public com.google.cloud.dataproc.v1.Batch.StateHistory buildPartial() { - com.google.cloud.dataproc.v1.Batch.StateHistory result = - new com.google.cloud.dataproc.v1.Batch.StateHistory(this); + com.google.cloud.dataproc.v1.Batch.StateHistory result = new com.google.cloud.dataproc.v1.Batch.StateHistory(this); result.state_ = state_; result.stateMessage_ = stateMessage_; if (stateStartTimeBuilder_ == null) { @@ -896,41 +774,38 @@ public com.google.cloud.dataproc.v1.Batch.StateHistory buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.dataproc.v1.Batch.StateHistory) { - return mergeFrom((com.google.cloud.dataproc.v1.Batch.StateHistory) other); + return mergeFrom((com.google.cloud.dataproc.v1.Batch.StateHistory)other); } else { super.mergeFrom(other); return this; @@ -938,8 +813,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.Batch.StateHistory other) { - if (other == com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -976,32 +850,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - state_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - stateMessage_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage( - getStateStartTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + state_ = input.readEnum(); + + break; + } // case 8 + case 18: { + stateMessage_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getStateStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1014,73 +885,51 @@ public Builder mergeFrom( private int state_ = 0; /** - * - * *
        * Output only. The state of the batch at this point in history.
        * 
* - * - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
        * Output only. The state of the batch at this point in history.
        * 
* - * - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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; } /** - * - * *
        * Output only. The state of the batch at this point in history.
        * 
* - * - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.dataproc.v1.Batch.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.Batch.State result = - com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); + com.google.cloud.dataproc.v1.Batch.State result = com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); return result == null ? com.google.cloud.dataproc.v1.Batch.State.UNRECOGNIZED : result; } /** - * - * *
        * Output only. The state of the batch at this point in history.
        * 
* - * - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -1088,26 +937,21 @@ public Builder setState(com.google.cloud.dataproc.v1.Batch.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Output only. The state of the batch at this point in history.
        * 
* - * - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1115,20 +959,18 @@ public Builder clearState() { private java.lang.Object stateMessage_ = ""; /** - * - * *
        * Output only. Details about the state at this point in history.
        * 
* * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateMessage. */ public java.lang.String getStateMessage() { java.lang.Object ref = stateMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; @@ -1137,21 +979,20 @@ public java.lang.String getStateMessage() { } } /** - * - * *
        * Output only. Details about the state at this point in history.
        * 
* * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stateMessage. */ - public com.google.protobuf.ByteString getStateMessageBytes() { + public com.google.protobuf.ByteString + getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -1159,61 +1000,54 @@ public com.google.protobuf.ByteString getStateMessageBytes() { } } /** - * - * *
        * Output only. Details about the state at this point in history.
        * 
* * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessage(java.lang.String value) { + public Builder setStateMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stateMessage_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Details about the state at this point in history.
        * 
* * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStateMessage() { - + stateMessage_ = getDefaultInstance().getStateMessage(); onChanged(); return this; } /** - * - * *
        * Output only. Details about the state at this point in history.
        * 
* * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { + public Builder setStateMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateMessage_ = value; onChanged(); return this; @@ -1221,58 +1055,39 @@ public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp stateStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - stateStartTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> stateStartTimeBuilder_; /** - * - * *
        * Output only. The time when the batch entered the historical state.
        * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateStartTime field is set. */ public boolean hasStateStartTime() { return stateStartTimeBuilder_ != null || stateStartTime_ != null; } /** - * - * *
        * Output only. The time when the batch entered the historical state.
        * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateStartTime. */ public com.google.protobuf.Timestamp getStateStartTime() { if (stateStartTimeBuilder_ == null) { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; + return stateStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; } else { return stateStartTimeBuilder_.getMessage(); } } /** - * - * *
        * Output only. The time when the batch entered the historical state.
        * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStateStartTime(com.google.protobuf.Timestamp value) { if (stateStartTimeBuilder_ == null) { @@ -1288,17 +1103,14 @@ public Builder setStateStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Output only. The time when the batch entered the historical state.
        * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStateStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (stateStartTimeBuilder_ == null) { stateStartTime_ = builderForValue.build(); onChanged(); @@ -1309,23 +1121,17 @@ public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
        * Output only. The time when the batch entered the historical state.
        * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { if (stateStartTimeBuilder_ == null) { if (stateStartTime_ != null) { stateStartTime_ = - com.google.protobuf.Timestamp.newBuilder(stateStartTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(stateStartTime_).mergeFrom(value).buildPartial(); } else { stateStartTime_ = value; } @@ -1337,15 +1143,11 @@ public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Output only. The time when the batch entered the historical state.
        * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStateStartTime() { if (stateStartTimeBuilder_ == null) { @@ -1359,69 +1161,52 @@ public Builder clearStateStartTime() { return this; } /** - * - * *
        * Output only. The time when the batch entered the historical state.
        * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStateStartTimeBuilder() { - + onChanged(); return getStateStartTimeFieldBuilder().getBuilder(); } /** - * - * *
        * Output only. The time when the batch entered the historical state.
        * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { if (stateStartTimeBuilder_ != null) { return stateStartTimeBuilder_.getMessageOrBuilder(); } else { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; + return stateStartTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; } } /** - * - * *
        * Output only. The time when the batch entered the historical state.
        * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 3 [(.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> getStateStartTimeFieldBuilder() { if (stateStartTimeBuilder_ == null) { - stateStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStateStartTime(), getParentForChildren(), isClean()); + stateStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStateStartTime(), + getParentForChildren(), + isClean()); stateStartTime_ = null; } return stateStartTimeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1434,12 +1219,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.Batch.StateHistory) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Batch.StateHistory) private static final com.google.cloud.dataproc.v1.Batch.StateHistory DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.Batch.StateHistory(); } @@ -1448,28 +1233,27 @@ public static com.google.cloud.dataproc.v1.Batch.StateHistory getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StateHistory parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateHistory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1484,14 +1268,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.Batch.StateHistory getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int batchConfigCase_ = 0; private java.lang.Object batchConfig_; - public enum BatchConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PYSPARK_BATCH(4), SPARK_BATCH(5), @@ -1499,7 +1282,6 @@ public enum BatchConfigCase SPARK_SQL_BATCH(7), BATCHCONFIG_NOT_SET(0); private final int value; - private BatchConfigCase(int value) { this.value = value; } @@ -1515,41 +1297,33 @@ public static BatchConfigCase valueOf(int value) { public static BatchConfigCase forNumber(int value) { switch (value) { - case 4: - return PYSPARK_BATCH; - case 5: - return SPARK_BATCH; - case 6: - return SPARK_R_BATCH; - case 7: - return SPARK_SQL_BATCH; - case 0: - return BATCHCONFIG_NOT_SET; - default: - return null; + case 4: return PYSPARK_BATCH; + case 5: return SPARK_BATCH; + case 6: return SPARK_R_BATCH; + case 7: return SPARK_SQL_BATCH; + case 0: return BATCHCONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public BatchConfigCase getBatchConfigCase() { - return BatchConfigCase.forNumber(batchConfigCase_); + public BatchConfigCase + getBatchConfigCase() { + return BatchConfigCase.forNumber( + batchConfigCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the batch.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1558,29 +1332,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the batch.
    * 
* * 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 { @@ -1591,15 +1365,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int UUID_FIELD_NUMBER = 2; private volatile java.lang.Object uuid_; /** - * - * *
    * Output only. A batch UUID (Unique Universal Identifier). The service
    * generates this value when it creates the batch.
    * 
* * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uuid. */ @java.lang.Override @@ -1608,30 +1379,30 @@ public java.lang.String getUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uuid_ = s; return s; } } /** - * - * *
    * Output only. A batch UUID (Unique Universal Identifier). The service
    * generates this value when it creates the batch.
    * 
* * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uuid. */ @java.lang.Override - public com.google.protobuf.ByteString getUuidBytes() { + public com.google.protobuf.ByteString + getUuidBytes() { java.lang.Object ref = uuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uuid_ = b; return b; } else { @@ -1642,15 +1413,11 @@ public com.google.protobuf.ByteString getUuidBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the batch was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1658,15 +1425,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the batch was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1674,14 +1437,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the batch was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1690,16 +1450,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int PYSPARK_BATCH_FIELD_NUMBER = 4; /** - * - * *
    * Optional. PySpark batch config.
    * 
* - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pysparkBatch field is set. */ @java.lang.Override @@ -1707,56 +1462,42 @@ public boolean hasPysparkBatch() { return batchConfigCase_ == 4; } /** - * - * *
    * Optional. PySpark batch config.
    * 
* - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The pysparkBatch. */ @java.lang.Override public com.google.cloud.dataproc.v1.PySparkBatch getPysparkBatch() { if (batchConfigCase_ == 4) { - return (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_; + return (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_; } return com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); } /** - * - * *
    * Optional. PySpark batch config.
    * 
* - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.PySparkBatchOrBuilder getPysparkBatchOrBuilder() { if (batchConfigCase_ == 4) { - return (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_; + return (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_; } return com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); } public static final int SPARK_BATCH_FIELD_NUMBER = 5; /** - * - * *
    * Optional. Spark batch config.
    * 
* - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkBatch field is set. */ @java.lang.Override @@ -1764,56 +1505,42 @@ public boolean hasSparkBatch() { return batchConfigCase_ == 5; } /** - * - * *
    * Optional. Spark batch config.
    * 
* - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkBatch. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkBatch getSparkBatch() { if (batchConfigCase_ == 5) { - return (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_; + return (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_; } return com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); } /** - * - * *
    * Optional. Spark batch config.
    * 
* - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkBatchOrBuilder getSparkBatchOrBuilder() { if (batchConfigCase_ == 5) { - return (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_; + return (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_; } return com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); } public static final int SPARK_R_BATCH_FIELD_NUMBER = 6; /** - * - * *
    * Optional. SparkR batch config.
    * 
* - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkRBatch field is set. */ @java.lang.Override @@ -1821,56 +1548,42 @@ public boolean hasSparkRBatch() { return batchConfigCase_ == 6; } /** - * - * *
    * Optional. SparkR batch config.
    * 
* - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkRBatch. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkRBatch getSparkRBatch() { if (batchConfigCase_ == 6) { - return (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_; + return (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_; } return com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); } /** - * - * *
    * Optional. SparkR batch config.
    * 
* - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkRBatchOrBuilder getSparkRBatchOrBuilder() { if (batchConfigCase_ == 6) { - return (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_; + return (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_; } return com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); } public static final int SPARK_SQL_BATCH_FIELD_NUMBER = 7; /** - * - * *
    * Optional. SparkSql batch config.
    * 
* - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkSqlBatch field is set. */ @java.lang.Override @@ -1878,40 +1591,31 @@ public boolean hasSparkSqlBatch() { return batchConfigCase_ == 7; } /** - * - * *
    * Optional. SparkSql batch config.
    * 
* - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkSqlBatch. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlBatch getSparkSqlBatch() { if (batchConfigCase_ == 7) { - return (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_; + return (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_; } return com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); } /** - * - * *
    * Optional. SparkSql batch config.
    * 
* - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder getSparkSqlBatchOrBuilder() { if (batchConfigCase_ == 7) { - return (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_; + return (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_; } return com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); } @@ -1919,16 +1623,11 @@ public com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder getSparkSqlBatchOrBui public static final int RUNTIME_INFO_FIELD_NUMBER = 8; private com.google.cloud.dataproc.v1.RuntimeInfo runtimeInfo_; /** - * - * *
    * Output only. Runtime information about batch execution.
    * 
* - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the runtimeInfo field is set. */ @java.lang.Override @@ -1936,34 +1635,23 @@ public boolean hasRuntimeInfo() { return runtimeInfo_ != null; } /** - * - * *
    * Output only. Runtime information about batch execution.
    * 
* - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The runtimeInfo. */ @java.lang.Override public com.google.cloud.dataproc.v1.RuntimeInfo getRuntimeInfo() { - return runtimeInfo_ == null - ? com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance() - : runtimeInfo_; + return runtimeInfo_ == null ? com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance() : runtimeInfo_; } /** - * - * *
    * Output only. Runtime information about batch execution.
    * 
* - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder getRuntimeInfoOrBuilder() { @@ -1973,55 +1661,39 @@ public com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder getRuntimeInfoOrBuilder public static final int STATE_FIELD_NUMBER = 9; private int state_; /** - * - * *
    * Output only. The state of the batch.
    * 
* - * - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The state of the batch.
    * 
* - * - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.dataproc.v1.Batch.State getState() { + @java.lang.Override public com.google.cloud.dataproc.v1.Batch.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.Batch.State result = - com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); + com.google.cloud.dataproc.v1.Batch.State result = com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); return result == null ? com.google.cloud.dataproc.v1.Batch.State.UNRECOGNIZED : result; } public static final int STATE_MESSAGE_FIELD_NUMBER = 10; private volatile java.lang.Object stateMessage_; /** - * - * *
    * Output only. Batch state details, such as a failure
    * description if the state is `FAILED`.
    * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateMessage. */ @java.lang.Override @@ -2030,30 +1702,30 @@ public java.lang.String getStateMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; } } /** - * - * *
    * Output only. Batch state details, such as a failure
    * description if the state is `FAILED`.
    * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stateMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStateMessageBytes() { + public com.google.protobuf.ByteString + getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -2064,15 +1736,11 @@ public com.google.protobuf.ByteString getStateMessageBytes() { public static final int STATE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp stateTime_; /** - * - * *
    * Output only. The time when the batch entered a current state.
    * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateTime field is set. */ @java.lang.Override @@ -2080,15 +1748,11 @@ public boolean hasStateTime() { return stateTime_ != null; } /** - * - * *
    * Output only. The time when the batch entered a current state.
    * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateTime. */ @java.lang.Override @@ -2096,14 +1760,11 @@ public com.google.protobuf.Timestamp getStateTime() { return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_; } /** - * - * *
    * Output only. The time when the batch entered a current state.
    * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { @@ -2113,14 +1774,11 @@ public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { public static final int CREATOR_FIELD_NUMBER = 12; private volatile java.lang.Object creator_; /** - * - * *
    * Output only. The email address of the user who created the batch.
    * 
* * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The creator. */ @java.lang.Override @@ -2129,29 +1787,29 @@ public java.lang.String getCreator() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creator_ = s; return s; } } /** - * - * *
    * Output only. The email address of the user who created the batch.
    * 
* * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for creator. */ @java.lang.Override - public com.google.protobuf.ByteString getCreatorBytes() { + public com.google.protobuf.ByteString + getCreatorBytes() { java.lang.Object ref = creator_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); creator_ = b; return b; } else { @@ -2160,23 +1818,24 @@ public com.google.protobuf.ByteString getCreatorBytes() { } public static final int LABELS_FIELD_NUMBER = 13; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_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.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_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_; } @@ -2185,8 +1844,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels to associate with this batch.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -2199,22 +1856,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @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();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this batch.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -2228,12 +1885,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this batch.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -2247,16 +1903,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this batch.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -2270,11 +1926,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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();
     }
@@ -2284,16 +1941,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int RUNTIME_CONFIG_FIELD_NUMBER = 14;
   private com.google.cloud.dataproc.v1.RuntimeConfig runtimeConfig_;
   /**
-   *
-   *
    * 
    * Optional. Runtime configuration for the batch execution.
    * 
* - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the runtimeConfig field is set. */ @java.lang.Override @@ -2301,34 +1953,23 @@ public boolean hasRuntimeConfig() { return runtimeConfig_ != null; } /** - * - * *
    * Optional. Runtime configuration for the batch execution.
    * 
* - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The runtimeConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.RuntimeConfig getRuntimeConfig() { - return runtimeConfig_ == null - ? com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance() - : runtimeConfig_; + return runtimeConfig_ == null ? com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance() : runtimeConfig_; } /** - * - * *
    * Optional. Runtime configuration for the batch execution.
    * 
* - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder getRuntimeConfigOrBuilder() { @@ -2338,16 +1979,11 @@ public com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder getRuntimeConfigOrBui public static final int ENVIRONMENT_CONFIG_FIELD_NUMBER = 15; private com.google.cloud.dataproc.v1.EnvironmentConfig environmentConfig_; /** - * - * *
    * Optional. Environment configuration for the batch execution.
    * 
* - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the environmentConfig field is set. */ @java.lang.Override @@ -2355,34 +1991,23 @@ public boolean hasEnvironmentConfig() { return environmentConfig_ != null; } /** - * - * *
    * Optional. Environment configuration for the batch execution.
    * 
* - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The environmentConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.EnvironmentConfig getEnvironmentConfig() { - return environmentConfig_ == null - ? com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance() - : environmentConfig_; + return environmentConfig_ == null ? com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance() : environmentConfig_; } /** - * - * *
    * Optional. Environment configuration for the batch execution.
    * 
* - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder getEnvironmentConfigOrBuilder() { @@ -2392,14 +2017,11 @@ public com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder getEnvironmentCon public static final int OPERATION_FIELD_NUMBER = 16; private volatile java.lang.Object operation_; /** - * - * *
    * Output only. The resource name of the operation associated with this batch.
    * 
* * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The operation. */ @java.lang.Override @@ -2408,29 +2030,29 @@ public java.lang.String getOperation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operation_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the operation associated with this batch.
    * 
* * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for operation. */ @java.lang.Override - public com.google.protobuf.ByteString getOperationBytes() { + public com.google.protobuf.ByteString + getOperationBytes() { java.lang.Object ref = operation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operation_ = b; return b; } else { @@ -2441,76 +2063,56 @@ public com.google.protobuf.ByteString getOperationBytes() { public static final int STATE_HISTORY_FIELD_NUMBER = 17; private java.util.List stateHistory_; /** - * - * *
    * Output only. Historical state information for the batch.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getStateHistoryList() { return stateHistory_; } /** - * - * *
    * Output only. Historical state information for the batch.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getStateHistoryOrBuilderList() { return stateHistory_; } /** - * - * *
    * Output only. Historical state information for the batch.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getStateHistoryCount() { return stateHistory_.size(); } /** - * - * *
    * Output only. Historical state information for the batch.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.Batch.StateHistory getStateHistory(int index) { return stateHistory_.get(index); } /** - * - * *
    * Output only. Historical state information for the batch.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder getStateHistoryOrBuilder( @@ -2519,7 +2121,6 @@ public com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder getStateHistoryO } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2531,7 +2132,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_); } @@ -2568,8 +2170,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, creator_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 13); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 13); if (runtimeConfig_ != null) { output.writeMessage(14, getRuntimeConfig()); } @@ -2598,64 +2204,67 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uuid_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (batchConfigCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_); } if (batchConfigCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_); } if (batchConfigCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_); } if (batchConfigCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_); } if (runtimeInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRuntimeInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getRuntimeInfo()); } if (state_ != com.google.cloud.dataproc.v1.Batch.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, stateMessage_); } if (stateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getStateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getStateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, creator_); } - 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(13, labels__); + 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(13, labels__); } if (runtimeConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getRuntimeConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getRuntimeConfig()); } if (environmentConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getEnvironmentConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getEnvironmentConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, operation_); } for (int i = 0; i < stateHistory_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, stateHistory_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, stateHistory_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2665,54 +2274,70 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.Batch)) { return super.equals(obj); } com.google.cloud.dataproc.v1.Batch other = (com.google.cloud.dataproc.v1.Batch) obj; - if (!getName().equals(other.getName())) return false; - if (!getUuid().equals(other.getUuid())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUuid() + .equals(other.getUuid())) 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 (hasRuntimeInfo() != other.hasRuntimeInfo()) return false; if (hasRuntimeInfo()) { - if (!getRuntimeInfo().equals(other.getRuntimeInfo())) return false; + if (!getRuntimeInfo() + .equals(other.getRuntimeInfo())) return false; } if (state_ != other.state_) return false; - if (!getStateMessage().equals(other.getStateMessage())) return false; + if (!getStateMessage() + .equals(other.getStateMessage())) return false; if (hasStateTime() != other.hasStateTime()) return false; if (hasStateTime()) { - if (!getStateTime().equals(other.getStateTime())) return false; + if (!getStateTime() + .equals(other.getStateTime())) return false; } - if (!getCreator().equals(other.getCreator())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getCreator() + .equals(other.getCreator())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasRuntimeConfig() != other.hasRuntimeConfig()) return false; if (hasRuntimeConfig()) { - if (!getRuntimeConfig().equals(other.getRuntimeConfig())) return false; + if (!getRuntimeConfig() + .equals(other.getRuntimeConfig())) return false; } if (hasEnvironmentConfig() != other.hasEnvironmentConfig()) return false; if (hasEnvironmentConfig()) { - if (!getEnvironmentConfig().equals(other.getEnvironmentConfig())) return false; + if (!getEnvironmentConfig() + .equals(other.getEnvironmentConfig())) return false; } - if (!getOperation().equals(other.getOperation())) return false; - if (!getStateHistoryList().equals(other.getStateHistoryList())) return false; + if (!getOperation() + .equals(other.getOperation())) return false; + if (!getStateHistoryList() + .equals(other.getStateHistoryList())) return false; if (!getBatchConfigCase().equals(other.getBatchConfigCase())) return false; switch (batchConfigCase_) { case 4: - if (!getPysparkBatch().equals(other.getPysparkBatch())) return false; + if (!getPysparkBatch() + .equals(other.getPysparkBatch())) return false; break; case 5: - if (!getSparkBatch().equals(other.getSparkBatch())) return false; + if (!getSparkBatch() + .equals(other.getSparkBatch())) return false; break; case 6: - if (!getSparkRBatch().equals(other.getSparkRBatch())) return false; + if (!getSparkRBatch() + .equals(other.getSparkRBatch())) return false; break; case 7: - if (!getSparkSqlBatch().equals(other.getSparkSqlBatch())) return false; + if (!getSparkSqlBatch() + .equals(other.getSparkSqlBatch())) return false; break; case 0: default: @@ -2793,155 +2418,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.Batch parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.Batch parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.Batch parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.Batch parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.dataproc.v1.Batch parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.Batch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.Batch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.Batch parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.Batch parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.Batch parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.Batch 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.dataproc.v1.Batch parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.Batch parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.Batch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.Batch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 representation of a batch workload in the service.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.Batch} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.Batch) com.google.cloud.dataproc.v1.BatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 13: 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 13: 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.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.Batch.class, - com.google.cloud.dataproc.v1.Batch.Builder.class); + com.google.cloud.dataproc.v1.Batch.class, com.google.cloud.dataproc.v1.Batch.Builder.class); } // Construct using com.google.cloud.dataproc.v1.Batch.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3013,9 +2635,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_descriptor; } @java.lang.Override @@ -3115,39 +2737,38 @@ public com.google.cloud.dataproc.v1.Batch buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.Batch) { - return mergeFrom((com.google.cloud.dataproc.v1.Batch) other); + return mergeFrom((com.google.cloud.dataproc.v1.Batch)other); } else { super.mergeFrom(other); return this; @@ -3184,7 +2805,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Batch other) { creator_ = other.creator_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.hasRuntimeConfig()) { mergeRuntimeConfig(other.getRuntimeConfig()); } @@ -3213,40 +2835,34 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Batch other) { stateHistoryBuilder_ = null; stateHistory_ = other.stateHistory_; bitField0_ = (bitField0_ & ~0x00000002); - stateHistoryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStateHistoryFieldBuilder() - : null; + stateHistoryBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStateHistoryFieldBuilder() : null; } else { stateHistoryBuilder_.addAllMessages(other.stateHistory_); } } } switch (other.getBatchConfigCase()) { - case PYSPARK_BATCH: - { - mergePysparkBatch(other.getPysparkBatch()); - break; - } - case SPARK_BATCH: - { - mergeSparkBatch(other.getSparkBatch()); - break; - } - case SPARK_R_BATCH: - { - mergeSparkRBatch(other.getSparkRBatch()); - break; - } - case SPARK_SQL_BATCH: - { - mergeSparkSqlBatch(other.getSparkSqlBatch()); - break; - } - case BATCHCONFIG_NOT_SET: - { - break; - } + case PYSPARK_BATCH: { + mergePysparkBatch(other.getPysparkBatch()); + break; + } + case SPARK_BATCH: { + mergeSparkBatch(other.getSparkBatch()); + break; + } + case SPARK_R_BATCH: { + mergeSparkRBatch(other.getSparkRBatch()); + break; + } + case SPARK_SQL_BATCH: { + mergeSparkSqlBatch(other.getSparkSqlBatch()); + break; + } + case BATCHCONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3274,129 +2890,126 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); + case 10: { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - uuid_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + uuid_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 18 + case 26: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 26 - case 34: - { - input.readMessage(getPysparkBatchFieldBuilder().getBuilder(), extensionRegistry); - batchConfigCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getSparkBatchFieldBuilder().getBuilder(), extensionRegistry); - batchConfigCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getSparkRBatchFieldBuilder().getBuilder(), extensionRegistry); - batchConfigCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage(getSparkSqlBatchFieldBuilder().getBuilder(), extensionRegistry); - batchConfigCase_ = 7; - break; - } // case 58 - case 66: - { - input.readMessage(getRuntimeInfoFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 26 + case 34: { + input.readMessage( + getPysparkBatchFieldBuilder().getBuilder(), + extensionRegistry); + batchConfigCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getSparkBatchFieldBuilder().getBuilder(), + extensionRegistry); + batchConfigCase_ = 5; + break; + } // case 42 + case 50: { + input.readMessage( + getSparkRBatchFieldBuilder().getBuilder(), + extensionRegistry); + batchConfigCase_ = 6; + break; + } // case 50 + case 58: { + input.readMessage( + getSparkSqlBatchFieldBuilder().getBuilder(), + extensionRegistry); + batchConfigCase_ = 7; + break; + } // case 58 + case 66: { + input.readMessage( + getRuntimeInfoFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 66 - case 72: - { - state_ = input.readEnum(); + break; + } // case 66 + case 72: { + state_ = input.readEnum(); - break; - } // case 72 - case 82: - { - stateMessage_ = input.readStringRequireUtf8(); + break; + } // case 72 + case 82: { + stateMessage_ = input.readStringRequireUtf8(); - break; - } // case 82 - case 90: - { - input.readMessage(getStateTimeFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 82 + case 90: { + input.readMessage( + getStateTimeFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 90 - case 98: - { - creator_ = input.readStringRequireUtf8(); + break; + } // case 90 + case 98: { + creator_ = input.readStringRequireUtf8(); - break; - } // case 98 - case 106: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 106 - case 114: - { - input.readMessage(getRuntimeConfigFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 98 + case 106: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 106 + case 114: { + input.readMessage( + getRuntimeConfigFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 114 - case 122: - { - input.readMessage( - getEnvironmentConfigFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 114 + case 122: { + input.readMessage( + getEnvironmentConfigFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 122 - case 130: - { - operation_ = input.readStringRequireUtf8(); + break; + } // case 122 + case 130: { + operation_ = input.readStringRequireUtf8(); - break; - } // case 130 - case 138: - { - com.google.cloud.dataproc.v1.Batch.StateHistory m = - input.readMessage( - com.google.cloud.dataproc.v1.Batch.StateHistory.parser(), - extensionRegistry); - if (stateHistoryBuilder_ == null) { - ensureStateHistoryIsMutable(); - stateHistory_.add(m); - } else { - stateHistoryBuilder_.addMessage(m); - } - break; - } // case 138 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 130 + case 138: { + com.google.cloud.dataproc.v1.Batch.StateHistory m = + input.readMessage( + com.google.cloud.dataproc.v1.Batch.StateHistory.parser(), + extensionRegistry); + if (stateHistoryBuilder_ == null) { + ensureStateHistoryIsMutable(); + stateHistory_.add(m); + } else { + stateHistoryBuilder_.addMessage(m); + } + break; + } // case 138 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3406,12 +3019,12 @@ public Builder mergeFrom( } // finally return this; } - private int batchConfigCase_ = 0; private java.lang.Object batchConfig_; - - public BatchConfigCase getBatchConfigCase() { - return BatchConfigCase.forNumber(batchConfigCase_); + public BatchConfigCase + getBatchConfigCase() { + return BatchConfigCase.forNumber( + batchConfigCase_); } public Builder clearBatchConfig() { @@ -3425,20 +3038,18 @@ public Builder clearBatchConfig() { private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the batch.
      * 
* * 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; @@ -3447,21 +3058,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the batch.
      * 
* * 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 { @@ -3469,61 +3079,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the batch.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the batch.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the batch.
      * 
* * 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; @@ -3531,21 +3134,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uuid_ = ""; /** - * - * *
      * Output only. A batch UUID (Unique Universal Identifier). The service
      * generates this value when it creates the batch.
      * 
* * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uuid. */ public java.lang.String getUuid() { java.lang.Object ref = uuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uuid_ = s; return s; @@ -3554,22 +3155,21 @@ public java.lang.String getUuid() { } } /** - * - * *
      * Output only. A batch UUID (Unique Universal Identifier). The service
      * generates this value when it creates the batch.
      * 
* * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uuid. */ - public com.google.protobuf.ByteString getUuidBytes() { + public com.google.protobuf.ByteString + getUuidBytes() { java.lang.Object ref = uuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uuid_ = b; return b; } else { @@ -3577,64 +3177,57 @@ public com.google.protobuf.ByteString getUuidBytes() { } } /** - * - * *
      * Output only. A batch UUID (Unique Universal Identifier). The service
      * generates this value when it creates the batch.
      * 
* * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uuid to set. * @return This builder for chaining. */ - public Builder setUuid(java.lang.String value) { + public Builder setUuid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uuid_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A batch UUID (Unique Universal Identifier). The service
      * generates this value when it creates the batch.
      * 
* * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUuid() { - + uuid_ = getDefaultInstance().getUuid(); onChanged(); return this; } /** - * - * *
      * Output only. A batch UUID (Unique Universal Identifier). The service
      * generates this value when it creates the batch.
      * 
* * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uuid to set. * @return This builder for chaining. */ - public Builder setUuidBytes(com.google.protobuf.ByteString value) { + public Builder setUuidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uuid_ = value; onChanged(); return this; @@ -3642,58 +3235,39 @@ public Builder setUuidBytes(com.google.protobuf.ByteString value) { 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 when the batch was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.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 when the batch was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.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 when the batch was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3709,17 +3283,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the batch was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.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(); @@ -3730,21 +3301,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the batch was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.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; } @@ -3756,15 +3323,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the batch was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3778,85 +3341,61 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the batch was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the batch was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.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 when the batch was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.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_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkBatch, - com.google.cloud.dataproc.v1.PySparkBatch.Builder, - com.google.cloud.dataproc.v1.PySparkBatchOrBuilder> - pysparkBatchBuilder_; + com.google.cloud.dataproc.v1.PySparkBatch, com.google.cloud.dataproc.v1.PySparkBatch.Builder, com.google.cloud.dataproc.v1.PySparkBatchOrBuilder> pysparkBatchBuilder_; /** - * - * *
      * Optional. PySpark batch config.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pysparkBatch field is set. */ @java.lang.Override @@ -3864,16 +3403,11 @@ public boolean hasPysparkBatch() { return batchConfigCase_ == 4; } /** - * - * *
      * Optional. PySpark batch config.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The pysparkBatch. */ @java.lang.Override @@ -3891,15 +3425,11 @@ public com.google.cloud.dataproc.v1.PySparkBatch getPysparkBatch() { } } /** - * - * *
      * Optional. PySpark batch config.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPysparkBatch(com.google.cloud.dataproc.v1.PySparkBatch value) { if (pysparkBatchBuilder_ == null) { @@ -3915,15 +3445,11 @@ public Builder setPysparkBatch(com.google.cloud.dataproc.v1.PySparkBatch value) return this; } /** - * - * *
      * Optional. PySpark batch config.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPysparkBatch( com.google.cloud.dataproc.v1.PySparkBatch.Builder builderForValue) { @@ -3937,25 +3463,18 @@ public Builder setPysparkBatch( return this; } /** - * - * *
      * Optional. PySpark batch config.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergePysparkBatch(com.google.cloud.dataproc.v1.PySparkBatch value) { if (pysparkBatchBuilder_ == null) { - if (batchConfigCase_ == 4 - && batchConfig_ != com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance()) { - batchConfig_ = - com.google.cloud.dataproc.v1.PySparkBatch.newBuilder( - (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_) - .mergeFrom(value) - .buildPartial(); + if (batchConfigCase_ == 4 && + batchConfig_ != com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance()) { + batchConfig_ = com.google.cloud.dataproc.v1.PySparkBatch.newBuilder((com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_) + .mergeFrom(value).buildPartial(); } else { batchConfig_ = value; } @@ -3971,15 +3490,11 @@ public Builder mergePysparkBatch(com.google.cloud.dataproc.v1.PySparkBatch value return this; } /** - * - * *
      * Optional. PySpark batch config.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPysparkBatch() { if (pysparkBatchBuilder_ == null) { @@ -3998,29 +3513,21 @@ public Builder clearPysparkBatch() { return this; } /** - * - * *
      * Optional. PySpark batch config.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.PySparkBatch.Builder getPysparkBatchBuilder() { return getPysparkBatchFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. PySpark batch config.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.PySparkBatchOrBuilder getPysparkBatchOrBuilder() { @@ -4034,57 +3541,39 @@ public com.google.cloud.dataproc.v1.PySparkBatchOrBuilder getPysparkBatchOrBuild } } /** - * - * *
      * Optional. PySpark batch config.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkBatch, - com.google.cloud.dataproc.v1.PySparkBatch.Builder, - com.google.cloud.dataproc.v1.PySparkBatchOrBuilder> + com.google.cloud.dataproc.v1.PySparkBatch, com.google.cloud.dataproc.v1.PySparkBatch.Builder, com.google.cloud.dataproc.v1.PySparkBatchOrBuilder> getPysparkBatchFieldBuilder() { if (pysparkBatchBuilder_ == null) { if (!(batchConfigCase_ == 4)) { batchConfig_ = com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); } - pysparkBatchBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkBatch, - com.google.cloud.dataproc.v1.PySparkBatch.Builder, - com.google.cloud.dataproc.v1.PySparkBatchOrBuilder>( + pysparkBatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PySparkBatch, com.google.cloud.dataproc.v1.PySparkBatch.Builder, com.google.cloud.dataproc.v1.PySparkBatchOrBuilder>( (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_, getParentForChildren(), isClean()); batchConfig_ = null; } batchConfigCase_ = 4; - onChanged(); - ; + onChanged();; return pysparkBatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkBatch, - com.google.cloud.dataproc.v1.SparkBatch.Builder, - com.google.cloud.dataproc.v1.SparkBatchOrBuilder> - sparkBatchBuilder_; + com.google.cloud.dataproc.v1.SparkBatch, com.google.cloud.dataproc.v1.SparkBatch.Builder, com.google.cloud.dataproc.v1.SparkBatchOrBuilder> sparkBatchBuilder_; /** - * - * *
      * Optional. Spark batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkBatch field is set. */ @java.lang.Override @@ -4092,16 +3581,11 @@ public boolean hasSparkBatch() { return batchConfigCase_ == 5; } /** - * - * *
      * Optional. Spark batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkBatch. */ @java.lang.Override @@ -4119,15 +3603,11 @@ public com.google.cloud.dataproc.v1.SparkBatch getSparkBatch() { } } /** - * - * *
      * Optional. Spark batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSparkBatch(com.google.cloud.dataproc.v1.SparkBatch value) { if (sparkBatchBuilder_ == null) { @@ -4143,17 +3623,14 @@ public Builder setSparkBatch(com.google.cloud.dataproc.v1.SparkBatch value) { return this; } /** - * - * *
      * Optional. Spark batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setSparkBatch(com.google.cloud.dataproc.v1.SparkBatch.Builder builderForValue) { + public Builder setSparkBatch( + com.google.cloud.dataproc.v1.SparkBatch.Builder builderForValue) { if (sparkBatchBuilder_ == null) { batchConfig_ = builderForValue.build(); onChanged(); @@ -4164,25 +3641,18 @@ public Builder setSparkBatch(com.google.cloud.dataproc.v1.SparkBatch.Builder bui return this; } /** - * - * *
      * Optional. Spark batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSparkBatch(com.google.cloud.dataproc.v1.SparkBatch value) { if (sparkBatchBuilder_ == null) { - if (batchConfigCase_ == 5 - && batchConfig_ != com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance()) { - batchConfig_ = - com.google.cloud.dataproc.v1.SparkBatch.newBuilder( - (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_) - .mergeFrom(value) - .buildPartial(); + if (batchConfigCase_ == 5 && + batchConfig_ != com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance()) { + batchConfig_ = com.google.cloud.dataproc.v1.SparkBatch.newBuilder((com.google.cloud.dataproc.v1.SparkBatch) batchConfig_) + .mergeFrom(value).buildPartial(); } else { batchConfig_ = value; } @@ -4198,15 +3668,11 @@ public Builder mergeSparkBatch(com.google.cloud.dataproc.v1.SparkBatch value) { return this; } /** - * - * *
      * Optional. Spark batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSparkBatch() { if (sparkBatchBuilder_ == null) { @@ -4225,29 +3691,21 @@ public Builder clearSparkBatch() { return this; } /** - * - * *
      * Optional. Spark batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.SparkBatch.Builder getSparkBatchBuilder() { return getSparkBatchFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Spark batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkBatchOrBuilder getSparkBatchOrBuilder() { @@ -4261,57 +3719,39 @@ public com.google.cloud.dataproc.v1.SparkBatchOrBuilder getSparkBatchOrBuilder() } } /** - * - * *
      * Optional. Spark batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkBatch, - com.google.cloud.dataproc.v1.SparkBatch.Builder, - com.google.cloud.dataproc.v1.SparkBatchOrBuilder> + com.google.cloud.dataproc.v1.SparkBatch, com.google.cloud.dataproc.v1.SparkBatch.Builder, com.google.cloud.dataproc.v1.SparkBatchOrBuilder> getSparkBatchFieldBuilder() { if (sparkBatchBuilder_ == null) { if (!(batchConfigCase_ == 5)) { batchConfig_ = com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); } - sparkBatchBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkBatch, - com.google.cloud.dataproc.v1.SparkBatch.Builder, - com.google.cloud.dataproc.v1.SparkBatchOrBuilder>( + sparkBatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkBatch, com.google.cloud.dataproc.v1.SparkBatch.Builder, com.google.cloud.dataproc.v1.SparkBatchOrBuilder>( (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_, getParentForChildren(), isClean()); batchConfig_ = null; } batchConfigCase_ = 5; - onChanged(); - ; + onChanged();; return sparkBatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRBatch, - com.google.cloud.dataproc.v1.SparkRBatch.Builder, - com.google.cloud.dataproc.v1.SparkRBatchOrBuilder> - sparkRBatchBuilder_; + com.google.cloud.dataproc.v1.SparkRBatch, com.google.cloud.dataproc.v1.SparkRBatch.Builder, com.google.cloud.dataproc.v1.SparkRBatchOrBuilder> sparkRBatchBuilder_; /** - * - * *
      * Optional. SparkR batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkRBatch field is set. */ @java.lang.Override @@ -4319,16 +3759,11 @@ public boolean hasSparkRBatch() { return batchConfigCase_ == 6; } /** - * - * *
      * Optional. SparkR batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkRBatch. */ @java.lang.Override @@ -4346,15 +3781,11 @@ public com.google.cloud.dataproc.v1.SparkRBatch getSparkRBatch() { } } /** - * - * *
      * Optional. SparkR batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSparkRBatch(com.google.cloud.dataproc.v1.SparkRBatch value) { if (sparkRBatchBuilder_ == null) { @@ -4370,15 +3801,11 @@ public Builder setSparkRBatch(com.google.cloud.dataproc.v1.SparkRBatch value) { return this; } /** - * - * *
      * Optional. SparkR batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSparkRBatch( com.google.cloud.dataproc.v1.SparkRBatch.Builder builderForValue) { @@ -4392,25 +3819,18 @@ public Builder setSparkRBatch( return this; } /** - * - * *
      * Optional. SparkR batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSparkRBatch(com.google.cloud.dataproc.v1.SparkRBatch value) { if (sparkRBatchBuilder_ == null) { - if (batchConfigCase_ == 6 - && batchConfig_ != com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance()) { - batchConfig_ = - com.google.cloud.dataproc.v1.SparkRBatch.newBuilder( - (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_) - .mergeFrom(value) - .buildPartial(); + if (batchConfigCase_ == 6 && + batchConfig_ != com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance()) { + batchConfig_ = com.google.cloud.dataproc.v1.SparkRBatch.newBuilder((com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_) + .mergeFrom(value).buildPartial(); } else { batchConfig_ = value; } @@ -4426,15 +3846,11 @@ public Builder mergeSparkRBatch(com.google.cloud.dataproc.v1.SparkRBatch value) return this; } /** - * - * *
      * Optional. SparkR batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSparkRBatch() { if (sparkRBatchBuilder_ == null) { @@ -4453,29 +3869,21 @@ public Builder clearSparkRBatch() { return this; } /** - * - * *
      * Optional. SparkR batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.SparkRBatch.Builder getSparkRBatchBuilder() { return getSparkRBatchFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. SparkR batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkRBatchOrBuilder getSparkRBatchOrBuilder() { @@ -4489,57 +3897,39 @@ public com.google.cloud.dataproc.v1.SparkRBatchOrBuilder getSparkRBatchOrBuilder } } /** - * - * *
      * Optional. SparkR batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRBatch, - com.google.cloud.dataproc.v1.SparkRBatch.Builder, - com.google.cloud.dataproc.v1.SparkRBatchOrBuilder> + com.google.cloud.dataproc.v1.SparkRBatch, com.google.cloud.dataproc.v1.SparkRBatch.Builder, com.google.cloud.dataproc.v1.SparkRBatchOrBuilder> getSparkRBatchFieldBuilder() { if (sparkRBatchBuilder_ == null) { if (!(batchConfigCase_ == 6)) { batchConfig_ = com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); } - sparkRBatchBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRBatch, - com.google.cloud.dataproc.v1.SparkRBatch.Builder, - com.google.cloud.dataproc.v1.SparkRBatchOrBuilder>( + sparkRBatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkRBatch, com.google.cloud.dataproc.v1.SparkRBatch.Builder, com.google.cloud.dataproc.v1.SparkRBatchOrBuilder>( (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_, getParentForChildren(), isClean()); batchConfig_ = null; } batchConfigCase_ = 6; - onChanged(); - ; + onChanged();; return sparkRBatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlBatch, - com.google.cloud.dataproc.v1.SparkSqlBatch.Builder, - com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder> - sparkSqlBatchBuilder_; + com.google.cloud.dataproc.v1.SparkSqlBatch, com.google.cloud.dataproc.v1.SparkSqlBatch.Builder, com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder> sparkSqlBatchBuilder_; /** - * - * *
      * Optional. SparkSql batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkSqlBatch field is set. */ @java.lang.Override @@ -4547,16 +3937,11 @@ public boolean hasSparkSqlBatch() { return batchConfigCase_ == 7; } /** - * - * *
      * Optional. SparkSql batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkSqlBatch. */ @java.lang.Override @@ -4574,15 +3959,11 @@ public com.google.cloud.dataproc.v1.SparkSqlBatch getSparkSqlBatch() { } } /** - * - * *
      * Optional. SparkSql batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSparkSqlBatch(com.google.cloud.dataproc.v1.SparkSqlBatch value) { if (sparkSqlBatchBuilder_ == null) { @@ -4598,15 +3979,11 @@ public Builder setSparkSqlBatch(com.google.cloud.dataproc.v1.SparkSqlBatch value return this; } /** - * - * *
      * Optional. SparkSql batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSparkSqlBatch( com.google.cloud.dataproc.v1.SparkSqlBatch.Builder builderForValue) { @@ -4620,25 +3997,18 @@ public Builder setSparkSqlBatch( return this; } /** - * - * *
      * Optional. SparkSql batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSparkSqlBatch(com.google.cloud.dataproc.v1.SparkSqlBatch value) { if (sparkSqlBatchBuilder_ == null) { - if (batchConfigCase_ == 7 - && batchConfig_ != com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance()) { - batchConfig_ = - com.google.cloud.dataproc.v1.SparkSqlBatch.newBuilder( - (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_) - .mergeFrom(value) - .buildPartial(); + if (batchConfigCase_ == 7 && + batchConfig_ != com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance()) { + batchConfig_ = com.google.cloud.dataproc.v1.SparkSqlBatch.newBuilder((com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_) + .mergeFrom(value).buildPartial(); } else { batchConfig_ = value; } @@ -4654,15 +4024,11 @@ public Builder mergeSparkSqlBatch(com.google.cloud.dataproc.v1.SparkSqlBatch val return this; } /** - * - * *
      * Optional. SparkSql batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSparkSqlBatch() { if (sparkSqlBatchBuilder_ == null) { @@ -4681,29 +4047,21 @@ public Builder clearSparkSqlBatch() { return this; } /** - * - * *
      * Optional. SparkSql batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.SparkSqlBatch.Builder getSparkSqlBatchBuilder() { return getSparkSqlBatchFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. SparkSql batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder getSparkSqlBatchOrBuilder() { @@ -4717,95 +4075,66 @@ public com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder getSparkSqlBatchOrBui } } /** - * - * *
      * Optional. SparkSql batch config.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlBatch, - com.google.cloud.dataproc.v1.SparkSqlBatch.Builder, - com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder> + com.google.cloud.dataproc.v1.SparkSqlBatch, com.google.cloud.dataproc.v1.SparkSqlBatch.Builder, com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder> getSparkSqlBatchFieldBuilder() { if (sparkSqlBatchBuilder_ == null) { if (!(batchConfigCase_ == 7)) { batchConfig_ = com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); } - sparkSqlBatchBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlBatch, - com.google.cloud.dataproc.v1.SparkSqlBatch.Builder, - com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder>( + sparkSqlBatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkSqlBatch, com.google.cloud.dataproc.v1.SparkSqlBatch.Builder, com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder>( (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_, getParentForChildren(), isClean()); batchConfig_ = null; } batchConfigCase_ = 7; - onChanged(); - ; + onChanged();; return sparkSqlBatchBuilder_; } private com.google.cloud.dataproc.v1.RuntimeInfo runtimeInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RuntimeInfo, - com.google.cloud.dataproc.v1.RuntimeInfo.Builder, - com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder> - runtimeInfoBuilder_; + com.google.cloud.dataproc.v1.RuntimeInfo, com.google.cloud.dataproc.v1.RuntimeInfo.Builder, com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder> runtimeInfoBuilder_; /** - * - * *
      * Output only. Runtime information about batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the runtimeInfo field is set. */ public boolean hasRuntimeInfo() { return runtimeInfoBuilder_ != null || runtimeInfo_ != null; } /** - * - * *
      * Output only. Runtime information about batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The runtimeInfo. */ public com.google.cloud.dataproc.v1.RuntimeInfo getRuntimeInfo() { if (runtimeInfoBuilder_ == null) { - return runtimeInfo_ == null - ? com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance() - : runtimeInfo_; + return runtimeInfo_ == null ? com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance() : runtimeInfo_; } else { return runtimeInfoBuilder_.getMessage(); } } /** - * - * *
      * Output only. Runtime information about batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRuntimeInfo(com.google.cloud.dataproc.v1.RuntimeInfo value) { if (runtimeInfoBuilder_ == null) { @@ -4821,15 +4150,11 @@ public Builder setRuntimeInfo(com.google.cloud.dataproc.v1.RuntimeInfo value) { return this; } /** - * - * *
      * Output only. Runtime information about batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRuntimeInfo( com.google.cloud.dataproc.v1.RuntimeInfo.Builder builderForValue) { @@ -4843,23 +4168,17 @@ public Builder setRuntimeInfo( return this; } /** - * - * *
      * Output only. Runtime information about batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeRuntimeInfo(com.google.cloud.dataproc.v1.RuntimeInfo value) { if (runtimeInfoBuilder_ == null) { if (runtimeInfo_ != null) { runtimeInfo_ = - com.google.cloud.dataproc.v1.RuntimeInfo.newBuilder(runtimeInfo_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.RuntimeInfo.newBuilder(runtimeInfo_).mergeFrom(value).buildPartial(); } else { runtimeInfo_ = value; } @@ -4871,15 +4190,11 @@ public Builder mergeRuntimeInfo(com.google.cloud.dataproc.v1.RuntimeInfo value) return this; } /** - * - * *
      * Output only. Runtime information about batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRuntimeInfo() { if (runtimeInfoBuilder_ == null) { @@ -4893,64 +4208,48 @@ public Builder clearRuntimeInfo() { return this; } /** - * - * *
      * Output only. Runtime information about batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.RuntimeInfo.Builder getRuntimeInfoBuilder() { - + onChanged(); return getRuntimeInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Runtime information about batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder getRuntimeInfoOrBuilder() { if (runtimeInfoBuilder_ != null) { return runtimeInfoBuilder_.getMessageOrBuilder(); } else { - return runtimeInfo_ == null - ? com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance() - : runtimeInfo_; + return runtimeInfo_ == null ? + com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance() : runtimeInfo_; } } /** - * - * *
      * Output only. Runtime information about batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RuntimeInfo, - com.google.cloud.dataproc.v1.RuntimeInfo.Builder, - com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder> + com.google.cloud.dataproc.v1.RuntimeInfo, com.google.cloud.dataproc.v1.RuntimeInfo.Builder, com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder> getRuntimeInfoFieldBuilder() { if (runtimeInfoBuilder_ == null) { - runtimeInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RuntimeInfo, - com.google.cloud.dataproc.v1.RuntimeInfo.Builder, - com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder>( - getRuntimeInfo(), getParentForChildren(), isClean()); + runtimeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.RuntimeInfo, com.google.cloud.dataproc.v1.RuntimeInfo.Builder, com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder>( + getRuntimeInfo(), + getParentForChildren(), + isClean()); runtimeInfo_ = null; } return runtimeInfoBuilder_; @@ -4958,73 +4257,51 @@ public com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder getRuntimeInfoOrBuilder private int state_ = 0; /** - * - * *
      * Output only. The state of the batch.
      * 
* - * - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The state of the batch.
      * 
* - * - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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; } /** - * - * *
      * Output only. The state of the batch.
      * 
* - * - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.dataproc.v1.Batch.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.Batch.State result = - com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); + com.google.cloud.dataproc.v1.Batch.State result = com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); return result == null ? com.google.cloud.dataproc.v1.Batch.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The state of the batch.
      * 
* - * - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -5032,26 +4309,21 @@ public Builder setState(com.google.cloud.dataproc.v1.Batch.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The state of the batch.
      * 
* - * - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -5059,21 +4331,19 @@ public Builder clearState() { private java.lang.Object stateMessage_ = ""; /** - * - * *
      * Output only. Batch state details, such as a failure
      * description if the state is `FAILED`.
      * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateMessage. */ public java.lang.String getStateMessage() { java.lang.Object ref = stateMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; @@ -5082,22 +4352,21 @@ public java.lang.String getStateMessage() { } } /** - * - * *
      * Output only. Batch state details, such as a failure
      * description if the state is `FAILED`.
      * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stateMessage. */ - public com.google.protobuf.ByteString getStateMessageBytes() { + public com.google.protobuf.ByteString + getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -5105,64 +4374,57 @@ public com.google.protobuf.ByteString getStateMessageBytes() { } } /** - * - * *
      * Output only. Batch state details, such as a failure
      * description if the state is `FAILED`.
      * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessage(java.lang.String value) { + public Builder setStateMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stateMessage_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Batch state details, such as a failure
      * description if the state is `FAILED`.
      * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStateMessage() { - + stateMessage_ = getDefaultInstance().getStateMessage(); onChanged(); return this; } /** - * - * *
      * Output only. Batch state details, such as a failure
      * description if the state is `FAILED`.
      * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { + public Builder setStateMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateMessage_ = value; onChanged(); return this; @@ -5170,37 +4432,24 @@ public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp stateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - stateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> stateTimeBuilder_; /** - * - * *
      * Output only. The time when the batch entered a current state.
      * 
* - * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateTime field is set. */ public boolean hasStateTime() { return stateTimeBuilder_ != null || stateTime_ != null; } /** - * - * *
      * Output only. The time when the batch entered a current state.
      * 
* - * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateTime. */ public com.google.protobuf.Timestamp getStateTime() { @@ -5211,15 +4460,11 @@ public com.google.protobuf.Timestamp getStateTime() { } } /** - * - * *
      * Output only. The time when the batch entered a current state.
      * 
* - * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStateTime(com.google.protobuf.Timestamp value) { if (stateTimeBuilder_ == null) { @@ -5235,17 +4480,14 @@ public Builder setStateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the batch entered a current state.
      * 
* - * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (stateTimeBuilder_ == null) { stateTime_ = builderForValue.build(); onChanged(); @@ -5256,21 +4498,17 @@ public Builder setStateTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. The time when the batch entered a current state.
      * 
* - * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStateTime(com.google.protobuf.Timestamp value) { if (stateTimeBuilder_ == null) { if (stateTime_ != null) { stateTime_ = - com.google.protobuf.Timestamp.newBuilder(stateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(stateTime_).mergeFrom(value).buildPartial(); } else { stateTime_ = value; } @@ -5282,15 +4520,11 @@ public Builder mergeStateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the batch entered a current state.
      * 
* - * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStateTime() { if (stateTimeBuilder_ == null) { @@ -5304,62 +4538,48 @@ public Builder clearStateTime() { return this; } /** - * - * *
      * Output only. The time when the batch entered a current state.
      * 
* - * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStateTimeBuilder() { - + onChanged(); return getStateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the batch entered a current state.
      * 
* - * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { if (stateTimeBuilder_ != null) { return stateTimeBuilder_.getMessageOrBuilder(); } else { - return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_; + return stateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_; } } /** - * - * *
      * Output only. The time when the batch entered a current state.
      * 
* - * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_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> getStateTimeFieldBuilder() { if (stateTimeBuilder_ == null) { - stateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStateTime(), getParentForChildren(), isClean()); + stateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStateTime(), + getParentForChildren(), + isClean()); stateTime_ = null; } return stateTimeBuilder_; @@ -5367,20 +4587,18 @@ public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { private java.lang.Object creator_ = ""; /** - * - * *
      * Output only. The email address of the user who created the batch.
      * 
* * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The creator. */ public java.lang.String getCreator() { java.lang.Object ref = creator_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creator_ = s; return s; @@ -5389,21 +4607,20 @@ public java.lang.String getCreator() { } } /** - * - * *
      * Output only. The email address of the user who created the batch.
      * 
* * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for creator. */ - public com.google.protobuf.ByteString getCreatorBytes() { + public com.google.protobuf.ByteString + getCreatorBytes() { java.lang.Object ref = creator_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); creator_ = b; return b; } else { @@ -5411,81 +4628,75 @@ public com.google.protobuf.ByteString getCreatorBytes() { } } /** - * - * *
      * Output only. The email address of the user who created the batch.
      * 
* * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The creator to set. * @return This builder for chaining. */ - public Builder setCreator(java.lang.String value) { + public Builder setCreator( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + creator_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The email address of the user who created the batch.
      * 
* * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCreator() { - + creator_ = getDefaultInstance().getCreator(); onChanged(); return this; } /** - * - * *
      * Output only. The email address of the user who created the batch.
      * 
* * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for creator to set. * @return This builder for chaining. */ - public Builder setCreatorBytes(com.google.protobuf.ByteString value) { + public Builder setCreatorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creator_ = value; onChanged(); return this; } - 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(); @@ -5497,8 +4708,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels to associate with this batch.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -5511,22 +4720,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @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();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this batch.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -5540,12 +4749,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this batch.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -5559,17 +4767,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this batch.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -5583,11 +4790,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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();
       }
@@ -5595,12 +4803,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this batch.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -5613,21 +4820,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this batch.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -5640,20 +4849,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this batch.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -5666,65 +4874,49 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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.dataproc.v1.RuntimeConfig runtimeConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dataproc.v1.RuntimeConfig,
-            com.google.cloud.dataproc.v1.RuntimeConfig.Builder,
-            com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder>
-        runtimeConfigBuilder_;
+        com.google.cloud.dataproc.v1.RuntimeConfig, com.google.cloud.dataproc.v1.RuntimeConfig.Builder, com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder> runtimeConfigBuilder_;
     /**
-     *
-     *
      * 
      * Optional. Runtime configuration for the batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the runtimeConfig field is set. */ public boolean hasRuntimeConfig() { return runtimeConfigBuilder_ != null || runtimeConfig_ != null; } /** - * - * *
      * Optional. Runtime configuration for the batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The runtimeConfig. */ public com.google.cloud.dataproc.v1.RuntimeConfig getRuntimeConfig() { if (runtimeConfigBuilder_ == null) { - return runtimeConfig_ == null - ? com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance() - : runtimeConfig_; + return runtimeConfig_ == null ? com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance() : runtimeConfig_; } else { return runtimeConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Runtime configuration for the batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setRuntimeConfig(com.google.cloud.dataproc.v1.RuntimeConfig value) { if (runtimeConfigBuilder_ == null) { @@ -5740,15 +4932,11 @@ public Builder setRuntimeConfig(com.google.cloud.dataproc.v1.RuntimeConfig value return this; } /** - * - * *
      * Optional. Runtime configuration for the batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setRuntimeConfig( com.google.cloud.dataproc.v1.RuntimeConfig.Builder builderForValue) { @@ -5762,23 +4950,17 @@ public Builder setRuntimeConfig( return this; } /** - * - * *
      * Optional. Runtime configuration for the batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeRuntimeConfig(com.google.cloud.dataproc.v1.RuntimeConfig value) { if (runtimeConfigBuilder_ == null) { if (runtimeConfig_ != null) { runtimeConfig_ = - com.google.cloud.dataproc.v1.RuntimeConfig.newBuilder(runtimeConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.RuntimeConfig.newBuilder(runtimeConfig_).mergeFrom(value).buildPartial(); } else { runtimeConfig_ = value; } @@ -5790,15 +4972,11 @@ public Builder mergeRuntimeConfig(com.google.cloud.dataproc.v1.RuntimeConfig val return this; } /** - * - * *
      * Optional. Runtime configuration for the batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearRuntimeConfig() { if (runtimeConfigBuilder_ == null) { @@ -5812,64 +4990,48 @@ public Builder clearRuntimeConfig() { return this; } /** - * - * *
      * Optional. Runtime configuration for the batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.RuntimeConfig.Builder getRuntimeConfigBuilder() { - + onChanged(); return getRuntimeConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Runtime configuration for the batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder getRuntimeConfigOrBuilder() { if (runtimeConfigBuilder_ != null) { return runtimeConfigBuilder_.getMessageOrBuilder(); } else { - return runtimeConfig_ == null - ? com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance() - : runtimeConfig_; + return runtimeConfig_ == null ? + com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance() : runtimeConfig_; } } /** - * - * *
      * Optional. Runtime configuration for the batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RuntimeConfig, - com.google.cloud.dataproc.v1.RuntimeConfig.Builder, - com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder> + com.google.cloud.dataproc.v1.RuntimeConfig, com.google.cloud.dataproc.v1.RuntimeConfig.Builder, com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder> getRuntimeConfigFieldBuilder() { if (runtimeConfigBuilder_ == null) { - runtimeConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RuntimeConfig, - com.google.cloud.dataproc.v1.RuntimeConfig.Builder, - com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder>( - getRuntimeConfig(), getParentForChildren(), isClean()); + runtimeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.RuntimeConfig, com.google.cloud.dataproc.v1.RuntimeConfig.Builder, com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder>( + getRuntimeConfig(), + getParentForChildren(), + isClean()); runtimeConfig_ = null; } return runtimeConfigBuilder_; @@ -5877,58 +5039,39 @@ public com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder getRuntimeConfigOrBui private com.google.cloud.dataproc.v1.EnvironmentConfig environmentConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EnvironmentConfig, - com.google.cloud.dataproc.v1.EnvironmentConfig.Builder, - com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder> - environmentConfigBuilder_; + com.google.cloud.dataproc.v1.EnvironmentConfig, com.google.cloud.dataproc.v1.EnvironmentConfig.Builder, com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder> environmentConfigBuilder_; /** - * - * *
      * Optional. Environment configuration for the batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the environmentConfig field is set. */ public boolean hasEnvironmentConfig() { return environmentConfigBuilder_ != null || environmentConfig_ != null; } /** - * - * *
      * Optional. Environment configuration for the batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The environmentConfig. */ public com.google.cloud.dataproc.v1.EnvironmentConfig getEnvironmentConfig() { if (environmentConfigBuilder_ == null) { - return environmentConfig_ == null - ? com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance() - : environmentConfig_; + return environmentConfig_ == null ? com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance() : environmentConfig_; } else { return environmentConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Environment configuration for the batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEnvironmentConfig(com.google.cloud.dataproc.v1.EnvironmentConfig value) { if (environmentConfigBuilder_ == null) { @@ -5944,15 +5087,11 @@ public Builder setEnvironmentConfig(com.google.cloud.dataproc.v1.EnvironmentConf return this; } /** - * - * *
      * Optional. Environment configuration for the batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEnvironmentConfig( com.google.cloud.dataproc.v1.EnvironmentConfig.Builder builderForValue) { @@ -5966,23 +5105,17 @@ public Builder setEnvironmentConfig( return this; } /** - * - * *
      * Optional. Environment configuration for the batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeEnvironmentConfig(com.google.cloud.dataproc.v1.EnvironmentConfig value) { if (environmentConfigBuilder_ == null) { if (environmentConfig_ != null) { environmentConfig_ = - com.google.cloud.dataproc.v1.EnvironmentConfig.newBuilder(environmentConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.EnvironmentConfig.newBuilder(environmentConfig_).mergeFrom(value).buildPartial(); } else { environmentConfig_ = value; } @@ -5994,15 +5127,11 @@ public Builder mergeEnvironmentConfig(com.google.cloud.dataproc.v1.EnvironmentCo return this; } /** - * - * *
      * Optional. Environment configuration for the batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearEnvironmentConfig() { if (environmentConfigBuilder_ == null) { @@ -6016,64 +5145,48 @@ public Builder clearEnvironmentConfig() { return this; } /** - * - * *
      * Optional. Environment configuration for the batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.EnvironmentConfig.Builder getEnvironmentConfigBuilder() { - + onChanged(); return getEnvironmentConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Environment configuration for the batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder getEnvironmentConfigOrBuilder() { if (environmentConfigBuilder_ != null) { return environmentConfigBuilder_.getMessageOrBuilder(); } else { - return environmentConfig_ == null - ? com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance() - : environmentConfig_; + return environmentConfig_ == null ? + com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance() : environmentConfig_; } } /** - * - * *
      * Optional. Environment configuration for the batch execution.
      * 
* - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EnvironmentConfig, - com.google.cloud.dataproc.v1.EnvironmentConfig.Builder, - com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder> + com.google.cloud.dataproc.v1.EnvironmentConfig, com.google.cloud.dataproc.v1.EnvironmentConfig.Builder, com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder> getEnvironmentConfigFieldBuilder() { if (environmentConfigBuilder_ == null) { - environmentConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EnvironmentConfig, - com.google.cloud.dataproc.v1.EnvironmentConfig.Builder, - com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder>( - getEnvironmentConfig(), getParentForChildren(), isClean()); + environmentConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.EnvironmentConfig, com.google.cloud.dataproc.v1.EnvironmentConfig.Builder, com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder>( + getEnvironmentConfig(), + getParentForChildren(), + isClean()); environmentConfig_ = null; } return environmentConfigBuilder_; @@ -6081,20 +5194,18 @@ public com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder getEnvironmentCon private java.lang.Object operation_ = ""; /** - * - * *
      * Output only. The resource name of the operation associated with this batch.
      * 
* * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The operation. */ public java.lang.String getOperation() { java.lang.Object ref = operation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operation_ = s; return s; @@ -6103,21 +5214,20 @@ public java.lang.String getOperation() { } } /** - * - * *
      * Output only. The resource name of the operation associated with this batch.
      * 
* * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for operation. */ - public com.google.protobuf.ByteString getOperationBytes() { + public com.google.protobuf.ByteString + getOperationBytes() { java.lang.Object ref = operation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operation_ = b; return b; } else { @@ -6125,93 +5235,77 @@ public com.google.protobuf.ByteString getOperationBytes() { } } /** - * - * *
      * Output only. The resource name of the operation associated with this batch.
      * 
* * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The operation to set. * @return This builder for chaining. */ - public Builder setOperation(java.lang.String value) { + public Builder setOperation( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + operation_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the operation associated with this batch.
      * 
* * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearOperation() { - + operation_ = getDefaultInstance().getOperation(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the operation associated with this batch.
      * 
* * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for operation to set. * @return This builder for chaining. */ - public Builder setOperationBytes(com.google.protobuf.ByteString value) { + public Builder setOperationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operation_ = value; onChanged(); return this; } private java.util.List stateHistory_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStateHistoryIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - stateHistory_ = - new java.util.ArrayList(stateHistory_); + stateHistory_ = new java.util.ArrayList(stateHistory_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch.StateHistory, - com.google.cloud.dataproc.v1.Batch.StateHistory.Builder, - com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder> - stateHistoryBuilder_; + com.google.cloud.dataproc.v1.Batch.StateHistory, com.google.cloud.dataproc.v1.Batch.StateHistory.Builder, com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder> stateHistoryBuilder_; /** - * - * *
      * Output only. Historical state information for the batch.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getStateHistoryList() { if (stateHistoryBuilder_ == null) { @@ -6221,15 +5315,11 @@ public java.util.List getStateH } } /** - * - * *
      * Output only. Historical state information for the batch.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getStateHistoryCount() { if (stateHistoryBuilder_ == null) { @@ -6239,15 +5329,11 @@ public int getStateHistoryCount() { } } /** - * - * *
      * Output only. Historical state information for the batch.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.Batch.StateHistory getStateHistory(int index) { if (stateHistoryBuilder_ == null) { @@ -6257,15 +5343,11 @@ public com.google.cloud.dataproc.v1.Batch.StateHistory getStateHistory(int index } } /** - * - * *
      * Output only. Historical state information for the batch.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStateHistory( int index, com.google.cloud.dataproc.v1.Batch.StateHistory value) { @@ -6282,15 +5364,11 @@ public Builder setStateHistory( return this; } /** - * - * *
      * Output only. Historical state information for the batch.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStateHistory( int index, com.google.cloud.dataproc.v1.Batch.StateHistory.Builder builderForValue) { @@ -6304,15 +5382,11 @@ public Builder setStateHistory( return this; } /** - * - * *
      * Output only. Historical state information for the batch.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStateHistory(com.google.cloud.dataproc.v1.Batch.StateHistory value) { if (stateHistoryBuilder_ == null) { @@ -6328,15 +5402,11 @@ public Builder addStateHistory(com.google.cloud.dataproc.v1.Batch.StateHistory v return this; } /** - * - * *
      * Output only. Historical state information for the batch.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStateHistory( int index, com.google.cloud.dataproc.v1.Batch.StateHistory value) { @@ -6353,15 +5423,11 @@ public Builder addStateHistory( return this; } /** - * - * *
      * Output only. Historical state information for the batch.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStateHistory( com.google.cloud.dataproc.v1.Batch.StateHistory.Builder builderForValue) { @@ -6375,15 +5441,11 @@ public Builder addStateHistory( return this; } /** - * - * *
      * Output only. Historical state information for the batch.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStateHistory( int index, com.google.cloud.dataproc.v1.Batch.StateHistory.Builder builderForValue) { @@ -6397,21 +5459,18 @@ public Builder addStateHistory( return this; } /** - * - * *
      * Output only. Historical state information for the batch.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllStateHistory( java.lang.Iterable values) { if (stateHistoryBuilder_ == null) { ensureStateHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stateHistory_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stateHistory_); onChanged(); } else { stateHistoryBuilder_.addAllMessages(values); @@ -6419,15 +5478,11 @@ public Builder addAllStateHistory( return this; } /** - * - * *
      * Output only. Historical state information for the batch.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStateHistory() { if (stateHistoryBuilder_ == null) { @@ -6440,15 +5495,11 @@ public Builder clearStateHistory() { return this; } /** - * - * *
      * Output only. Historical state information for the batch.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeStateHistory(int index) { if (stateHistoryBuilder_ == null) { @@ -6461,52 +5512,39 @@ public Builder removeStateHistory(int index) { return this; } /** - * - * *
      * Output only. Historical state information for the batch.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.Batch.StateHistory.Builder getStateHistoryBuilder( int index) { return getStateHistoryFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Historical state information for the batch.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder getStateHistoryOrBuilder( int index) { if (stateHistoryBuilder_ == null) { - return stateHistory_.get(index); - } else { + return stateHistory_.get(index); } else { return stateHistoryBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Historical state information for the batch.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getStateHistoryOrBuilderList() { + public java.util.List + getStateHistoryOrBuilderList() { if (stateHistoryBuilder_ != null) { return stateHistoryBuilder_.getMessageOrBuilderList(); } else { @@ -6514,71 +5552,56 @@ public com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder getStateHistoryO } } /** - * - * *
      * Output only. Historical state information for the batch.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.Batch.StateHistory.Builder addStateHistoryBuilder() { - return getStateHistoryFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance()); + return getStateHistoryFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance()); } /** - * - * *
      * Output only. Historical state information for the batch.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.Batch.StateHistory.Builder addStateHistoryBuilder( int index) { - return getStateHistoryFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance()); + return getStateHistoryFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance()); } /** - * - * *
      * Output only. Historical state information for the batch.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getStateHistoryBuilderList() { + public java.util.List + getStateHistoryBuilderList() { return getStateHistoryFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch.StateHistory, - com.google.cloud.dataproc.v1.Batch.StateHistory.Builder, - com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder> + com.google.cloud.dataproc.v1.Batch.StateHistory, com.google.cloud.dataproc.v1.Batch.StateHistory.Builder, com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder> getStateHistoryFieldBuilder() { if (stateHistoryBuilder_ == null) { - stateHistoryBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch.StateHistory, - com.google.cloud.dataproc.v1.Batch.StateHistory.Builder, - com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder>( - stateHistory_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + stateHistoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.Batch.StateHistory, com.google.cloud.dataproc.v1.Batch.StateHistory.Builder, com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder>( + stateHistory_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); stateHistory_ = null; } return stateHistoryBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6588,12 +5611,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.Batch) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Batch) private static final com.google.cloud.dataproc.v1.Batch DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.Batch(); } @@ -6602,27 +5625,27 @@ public static com.google.cloud.dataproc.v1.Batch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Batch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Batch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6637,4 +5660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.Batch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java similarity index 100% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java similarity index 68% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java index 2c0c2895ee43..260bc751ea82 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.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/dataproc/v1/operations.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Metadata describing the Batch operation.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.BatchOperationMetadata} */ -public final class BatchOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.BatchOperationMetadata) BatchOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchOperationMetadata.newBuilder() to construct. private BatchOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchOperationMetadata() { batch_ = ""; batchUuid_ = ""; @@ -47,54 +29,51 @@ private BatchOperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_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.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.BatchOperationMetadata.class, - com.google.cloud.dataproc.v1.BatchOperationMetadata.Builder.class); + com.google.cloud.dataproc.v1.BatchOperationMetadata.class, com.google.cloud.dataproc.v1.BatchOperationMetadata.Builder.class); } /** - * - * *
    * Operation type for Batch resources
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType} */ - public enum BatchOperationType implements com.google.protobuf.ProtocolMessageEnum { + public enum BatchOperationType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Batch operation type is unknown.
      * 
@@ -103,8 +82,6 @@ public enum BatchOperationType implements com.google.protobuf.ProtocolMessageEnu */ BATCH_OPERATION_TYPE_UNSPECIFIED(0), /** - * - * *
      * Batch operation type.
      * 
@@ -116,8 +93,6 @@ public enum BatchOperationType implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * Batch operation type is unknown.
      * 
@@ -126,8 +101,6 @@ public enum BatchOperationType implements com.google.protobuf.ProtocolMessageEnu */ public static final int BATCH_OPERATION_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Batch operation type.
      * 
@@ -136,6 +109,7 @@ public enum BatchOperationType implements com.google.protobuf.ProtocolMessageEnu */ public static final int BATCH_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -160,12 +134,9 @@ public static BatchOperationType valueOf(int value) { */ public static BatchOperationType forNumber(int value) { switch (value) { - case 0: - return BATCH_OPERATION_TYPE_UNSPECIFIED; - case 1: - return BATCH; - default: - return null; + case 0: return BATCH_OPERATION_TYPE_UNSPECIFIED; + case 1: return BATCH; + default: return null; } } @@ -173,31 +144,29 @@ public static BatchOperationType forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + BatchOperationType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BatchOperationType findValueByNumber(int number) { + return BatchOperationType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BatchOperationType findValueByNumber(int number) { - return BatchOperationType.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() { - return com.google.cloud.dataproc.v1.BatchOperationMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.BatchOperationMetadata.getDescriptor().getEnumTypes().get(0); } private static final BatchOperationType[] VALUES = values(); @@ -205,7 +174,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static BatchOperationType 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; @@ -225,14 +195,11 @@ private BatchOperationType(int value) { public static final int BATCH_FIELD_NUMBER = 1; private volatile java.lang.Object batch_; /** - * - * *
    * Name of the batch for the operation.
    * 
* * string batch = 1; - * * @return The batch. */ @java.lang.Override @@ -241,29 +208,29 @@ public java.lang.String getBatch() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batch_ = s; return s; } } /** - * - * *
    * Name of the batch for the operation.
    * 
* * string batch = 1; - * * @return The bytes for batch. */ @java.lang.Override - public com.google.protobuf.ByteString getBatchBytes() { + public com.google.protobuf.ByteString + getBatchBytes() { java.lang.Object ref = batch_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); batch_ = b; return b; } else { @@ -274,14 +241,11 @@ public com.google.protobuf.ByteString getBatchBytes() { public static final int BATCH_UUID_FIELD_NUMBER = 2; private volatile java.lang.Object batchUuid_; /** - * - * *
    * Batch UUID for the operation.
    * 
* * string batch_uuid = 2; - * * @return The batchUuid. */ @java.lang.Override @@ -290,29 +254,29 @@ public java.lang.String getBatchUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batchUuid_ = s; return s; } } /** - * - * *
    * Batch UUID for the operation.
    * 
* * string batch_uuid = 2; - * * @return The bytes for batchUuid. */ @java.lang.Override - public com.google.protobuf.ByteString getBatchUuidBytes() { + public com.google.protobuf.ByteString + getBatchUuidBytes() { java.lang.Object ref = batchUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); batchUuid_ = b; return b; } else { @@ -323,14 +287,11 @@ public com.google.protobuf.ByteString getBatchUuidBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -338,14 +299,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ @java.lang.Override @@ -353,8 +311,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time when the operation was created.
    * 
@@ -369,14 +325,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int DONE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp doneTime_; /** - * - * *
    * The time when the operation finished.
    * 
* * .google.protobuf.Timestamp done_time = 4; - * * @return Whether the doneTime field is set. */ @java.lang.Override @@ -384,14 +337,11 @@ public boolean hasDoneTime() { return doneTime_ != null; } /** - * - * *
    * The time when the operation finished.
    * 
* * .google.protobuf.Timestamp done_time = 4; - * * @return The doneTime. */ @java.lang.Override @@ -399,8 +349,6 @@ public com.google.protobuf.Timestamp getDoneTime() { return doneTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : doneTime_; } /** - * - * *
    * The time when the operation finished.
    * 
@@ -415,55 +363,38 @@ public com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder() { public static final int OPERATION_TYPE_FIELD_NUMBER = 6; private int operationType_; /** - * - * *
    * The operation type.
    * 
* - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; - * - * + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; * @return The enum numeric value on the wire for operationType. */ - @java.lang.Override - public int getOperationTypeValue() { + @java.lang.Override public int getOperationTypeValue() { return operationType_; } /** - * - * *
    * The operation type.
    * 
* - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; - * - * + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; * @return The operationType. */ - @java.lang.Override - public com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType getOperationType() { + @java.lang.Override public com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType getOperationType() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType result = - com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.valueOf( - operationType_); - return result == null - ? com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType result = com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.valueOf(operationType_); + return result == null ? com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 7; private volatile java.lang.Object description_; /** - * - * *
    * Short description of the operation.
    * 
* * string description = 7; - * * @return The description. */ @java.lang.Override @@ -472,29 +403,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Short description of the operation.
    * 
* * string description = 7; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -503,23 +434,24 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } 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.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_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.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_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_; } @@ -528,30 +460,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels associated with the operation.
    * 
* * 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 associated with the operation.
    * 
@@ -559,12 +489,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels associated with the operation.
    * 
@@ -572,16 +501,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 associated with the operation.
    * 
@@ -589,11 +518,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(); } @@ -603,42 +533,34 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int WARNINGS_FIELD_NUMBER = 9; private com.google.protobuf.LazyStringList warnings_; /** - * - * *
    * Warnings encountered during operation execution.
    * 
* * repeated string warnings = 9; - * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList getWarningsList() { + public com.google.protobuf.ProtocolStringList + getWarningsList() { return warnings_; } /** - * - * *
    * Warnings encountered during operation execution.
    * 
* * repeated string warnings = 9; - * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** - * - * *
    * Warnings encountered during operation execution.
    * 
* * repeated string warnings = 9; - * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -646,23 +568,20 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** - * - * *
    * Warnings encountered during operation execution.
    * 
* * repeated string warnings = 9; - * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString getWarningsBytes(int index) { + public com.google.protobuf.ByteString + getWarningsBytes(int index) { return warnings_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -674,7 +593,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(batch_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, batch_); } @@ -687,17 +607,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (doneTime_ != null) { output.writeMessage(4, getDoneTime()); } - if (operationType_ - != com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType - .BATCH_OPERATION_TYPE_UNSPECIFIED - .getNumber()) { + if (operationType_ != com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.BATCH_OPERATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(6, operationType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 8); for (int i = 0; i < warnings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, warnings_.getRaw(i)); } @@ -717,29 +638,29 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, batchUuid_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (doneTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDoneTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDoneTime()); } - if (operationType_ - != com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType - .BATCH_OPERATION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, operationType_); + if (operationType_ != com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.BATCH_OPERATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, operationType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_); } - 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__); + 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__); } { int dataSize = 0; @@ -757,28 +678,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.BatchOperationMetadata)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.BatchOperationMetadata other = - (com.google.cloud.dataproc.v1.BatchOperationMetadata) obj; + com.google.cloud.dataproc.v1.BatchOperationMetadata other = (com.google.cloud.dataproc.v1.BatchOperationMetadata) obj; - if (!getBatch().equals(other.getBatch())) return false; - if (!getBatchUuid().equals(other.getBatchUuid())) return false; + if (!getBatch() + .equals(other.getBatch())) return false; + if (!getBatchUuid() + .equals(other.getBatchUuid())) 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 (hasDoneTime() != other.hasDoneTime()) return false; if (hasDoneTime()) { - if (!getDoneTime().equals(other.getDoneTime())) return false; + if (!getDoneTime() + .equals(other.getDoneTime())) return false; } if (operationType_ != other.operationType_) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getWarningsList().equals(other.getWarningsList())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getWarningsList() + .equals(other.getWarningsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -820,155 +747,151 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.BatchOperationMetadata 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.dataproc.v1.BatchOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.BatchOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metadata describing the Batch operation.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.BatchOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.BatchOperationMetadata) com.google.cloud.dataproc.v1.BatchOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_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.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.BatchOperationMetadata.class, - com.google.cloud.dataproc.v1.BatchOperationMetadata.Builder.class); + com.google.cloud.dataproc.v1.BatchOperationMetadata.class, com.google.cloud.dataproc.v1.BatchOperationMetadata.Builder.class); } // Construct using com.google.cloud.dataproc.v1.BatchOperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -999,9 +922,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor; } @java.lang.Override @@ -1020,8 +943,7 @@ public com.google.cloud.dataproc.v1.BatchOperationMetadata build() { @java.lang.Override public com.google.cloud.dataproc.v1.BatchOperationMetadata buildPartial() { - com.google.cloud.dataproc.v1.BatchOperationMetadata result = - new com.google.cloud.dataproc.v1.BatchOperationMetadata(this); + com.google.cloud.dataproc.v1.BatchOperationMetadata result = new com.google.cloud.dataproc.v1.BatchOperationMetadata(this); int from_bitField0_ = bitField0_; result.batch_ = batch_; result.batchUuid_ = batchUuid_; @@ -1052,39 +974,38 @@ public com.google.cloud.dataproc.v1.BatchOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.BatchOperationMetadata) { - return mergeFrom((com.google.cloud.dataproc.v1.BatchOperationMetadata) other); + return mergeFrom((com.google.cloud.dataproc.v1.BatchOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -1092,8 +1013,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.BatchOperationMetadata other) { - if (other == com.google.cloud.dataproc.v1.BatchOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.BatchOperationMetadata.getDefaultInstance()) return this; if (!other.getBatch().isEmpty()) { batch_ = other.batch_; onChanged(); @@ -1115,7 +1035,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.BatchOperationMetadata oth description_ = other.description_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.warnings_.isEmpty()) { if (warnings_.isEmpty()) { warnings_ = other.warnings_; @@ -1152,67 +1073,60 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - batch_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - batchUuid_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getDoneTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 48: - { - operationType_ = input.readEnum(); - - break; - } // case 48 - case 58: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 66 - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureWarningsIsMutable(); - warnings_.add(s); - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + batch_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + batchUuid_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + input.readMessage( + getDoneTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 48: { + operationType_ = input.readEnum(); + + break; + } // case 48 + case 58: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 66 + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + ensureWarningsIsMutable(); + warnings_.add(s); + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1222,25 +1136,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object batch_ = ""; /** - * - * *
      * Name of the batch for the operation.
      * 
* * string batch = 1; - * * @return The batch. */ public java.lang.String getBatch() { java.lang.Object ref = batch_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batch_ = s; return s; @@ -1249,21 +1160,20 @@ public java.lang.String getBatch() { } } /** - * - * *
      * Name of the batch for the operation.
      * 
* * string batch = 1; - * * @return The bytes for batch. */ - public com.google.protobuf.ByteString getBatchBytes() { + public com.google.protobuf.ByteString + getBatchBytes() { java.lang.Object ref = batch_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); batch_ = b; return b; } else { @@ -1271,61 +1181,54 @@ public com.google.protobuf.ByteString getBatchBytes() { } } /** - * - * *
      * Name of the batch for the operation.
      * 
* * string batch = 1; - * * @param value The batch to set. * @return This builder for chaining. */ - public Builder setBatch(java.lang.String value) { + public Builder setBatch( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + batch_ = value; onChanged(); return this; } /** - * - * *
      * Name of the batch for the operation.
      * 
* * string batch = 1; - * * @return This builder for chaining. */ public Builder clearBatch() { - + batch_ = getDefaultInstance().getBatch(); onChanged(); return this; } /** - * - * *
      * Name of the batch for the operation.
      * 
* * string batch = 1; - * * @param value The bytes for batch to set. * @return This builder for chaining. */ - public Builder setBatchBytes(com.google.protobuf.ByteString value) { + public Builder setBatchBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + batch_ = value; onChanged(); return this; @@ -1333,20 +1236,18 @@ public Builder setBatchBytes(com.google.protobuf.ByteString value) { private java.lang.Object batchUuid_ = ""; /** - * - * *
      * Batch UUID for the operation.
      * 
* * string batch_uuid = 2; - * * @return The batchUuid. */ public java.lang.String getBatchUuid() { java.lang.Object ref = batchUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batchUuid_ = s; return s; @@ -1355,21 +1256,20 @@ public java.lang.String getBatchUuid() { } } /** - * - * *
      * Batch UUID for the operation.
      * 
* * string batch_uuid = 2; - * * @return The bytes for batchUuid. */ - public com.google.protobuf.ByteString getBatchUuidBytes() { + public com.google.protobuf.ByteString + getBatchUuidBytes() { java.lang.Object ref = batchUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); batchUuid_ = b; return b; } else { @@ -1377,61 +1277,54 @@ public com.google.protobuf.ByteString getBatchUuidBytes() { } } /** - * - * *
      * Batch UUID for the operation.
      * 
* * string batch_uuid = 2; - * * @param value The batchUuid to set. * @return This builder for chaining. */ - public Builder setBatchUuid(java.lang.String value) { + public Builder setBatchUuid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + batchUuid_ = value; onChanged(); return this; } /** - * - * *
      * Batch UUID for the operation.
      * 
* * string batch_uuid = 2; - * * @return This builder for chaining. */ public Builder clearBatchUuid() { - + batchUuid_ = getDefaultInstance().getBatchUuid(); onChanged(); return this; } /** - * - * *
      * Batch UUID for the operation.
      * 
* * string batch_uuid = 2; - * * @param value The bytes for batchUuid to set. * @return This builder for chaining. */ - public Builder setBatchUuidBytes(com.google.protobuf.ByteString value) { + public Builder setBatchUuidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + batchUuid_ = value; onChanged(); return this; @@ -1439,47 +1332,34 @@ public Builder setBatchUuidBytes(com.google.protobuf.ByteString value) { 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_; /** - * - * *
      * The time when the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * The time when the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @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(); } } /** - * - * *
      * The time when the operation was created.
      * 
@@ -1500,15 +1380,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; */ - 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(); @@ -1519,8 +1398,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the operation was created.
      * 
@@ -1531,7 +1408,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1543,8 +1420,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation was created.
      * 
@@ -1563,8 +1438,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time when the operation was created.
      * 
@@ -1572,13 +1445,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 3; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation was created.
      * 
@@ -1589,14 +1460,11 @@ 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_; } } /** - * - * *
      * The time when the operation was created.
      * 
@@ -1604,17 +1472,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -1622,33 +1487,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp doneTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - doneTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> doneTimeBuilder_; /** - * - * *
      * The time when the operation finished.
      * 
* * .google.protobuf.Timestamp done_time = 4; - * * @return Whether the doneTime field is set. */ public boolean hasDoneTime() { return doneTimeBuilder_ != null || doneTime_ != null; } /** - * - * *
      * The time when the operation finished.
      * 
* * .google.protobuf.Timestamp done_time = 4; - * * @return The doneTime. */ public com.google.protobuf.Timestamp getDoneTime() { @@ -1659,8 +1515,6 @@ public com.google.protobuf.Timestamp getDoneTime() { } } /** - * - * *
      * The time when the operation finished.
      * 
@@ -1681,15 +1535,14 @@ public Builder setDoneTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation finished.
      * 
* * .google.protobuf.Timestamp done_time = 4; */ - public Builder setDoneTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDoneTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (doneTimeBuilder_ == null) { doneTime_ = builderForValue.build(); onChanged(); @@ -1700,8 +1553,6 @@ public Builder setDoneTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
      * The time when the operation finished.
      * 
@@ -1712,7 +1563,7 @@ public Builder mergeDoneTime(com.google.protobuf.Timestamp value) { if (doneTimeBuilder_ == null) { if (doneTime_ != null) { doneTime_ = - com.google.protobuf.Timestamp.newBuilder(doneTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(doneTime_).mergeFrom(value).buildPartial(); } else { doneTime_ = value; } @@ -1724,8 +1575,6 @@ public Builder mergeDoneTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the operation finished.
      * 
@@ -1744,8 +1593,6 @@ public Builder clearDoneTime() { return this; } /** - * - * *
      * The time when the operation finished.
      * 
@@ -1753,13 +1600,11 @@ public Builder clearDoneTime() { * .google.protobuf.Timestamp done_time = 4; */ public com.google.protobuf.Timestamp.Builder getDoneTimeBuilder() { - + onChanged(); return getDoneTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the operation finished.
      * 
@@ -1770,12 +1615,11 @@ public com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder() { if (doneTimeBuilder_ != null) { return doneTimeBuilder_.getMessageOrBuilder(); } else { - return doneTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : doneTime_; + return doneTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : doneTime_; } } /** - * - * *
      * The time when the operation finished.
      * 
@@ -1783,17 +1627,14 @@ public com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder() { * .google.protobuf.Timestamp done_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDoneTimeFieldBuilder() { if (doneTimeBuilder_ == null) { - doneTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDoneTime(), getParentForChildren(), isClean()); + doneTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDoneTime(), + getParentForChildren(), + isClean()); doneTime_ = null; } return doneTimeBuilder_; @@ -1801,100 +1642,73 @@ public com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder() { private int operationType_ = 0; /** - * - * *
      * The operation type.
      * 
* - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; - * - * + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; * @return The enum numeric value on the wire for operationType. */ - @java.lang.Override - public int getOperationTypeValue() { + @java.lang.Override public int getOperationTypeValue() { return operationType_; } /** - * - * *
      * The operation type.
      * 
* - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; - * - * + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; * @param value The enum numeric value on the wire for operationType to set. * @return This builder for chaining. */ public Builder setOperationTypeValue(int value) { - + operationType_ = value; onChanged(); return this; } /** - * - * *
      * The operation type.
      * 
* - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; - * - * + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; * @return The operationType. */ @java.lang.Override - public com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType - getOperationType() { + public com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType getOperationType() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType result = - com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.valueOf( - operationType_); - return result == null - ? com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType result = com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.valueOf(operationType_); + return result == null ? com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.UNRECOGNIZED : result; } /** - * - * *
      * The operation type.
      * 
* - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; - * - * + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; * @param value The operationType to set. * @return This builder for chaining. */ - public Builder setOperationType( - com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType value) { + public Builder setOperationType(com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType value) { if (value == null) { throw new NullPointerException(); } - + operationType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The operation type.
      * 
* - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; - * - * + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; * @return This builder for chaining. */ public Builder clearOperationType() { - + operationType_ = 0; onChanged(); return this; @@ -1902,20 +1716,18 @@ public Builder clearOperationType() { private java.lang.Object description_ = ""; /** - * - * *
      * Short description of the operation.
      * 
* * string description = 7; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1924,21 +1736,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Short description of the operation.
      * 
* * string description = 7; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1946,81 +1757,75 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Short description of the operation.
      * 
* * string description = 7; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Short description of the operation.
      * 
* * string description = 7; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Short description of the operation.
      * 
* * string description = 7; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - 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(); @@ -2032,30 +1837,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels associated with the operation.
      * 
* * 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 associated with the operation.
      * 
@@ -2063,12 +1866,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels associated with the operation.
      * 
@@ -2076,17 +1878,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 associated with the operation.
      * 
@@ -2094,11 +1895,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(); } @@ -2106,110 +1908,103 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Labels associated with the operation.
      * 
* * 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 associated with the operation.
      * 
* * 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 associated with the operation.
      * 
* * 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.protobuf.LazyStringList warnings_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureWarningsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Warnings encountered during operation execution.
      * 
* * repeated string warnings = 9; - * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList getWarningsList() { + public com.google.protobuf.ProtocolStringList + getWarningsList() { return warnings_.getUnmodifiableView(); } /** - * - * *
      * Warnings encountered during operation execution.
      * 
* * repeated string warnings = 9; - * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** - * - * *
      * Warnings encountered during operation execution.
      * 
* * repeated string warnings = 9; - * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -2217,90 +2012,80 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** - * - * *
      * Warnings encountered during operation execution.
      * 
* * repeated string warnings = 9; - * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString getWarningsBytes(int index) { + public com.google.protobuf.ByteString + getWarningsBytes(int index) { return warnings_.getByteString(index); } /** - * - * *
      * Warnings encountered during operation execution.
      * 
* * repeated string warnings = 9; - * * @param index The index to set the value at. * @param value The warnings to set. * @return This builder for chaining. */ - public Builder setWarnings(int index, java.lang.String value) { + public Builder setWarnings( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.set(index, value); onChanged(); return this; } /** - * - * *
      * Warnings encountered during operation execution.
      * 
* * repeated string warnings = 9; - * * @param value The warnings to add. * @return This builder for chaining. */ - public Builder addWarnings(java.lang.String value) { + public Builder addWarnings( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.add(value); onChanged(); return this; } /** - * - * *
      * Warnings encountered during operation execution.
      * 
* * repeated string warnings = 9; - * * @param values The warnings to add. * @return This builder for chaining. */ - public Builder addAllWarnings(java.lang.Iterable values) { + public Builder addAllWarnings( + java.lang.Iterable values) { ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, warnings_); onChanged(); return this; } /** - * - * *
      * Warnings encountered during operation execution.
      * 
* * repeated string warnings = 9; - * * @return This builder for chaining. */ public Builder clearWarnings() { @@ -2310,30 +2095,28 @@ public Builder clearWarnings() { return this; } /** - * - * *
      * Warnings encountered during operation execution.
      * 
* * repeated string warnings = 9; - * * @param value The bytes of the warnings to add. * @return This builder for chaining. */ - public Builder addWarningsBytes(com.google.protobuf.ByteString value) { + public Builder addWarningsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureWarningsIsMutable(); warnings_.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); } @@ -2343,12 +2126,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.BatchOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.BatchOperationMetadata) private static final com.google.cloud.dataproc.v1.BatchOperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.BatchOperationMetadata(); } @@ -2357,27 +2140,27 @@ public static com.google.cloud.dataproc.v1.BatchOperationMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2392,4 +2175,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.BatchOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java similarity index 74% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java index 0a1d94d08f22..82053ad9ec85 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java @@ -1,105 +1,71 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/operations.proto package com.google.cloud.dataproc.v1; -public interface BatchOperationMetadataOrBuilder - extends +public interface BatchOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.BatchOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of the batch for the operation.
    * 
* * string batch = 1; - * * @return The batch. */ java.lang.String getBatch(); /** - * - * *
    * Name of the batch for the operation.
    * 
* * string batch = 1; - * * @return The bytes for batch. */ - com.google.protobuf.ByteString getBatchBytes(); + com.google.protobuf.ByteString + getBatchBytes(); /** - * - * *
    * Batch UUID for the operation.
    * 
* * string batch_uuid = 2; - * * @return The batchUuid. */ java.lang.String getBatchUuid(); /** - * - * *
    * Batch UUID for the operation.
    * 
* * string batch_uuid = 2; - * * @return The bytes for batchUuid. */ - com.google.protobuf.ByteString getBatchUuidBytes(); + com.google.protobuf.ByteString + getBatchUuidBytes(); /** - * - * *
    * The time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time when the operation was created.
    * 
@@ -109,32 +75,24 @@ public interface BatchOperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time when the operation finished.
    * 
* * .google.protobuf.Timestamp done_time = 4; - * * @return Whether the doneTime field is set. */ boolean hasDoneTime(); /** - * - * *
    * The time when the operation finished.
    * 
* * .google.protobuf.Timestamp done_time = 4; - * * @return The doneTime. */ com.google.protobuf.Timestamp getDoneTime(); /** - * - * *
    * The time when the operation finished.
    * 
@@ -144,60 +102,45 @@ public interface BatchOperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder(); /** - * - * *
    * The operation type.
    * 
* - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; - * - * + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; * @return The enum numeric value on the wire for operationType. */ int getOperationTypeValue(); /** - * - * *
    * The operation type.
    * 
* - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; - * - * + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; * @return The operationType. */ com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType getOperationType(); /** - * - * *
    * Short description of the operation.
    * 
* * string description = 7; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Short description of the operation.
    * 
* * string description = 7; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Labels associated with the operation.
    * 
@@ -206,31 +149,30 @@ public interface BatchOperationMetadataOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels associated with the operation.
    * 
* * 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 associated with the operation.
    * 
* * map<string, string> labels = 8; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels associated with the operation.
    * 
@@ -239,69 +181,59 @@ public interface BatchOperationMetadataOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Labels associated with the operation.
    * 
* * map<string, string> labels = 8; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Warnings encountered during operation execution.
    * 
* * repeated string warnings = 9; - * * @return A list containing the warnings. */ - java.util.List getWarningsList(); + java.util.List + getWarningsList(); /** - * - * *
    * Warnings encountered during operation execution.
    * 
* * repeated string warnings = 9; - * * @return The count of warnings. */ int getWarningsCount(); /** - * - * *
    * Warnings encountered during operation execution.
    * 
* * repeated string warnings = 9; - * * @param index The index of the element to return. * @return The warnings at the given index. */ java.lang.String getWarnings(int index); /** - * - * *
    * Warnings encountered during operation execution.
    * 
* * repeated string warnings = 9; - * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - com.google.protobuf.ByteString getWarningsBytes(int index); + com.google.protobuf.ByteString + getWarningsBytes(int index); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java similarity index 66% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java index 1c5948fecc77..5cc49b78f1dc 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java @@ -1,445 +1,305 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; -public interface BatchOrBuilder - extends +public interface BatchOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.Batch) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the batch.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the batch.
    * 
* * 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 batch UUID (Unique Universal Identifier). The service
    * generates this value when it creates the batch.
    * 
* * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uuid. */ java.lang.String getUuid(); /** - * - * *
    * Output only. A batch UUID (Unique Universal Identifier). The service
    * generates this value when it creates the batch.
    * 
* * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uuid. */ - com.google.protobuf.ByteString getUuidBytes(); + com.google.protobuf.ByteString + getUuidBytes(); /** - * - * *
    * Output only. The time when the batch was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the batch was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the batch was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Optional. PySpark batch config.
    * 
* - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pysparkBatch field is set. */ boolean hasPysparkBatch(); /** - * - * *
    * Optional. PySpark batch config.
    * 
* - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The pysparkBatch. */ com.google.cloud.dataproc.v1.PySparkBatch getPysparkBatch(); /** - * - * *
    * Optional. PySpark batch config.
    * 
* - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.PySparkBatchOrBuilder getPysparkBatchOrBuilder(); /** - * - * *
    * Optional. Spark batch config.
    * 
* - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkBatch field is set. */ boolean hasSparkBatch(); /** - * - * *
    * Optional. Spark batch config.
    * 
* - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkBatch. */ com.google.cloud.dataproc.v1.SparkBatch getSparkBatch(); /** - * - * *
    * Optional. Spark batch config.
    * 
* - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.SparkBatchOrBuilder getSparkBatchOrBuilder(); /** - * - * *
    * Optional. SparkR batch config.
    * 
* - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkRBatch field is set. */ boolean hasSparkRBatch(); /** - * - * *
    * Optional. SparkR batch config.
    * 
* - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkRBatch. */ com.google.cloud.dataproc.v1.SparkRBatch getSparkRBatch(); /** - * - * *
    * Optional. SparkR batch config.
    * 
* - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.SparkRBatchOrBuilder getSparkRBatchOrBuilder(); /** - * - * *
    * Optional. SparkSql batch config.
    * 
* - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkSqlBatch field is set. */ boolean hasSparkSqlBatch(); /** - * - * *
    * Optional. SparkSql batch config.
    * 
* - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkSqlBatch. */ com.google.cloud.dataproc.v1.SparkSqlBatch getSparkSqlBatch(); /** - * - * *
    * Optional. SparkSql batch config.
    * 
* - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder getSparkSqlBatchOrBuilder(); /** - * - * *
    * Output only. Runtime information about batch execution.
    * 
* - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the runtimeInfo field is set. */ boolean hasRuntimeInfo(); /** - * - * *
    * Output only. Runtime information about batch execution.
    * 
* - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The runtimeInfo. */ com.google.cloud.dataproc.v1.RuntimeInfo getRuntimeInfo(); /** - * - * *
    * Output only. Runtime information about batch execution.
    * 
* - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder getRuntimeInfoOrBuilder(); /** - * - * *
    * Output only. The state of the batch.
    * 
* - * - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The state of the batch.
    * 
* - * - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.dataproc.v1.Batch.State getState(); /** - * - * *
    * Output only. Batch state details, such as a failure
    * description if the state is `FAILED`.
    * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateMessage. */ java.lang.String getStateMessage(); /** - * - * *
    * Output only. Batch state details, such as a failure
    * description if the state is `FAILED`.
    * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stateMessage. */ - com.google.protobuf.ByteString getStateMessageBytes(); + com.google.protobuf.ByteString + getStateMessageBytes(); /** - * - * *
    * Output only. The time when the batch entered a current state.
    * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateTime field is set. */ boolean hasStateTime(); /** - * - * *
    * Output only. The time when the batch entered a current state.
    * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateTime. */ com.google.protobuf.Timestamp getStateTime(); /** - * - * *
    * Output only. The time when the batch entered a current state.
    * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder(); /** - * - * *
    * Output only. The email address of the user who created the batch.
    * 
* * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The creator. */ java.lang.String getCreator(); /** - * - * *
    * Output only. The email address of the user who created the batch.
    * 
* * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for creator. */ - com.google.protobuf.ByteString getCreatorBytes(); + com.google.protobuf.ByteString + getCreatorBytes(); /** - * - * *
    * Optional. The labels to associate with this batch.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -454,8 +314,6 @@ public interface BatchOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this batch.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -468,13 +326,15 @@ public interface BatchOrBuilder
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-  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();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this batch.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -487,10 +347,9 @@ public interface BatchOrBuilder
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this batch.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -505,13 +364,11 @@ public interface BatchOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this batch.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -524,176 +381,127 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Optional. Runtime configuration for the batch execution.
    * 
* - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the runtimeConfig field is set. */ boolean hasRuntimeConfig(); /** - * - * *
    * Optional. Runtime configuration for the batch execution.
    * 
* - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The runtimeConfig. */ com.google.cloud.dataproc.v1.RuntimeConfig getRuntimeConfig(); /** - * - * *
    * Optional. Runtime configuration for the batch execution.
    * 
* - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder getRuntimeConfigOrBuilder(); /** - * - * *
    * Optional. Environment configuration for the batch execution.
    * 
* - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the environmentConfig field is set. */ boolean hasEnvironmentConfig(); /** - * - * *
    * Optional. Environment configuration for the batch execution.
    * 
* - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The environmentConfig. */ com.google.cloud.dataproc.v1.EnvironmentConfig getEnvironmentConfig(); /** - * - * *
    * Optional. Environment configuration for the batch execution.
    * 
* - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder getEnvironmentConfigOrBuilder(); /** - * - * *
    * Output only. The resource name of the operation associated with this batch.
    * 
* * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The operation. */ java.lang.String getOperation(); /** - * - * *
    * Output only. The resource name of the operation associated with this batch.
    * 
* * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for operation. */ - com.google.protobuf.ByteString getOperationBytes(); + com.google.protobuf.ByteString + getOperationBytes(); /** - * - * *
    * Output only. Historical state information for the batch.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getStateHistoryList(); + java.util.List + getStateHistoryList(); /** - * - * *
    * Output only. Historical state information for the batch.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.Batch.StateHistory getStateHistory(int index); /** - * - * *
    * Output only. Historical state information for the batch.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getStateHistoryCount(); /** - * - * *
    * Output only. Historical state information for the batch.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getStateHistoryOrBuilderList(); /** - * - * *
    * Output only. Historical state information for the batch.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder getStateHistoryOrBuilder(int index); + com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder getStateHistoryOrBuilder( + int index); public com.google.cloud.dataproc.v1.Batch.BatchConfigCase getBatchConfigCase(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java new file mode 100644 index 000000000000..91f6dec7c8ef --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java @@ -0,0 +1,302 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +public final class BatchesProto { + private BatchesProto() {} + 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_dataproc_v1_CreateBatchRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_Batch_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_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/dataproc/v1/batches.proto" + + "\022\030google.cloud.dataproc.v1\032\034google/api/a" + + "nnotations.proto\032\027google/api/client.prot" + + "o\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032%google/cloud/data" + + "proc/v1/shared.proto\032#google/longrunning" + + "/operations.proto\032\033google/protobuf/empty" + + ".proto\032\037google/protobuf/timestamp.proto\"" + + "\260\001\n\022CreateBatchRequest\0225\n\006parent\030\001 \001(\tB%" + + "\340A\002\372A\037\022\035dataproc.googleapis.com/Batch\0223\n" + + "\005batch\030\002 \001(\0132\037.google.cloud.dataproc.v1." + + "BatchB\003\340A\002\022\025\n\010batch_id\030\003 \001(\tB\003\340A\001\022\027\n\nreq" + + "uest_id\030\004 \001(\tB\003\340A\001\"F\n\017GetBatchRequest\0223\n" + + "\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dataproc.googleapis" + + ".com/Batch\"|\n\022ListBatchesRequest\0225\n\006pare" + + "nt\030\001 \001(\tB%\340A\002\372A\037\022\035dataproc.googleapis.co" + + "m/Batch\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_" + + "token\030\003 \001(\tB\003\340A\001\"`\n\023ListBatchesResponse\022" + + "0\n\007batches\030\001 \003(\0132\037.google.cloud.dataproc" + + ".v1.Batch\022\027\n\017next_page_token\030\002 \001(\t\"I\n\022De" + + "leteBatchRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035" + + "dataproc.googleapis.com/Batch\"\310\n\n\005Batch\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\021\n\004uuid\030\002 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\022D\n\rpyspark_batch\030\004 \001(\0132&.goo" + + "gle.cloud.dataproc.v1.PySparkBatchB\003\340A\001H" + + "\000\022@\n\013spark_batch\030\005 \001(\0132$.google.cloud.da" + + "taproc.v1.SparkBatchB\003\340A\001H\000\022C\n\rspark_r_b" + + "atch\030\006 \001(\0132%.google.cloud.dataproc.v1.Sp" + + "arkRBatchB\003\340A\001H\000\022G\n\017spark_sql_batch\030\007 \001(" + + "\0132\'.google.cloud.dataproc.v1.SparkSqlBat" + + "chB\003\340A\001H\000\022@\n\014runtime_info\030\010 \001(\0132%.google" + + ".cloud.dataproc.v1.RuntimeInfoB\003\340A\003\0229\n\005s" + + "tate\030\t \001(\0162%.google.cloud.dataproc.v1.Ba" + + "tch.StateB\003\340A\003\022\032\n\rstate_message\030\n \001(\tB\003\340" + + "A\003\0223\n\nstate_time\030\013 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022\024\n\007creator\030\014 \001(\tB\003\340A\003\022@\n" + + "\006labels\030\r \003(\0132+.google.cloud.dataproc.v1" + + ".Batch.LabelsEntryB\003\340A\001\022D\n\016runtime_confi" + + "g\030\016 \001(\0132\'.google.cloud.dataproc.v1.Runti" + + "meConfigB\003\340A\001\022L\n\022environment_config\030\017 \001(" + + "\0132+.google.cloud.dataproc.v1.Environment" + + "ConfigB\003\340A\001\022\026\n\toperation\030\020 \001(\tB\003\340A\003\022H\n\rs" + + "tate_history\030\021 \003(\0132,.google.cloud.datapr" + + "oc.v1.Batch.StateHistoryB\003\340A\003\032\240\001\n\014StateH" + + "istory\0229\n\005state\030\001 \001(\0162%.google.cloud.dat" + + "aproc.v1.Batch.StateB\003\340A\003\022\032\n\rstate_messa" + + "ge\030\002 \001(\tB\003\340A\003\0229\n\020state_start_time\030\003 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\032-\n\013Labe" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "r\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDI" + + "NG\020\001\022\013\n\007RUNNING\020\002\022\016\n\nCANCELLING\020\003\022\r\n\tCAN" + + "CELLED\020\004\022\r\n\tSUCCEEDED\020\005\022\n\n\006FAILED\020\006:[\352AX" + + "\n\035dataproc.googleapis.com/Batch\0227project" + + "s/{project}/locations/{location}/batches" + + "/{batch}B\016\n\014batch_config\"\262\001\n\014PySparkBatc" + + "h\022!\n\024main_python_file_uri\030\001 \001(\tB\003\340A\002\022\021\n\004" + + "args\030\002 \003(\tB\003\340A\001\022\035\n\020python_file_uris\030\003 \003(" + + "\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 \003(\tB\003\340A\001\022\026\n\tfi" + + "le_uris\030\005 \003(\tB\003\340A\001\022\031\n\014archive_uris\030\006 \003(\t" + + "B\003\340A\001\"\265\001\n\nSparkBatch\022 \n\021main_jar_file_ur" + + "i\030\001 \001(\tB\003\340A\001H\000\022\031\n\nmain_class\030\002 \001(\tB\003\340A\001H" + + "\000\022\021\n\004args\030\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 " + + "\003(\tB\003\340A\001\022\026\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014arch" + + "ive_uris\030\006 \003(\tB\003\340A\001B\010\n\006driver\"q\n\013SparkRB" + + "atch\022\034\n\017main_r_file_uri\030\001 \001(\tB\003\340A\002\022\021\n\004ar" + + "gs\030\002 \003(\tB\003\340A\001\022\026\n\tfile_uris\030\003 \003(\tB\003\340A\001\022\031\n" + + "\014archive_uris\030\004 \003(\tB\003\340A\001\"\332\001\n\rSparkSqlBat" + + "ch\022\033\n\016query_file_uri\030\001 \001(\tB\003\340A\002\022Y\n\017query" + + "_variables\030\002 \003(\0132;.google.cloud.dataproc" + + ".v1.SparkSqlBatch.QueryVariablesEntryB\003\340" + + "A\001\022\032\n\rjar_file_uris\030\003 \003(\tB\003\340A\001\0325\n\023QueryV" + + "ariablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\0012\235\006\n\017BatchController\022\352\001\n\013CreateBatc" + + "h\022,.google.cloud.dataproc.v1.CreateBatch" + + "Request\032\035.google.longrunning.Operation\"\215" + + "\001\202\323\344\223\0024\"+/v1/{parent=projects/*/location" + + "s/*}/batches:\005batch\332A\025parent,batch,batch" + + "_id\312A8\n\005Batch\022/google.cloud.dataproc.v1." + + "BatchOperationMetadata\022\222\001\n\010GetBatch\022).go" + + "ogle.cloud.dataproc.v1.GetBatchRequest\032\037" + + ".google.cloud.dataproc.v1.Batch\":\202\323\344\223\002-\022" + + "+/v1/{name=projects/*/locations/*/batche" + + "s/*}\332A\004name\022\250\001\n\013ListBatches\022,.google.clo" + + "ud.dataproc.v1.ListBatchesRequest\032-.goog" + + "le.cloud.dataproc.v1.ListBatchesResponse" + + "\"<\202\323\344\223\002-\022+/v1/{parent=projects/*/locatio" + + "ns/*}/batches\332A\006parent\022\217\001\n\013DeleteBatch\022," + + ".google.cloud.dataproc.v1.DeleteBatchReq" + + "uest\032\026.google.protobuf.Empty\":\202\323\344\223\002-*+/v" + + "1/{name=projects/*/locations/*/batches/*" + + "}\332A\004name\032K\312A\027dataproc.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformBp\n\034com.google.cloud.dataproc.v1B\014B" + + "atchesProtoP\001Z@google.golang.org/genprot" + + "o/googleapis/cloud/dataproc/v1;dataprocb" + + "\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.dataproc.v1.SharedProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor, + new java.lang.String[] { "Parent", "Batch", "BatchId", "RequestId", }); + internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor, + new java.lang.String[] { "Batches", "NextPageToken", }); + internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_dataproc_v1_Batch_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_Batch_descriptor, + new java.lang.String[] { "Name", "Uuid", "CreateTime", "PysparkBatch", "SparkBatch", "SparkRBatch", "SparkSqlBatch", "RuntimeInfo", "State", "StateMessage", "StateTime", "Creator", "Labels", "RuntimeConfig", "EnvironmentConfig", "Operation", "StateHistory", "BatchConfig", }); + internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor = + internal_static_google_cloud_dataproc_v1_Batch_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor, + new java.lang.String[] { "State", "StateMessage", "StateStartTime", }); + internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_Batch_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor, + new java.lang.String[] { "MainPythonFileUri", "Args", "PythonFileUris", "JarFileUris", "FileUris", "ArchiveUris", }); + internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor, + new java.lang.String[] { "MainJarFileUri", "MainClass", "Args", "JarFileUris", "FileUris", "ArchiveUris", "Driver", }); + internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor, + new java.lang.String[] { "MainRFileUri", "Args", "FileUris", "ArchiveUris", }); + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor, + new java.lang.String[] { "QueryFileUri", "QueryVariables", "JarFileUris", }); + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.dataproc.v1.SharedProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java index dc9d2d464cc8..423bb05a84ca 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to cancel a job.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.CancelJobRequest} */ -public final class CancelJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CancelJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.CancelJobRequest) CancelJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CancelJobRequest.newBuilder() to construct. private CancelJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CancelJobRequest() { projectId_ = ""; region_ = ""; @@ -45,42 +27,38 @@ private CancelJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CancelJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CancelJobRequest.class, - com.google.cloud.dataproc.v1.CancelJobRequest.Builder.class); + com.google.cloud.dataproc.v1.CancelJobRequest.class, com.google.cloud.dataproc.v1.CancelJobRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -89,30 +67,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -123,14 +101,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int REGION_FIELD_NUMBER = 3; private volatile java.lang.Object region_; /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ @java.lang.Override @@ -139,29 +114,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -172,14 +147,11 @@ public com.google.protobuf.ByteString getRegionBytes() { public static final int JOB_ID_FIELD_NUMBER = 2; private volatile java.lang.Object jobId_; /** - * - * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The jobId. */ @java.lang.Override @@ -188,29 +160,29 @@ public java.lang.String getJobId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; } } /** - * - * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for jobId. */ @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { + public com.google.protobuf.ByteString + getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); jobId_ = b; return b; } else { @@ -219,7 +191,6 @@ public com.google.protobuf.ByteString getJobIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,7 +202,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -267,17 +239,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.dataproc.v1.CancelJobRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.CancelJobRequest other = - (com.google.cloud.dataproc.v1.CancelJobRequest) obj; + com.google.cloud.dataproc.v1.CancelJobRequest other = (com.google.cloud.dataproc.v1.CancelJobRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getJobId().equals(other.getJobId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getRegion() + .equals(other.getRegion())) return false; + if (!getJobId() + .equals(other.getJobId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,136 +274,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.CancelJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.CancelJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.CancelJobRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.CancelJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to cancel a job.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.CancelJobRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.CancelJobRequest) com.google.cloud.dataproc.v1.CancelJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CancelJobRequest.class, - com.google.cloud.dataproc.v1.CancelJobRequest.Builder.class); + com.google.cloud.dataproc.v1.CancelJobRequest.class, com.google.cloud.dataproc.v1.CancelJobRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.CancelJobRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; } @java.lang.Override @@ -464,8 +432,7 @@ public com.google.cloud.dataproc.v1.CancelJobRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.CancelJobRequest buildPartial() { - com.google.cloud.dataproc.v1.CancelJobRequest result = - new com.google.cloud.dataproc.v1.CancelJobRequest(this); + com.google.cloud.dataproc.v1.CancelJobRequest result = new com.google.cloud.dataproc.v1.CancelJobRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.jobId_ = jobId_; @@ -477,39 +444,38 @@ public com.google.cloud.dataproc.v1.CancelJobRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.CancelJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.CancelJobRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.CancelJobRequest)other); } else { super.mergeFrom(other); return this; @@ -556,31 +522,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + region_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -593,21 +555,19 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -616,22 +576,21 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -639,64 +598,57 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -704,20 +656,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object region_ = ""; /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -726,21 +676,20 @@ public java.lang.String getRegion() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -748,61 +697,54 @@ public com.google.protobuf.ByteString getRegionBytes() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion(java.lang.String value) { + public Builder setRegion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -810,20 +752,18 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { private java.lang.Object jobId_ = ""; /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The jobId. */ public java.lang.String getJobId() { java.lang.Object ref = jobId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; @@ -832,21 +772,20 @@ public java.lang.String getJobId() { } } /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for jobId. */ - public com.google.protobuf.ByteString getJobIdBytes() { + public com.google.protobuf.ByteString + getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); jobId_ = b; return b; } else { @@ -854,68 +793,61 @@ public com.google.protobuf.ByteString getJobIdBytes() { } } /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The jobId to set. * @return This builder for chaining. */ - public Builder setJobId(java.lang.String value) { + public Builder setJobId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearJobId() { - + jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for jobId to set. * @return This builder for chaining. */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { + public Builder setJobIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -925,12 +857,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.CancelJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CancelJobRequest) private static final com.google.cloud.dataproc.v1.CancelJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.CancelJobRequest(); } @@ -939,27 +871,27 @@ public static com.google.cloud.dataproc.v1.CancelJobRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CancelJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -974,4 +906,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.CancelJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java similarity index 64% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java index 51f87edb070d..e523625b4cc4 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java @@ -1,102 +1,71 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface CancelJobRequestOrBuilder - extends +public interface CancelJobRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.CancelJobRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ java.lang.String getRegion(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - com.google.protobuf.ByteString getRegionBytes(); + com.google.protobuf.ByteString + getRegionBytes(); /** - * - * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The jobId. */ java.lang.String getJobId(); /** - * - * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for jobId. */ - com.google.protobuf.ByteString getJobIdBytes(); + com.google.protobuf.ByteString + getJobIdBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java similarity index 59% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java index 90cdc6c414c0..8865b8aee0e6 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Describes the identifying information, config, and status of
  * a Dataproc cluster
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.Cluster}
  */
-public final class Cluster extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Cluster extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.Cluster)
     ClusterOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Cluster.newBuilder() to construct.
   private Cluster(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Cluster() {
     projectId_ = "";
     clusterName_ = "";
@@ -47,52 +29,49 @@ private Cluster() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Cluster();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto
-        .internal_static_google_cloud_dataproc_v1_Cluster_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_Cluster_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.dataproc.v1.ClustersProto
-        .internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.Cluster.class,
-            com.google.cloud.dataproc.v1.Cluster.Builder.class);
+            com.google.cloud.dataproc.v1.Cluster.class, com.google.cloud.dataproc.v1.Cluster.Builder.class);
   }
 
   public static final int PROJECT_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object projectId_;
   /**
-   *
-   *
    * 
    * Required. The Google Cloud Platform project ID that the cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -101,29 +80,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The Google Cloud Platform project ID that the cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -134,15 +113,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int CLUSTER_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object clusterName_; /** - * - * *
-   * Required. The cluster name. Cluster names within a project must be
-   * unique. Names of deleted clusters can be reused.
+   * Required. The cluster name, which must be unique within a project.
+   * The name must start with a lowercase letter, and can contain
+   * up to 51 lowercase letters, numbers, and hyphens. It cannot end
+   * with a hyphen. The name of a deleted cluster can be reused.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ @java.lang.Override @@ -151,30 +129,32 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** - * - * *
-   * Required. The cluster name. Cluster names within a project must be
-   * unique. Names of deleted clusters can be reused.
+   * Required. The cluster name, which must be unique within a project.
+   * The name must start with a lowercase letter, and can contain
+   * up to 51 lowercase letters, numbers, and hyphens. It cannot end
+   * with a hyphen. The name of a deleted cluster can be reused.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -185,18 +165,13 @@ public com.google.protobuf.ByteString getClusterNameBytes() { public static final int CONFIG_FIELD_NUMBER = 3; private com.google.cloud.dataproc.v1.ClusterConfig config_; /** - * - * *
    * Optional. The cluster config for a cluster of Compute Engine Instances.
    * Note that Dataproc may set default values, and values may change
    * when clusters are updated.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the config field is set. */ @java.lang.Override @@ -204,38 +179,27 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Optional. The cluster config for a cluster of Compute Engine Instances.
    * Note that Dataproc may set default values, and values may change
    * when clusters are updated.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The config. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterConfig getConfig() { - return config_ == null - ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() : config_; } /** - * - * *
    * Optional. The cluster config for a cluster of Compute Engine Instances.
    * Note that Dataproc may set default values, and values may change
    * when clusters are updated.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() { @@ -245,22 +209,19 @@ public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() public static final int VIRTUAL_CLUSTER_CONFIG_FIELD_NUMBER = 10; private com.google.cloud.dataproc.v1.VirtualClusterConfig virtualClusterConfig_; /** - * - * *
-   * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-   * does not directly control the underlying compute resources, for example,
-   * when creating a [Dataproc-on-GKE
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-   * Note that Dataproc may set default values, and values may change when
-   * clusters are updated. Exactly one of config or virtualClusterConfig must be
-   * specified.
+   * Optional. The virtual cluster config is used when creating a Dataproc
+   * cluster that does not directly control the underlying compute resources,
+   * for example, when creating a [Dataproc-on-GKE
+   * cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke).
+   * Dataproc may set default values, and values may change when
+   * clusters are updated. Exactly one of
+   * [config][google.cloud.dataproc.v1.Cluster.config] or
+   * [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
+   * must be specified.
    * 
* - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the virtualClusterConfig field is set. */ @java.lang.Override @@ -268,71 +229,64 @@ public boolean hasVirtualClusterConfig() { return virtualClusterConfig_ != null; } /** - * - * *
-   * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-   * does not directly control the underlying compute resources, for example,
-   * when creating a [Dataproc-on-GKE
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-   * Note that Dataproc may set default values, and values may change when
-   * clusters are updated. Exactly one of config or virtualClusterConfig must be
-   * specified.
+   * Optional. The virtual cluster config is used when creating a Dataproc
+   * cluster that does not directly control the underlying compute resources,
+   * for example, when creating a [Dataproc-on-GKE
+   * cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke).
+   * Dataproc may set default values, and values may change when
+   * clusters are updated. Exactly one of
+   * [config][google.cloud.dataproc.v1.Cluster.config] or
+   * [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
+   * must be specified.
    * 
* - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The virtualClusterConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.VirtualClusterConfig getVirtualClusterConfig() { - return virtualClusterConfig_ == null - ? com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance() - : virtualClusterConfig_; + return virtualClusterConfig_ == null ? com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance() : virtualClusterConfig_; } /** - * - * *
-   * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-   * does not directly control the underlying compute resources, for example,
-   * when creating a [Dataproc-on-GKE
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-   * Note that Dataproc may set default values, and values may change when
-   * clusters are updated. Exactly one of config or virtualClusterConfig must be
-   * specified.
+   * Optional. The virtual cluster config is used when creating a Dataproc
+   * cluster that does not directly control the underlying compute resources,
+   * for example, when creating a [Dataproc-on-GKE
+   * cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke).
+   * Dataproc may set default values, and values may change when
+   * clusters are updated. Exactly one of
+   * [config][google.cloud.dataproc.v1.Cluster.config] or
+   * [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
+   * must be specified.
    * 
* - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder - getVirtualClusterConfigOrBuilder() { + public com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder getVirtualClusterConfigOrBuilder() { return getVirtualClusterConfig(); } 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.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_Cluster_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.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_Cluster_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_; } @@ -341,8 +295,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels to associate with this cluster.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -355,22 +307,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @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();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -384,12 +336,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -403,16 +354,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -426,11 +377,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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();
     }
@@ -440,16 +392,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int STATUS_FIELD_NUMBER = 4;
   private com.google.cloud.dataproc.v1.ClusterStatus status_;
   /**
-   *
-   *
    * 
    * Output only. Cluster status.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the status field is set. */ @java.lang.Override @@ -457,34 +404,23 @@ public boolean hasStatus() { return status_ != null; } /** - * - * *
    * Output only. Cluster status.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterStatus getStatus() { - return status_ == null - ? com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance() - : status_; + return status_ == null ? com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance() : status_; } /** - * - * *
    * Output only. Cluster status.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusOrBuilder() { @@ -494,94 +430,72 @@ public com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusOrBuilder() public static final int STATUS_HISTORY_FIELD_NUMBER = 7; private java.util.List statusHistory_; /** - * - * *
    * Output only. The previous cluster status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getStatusHistoryList() { return statusHistory_; } /** - * - * *
    * Output only. The previous cluster status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getStatusHistoryOrBuilderList() { return statusHistory_; } /** - * - * *
    * Output only. The previous cluster status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getStatusHistoryCount() { return statusHistory_.size(); } /** - * - * *
    * Output only. The previous cluster status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterStatus getStatusHistory(int index) { return statusHistory_.get(index); } /** - * - * *
    * Output only. The previous cluster status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusHistoryOrBuilder(int index) { + public com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusHistoryOrBuilder( + int index) { return statusHistory_.get(index); } public static final int CLUSTER_UUID_FIELD_NUMBER = 6; private volatile java.lang.Object clusterUuid_; /** - * - * *
    * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
    * generates this value when it creates the cluster.
    * 
* * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterUuid. */ @java.lang.Override @@ -590,30 +504,30 @@ public java.lang.String getClusterUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; } } /** - * - * *
    * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
    * generates this value when it creates the cluster.
    * 
* * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterUuid. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { + public com.google.protobuf.ByteString + getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -624,18 +538,13 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { public static final int METRICS_FIELD_NUMBER = 9; private com.google.cloud.dataproc.v1.ClusterMetrics metrics_; /** - * - * *
    * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
    * **Beta Feature**: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the metrics field is set. */ @java.lang.Override @@ -643,38 +552,27 @@ public boolean hasMetrics() { return metrics_ != null; } /** - * - * *
    * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
    * **Beta Feature**: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The metrics. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterMetrics getMetrics() { - return metrics_ == null - ? com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance() - : metrics_; + return metrics_ == null ? com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance() : metrics_; } /** - * - * *
    * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
    * **Beta Feature**: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder getMetricsOrBuilder() { @@ -682,7 +580,6 @@ public com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder getMetricsOrBuilder( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -694,7 +591,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -713,8 +611,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < statusHistory_.size(); i++) { output.writeMessage(7, statusHistory_.get(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 8); if (metrics_ != null) { output.writeMessage(9, getMetrics()); } @@ -737,33 +639,37 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getConfig()); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clusterUuid_); } for (int i = 0; i < statusHistory_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, statusHistory_.get(i)); - } - 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, statusHistory_.get(i)); + } + 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 (metrics_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMetrics()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getMetrics()); } if (virtualClusterConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(10, getVirtualClusterConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getVirtualClusterConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -773,33 +679,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.Cluster)) { return super.equals(obj); } com.google.cloud.dataproc.v1.Cluster other = (com.google.cloud.dataproc.v1.Cluster) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getClusterName() + .equals(other.getClusterName())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } if (hasVirtualClusterConfig() != other.hasVirtualClusterConfig()) return false; if (hasVirtualClusterConfig()) { - if (!getVirtualClusterConfig().equals(other.getVirtualClusterConfig())) return false; + if (!getVirtualClusterConfig() + .equals(other.getVirtualClusterConfig())) 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 (!getStatusHistoryList().equals(other.getStatusHistoryList())) return false; - if (!getClusterUuid().equals(other.getClusterUuid())) return false; + if (!getStatusHistoryList() + .equals(other.getStatusHistoryList())) return false; + if (!getClusterUuid() + .equals(other.getClusterUuid())) return false; if (hasMetrics() != other.hasMetrics()) return false; if (hasMetrics()) { - if (!getMetrics().equals(other.getMetrics())) return false; + if (!getMetrics() + .equals(other.getMetrics())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -847,103 +762,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.Cluster parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.Cluster parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.Cluster parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.Cluster parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.dataproc.v1.Cluster parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.Cluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.Cluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.Cluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.Cluster parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.Cluster parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.Cluster 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.dataproc.v1.Cluster parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.Cluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.Cluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.Cluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes the identifying information, config, and status of
    * a Dataproc cluster
@@ -951,52 +860,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.Cluster}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.Cluster)
       com.google.cloud.dataproc.v1.ClusterOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_Cluster_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_Cluster_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.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.Cluster.class,
-              com.google.cloud.dataproc.v1.Cluster.Builder.class);
+              com.google.cloud.dataproc.v1.Cluster.class, com.google.cloud.dataproc.v1.Cluster.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.Cluster.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1042,9 +954,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_Cluster_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_Cluster_descriptor;
     }
 
     @java.lang.Override
@@ -1107,39 +1019,38 @@ public com.google.cloud.dataproc.v1.Cluster buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.Cluster) {
-        return mergeFrom((com.google.cloud.dataproc.v1.Cluster) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.Cluster)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1162,7 +1073,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Cluster other) {
       if (other.hasVirtualClusterConfig()) {
         mergeVirtualClusterConfig(other.getVirtualClusterConfig());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (other.hasStatus()) {
         mergeStatus(other.getStatus());
       }
@@ -1184,10 +1096,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Cluster other) {
             statusHistoryBuilder_ = null;
             statusHistory_ = other.statusHistory_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            statusHistoryBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getStatusHistoryFieldBuilder()
-                    : null;
+            statusHistoryBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getStatusHistoryFieldBuilder() : null;
           } else {
             statusHistoryBuilder_.addAllMessages(other.statusHistory_);
           }
@@ -1226,80 +1137,76 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                projectId_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                clusterName_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 34
-            case 50:
-              {
-                clusterUuid_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 50
-            case 58:
-              {
-                com.google.cloud.dataproc.v1.ClusterStatus m =
-                    input.readMessage(
-                        com.google.cloud.dataproc.v1.ClusterStatus.parser(), extensionRegistry);
-                if (statusHistoryBuilder_ == null) {
-                  ensureStatusHistoryIsMutable();
-                  statusHistory_.add(m);
-                } else {
-                  statusHistoryBuilder_.addMessage(m);
-                }
-                break;
-              } // case 58
-            case 66:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                break;
-              } // case 66
-            case 74:
-              {
-                input.readMessage(getMetricsFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 74
-            case 82:
-              {
-                input.readMessage(
-                    getVirtualClusterConfigFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 82
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              projectId_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 18: {
+              clusterName_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getStatusFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 34
+            case 50: {
+              clusterUuid_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 50
+            case 58: {
+              com.google.cloud.dataproc.v1.ClusterStatus m =
+                  input.readMessage(
+                      com.google.cloud.dataproc.v1.ClusterStatus.parser(),
+                      extensionRegistry);
+              if (statusHistoryBuilder_ == null) {
+                ensureStatusHistoryIsMutable();
+                statusHistory_.add(m);
+              } else {
+                statusHistoryBuilder_.addMessage(m);
+              }
+              break;
+            } // case 58
+            case 66: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              break;
+            } // case 66
+            case 74: {
+              input.readMessage(
+                  getMetricsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 74
+            case 82: {
+              input.readMessage(
+                  getVirtualClusterConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 82
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1309,25 +1216,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object projectId_ = "";
     /**
-     *
-     *
      * 
      * Required. The Google Cloud Platform project ID that the cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1336,21 +1240,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The Google Cloud Platform project ID that the cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -1358,61 +1261,54 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The Google Cloud Platform project ID that the cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Google Cloud Platform project ID that the cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The Google Cloud Platform project ID that the cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1420,21 +1316,21 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object clusterName_ = ""; /** - * - * *
-     * Required. The cluster name. Cluster names within a project must be
-     * unique. Names of deleted clusters can be reused.
+     * Required. The cluster name, which must be unique within a project.
+     * The name must start with a lowercase letter, and can contain
+     * up to 51 lowercase letters, numbers, and hyphens. It cannot end
+     * with a hyphen. The name of a deleted cluster can be reused.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -1443,22 +1339,23 @@ public java.lang.String getClusterName() { } } /** - * - * *
-     * Required. The cluster name. Cluster names within a project must be
-     * unique. Names of deleted clusters can be reused.
+     * Required. The cluster name, which must be unique within a project.
+     * The name must start with a lowercase letter, and can contain
+     * up to 51 lowercase letters, numbers, and hyphens. It cannot end
+     * with a hyphen. The name of a deleted cluster can be reused.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -1466,64 +1363,63 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } } /** - * - * *
-     * Required. The cluster name. Cluster names within a project must be
-     * unique. Names of deleted clusters can be reused.
+     * Required. The cluster name, which must be unique within a project.
+     * The name must start with a lowercase letter, and can contain
+     * up to 51 lowercase letters, numbers, and hyphens. It cannot end
+     * with a hyphen. The name of a deleted cluster can be reused.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName(java.lang.String value) { + public Builder setClusterName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** - * - * *
-     * Required. The cluster name. Cluster names within a project must be
-     * unique. Names of deleted clusters can be reused.
+     * Required. The cluster name, which must be unique within a project.
+     * The name must start with a lowercase letter, and can contain
+     * up to 51 lowercase letters, numbers, and hyphens. It cannot end
+     * with a hyphen. The name of a deleted cluster can be reused.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** - * - * *
-     * Required. The cluster name. Cluster names within a project must be
-     * unique. Names of deleted clusters can be reused.
+     * Required. The cluster name, which must be unique within a project.
+     * The name must start with a lowercase letter, and can contain
+     * up to 51 lowercase letters, numbers, and hyphens. It cannot end
+     * with a hyphen. The name of a deleted cluster can be reused.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1531,64 +1427,45 @@ public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.ClusterConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterConfig, - com.google.cloud.dataproc.v1.ClusterConfig.Builder, - com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> - configBuilder_; + com.google.cloud.dataproc.v1.ClusterConfig, com.google.cloud.dataproc.v1.ClusterConfig.Builder, com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> configBuilder_; /** - * - * *
      * Optional. The cluster config for a cluster of Compute Engine Instances.
      * Note that Dataproc may set default values, and values may change
      * when clusters are updated.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * Optional. The cluster config for a cluster of Compute Engine Instances.
      * Note that Dataproc may set default values, and values may change
      * when clusters are updated.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The config. */ public com.google.cloud.dataproc.v1.ClusterConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Optional. The cluster config for a cluster of Compute Engine Instances.
      * Note that Dataproc may set default values, and values may change
      * when clusters are updated.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { if (configBuilder_ == null) { @@ -1604,19 +1481,16 @@ public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { return this; } /** - * - * *
      * Optional. The cluster config for a cluster of Compute Engine Instances.
      * Note that Dataproc may set default values, and values may change
      * when clusters are updated.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig.Builder builderForValue) { + public Builder setConfig( + com.google.cloud.dataproc.v1.ClusterConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -1627,25 +1501,19 @@ public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig.Builder buil return this; } /** - * - * *
      * Optional. The cluster config for a cluster of Compute Engine Instances.
      * Note that Dataproc may set default values, and values may change
      * when clusters are updated.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.dataproc.v1.ClusterConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.ClusterConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -1657,17 +1525,13 @@ public Builder mergeConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { return this; } /** - * - * *
      * Optional. The cluster config for a cluster of Compute Engine Instances.
      * Note that Dataproc may set default values, and values may change
      * when clusters are updated.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -1681,70 +1545,54 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Optional. The cluster config for a cluster of Compute Engine Instances.
      * Note that Dataproc may set default values, and values may change
      * when clusters are updated.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.ClusterConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The cluster config for a cluster of Compute Engine Instances.
      * Note that Dataproc may set default values, and values may change
      * when clusters are updated.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Optional. The cluster config for a cluster of Compute Engine Instances.
      * Note that Dataproc may set default values, and values may change
      * when clusters are updated.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterConfig, - com.google.cloud.dataproc.v1.ClusterConfig.Builder, - com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> + com.google.cloud.dataproc.v1.ClusterConfig, com.google.cloud.dataproc.v1.ClusterConfig.Builder, com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterConfig, - com.google.cloud.dataproc.v1.ClusterConfig.Builder, - com.google.cloud.dataproc.v1.ClusterConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterConfig, com.google.cloud.dataproc.v1.ClusterConfig.Builder, com.google.cloud.dataproc.v1.ClusterConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; @@ -1752,79 +1600,65 @@ public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() private com.google.cloud.dataproc.v1.VirtualClusterConfig virtualClusterConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.VirtualClusterConfig, - com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder, - com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder> - virtualClusterConfigBuilder_; + com.google.cloud.dataproc.v1.VirtualClusterConfig, com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder, com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder> virtualClusterConfigBuilder_; /** - * - * *
-     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-     * does not directly control the underlying compute resources, for example,
-     * when creating a [Dataproc-on-GKE
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-     * Note that Dataproc may set default values, and values may change when
-     * clusters are updated. Exactly one of config or virtualClusterConfig must be
-     * specified.
+     * Optional. The virtual cluster config is used when creating a Dataproc
+     * cluster that does not directly control the underlying compute resources,
+     * for example, when creating a [Dataproc-on-GKE
+     * cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke).
+     * Dataproc may set default values, and values may change when
+     * clusters are updated. Exactly one of
+     * [config][google.cloud.dataproc.v1.Cluster.config] or
+     * [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
+     * must be specified.
      * 
* - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the virtualClusterConfig field is set. */ public boolean hasVirtualClusterConfig() { return virtualClusterConfigBuilder_ != null || virtualClusterConfig_ != null; } /** - * - * *
-     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-     * does not directly control the underlying compute resources, for example,
-     * when creating a [Dataproc-on-GKE
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-     * Note that Dataproc may set default values, and values may change when
-     * clusters are updated. Exactly one of config or virtualClusterConfig must be
-     * specified.
+     * Optional. The virtual cluster config is used when creating a Dataproc
+     * cluster that does not directly control the underlying compute resources,
+     * for example, when creating a [Dataproc-on-GKE
+     * cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke).
+     * Dataproc may set default values, and values may change when
+     * clusters are updated. Exactly one of
+     * [config][google.cloud.dataproc.v1.Cluster.config] or
+     * [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
+     * must be specified.
      * 
* - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The virtualClusterConfig. */ public com.google.cloud.dataproc.v1.VirtualClusterConfig getVirtualClusterConfig() { if (virtualClusterConfigBuilder_ == null) { - return virtualClusterConfig_ == null - ? com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance() - : virtualClusterConfig_; + return virtualClusterConfig_ == null ? com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance() : virtualClusterConfig_; } else { return virtualClusterConfigBuilder_.getMessage(); } } /** - * - * *
-     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-     * does not directly control the underlying compute resources, for example,
-     * when creating a [Dataproc-on-GKE
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-     * Note that Dataproc may set default values, and values may change when
-     * clusters are updated. Exactly one of config or virtualClusterConfig must be
-     * specified.
+     * Optional. The virtual cluster config is used when creating a Dataproc
+     * cluster that does not directly control the underlying compute resources,
+     * for example, when creating a [Dataproc-on-GKE
+     * cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke).
+     * Dataproc may set default values, and values may change when
+     * clusters are updated. Exactly one of
+     * [config][google.cloud.dataproc.v1.Cluster.config] or
+     * [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
+     * must be specified.
      * 
* - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setVirtualClusterConfig( - com.google.cloud.dataproc.v1.VirtualClusterConfig value) { + public Builder setVirtualClusterConfig(com.google.cloud.dataproc.v1.VirtualClusterConfig value) { if (virtualClusterConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1838,21 +1672,19 @@ public Builder setVirtualClusterConfig( return this; } /** - * - * *
-     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-     * does not directly control the underlying compute resources, for example,
-     * when creating a [Dataproc-on-GKE
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-     * Note that Dataproc may set default values, and values may change when
-     * clusters are updated. Exactly one of config or virtualClusterConfig must be
-     * specified.
+     * Optional. The virtual cluster config is used when creating a Dataproc
+     * cluster that does not directly control the underlying compute resources,
+     * for example, when creating a [Dataproc-on-GKE
+     * cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke).
+     * Dataproc may set default values, and values may change when
+     * clusters are updated. Exactly one of
+     * [config][google.cloud.dataproc.v1.Cluster.config] or
+     * [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
+     * must be specified.
      * 
* - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setVirtualClusterConfig( com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder builderForValue) { @@ -1866,30 +1698,25 @@ public Builder setVirtualClusterConfig( return this; } /** - * - * *
-     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-     * does not directly control the underlying compute resources, for example,
-     * when creating a [Dataproc-on-GKE
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-     * Note that Dataproc may set default values, and values may change when
-     * clusters are updated. Exactly one of config or virtualClusterConfig must be
-     * specified.
+     * Optional. The virtual cluster config is used when creating a Dataproc
+     * cluster that does not directly control the underlying compute resources,
+     * for example, when creating a [Dataproc-on-GKE
+     * cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke).
+     * Dataproc may set default values, and values may change when
+     * clusters are updated. Exactly one of
+     * [config][google.cloud.dataproc.v1.Cluster.config] or
+     * [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
+     * must be specified.
      * 
* - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeVirtualClusterConfig( - com.google.cloud.dataproc.v1.VirtualClusterConfig value) { + public Builder mergeVirtualClusterConfig(com.google.cloud.dataproc.v1.VirtualClusterConfig value) { if (virtualClusterConfigBuilder_ == null) { if (virtualClusterConfig_ != null) { virtualClusterConfig_ = - com.google.cloud.dataproc.v1.VirtualClusterConfig.newBuilder(virtualClusterConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.VirtualClusterConfig.newBuilder(virtualClusterConfig_).mergeFrom(value).buildPartial(); } else { virtualClusterConfig_ = value; } @@ -1901,21 +1728,19 @@ public Builder mergeVirtualClusterConfig( return this; } /** - * - * *
-     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-     * does not directly control the underlying compute resources, for example,
-     * when creating a [Dataproc-on-GKE
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-     * Note that Dataproc may set default values, and values may change when
-     * clusters are updated. Exactly one of config or virtualClusterConfig must be
-     * specified.
+     * Optional. The virtual cluster config is used when creating a Dataproc
+     * cluster that does not directly control the underlying compute resources,
+     * for example, when creating a [Dataproc-on-GKE
+     * cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke).
+     * Dataproc may set default values, and values may change when
+     * clusters are updated. Exactly one of
+     * [config][google.cloud.dataproc.v1.Cluster.config] or
+     * [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
+     * must be specified.
      * 
* - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearVirtualClusterConfig() { if (virtualClusterConfigBuilder_ == null) { @@ -1929,104 +1754,93 @@ public Builder clearVirtualClusterConfig() { return this; } /** - * - * *
-     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-     * does not directly control the underlying compute resources, for example,
-     * when creating a [Dataproc-on-GKE
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-     * Note that Dataproc may set default values, and values may change when
-     * clusters are updated. Exactly one of config or virtualClusterConfig must be
-     * specified.
+     * Optional. The virtual cluster config is used when creating a Dataproc
+     * cluster that does not directly control the underlying compute resources,
+     * for example, when creating a [Dataproc-on-GKE
+     * cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke).
+     * Dataproc may set default values, and values may change when
+     * clusters are updated. Exactly one of
+     * [config][google.cloud.dataproc.v1.Cluster.config] or
+     * [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
+     * must be specified.
      * 
* - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder - getVirtualClusterConfigBuilder() { - + public com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder getVirtualClusterConfigBuilder() { + onChanged(); return getVirtualClusterConfigFieldBuilder().getBuilder(); } /** - * - * *
-     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-     * does not directly control the underlying compute resources, for example,
-     * when creating a [Dataproc-on-GKE
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-     * Note that Dataproc may set default values, and values may change when
-     * clusters are updated. Exactly one of config or virtualClusterConfig must be
-     * specified.
+     * Optional. The virtual cluster config is used when creating a Dataproc
+     * cluster that does not directly control the underlying compute resources,
+     * for example, when creating a [Dataproc-on-GKE
+     * cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke).
+     * Dataproc may set default values, and values may change when
+     * clusters are updated. Exactly one of
+     * [config][google.cloud.dataproc.v1.Cluster.config] or
+     * [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
+     * must be specified.
      * 
* - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder - getVirtualClusterConfigOrBuilder() { + public com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder getVirtualClusterConfigOrBuilder() { if (virtualClusterConfigBuilder_ != null) { return virtualClusterConfigBuilder_.getMessageOrBuilder(); } else { - return virtualClusterConfig_ == null - ? com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance() - : virtualClusterConfig_; + return virtualClusterConfig_ == null ? + com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance() : virtualClusterConfig_; } } /** - * - * *
-     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-     * does not directly control the underlying compute resources, for example,
-     * when creating a [Dataproc-on-GKE
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-     * Note that Dataproc may set default values, and values may change when
-     * clusters are updated. Exactly one of config or virtualClusterConfig must be
-     * specified.
+     * Optional. The virtual cluster config is used when creating a Dataproc
+     * cluster that does not directly control the underlying compute resources,
+     * for example, when creating a [Dataproc-on-GKE
+     * cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke).
+     * Dataproc may set default values, and values may change when
+     * clusters are updated. Exactly one of
+     * [config][google.cloud.dataproc.v1.Cluster.config] or
+     * [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
+     * must be specified.
      * 
* - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.VirtualClusterConfig, - com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder, - com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder> + com.google.cloud.dataproc.v1.VirtualClusterConfig, com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder, com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder> getVirtualClusterConfigFieldBuilder() { if (virtualClusterConfigBuilder_ == null) { - virtualClusterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.VirtualClusterConfig, - com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder, - com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder>( - getVirtualClusterConfig(), getParentForChildren(), isClean()); + virtualClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.VirtualClusterConfig, com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder, com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder>( + getVirtualClusterConfig(), + getParentForChildren(), + isClean()); virtualClusterConfig_ = null; } return virtualClusterConfigBuilder_; } - 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(); @@ -2038,8 +1852,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels to associate with this cluster.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -2052,22 +1864,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @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();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -2081,12 +1893,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -2100,17 +1911,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -2124,11 +1934,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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();
       }
@@ -2136,12 +1947,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -2154,21 +1964,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -2181,20 +1993,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -2207,65 +2018,49 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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.dataproc.v1.ClusterStatus status_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dataproc.v1.ClusterStatus,
-            com.google.cloud.dataproc.v1.ClusterStatus.Builder,
-            com.google.cloud.dataproc.v1.ClusterStatusOrBuilder>
-        statusBuilder_;
+        com.google.cloud.dataproc.v1.ClusterStatus, com.google.cloud.dataproc.v1.ClusterStatus.Builder, com.google.cloud.dataproc.v1.ClusterStatusOrBuilder> statusBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Cluster status.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** - * - * *
      * Output only. Cluster status.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ public com.google.cloud.dataproc.v1.ClusterStatus getStatus() { if (statusBuilder_ == null) { - return status_ == null - ? com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance() - : status_; + return status_ == null ? com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** - * - * *
      * Output only. Cluster status.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStatus(com.google.cloud.dataproc.v1.ClusterStatus value) { if (statusBuilder_ == null) { @@ -2281,17 +2076,14 @@ public Builder setStatus(com.google.cloud.dataproc.v1.ClusterStatus value) { return this; } /** - * - * *
      * Output only. Cluster status.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStatus(com.google.cloud.dataproc.v1.ClusterStatus.Builder builderForValue) { + public Builder setStatus( + com.google.cloud.dataproc.v1.ClusterStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); @@ -2302,23 +2094,17 @@ public Builder setStatus(com.google.cloud.dataproc.v1.ClusterStatus.Builder buil return this; } /** - * - * *
      * Output only. Cluster status.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStatus(com.google.cloud.dataproc.v1.ClusterStatus value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = - com.google.cloud.dataproc.v1.ClusterStatus.newBuilder(status_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.ClusterStatus.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } @@ -2330,15 +2116,11 @@ public Builder mergeStatus(com.google.cloud.dataproc.v1.ClusterStatus value) { return this; } /** - * - * *
      * Output only. Cluster status.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStatus() { if (statusBuilder_ == null) { @@ -2352,96 +2134,71 @@ public Builder clearStatus() { return this; } /** - * - * *
      * Output only. Cluster status.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ClusterStatus.Builder getStatusBuilder() { - + onChanged(); return getStatusFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Cluster status.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null - ? com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance() - : status_; + return status_ == null ? + com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance() : status_; } } /** - * - * *
      * Output only. Cluster status.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterStatus, - com.google.cloud.dataproc.v1.ClusterStatus.Builder, - com.google.cloud.dataproc.v1.ClusterStatusOrBuilder> + com.google.cloud.dataproc.v1.ClusterStatus, com.google.cloud.dataproc.v1.ClusterStatus.Builder, com.google.cloud.dataproc.v1.ClusterStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterStatus, - com.google.cloud.dataproc.v1.ClusterStatus.Builder, - com.google.cloud.dataproc.v1.ClusterStatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterStatus, com.google.cloud.dataproc.v1.ClusterStatus.Builder, com.google.cloud.dataproc.v1.ClusterStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); status_ = null; } return statusBuilder_; } private java.util.List statusHistory_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStatusHistoryIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - statusHistory_ = - new java.util.ArrayList(statusHistory_); + statusHistory_ = new java.util.ArrayList(statusHistory_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterStatus, - com.google.cloud.dataproc.v1.ClusterStatus.Builder, - com.google.cloud.dataproc.v1.ClusterStatusOrBuilder> - statusHistoryBuilder_; + com.google.cloud.dataproc.v1.ClusterStatus, com.google.cloud.dataproc.v1.ClusterStatus.Builder, com.google.cloud.dataproc.v1.ClusterStatusOrBuilder> statusHistoryBuilder_; /** - * - * *
      * Output only. The previous cluster status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getStatusHistoryList() { if (statusHistoryBuilder_ == null) { @@ -2451,15 +2208,11 @@ public java.util.List getStatusHisto } } /** - * - * *
      * Output only. The previous cluster status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getStatusHistoryCount() { if (statusHistoryBuilder_ == null) { @@ -2469,15 +2222,11 @@ public int getStatusHistoryCount() { } } /** - * - * *
      * Output only. The previous cluster status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ClusterStatus getStatusHistory(int index) { if (statusHistoryBuilder_ == null) { @@ -2487,17 +2236,14 @@ public com.google.cloud.dataproc.v1.ClusterStatus getStatusHistory(int index) { } } /** - * - * *
      * Output only. The previous cluster status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStatusHistory(int index, com.google.cloud.dataproc.v1.ClusterStatus value) { + public Builder setStatusHistory( + int index, com.google.cloud.dataproc.v1.ClusterStatus value) { if (statusHistoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2511,15 +2257,11 @@ public Builder setStatusHistory(int index, com.google.cloud.dataproc.v1.ClusterS return this; } /** - * - * *
      * Output only. The previous cluster status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStatusHistory( int index, com.google.cloud.dataproc.v1.ClusterStatus.Builder builderForValue) { @@ -2533,15 +2275,11 @@ public Builder setStatusHistory( return this; } /** - * - * *
      * Output only. The previous cluster status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStatusHistory(com.google.cloud.dataproc.v1.ClusterStatus value) { if (statusHistoryBuilder_ == null) { @@ -2557,17 +2295,14 @@ public Builder addStatusHistory(com.google.cloud.dataproc.v1.ClusterStatus value return this; } /** - * - * *
      * Output only. The previous cluster status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addStatusHistory(int index, com.google.cloud.dataproc.v1.ClusterStatus value) { + public Builder addStatusHistory( + int index, com.google.cloud.dataproc.v1.ClusterStatus value) { if (statusHistoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2581,15 +2316,11 @@ public Builder addStatusHistory(int index, com.google.cloud.dataproc.v1.ClusterS return this; } /** - * - * *
      * Output only. The previous cluster status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStatusHistory( com.google.cloud.dataproc.v1.ClusterStatus.Builder builderForValue) { @@ -2603,15 +2334,11 @@ public Builder addStatusHistory( return this; } /** - * - * *
      * Output only. The previous cluster status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStatusHistory( int index, com.google.cloud.dataproc.v1.ClusterStatus.Builder builderForValue) { @@ -2625,21 +2352,18 @@ public Builder addStatusHistory( return this; } /** - * - * *
      * Output only. The previous cluster status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllStatusHistory( java.lang.Iterable values) { if (statusHistoryBuilder_ == null) { ensureStatusHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statusHistory_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, statusHistory_); onChanged(); } else { statusHistoryBuilder_.addAllMessages(values); @@ -2647,15 +2371,11 @@ public Builder addAllStatusHistory( return this; } /** - * - * *
      * Output only. The previous cluster status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStatusHistory() { if (statusHistoryBuilder_ == null) { @@ -2668,15 +2388,11 @@ public Builder clearStatusHistory() { return this; } /** - * - * *
      * Output only. The previous cluster status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeStatusHistory(int index) { if (statusHistoryBuilder_ == null) { @@ -2689,51 +2405,39 @@ public Builder removeStatusHistory(int index) { return this; } /** - * - * *
      * Output only. The previous cluster status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.ClusterStatus.Builder getStatusHistoryBuilder(int index) { + public com.google.cloud.dataproc.v1.ClusterStatus.Builder getStatusHistoryBuilder( + int index) { return getStatusHistoryFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. The previous cluster status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusHistoryOrBuilder( int index) { if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); - } else { + return statusHistory_.get(index); } else { return statusHistoryBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. The previous cluster status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getStatusHistoryOrBuilderList() { + public java.util.List + getStatusHistoryOrBuilderList() { if (statusHistoryBuilder_ != null) { return statusHistoryBuilder_.getMessageOrBuilderList(); } else { @@ -2741,62 +2445,45 @@ public com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusHistoryOrBui } } /** - * - * *
      * Output only. The previous cluster status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ClusterStatus.Builder addStatusHistoryBuilder() { - return getStatusHistoryFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance()); + return getStatusHistoryFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance()); } /** - * - * *
      * Output only. The previous cluster status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.ClusterStatus.Builder addStatusHistoryBuilder(int index) { - return getStatusHistoryFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance()); + public com.google.cloud.dataproc.v1.ClusterStatus.Builder addStatusHistoryBuilder( + int index) { + return getStatusHistoryFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance()); } /** - * - * *
      * Output only. The previous cluster status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getStatusHistoryBuilderList() { + public java.util.List + getStatusHistoryBuilderList() { return getStatusHistoryFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterStatus, - com.google.cloud.dataproc.v1.ClusterStatus.Builder, - com.google.cloud.dataproc.v1.ClusterStatusOrBuilder> + com.google.cloud.dataproc.v1.ClusterStatus, com.google.cloud.dataproc.v1.ClusterStatus.Builder, com.google.cloud.dataproc.v1.ClusterStatusOrBuilder> getStatusHistoryFieldBuilder() { if (statusHistoryBuilder_ == null) { - statusHistoryBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterStatus, - com.google.cloud.dataproc.v1.ClusterStatus.Builder, - com.google.cloud.dataproc.v1.ClusterStatusOrBuilder>( + statusHistoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterStatus, com.google.cloud.dataproc.v1.ClusterStatus.Builder, com.google.cloud.dataproc.v1.ClusterStatusOrBuilder>( statusHistory_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2808,21 +2495,19 @@ public com.google.cloud.dataproc.v1.ClusterStatus.Builder addStatusHistoryBuilde private java.lang.Object clusterUuid_ = ""; /** - * - * *
      * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
      * generates this value when it creates the cluster.
      * 
* * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterUuid. */ public java.lang.String getClusterUuid() { java.lang.Object ref = clusterUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; @@ -2831,22 +2516,21 @@ public java.lang.String getClusterUuid() { } } /** - * - * *
      * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
      * generates this value when it creates the cluster.
      * 
* * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterUuid. */ - public com.google.protobuf.ByteString getClusterUuidBytes() { + public com.google.protobuf.ByteString + getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -2854,64 +2538,57 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { } } /** - * - * *
      * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
      * generates this value when it creates the cluster.
      * 
* * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuid(java.lang.String value) { + public Builder setClusterUuid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterUuid_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
      * generates this value when it creates the cluster.
      * 
* * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClusterUuid() { - + clusterUuid_ = getDefaultInstance().getClusterUuid(); onChanged(); return this; } /** - * - * *
      * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
      * generates this value when it creates the cluster.
      * 
* * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { + public Builder setClusterUuidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUuid_ = value; onChanged(); return this; @@ -2919,64 +2596,45 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.ClusterMetrics metrics_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterMetrics, - com.google.cloud.dataproc.v1.ClusterMetrics.Builder, - com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder> - metricsBuilder_; + com.google.cloud.dataproc.v1.ClusterMetrics, com.google.cloud.dataproc.v1.ClusterMetrics.Builder, com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder> metricsBuilder_; /** - * - * *
      * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
      * **Beta Feature**: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the metrics field is set. */ public boolean hasMetrics() { return metricsBuilder_ != null || metrics_ != null; } /** - * - * *
      * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
      * **Beta Feature**: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The metrics. */ public com.google.cloud.dataproc.v1.ClusterMetrics getMetrics() { if (metricsBuilder_ == null) { - return metrics_ == null - ? com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance() - : metrics_; + return metrics_ == null ? com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance() : metrics_; } else { return metricsBuilder_.getMessage(); } } /** - * - * *
      * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
      * **Beta Feature**: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMetrics(com.google.cloud.dataproc.v1.ClusterMetrics value) { if (metricsBuilder_ == null) { @@ -2992,19 +2650,16 @@ public Builder setMetrics(com.google.cloud.dataproc.v1.ClusterMetrics value) { return this; } /** - * - * *
      * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
      * **Beta Feature**: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setMetrics(com.google.cloud.dataproc.v1.ClusterMetrics.Builder builderForValue) { + public Builder setMetrics( + com.google.cloud.dataproc.v1.ClusterMetrics.Builder builderForValue) { if (metricsBuilder_ == null) { metrics_ = builderForValue.build(); onChanged(); @@ -3015,25 +2670,19 @@ public Builder setMetrics(com.google.cloud.dataproc.v1.ClusterMetrics.Builder bu return this; } /** - * - * *
      * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
      * **Beta Feature**: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMetrics(com.google.cloud.dataproc.v1.ClusterMetrics value) { if (metricsBuilder_ == null) { if (metrics_ != null) { metrics_ = - com.google.cloud.dataproc.v1.ClusterMetrics.newBuilder(metrics_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.ClusterMetrics.newBuilder(metrics_).mergeFrom(value).buildPartial(); } else { metrics_ = value; } @@ -3045,17 +2694,13 @@ public Builder mergeMetrics(com.google.cloud.dataproc.v1.ClusterMetrics value) { return this; } /** - * - * *
      * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
      * **Beta Feature**: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMetrics() { if (metricsBuilder_ == null) { @@ -3069,77 +2714,61 @@ public Builder clearMetrics() { return this; } /** - * - * *
      * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
      * **Beta Feature**: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ClusterMetrics.Builder getMetricsBuilder() { - + onChanged(); return getMetricsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
      * **Beta Feature**: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder getMetricsOrBuilder() { if (metricsBuilder_ != null) { return metricsBuilder_.getMessageOrBuilder(); } else { - return metrics_ == null - ? com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance() - : metrics_; + return metrics_ == null ? + com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance() : metrics_; } } /** - * - * *
      * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
      * **Beta Feature**: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterMetrics, - com.google.cloud.dataproc.v1.ClusterMetrics.Builder, - com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder> + com.google.cloud.dataproc.v1.ClusterMetrics, com.google.cloud.dataproc.v1.ClusterMetrics.Builder, com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder> getMetricsFieldBuilder() { if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterMetrics, - com.google.cloud.dataproc.v1.ClusterMetrics.Builder, - com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder>( - getMetrics(), getParentForChildren(), isClean()); + metricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterMetrics, com.google.cloud.dataproc.v1.ClusterMetrics.Builder, com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder>( + getMetrics(), + getParentForChildren(), + isClean()); metrics_ = null; } return metricsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3149,12 +2778,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.Cluster) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Cluster) private static final com.google.cloud.dataproc.v1.Cluster DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.Cluster(); } @@ -3163,27 +2792,27 @@ public static com.google.cloud.dataproc.v1.Cluster getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Cluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Cluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3198,4 +2827,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.Cluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java similarity index 60% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java index 303fd32c99ce..010cd61d1fc1 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java @@ -1,79 +1,59 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * The cluster config.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterConfig} */ -public final class ClusterConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ClusterConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterConfig) ClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ClusterConfig.newBuilder() to construct. private ClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ClusterConfig() { configBucket_ = ""; tempBucket_ = ""; initializationActions_ = java.util.Collections.emptyList(); + auxiliaryNodeGroups_ = 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 ClusterConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterConfig.class, - com.google.cloud.dataproc.v1.ClusterConfig.Builder.class); + com.google.cloud.dataproc.v1.ClusterConfig.class, com.google.cloud.dataproc.v1.ClusterConfig.Builder.class); } public static final int CONFIG_BUCKET_FIELD_NUMBER = 1; private volatile java.lang.Object configBucket_; /** - * - * *
    * Optional. A Cloud Storage bucket used to stage job
    * dependencies, config files, and job driver console output.
@@ -89,7 +69,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The configBucket. */ @java.lang.Override @@ -98,15 +77,14 @@ public java.lang.String getConfigBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configBucket_ = s; return s; } } /** - * - * *
    * Optional. A Cloud Storage bucket used to stage job
    * dependencies, config files, and job driver console output.
@@ -122,15 +100,16 @@ public java.lang.String getConfigBucket() {
    * 
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for configBucket. */ @java.lang.Override - public com.google.protobuf.ByteString getConfigBucketBytes() { + public com.google.protobuf.ByteString + getConfigBucketBytes() { java.lang.Object ref = configBucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); configBucket_ = b; return b; } else { @@ -141,18 +120,14 @@ public com.google.protobuf.ByteString getConfigBucketBytes() { public static final int TEMP_BUCKET_FIELD_NUMBER = 2; private volatile java.lang.Object tempBucket_; /** - * - * *
-   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-   * such as Spark and MapReduce history files.
-   * If you do not specify a temp bucket,
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's temp bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket. The default bucket has
-   * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-   * bucket (see
+   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
+   * data, such as Spark and MapReduce history files. If you do not specify a
+   * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
+   * EU) for your cluster's temp bucket according to the Compute Engine zone
+   * where your cluster is deployed, and then create and manage this
+   * project-level, per-location bucket. The default bucket has a TTL of 90
+   * days, but you can use any TTL (or none) if you specify a bucket (see
    * [Dataproc staging and temp
    * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
    * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
@@ -160,7 +135,6 @@ public com.google.protobuf.ByteString getConfigBucketBytes() {
    * 
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The tempBucket. */ @java.lang.Override @@ -169,25 +143,22 @@ public java.lang.String getTempBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tempBucket_ = s; return s; } } /** - * - * *
-   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-   * such as Spark and MapReduce history files.
-   * If you do not specify a temp bucket,
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's temp bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket. The default bucket has
-   * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-   * bucket (see
+   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
+   * data, such as Spark and MapReduce history files. If you do not specify a
+   * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
+   * EU) for your cluster's temp bucket according to the Compute Engine zone
+   * where your cluster is deployed, and then create and manage this
+   * project-level, per-location bucket. The default bucket has a TTL of 90
+   * days, but you can use any TTL (or none) if you specify a bucket (see
    * [Dataproc staging and temp
    * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
    * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
@@ -195,15 +166,16 @@ public java.lang.String getTempBucket() {
    * 
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for tempBucket. */ @java.lang.Override - public com.google.protobuf.ByteString getTempBucketBytes() { + public com.google.protobuf.ByteString + getTempBucketBytes() { java.lang.Object ref = tempBucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tempBucket_ = b; return b; } else { @@ -214,17 +186,12 @@ public com.google.protobuf.ByteString getTempBucketBytes() { public static final int GCE_CLUSTER_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.dataproc.v1.GceClusterConfig gceClusterConfig_; /** - * - * *
    * Optional. The shared Compute Engine config settings for
    * all instances in a cluster.
    * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gceClusterConfig field is set. */ @java.lang.Override @@ -232,36 +199,25 @@ public boolean hasGceClusterConfig() { return gceClusterConfig_ != null; } /** - * - * *
    * Optional. The shared Compute Engine config settings for
    * all instances in a cluster.
    * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The gceClusterConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.GceClusterConfig getGceClusterConfig() { - return gceClusterConfig_ == null - ? com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance() - : gceClusterConfig_; + return gceClusterConfig_ == null ? com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance() : gceClusterConfig_; } /** - * - * *
    * Optional. The shared Compute Engine config settings for
    * all instances in a cluster.
    * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfigOrBuilder() { @@ -271,17 +227,12 @@ public com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfi public static final int MASTER_CONFIG_FIELD_NUMBER = 9; private com.google.cloud.dataproc.v1.InstanceGroupConfig masterConfig_; /** - * - * *
    * Optional. The Compute Engine config settings for
    * the cluster's master instance.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the masterConfig field is set. */ @java.lang.Override @@ -289,36 +240,25 @@ public boolean hasMasterConfig() { return masterConfig_ != null; } /** - * - * *
    * Optional. The Compute Engine config settings for
    * the cluster's master instance.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The masterConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.InstanceGroupConfig getMasterConfig() { - return masterConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() - : masterConfig_; + return masterConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : masterConfig_; } /** - * - * *
    * Optional. The Compute Engine config settings for
    * the cluster's master instance.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfigOrBuilder() { @@ -328,17 +268,12 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfig public static final int WORKER_CONFIG_FIELD_NUMBER = 10; private com.google.cloud.dataproc.v1.InstanceGroupConfig workerConfig_; /** - * - * *
    * Optional. The Compute Engine config settings for
    * the cluster's worker instances.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the workerConfig field is set. */ @java.lang.Override @@ -346,36 +281,25 @@ public boolean hasWorkerConfig() { return workerConfig_ != null; } /** - * - * *
    * Optional. The Compute Engine config settings for
    * the cluster's worker instances.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The workerConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.InstanceGroupConfig getWorkerConfig() { - return workerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() - : workerConfig_; + return workerConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : workerConfig_; } /** - * - * *
    * Optional. The Compute Engine config settings for
    * the cluster's worker instances.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfigOrBuilder() { @@ -385,17 +309,12 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfig public static final int SECONDARY_WORKER_CONFIG_FIELD_NUMBER = 12; private com.google.cloud.dataproc.v1.InstanceGroupConfig secondaryWorkerConfig_; /** - * - * *
    * Optional. The Compute Engine config settings for
    * a cluster's secondary worker instances
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the secondaryWorkerConfig field is set. */ @java.lang.Override @@ -403,56 +322,39 @@ public boolean hasSecondaryWorkerConfig() { return secondaryWorkerConfig_ != null; } /** - * - * *
    * Optional. The Compute Engine config settings for
    * a cluster's secondary worker instances
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The secondaryWorkerConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.InstanceGroupConfig getSecondaryWorkerConfig() { - return secondaryWorkerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() - : secondaryWorkerConfig_; + return secondaryWorkerConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : secondaryWorkerConfig_; } /** - * - * *
    * Optional. The Compute Engine config settings for
    * a cluster's secondary worker instances
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder - getSecondaryWorkerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getSecondaryWorkerConfigOrBuilder() { return getSecondaryWorkerConfig(); } public static final int SOFTWARE_CONFIG_FIELD_NUMBER = 13; private com.google.cloud.dataproc.v1.SoftwareConfig softwareConfig_; /** - * - * *
    * Optional. The config settings for cluster software.
    * 
* - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the softwareConfig field is set. */ @java.lang.Override @@ -460,34 +362,23 @@ public boolean hasSoftwareConfig() { return softwareConfig_ != null; } /** - * - * *
    * Optional. The config settings for cluster software.
    * 
* - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The softwareConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.SoftwareConfig getSoftwareConfig() { - return softwareConfig_ == null - ? com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance() - : softwareConfig_; + return softwareConfig_ == null ? com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance() : softwareConfig_; } /** - * - * *
    * Optional. The config settings for cluster software.
    * 
* - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrBuilder() { @@ -495,11 +386,8 @@ public com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrB } public static final int INITIALIZATION_ACTIONS_FIELD_NUMBER = 11; - private java.util.List - initializationActions_; + private java.util.List initializationActions_; /** - * - * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -515,18 +403,13 @@ public com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrB
    *     fi
    * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getInitializationActionsList() { + public java.util.List getInitializationActionsList() { return initializationActions_; } /** - * - * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -542,18 +425,14 @@ public com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrB
    *     fi
    * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getInitializationActionsOrBuilderList() { return initializationActions_; } /** - * - * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -569,17 +448,13 @@ public com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrB
    *     fi
    * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getInitializationActionsCount() { return initializationActions_.size(); } /** - * - * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -595,17 +470,13 @@ public int getInitializationActionsCount() {
    *     fi
    * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationActions(int index) { return initializationActions_.get(index); } /** - * - * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -621,29 +492,22 @@ public com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationAc
    *     fi
    * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder - getInitializationActionsOrBuilder(int index) { + public com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder getInitializationActionsOrBuilder( + int index) { return initializationActions_.get(index); } public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 15; private com.google.cloud.dataproc.v1.EncryptionConfig encryptionConfig_; /** - * - * *
    * Optional. Encryption settings for the cluster.
    * 
* - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the encryptionConfig field is set. */ @java.lang.Override @@ -651,34 +515,23 @@ public boolean hasEncryptionConfig() { return encryptionConfig_ != null; } /** - * - * *
    * Optional. Encryption settings for the cluster.
    * 
* - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The encryptionConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.EncryptionConfig getEncryptionConfig() { - return encryptionConfig_ == null - ? com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance() - : encryptionConfig_; + return encryptionConfig_ == null ? com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; } /** - * - * *
    * Optional. Encryption settings for the cluster.
    * 
* - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { @@ -688,17 +541,12 @@ public com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder getEncryptionConfi public static final int AUTOSCALING_CONFIG_FIELD_NUMBER = 18; private com.google.cloud.dataproc.v1.AutoscalingConfig autoscalingConfig_; /** - * - * *
    * Optional. Autoscaling config for the policy associated with the cluster.
    * Cluster does not autoscale if this field is unset.
    * 
* - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the autoscalingConfig field is set. */ @java.lang.Override @@ -706,36 +554,25 @@ public boolean hasAutoscalingConfig() { return autoscalingConfig_ != null; } /** - * - * *
    * Optional. Autoscaling config for the policy associated with the cluster.
    * Cluster does not autoscale if this field is unset.
    * 
* - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; * @return The autoscalingConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.AutoscalingConfig getAutoscalingConfig() { - return autoscalingConfig_ == null - ? com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance() - : autoscalingConfig_; + return autoscalingConfig_ == null ? com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_; } /** - * - * *
    * Optional. Autoscaling config for the policy associated with the cluster.
    * Cluster does not autoscale if this field is unset.
    * 
* - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder() { @@ -745,16 +582,11 @@ public com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder getAutoscalingCon public static final int SECURITY_CONFIG_FIELD_NUMBER = 16; private com.google.cloud.dataproc.v1.SecurityConfig securityConfig_; /** - * - * *
    * Optional. Security settings for the cluster.
    * 
* - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the securityConfig field is set. */ @java.lang.Override @@ -762,34 +594,23 @@ public boolean hasSecurityConfig() { return securityConfig_ != null; } /** - * - * *
    * Optional. Security settings for the cluster.
    * 
* - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; * @return The securityConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.SecurityConfig getSecurityConfig() { - return securityConfig_ == null - ? com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance() - : securityConfig_; + return securityConfig_ == null ? com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance() : securityConfig_; } /** - * - * *
    * Optional. Security settings for the cluster.
    * 
* - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SecurityConfigOrBuilder getSecurityConfigOrBuilder() { @@ -799,16 +620,11 @@ public com.google.cloud.dataproc.v1.SecurityConfigOrBuilder getSecurityConfigOrB public static final int LIFECYCLE_CONFIG_FIELD_NUMBER = 17; private com.google.cloud.dataproc.v1.LifecycleConfig lifecycleConfig_; /** - * - * *
    * Optional. Lifecycle setting for the cluster.
    * 
* - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the lifecycleConfig field is set. */ @java.lang.Override @@ -816,34 +632,23 @@ public boolean hasLifecycleConfig() { return lifecycleConfig_ != null; } /** - * - * *
    * Optional. Lifecycle setting for the cluster.
    * 
* - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; * @return The lifecycleConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.LifecycleConfig getLifecycleConfig() { - return lifecycleConfig_ == null - ? com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance() - : lifecycleConfig_; + return lifecycleConfig_ == null ? com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance() : lifecycleConfig_; } /** - * - * *
    * Optional. Lifecycle setting for the cluster.
    * 
* - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder getLifecycleConfigOrBuilder() { @@ -853,16 +658,11 @@ public com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder getLifecycleConfigO public static final int ENDPOINT_CONFIG_FIELD_NUMBER = 19; private com.google.cloud.dataproc.v1.EndpointConfig endpointConfig_; /** - * - * *
    * Optional. Port/endpoint configuration for this cluster
    * 
* - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the endpointConfig field is set. */ @java.lang.Override @@ -870,34 +670,23 @@ public boolean hasEndpointConfig() { return endpointConfig_ != null; } /** - * - * *
    * Optional. Port/endpoint configuration for this cluster
    * 
* - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; * @return The endpointConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.EndpointConfig getEndpointConfig() { - return endpointConfig_ == null - ? com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance() - : endpointConfig_; + return endpointConfig_ == null ? com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance() : endpointConfig_; } /** - * - * *
    * Optional. Port/endpoint configuration for this cluster
    * 
* - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrBuilder() { @@ -907,16 +696,11 @@ public com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrB public static final int METASTORE_CONFIG_FIELD_NUMBER = 20; private com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfig_; /** - * - * *
    * Optional. Metastore configuration.
    * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the metastoreConfig field is set. */ @java.lang.Override @@ -924,34 +708,23 @@ public boolean hasMetastoreConfig() { return metastoreConfig_ != null; } /** - * - * *
    * Optional. Metastore configuration.
    * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * @return The metastoreConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig() { - return metastoreConfig_ == null - ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() - : metastoreConfig_; + return metastoreConfig_ == null ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() : metastoreConfig_; } /** - * - * *
    * Optional. Metastore configuration.
    * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder() { @@ -961,16 +734,11 @@ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigO public static final int DATAPROC_METRIC_CONFIG_FIELD_NUMBER = 23; private com.google.cloud.dataproc.v1.DataprocMetricConfig dataprocMetricConfig_; /** - * - * *
    * Optional. The config for Dataproc metrics.
    * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the dataprocMetricConfig field is set. */ @java.lang.Override @@ -978,43 +746,90 @@ public boolean hasDataprocMetricConfig() { return dataprocMetricConfig_ != null; } /** - * - * *
    * Optional. The config for Dataproc metrics.
    * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataprocMetricConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.DataprocMetricConfig getDataprocMetricConfig() { - return dataprocMetricConfig_ == null - ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance() - : dataprocMetricConfig_; + return dataprocMetricConfig_ == null ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance() : dataprocMetricConfig_; } /** - * - * *
    * Optional. The config for Dataproc metrics.
    * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder - getDataprocMetricConfigOrBuilder() { + public com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder getDataprocMetricConfigOrBuilder() { return getDataprocMetricConfig(); } - private byte memoizedIsInitialized = -1; + public static final int AUXILIARY_NODE_GROUPS_FIELD_NUMBER = 25; + private java.util.List auxiliaryNodeGroups_; + /** + *
+   * Optional. The node group settings.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.List getAuxiliaryNodeGroupsList() { + return auxiliaryNodeGroups_; + } + /** + *
+   * Optional. The node group settings.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.List + getAuxiliaryNodeGroupsOrBuilderList() { + return auxiliaryNodeGroups_; + } + /** + *
+   * Optional. The node group settings.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public int getAuxiliaryNodeGroupsCount() { + return auxiliaryNodeGroups_.size(); + } + /** + *
+   * Optional. The node group settings.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup getAuxiliaryNodeGroups(int index) { + return auxiliaryNodeGroups_.get(index); + } + /** + *
+   * Optional. The node group settings.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder getAuxiliaryNodeGroupsOrBuilder( + int index) { + return auxiliaryNodeGroups_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1026,7 +841,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(configBucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, configBucket_); } @@ -1072,6 +888,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataprocMetricConfig_ != null) { output.writeMessage(23, getDataprocMetricConfig()); } + for (int i = 0; i < auxiliaryNodeGroups_.size(); i++) { + output.writeMessage(25, auxiliaryNodeGroups_.get(i)); + } getUnknownFields().writeTo(output); } @@ -1088,47 +907,60 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tempBucket_); } if (gceClusterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getGceClusterConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getGceClusterConfig()); } if (masterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMasterConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getMasterConfig()); } if (workerConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getWorkerConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getWorkerConfig()); } for (int i = 0; i < initializationActions_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, initializationActions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, initializationActions_.get(i)); } if (secondaryWorkerConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSecondaryWorkerConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getSecondaryWorkerConfig()); } if (softwareConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getSoftwareConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getSoftwareConfig()); } if (encryptionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getEncryptionConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getEncryptionConfig()); } if (securityConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getSecurityConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getSecurityConfig()); } if (lifecycleConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getLifecycleConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getLifecycleConfig()); } if (autoscalingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getAutoscalingConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getAutoscalingConfig()); } if (endpointConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getEndpointConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getEndpointConfig()); } if (metastoreConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getMetastoreConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getMetastoreConfig()); } if (dataprocMetricConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(23, getDataprocMetricConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, getDataprocMetricConfig()); + } + for (int i = 0; i < auxiliaryNodeGroups_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, auxiliaryNodeGroups_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1138,65 +970,81 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ClusterConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ClusterConfig other = - (com.google.cloud.dataproc.v1.ClusterConfig) obj; + com.google.cloud.dataproc.v1.ClusterConfig other = (com.google.cloud.dataproc.v1.ClusterConfig) obj; - if (!getConfigBucket().equals(other.getConfigBucket())) return false; - if (!getTempBucket().equals(other.getTempBucket())) return false; + if (!getConfigBucket() + .equals(other.getConfigBucket())) return false; + if (!getTempBucket() + .equals(other.getTempBucket())) return false; if (hasGceClusterConfig() != other.hasGceClusterConfig()) return false; if (hasGceClusterConfig()) { - if (!getGceClusterConfig().equals(other.getGceClusterConfig())) return false; + if (!getGceClusterConfig() + .equals(other.getGceClusterConfig())) return false; } if (hasMasterConfig() != other.hasMasterConfig()) return false; if (hasMasterConfig()) { - if (!getMasterConfig().equals(other.getMasterConfig())) return false; + if (!getMasterConfig() + .equals(other.getMasterConfig())) return false; } if (hasWorkerConfig() != other.hasWorkerConfig()) return false; if (hasWorkerConfig()) { - if (!getWorkerConfig().equals(other.getWorkerConfig())) return false; + if (!getWorkerConfig() + .equals(other.getWorkerConfig())) return false; } if (hasSecondaryWorkerConfig() != other.hasSecondaryWorkerConfig()) return false; if (hasSecondaryWorkerConfig()) { - if (!getSecondaryWorkerConfig().equals(other.getSecondaryWorkerConfig())) return false; + if (!getSecondaryWorkerConfig() + .equals(other.getSecondaryWorkerConfig())) return false; } if (hasSoftwareConfig() != other.hasSoftwareConfig()) return false; if (hasSoftwareConfig()) { - if (!getSoftwareConfig().equals(other.getSoftwareConfig())) return false; + if (!getSoftwareConfig() + .equals(other.getSoftwareConfig())) return false; } - if (!getInitializationActionsList().equals(other.getInitializationActionsList())) return false; + if (!getInitializationActionsList() + .equals(other.getInitializationActionsList())) return false; if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false; if (hasEncryptionConfig()) { - if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false; + if (!getEncryptionConfig() + .equals(other.getEncryptionConfig())) return false; } if (hasAutoscalingConfig() != other.hasAutoscalingConfig()) return false; if (hasAutoscalingConfig()) { - if (!getAutoscalingConfig().equals(other.getAutoscalingConfig())) return false; + if (!getAutoscalingConfig() + .equals(other.getAutoscalingConfig())) return false; } if (hasSecurityConfig() != other.hasSecurityConfig()) return false; if (hasSecurityConfig()) { - if (!getSecurityConfig().equals(other.getSecurityConfig())) return false; + if (!getSecurityConfig() + .equals(other.getSecurityConfig())) return false; } if (hasLifecycleConfig() != other.hasLifecycleConfig()) return false; if (hasLifecycleConfig()) { - if (!getLifecycleConfig().equals(other.getLifecycleConfig())) return false; + if (!getLifecycleConfig() + .equals(other.getLifecycleConfig())) return false; } if (hasEndpointConfig() != other.hasEndpointConfig()) return false; if (hasEndpointConfig()) { - if (!getEndpointConfig().equals(other.getEndpointConfig())) return false; + if (!getEndpointConfig() + .equals(other.getEndpointConfig())) return false; } if (hasMetastoreConfig() != other.hasMetastoreConfig()) return false; if (hasMetastoreConfig()) { - if (!getMetastoreConfig().equals(other.getMetastoreConfig())) return false; + if (!getMetastoreConfig() + .equals(other.getMetastoreConfig())) return false; } if (hasDataprocMetricConfig() != other.hasDataprocMetricConfig()) return false; if (hasDataprocMetricConfig()) { - if (!getDataprocMetricConfig().equals(other.getDataprocMetricConfig())) return false; + if (!getDataprocMetricConfig() + .equals(other.getDataprocMetricConfig())) return false; } + if (!getAuxiliaryNodeGroupsList() + .equals(other.getAuxiliaryNodeGroupsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1264,141 +1112,139 @@ public int hashCode() { hash = (37 * hash) + DATAPROC_METRIC_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDataprocMetricConfig().hashCode(); } + if (getAuxiliaryNodeGroupsCount() > 0) { + hash = (37 * hash) + AUXILIARY_NODE_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getAuxiliaryNodeGroupsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ClusterConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ClusterConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ClusterConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 cluster config.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterConfig) com.google.cloud.dataproc.v1.ClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterConfig.class, - com.google.cloud.dataproc.v1.ClusterConfig.Builder.class); + com.google.cloud.dataproc.v1.ClusterConfig.class, com.google.cloud.dataproc.v1.ClusterConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ClusterConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1485,13 +1331,20 @@ public Builder clear() { dataprocMetricConfig_ = null; dataprocMetricConfigBuilder_ = null; } + if (auxiliaryNodeGroupsBuilder_ == null) { + auxiliaryNodeGroups_ = java.util.Collections.emptyList(); + } else { + auxiliaryNodeGroups_ = null; + auxiliaryNodeGroupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; } @java.lang.Override @@ -1510,8 +1363,7 @@ public com.google.cloud.dataproc.v1.ClusterConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.ClusterConfig buildPartial() { - com.google.cloud.dataproc.v1.ClusterConfig result = - new com.google.cloud.dataproc.v1.ClusterConfig(this); + com.google.cloud.dataproc.v1.ClusterConfig result = new com.google.cloud.dataproc.v1.ClusterConfig(this); int from_bitField0_ = bitField0_; result.configBucket_ = configBucket_; result.tempBucket_ = tempBucket_; @@ -1584,6 +1436,15 @@ public com.google.cloud.dataproc.v1.ClusterConfig buildPartial() { } else { result.dataprocMetricConfig_ = dataprocMetricConfigBuilder_.build(); } + if (auxiliaryNodeGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + auxiliaryNodeGroups_ = java.util.Collections.unmodifiableList(auxiliaryNodeGroups_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.auxiliaryNodeGroups_ = auxiliaryNodeGroups_; + } else { + result.auxiliaryNodeGroups_ = auxiliaryNodeGroupsBuilder_.build(); + } onBuilt(); return result; } @@ -1592,39 +1453,38 @@ public com.google.cloud.dataproc.v1.ClusterConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ClusterConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.ClusterConfig)other); } else { super.mergeFrom(other); return this; @@ -1674,10 +1534,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { initializationActionsBuilder_ = null; initializationActions_ = other.initializationActions_; bitField0_ = (bitField0_ & ~0x00000001); - initializationActionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInitializationActionsFieldBuilder() - : null; + initializationActionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInitializationActionsFieldBuilder() : null; } else { initializationActionsBuilder_.addAllMessages(other.initializationActions_); } @@ -1704,6 +1563,32 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { if (other.hasDataprocMetricConfig()) { mergeDataprocMetricConfig(other.getDataprocMetricConfig()); } + if (auxiliaryNodeGroupsBuilder_ == null) { + if (!other.auxiliaryNodeGroups_.isEmpty()) { + if (auxiliaryNodeGroups_.isEmpty()) { + auxiliaryNodeGroups_ = other.auxiliaryNodeGroups_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAuxiliaryNodeGroupsIsMutable(); + auxiliaryNodeGroups_.addAll(other.auxiliaryNodeGroups_); + } + onChanged(); + } + } else { + if (!other.auxiliaryNodeGroups_.isEmpty()) { + if (auxiliaryNodeGroupsBuilder_.isEmpty()) { + auxiliaryNodeGroupsBuilder_.dispose(); + auxiliaryNodeGroupsBuilder_ = null; + auxiliaryNodeGroups_ = other.auxiliaryNodeGroups_; + bitField0_ = (bitField0_ & ~0x00000002); + auxiliaryNodeGroupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAuxiliaryNodeGroupsFieldBuilder() : null; + } else { + auxiliaryNodeGroupsBuilder_.addAllMessages(other.auxiliaryNodeGroups_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1730,116 +1615,132 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - configBucket_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - tempBucket_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 66: - { - input.readMessage( - getGceClusterConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - case 74: - { - input.readMessage(getMasterConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - case 82: - { - input.readMessage(getWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 82 - case 90: - { - com.google.cloud.dataproc.v1.NodeInitializationAction m = - input.readMessage( - com.google.cloud.dataproc.v1.NodeInitializationAction.parser(), - extensionRegistry); - if (initializationActionsBuilder_ == null) { - ensureInitializationActionsIsMutable(); - initializationActions_.add(m); - } else { - initializationActionsBuilder_.addMessage(m); - } - break; - } // case 90 - case 98: - { - input.readMessage( - getSecondaryWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 98 - case 106: - { - input.readMessage(getSoftwareConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 106 - case 122: - { - input.readMessage( - getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 122 - case 130: - { - input.readMessage(getSecurityConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 130 - case 138: - { - input.readMessage(getLifecycleConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 138 - case 146: - { - input.readMessage( - getAutoscalingConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 146 - case 154: - { - input.readMessage(getEndpointConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 154 - case 162: - { - input.readMessage(getMetastoreConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 162 - case 186: - { - input.readMessage( - getDataprocMetricConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 186 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + configBucket_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + tempBucket_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 66: { + input.readMessage( + getGceClusterConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 66 + case 74: { + input.readMessage( + getMasterConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 74 + case 82: { + input.readMessage( + getWorkerConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 82 + case 90: { + com.google.cloud.dataproc.v1.NodeInitializationAction m = + input.readMessage( + com.google.cloud.dataproc.v1.NodeInitializationAction.parser(), + extensionRegistry); + if (initializationActionsBuilder_ == null) { + ensureInitializationActionsIsMutable(); + initializationActions_.add(m); + } else { + initializationActionsBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: { + input.readMessage( + getSecondaryWorkerConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 98 + case 106: { + input.readMessage( + getSoftwareConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 106 + case 122: { + input.readMessage( + getEncryptionConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 122 + case 130: { + input.readMessage( + getSecurityConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 130 + case 138: { + input.readMessage( + getLifecycleConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 138 + case 146: { + input.readMessage( + getAutoscalingConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 146 + case 154: { + input.readMessage( + getEndpointConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 154 + case 162: { + input.readMessage( + getMetastoreConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 162 + case 186: { + input.readMessage( + getDataprocMetricConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 186 + case 202: { + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup m = + input.readMessage( + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.parser(), + extensionRegistry); + if (auxiliaryNodeGroupsBuilder_ == null) { + ensureAuxiliaryNodeGroupsIsMutable(); + auxiliaryNodeGroups_.add(m); + } else { + auxiliaryNodeGroupsBuilder_.addMessage(m); + } + break; + } // case 202 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1849,13 +1750,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object configBucket_ = ""; /** - * - * *
      * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
@@ -1871,13 +1769,13 @@ public Builder mergeFrom(
      * 
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The configBucket. */ public java.lang.String getConfigBucket() { java.lang.Object ref = configBucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configBucket_ = s; return s; @@ -1886,8 +1784,6 @@ public java.lang.String getConfigBucket() { } } /** - * - * *
      * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
@@ -1903,14 +1799,15 @@ public java.lang.String getConfigBucket() {
      * 
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for configBucket. */ - public com.google.protobuf.ByteString getConfigBucketBytes() { + public com.google.protobuf.ByteString + getConfigBucketBytes() { java.lang.Object ref = configBucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); configBucket_ = b; return b; } else { @@ -1918,8 +1815,6 @@ public com.google.protobuf.ByteString getConfigBucketBytes() { } } /** - * - * *
      * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
@@ -1935,22 +1830,20 @@ public com.google.protobuf.ByteString getConfigBucketBytes() {
      * 
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The configBucket to set. * @return This builder for chaining. */ - public Builder setConfigBucket(java.lang.String value) { + public Builder setConfigBucket( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + configBucket_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
@@ -1966,18 +1859,15 @@ public Builder setConfigBucket(java.lang.String value) {
      * 
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearConfigBucket() { - + configBucket_ = getDefaultInstance().getConfigBucket(); onChanged(); return this; } /** - * - * *
      * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
@@ -1993,16 +1883,16 @@ public Builder clearConfigBucket() {
      * 
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for configBucket to set. * @return This builder for chaining. */ - public Builder setConfigBucketBytes(com.google.protobuf.ByteString value) { + public Builder setConfigBucketBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + configBucket_ = value; onChanged(); return this; @@ -2010,18 +1900,14 @@ public Builder setConfigBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object tempBucket_ = ""; /** - * - * *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-     * such as Spark and MapReduce history files.
-     * If you do not specify a temp bucket,
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's temp bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket. The default bucket has
-     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-     * bucket (see
+     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
+     * data, such as Spark and MapReduce history files. If you do not specify a
+     * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
+     * EU) for your cluster's temp bucket according to the Compute Engine zone
+     * where your cluster is deployed, and then create and manage this
+     * project-level, per-location bucket. The default bucket has a TTL of 90
+     * days, but you can use any TTL (or none) if you specify a bucket (see
      * [Dataproc staging and temp
      * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
      * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
@@ -2029,13 +1915,13 @@ public Builder setConfigBucketBytes(com.google.protobuf.ByteString value) {
      * 
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The tempBucket. */ public java.lang.String getTempBucket() { java.lang.Object ref = tempBucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tempBucket_ = s; return s; @@ -2044,18 +1930,14 @@ public java.lang.String getTempBucket() { } } /** - * - * *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-     * such as Spark and MapReduce history files.
-     * If you do not specify a temp bucket,
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's temp bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket. The default bucket has
-     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-     * bucket (see
+     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
+     * data, such as Spark and MapReduce history files. If you do not specify a
+     * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
+     * EU) for your cluster's temp bucket according to the Compute Engine zone
+     * where your cluster is deployed, and then create and manage this
+     * project-level, per-location bucket. The default bucket has a TTL of 90
+     * days, but you can use any TTL (or none) if you specify a bucket (see
      * [Dataproc staging and temp
      * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
      * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
@@ -2063,14 +1945,15 @@ public java.lang.String getTempBucket() {
      * 
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for tempBucket. */ - public com.google.protobuf.ByteString getTempBucketBytes() { + public com.google.protobuf.ByteString + getTempBucketBytes() { java.lang.Object ref = tempBucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tempBucket_ = b; return b; } else { @@ -2078,18 +1961,14 @@ public com.google.protobuf.ByteString getTempBucketBytes() { } } /** - * - * *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-     * such as Spark and MapReduce history files.
-     * If you do not specify a temp bucket,
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's temp bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket. The default bucket has
-     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-     * bucket (see
+     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
+     * data, such as Spark and MapReduce history files. If you do not specify a
+     * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
+     * EU) for your cluster's temp bucket according to the Compute Engine zone
+     * where your cluster is deployed, and then create and manage this
+     * project-level, per-location bucket. The default bucket has a TTL of 90
+     * days, but you can use any TTL (or none) if you specify a bucket (see
      * [Dataproc staging and temp
      * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
      * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
@@ -2097,32 +1976,28 @@ public com.google.protobuf.ByteString getTempBucketBytes() {
      * 
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The tempBucket to set. * @return This builder for chaining. */ - public Builder setTempBucket(java.lang.String value) { + public Builder setTempBucket( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + tempBucket_ = value; onChanged(); return this; } /** - * - * *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-     * such as Spark and MapReduce history files.
-     * If you do not specify a temp bucket,
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's temp bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket. The default bucket has
-     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-     * bucket (see
+     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
+     * data, such as Spark and MapReduce history files. If you do not specify a
+     * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
+     * EU) for your cluster's temp bucket according to the Compute Engine zone
+     * where your cluster is deployed, and then create and manage this
+     * project-level, per-location bucket. The default bucket has a TTL of 90
+     * days, but you can use any TTL (or none) if you specify a bucket (see
      * [Dataproc staging and temp
      * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
      * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
@@ -2130,28 +2005,23 @@ public Builder setTempBucket(java.lang.String value) {
      * 
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTempBucket() { - + tempBucket_ = getDefaultInstance().getTempBucket(); onChanged(); return this; } /** - * - * *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-     * such as Spark and MapReduce history files.
-     * If you do not specify a temp bucket,
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's temp bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket. The default bucket has
-     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-     * bucket (see
+     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
+     * data, such as Spark and MapReduce history files. If you do not specify a
+     * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
+     * EU) for your cluster's temp bucket according to the Compute Engine zone
+     * where your cluster is deployed, and then create and manage this
+     * project-level, per-location bucket. The default bucket has a TTL of 90
+     * days, but you can use any TTL (or none) if you specify a bucket (see
      * [Dataproc staging and temp
      * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
      * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
@@ -2159,16 +2029,16 @@ public Builder clearTempBucket() {
      * 
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for tempBucket to set. * @return This builder for chaining. */ - public Builder setTempBucketBytes(com.google.protobuf.ByteString value) { + public Builder setTempBucketBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tempBucket_ = value; onChanged(); return this; @@ -2176,61 +2046,42 @@ public Builder setTempBucketBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.GceClusterConfig gceClusterConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GceClusterConfig, - com.google.cloud.dataproc.v1.GceClusterConfig.Builder, - com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder> - gceClusterConfigBuilder_; + com.google.cloud.dataproc.v1.GceClusterConfig, com.google.cloud.dataproc.v1.GceClusterConfig.Builder, com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder> gceClusterConfigBuilder_; /** - * - * *
      * Optional. The shared Compute Engine config settings for
      * all instances in a cluster.
      * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gceClusterConfig field is set. */ public boolean hasGceClusterConfig() { return gceClusterConfigBuilder_ != null || gceClusterConfig_ != null; } /** - * - * *
      * Optional. The shared Compute Engine config settings for
      * all instances in a cluster.
      * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The gceClusterConfig. */ public com.google.cloud.dataproc.v1.GceClusterConfig getGceClusterConfig() { if (gceClusterConfigBuilder_ == null) { - return gceClusterConfig_ == null - ? com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance() - : gceClusterConfig_; + return gceClusterConfig_ == null ? com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance() : gceClusterConfig_; } else { return gceClusterConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The shared Compute Engine config settings for
      * all instances in a cluster.
      * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConfig value) { if (gceClusterConfigBuilder_ == null) { @@ -2246,16 +2097,12 @@ public Builder setGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConfig return this; } /** - * - * *
      * Optional. The shared Compute Engine config settings for
      * all instances in a cluster.
      * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGceClusterConfig( com.google.cloud.dataproc.v1.GceClusterConfig.Builder builderForValue) { @@ -2269,24 +2116,18 @@ public Builder setGceClusterConfig( return this; } /** - * - * *
      * Optional. The shared Compute Engine config settings for
      * all instances in a cluster.
      * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConfig value) { if (gceClusterConfigBuilder_ == null) { if (gceClusterConfig_ != null) { gceClusterConfig_ = - com.google.cloud.dataproc.v1.GceClusterConfig.newBuilder(gceClusterConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.GceClusterConfig.newBuilder(gceClusterConfig_).mergeFrom(value).buildPartial(); } else { gceClusterConfig_ = value; } @@ -2298,16 +2139,12 @@ public Builder mergeGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConf return this; } /** - * - * *
      * Optional. The shared Compute Engine config settings for
      * all instances in a cluster.
      * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGceClusterConfig() { if (gceClusterConfigBuilder_ == null) { @@ -2321,67 +2158,51 @@ public Builder clearGceClusterConfig() { return this; } /** - * - * *
      * Optional. The shared Compute Engine config settings for
      * all instances in a cluster.
      * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.GceClusterConfig.Builder getGceClusterConfigBuilder() { - + onChanged(); return getGceClusterConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The shared Compute Engine config settings for
      * all instances in a cluster.
      * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfigOrBuilder() { if (gceClusterConfigBuilder_ != null) { return gceClusterConfigBuilder_.getMessageOrBuilder(); } else { - return gceClusterConfig_ == null - ? com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance() - : gceClusterConfig_; + return gceClusterConfig_ == null ? + com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance() : gceClusterConfig_; } } /** - * - * *
      * Optional. The shared Compute Engine config settings for
      * all instances in a cluster.
      * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GceClusterConfig, - com.google.cloud.dataproc.v1.GceClusterConfig.Builder, - com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder> + com.google.cloud.dataproc.v1.GceClusterConfig, com.google.cloud.dataproc.v1.GceClusterConfig.Builder, com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder> getGceClusterConfigFieldBuilder() { if (gceClusterConfigBuilder_ == null) { - gceClusterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GceClusterConfig, - com.google.cloud.dataproc.v1.GceClusterConfig.Builder, - com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder>( - getGceClusterConfig(), getParentForChildren(), isClean()); + gceClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GceClusterConfig, com.google.cloud.dataproc.v1.GceClusterConfig.Builder, com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder>( + getGceClusterConfig(), + getParentForChildren(), + isClean()); gceClusterConfig_ = null; } return gceClusterConfigBuilder_; @@ -2389,61 +2210,42 @@ public com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfi private com.google.cloud.dataproc.v1.InstanceGroupConfig masterConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> - masterConfigBuilder_; + com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> masterConfigBuilder_; /** - * - * *
      * Optional. The Compute Engine config settings for
      * the cluster's master instance.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the masterConfig field is set. */ public boolean hasMasterConfig() { return masterConfigBuilder_ != null || masterConfig_ != null; } /** - * - * *
      * Optional. The Compute Engine config settings for
      * the cluster's master instance.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The masterConfig. */ public com.google.cloud.dataproc.v1.InstanceGroupConfig getMasterConfig() { if (masterConfigBuilder_ == null) { - return masterConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() - : masterConfig_; + return masterConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : masterConfig_; } else { return masterConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The Compute Engine config settings for
      * the cluster's master instance.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (masterConfigBuilder_ == null) { @@ -2459,16 +2261,12 @@ public Builder setMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig return this; } /** - * - * *
      * Optional. The Compute Engine config settings for
      * the cluster's master instance.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMasterConfig( com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder builderForValue) { @@ -2482,24 +2280,18 @@ public Builder setMasterConfig( return this; } /** - * - * *
      * Optional. The Compute Engine config settings for
      * the cluster's master instance.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (masterConfigBuilder_ == null) { if (masterConfig_ != null) { masterConfig_ = - com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder(masterConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder(masterConfig_).mergeFrom(value).buildPartial(); } else { masterConfig_ = value; } @@ -2511,16 +2303,12 @@ public Builder mergeMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfi return this; } /** - * - * *
      * Optional. The Compute Engine config settings for
      * the cluster's master instance.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearMasterConfig() { if (masterConfigBuilder_ == null) { @@ -2534,67 +2322,51 @@ public Builder clearMasterConfig() { return this; } /** - * - * *
      * Optional. The Compute Engine config settings for
      * the cluster's master instance.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getMasterConfigBuilder() { - + onChanged(); return getMasterConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The Compute Engine config settings for
      * the cluster's master instance.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfigOrBuilder() { if (masterConfigBuilder_ != null) { return masterConfigBuilder_.getMessageOrBuilder(); } else { - return masterConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() - : masterConfig_; + return masterConfig_ == null ? + com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : masterConfig_; } } /** - * - * *
      * Optional. The Compute Engine config settings for
      * the cluster's master instance.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> + com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> getMasterConfigFieldBuilder() { if (masterConfigBuilder_ == null) { - masterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>( - getMasterConfig(), getParentForChildren(), isClean()); + masterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>( + getMasterConfig(), + getParentForChildren(), + isClean()); masterConfig_ = null; } return masterConfigBuilder_; @@ -2602,61 +2374,42 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfig private com.google.cloud.dataproc.v1.InstanceGroupConfig workerConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> - workerConfigBuilder_; + com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> workerConfigBuilder_; /** - * - * *
      * Optional. The Compute Engine config settings for
      * the cluster's worker instances.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the workerConfig field is set. */ public boolean hasWorkerConfig() { return workerConfigBuilder_ != null || workerConfig_ != null; } /** - * - * *
      * Optional. The Compute Engine config settings for
      * the cluster's worker instances.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The workerConfig. */ public com.google.cloud.dataproc.v1.InstanceGroupConfig getWorkerConfig() { if (workerConfigBuilder_ == null) { - return workerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() - : workerConfig_; + return workerConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : workerConfig_; } else { return workerConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The Compute Engine config settings for
      * the cluster's worker instances.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (workerConfigBuilder_ == null) { @@ -2672,16 +2425,12 @@ public Builder setWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig return this; } /** - * - * *
      * Optional. The Compute Engine config settings for
      * the cluster's worker instances.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setWorkerConfig( com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder builderForValue) { @@ -2695,24 +2444,18 @@ public Builder setWorkerConfig( return this; } /** - * - * *
      * Optional. The Compute Engine config settings for
      * the cluster's worker instances.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (workerConfigBuilder_ == null) { if (workerConfig_ != null) { workerConfig_ = - com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder(workerConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder(workerConfig_).mergeFrom(value).buildPartial(); } else { workerConfig_ = value; } @@ -2724,16 +2467,12 @@ public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfi return this; } /** - * - * *
      * Optional. The Compute Engine config settings for
      * the cluster's worker instances.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearWorkerConfig() { if (workerConfigBuilder_ == null) { @@ -2747,67 +2486,51 @@ public Builder clearWorkerConfig() { return this; } /** - * - * *
      * Optional. The Compute Engine config settings for
      * the cluster's worker instances.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getWorkerConfigBuilder() { - + onChanged(); return getWorkerConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The Compute Engine config settings for
      * the cluster's worker instances.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfigOrBuilder() { if (workerConfigBuilder_ != null) { return workerConfigBuilder_.getMessageOrBuilder(); } else { - return workerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() - : workerConfig_; + return workerConfig_ == null ? + com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : workerConfig_; } } /** - * - * *
      * Optional. The Compute Engine config settings for
      * the cluster's worker instances.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> + com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> getWorkerConfigFieldBuilder() { if (workerConfigBuilder_ == null) { - workerConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>( - getWorkerConfig(), getParentForChildren(), isClean()); + workerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>( + getWorkerConfig(), + getParentForChildren(), + isClean()); workerConfig_ = null; } return workerConfigBuilder_; @@ -2815,64 +2538,44 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfig private com.google.cloud.dataproc.v1.InstanceGroupConfig secondaryWorkerConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> - secondaryWorkerConfigBuilder_; + com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> secondaryWorkerConfigBuilder_; /** - * - * *
      * Optional. The Compute Engine config settings for
      * a cluster's secondary worker instances
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the secondaryWorkerConfig field is set. */ public boolean hasSecondaryWorkerConfig() { return secondaryWorkerConfigBuilder_ != null || secondaryWorkerConfig_ != null; } /** - * - * *
      * Optional. The Compute Engine config settings for
      * a cluster's secondary worker instances
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The secondaryWorkerConfig. */ public com.google.cloud.dataproc.v1.InstanceGroupConfig getSecondaryWorkerConfig() { if (secondaryWorkerConfigBuilder_ == null) { - return secondaryWorkerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() - : secondaryWorkerConfig_; + return secondaryWorkerConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : secondaryWorkerConfig_; } else { return secondaryWorkerConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The Compute Engine config settings for
      * a cluster's secondary worker instances
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setSecondaryWorkerConfig( - com.google.cloud.dataproc.v1.InstanceGroupConfig value) { + public Builder setSecondaryWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (secondaryWorkerConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2886,16 +2589,12 @@ public Builder setSecondaryWorkerConfig( return this; } /** - * - * *
      * Optional. The Compute Engine config settings for
      * a cluster's secondary worker instances
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSecondaryWorkerConfig( com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder builderForValue) { @@ -2909,25 +2608,18 @@ public Builder setSecondaryWorkerConfig( return this; } /** - * - * *
      * Optional. The Compute Engine config settings for
      * a cluster's secondary worker instances
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeSecondaryWorkerConfig( - com.google.cloud.dataproc.v1.InstanceGroupConfig value) { + public Builder mergeSecondaryWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (secondaryWorkerConfigBuilder_ == null) { if (secondaryWorkerConfig_ != null) { secondaryWorkerConfig_ = - com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder(secondaryWorkerConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder(secondaryWorkerConfig_).mergeFrom(value).buildPartial(); } else { secondaryWorkerConfig_ = value; } @@ -2939,16 +2631,12 @@ public Builder mergeSecondaryWorkerConfig( return this; } /** - * - * *
      * Optional. The Compute Engine config settings for
      * a cluster's secondary worker instances
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSecondaryWorkerConfig() { if (secondaryWorkerConfigBuilder_ == null) { @@ -2962,69 +2650,51 @@ public Builder clearSecondaryWorkerConfig() { return this; } /** - * - * *
      * Optional. The Compute Engine config settings for
      * a cluster's secondary worker instances
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder - getSecondaryWorkerConfigBuilder() { - + public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getSecondaryWorkerConfigBuilder() { + onChanged(); return getSecondaryWorkerConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The Compute Engine config settings for
      * a cluster's secondary worker instances
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder - getSecondaryWorkerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getSecondaryWorkerConfigOrBuilder() { if (secondaryWorkerConfigBuilder_ != null) { return secondaryWorkerConfigBuilder_.getMessageOrBuilder(); } else { - return secondaryWorkerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() - : secondaryWorkerConfig_; + return secondaryWorkerConfig_ == null ? + com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : secondaryWorkerConfig_; } } /** - * - * *
      * Optional. The Compute Engine config settings for
      * a cluster's secondary worker instances
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> + com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> getSecondaryWorkerConfigFieldBuilder() { if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>( - getSecondaryWorkerConfig(), getParentForChildren(), isClean()); + secondaryWorkerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>( + getSecondaryWorkerConfig(), + getParentForChildren(), + isClean()); secondaryWorkerConfig_ = null; } return secondaryWorkerConfigBuilder_; @@ -3032,58 +2702,39 @@ public Builder clearSecondaryWorkerConfig() { private com.google.cloud.dataproc.v1.SoftwareConfig softwareConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SoftwareConfig, - com.google.cloud.dataproc.v1.SoftwareConfig.Builder, - com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder> - softwareConfigBuilder_; + com.google.cloud.dataproc.v1.SoftwareConfig, com.google.cloud.dataproc.v1.SoftwareConfig.Builder, com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder> softwareConfigBuilder_; /** - * - * *
      * Optional. The config settings for cluster software.
      * 
* - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the softwareConfig field is set. */ public boolean hasSoftwareConfig() { return softwareConfigBuilder_ != null || softwareConfig_ != null; } /** - * - * *
      * Optional. The config settings for cluster software.
      * 
* - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The softwareConfig. */ public com.google.cloud.dataproc.v1.SoftwareConfig getSoftwareConfig() { if (softwareConfigBuilder_ == null) { - return softwareConfig_ == null - ? com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance() - : softwareConfig_; + return softwareConfig_ == null ? com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance() : softwareConfig_; } else { return softwareConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The config settings for cluster software.
      * 
* - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig value) { if (softwareConfigBuilder_ == null) { @@ -3099,15 +2750,11 @@ public Builder setSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig val return this; } /** - * - * *
      * Optional. The config settings for cluster software.
      * 
* - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSoftwareConfig( com.google.cloud.dataproc.v1.SoftwareConfig.Builder builderForValue) { @@ -3121,23 +2768,17 @@ public Builder setSoftwareConfig( return this; } /** - * - * *
      * Optional. The config settings for cluster software.
      * 
* - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig value) { if (softwareConfigBuilder_ == null) { if (softwareConfig_ != null) { softwareConfig_ = - com.google.cloud.dataproc.v1.SoftwareConfig.newBuilder(softwareConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.SoftwareConfig.newBuilder(softwareConfig_).mergeFrom(value).buildPartial(); } else { softwareConfig_ = value; } @@ -3149,15 +2790,11 @@ public Builder mergeSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig v return this; } /** - * - * *
      * Optional. The config settings for cluster software.
      * 
* - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSoftwareConfig() { if (softwareConfigBuilder_ == null) { @@ -3171,90 +2808,66 @@ public Builder clearSoftwareConfig() { return this; } /** - * - * *
      * Optional. The config settings for cluster software.
      * 
* - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.SoftwareConfig.Builder getSoftwareConfigBuilder() { - + onChanged(); return getSoftwareConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The config settings for cluster software.
      * 
* - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrBuilder() { if (softwareConfigBuilder_ != null) { return softwareConfigBuilder_.getMessageOrBuilder(); } else { - return softwareConfig_ == null - ? com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance() - : softwareConfig_; + return softwareConfig_ == null ? + com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance() : softwareConfig_; } } /** - * - * *
      * Optional. The config settings for cluster software.
      * 
* - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SoftwareConfig, - com.google.cloud.dataproc.v1.SoftwareConfig.Builder, - com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder> + com.google.cloud.dataproc.v1.SoftwareConfig, com.google.cloud.dataproc.v1.SoftwareConfig.Builder, com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder> getSoftwareConfigFieldBuilder() { if (softwareConfigBuilder_ == null) { - softwareConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SoftwareConfig, - com.google.cloud.dataproc.v1.SoftwareConfig.Builder, - com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder>( - getSoftwareConfig(), getParentForChildren(), isClean()); + softwareConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SoftwareConfig, com.google.cloud.dataproc.v1.SoftwareConfig.Builder, com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder>( + getSoftwareConfig(), + getParentForChildren(), + isClean()); softwareConfig_ = null; } return softwareConfigBuilder_; } - private java.util.List - initializationActions_ = java.util.Collections.emptyList(); - + private java.util.List initializationActions_ = + java.util.Collections.emptyList(); private void ensureInitializationActionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - initializationActions_ = - new java.util.ArrayList( - initializationActions_); + initializationActions_ = new java.util.ArrayList(initializationActions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeInitializationAction, - com.google.cloud.dataproc.v1.NodeInitializationAction.Builder, - com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder> - initializationActionsBuilder_; + com.google.cloud.dataproc.v1.NodeInitializationAction, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder, com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder> initializationActionsBuilder_; /** - * - * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3270,12 +2883,9 @@ private void ensureInitializationActionsIsMutable() {
      *     fi
      * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getInitializationActionsList() { + public java.util.List getInitializationActionsList() { if (initializationActionsBuilder_ == null) { return java.util.Collections.unmodifiableList(initializationActions_); } else { @@ -3283,8 +2893,6 @@ private void ensureInitializationActionsIsMutable() { } } /** - * - * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3300,9 +2908,7 @@ private void ensureInitializationActionsIsMutable() {
      *     fi
      * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public int getInitializationActionsCount() { if (initializationActionsBuilder_ == null) { @@ -3312,8 +2918,6 @@ public int getInitializationActionsCount() { } } /** - * - * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3329,12 +2933,9 @@ public int getInitializationActionsCount() {
      *     fi
      * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationActions( - int index) { + public com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationActions(int index) { if (initializationActionsBuilder_ == null) { return initializationActions_.get(index); } else { @@ -3342,8 +2943,6 @@ public com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationAc } } /** - * - * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3359,9 +2958,7 @@ public com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationAc
      *     fi
      * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setInitializationActions( int index, com.google.cloud.dataproc.v1.NodeInitializationAction value) { @@ -3378,8 +2975,6 @@ public Builder setInitializationActions( return this; } /** - * - * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3395,9 +2990,7 @@ public Builder setInitializationActions(
      *     fi
      * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setInitializationActions( int index, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder builderForValue) { @@ -3411,8 +3004,6 @@ public Builder setInitializationActions( return this; } /** - * - * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3428,12 +3019,9 @@ public Builder setInitializationActions(
      *     fi
      * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addInitializationActions( - com.google.cloud.dataproc.v1.NodeInitializationAction value) { + public Builder addInitializationActions(com.google.cloud.dataproc.v1.NodeInitializationAction value) { if (initializationActionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3447,8 +3035,6 @@ public Builder addInitializationActions( return this; } /** - * - * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3464,9 +3050,7 @@ public Builder addInitializationActions(
      *     fi
      * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addInitializationActions( int index, com.google.cloud.dataproc.v1.NodeInitializationAction value) { @@ -3483,8 +3067,6 @@ public Builder addInitializationActions( return this; } /** - * - * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3500,9 +3082,7 @@ public Builder addInitializationActions(
      *     fi
      * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addInitializationActions( com.google.cloud.dataproc.v1.NodeInitializationAction.Builder builderForValue) { @@ -3516,8 +3096,6 @@ public Builder addInitializationActions( return this; } /** - * - * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3533,9 +3111,7 @@ public Builder addInitializationActions(
      *     fi
      * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addInitializationActions( int index, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder builderForValue) { @@ -3549,8 +3125,6 @@ public Builder addInitializationActions( return this; } /** - * - * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3566,16 +3140,14 @@ public Builder addInitializationActions(
      *     fi
      * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllInitializationActions( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (initializationActionsBuilder_ == null) { ensureInitializationActionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, initializationActions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, initializationActions_); onChanged(); } else { initializationActionsBuilder_.addAllMessages(values); @@ -3583,8 +3155,6 @@ public Builder addAllInitializationActions( return this; } /** - * - * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3600,9 +3170,7 @@ public Builder addAllInitializationActions(
      *     fi
      * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearInitializationActions() { if (initializationActionsBuilder_ == null) { @@ -3615,8 +3183,6 @@ public Builder clearInitializationActions() { return this; } /** - * - * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3632,9 +3198,7 @@ public Builder clearInitializationActions() {
      *     fi
      * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeInitializationActions(int index) { if (initializationActionsBuilder_ == null) { @@ -3647,8 +3211,6 @@ public Builder removeInitializationActions(int index) { return this; } /** - * - * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3664,17 +3226,13 @@ public Builder removeInitializationActions(int index) {
      *     fi
      * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder - getInitializationActionsBuilder(int index) { + public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder getInitializationActionsBuilder( + int index) { return getInitializationActionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3690,21 +3248,16 @@ public Builder removeInitializationActions(int index) {
      *     fi
      * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder - getInitializationActionsOrBuilder(int index) { + public com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder getInitializationActionsOrBuilder( + int index) { if (initializationActionsBuilder_ == null) { - return initializationActions_.get(index); - } else { + return initializationActions_.get(index); } else { return initializationActionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3720,12 +3273,10 @@ public Builder removeInitializationActions(int index) {
      *     fi
      * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getInitializationActionsOrBuilderList() { + public java.util.List + getInitializationActionsOrBuilderList() { if (initializationActionsBuilder_ != null) { return initializationActionsBuilder_.getMessageOrBuilderList(); } else { @@ -3733,8 +3284,6 @@ public Builder removeInitializationActions(int index) { } } /** - * - * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3750,18 +3299,13 @@ public Builder removeInitializationActions(int index) {
      *     fi
      * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder - addInitializationActionsBuilder() { - return getInitializationActionsFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.NodeInitializationAction.getDefaultInstance()); + public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder addInitializationActionsBuilder() { + return getInitializationActionsFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.NodeInitializationAction.getDefaultInstance()); } /** - * - * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3777,19 +3321,14 @@ public Builder removeInitializationActions(int index) {
      *     fi
      * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder - addInitializationActionsBuilder(int index) { - return getInitializationActionsFieldBuilder() - .addBuilder( - index, com.google.cloud.dataproc.v1.NodeInitializationAction.getDefaultInstance()); + public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder addInitializationActionsBuilder( + int index) { + return getInitializationActionsFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.NodeInitializationAction.getDefaultInstance()); } /** - * - * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3805,26 +3344,18 @@ public Builder removeInitializationActions(int index) {
      *     fi
      * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getInitializationActionsBuilderList() { + public java.util.List + getInitializationActionsBuilderList() { return getInitializationActionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeInitializationAction, - com.google.cloud.dataproc.v1.NodeInitializationAction.Builder, - com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder> + com.google.cloud.dataproc.v1.NodeInitializationAction, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder, com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder> getInitializationActionsFieldBuilder() { if (initializationActionsBuilder_ == null) { - initializationActionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeInitializationAction, - com.google.cloud.dataproc.v1.NodeInitializationAction.Builder, - com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder>( + initializationActionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.NodeInitializationAction, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder, com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder>( initializationActions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3836,58 +3367,39 @@ public Builder removeInitializationActions(int index) { private com.google.cloud.dataproc.v1.EncryptionConfig encryptionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EncryptionConfig, - com.google.cloud.dataproc.v1.EncryptionConfig.Builder, - com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder> - encryptionConfigBuilder_; + com.google.cloud.dataproc.v1.EncryptionConfig, com.google.cloud.dataproc.v1.EncryptionConfig.Builder, com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder> encryptionConfigBuilder_; /** - * - * *
      * Optional. Encryption settings for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the encryptionConfig field is set. */ public boolean hasEncryptionConfig() { return encryptionConfigBuilder_ != null || encryptionConfig_ != null; } /** - * - * *
      * Optional. Encryption settings for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The encryptionConfig. */ public com.google.cloud.dataproc.v1.EncryptionConfig getEncryptionConfig() { if (encryptionConfigBuilder_ == null) { - return encryptionConfig_ == null - ? com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance() - : encryptionConfig_; + return encryptionConfig_ == null ? com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; } else { return encryptionConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Encryption settings for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConfig value) { if (encryptionConfigBuilder_ == null) { @@ -3903,15 +3415,11 @@ public Builder setEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConfig return this; } /** - * - * *
      * Optional. Encryption settings for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEncryptionConfig( com.google.cloud.dataproc.v1.EncryptionConfig.Builder builderForValue) { @@ -3925,23 +3433,17 @@ public Builder setEncryptionConfig( return this; } /** - * - * *
      * Optional. Encryption settings for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConfig value) { if (encryptionConfigBuilder_ == null) { if (encryptionConfig_ != null) { encryptionConfig_ = - com.google.cloud.dataproc.v1.EncryptionConfig.newBuilder(encryptionConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.EncryptionConfig.newBuilder(encryptionConfig_).mergeFrom(value).buildPartial(); } else { encryptionConfig_ = value; } @@ -3953,15 +3455,11 @@ public Builder mergeEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConf return this; } /** - * - * *
      * Optional. Encryption settings for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearEncryptionConfig() { if (encryptionConfigBuilder_ == null) { @@ -3975,64 +3473,48 @@ public Builder clearEncryptionConfig() { return this; } /** - * - * *
      * Optional. Encryption settings for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.EncryptionConfig.Builder getEncryptionConfigBuilder() { - + onChanged(); return getEncryptionConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Encryption settings for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { if (encryptionConfigBuilder_ != null) { return encryptionConfigBuilder_.getMessageOrBuilder(); } else { - return encryptionConfig_ == null - ? com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance() - : encryptionConfig_; + return encryptionConfig_ == null ? + com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; } } /** - * - * *
      * Optional. Encryption settings for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EncryptionConfig, - com.google.cloud.dataproc.v1.EncryptionConfig.Builder, - com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder> + com.google.cloud.dataproc.v1.EncryptionConfig, com.google.cloud.dataproc.v1.EncryptionConfig.Builder, com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder> getEncryptionConfigFieldBuilder() { if (encryptionConfigBuilder_ == null) { - encryptionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EncryptionConfig, - com.google.cloud.dataproc.v1.EncryptionConfig.Builder, - com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder>( - getEncryptionConfig(), getParentForChildren(), isClean()); + encryptionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.EncryptionConfig, com.google.cloud.dataproc.v1.EncryptionConfig.Builder, com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder>( + getEncryptionConfig(), + getParentForChildren(), + isClean()); encryptionConfig_ = null; } return encryptionConfigBuilder_; @@ -4040,61 +3522,42 @@ public com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder getEncryptionConfi private com.google.cloud.dataproc.v1.AutoscalingConfig autoscalingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingConfig, - com.google.cloud.dataproc.v1.AutoscalingConfig.Builder, - com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder> - autoscalingConfigBuilder_; + com.google.cloud.dataproc.v1.AutoscalingConfig, com.google.cloud.dataproc.v1.AutoscalingConfig.Builder, com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder> autoscalingConfigBuilder_; /** - * - * *
      * Optional. Autoscaling config for the policy associated with the cluster.
      * Cluster does not autoscale if this field is unset.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the autoscalingConfig field is set. */ public boolean hasAutoscalingConfig() { return autoscalingConfigBuilder_ != null || autoscalingConfig_ != null; } /** - * - * *
      * Optional. Autoscaling config for the policy associated with the cluster.
      * Cluster does not autoscale if this field is unset.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; * @return The autoscalingConfig. */ public com.google.cloud.dataproc.v1.AutoscalingConfig getAutoscalingConfig() { if (autoscalingConfigBuilder_ == null) { - return autoscalingConfig_ == null - ? com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance() - : autoscalingConfig_; + return autoscalingConfig_ == null ? com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_; } else { return autoscalingConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Autoscaling config for the policy associated with the cluster.
      * Cluster does not autoscale if this field is unset.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingConfig value) { if (autoscalingConfigBuilder_ == null) { @@ -4110,16 +3573,12 @@ public Builder setAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingConf return this; } /** - * - * *
      * Optional. Autoscaling config for the policy associated with the cluster.
      * Cluster does not autoscale if this field is unset.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAutoscalingConfig( com.google.cloud.dataproc.v1.AutoscalingConfig.Builder builderForValue) { @@ -4133,24 +3592,18 @@ public Builder setAutoscalingConfig( return this; } /** - * - * *
      * Optional. Autoscaling config for the policy associated with the cluster.
      * Cluster does not autoscale if this field is unset.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingConfig value) { if (autoscalingConfigBuilder_ == null) { if (autoscalingConfig_ != null) { autoscalingConfig_ = - com.google.cloud.dataproc.v1.AutoscalingConfig.newBuilder(autoscalingConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.AutoscalingConfig.newBuilder(autoscalingConfig_).mergeFrom(value).buildPartial(); } else { autoscalingConfig_ = value; } @@ -4162,16 +3615,12 @@ public Builder mergeAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingCo return this; } /** - * - * *
      * Optional. Autoscaling config for the policy associated with the cluster.
      * Cluster does not autoscale if this field is unset.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAutoscalingConfig() { if (autoscalingConfigBuilder_ == null) { @@ -4185,67 +3634,51 @@ public Builder clearAutoscalingConfig() { return this; } /** - * - * *
      * Optional. Autoscaling config for the policy associated with the cluster.
      * Cluster does not autoscale if this field is unset.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.AutoscalingConfig.Builder getAutoscalingConfigBuilder() { - + onChanged(); return getAutoscalingConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Autoscaling config for the policy associated with the cluster.
      * Cluster does not autoscale if this field is unset.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder() { if (autoscalingConfigBuilder_ != null) { return autoscalingConfigBuilder_.getMessageOrBuilder(); } else { - return autoscalingConfig_ == null - ? com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance() - : autoscalingConfig_; + return autoscalingConfig_ == null ? + com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_; } } /** - * - * *
      * Optional. Autoscaling config for the policy associated with the cluster.
      * Cluster does not autoscale if this field is unset.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingConfig, - com.google.cloud.dataproc.v1.AutoscalingConfig.Builder, - com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder> + com.google.cloud.dataproc.v1.AutoscalingConfig, com.google.cloud.dataproc.v1.AutoscalingConfig.Builder, com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder> getAutoscalingConfigFieldBuilder() { if (autoscalingConfigBuilder_ == null) { - autoscalingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingConfig, - com.google.cloud.dataproc.v1.AutoscalingConfig.Builder, - com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder>( - getAutoscalingConfig(), getParentForChildren(), isClean()); + autoscalingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.AutoscalingConfig, com.google.cloud.dataproc.v1.AutoscalingConfig.Builder, com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder>( + getAutoscalingConfig(), + getParentForChildren(), + isClean()); autoscalingConfig_ = null; } return autoscalingConfigBuilder_; @@ -4253,58 +3686,39 @@ public com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder getAutoscalingCon private com.google.cloud.dataproc.v1.SecurityConfig securityConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SecurityConfig, - com.google.cloud.dataproc.v1.SecurityConfig.Builder, - com.google.cloud.dataproc.v1.SecurityConfigOrBuilder> - securityConfigBuilder_; + com.google.cloud.dataproc.v1.SecurityConfig, com.google.cloud.dataproc.v1.SecurityConfig.Builder, com.google.cloud.dataproc.v1.SecurityConfigOrBuilder> securityConfigBuilder_; /** - * - * *
      * Optional. Security settings for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the securityConfig field is set. */ public boolean hasSecurityConfig() { return securityConfigBuilder_ != null || securityConfig_ != null; } /** - * - * *
      * Optional. Security settings for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; * @return The securityConfig. */ public com.google.cloud.dataproc.v1.SecurityConfig getSecurityConfig() { if (securityConfigBuilder_ == null) { - return securityConfig_ == null - ? com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance() - : securityConfig_; + return securityConfig_ == null ? com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance() : securityConfig_; } else { return securityConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Security settings for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig value) { if (securityConfigBuilder_ == null) { @@ -4320,15 +3734,11 @@ public Builder setSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig val return this; } /** - * - * *
      * Optional. Security settings for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSecurityConfig( com.google.cloud.dataproc.v1.SecurityConfig.Builder builderForValue) { @@ -4342,23 +3752,17 @@ public Builder setSecurityConfig( return this; } /** - * - * *
      * Optional. Security settings for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig value) { if (securityConfigBuilder_ == null) { if (securityConfig_ != null) { securityConfig_ = - com.google.cloud.dataproc.v1.SecurityConfig.newBuilder(securityConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.SecurityConfig.newBuilder(securityConfig_).mergeFrom(value).buildPartial(); } else { securityConfig_ = value; } @@ -4370,15 +3774,11 @@ public Builder mergeSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig v return this; } /** - * - * *
      * Optional. Security settings for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSecurityConfig() { if (securityConfigBuilder_ == null) { @@ -4392,64 +3792,48 @@ public Builder clearSecurityConfig() { return this; } /** - * - * *
      * Optional. Security settings for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.SecurityConfig.Builder getSecurityConfigBuilder() { - + onChanged(); return getSecurityConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Security settings for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.SecurityConfigOrBuilder getSecurityConfigOrBuilder() { if (securityConfigBuilder_ != null) { return securityConfigBuilder_.getMessageOrBuilder(); } else { - return securityConfig_ == null - ? com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance() - : securityConfig_; + return securityConfig_ == null ? + com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance() : securityConfig_; } } /** - * - * *
      * Optional. Security settings for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SecurityConfig, - com.google.cloud.dataproc.v1.SecurityConfig.Builder, - com.google.cloud.dataproc.v1.SecurityConfigOrBuilder> + com.google.cloud.dataproc.v1.SecurityConfig, com.google.cloud.dataproc.v1.SecurityConfig.Builder, com.google.cloud.dataproc.v1.SecurityConfigOrBuilder> getSecurityConfigFieldBuilder() { if (securityConfigBuilder_ == null) { - securityConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SecurityConfig, - com.google.cloud.dataproc.v1.SecurityConfig.Builder, - com.google.cloud.dataproc.v1.SecurityConfigOrBuilder>( - getSecurityConfig(), getParentForChildren(), isClean()); + securityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SecurityConfig, com.google.cloud.dataproc.v1.SecurityConfig.Builder, com.google.cloud.dataproc.v1.SecurityConfigOrBuilder>( + getSecurityConfig(), + getParentForChildren(), + isClean()); securityConfig_ = null; } return securityConfigBuilder_; @@ -4457,58 +3841,39 @@ public com.google.cloud.dataproc.v1.SecurityConfigOrBuilder getSecurityConfigOrB private com.google.cloud.dataproc.v1.LifecycleConfig lifecycleConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LifecycleConfig, - com.google.cloud.dataproc.v1.LifecycleConfig.Builder, - com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder> - lifecycleConfigBuilder_; + com.google.cloud.dataproc.v1.LifecycleConfig, com.google.cloud.dataproc.v1.LifecycleConfig.Builder, com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder> lifecycleConfigBuilder_; /** - * - * *
      * Optional. Lifecycle setting for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the lifecycleConfig field is set. */ public boolean hasLifecycleConfig() { return lifecycleConfigBuilder_ != null || lifecycleConfig_ != null; } /** - * - * *
      * Optional. Lifecycle setting for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; * @return The lifecycleConfig. */ public com.google.cloud.dataproc.v1.LifecycleConfig getLifecycleConfig() { if (lifecycleConfigBuilder_ == null) { - return lifecycleConfig_ == null - ? com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance() - : lifecycleConfig_; + return lifecycleConfig_ == null ? com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance() : lifecycleConfig_; } else { return lifecycleConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Lifecycle setting for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig value) { if (lifecycleConfigBuilder_ == null) { @@ -4524,15 +3889,11 @@ public Builder setLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig v return this; } /** - * - * *
      * Optional. Lifecycle setting for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLifecycleConfig( com.google.cloud.dataproc.v1.LifecycleConfig.Builder builderForValue) { @@ -4546,23 +3907,17 @@ public Builder setLifecycleConfig( return this; } /** - * - * *
      * Optional. Lifecycle setting for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig value) { if (lifecycleConfigBuilder_ == null) { if (lifecycleConfig_ != null) { lifecycleConfig_ = - com.google.cloud.dataproc.v1.LifecycleConfig.newBuilder(lifecycleConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.LifecycleConfig.newBuilder(lifecycleConfig_).mergeFrom(value).buildPartial(); } else { lifecycleConfig_ = value; } @@ -4574,15 +3929,11 @@ public Builder mergeLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig return this; } /** - * - * *
      * Optional. Lifecycle setting for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearLifecycleConfig() { if (lifecycleConfigBuilder_ == null) { @@ -4596,64 +3947,48 @@ public Builder clearLifecycleConfig() { return this; } /** - * - * *
      * Optional. Lifecycle setting for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.LifecycleConfig.Builder getLifecycleConfigBuilder() { - + onChanged(); return getLifecycleConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Lifecycle setting for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder getLifecycleConfigOrBuilder() { if (lifecycleConfigBuilder_ != null) { return lifecycleConfigBuilder_.getMessageOrBuilder(); } else { - return lifecycleConfig_ == null - ? com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance() - : lifecycleConfig_; + return lifecycleConfig_ == null ? + com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance() : lifecycleConfig_; } } /** - * - * *
      * Optional. Lifecycle setting for the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LifecycleConfig, - com.google.cloud.dataproc.v1.LifecycleConfig.Builder, - com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder> + com.google.cloud.dataproc.v1.LifecycleConfig, com.google.cloud.dataproc.v1.LifecycleConfig.Builder, com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder> getLifecycleConfigFieldBuilder() { if (lifecycleConfigBuilder_ == null) { - lifecycleConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LifecycleConfig, - com.google.cloud.dataproc.v1.LifecycleConfig.Builder, - com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder>( - getLifecycleConfig(), getParentForChildren(), isClean()); + lifecycleConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.LifecycleConfig, com.google.cloud.dataproc.v1.LifecycleConfig.Builder, com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder>( + getLifecycleConfig(), + getParentForChildren(), + isClean()); lifecycleConfig_ = null; } return lifecycleConfigBuilder_; @@ -4661,58 +3996,39 @@ public com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder getLifecycleConfigO private com.google.cloud.dataproc.v1.EndpointConfig endpointConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EndpointConfig, - com.google.cloud.dataproc.v1.EndpointConfig.Builder, - com.google.cloud.dataproc.v1.EndpointConfigOrBuilder> - endpointConfigBuilder_; + com.google.cloud.dataproc.v1.EndpointConfig, com.google.cloud.dataproc.v1.EndpointConfig.Builder, com.google.cloud.dataproc.v1.EndpointConfigOrBuilder> endpointConfigBuilder_; /** - * - * *
      * Optional. Port/endpoint configuration for this cluster
      * 
* - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the endpointConfig field is set. */ public boolean hasEndpointConfig() { return endpointConfigBuilder_ != null || endpointConfig_ != null; } /** - * - * *
      * Optional. Port/endpoint configuration for this cluster
      * 
* - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; * @return The endpointConfig. */ public com.google.cloud.dataproc.v1.EndpointConfig getEndpointConfig() { if (endpointConfigBuilder_ == null) { - return endpointConfig_ == null - ? com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance() - : endpointConfig_; + return endpointConfig_ == null ? com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance() : endpointConfig_; } else { return endpointConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Port/endpoint configuration for this cluster
      * 
* - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig value) { if (endpointConfigBuilder_ == null) { @@ -4728,15 +4044,11 @@ public Builder setEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig val return this; } /** - * - * *
      * Optional. Port/endpoint configuration for this cluster
      * 
* - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEndpointConfig( com.google.cloud.dataproc.v1.EndpointConfig.Builder builderForValue) { @@ -4750,23 +4062,17 @@ public Builder setEndpointConfig( return this; } /** - * - * *
      * Optional. Port/endpoint configuration for this cluster
      * 
* - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig value) { if (endpointConfigBuilder_ == null) { if (endpointConfig_ != null) { endpointConfig_ = - com.google.cloud.dataproc.v1.EndpointConfig.newBuilder(endpointConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.EndpointConfig.newBuilder(endpointConfig_).mergeFrom(value).buildPartial(); } else { endpointConfig_ = value; } @@ -4778,15 +4084,11 @@ public Builder mergeEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig v return this; } /** - * - * *
      * Optional. Port/endpoint configuration for this cluster
      * 
* - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearEndpointConfig() { if (endpointConfigBuilder_ == null) { @@ -4800,64 +4102,48 @@ public Builder clearEndpointConfig() { return this; } /** - * - * *
      * Optional. Port/endpoint configuration for this cluster
      * 
* - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.EndpointConfig.Builder getEndpointConfigBuilder() { - + onChanged(); return getEndpointConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Port/endpoint configuration for this cluster
      * 
* - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrBuilder() { if (endpointConfigBuilder_ != null) { return endpointConfigBuilder_.getMessageOrBuilder(); } else { - return endpointConfig_ == null - ? com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance() - : endpointConfig_; + return endpointConfig_ == null ? + com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance() : endpointConfig_; } } /** - * - * *
      * Optional. Port/endpoint configuration for this cluster
      * 
* - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EndpointConfig, - com.google.cloud.dataproc.v1.EndpointConfig.Builder, - com.google.cloud.dataproc.v1.EndpointConfigOrBuilder> + com.google.cloud.dataproc.v1.EndpointConfig, com.google.cloud.dataproc.v1.EndpointConfig.Builder, com.google.cloud.dataproc.v1.EndpointConfigOrBuilder> getEndpointConfigFieldBuilder() { if (endpointConfigBuilder_ == null) { - endpointConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EndpointConfig, - com.google.cloud.dataproc.v1.EndpointConfig.Builder, - com.google.cloud.dataproc.v1.EndpointConfigOrBuilder>( - getEndpointConfig(), getParentForChildren(), isClean()); + endpointConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.EndpointConfig, com.google.cloud.dataproc.v1.EndpointConfig.Builder, com.google.cloud.dataproc.v1.EndpointConfigOrBuilder>( + getEndpointConfig(), + getParentForChildren(), + isClean()); endpointConfig_ = null; } return endpointConfigBuilder_; @@ -4865,58 +4151,39 @@ public com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrB private com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.MetastoreConfig, - com.google.cloud.dataproc.v1.MetastoreConfig.Builder, - com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> - metastoreConfigBuilder_; + com.google.cloud.dataproc.v1.MetastoreConfig, com.google.cloud.dataproc.v1.MetastoreConfig.Builder, com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> metastoreConfigBuilder_; /** - * - * *
      * Optional. Metastore configuration.
      * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the metastoreConfig field is set. */ public boolean hasMetastoreConfig() { return metastoreConfigBuilder_ != null || metastoreConfig_ != null; } /** - * - * *
      * Optional. Metastore configuration.
      * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * @return The metastoreConfig. */ public com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig() { if (metastoreConfigBuilder_ == null) { - return metastoreConfig_ == null - ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() - : metastoreConfig_; + return metastoreConfig_ == null ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() : metastoreConfig_; } else { return metastoreConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Metastore configuration.
      * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { if (metastoreConfigBuilder_ == null) { @@ -4932,15 +4199,11 @@ public Builder setMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig v return this; } /** - * - * *
      * Optional. Metastore configuration.
      * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMetastoreConfig( com.google.cloud.dataproc.v1.MetastoreConfig.Builder builderForValue) { @@ -4954,23 +4217,17 @@ public Builder setMetastoreConfig( return this; } /** - * - * *
      * Optional. Metastore configuration.
      * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { if (metastoreConfigBuilder_ == null) { if (metastoreConfig_ != null) { metastoreConfig_ = - com.google.cloud.dataproc.v1.MetastoreConfig.newBuilder(metastoreConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.MetastoreConfig.newBuilder(metastoreConfig_).mergeFrom(value).buildPartial(); } else { metastoreConfig_ = value; } @@ -4982,15 +4239,11 @@ public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig return this; } /** - * - * *
      * Optional. Metastore configuration.
      * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearMetastoreConfig() { if (metastoreConfigBuilder_ == null) { @@ -5004,64 +4257,48 @@ public Builder clearMetastoreConfig() { return this; } /** - * - * *
      * Optional. Metastore configuration.
      * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.MetastoreConfig.Builder getMetastoreConfigBuilder() { - + onChanged(); return getMetastoreConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Metastore configuration.
      * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder() { if (metastoreConfigBuilder_ != null) { return metastoreConfigBuilder_.getMessageOrBuilder(); } else { - return metastoreConfig_ == null - ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() - : metastoreConfig_; + return metastoreConfig_ == null ? + com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() : metastoreConfig_; } } /** - * - * *
      * Optional. Metastore configuration.
      * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.MetastoreConfig, - com.google.cloud.dataproc.v1.MetastoreConfig.Builder, - com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> + com.google.cloud.dataproc.v1.MetastoreConfig, com.google.cloud.dataproc.v1.MetastoreConfig.Builder, com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> getMetastoreConfigFieldBuilder() { if (metastoreConfigBuilder_ == null) { - metastoreConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.MetastoreConfig, - com.google.cloud.dataproc.v1.MetastoreConfig.Builder, - com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder>( - getMetastoreConfig(), getParentForChildren(), isClean()); + metastoreConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.MetastoreConfig, com.google.cloud.dataproc.v1.MetastoreConfig.Builder, com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder>( + getMetastoreConfig(), + getParentForChildren(), + isClean()); metastoreConfig_ = null; } return metastoreConfigBuilder_; @@ -5069,61 +4306,41 @@ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigO private com.google.cloud.dataproc.v1.DataprocMetricConfig dataprocMetricConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DataprocMetricConfig, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder, - com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder> - dataprocMetricConfigBuilder_; + com.google.cloud.dataproc.v1.DataprocMetricConfig, com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder, com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder> dataprocMetricConfigBuilder_; /** - * - * *
      * Optional. The config for Dataproc metrics.
      * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the dataprocMetricConfig field is set. */ public boolean hasDataprocMetricConfig() { return dataprocMetricConfigBuilder_ != null || dataprocMetricConfig_ != null; } /** - * - * *
      * Optional. The config for Dataproc metrics.
      * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataprocMetricConfig. */ public com.google.cloud.dataproc.v1.DataprocMetricConfig getDataprocMetricConfig() { if (dataprocMetricConfigBuilder_ == null) { - return dataprocMetricConfig_ == null - ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance() - : dataprocMetricConfig_; + return dataprocMetricConfig_ == null ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance() : dataprocMetricConfig_; } else { return dataprocMetricConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The config for Dataproc metrics.
      * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDataprocMetricConfig( - com.google.cloud.dataproc.v1.DataprocMetricConfig value) { + public Builder setDataprocMetricConfig(com.google.cloud.dataproc.v1.DataprocMetricConfig value) { if (dataprocMetricConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5137,15 +4354,11 @@ public Builder setDataprocMetricConfig( return this; } /** - * - * *
      * Optional. The config for Dataproc metrics.
      * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDataprocMetricConfig( com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder builderForValue) { @@ -5159,24 +4372,17 @@ public Builder setDataprocMetricConfig( return this; } /** - * - * *
      * Optional. The config for Dataproc metrics.
      * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeDataprocMetricConfig( - com.google.cloud.dataproc.v1.DataprocMetricConfig value) { + public Builder mergeDataprocMetricConfig(com.google.cloud.dataproc.v1.DataprocMetricConfig value) { if (dataprocMetricConfigBuilder_ == null) { if (dataprocMetricConfig_ != null) { dataprocMetricConfig_ = - com.google.cloud.dataproc.v1.DataprocMetricConfig.newBuilder(dataprocMetricConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.DataprocMetricConfig.newBuilder(dataprocMetricConfig_).mergeFrom(value).buildPartial(); } else { dataprocMetricConfig_ = value; } @@ -5188,15 +4394,11 @@ public Builder mergeDataprocMetricConfig( return this; } /** - * - * *
      * Optional. The config for Dataproc metrics.
      * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDataprocMetricConfig() { if (dataprocMetricConfigBuilder_ == null) { @@ -5210,73 +4412,367 @@ public Builder clearDataprocMetricConfig() { return this; } /** - * - * *
      * Optional. The config for Dataproc metrics.
      * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder - getDataprocMetricConfigBuilder() { - + public com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder getDataprocMetricConfigBuilder() { + onChanged(); return getDataprocMetricConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The config for Dataproc metrics.
      * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder - getDataprocMetricConfigOrBuilder() { + public com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder getDataprocMetricConfigOrBuilder() { if (dataprocMetricConfigBuilder_ != null) { return dataprocMetricConfigBuilder_.getMessageOrBuilder(); } else { - return dataprocMetricConfig_ == null - ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance() - : dataprocMetricConfig_; + return dataprocMetricConfig_ == null ? + com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance() : dataprocMetricConfig_; } } /** - * - * *
      * Optional. The config for Dataproc metrics.
      * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DataprocMetricConfig, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder, - com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder> + com.google.cloud.dataproc.v1.DataprocMetricConfig, com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder, com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder> getDataprocMetricConfigFieldBuilder() { if (dataprocMetricConfigBuilder_ == null) { - dataprocMetricConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DataprocMetricConfig, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder, - com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder>( - getDataprocMetricConfig(), getParentForChildren(), isClean()); + dataprocMetricConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.DataprocMetricConfig, com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder, com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder>( + getDataprocMetricConfig(), + getParentForChildren(), + isClean()); dataprocMetricConfig_ = null; } return dataprocMetricConfigBuilder_; } + private java.util.List auxiliaryNodeGroups_ = + java.util.Collections.emptyList(); + private void ensureAuxiliaryNodeGroupsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + auxiliaryNodeGroups_ = new java.util.ArrayList(auxiliaryNodeGroups_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder, com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder> auxiliaryNodeGroupsBuilder_; + + /** + *
+     * Optional. The node group settings.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + public java.util.List getAuxiliaryNodeGroupsList() { + if (auxiliaryNodeGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(auxiliaryNodeGroups_); + } else { + return auxiliaryNodeGroupsBuilder_.getMessageList(); + } + } + /** + *
+     * Optional. The node group settings.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + public int getAuxiliaryNodeGroupsCount() { + if (auxiliaryNodeGroupsBuilder_ == null) { + return auxiliaryNodeGroups_.size(); + } else { + return auxiliaryNodeGroupsBuilder_.getCount(); + } + } + /** + *
+     * Optional. The node group settings.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup getAuxiliaryNodeGroups(int index) { + if (auxiliaryNodeGroupsBuilder_ == null) { + return auxiliaryNodeGroups_.get(index); + } else { + return auxiliaryNodeGroupsBuilder_.getMessage(index); + } + } + /** + *
+     * Optional. The node group settings.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setAuxiliaryNodeGroups( + int index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup value) { + if (auxiliaryNodeGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuxiliaryNodeGroupsIsMutable(); + auxiliaryNodeGroups_.set(index, value); + onChanged(); + } else { + auxiliaryNodeGroupsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Optional. The node group settings.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setAuxiliaryNodeGroups( + int index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder builderForValue) { + if (auxiliaryNodeGroupsBuilder_ == null) { + ensureAuxiliaryNodeGroupsIsMutable(); + auxiliaryNodeGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + auxiliaryNodeGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Optional. The node group settings.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addAuxiliaryNodeGroups(com.google.cloud.dataproc.v1.AuxiliaryNodeGroup value) { + if (auxiliaryNodeGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuxiliaryNodeGroupsIsMutable(); + auxiliaryNodeGroups_.add(value); + onChanged(); + } else { + auxiliaryNodeGroupsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Optional. The node group settings.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addAuxiliaryNodeGroups( + int index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup value) { + if (auxiliaryNodeGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuxiliaryNodeGroupsIsMutable(); + auxiliaryNodeGroups_.add(index, value); + onChanged(); + } else { + auxiliaryNodeGroupsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Optional. The node group settings.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addAuxiliaryNodeGroups( + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder builderForValue) { + if (auxiliaryNodeGroupsBuilder_ == null) { + ensureAuxiliaryNodeGroupsIsMutable(); + auxiliaryNodeGroups_.add(builderForValue.build()); + onChanged(); + } else { + auxiliaryNodeGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Optional. The node group settings.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addAuxiliaryNodeGroups( + int index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder builderForValue) { + if (auxiliaryNodeGroupsBuilder_ == null) { + ensureAuxiliaryNodeGroupsIsMutable(); + auxiliaryNodeGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + auxiliaryNodeGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Optional. The node group settings.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addAllAuxiliaryNodeGroups( + java.lang.Iterable values) { + if (auxiliaryNodeGroupsBuilder_ == null) { + ensureAuxiliaryNodeGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, auxiliaryNodeGroups_); + onChanged(); + } else { + auxiliaryNodeGroupsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Optional. The node group settings.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearAuxiliaryNodeGroups() { + if (auxiliaryNodeGroupsBuilder_ == null) { + auxiliaryNodeGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + auxiliaryNodeGroupsBuilder_.clear(); + } + return this; + } + /** + *
+     * Optional. The node group settings.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeAuxiliaryNodeGroups(int index) { + if (auxiliaryNodeGroupsBuilder_ == null) { + ensureAuxiliaryNodeGroupsIsMutable(); + auxiliaryNodeGroups_.remove(index); + onChanged(); + } else { + auxiliaryNodeGroupsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Optional. The node group settings.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder getAuxiliaryNodeGroupsBuilder( + int index) { + return getAuxiliaryNodeGroupsFieldBuilder().getBuilder(index); + } + /** + *
+     * Optional. The node group settings.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder getAuxiliaryNodeGroupsOrBuilder( + int index) { + if (auxiliaryNodeGroupsBuilder_ == null) { + return auxiliaryNodeGroups_.get(index); } else { + return auxiliaryNodeGroupsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Optional. The node group settings.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + public java.util.List + getAuxiliaryNodeGroupsOrBuilderList() { + if (auxiliaryNodeGroupsBuilder_ != null) { + return auxiliaryNodeGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(auxiliaryNodeGroups_); + } + } + /** + *
+     * Optional. The node group settings.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder addAuxiliaryNodeGroupsBuilder() { + return getAuxiliaryNodeGroupsFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.getDefaultInstance()); + } + /** + *
+     * Optional. The node group settings.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder addAuxiliaryNodeGroupsBuilder( + int index) { + return getAuxiliaryNodeGroupsFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.getDefaultInstance()); + } + /** + *
+     * Optional. The node group settings.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + public java.util.List + getAuxiliaryNodeGroupsBuilderList() { + return getAuxiliaryNodeGroupsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder, com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder> + getAuxiliaryNodeGroupsFieldBuilder() { + if (auxiliaryNodeGroupsBuilder_ == null) { + auxiliaryNodeGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder, com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder>( + auxiliaryNodeGroups_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + auxiliaryNodeGroups_ = null; + } + return auxiliaryNodeGroupsBuilder_; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5286,12 +4782,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ClusterConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterConfig) private static final com.google.cloud.dataproc.v1.ClusterConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterConfig(); } @@ -5300,27 +4796,27 @@ public static com.google.cloud.dataproc.v1.ClusterConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5335,4 +4831,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ClusterConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java similarity index 63% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java index 310c89b51c4f..eb789d1562b6 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface ClusterConfigOrBuilder - extends +public interface ClusterConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. A Cloud Storage bucket used to stage job
    * dependencies, config files, and job driver console output.
@@ -41,13 +23,10 @@ public interface ClusterConfigOrBuilder
    * 
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The configBucket. */ java.lang.String getConfigBucket(); /** - * - * *
    * Optional. A Cloud Storage bucket used to stage job
    * dependencies, config files, and job driver console output.
@@ -63,24 +42,20 @@ public interface ClusterConfigOrBuilder
    * 
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for configBucket. */ - com.google.protobuf.ByteString getConfigBucketBytes(); + com.google.protobuf.ByteString + getConfigBucketBytes(); /** - * - * *
-   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-   * such as Spark and MapReduce history files.
-   * If you do not specify a temp bucket,
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's temp bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket. The default bucket has
-   * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-   * bucket (see
+   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
+   * data, such as Spark and MapReduce history files. If you do not specify a
+   * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
+   * EU) for your cluster's temp bucket according to the Compute Engine zone
+   * where your cluster is deployed, and then create and manage this
+   * project-level, per-location bucket. The default bucket has a TTL of 90
+   * days, but you can use any TTL (or none) if you specify a bucket (see
    * [Dataproc staging and temp
    * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
    * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
@@ -88,23 +63,18 @@ public interface ClusterConfigOrBuilder
    * 
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The tempBucket. */ java.lang.String getTempBucket(); /** - * - * *
-   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-   * such as Spark and MapReduce history files.
-   * If you do not specify a temp bucket,
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's temp bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket. The default bucket has
-   * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-   * bucket (see
+   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
+   * data, such as Spark and MapReduce history files. If you do not specify a
+   * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
+   * EU) for your cluster's temp bucket according to the Compute Engine zone
+   * where your cluster is deployed, and then create and manage this
+   * project-level, per-location bucket. The default bucket has a TTL of 90
+   * days, but you can use any TTL (or none) if you specify a bucket (see
    * [Dataproc staging and temp
    * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
    * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
@@ -112,231 +82,159 @@ public interface ClusterConfigOrBuilder
    * 
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for tempBucket. */ - com.google.protobuf.ByteString getTempBucketBytes(); + com.google.protobuf.ByteString + getTempBucketBytes(); /** - * - * *
    * Optional. The shared Compute Engine config settings for
    * all instances in a cluster.
    * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gceClusterConfig field is set. */ boolean hasGceClusterConfig(); /** - * - * *
    * Optional. The shared Compute Engine config settings for
    * all instances in a cluster.
    * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The gceClusterConfig. */ com.google.cloud.dataproc.v1.GceClusterConfig getGceClusterConfig(); /** - * - * *
    * Optional. The shared Compute Engine config settings for
    * all instances in a cluster.
    * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfigOrBuilder(); /** - * - * *
    * Optional. The Compute Engine config settings for
    * the cluster's master instance.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the masterConfig field is set. */ boolean hasMasterConfig(); /** - * - * *
    * Optional. The Compute Engine config settings for
    * the cluster's master instance.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The masterConfig. */ com.google.cloud.dataproc.v1.InstanceGroupConfig getMasterConfig(); /** - * - * *
    * Optional. The Compute Engine config settings for
    * the cluster's master instance.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfigOrBuilder(); /** - * - * *
    * Optional. The Compute Engine config settings for
    * the cluster's worker instances.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the workerConfig field is set. */ boolean hasWorkerConfig(); /** - * - * *
    * Optional. The Compute Engine config settings for
    * the cluster's worker instances.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The workerConfig. */ com.google.cloud.dataproc.v1.InstanceGroupConfig getWorkerConfig(); /** - * - * *
    * Optional. The Compute Engine config settings for
    * the cluster's worker instances.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfigOrBuilder(); /** - * - * *
    * Optional. The Compute Engine config settings for
    * a cluster's secondary worker instances
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the secondaryWorkerConfig field is set. */ boolean hasSecondaryWorkerConfig(); /** - * - * *
    * Optional. The Compute Engine config settings for
    * a cluster's secondary worker instances
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The secondaryWorkerConfig. */ com.google.cloud.dataproc.v1.InstanceGroupConfig getSecondaryWorkerConfig(); /** - * - * *
    * Optional. The Compute Engine config settings for
    * a cluster's secondary worker instances
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getSecondaryWorkerConfigOrBuilder(); /** - * - * *
    * Optional. The config settings for cluster software.
    * 
* - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the softwareConfig field is set. */ boolean hasSoftwareConfig(); /** - * - * *
    * Optional. The config settings for cluster software.
    * 
* - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The softwareConfig. */ com.google.cloud.dataproc.v1.SoftwareConfig getSoftwareConfig(); /** - * - * *
    * Optional. The config settings for cluster software.
    * 
* - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrBuilder(); /** - * - * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -352,15 +250,11 @@ public interface ClusterConfigOrBuilder
    *     fi
    * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getInitializationActionsList(); /** - * - * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -376,14 +270,10 @@ public interface ClusterConfigOrBuilder
    *     fi
    * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationActions(int index); /** - * - * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -399,14 +289,10 @@ public interface ClusterConfigOrBuilder
    *     fi
    * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ int getInitializationActionsCount(); /** - * - * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -422,15 +308,11 @@ public interface ClusterConfigOrBuilder
    *     fi
    * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getInitializationActionsOrBuilderList(); /** - * - * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -446,300 +328,244 @@ public interface ClusterConfigOrBuilder
    *     fi
    * 
* - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder getInitializationActionsOrBuilder( int index); /** - * - * *
    * Optional. Encryption settings for the cluster.
    * 
* - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the encryptionConfig field is set. */ boolean hasEncryptionConfig(); /** - * - * *
    * Optional. Encryption settings for the cluster.
    * 
* - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The encryptionConfig. */ com.google.cloud.dataproc.v1.EncryptionConfig getEncryptionConfig(); /** - * - * *
    * Optional. Encryption settings for the cluster.
    * 
* - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder(); /** - * - * *
    * Optional. Autoscaling config for the policy associated with the cluster.
    * Cluster does not autoscale if this field is unset.
    * 
* - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the autoscalingConfig field is set. */ boolean hasAutoscalingConfig(); /** - * - * *
    * Optional. Autoscaling config for the policy associated with the cluster.
    * Cluster does not autoscale if this field is unset.
    * 
* - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; * @return The autoscalingConfig. */ com.google.cloud.dataproc.v1.AutoscalingConfig getAutoscalingConfig(); /** - * - * *
    * Optional. Autoscaling config for the policy associated with the cluster.
    * Cluster does not autoscale if this field is unset.
    * 
* - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder(); /** - * - * *
    * Optional. Security settings for the cluster.
    * 
* - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the securityConfig field is set. */ boolean hasSecurityConfig(); /** - * - * *
    * Optional. Security settings for the cluster.
    * 
* - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; * @return The securityConfig. */ com.google.cloud.dataproc.v1.SecurityConfig getSecurityConfig(); /** - * - * *
    * Optional. Security settings for the cluster.
    * 
* - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.SecurityConfigOrBuilder getSecurityConfigOrBuilder(); /** - * - * *
    * Optional. Lifecycle setting for the cluster.
    * 
* - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the lifecycleConfig field is set. */ boolean hasLifecycleConfig(); /** - * - * *
    * Optional. Lifecycle setting for the cluster.
    * 
* - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; * @return The lifecycleConfig. */ com.google.cloud.dataproc.v1.LifecycleConfig getLifecycleConfig(); /** - * - * *
    * Optional. Lifecycle setting for the cluster.
    * 
* - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder getLifecycleConfigOrBuilder(); /** - * - * *
    * Optional. Port/endpoint configuration for this cluster
    * 
* - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the endpointConfig field is set. */ boolean hasEndpointConfig(); /** - * - * *
    * Optional. Port/endpoint configuration for this cluster
    * 
* - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; * @return The endpointConfig. */ com.google.cloud.dataproc.v1.EndpointConfig getEndpointConfig(); /** - * - * *
    * Optional. Port/endpoint configuration for this cluster
    * 
* - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrBuilder(); /** - * - * *
    * Optional. Metastore configuration.
    * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the metastoreConfig field is set. */ boolean hasMetastoreConfig(); /** - * - * *
    * Optional. Metastore configuration.
    * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * @return The metastoreConfig. */ com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig(); /** - * - * *
    * Optional. Metastore configuration.
    * 
* - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder(); /** - * - * *
    * Optional. The config for Dataproc metrics.
    * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the dataprocMetricConfig field is set. */ boolean hasDataprocMetricConfig(); /** - * - * *
    * Optional. The config for Dataproc metrics.
    * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataprocMetricConfig. */ com.google.cloud.dataproc.v1.DataprocMetricConfig getDataprocMetricConfig(); /** - * - * *
    * Optional. The config for Dataproc metrics.
    * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder getDataprocMetricConfigOrBuilder(); + + /** + *
+   * Optional. The node group settings.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.List + getAuxiliaryNodeGroupsList(); + /** + *
+   * Optional. The node group settings.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup getAuxiliaryNodeGroups(int index); + /** + *
+   * Optional. The node group settings.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getAuxiliaryNodeGroupsCount(); + /** + *
+   * Optional. The node group settings.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.List + getAuxiliaryNodeGroupsOrBuilderList(); + /** + *
+   * Optional. The node group settings.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder getAuxiliaryNodeGroupsOrBuilder( + int index); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java similarity index 55% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java index 2fde391e28f2..6d829b74252c 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Contains cluster daemon metrics, such as HDFS and YARN stats.
  * **Beta Feature**: This report is available for testing purposes only. It may
@@ -29,75 +12,76 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.ClusterMetrics}
  */
-public final class ClusterMetrics extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ClusterMetrics extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterMetrics)
     ClusterMetricsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ClusterMetrics.newBuilder() to construct.
   private ClusterMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ClusterMetrics() {}
+  private ClusterMetrics() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ClusterMetrics();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto
-        .internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterMetrics_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 internalGetHdfsMetrics();
       case 2:
         return internalGetYarnMetrics();
       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.dataproc.v1.ClustersProto
-        .internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.ClusterMetrics.class,
-            com.google.cloud.dataproc.v1.ClusterMetrics.Builder.class);
+            com.google.cloud.dataproc.v1.ClusterMetrics.class, com.google.cloud.dataproc.v1.ClusterMetrics.Builder.class);
   }
 
   public static final int HDFS_METRICS_FIELD_NUMBER = 1;
-
   private static final class HdfsMetricsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.cloud.dataproc.v1.ClustersProto
-                .internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_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.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.INT64,
+                0L);
   }
-
-  private com.google.protobuf.MapField hdfsMetrics_;
-
-  private com.google.protobuf.MapField internalGetHdfsMetrics() {
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.Long> hdfsMetrics_;
+  private com.google.protobuf.MapField
+  internalGetHdfsMetrics() {
     if (hdfsMetrics_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(HdfsMetricsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          HdfsMetricsDefaultEntryHolder.defaultEntry);
     }
     return hdfsMetrics_;
   }
@@ -106,30 +90,28 @@ public int getHdfsMetricsCount() {
     return internalGetHdfsMetrics().getMap().size();
   }
   /**
-   *
-   *
    * 
    * The HDFS metrics.
    * 
* * map<string, int64> hdfs_metrics = 1; */ + @java.lang.Override - public boolean containsHdfsMetrics(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsHdfsMetrics( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetHdfsMetrics().getMap().containsKey(key); } - /** Use {@link #getHdfsMetricsMap()} instead. */ + /** + * Use {@link #getHdfsMetricsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHdfsMetrics() { return getHdfsMetricsMap(); } /** - * - * *
    * The HDFS metrics.
    * 
@@ -137,12 +119,11 @@ public java.util.Map getHdfsMetrics() { * map<string, int64> hdfs_metrics = 1; */ @java.lang.Override + public java.util.Map getHdfsMetricsMap() { return internalGetHdfsMetrics().getMap(); } /** - * - * *
    * The HDFS metrics.
    * 
@@ -150,16 +131,16 @@ public java.util.Map getHdfsMetricsMap() { * map<string, int64> hdfs_metrics = 1; */ @java.lang.Override - public long getHdfsMetricsOrDefault(java.lang.String key, long defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHdfsMetrics().getMap(); + + public long getHdfsMetricsOrDefault( + java.lang.String key, + long defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetHdfsMetrics().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * The HDFS metrics.
    * 
@@ -167,11 +148,12 @@ public long getHdfsMetricsOrDefault(java.lang.String key, long defaultValue) { * map<string, int64> hdfs_metrics = 1; */ @java.lang.Override - public long getHdfsMetricsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHdfsMetrics().getMap(); + + public long getHdfsMetricsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetHdfsMetrics().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -179,23 +161,24 @@ public long getHdfsMetricsOrThrow(java.lang.String key) { } public static final int YARN_METRICS_FIELD_NUMBER = 2; - private static final class YarnMetricsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_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.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); } - - private com.google.protobuf.MapField yarnMetrics_; - - private com.google.protobuf.MapField internalGetYarnMetrics() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> yarnMetrics_; + private com.google.protobuf.MapField + internalGetYarnMetrics() { if (yarnMetrics_ == null) { - return com.google.protobuf.MapField.emptyMapField(YarnMetricsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + YarnMetricsDefaultEntryHolder.defaultEntry); } return yarnMetrics_; } @@ -204,30 +187,28 @@ public int getYarnMetricsCount() { return internalGetYarnMetrics().getMap().size(); } /** - * - * *
    * The YARN metrics.
    * 
* * map<string, int64> yarn_metrics = 2; */ + @java.lang.Override - public boolean containsYarnMetrics(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsYarnMetrics( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetYarnMetrics().getMap().containsKey(key); } - /** Use {@link #getYarnMetricsMap()} instead. */ + /** + * Use {@link #getYarnMetricsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getYarnMetrics() { return getYarnMetricsMap(); } /** - * - * *
    * The YARN metrics.
    * 
@@ -235,12 +216,11 @@ public java.util.Map getYarnMetrics() { * map<string, int64> yarn_metrics = 2; */ @java.lang.Override + public java.util.Map getYarnMetricsMap() { return internalGetYarnMetrics().getMap(); } /** - * - * *
    * The YARN metrics.
    * 
@@ -248,16 +228,16 @@ public java.util.Map getYarnMetricsMap() { * map<string, int64> yarn_metrics = 2; */ @java.lang.Override - public long getYarnMetricsOrDefault(java.lang.String key, long defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetYarnMetrics().getMap(); + + public long getYarnMetricsOrDefault( + java.lang.String key, + long defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetYarnMetrics().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * The YARN metrics.
    * 
@@ -265,11 +245,12 @@ public long getYarnMetricsOrDefault(java.lang.String key, long defaultValue) { * map<string, int64> yarn_metrics = 2; */ @java.lang.Override - public long getYarnMetricsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetYarnMetrics().getMap(); + + public long getYarnMetricsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetYarnMetrics().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -277,7 +258,6 @@ public long getYarnMetricsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,11 +269,20 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetHdfsMetrics(), HdfsMetricsDefaultEntryHolder.defaultEntry, 1); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetYarnMetrics(), YarnMetricsDefaultEntryHolder.defaultEntry, 2); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetHdfsMetrics(), + HdfsMetricsDefaultEntryHolder.defaultEntry, + 1); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetYarnMetrics(), + YarnMetricsDefaultEntryHolder.defaultEntry, + 2); getUnknownFields().writeTo(output); } @@ -303,25 +292,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry : - internalGetHdfsMetrics().getMap().entrySet()) { - com.google.protobuf.MapEntry hdfsMetrics__ = - HdfsMetricsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hdfsMetrics__); - } - for (java.util.Map.Entry entry : - internalGetYarnMetrics().getMap().entrySet()) { - com.google.protobuf.MapEntry yarnMetrics__ = - YarnMetricsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, yarnMetrics__); + for (java.util.Map.Entry entry + : internalGetHdfsMetrics().getMap().entrySet()) { + com.google.protobuf.MapEntry + hdfsMetrics__ = HdfsMetricsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, hdfsMetrics__); + } + for (java.util.Map.Entry entry + : internalGetYarnMetrics().getMap().entrySet()) { + com.google.protobuf.MapEntry + yarnMetrics__ = YarnMetricsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, yarnMetrics__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -331,16 +320,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.dataproc.v1.ClusterMetrics)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ClusterMetrics other = - (com.google.cloud.dataproc.v1.ClusterMetrics) obj; + com.google.cloud.dataproc.v1.ClusterMetrics other = (com.google.cloud.dataproc.v1.ClusterMetrics) obj; - if (!internalGetHdfsMetrics().equals(other.internalGetHdfsMetrics())) return false; - if (!internalGetYarnMetrics().equals(other.internalGetYarnMetrics())) return false; + if (!internalGetHdfsMetrics().equals( + other.internalGetHdfsMetrics())) return false; + if (!internalGetYarnMetrics().equals( + other.internalGetYarnMetrics())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -365,104 +355,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ClusterMetrics parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ClusterMetrics parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterMetrics parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ClusterMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains cluster daemon metrics, such as HDFS and YARN stats.
    * **Beta Feature**: This report is available for testing purposes only. It may
@@ -471,56 +454,59 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.ClusterMetrics}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterMetrics)
       com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetHdfsMetrics();
         case 2:
           return internalGetYarnMetrics();
         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 internalGetMutableHdfsMetrics();
         case 2:
           return internalGetMutableYarnMetrics();
         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.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.ClusterMetrics.class,
-              com.google.cloud.dataproc.v1.ClusterMetrics.Builder.class);
+              com.google.cloud.dataproc.v1.ClusterMetrics.class, com.google.cloud.dataproc.v1.ClusterMetrics.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.ClusterMetrics.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -530,9 +516,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor;
     }
 
     @java.lang.Override
@@ -551,8 +537,7 @@ public com.google.cloud.dataproc.v1.ClusterMetrics build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.ClusterMetrics buildPartial() {
-      com.google.cloud.dataproc.v1.ClusterMetrics result =
-          new com.google.cloud.dataproc.v1.ClusterMetrics(this);
+      com.google.cloud.dataproc.v1.ClusterMetrics result = new com.google.cloud.dataproc.v1.ClusterMetrics(this);
       int from_bitField0_ = bitField0_;
       result.hdfsMetrics_ = internalGetHdfsMetrics();
       result.hdfsMetrics_.makeImmutable();
@@ -566,39 +551,38 @@ public com.google.cloud.dataproc.v1.ClusterMetrics buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.ClusterMetrics) {
-        return mergeFrom((com.google.cloud.dataproc.v1.ClusterMetrics) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.ClusterMetrics)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -607,8 +591,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterMetrics other) {
       if (other == com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance()) return this;
-      internalGetMutableHdfsMetrics().mergeFrom(other.internalGetHdfsMetrics());
-      internalGetMutableYarnMetrics().mergeFrom(other.internalGetYarnMetrics());
+      internalGetMutableHdfsMetrics().mergeFrom(
+          other.internalGetHdfsMetrics());
+      internalGetMutableYarnMetrics().mergeFrom(
+          other.internalGetYarnMetrics());
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -635,35 +621,28 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.protobuf.MapEntry hdfsMetrics__ =
-                    input.readMessage(
-                        HdfsMetricsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableHdfsMetrics()
-                    .getMutableMap()
-                    .put(hdfsMetrics__.getKey(), hdfsMetrics__.getValue());
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.protobuf.MapEntry yarnMetrics__ =
-                    input.readMessage(
-                        YarnMetricsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableYarnMetrics()
-                    .getMutableMap()
-                    .put(yarnMetrics__.getKey(), yarnMetrics__.getValue());
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.protobuf.MapEntry
+              hdfsMetrics__ = input.readMessage(
+                  HdfsMetricsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableHdfsMetrics().getMutableMap().put(
+                  hdfsMetrics__.getKey(), hdfsMetrics__.getValue());
+              break;
+            } // case 10
+            case 18: {
+              com.google.protobuf.MapEntry
+              yarnMetrics__ = input.readMessage(
+                  YarnMetricsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableYarnMetrics().getMutableMap().put(
+                  yarnMetrics__.getKey(), yarnMetrics__.getValue());
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -673,27 +652,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.MapField hdfsMetrics_;
-
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.Long> hdfsMetrics_;
     private com.google.protobuf.MapField
-        internalGetHdfsMetrics() {
+    internalGetHdfsMetrics() {
       if (hdfsMetrics_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             HdfsMetricsDefaultEntryHolder.defaultEntry);
       }
       return hdfsMetrics_;
     }
-
     private com.google.protobuf.MapField
-        internalGetMutableHdfsMetrics() {
-      onChanged();
-      ;
+    internalGetMutableHdfsMetrics() {
+      onChanged();;
       if (hdfsMetrics_ == null) {
-        hdfsMetrics_ =
-            com.google.protobuf.MapField.newMapField(HdfsMetricsDefaultEntryHolder.defaultEntry);
+        hdfsMetrics_ = com.google.protobuf.MapField.newMapField(
+            HdfsMetricsDefaultEntryHolder.defaultEntry);
       }
       if (!hdfsMetrics_.isMutable()) {
         hdfsMetrics_ = hdfsMetrics_.copy();
@@ -705,30 +681,28 @@ public int getHdfsMetricsCount() {
       return internalGetHdfsMetrics().getMap().size();
     }
     /**
-     *
-     *
      * 
      * The HDFS metrics.
      * 
* * map<string, int64> hdfs_metrics = 1; */ + @java.lang.Override - public boolean containsHdfsMetrics(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsHdfsMetrics( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetHdfsMetrics().getMap().containsKey(key); } - /** Use {@link #getHdfsMetricsMap()} instead. */ + /** + * Use {@link #getHdfsMetricsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHdfsMetrics() { return getHdfsMetricsMap(); } /** - * - * *
      * The HDFS metrics.
      * 
@@ -736,12 +710,11 @@ public java.util.Map getHdfsMetrics() { * map<string, int64> hdfs_metrics = 1; */ @java.lang.Override + public java.util.Map getHdfsMetricsMap() { return internalGetHdfsMetrics().getMap(); } /** - * - * *
      * The HDFS metrics.
      * 
@@ -749,16 +722,16 @@ public java.util.Map getHdfsMetricsMap() { * map<string, int64> hdfs_metrics = 1; */ @java.lang.Override - public long getHdfsMetricsOrDefault(java.lang.String key, long defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHdfsMetrics().getMap(); + + public long getHdfsMetricsOrDefault( + java.lang.String key, + long defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetHdfsMetrics().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * The HDFS metrics.
      * 
@@ -766,11 +739,12 @@ public long getHdfsMetricsOrDefault(java.lang.String key, long defaultValue) { * map<string, int64> hdfs_metrics = 1; */ @java.lang.Override - public long getHdfsMetricsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHdfsMetrics().getMap(); + + public long getHdfsMetricsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetHdfsMetrics().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -778,79 +752,80 @@ public long getHdfsMetricsOrThrow(java.lang.String key) { } public Builder clearHdfsMetrics() { - internalGetMutableHdfsMetrics().getMutableMap().clear(); + internalGetMutableHdfsMetrics().getMutableMap() + .clear(); return this; } /** - * - * *
      * The HDFS metrics.
      * 
* * map<string, int64> hdfs_metrics = 1; */ - public Builder removeHdfsMetrics(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableHdfsMetrics().getMutableMap().remove(key); + + public Builder removeHdfsMetrics( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableHdfsMetrics().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableHdfsMetrics() { + public java.util.Map + getMutableHdfsMetrics() { return internalGetMutableHdfsMetrics().getMutableMap(); } /** - * - * *
      * The HDFS metrics.
      * 
* * map<string, int64> hdfs_metrics = 1; */ - public Builder putHdfsMetrics(java.lang.String key, long value) { - if (key == null) { - throw new NullPointerException("map key"); - } - - internalGetMutableHdfsMetrics().getMutableMap().put(key, value); + public Builder putHdfsMetrics( + java.lang.String key, + long value) { + if (key == null) { throw new NullPointerException("map key"); } + + internalGetMutableHdfsMetrics().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * The HDFS metrics.
      * 
* * map<string, int64> hdfs_metrics = 1; */ - public Builder putAllHdfsMetrics(java.util.Map values) { - internalGetMutableHdfsMetrics().getMutableMap().putAll(values); + + public Builder putAllHdfsMetrics( + java.util.Map values) { + internalGetMutableHdfsMetrics().getMutableMap() + .putAll(values); return this; } - private com.google.protobuf.MapField yarnMetrics_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> yarnMetrics_; private com.google.protobuf.MapField - internalGetYarnMetrics() { + internalGetYarnMetrics() { if (yarnMetrics_ == null) { return com.google.protobuf.MapField.emptyMapField( YarnMetricsDefaultEntryHolder.defaultEntry); } return yarnMetrics_; } - private com.google.protobuf.MapField - internalGetMutableYarnMetrics() { - onChanged(); - ; + internalGetMutableYarnMetrics() { + onChanged();; if (yarnMetrics_ == null) { - yarnMetrics_ = - com.google.protobuf.MapField.newMapField(YarnMetricsDefaultEntryHolder.defaultEntry); + yarnMetrics_ = com.google.protobuf.MapField.newMapField( + YarnMetricsDefaultEntryHolder.defaultEntry); } if (!yarnMetrics_.isMutable()) { yarnMetrics_ = yarnMetrics_.copy(); @@ -862,30 +837,28 @@ public int getYarnMetricsCount() { return internalGetYarnMetrics().getMap().size(); } /** - * - * *
      * The YARN metrics.
      * 
* * map<string, int64> yarn_metrics = 2; */ + @java.lang.Override - public boolean containsYarnMetrics(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsYarnMetrics( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetYarnMetrics().getMap().containsKey(key); } - /** Use {@link #getYarnMetricsMap()} instead. */ + /** + * Use {@link #getYarnMetricsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getYarnMetrics() { return getYarnMetricsMap(); } /** - * - * *
      * The YARN metrics.
      * 
@@ -893,12 +866,11 @@ public java.util.Map getYarnMetrics() { * map<string, int64> yarn_metrics = 2; */ @java.lang.Override + public java.util.Map getYarnMetricsMap() { return internalGetYarnMetrics().getMap(); } /** - * - * *
      * The YARN metrics.
      * 
@@ -906,16 +878,16 @@ public java.util.Map getYarnMetricsMap() { * map<string, int64> yarn_metrics = 2; */ @java.lang.Override - public long getYarnMetricsOrDefault(java.lang.String key, long defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetYarnMetrics().getMap(); + + public long getYarnMetricsOrDefault( + java.lang.String key, + long defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetYarnMetrics().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * The YARN metrics.
      * 
@@ -923,11 +895,12 @@ public long getYarnMetricsOrDefault(java.lang.String key, long defaultValue) { * map<string, int64> yarn_metrics = 2; */ @java.lang.Override - public long getYarnMetricsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetYarnMetrics().getMap(); + + public long getYarnMetricsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetYarnMetrics().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -935,63 +908,66 @@ public long getYarnMetricsOrThrow(java.lang.String key) { } public Builder clearYarnMetrics() { - internalGetMutableYarnMetrics().getMutableMap().clear(); + internalGetMutableYarnMetrics().getMutableMap() + .clear(); return this; } /** - * - * *
      * The YARN metrics.
      * 
* * map<string, int64> yarn_metrics = 2; */ - public Builder removeYarnMetrics(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableYarnMetrics().getMutableMap().remove(key); + + public Builder removeYarnMetrics( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableYarnMetrics().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableYarnMetrics() { + public java.util.Map + getMutableYarnMetrics() { return internalGetMutableYarnMetrics().getMutableMap(); } /** - * - * *
      * The YARN metrics.
      * 
* * map<string, int64> yarn_metrics = 2; */ - public Builder putYarnMetrics(java.lang.String key, long value) { - if (key == null) { - throw new NullPointerException("map key"); - } - - internalGetMutableYarnMetrics().getMutableMap().put(key, value); + public Builder putYarnMetrics( + java.lang.String key, + long value) { + if (key == null) { throw new NullPointerException("map key"); } + + internalGetMutableYarnMetrics().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * The YARN metrics.
      * 
* * map<string, int64> yarn_metrics = 2; */ - public Builder putAllYarnMetrics(java.util.Map values) { - internalGetMutableYarnMetrics().getMutableMap().putAll(values); + + public Builder putAllYarnMetrics( + java.util.Map values) { + internalGetMutableYarnMetrics().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); } @@ -1001,12 +977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ClusterMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterMetrics) private static final com.google.cloud.dataproc.v1.ClusterMetrics DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterMetrics(); } @@ -1015,27 +991,27 @@ public static com.google.cloud.dataproc.v1.ClusterMetrics getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1050,4 +1026,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ClusterMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java similarity index 52% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java index 8cea6493b1c0..8fbba66c3c39 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface ClusterMetricsOrBuilder - extends +public interface ClusterMetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterMetrics) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The HDFS metrics.
    * 
@@ -34,52 +16,52 @@ public interface ClusterMetricsOrBuilder */ int getHdfsMetricsCount(); /** - * - * *
    * The HDFS metrics.
    * 
* * map<string, int64> hdfs_metrics = 1; */ - boolean containsHdfsMetrics(java.lang.String key); - /** Use {@link #getHdfsMetricsMap()} instead. */ + boolean containsHdfsMetrics( + java.lang.String key); + /** + * Use {@link #getHdfsMetricsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getHdfsMetrics(); + java.util.Map + getHdfsMetrics(); /** - * - * *
    * The HDFS metrics.
    * 
* * map<string, int64> hdfs_metrics = 1; */ - java.util.Map getHdfsMetricsMap(); + java.util.Map + getHdfsMetricsMap(); /** - * - * *
    * The HDFS metrics.
    * 
* * map<string, int64> hdfs_metrics = 1; */ - long getHdfsMetricsOrDefault(java.lang.String key, long defaultValue); + + long getHdfsMetricsOrDefault( + java.lang.String key, + long defaultValue); /** - * - * *
    * The HDFS metrics.
    * 
* * map<string, int64> hdfs_metrics = 1; */ - long getHdfsMetricsOrThrow(java.lang.String key); + + long getHdfsMetricsOrThrow( + java.lang.String key); /** - * - * *
    * The YARN metrics.
    * 
@@ -88,46 +70,48 @@ public interface ClusterMetricsOrBuilder */ int getYarnMetricsCount(); /** - * - * *
    * The YARN metrics.
    * 
* * map<string, int64> yarn_metrics = 2; */ - boolean containsYarnMetrics(java.lang.String key); - /** Use {@link #getYarnMetricsMap()} instead. */ + boolean containsYarnMetrics( + java.lang.String key); + /** + * Use {@link #getYarnMetricsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getYarnMetrics(); + java.util.Map + getYarnMetrics(); /** - * - * *
    * The YARN metrics.
    * 
* * map<string, int64> yarn_metrics = 2; */ - java.util.Map getYarnMetricsMap(); + java.util.Map + getYarnMetricsMap(); /** - * - * *
    * The YARN metrics.
    * 
* * map<string, int64> yarn_metrics = 2; */ - long getYarnMetricsOrDefault(java.lang.String key, long defaultValue); + + long getYarnMetricsOrDefault( + java.lang.String key, + long defaultValue); /** - * - * *
    * The YARN metrics.
    * 
* * map<string, int64> yarn_metrics = 2; */ - long getYarnMetricsOrThrow(java.lang.String key); + + long getYarnMetricsOrThrow( + java.lang.String key); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java index 1d9c1ca3187f..93ce744d5aed 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * The cluster operation triggered by a workflow.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterOperation} */ -public final class ClusterOperation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ClusterOperation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterOperation) ClusterOperationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ClusterOperation.newBuilder() to construct. private ClusterOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ClusterOperation() { operationId_ = ""; error_ = ""; @@ -44,41 +26,37 @@ private ClusterOperation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ClusterOperation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterOperation_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterOperation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterOperation.class, - com.google.cloud.dataproc.v1.ClusterOperation.Builder.class); + com.google.cloud.dataproc.v1.ClusterOperation.class, com.google.cloud.dataproc.v1.ClusterOperation.Builder.class); } public static final int OPERATION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object operationId_; /** - * - * *
    * Output only. The id of the cluster operation.
    * 
* * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The operationId. */ @java.lang.Override @@ -87,29 +65,29 @@ public java.lang.String getOperationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationId_ = s; return s; } } /** - * - * *
    * Output only. The id of the cluster operation.
    * 
* * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for operationId. */ @java.lang.Override - public com.google.protobuf.ByteString getOperationIdBytes() { + public com.google.protobuf.ByteString + getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operationId_ = b; return b; } else { @@ -120,14 +98,11 @@ public com.google.protobuf.ByteString getOperationIdBytes() { public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** - * - * *
    * Output only. Error, if operation failed.
    * 
* * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The error. */ @java.lang.Override @@ -136,29 +111,29 @@ public java.lang.String getError() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } } /** - * - * *
    * Output only. Error, if operation failed.
    * 
* * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for error. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorBytes() { + public com.google.protobuf.ByteString + getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); error_ = b; return b; } else { @@ -169,14 +144,11 @@ public com.google.protobuf.ByteString getErrorBytes() { public static final int DONE_FIELD_NUMBER = 3; private boolean done_; /** - * - * *
    * Output only. Indicates the operation is done.
    * 
* * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The done. */ @java.lang.Override @@ -185,7 +157,6 @@ public boolean getDone() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -197,7 +168,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(operationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operationId_); } @@ -223,7 +195,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); } if (done_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, done_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, done_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -233,17 +206,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.dataproc.v1.ClusterOperation)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ClusterOperation other = - (com.google.cloud.dataproc.v1.ClusterOperation) obj; + com.google.cloud.dataproc.v1.ClusterOperation other = (com.google.cloud.dataproc.v1.ClusterOperation) obj; - if (!getOperationId().equals(other.getOperationId())) return false; - if (!getError().equals(other.getError())) return false; - if (getDone() != other.getDone()) return false; + if (!getOperationId() + .equals(other.getOperationId())) return false; + if (!getError() + .equals(other.getError())) return false; + if (getDone() + != other.getDone()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -260,142 +235,137 @@ public int hashCode() { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (37 * hash) + DONE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDone()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDone()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ClusterOperation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ClusterOperation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterOperation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ClusterOperation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 cluster operation triggered by a workflow.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterOperation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterOperation) com.google.cloud.dataproc.v1.ClusterOperationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterOperation_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterOperation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterOperation.class, - com.google.cloud.dataproc.v1.ClusterOperation.Builder.class); + com.google.cloud.dataproc.v1.ClusterOperation.class, com.google.cloud.dataproc.v1.ClusterOperation.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ClusterOperation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; } @java.lang.Override @@ -430,8 +400,7 @@ public com.google.cloud.dataproc.v1.ClusterOperation build() { @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperation buildPartial() { - com.google.cloud.dataproc.v1.ClusterOperation result = - new com.google.cloud.dataproc.v1.ClusterOperation(this); + com.google.cloud.dataproc.v1.ClusterOperation result = new com.google.cloud.dataproc.v1.ClusterOperation(this); result.operationId_ = operationId_; result.error_ = error_; result.done_ = done_; @@ -443,39 +412,38 @@ public com.google.cloud.dataproc.v1.ClusterOperation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ClusterOperation) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterOperation) other); + return mergeFrom((com.google.cloud.dataproc.v1.ClusterOperation)other); } else { super.mergeFrom(other); return this; @@ -521,31 +489,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - operationId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - error_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - done_ = input.readBool(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + operationId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + error_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + done_ = input.readBool(); + + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -558,20 +522,18 @@ public Builder mergeFrom( private java.lang.Object operationId_ = ""; /** - * - * *
      * Output only. The id of the cluster operation.
      * 
* * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The operationId. */ public java.lang.String getOperationId() { java.lang.Object ref = operationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationId_ = s; return s; @@ -580,21 +542,20 @@ public java.lang.String getOperationId() { } } /** - * - * *
      * Output only. The id of the cluster operation.
      * 
* * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for operationId. */ - public com.google.protobuf.ByteString getOperationIdBytes() { + public com.google.protobuf.ByteString + getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operationId_ = b; return b; } else { @@ -602,61 +563,54 @@ public com.google.protobuf.ByteString getOperationIdBytes() { } } /** - * - * *
      * Output only. The id of the cluster operation.
      * 
* * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The operationId to set. * @return This builder for chaining. */ - public Builder setOperationId(java.lang.String value) { + public Builder setOperationId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + operationId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The id of the cluster operation.
      * 
* * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearOperationId() { - + operationId_ = getDefaultInstance().getOperationId(); onChanged(); return this; } /** - * - * *
      * Output only. The id of the cluster operation.
      * 
* * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for operationId to set. * @return This builder for chaining. */ - public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { + public Builder setOperationIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationId_ = value; onChanged(); return this; @@ -664,20 +618,18 @@ public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object error_ = ""; /** - * - * *
      * Output only. Error, if operation failed.
      * 
* * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The error. */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; @@ -686,21 +638,20 @@ public java.lang.String getError() { } } /** - * - * *
      * Output only. Error, if operation failed.
      * 
* * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for error. */ - public com.google.protobuf.ByteString getErrorBytes() { + public com.google.protobuf.ByteString + getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); error_ = b; return b; } else { @@ -708,76 +659,66 @@ public com.google.protobuf.ByteString getErrorBytes() { } } /** - * - * *
      * Output only. Error, if operation failed.
      * 
* * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The error to set. * @return This builder for chaining. */ - public Builder setError(java.lang.String value) { + public Builder setError( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + error_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Error, if operation failed.
      * 
* * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearError() { - + error_ = getDefaultInstance().getError(); onChanged(); return this; } /** - * - * *
      * Output only. Error, if operation failed.
      * 
* * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for error to set. * @return This builder for chaining. */ - public Builder setErrorBytes(com.google.protobuf.ByteString value) { + public Builder setErrorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + error_ = value; onChanged(); return this; } - private boolean done_; + private boolean done_ ; /** - * - * *
      * Output only. Indicates the operation is done.
      * 
* * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The done. */ @java.lang.Override @@ -785,43 +726,37 @@ public boolean getDone() { return done_; } /** - * - * *
      * Output only. Indicates the operation is done.
      * 
* * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The done to set. * @return This builder for chaining. */ public Builder setDone(boolean value) { - + done_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Indicates the operation is done.
      * 
* * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDone() { - + done_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -831,12 +766,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ClusterOperation) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterOperation) private static final com.google.cloud.dataproc.v1.ClusterOperation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterOperation(); } @@ -845,27 +780,27 @@ public static com.google.cloud.dataproc.v1.ClusterOperation getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterOperation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterOperation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -880,4 +815,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ClusterOperation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java index 608c9943fbd6..6a45f59d5939 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.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/dataproc/v1/operations.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Metadata describing the operation.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterOperationMetadata} */ -public final class ClusterOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ClusterOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterOperationMetadata) ClusterOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ClusterOperationMetadata.newBuilder() to construct. private ClusterOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ClusterOperationMetadata() { clusterName_ = ""; clusterUuid_ = ""; @@ -48,52 +30,49 @@ private ClusterOperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ClusterOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_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 13: 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.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterOperationMetadata.class, - com.google.cloud.dataproc.v1.ClusterOperationMetadata.Builder.class); + com.google.cloud.dataproc.v1.ClusterOperationMetadata.class, com.google.cloud.dataproc.v1.ClusterOperationMetadata.Builder.class); } public static final int CLUSTER_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object clusterName_; /** - * - * *
    * Output only. Name of the cluster for the operation.
    * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterName. */ @java.lang.Override @@ -102,29 +81,29 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** - * - * *
    * Output only. Name of the cluster for the operation.
    * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -135,14 +114,11 @@ public com.google.protobuf.ByteString getClusterNameBytes() { public static final int CLUSTER_UUID_FIELD_NUMBER = 8; private volatile java.lang.Object clusterUuid_; /** - * - * *
    * Output only. Cluster UUID for the operation.
    * 
* * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterUuid. */ @java.lang.Override @@ -151,29 +127,29 @@ public java.lang.String getClusterUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; } } /** - * - * *
    * Output only. Cluster UUID for the operation.
    * 
* * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterUuid. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { + public com.google.protobuf.ByteString + getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -184,16 +160,11 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { public static final int STATUS_FIELD_NUMBER = 9; private com.google.cloud.dataproc.v1.ClusterOperationStatus status_; /** - * - * *
    * Output only. Current operation status.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the status field is set. */ @java.lang.Override @@ -201,34 +172,23 @@ public boolean hasStatus() { return status_ != null; } /** - * - * *
    * Output only. Current operation status.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatus() { - return status_ == null - ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() - : status_; + return status_ == null ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() : status_; } /** - * - * *
    * Output only. Current operation status.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusOrBuilder() { @@ -238,77 +198,56 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusOrB public static final int STATUS_HISTORY_FIELD_NUMBER = 10; private java.util.List statusHistory_; /** - * - * *
    * Output only. The previous operation status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getStatusHistoryList() { + public java.util.List getStatusHistoryList() { return statusHistory_; } /** - * - * *
    * Output only. The previous operation status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getStatusHistoryOrBuilderList() { return statusHistory_; } /** - * - * *
    * Output only. The previous operation status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getStatusHistoryCount() { return statusHistory_.size(); } /** - * - * *
    * Output only. The previous operation status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatusHistory(int index) { return statusHistory_.get(index); } /** - * - * *
    * Output only. The previous operation status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder( @@ -319,14 +258,11 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHis public static final int OPERATION_TYPE_FIELD_NUMBER = 11; private volatile java.lang.Object operationType_; /** - * - * *
    * Output only. The operation type.
    * 
* * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The operationType. */ @java.lang.Override @@ -335,29 +271,29 @@ public java.lang.String getOperationType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationType_ = s; return s; } } /** - * - * *
    * Output only. The operation type.
    * 
* * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for operationType. */ @java.lang.Override - public com.google.protobuf.ByteString getOperationTypeBytes() { + public com.google.protobuf.ByteString + getOperationTypeBytes() { java.lang.Object ref = operationType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operationType_ = b; return b; } else { @@ -368,14 +304,11 @@ public com.google.protobuf.ByteString getOperationTypeBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 12; private volatile java.lang.Object description_; /** - * - * *
    * Output only. Short description of operation.
    * 
* * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The description. */ @java.lang.Override @@ -384,29 +317,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Output only. Short description of operation.
    * 
* * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -415,23 +348,24 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int LABELS_FIELD_NUMBER = 13; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_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.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_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_; } @@ -440,76 +374,70 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Output only. Labels associated with the operation
    * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + @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(); } /** - * - * *
    * Output only. Labels associated with the operation
    * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Output only. Labels associated with the operation
    * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @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; } /** - * - * *
    * Output only. Labels associated with the operation
    * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @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(); } @@ -519,42 +447,34 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int WARNINGS_FIELD_NUMBER = 14; private com.google.protobuf.LazyStringList warnings_; /** - * - * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList getWarningsList() { + public com.google.protobuf.ProtocolStringList + getWarningsList() { return warnings_; } /** - * - * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** - * - * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -562,23 +482,20 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** - * - * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString getWarningsBytes(int index) { + public com.google.protobuf.ByteString + getWarningsBytes(int index) { return warnings_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -590,7 +507,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(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterName_); } @@ -609,8 +527,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, description_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 13); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 13); for (int i = 0; i < warnings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, warnings_.getRaw(i)); } @@ -630,10 +552,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, clusterUuid_); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getStatus()); } for (int i = 0; i < statusHistory_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, statusHistory_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, statusHistory_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, operationType_); @@ -641,15 +565,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, description_); } - 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(13, labels__); + 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(13, labels__); } { int dataSize = 0; @@ -667,25 +591,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ClusterOperationMetadata)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ClusterOperationMetadata other = - (com.google.cloud.dataproc.v1.ClusterOperationMetadata) obj; + com.google.cloud.dataproc.v1.ClusterOperationMetadata other = (com.google.cloud.dataproc.v1.ClusterOperationMetadata) obj; - if (!getClusterName().equals(other.getClusterName())) return false; - if (!getClusterUuid().equals(other.getClusterUuid())) return false; + if (!getClusterName() + .equals(other.getClusterName())) return false; + if (!getClusterUuid() + .equals(other.getClusterUuid())) return false; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; - } - if (!getStatusHistoryList().equals(other.getStatusHistoryList())) return false; - if (!getOperationType().equals(other.getOperationType())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getWarningsList().equals(other.getWarningsList())) return false; + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!getStatusHistoryList() + .equals(other.getStatusHistoryList())) return false; + if (!getOperationType() + .equals(other.getOperationType())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getWarningsList() + .equals(other.getWarningsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -727,156 +658,151 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.ClusterOperationMetadata 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.dataproc.v1.ClusterOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.ClusterOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.ClusterOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metadata describing the operation.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterOperationMetadata) com.google.cloud.dataproc.v1.ClusterOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 13: 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 13: 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.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterOperationMetadata.class, - com.google.cloud.dataproc.v1.ClusterOperationMetadata.Builder.class); + com.google.cloud.dataproc.v1.ClusterOperationMetadata.class, com.google.cloud.dataproc.v1.ClusterOperationMetadata.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ClusterOperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -908,9 +834,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; } @java.lang.Override @@ -929,8 +855,7 @@ public com.google.cloud.dataproc.v1.ClusterOperationMetadata build() { @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationMetadata buildPartial() { - com.google.cloud.dataproc.v1.ClusterOperationMetadata result = - new com.google.cloud.dataproc.v1.ClusterOperationMetadata(this); + com.google.cloud.dataproc.v1.ClusterOperationMetadata result = new com.google.cloud.dataproc.v1.ClusterOperationMetadata(this); int from_bitField0_ = bitField0_; result.clusterName_ = clusterName_; result.clusterUuid_ = clusterUuid_; @@ -965,39 +890,38 @@ public com.google.cloud.dataproc.v1.ClusterOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ClusterOperationMetadata) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterOperationMetadata) other); + return mergeFrom((com.google.cloud.dataproc.v1.ClusterOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -1005,8 +929,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterOperationMetadata other) { - if (other == com.google.cloud.dataproc.v1.ClusterOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.ClusterOperationMetadata.getDefaultInstance()) return this; if (!other.getClusterName().isEmpty()) { clusterName_ = other.clusterName_; onChanged(); @@ -1036,10 +959,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterOperationMetadata o statusHistoryBuilder_ = null; statusHistory_ = other.statusHistory_; bitField0_ = (bitField0_ & ~0x00000001); - statusHistoryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStatusHistoryFieldBuilder() - : null; + statusHistoryBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStatusHistoryFieldBuilder() : null; } else { statusHistoryBuilder_.addAllMessages(other.statusHistory_); } @@ -1053,7 +975,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterOperationMetadata o description_ = other.description_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.warnings_.isEmpty()) { if (warnings_.isEmpty()) { warnings_ = other.warnings_; @@ -1090,75 +1013,66 @@ public Builder mergeFrom( case 0: done = true; break; - case 58: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: - { - clusterUuid_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: - { - input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - case 82: - { - com.google.cloud.dataproc.v1.ClusterOperationStatus m = - input.readMessage( - com.google.cloud.dataproc.v1.ClusterOperationStatus.parser(), - extensionRegistry); - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(m); - } else { - statusHistoryBuilder_.addMessage(m); - } - break; - } // case 82 - case 90: - { - operationType_ = input.readStringRequireUtf8(); - - break; - } // case 90 - case 98: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 106: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 106 - case 114: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureWarningsIsMutable(); - warnings_.add(s); - break; - } // case 114 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 58: { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: { + clusterUuid_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 74 + case 82: { + com.google.cloud.dataproc.v1.ClusterOperationStatus m = + input.readMessage( + com.google.cloud.dataproc.v1.ClusterOperationStatus.parser(), + extensionRegistry); + if (statusHistoryBuilder_ == null) { + ensureStatusHistoryIsMutable(); + statusHistory_.add(m); + } else { + statusHistoryBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: { + operationType_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 106 + case 114: { + java.lang.String s = input.readStringRequireUtf8(); + ensureWarningsIsMutable(); + warnings_.add(s); + break; + } // case 114 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1168,25 +1082,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object clusterName_ = ""; /** - * - * *
      * Output only. Name of the cluster for the operation.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -1195,21 +1106,20 @@ public java.lang.String getClusterName() { } } /** - * - * *
      * Output only. Name of the cluster for the operation.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -1217,61 +1127,54 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } } /** - * - * *
      * Output only. Name of the cluster for the operation.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName(java.lang.String value) { + public Builder setClusterName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the cluster for the operation.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the cluster for the operation.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1279,20 +1182,18 @@ public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object clusterUuid_ = ""; /** - * - * *
      * Output only. Cluster UUID for the operation.
      * 
* * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterUuid. */ public java.lang.String getClusterUuid() { java.lang.Object ref = clusterUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; @@ -1301,21 +1202,20 @@ public java.lang.String getClusterUuid() { } } /** - * - * *
      * Output only. Cluster UUID for the operation.
      * 
* * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterUuid. */ - public com.google.protobuf.ByteString getClusterUuidBytes() { + public com.google.protobuf.ByteString + getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -1323,61 +1223,54 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { } } /** - * - * *
      * Output only. Cluster UUID for the operation.
      * 
* * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuid(java.lang.String value) { + public Builder setClusterUuid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterUuid_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Cluster UUID for the operation.
      * 
* * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClusterUuid() { - + clusterUuid_ = getDefaultInstance().getClusterUuid(); onChanged(); return this; } /** - * - * *
      * Output only. Cluster UUID for the operation.
      * 
* * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { + public Builder setClusterUuidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUuid_ = value; onChanged(); return this; @@ -1385,58 +1278,39 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.ClusterOperationStatus status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, - com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> - statusBuilder_; + com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> statusBuilder_; /** - * - * *
      * Output only. Current operation status.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperationStatus 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. Current operation status.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatus() { if (statusBuilder_ == null) { - return status_ == null - ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() - : status_; + return status_ == null ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** - * - * *
      * Output only. Current operation status.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStatus(com.google.cloud.dataproc.v1.ClusterOperationStatus value) { if (statusBuilder_ == null) { @@ -1452,15 +1326,11 @@ public Builder setStatus(com.google.cloud.dataproc.v1.ClusterOperationStatus val return this; } /** - * - * *
      * Output only. Current operation status.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStatus( com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { @@ -1474,23 +1344,17 @@ public Builder setStatus( return this; } /** - * - * *
      * Output only. Current operation status.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStatus(com.google.cloud.dataproc.v1.ClusterOperationStatus value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = - com.google.cloud.dataproc.v1.ClusterOperationStatus.newBuilder(status_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.ClusterOperationStatus.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } @@ -1502,15 +1366,11 @@ public Builder mergeStatus(com.google.cloud.dataproc.v1.ClusterOperationStatus v return this; } /** - * - * *
      * Output only. Current operation status.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStatus() { if (statusBuilder_ == null) { @@ -1524,100 +1384,73 @@ public Builder clearStatus() { return this; } /** - * - * *
      * Output only. Current operation status.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder getStatusBuilder() { - + onChanged(); return getStatusFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Current operation status.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null - ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() - : status_; + return status_ == null ? + com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() : status_; } } /** - * - * *
      * Output only. Current operation status.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, - com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> + com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, - com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); status_ = null; } return statusBuilder_; } private java.util.List statusHistory_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStatusHistoryIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - statusHistory_ = - new java.util.ArrayList( - statusHistory_); + statusHistory_ = new java.util.ArrayList(statusHistory_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, - com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> - statusHistoryBuilder_; + com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> statusHistoryBuilder_; /** - * - * *
      * Output only. The previous operation status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getStatusHistoryList() { + public java.util.List getStatusHistoryList() { if (statusHistoryBuilder_ == null) { return java.util.Collections.unmodifiableList(statusHistory_); } else { @@ -1625,15 +1458,11 @@ private void ensureStatusHistoryIsMutable() { } } /** - * - * *
      * Output only. The previous operation status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getStatusHistoryCount() { if (statusHistoryBuilder_ == null) { @@ -1643,15 +1472,11 @@ public int getStatusHistoryCount() { } } /** - * - * *
      * Output only. The previous operation status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatusHistory(int index) { if (statusHistoryBuilder_ == null) { @@ -1661,15 +1486,11 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatusHistory(int } } /** - * - * *
      * Output only. The previous operation status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStatusHistory( int index, com.google.cloud.dataproc.v1.ClusterOperationStatus value) { @@ -1686,15 +1507,11 @@ public Builder setStatusHistory( return this; } /** - * - * *
      * Output only. The previous operation status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStatusHistory( int index, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { @@ -1708,15 +1525,11 @@ public Builder setStatusHistory( return this; } /** - * - * *
      * Output only. The previous operation status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStatusHistory(com.google.cloud.dataproc.v1.ClusterOperationStatus value) { if (statusHistoryBuilder_ == null) { @@ -1732,15 +1545,11 @@ public Builder addStatusHistory(com.google.cloud.dataproc.v1.ClusterOperationSta return this; } /** - * - * *
      * Output only. The previous operation status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStatusHistory( int index, com.google.cloud.dataproc.v1.ClusterOperationStatus value) { @@ -1757,15 +1566,11 @@ public Builder addStatusHistory( return this; } /** - * - * *
      * Output only. The previous operation status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStatusHistory( com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { @@ -1779,15 +1584,11 @@ public Builder addStatusHistory( return this; } /** - * - * *
      * Output only. The previous operation status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStatusHistory( int index, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { @@ -1801,21 +1602,18 @@ public Builder addStatusHistory( return this; } /** - * - * *
      * Output only. The previous operation status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllStatusHistory( java.lang.Iterable values) { if (statusHistoryBuilder_ == null) { ensureStatusHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statusHistory_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, statusHistory_); onChanged(); } else { statusHistoryBuilder_.addAllMessages(values); @@ -1823,15 +1621,11 @@ public Builder addAllStatusHistory( return this; } /** - * - * *
      * Output only. The previous operation status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStatusHistory() { if (statusHistoryBuilder_ == null) { @@ -1844,15 +1638,11 @@ public Builder clearStatusHistory() { return this; } /** - * - * *
      * Output only. The previous operation status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeStatusHistory(int index) { if (statusHistoryBuilder_ == null) { @@ -1865,52 +1655,39 @@ public Builder removeStatusHistory(int index) { return this; } /** - * - * *
      * Output only. The previous operation status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder getStatusHistoryBuilder( int index) { return getStatusHistoryFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. The previous operation status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder( int index) { if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); - } else { + return statusHistory_.get(index); } else { return statusHistoryBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. The previous operation status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getStatusHistoryOrBuilderList() { + public java.util.List + getStatusHistoryOrBuilderList() { if (statusHistoryBuilder_ != null) { return statusHistoryBuilder_.getMessageOrBuilderList(); } else { @@ -1918,64 +1695,45 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHis } } /** - * - * *
      * Output only. The previous operation status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder addStatusHistoryBuilder() { - return getStatusHistoryFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()); + return getStatusHistoryFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()); } /** - * - * *
      * Output only. The previous operation status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder addStatusHistoryBuilder( int index) { - return getStatusHistoryFieldBuilder() - .addBuilder( - index, com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()); + return getStatusHistoryFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()); } /** - * - * *
      * Output only. The previous operation status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getStatusHistoryBuilderList() { + public java.util.List + getStatusHistoryBuilderList() { return getStatusHistoryFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, - com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> + com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> getStatusHistoryFieldBuilder() { if (statusHistoryBuilder_ == null) { - statusHistoryBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, - com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder>( + statusHistoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder>( statusHistory_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1987,20 +1745,18 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder addStatusHist private java.lang.Object operationType_ = ""; /** - * - * *
      * Output only. The operation type.
      * 
* * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The operationType. */ public java.lang.String getOperationType() { java.lang.Object ref = operationType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationType_ = s; return s; @@ -2009,21 +1765,20 @@ public java.lang.String getOperationType() { } } /** - * - * *
      * Output only. The operation type.
      * 
* * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for operationType. */ - public com.google.protobuf.ByteString getOperationTypeBytes() { + public com.google.protobuf.ByteString + getOperationTypeBytes() { java.lang.Object ref = operationType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operationType_ = b; return b; } else { @@ -2031,61 +1786,54 @@ public com.google.protobuf.ByteString getOperationTypeBytes() { } } /** - * - * *
      * Output only. The operation type.
      * 
* * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The operationType to set. * @return This builder for chaining. */ - public Builder setOperationType(java.lang.String value) { + public Builder setOperationType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + operationType_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The operation type.
      * 
* * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearOperationType() { - + operationType_ = getDefaultInstance().getOperationType(); onChanged(); return this; } /** - * - * *
      * Output only. The operation type.
      * 
* * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for operationType to set. * @return This builder for chaining. */ - public Builder setOperationTypeBytes(com.google.protobuf.ByteString value) { + public Builder setOperationTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationType_ = value; onChanged(); return this; @@ -2093,20 +1841,18 @@ public Builder setOperationTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Output only. Short description of operation.
      * 
* * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2115,21 +1861,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Output only. Short description of operation.
      * 
* * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2137,81 +1882,75 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Output only. Short description of operation.
      * 
* * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Short description of operation.
      * 
* * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Output only. Short description of operation.
      * 
* * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - 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(); @@ -2223,77 +1962,70 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Output only. Labels associated with the operation
      * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + @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(); } /** - * - * *
      * Output only. Labels associated with the operation
      * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Output only. Labels associated with the operation
      * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @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; } /** - * - * *
      * Output only. Labels associated with the operation
      * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @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(); } @@ -2301,113 +2033,103 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Output only. Labels associated with the operation
      * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - 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(); } /** - * - * *
      * Output only. Labels associated with the operation
      * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - 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; } /** - * - * *
      * Output only. Labels associated with the operation
      * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - private com.google.protobuf.LazyStringList warnings_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureWarningsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList getWarningsList() { + public com.google.protobuf.ProtocolStringList + getWarningsList() { return warnings_.getUnmodifiableView(); } /** - * - * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** - * - * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -2415,90 +2137,80 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** - * - * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString getWarningsBytes(int index) { + public com.google.protobuf.ByteString + getWarningsBytes(int index) { return warnings_.getByteString(index); } /** - * - * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index to set the value at. * @param value The warnings to set. * @return This builder for chaining. */ - public Builder setWarnings(int index, java.lang.String value) { + public Builder setWarnings( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The warnings to add. * @return This builder for chaining. */ - public Builder addWarnings(java.lang.String value) { + public Builder addWarnings( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param values The warnings to add. * @return This builder for chaining. */ - public Builder addAllWarnings(java.lang.Iterable values) { + public Builder addAllWarnings( + java.lang.Iterable values) { ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, warnings_); onChanged(); return this; } /** - * - * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearWarnings() { @@ -2508,30 +2220,28 @@ public Builder clearWarnings() { return this; } /** - * - * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes of the warnings to add. * @return This builder for chaining. */ - public Builder addWarningsBytes(com.google.protobuf.ByteString value) { + public Builder addWarningsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureWarningsIsMutable(); warnings_.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); } @@ -2541,12 +2251,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ClusterOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterOperationMetadata) private static final com.google.cloud.dataproc.v1.ClusterOperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterOperationMetadata(); } @@ -2555,27 +2265,27 @@ public static com.google.cloud.dataproc.v1.ClusterOperationMetadata getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2590,4 +2300,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ClusterOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java similarity index 63% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java index c9865b12c0e8..c9590e3f291a 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java @@ -1,343 +1,257 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/operations.proto package com.google.cloud.dataproc.v1; -public interface ClusterOperationMetadataOrBuilder - extends +public interface ClusterOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Name of the cluster for the operation.
    * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterName. */ java.lang.String getClusterName(); /** - * - * *
    * Output only. Name of the cluster for the operation.
    * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString getClusterNameBytes(); + com.google.protobuf.ByteString + getClusterNameBytes(); /** - * - * *
    * Output only. Cluster UUID for the operation.
    * 
* * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterUuid. */ java.lang.String getClusterUuid(); /** - * - * *
    * Output only. Cluster UUID for the operation.
    * 
* * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterUuid. */ - com.google.protobuf.ByteString getClusterUuidBytes(); + com.google.protobuf.ByteString + getClusterUuidBytes(); /** - * - * *
    * Output only. Current operation status.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the status field is set. */ boolean hasStatus(); /** - * - * *
    * Output only. Current operation status.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ com.google.cloud.dataproc.v1.ClusterOperationStatus getStatus(); /** - * - * *
    * Output only. Current operation status.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusOrBuilder(); /** - * - * *
    * Output only. The previous operation status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getStatusHistoryList(); + java.util.List + getStatusHistoryList(); /** - * - * *
    * Output only. The previous operation status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.ClusterOperationStatus getStatusHistory(int index); /** - * - * *
    * Output only. The previous operation status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getStatusHistoryCount(); /** - * - * *
    * Output only. The previous operation status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getStatusHistoryOrBuilderList(); /** - * - * *
    * Output only. The previous operation status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder(int index); + com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder( + int index); /** - * - * *
    * Output only. The operation type.
    * 
* * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The operationType. */ java.lang.String getOperationType(); /** - * - * *
    * Output only. The operation type.
    * 
* * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for operationType. */ - com.google.protobuf.ByteString getOperationTypeBytes(); + com.google.protobuf.ByteString + getOperationTypeBytes(); /** - * - * *
    * Output only. Short description of operation.
    * 
* * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Output only. Short description of operation.
    * 
* * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. Labels associated with the operation
    * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getLabelsCount(); /** - * - * *
    * Output only. Labels associated with the operation
    * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + 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(); /** - * - * *
    * Output only. Labels associated with the operation
    * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Output only. Labels associated with the operation
    * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Output only. Labels associated with the operation
    * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the warnings. */ - java.util.List getWarningsList(); + java.util.List + getWarningsList(); /** - * - * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of warnings. */ int getWarningsCount(); /** - * - * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The warnings at the given index. */ java.lang.String getWarnings(int index); /** - * - * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - com.google.protobuf.ByteString getWarningsBytes(int index); + com.google.protobuf.ByteString + getWarningsBytes(int index); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java similarity index 62% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java index 0c573e43ae19..0c910c744903 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java @@ -1,87 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface ClusterOperationOrBuilder - extends +public interface ClusterOperationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterOperation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The id of the cluster operation.
    * 
* * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The operationId. */ java.lang.String getOperationId(); /** - * - * *
    * Output only. The id of the cluster operation.
    * 
* * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for operationId. */ - com.google.protobuf.ByteString getOperationIdBytes(); + com.google.protobuf.ByteString + getOperationIdBytes(); /** - * - * *
    * Output only. Error, if operation failed.
    * 
* * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The error. */ java.lang.String getError(); /** - * - * *
    * Output only. Error, if operation failed.
    * 
* * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for error. */ - com.google.protobuf.ByteString getErrorBytes(); + com.google.protobuf.ByteString + getErrorBytes(); /** - * - * *
    * Output only. Indicates the operation is done.
    * 
* * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The done. */ boolean getDone(); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java index 1c40da9af517..1e262130ba94 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.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/dataproc/v1/operations.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * The status of the operation.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterOperationStatus} */ -public final class ClusterOperationStatus extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ClusterOperationStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterOperationStatus) ClusterOperationStatusOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ClusterOperationStatus.newBuilder() to construct. private ClusterOperationStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ClusterOperationStatus() { state_ = 0; innerState_ = ""; @@ -45,43 +27,39 @@ private ClusterOperationStatus() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ClusterOperationStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterOperationStatus.class, - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder.class); + com.google.cloud.dataproc.v1.ClusterOperationStatus.class, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder.class); } /** - * - * *
    * The operation state.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.ClusterOperationStatus.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unused.
      * 
@@ -90,8 +68,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
      * The operation has been created.
      * 
@@ -100,8 +76,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PENDING(1), /** - * - * *
      * The operation is running.
      * 
@@ -110,8 +84,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(2), /** - * - * *
      * The operation is done; either cancelled or completed.
      * 
@@ -123,8 +95,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unused.
      * 
@@ -133,8 +103,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
      * The operation has been created.
      * 
@@ -143,8 +111,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PENDING_VALUE = 1; /** - * - * *
      * The operation is running.
      * 
@@ -153,8 +119,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 2; /** - * - * *
      * The operation is done; either cancelled or completed.
      * 
@@ -163,6 +127,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DONE_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -187,53 +152,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return PENDING; - case 2: - return RUNNING; - case 3: - return DONE; - default: - return null; + case 0: return UNKNOWN; + case 1: return PENDING; + case 2: return RUNNING; + case 3: return DONE; + 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() { - return com.google.cloud.dataproc.v1.ClusterOperationStatus.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClusterOperationStatus.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; @@ -253,56 +215,38 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** - * - * *
    * Output only. A message containing the operation state.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. A message containing the operation state.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperationStatus.State getState() { + @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationStatus.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ClusterOperationStatus.State result = - com.google.cloud.dataproc.v1.ClusterOperationStatus.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1.ClusterOperationStatus.State.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.ClusterOperationStatus.State result = com.google.cloud.dataproc.v1.ClusterOperationStatus.State.valueOf(state_); + return result == null ? com.google.cloud.dataproc.v1.ClusterOperationStatus.State.UNRECOGNIZED : result; } public static final int INNER_STATE_FIELD_NUMBER = 2; private volatile java.lang.Object innerState_; /** - * - * *
    * Output only. A message containing the detailed operation state.
    * 
* * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The innerState. */ @java.lang.Override @@ -311,29 +255,29 @@ public java.lang.String getInnerState() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); innerState_ = s; return s; } } /** - * - * *
    * Output only. A message containing the detailed operation state.
    * 
* * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for innerState. */ @java.lang.Override - public com.google.protobuf.ByteString getInnerStateBytes() { + public com.google.protobuf.ByteString + getInnerStateBytes() { java.lang.Object ref = innerState_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); innerState_ = b; return b; } else { @@ -344,14 +288,11 @@ public com.google.protobuf.ByteString getInnerStateBytes() { public static final int DETAILS_FIELD_NUMBER = 3; private volatile java.lang.Object details_; /** - * - * *
    * Output only. A message containing any operation metadata details.
    * 
* * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The details. */ @java.lang.Override @@ -360,29 +301,29 @@ public java.lang.String getDetails() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; } } /** - * - * *
    * Output only. A message containing any operation metadata details.
    * 
* * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for details. */ @java.lang.Override - public com.google.protobuf.ByteString getDetailsBytes() { + public com.google.protobuf.ByteString + getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); details_ = b; return b; } else { @@ -393,16 +334,11 @@ public com.google.protobuf.ByteString getDetailsBytes() { public static final int STATE_START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp stateStartTime_; /** - * - * *
    * Output only. The time this state was entered.
    * 
* - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateStartTime field is set. */ @java.lang.Override @@ -410,34 +346,23 @@ public boolean hasStateStartTime() { return stateStartTime_ != null; } /** - * - * *
    * Output only. The time this state was entered.
    * 
* - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStateStartTime() { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; + return stateStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; } /** - * - * *
    * Output only. The time this state was entered.
    * 
* - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { @@ -445,7 +370,6 @@ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -457,7 +381,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 (state_ != com.google.cloud.dataproc.v1.ClusterOperationStatus.State.UNKNOWN.getNumber()) { output.writeEnum(1, state_); } @@ -480,7 +405,8 @@ public int getSerializedSize() { size = 0; if (state_ != com.google.cloud.dataproc.v1.ClusterOperationStatus.State.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(innerState_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, innerState_); @@ -489,7 +415,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, details_); } if (stateStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStateStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStateStartTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -499,20 +426,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.dataproc.v1.ClusterOperationStatus)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ClusterOperationStatus other = - (com.google.cloud.dataproc.v1.ClusterOperationStatus) obj; + com.google.cloud.dataproc.v1.ClusterOperationStatus other = (com.google.cloud.dataproc.v1.ClusterOperationStatus) obj; if (state_ != other.state_) return false; - if (!getInnerState().equals(other.getInnerState())) return false; - if (!getDetails().equals(other.getDetails())) return false; + if (!getInnerState() + .equals(other.getInnerState())) return false; + if (!getDetails() + .equals(other.getDetails())) return false; if (hasStateStartTime() != other.hasStateStartTime()) return false; if (hasStateStartTime()) { - if (!getStateStartTime().equals(other.getStateStartTime())) return false; + if (!getStateStartTime() + .equals(other.getStateStartTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -541,135 +470,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.ClusterOperationStatus 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.dataproc.v1.ClusterOperationStatus parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ClusterOperationStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 status of the operation.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterOperationStatus} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterOperationStatus) com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterOperationStatus.class, - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder.class); + com.google.cloud.dataproc.v1.ClusterOperationStatus.class, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ClusterOperationStatus.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -689,9 +612,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; } @java.lang.Override @@ -710,8 +633,7 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatus build() { @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationStatus buildPartial() { - com.google.cloud.dataproc.v1.ClusterOperationStatus result = - new com.google.cloud.dataproc.v1.ClusterOperationStatus(this); + com.google.cloud.dataproc.v1.ClusterOperationStatus result = new com.google.cloud.dataproc.v1.ClusterOperationStatus(this); result.state_ = state_; result.innerState_ = innerState_; result.details_ = details_; @@ -728,39 +650,38 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatus buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ClusterOperationStatus) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterOperationStatus) other); + return mergeFrom((com.google.cloud.dataproc.v1.ClusterOperationStatus)other); } else { super.mergeFrom(other); return this; @@ -768,8 +689,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterOperationStatus other) { - if (other == com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -810,37 +730,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - state_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - innerState_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - details_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - input.readMessage(getStateStartTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + state_ = input.readEnum(); + + break; + } // case 8 + case 18: { + innerState_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + details_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + input.readMessage( + getStateStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -853,75 +770,51 @@ public Builder mergeFrom( private int state_ = 0; /** - * - * *
      * Output only. A message containing the operation state.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. A message containing the operation state.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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; } /** - * - * *
      * Output only. A message containing the operation state.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationStatus.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ClusterOperationStatus.State result = - com.google.cloud.dataproc.v1.ClusterOperationStatus.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1.ClusterOperationStatus.State.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.ClusterOperationStatus.State result = com.google.cloud.dataproc.v1.ClusterOperationStatus.State.valueOf(state_); + return result == null ? com.google.cloud.dataproc.v1.ClusterOperationStatus.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. A message containing the operation state.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -929,26 +822,21 @@ public Builder setState(com.google.cloud.dataproc.v1.ClusterOperationStatus.Stat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. A message containing the operation state.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -956,20 +844,18 @@ public Builder clearState() { private java.lang.Object innerState_ = ""; /** - * - * *
      * Output only. A message containing the detailed operation state.
      * 
* * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The innerState. */ public java.lang.String getInnerState() { java.lang.Object ref = innerState_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); innerState_ = s; return s; @@ -978,21 +864,20 @@ public java.lang.String getInnerState() { } } /** - * - * *
      * Output only. A message containing the detailed operation state.
      * 
* * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for innerState. */ - public com.google.protobuf.ByteString getInnerStateBytes() { + public com.google.protobuf.ByteString + getInnerStateBytes() { java.lang.Object ref = innerState_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); innerState_ = b; return b; } else { @@ -1000,61 +885,54 @@ public com.google.protobuf.ByteString getInnerStateBytes() { } } /** - * - * *
      * Output only. A message containing the detailed operation state.
      * 
* * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The innerState to set. * @return This builder for chaining. */ - public Builder setInnerState(java.lang.String value) { + public Builder setInnerState( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + innerState_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A message containing the detailed operation state.
      * 
* * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearInnerState() { - + innerState_ = getDefaultInstance().getInnerState(); onChanged(); return this; } /** - * - * *
      * Output only. A message containing the detailed operation state.
      * 
* * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for innerState to set. * @return This builder for chaining. */ - public Builder setInnerStateBytes(com.google.protobuf.ByteString value) { + public Builder setInnerStateBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + innerState_ = value; onChanged(); return this; @@ -1062,20 +940,18 @@ public Builder setInnerStateBytes(com.google.protobuf.ByteString value) { private java.lang.Object details_ = ""; /** - * - * *
      * Output only. A message containing any operation metadata details.
      * 
* * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The details. */ public java.lang.String getDetails() { java.lang.Object ref = details_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; @@ -1084,21 +960,20 @@ public java.lang.String getDetails() { } } /** - * - * *
      * Output only. A message containing any operation metadata details.
      * 
* * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for details. */ - public com.google.protobuf.ByteString getDetailsBytes() { + public com.google.protobuf.ByteString + getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); details_ = b; return b; } else { @@ -1106,61 +981,54 @@ public com.google.protobuf.ByteString getDetailsBytes() { } } /** - * - * *
      * Output only. A message containing any operation metadata details.
      * 
* * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The details to set. * @return This builder for chaining. */ - public Builder setDetails(java.lang.String value) { + public Builder setDetails( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + details_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A message containing any operation metadata details.
      * 
* * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDetails() { - + details_ = getDefaultInstance().getDetails(); onChanged(); return this; } /** - * - * *
      * Output only. A message containing any operation metadata details.
      * 
* * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for details to set. * @return This builder for chaining. */ - public Builder setDetailsBytes(com.google.protobuf.ByteString value) { + public Builder setDetailsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + details_ = value; onChanged(); return this; @@ -1168,58 +1036,39 @@ public Builder setDetailsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp stateStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - stateStartTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> stateStartTimeBuilder_; /** - * - * *
      * Output only. The time this state was entered.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateStartTime field is set. */ public boolean hasStateStartTime() { return stateStartTimeBuilder_ != null || stateStartTime_ != null; } /** - * - * *
      * Output only. The time this state was entered.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateStartTime. */ public com.google.protobuf.Timestamp getStateStartTime() { if (stateStartTimeBuilder_ == null) { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; + return stateStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; } else { return stateStartTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time this state was entered.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStateStartTime(com.google.protobuf.Timestamp value) { if (stateStartTimeBuilder_ == null) { @@ -1235,17 +1084,14 @@ public Builder setStateStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time this state was entered.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStateStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (stateStartTimeBuilder_ == null) { stateStartTime_ = builderForValue.build(); onChanged(); @@ -1256,23 +1102,17 @@ public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
      * Output only. The time this state was entered.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { if (stateStartTimeBuilder_ == null) { if (stateStartTime_ != null) { stateStartTime_ = - com.google.protobuf.Timestamp.newBuilder(stateStartTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(stateStartTime_).mergeFrom(value).buildPartial(); } else { stateStartTime_ = value; } @@ -1284,15 +1124,11 @@ public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time this state was entered.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStateStartTime() { if (stateStartTimeBuilder_ == null) { @@ -1306,71 +1142,55 @@ public Builder clearStateStartTime() { return this; } /** - * - * *
      * Output only. The time this state was entered.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStateStartTimeBuilder() { - + onChanged(); return getStateStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time this state was entered.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { if (stateStartTimeBuilder_ != null) { return stateStartTimeBuilder_.getMessageOrBuilder(); } else { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; + return stateStartTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; } } /** - * - * *
      * Output only. The time this state was entered.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 4 [(.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> getStateStartTimeFieldBuilder() { if (stateStartTimeBuilder_ == null) { - stateStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStateStartTime(), getParentForChildren(), isClean()); + stateStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStateStartTime(), + getParentForChildren(), + isClean()); stateStartTime_ = null; } return stateStartTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1380,12 +1200,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ClusterOperationStatus) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterOperationStatus) private static final com.google.cloud.dataproc.v1.ClusterOperationStatus DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterOperationStatus(); } @@ -1394,27 +1214,27 @@ public static com.google.cloud.dataproc.v1.ClusterOperationStatus getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterOperationStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterOperationStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1429,4 +1249,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ClusterOperationStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java similarity index 58% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java index 5f2a78e0b523..0e2bd8528260 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java @@ -1,145 +1,95 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/operations.proto package com.google.cloud.dataproc.v1; -public interface ClusterOperationStatusOrBuilder - extends +public interface ClusterOperationStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterOperationStatus) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. A message containing the operation state.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. A message containing the operation state.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.dataproc.v1.ClusterOperationStatus.State getState(); /** - * - * *
    * Output only. A message containing the detailed operation state.
    * 
* * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The innerState. */ java.lang.String getInnerState(); /** - * - * *
    * Output only. A message containing the detailed operation state.
    * 
* * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for innerState. */ - com.google.protobuf.ByteString getInnerStateBytes(); + com.google.protobuf.ByteString + getInnerStateBytes(); /** - * - * *
    * Output only. A message containing any operation metadata details.
    * 
* * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The details. */ java.lang.String getDetails(); /** - * - * *
    * Output only. A message containing any operation metadata details.
    * 
* * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for details. */ - com.google.protobuf.ByteString getDetailsBytes(); + com.google.protobuf.ByteString + getDetailsBytes(); /** - * - * *
    * Output only. The time this state was entered.
    * 
* - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateStartTime field is set. */ boolean hasStateStartTime(); /** - * - * *
    * Output only. The time this state was entered.
    * 
* - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateStartTime. */ com.google.protobuf.Timestamp getStateStartTime(); /** - * - * *
    * Output only. The time this state was entered.
    * 
* - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java similarity index 58% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java index 542813e6e31a..2ad6b52e8f00 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java @@ -1,189 +1,143 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface ClusterOrBuilder - extends +public interface ClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.Cluster) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Google Cloud Platform project ID that the cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The Google Cloud Platform project ID that the cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
-   * Required. The cluster name. Cluster names within a project must be
-   * unique. Names of deleted clusters can be reused.
+   * Required. The cluster name, which must be unique within a project.
+   * The name must start with a lowercase letter, and can contain
+   * up to 51 lowercase letters, numbers, and hyphens. It cannot end
+   * with a hyphen. The name of a deleted cluster can be reused.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ java.lang.String getClusterName(); /** - * - * *
-   * Required. The cluster name. Cluster names within a project must be
-   * unique. Names of deleted clusters can be reused.
+   * Required. The cluster name, which must be unique within a project.
+   * The name must start with a lowercase letter, and can contain
+   * up to 51 lowercase letters, numbers, and hyphens. It cannot end
+   * with a hyphen. The name of a deleted cluster can be reused.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString getClusterNameBytes(); + com.google.protobuf.ByteString + getClusterNameBytes(); /** - * - * *
    * Optional. The cluster config for a cluster of Compute Engine Instances.
    * Note that Dataproc may set default values, and values may change
    * when clusters are updated.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Optional. The cluster config for a cluster of Compute Engine Instances.
    * Note that Dataproc may set default values, and values may change
    * when clusters are updated.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The config. */ com.google.cloud.dataproc.v1.ClusterConfig getConfig(); /** - * - * *
    * Optional. The cluster config for a cluster of Compute Engine Instances.
    * Note that Dataproc may set default values, and values may change
    * when clusters are updated.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder(); /** - * - * *
-   * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-   * does not directly control the underlying compute resources, for example,
-   * when creating a [Dataproc-on-GKE
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-   * Note that Dataproc may set default values, and values may change when
-   * clusters are updated. Exactly one of config or virtualClusterConfig must be
-   * specified.
+   * Optional. The virtual cluster config is used when creating a Dataproc
+   * cluster that does not directly control the underlying compute resources,
+   * for example, when creating a [Dataproc-on-GKE
+   * cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke).
+   * Dataproc may set default values, and values may change when
+   * clusters are updated. Exactly one of
+   * [config][google.cloud.dataproc.v1.Cluster.config] or
+   * [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
+   * must be specified.
    * 
* - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the virtualClusterConfig field is set. */ boolean hasVirtualClusterConfig(); /** - * - * *
-   * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-   * does not directly control the underlying compute resources, for example,
-   * when creating a [Dataproc-on-GKE
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-   * Note that Dataproc may set default values, and values may change when
-   * clusters are updated. Exactly one of config or virtualClusterConfig must be
-   * specified.
+   * Optional. The virtual cluster config is used when creating a Dataproc
+   * cluster that does not directly control the underlying compute resources,
+   * for example, when creating a [Dataproc-on-GKE
+   * cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke).
+   * Dataproc may set default values, and values may change when
+   * clusters are updated. Exactly one of
+   * [config][google.cloud.dataproc.v1.Cluster.config] or
+   * [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
+   * must be specified.
    * 
* - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The virtualClusterConfig. */ com.google.cloud.dataproc.v1.VirtualClusterConfig getVirtualClusterConfig(); /** - * - * *
-   * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-   * does not directly control the underlying compute resources, for example,
-   * when creating a [Dataproc-on-GKE
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-   * Note that Dataproc may set default values, and values may change when
-   * clusters are updated. Exactly one of config or virtualClusterConfig must be
-   * specified.
+   * Optional. The virtual cluster config is used when creating a Dataproc
+   * cluster that does not directly control the underlying compute resources,
+   * for example, when creating a [Dataproc-on-GKE
+   * cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke).
+   * Dataproc may set default values, and values may change when
+   * clusters are updated. Exactly one of
+   * [config][google.cloud.dataproc.v1.Cluster.config] or
+   * [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
+   * must be specified.
    * 
* - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder getVirtualClusterConfigOrBuilder(); /** - * - * *
    * Optional. The labels to associate with this cluster.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -198,8 +152,6 @@ public interface ClusterOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -212,13 +164,15 @@ public interface ClusterOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  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();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -231,10 +185,9 @@ public interface ClusterOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -249,13 +202,11 @@ public interface ClusterOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -268,182 +219,133 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. Cluster status.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the status field is set. */ boolean hasStatus(); /** - * - * *
    * Output only. Cluster status.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ com.google.cloud.dataproc.v1.ClusterStatus getStatus(); /** - * - * *
    * Output only. Cluster status.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusOrBuilder(); /** - * - * *
    * Output only. The previous cluster status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getStatusHistoryList(); + java.util.List + getStatusHistoryList(); /** - * - * *
    * Output only. The previous cluster status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.ClusterStatus getStatusHistory(int index); /** - * - * *
    * Output only. The previous cluster status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getStatusHistoryCount(); /** - * - * *
    * Output only. The previous cluster status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getStatusHistoryOrBuilderList(); /** - * - * *
    * Output only. The previous cluster status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusHistoryOrBuilder(int index); + com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusHistoryOrBuilder( + int index); /** - * - * *
    * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
    * generates this value when it creates the cluster.
    * 
* * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterUuid. */ java.lang.String getClusterUuid(); /** - * - * *
    * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
    * generates this value when it creates the cluster.
    * 
* * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterUuid. */ - com.google.protobuf.ByteString getClusterUuidBytes(); + com.google.protobuf.ByteString + getClusterUuidBytes(); /** - * - * *
    * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
    * **Beta Feature**: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the metrics field is set. */ boolean hasMetrics(); /** - * - * *
    * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
    * **Beta Feature**: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The metrics. */ com.google.cloud.dataproc.v1.ClusterMetrics getMetrics(); /** - * - * *
    * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
    * **Beta Feature**: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder getMetricsOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterRegionName.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterRegionName.java new file mode 100644 index 000000000000..1c99e7c1fa87 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterRegionName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ClusterRegionName implements ResourceName { + private static final PathTemplate PROJECT_REGION_CLUSTER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/regions/{region}/clusters/{cluster}"); + private volatile Map fieldValuesMap; + private final String project; + private final String region; + private final String cluster; + + @Deprecated + protected ClusterRegionName() { + project = null; + region = null; + cluster = null; + } + + private ClusterRegionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + region = Preconditions.checkNotNull(builder.getRegion()); + cluster = Preconditions.checkNotNull(builder.getCluster()); + } + + public String getProject() { + return project; + } + + public String getRegion() { + return region; + } + + public String getCluster() { + return cluster; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ClusterRegionName of(String project, String region, String cluster) { + return newBuilder().setProject(project).setRegion(region).setCluster(cluster).build(); + } + + public static String format(String project, String region, String cluster) { + return newBuilder() + .setProject(project) + .setRegion(region) + .setCluster(cluster) + .build() + .toString(); + } + + public static ClusterRegionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_REGION_CLUSTER.validatedMatch( + formattedString, "ClusterRegionName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("region"), matchMap.get("cluster")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ClusterRegionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_REGION_CLUSTER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (region != null) { + fieldMapBuilder.put("region", region); + } + if (cluster != null) { + fieldMapBuilder.put("cluster", cluster); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_REGION_CLUSTER.instantiate( + "project", project, "region", region, "cluster", cluster); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ClusterRegionName that = ((ClusterRegionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.region, that.region) + && Objects.equals(this.cluster, that.cluster); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(region); + h *= 1000003; + h ^= Objects.hashCode(cluster); + return h; + } + + /** Builder for projects/{project}/regions/{region}/clusters/{cluster}. */ + public static class Builder { + private String project; + private String region; + private String cluster; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getRegion() { + return region; + } + + public String getCluster() { + return cluster; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setRegion(String region) { + this.region = region; + return this; + } + + public Builder setCluster(String cluster) { + this.cluster = cluster; + return this; + } + + private Builder(ClusterRegionName clusterRegionName) { + this.project = clusterRegionName.project; + this.region = clusterRegionName.region; + this.cluster = clusterRegionName.cluster; + } + + public ClusterRegionName build() { + return new ClusterRegionName(this); + } + } +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java similarity index 62% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java index e59022b65975..d8bb40c2ea5c 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java @@ -1,88 +1,68 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A selector that chooses target cluster for jobs based on metadata.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterSelector} */ -public final class ClusterSelector extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ClusterSelector extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterSelector) ClusterSelectorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ClusterSelector.newBuilder() to construct. private ClusterSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ClusterSelector() { zone_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ClusterSelector(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetClusterLabels(); 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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterSelector_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterSelector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterSelector.class, - com.google.cloud.dataproc.v1.ClusterSelector.Builder.class); + com.google.cloud.dataproc.v1.ClusterSelector.class, com.google.cloud.dataproc.v1.ClusterSelector.Builder.class); } public static final int ZONE_FIELD_NUMBER = 1; private volatile java.lang.Object zone_; /** - * - * *
    * Optional. The zone where workflow process executes. This parameter does not
    * affect the selection of the cluster.
@@ -91,7 +71,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The zone. */ @java.lang.Override @@ -100,15 +79,14 @@ public java.lang.String getZone() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zone_ = s; return s; } } /** - * - * *
    * Optional. The zone where workflow process executes. This parameter does not
    * affect the selection of the cluster.
@@ -117,15 +95,16 @@ public java.lang.String getZone() {
    * 
* * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for zone. */ @java.lang.Override - public com.google.protobuf.ByteString getZoneBytes() { + public com.google.protobuf.ByteString + getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); zone_ = b; return b; } else { @@ -134,22 +113,21 @@ public com.google.protobuf.ByteString getZoneBytes() { } public static final int CLUSTER_LABELS_FIELD_NUMBER = 2; - private static final class ClusterLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterSelector_ClusterLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField clusterLabels_; - + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterSelector_ClusterLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> clusterLabels_; private com.google.protobuf.MapField - internalGetClusterLabels() { + internalGetClusterLabels() { if (clusterLabels_ == null) { return com.google.protobuf.MapField.emptyMapField( ClusterLabelsDefaultEntryHolder.defaultEntry); @@ -161,81 +139,74 @@ public int getClusterLabelsCount() { return internalGetClusterLabels().getMap().size(); } /** - * - * *
    * Required. The cluster labels. Cluster must have all labels
    * to match.
    * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; */ + @java.lang.Override - public boolean containsClusterLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsClusterLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetClusterLabels().getMap().containsKey(key); } - /** Use {@link #getClusterLabelsMap()} instead. */ + /** + * Use {@link #getClusterLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getClusterLabels() { return getClusterLabelsMap(); } /** - * - * *
    * Required. The cluster labels. Cluster must have all labels
    * to match.
    * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override + public java.util.Map getClusterLabelsMap() { return internalGetClusterLabels().getMap(); } /** - * - * *
    * Required. The cluster labels. Cluster must have all labels
    * to match.
    * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override + public java.lang.String getClusterLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetClusterLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetClusterLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Required. The cluster labels. Cluster must have all labels
    * to match.
    * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetClusterLabels().getMap(); + + public java.lang.String getClusterLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetClusterLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -243,7 +214,6 @@ public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,12 +225,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, zone_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetClusterLabels(), ClusterLabelsDefaultEntryHolder.defaultEntry, 2); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetClusterLabels(), + ClusterLabelsDefaultEntryHolder.defaultEntry, + 2); getUnknownFields().writeTo(output); } @@ -273,15 +248,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, zone_); } - for (java.util.Map.Entry entry : - internalGetClusterLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry clusterLabels__ = - ClusterLabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, clusterLabels__); + for (java.util.Map.Entry entry + : internalGetClusterLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + clusterLabels__ = ClusterLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, clusterLabels__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -291,16 +266,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.dataproc.v1.ClusterSelector)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ClusterSelector other = - (com.google.cloud.dataproc.v1.ClusterSelector) obj; + com.google.cloud.dataproc.v1.ClusterSelector other = (com.google.cloud.dataproc.v1.ClusterSelector) obj; - if (!getZone().equals(other.getZone())) return false; - if (!internalGetClusterLabels().equals(other.internalGetClusterLabels())) return false; + if (!getZone() + .equals(other.getZone())) return false; + if (!internalGetClusterLabels().equals( + other.internalGetClusterLabels())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -323,156 +299,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ClusterSelector parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ClusterSelector parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterSelector parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ClusterSelector prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 selector that chooses target cluster for jobs based on metadata.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterSelector} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterSelector) com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetClusterLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: return internalGetMutableClusterLabels(); 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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterSelector_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterSelector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterSelector.class, - com.google.cloud.dataproc.v1.ClusterSelector.Builder.class); + com.google.cloud.dataproc.v1.ClusterSelector.class, com.google.cloud.dataproc.v1.ClusterSelector.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ClusterSelector.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -483,9 +455,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; } @java.lang.Override @@ -504,8 +476,7 @@ public com.google.cloud.dataproc.v1.ClusterSelector build() { @java.lang.Override public com.google.cloud.dataproc.v1.ClusterSelector buildPartial() { - com.google.cloud.dataproc.v1.ClusterSelector result = - new com.google.cloud.dataproc.v1.ClusterSelector(this); + com.google.cloud.dataproc.v1.ClusterSelector result = new com.google.cloud.dataproc.v1.ClusterSelector(this); int from_bitField0_ = bitField0_; result.zone_ = zone_; result.clusterLabels_ = internalGetClusterLabels(); @@ -518,39 +489,38 @@ public com.google.cloud.dataproc.v1.ClusterSelector buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ClusterSelector) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterSelector) other); + return mergeFrom((com.google.cloud.dataproc.v1.ClusterSelector)other); } else { super.mergeFrom(other); return this; @@ -563,7 +533,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterSelector other) { zone_ = other.zone_; onChanged(); } - internalGetMutableClusterLabels().mergeFrom(other.internalGetClusterLabels()); + internalGetMutableClusterLabels().mergeFrom( + other.internalGetClusterLabels()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -590,30 +561,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - com.google.protobuf.MapEntry clusterLabels__ = - input.readMessage( - ClusterLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableClusterLabels() - .getMutableMap() - .put(clusterLabels__.getKey(), clusterLabels__.getValue()); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + com.google.protobuf.MapEntry + clusterLabels__ = input.readMessage( + ClusterLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableClusterLabels().getMutableMap().put( + clusterLabels__.getKey(), clusterLabels__.getValue()); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -623,13 +589,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object zone_ = ""; /** - * - * *
      * Optional. The zone where workflow process executes. This parameter does not
      * affect the selection of the cluster.
@@ -638,13 +601,13 @@ public Builder mergeFrom(
      * 
* * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The zone. */ public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zone_ = s; return s; @@ -653,8 +616,6 @@ public java.lang.String getZone() { } } /** - * - * *
      * Optional. The zone where workflow process executes. This parameter does not
      * affect the selection of the cluster.
@@ -663,14 +624,15 @@ public java.lang.String getZone() {
      * 
* * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for zone. */ - public com.google.protobuf.ByteString getZoneBytes() { + public com.google.protobuf.ByteString + getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); zone_ = b; return b; } else { @@ -678,8 +640,6 @@ public com.google.protobuf.ByteString getZoneBytes() { } } /** - * - * *
      * Optional. The zone where workflow process executes. This parameter does not
      * affect the selection of the cluster.
@@ -688,22 +648,20 @@ public com.google.protobuf.ByteString getZoneBytes() {
      * 
* * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The zone to set. * @return This builder for chaining. */ - public Builder setZone(java.lang.String value) { + public Builder setZone( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + zone_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The zone where workflow process executes. This parameter does not
      * affect the selection of the cluster.
@@ -712,18 +670,15 @@ public Builder setZone(java.lang.String value) {
      * 
* * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearZone() { - + zone_ = getDefaultInstance().getZone(); onChanged(); return this; } /** - * - * *
      * Optional. The zone where workflow process executes. This parameter does not
      * affect the selection of the cluster.
@@ -732,39 +687,37 @@ public Builder clearZone() {
      * 
* * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for zone to set. * @return This builder for chaining. */ - public Builder setZoneBytes(com.google.protobuf.ByteString value) { + public Builder setZoneBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; onChanged(); return this; } - private com.google.protobuf.MapField clusterLabels_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> clusterLabels_; private com.google.protobuf.MapField - internalGetClusterLabels() { + internalGetClusterLabels() { if (clusterLabels_ == null) { return com.google.protobuf.MapField.emptyMapField( ClusterLabelsDefaultEntryHolder.defaultEntry); } return clusterLabels_; } - private com.google.protobuf.MapField - internalGetMutableClusterLabels() { - onChanged(); - ; + internalGetMutableClusterLabels() { + onChanged();; if (clusterLabels_ == null) { - clusterLabels_ = - com.google.protobuf.MapField.newMapField(ClusterLabelsDefaultEntryHolder.defaultEntry); + clusterLabels_ = com.google.protobuf.MapField.newMapField( + ClusterLabelsDefaultEntryHolder.defaultEntry); } if (!clusterLabels_.isMutable()) { clusterLabels_ = clusterLabels_.copy(); @@ -776,81 +729,74 @@ public int getClusterLabelsCount() { return internalGetClusterLabels().getMap().size(); } /** - * - * *
      * Required. The cluster labels. Cluster must have all labels
      * to match.
      * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; */ + @java.lang.Override - public boolean containsClusterLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsClusterLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetClusterLabels().getMap().containsKey(key); } - /** Use {@link #getClusterLabelsMap()} instead. */ + /** + * Use {@link #getClusterLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getClusterLabels() { return getClusterLabelsMap(); } /** - * - * *
      * Required. The cluster labels. Cluster must have all labels
      * to match.
      * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override + public java.util.Map getClusterLabelsMap() { return internalGetClusterLabels().getMap(); } /** - * - * *
      * Required. The cluster labels. Cluster must have all labels
      * to match.
      * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override + public java.lang.String getClusterLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetClusterLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetClusterLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Required. The cluster labels. Cluster must have all labels
      * to match.
      * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetClusterLabels().getMap(); + + public java.lang.String getClusterLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetClusterLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -858,72 +804,72 @@ public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { } public Builder clearClusterLabels() { - internalGetMutableClusterLabels().getMutableMap().clear(); + internalGetMutableClusterLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Required. The cluster labels. Cluster must have all labels
      * to match.
      * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder removeClusterLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableClusterLabels().getMutableMap().remove(key); + + public Builder removeClusterLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableClusterLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableClusterLabels() { + public java.util.Map + getMutableClusterLabels() { return internalGetMutableClusterLabels().getMutableMap(); } /** - * - * *
      * Required. The cluster labels. Cluster must have all labels
      * to match.
      * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder putClusterLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putClusterLabels( + 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"); +} - internalGetMutableClusterLabels().getMutableMap().put(key, value); + internalGetMutableClusterLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Required. The cluster labels. Cluster must have all labels
      * to match.
      * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder putAllClusterLabels(java.util.Map values) { - internalGetMutableClusterLabels().getMutableMap().putAll(values); + + public Builder putAllClusterLabels( + java.util.Map values) { + internalGetMutableClusterLabels().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); } @@ -933,12 +879,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ClusterSelector) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterSelector) private static final com.google.cloud.dataproc.v1.ClusterSelector DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterSelector(); } @@ -947,27 +893,27 @@ public static com.google.cloud.dataproc.v1.ClusterSelector getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterSelector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterSelector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -982,4 +928,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ClusterSelector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java similarity index 59% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java index 41485dec836a..df7c1d6f9ecd 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface ClusterSelectorOrBuilder - extends +public interface ClusterSelectorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterSelector) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The zone where workflow process executes. This parameter does not
    * affect the selection of the cluster.
@@ -34,13 +16,10 @@ public interface ClusterSelectorOrBuilder
    * 
* * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The zone. */ java.lang.String getZone(); /** - * - * *
    * Optional. The zone where workflow process executes. This parameter does not
    * affect the selection of the cluster.
@@ -49,77 +28,69 @@ public interface ClusterSelectorOrBuilder
    * 
* * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for zone. */ - com.google.protobuf.ByteString getZoneBytes(); + com.google.protobuf.ByteString + getZoneBytes(); /** - * - * *
    * Required. The cluster labels. Cluster must have all labels
    * to match.
    * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; */ int getClusterLabelsCount(); /** - * - * *
    * Required. The cluster labels. Cluster must have all labels
    * to match.
    * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + boolean containsClusterLabels( + java.lang.String key); + /** + * Use {@link #getClusterLabelsMap()} instead. */ - boolean containsClusterLabels(java.lang.String key); - /** Use {@link #getClusterLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map getClusterLabels(); + java.util.Map + getClusterLabels(); /** - * - * *
    * Required. The cluster labels. Cluster must have all labels
    * to match.
    * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.Map getClusterLabelsMap(); + java.util.Map + getClusterLabelsMap(); /** - * - * *
    * Required. The cluster labels. Cluster must have all labels
    * to match.
    * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; */ /* nullable */ - java.lang.String getClusterLabelsOrDefault( +java.lang.String getClusterLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Required. The cluster labels. Cluster must have all labels
    * to match.
    * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; */ - java.lang.String getClusterLabelsOrThrow(java.lang.String key); + + java.lang.String getClusterLabelsOrThrow( + java.lang.String key); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java similarity index 66% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java index 9dd67ad2f0c5..fb5b079b19c5 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * The status of a cluster and its instances.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterStatus} */ -public final class ClusterStatus extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ClusterStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterStatus) ClusterStatusOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ClusterStatus.newBuilder() to construct. private ClusterStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ClusterStatus() { state_ = 0; detail_ = ""; @@ -45,43 +27,39 @@ private ClusterStatus() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ClusterStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterStatus.class, - com.google.cloud.dataproc.v1.ClusterStatus.Builder.class); + com.google.cloud.dataproc.v1.ClusterStatus.class, com.google.cloud.dataproc.v1.ClusterStatus.Builder.class); } /** - * - * *
    * The cluster state.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.ClusterStatus.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The cluster state is unknown.
      * 
@@ -90,8 +68,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
      * The cluster is being created and set up. It is not ready for use.
      * 
@@ -100,8 +76,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * The cluster is currently running and healthy. It is ready for use.
      * **Note:** The cluster state changes from "creating" to "running" status
@@ -113,8 +87,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     RUNNING(2),
     /**
-     *
-     *
      * 
      * The cluster encountered an error. It is not ready for use.
      * 
@@ -123,8 +95,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(3), /** - * - * *
      * The cluster has encountered an error while being updated. Jobs can
      * be submitted to the cluster, but the cluster cannot be updated.
@@ -134,8 +104,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     ERROR_DUE_TO_UPDATE(9),
     /**
-     *
-     *
      * 
      * The cluster is being deleted. It cannot be used.
      * 
@@ -144,8 +112,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(4), /** - * - * *
      * The cluster is being updated. It continues to accept and process jobs.
      * 
@@ -154,8 +120,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ UPDATING(5), /** - * - * *
      * The cluster is being stopped. It cannot be used.
      * 
@@ -164,8 +128,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STOPPING(6), /** - * - * *
      * The cluster is currently stopped. It is not ready for use.
      * 
@@ -174,8 +136,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STOPPED(7), /** - * - * *
      * The cluster is being started. It is not ready for use.
      * 
@@ -187,8 +147,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The cluster state is unknown.
      * 
@@ -197,8 +155,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
      * The cluster is being created and set up. It is not ready for use.
      * 
@@ -207,8 +163,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * The cluster is currently running and healthy. It is ready for use.
      * **Note:** The cluster state changes from "creating" to "running" status
@@ -220,8 +174,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RUNNING_VALUE = 2;
     /**
-     *
-     *
      * 
      * The cluster encountered an error. It is not ready for use.
      * 
@@ -230,8 +182,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 3; /** - * - * *
      * The cluster has encountered an error while being updated. Jobs can
      * be submitted to the cluster, but the cluster cannot be updated.
@@ -241,8 +191,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ERROR_DUE_TO_UPDATE_VALUE = 9;
     /**
-     *
-     *
      * 
      * The cluster is being deleted. It cannot be used.
      * 
@@ -251,8 +199,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; /** - * - * *
      * The cluster is being updated. It continues to accept and process jobs.
      * 
@@ -261,8 +207,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 5; /** - * - * *
      * The cluster is being stopped. It cannot be used.
      * 
@@ -271,8 +215,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STOPPING_VALUE = 6; /** - * - * *
      * The cluster is currently stopped. It is not ready for use.
      * 
@@ -281,8 +223,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STOPPED_VALUE = 7; /** - * - * *
      * The cluster is being started. It is not ready for use.
      * 
@@ -291,6 +231,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STARTING_VALUE = 8; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -315,63 +256,56 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return CREATING; - case 2: - return RUNNING; - case 3: - return ERROR; - case 9: - return ERROR_DUE_TO_UPDATE; - case 4: - return DELETING; - case 5: - return UPDATING; - case 6: - return STOPPING; - case 7: - return STOPPED; - case 8: - return STARTING; - default: - return null; + case 0: return UNKNOWN; + case 1: return CREATING; + case 2: return RUNNING; + case 3: return ERROR; + case 9: return ERROR_DUE_TO_UPDATE; + case 4: return DELETING; + case 5: return UPDATING; + case 6: return STOPPING; + case 7: return STOPPED; + case 8: return STARTING; + 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.dataproc.v1.ClusterStatus.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; @@ -389,18 +323,15 @@ private State(int value) { } /** - * - * *
    * The cluster substate.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.ClusterStatus.Substate} */ - public enum Substate implements com.google.protobuf.ProtocolMessageEnum { + public enum Substate + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The cluster substate is unknown.
      * 
@@ -409,8 +340,6 @@ public enum Substate implements com.google.protobuf.ProtocolMessageEnum { */ UNSPECIFIED(0), /** - * - * *
      * The cluster is known to be in an unhealthy state
      * (for example, critical daemons are not running or HDFS capacity is
@@ -422,8 +351,6 @@ public enum Substate implements com.google.protobuf.ProtocolMessageEnum {
      */
     UNHEALTHY(1),
     /**
-     *
-     *
      * 
      * The agent-reported status is out of date (may occur if
      * Dataproc loses communication with Agent).
@@ -437,8 +364,6 @@ public enum Substate implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * The cluster substate is unknown.
      * 
@@ -447,8 +372,6 @@ public enum Substate implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSPECIFIED_VALUE = 0; /** - * - * *
      * The cluster is known to be in an unhealthy state
      * (for example, critical daemons are not running or HDFS capacity is
@@ -460,8 +383,6 @@ public enum Substate implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int UNHEALTHY_VALUE = 1;
     /**
-     *
-     *
      * 
      * The agent-reported status is out of date (may occur if
      * Dataproc loses communication with Agent).
@@ -472,6 +393,7 @@ public enum Substate implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int STALE_STATUS_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -496,49 +418,49 @@ public static Substate valueOf(int value) {
      */
     public static Substate forNumber(int value) {
       switch (value) {
-        case 0:
-          return UNSPECIFIED;
-        case 1:
-          return UNHEALTHY;
-        case 2:
-          return STALE_STATUS;
-        default:
-          return null;
+        case 0: return UNSPECIFIED;
+        case 1: return UNHEALTHY;
+        case 2: return STALE_STATUS;
+        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<
+        Substate> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Substate findValueByNumber(int number) {
+              return Substate.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Substate findValueByNumber(int number) {
-            return Substate.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.dataproc.v1.ClusterStatus.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Substate[] VALUES = values();
 
-    public static Substate valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Substate 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;
@@ -558,56 +480,38 @@ private Substate(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
-   *
-   *
    * 
    * Output only. The cluster's state.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The cluster's state.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterStatus.State getState() { + @java.lang.Override public com.google.cloud.dataproc.v1.ClusterStatus.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ClusterStatus.State result = - com.google.cloud.dataproc.v1.ClusterStatus.State.valueOf(state_); + com.google.cloud.dataproc.v1.ClusterStatus.State result = com.google.cloud.dataproc.v1.ClusterStatus.State.valueOf(state_); return result == null ? com.google.cloud.dataproc.v1.ClusterStatus.State.UNRECOGNIZED : result; } public static final int DETAIL_FIELD_NUMBER = 2; private volatile java.lang.Object detail_; /** - * - * *
    * Optional. Output only. Details of cluster's state.
    * 
* - * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The detail. */ @java.lang.Override @@ -616,31 +520,29 @@ public java.lang.String getDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detail_ = s; return s; } } /** - * - * *
    * Optional. Output only. Details of cluster's state.
    * 
* - * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The bytes for detail. */ @java.lang.Override - public com.google.protobuf.ByteString getDetailBytes() { + public com.google.protobuf.ByteString + getDetailBytes() { java.lang.Object ref = detail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detail_ = b; return b; } else { @@ -651,17 +553,12 @@ public com.google.protobuf.ByteString getDetailBytes() { public static final int STATE_START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp stateStartTime_; /** - * - * *
    * Output only. Time when this state was entered (see JSON representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateStartTime field is set. */ @java.lang.Override @@ -669,36 +566,25 @@ public boolean hasStateStartTime() { return stateStartTime_ != null; } /** - * - * *
    * Output only. Time when this state was entered (see JSON representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStateStartTime() { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; + return stateStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; } /** - * - * *
    * Output only. Time when this state was entered (see JSON representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { @@ -708,49 +594,33 @@ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { public static final int SUBSTATE_FIELD_NUMBER = 4; private int substate_; /** - * - * *
    * Output only. Additional state information that includes
    * status reported by the agent.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for substate. */ - @java.lang.Override - public int getSubstateValue() { + @java.lang.Override public int getSubstateValue() { return substate_; } /** - * - * *
    * Output only. Additional state information that includes
    * status reported by the agent.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The substate. */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterStatus.Substate getSubstate() { + @java.lang.Override public com.google.cloud.dataproc.v1.ClusterStatus.Substate getSubstate() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ClusterStatus.Substate result = - com.google.cloud.dataproc.v1.ClusterStatus.Substate.valueOf(substate_); - return result == null - ? com.google.cloud.dataproc.v1.ClusterStatus.Substate.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.ClusterStatus.Substate result = com.google.cloud.dataproc.v1.ClusterStatus.Substate.valueOf(substate_); + return result == null ? com.google.cloud.dataproc.v1.ClusterStatus.Substate.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -762,7 +632,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 (state_ != com.google.cloud.dataproc.v1.ClusterStatus.State.UNKNOWN.getNumber()) { output.writeEnum(1, state_); } @@ -785,16 +656,19 @@ public int getSerializedSize() { size = 0; if (state_ != com.google.cloud.dataproc.v1.ClusterStatus.State.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, detail_); } if (stateStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStateStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStateStartTime()); } if (substate_ != com.google.cloud.dataproc.v1.ClusterStatus.Substate.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, substate_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, substate_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -804,19 +678,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ClusterStatus)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ClusterStatus other = - (com.google.cloud.dataproc.v1.ClusterStatus) obj; + com.google.cloud.dataproc.v1.ClusterStatus other = (com.google.cloud.dataproc.v1.ClusterStatus) obj; if (state_ != other.state_) return false; - if (!getDetail().equals(other.getDetail())) return false; + if (!getDetail() + .equals(other.getDetail())) return false; if (hasStateStartTime() != other.hasStateStartTime()) return false; if (hasStateStartTime()) { - if (!getStateStartTime().equals(other.getStateStartTime())) return false; + if (!getStateStartTime() + .equals(other.getStateStartTime())) return false; } if (substate_ != other.substate_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -845,136 +720,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ClusterStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ClusterStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterStatus parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ClusterStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 status of a cluster and its instances.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterStatus} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterStatus) com.google.cloud.dataproc.v1.ClusterStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterStatus.class, - com.google.cloud.dataproc.v1.ClusterStatus.Builder.class); + com.google.cloud.dataproc.v1.ClusterStatus.class, com.google.cloud.dataproc.v1.ClusterStatus.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ClusterStatus.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -994,9 +863,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; } @java.lang.Override @@ -1015,8 +884,7 @@ public com.google.cloud.dataproc.v1.ClusterStatus build() { @java.lang.Override public com.google.cloud.dataproc.v1.ClusterStatus buildPartial() { - com.google.cloud.dataproc.v1.ClusterStatus result = - new com.google.cloud.dataproc.v1.ClusterStatus(this); + com.google.cloud.dataproc.v1.ClusterStatus result = new com.google.cloud.dataproc.v1.ClusterStatus(this); result.state_ = state_; result.detail_ = detail_; if (stateStartTimeBuilder_ == null) { @@ -1033,39 +901,38 @@ public com.google.cloud.dataproc.v1.ClusterStatus buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ClusterStatus) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterStatus) other); + return mergeFrom((com.google.cloud.dataproc.v1.ClusterStatus)other); } else { super.mergeFrom(other); return this; @@ -1113,37 +980,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - state_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - detail_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getStateStartTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 32: - { - substate_ = input.readEnum(); - - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + state_ = input.readEnum(); + + break; + } // case 8 + case 18: { + detail_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getStateStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 32: { + substate_ = input.readEnum(); + + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1156,75 +1020,51 @@ public Builder mergeFrom( private int state_ = 0; /** - * - * *
      * Output only. The cluster's state.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The cluster's state.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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; } /** - * - * *
      * Output only. The cluster's state.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterStatus.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ClusterStatus.State result = - com.google.cloud.dataproc.v1.ClusterStatus.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1.ClusterStatus.State.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.ClusterStatus.State result = com.google.cloud.dataproc.v1.ClusterStatus.State.valueOf(state_); + return result == null ? com.google.cloud.dataproc.v1.ClusterStatus.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The cluster's state.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -1232,26 +1072,21 @@ public Builder setState(com.google.cloud.dataproc.v1.ClusterStatus.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The cluster's state.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1259,22 +1094,18 @@ public Builder clearState() { private java.lang.Object detail_ = ""; /** - * - * *
      * Optional. Output only. Details of cluster's state.
      * 
* - * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The detail. */ public java.lang.String getDetail() { java.lang.Object ref = detail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detail_ = s; return s; @@ -1283,23 +1114,20 @@ public java.lang.String getDetail() { } } /** - * - * *
      * Optional. Output only. Details of cluster's state.
      * 
* - * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The bytes for detail. */ - public com.google.protobuf.ByteString getDetailBytes() { + public com.google.protobuf.ByteString + getDetailBytes() { java.lang.Object ref = detail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detail_ = b; return b; } else { @@ -1307,67 +1135,54 @@ public com.google.protobuf.ByteString getDetailBytes() { } } /** - * - * *
      * Optional. Output only. Details of cluster's state.
      * 
* - * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param value The detail to set. * @return This builder for chaining. */ - public Builder setDetail(java.lang.String value) { + public Builder setDetail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + detail_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Output only. Details of cluster's state.
      * 
* - * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearDetail() { - + detail_ = getDefaultInstance().getDetail(); onChanged(); return this; } /** - * - * *
      * Optional. Output only. Details of cluster's state.
      * 
* - * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param value The bytes for detail to set. * @return This builder for chaining. */ - public Builder setDetailBytes(com.google.protobuf.ByteString value) { + public Builder setDetailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detail_ = value; onChanged(); return this; @@ -1375,61 +1190,42 @@ public Builder setDetailBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp stateStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - stateStartTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> stateStartTimeBuilder_; /** - * - * *
      * Output only. Time when this state was entered (see JSON representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateStartTime field is set. */ public boolean hasStateStartTime() { return stateStartTimeBuilder_ != null || stateStartTime_ != null; } /** - * - * *
      * Output only. Time when this state was entered (see JSON representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateStartTime. */ public com.google.protobuf.Timestamp getStateStartTime() { if (stateStartTimeBuilder_ == null) { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; + return stateStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; } else { return stateStartTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this state was entered (see JSON representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStateStartTime(com.google.protobuf.Timestamp value) { if (stateStartTimeBuilder_ == null) { @@ -1445,18 +1241,15 @@ public Builder setStateStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this state was entered (see JSON representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStateStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (stateStartTimeBuilder_ == null) { stateStartTime_ = builderForValue.build(); onChanged(); @@ -1467,24 +1260,18 @@ public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
      * Output only. Time when this state was entered (see JSON representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { if (stateStartTimeBuilder_ == null) { if (stateStartTime_ != null) { stateStartTime_ = - com.google.protobuf.Timestamp.newBuilder(stateStartTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(stateStartTime_).mergeFrom(value).buildPartial(); } else { stateStartTime_ = value; } @@ -1496,16 +1283,12 @@ public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this state was entered (see JSON representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStateStartTime() { if (stateStartTimeBuilder_ == null) { @@ -1519,67 +1302,51 @@ public Builder clearStateStartTime() { return this; } /** - * - * *
      * Output only. Time when this state was entered (see JSON representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStateStartTimeBuilder() { - + onChanged(); return getStateStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this state was entered (see JSON representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { if (stateStartTimeBuilder_ != null) { return stateStartTimeBuilder_.getMessageOrBuilder(); } else { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; + return stateStartTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; } } /** - * - * *
      * Output only. Time when this state was entered (see JSON representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 3 [(.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> getStateStartTimeFieldBuilder() { if (stateStartTimeBuilder_ == null) { - stateStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStateStartTime(), getParentForChildren(), isClean()); + stateStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStateStartTime(), + getParentForChildren(), + isClean()); stateStartTime_ = null; } return stateStartTimeBuilder_; @@ -1587,79 +1354,55 @@ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { private int substate_ = 0; /** - * - * *
      * Output only. Additional state information that includes
      * status reported by the agent.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for substate. */ - @java.lang.Override - public int getSubstateValue() { + @java.lang.Override public int getSubstateValue() { return substate_; } /** - * - * *
      * Output only. Additional state information that includes
      * status reported by the agent.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for substate to set. * @return This builder for chaining. */ public Builder setSubstateValue(int value) { - + substate_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Additional state information that includes
      * status reported by the agent.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The substate. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterStatus.Substate getSubstate() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ClusterStatus.Substate result = - com.google.cloud.dataproc.v1.ClusterStatus.Substate.valueOf(substate_); - return result == null - ? com.google.cloud.dataproc.v1.ClusterStatus.Substate.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.ClusterStatus.Substate result = com.google.cloud.dataproc.v1.ClusterStatus.Substate.valueOf(substate_); + return result == null ? com.google.cloud.dataproc.v1.ClusterStatus.Substate.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Additional state information that includes
      * status reported by the agent.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The substate to set. * @return This builder for chaining. */ @@ -1667,34 +1410,29 @@ public Builder setSubstate(com.google.cloud.dataproc.v1.ClusterStatus.Substate v if (value == null) { throw new NullPointerException(); } - + substate_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Additional state information that includes
      * status reported by the agent.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSubstate() { - + substate_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1704,12 +1442,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ClusterStatus) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterStatus) private static final com.google.cloud.dataproc.v1.ClusterStatus DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterStatus(); } @@ -1718,27 +1456,27 @@ public static com.google.cloud.dataproc.v1.ClusterStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1753,4 +1491,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ClusterStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java similarity index 52% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java index 9abedcb68530..a47e138599d6 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java @@ -1,157 +1,98 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface ClusterStatusOrBuilder - extends +public interface ClusterStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterStatus) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The cluster's state.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The cluster's state.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.dataproc.v1.ClusterStatus.State getState(); /** - * - * *
    * Optional. Output only. Details of cluster's state.
    * 
* - * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The detail. */ java.lang.String getDetail(); /** - * - * *
    * Optional. Output only. Details of cluster's state.
    * 
* - * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The bytes for detail. */ - com.google.protobuf.ByteString getDetailBytes(); + com.google.protobuf.ByteString + getDetailBytes(); /** - * - * *
    * Output only. Time when this state was entered (see JSON representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateStartTime field is set. */ boolean hasStateStartTime(); /** - * - * *
    * Output only. Time when this state was entered (see JSON representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateStartTime. */ com.google.protobuf.Timestamp getStateStartTime(); /** - * - * *
    * Output only. Time when this state was entered (see JSON representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder(); /** - * - * *
    * Output only. Additional state information that includes
    * status reported by the agent.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for substate. */ int getSubstateValue(); /** - * - * *
    * Output only. Additional state information that includes
    * status reported by the agent.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The substate. */ com.google.cloud.dataproc.v1.ClusterStatus.Substate getSubstate(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java new file mode 100644 index 000000000000..c04708e80c84 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java @@ -0,0 +1,893 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public final class ClustersProto { + private ClustersProto() {} + 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_dataproc_v1_Cluster_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_NodeGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_NodeGroup_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_NodeGroup_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ReservationAffinity_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/dataproc/v1/clusters.prot" + + "o\022\030google.cloud.dataproc.v1\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032%google/cloud/dat" + + "aproc/v1/shared.proto\032#google/longrunnin" + + "g/operations.proto\032\036google/protobuf/dura" + + "tion.proto\032 google/protobuf/field_mask.p" + + "roto\032\037google/protobuf/timestamp.proto\"\242\004" + + "\n\007Cluster\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\031\n\014cl" + + "uster_name\030\002 \001(\tB\003\340A\002\022<\n\006config\030\003 \001(\0132\'." + + "google.cloud.dataproc.v1.ClusterConfigB\003" + + "\340A\001\022S\n\026virtual_cluster_config\030\n \001(\0132..go" + + "ogle.cloud.dataproc.v1.VirtualClusterCon" + + "figB\003\340A\001\022B\n\006labels\030\010 \003(\0132-.google.cloud." + + "dataproc.v1.Cluster.LabelsEntryB\003\340A\001\022<\n\006" + + "status\030\004 \001(\0132\'.google.cloud.dataproc.v1." + + "ClusterStatusB\003\340A\003\022D\n\016status_history\030\007 \003" + + "(\0132\'.google.cloud.dataproc.v1.ClusterSta" + + "tusB\003\340A\003\022\031\n\014cluster_uuid\030\006 \001(\tB\003\340A\003\022>\n\007m" + + "etrics\030\t \001(\0132(.google.cloud.dataproc.v1." + + "ClusterMetricsB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\t\n\rClusterCo" + + "nfig\022\032\n\rconfig_bucket\030\001 \001(\tB\003\340A\001\022\030\n\013temp" + + "_bucket\030\002 \001(\tB\003\340A\001\022K\n\022gce_cluster_config" + + "\030\010 \001(\0132*.google.cloud.dataproc.v1.GceClu" + + "sterConfigB\003\340A\001\022I\n\rmaster_config\030\t \001(\0132-" + + ".google.cloud.dataproc.v1.InstanceGroupC" + + "onfigB\003\340A\001\022I\n\rworker_config\030\n \001(\0132-.goog" + + "le.cloud.dataproc.v1.InstanceGroupConfig" + + "B\003\340A\001\022S\n\027secondary_worker_config\030\014 \001(\0132-" + + ".google.cloud.dataproc.v1.InstanceGroupC" + + "onfigB\003\340A\001\022F\n\017software_config\030\r \001(\0132(.go" + + "ogle.cloud.dataproc.v1.SoftwareConfigB\003\340" + + "A\001\022W\n\026initialization_actions\030\013 \003(\01322.goo" + + "gle.cloud.dataproc.v1.NodeInitialization" + + "ActionB\003\340A\001\022J\n\021encryption_config\030\017 \001(\0132*" + + ".google.cloud.dataproc.v1.EncryptionConf" + + "igB\003\340A\001\022L\n\022autoscaling_config\030\022 \001(\0132+.go" + + "ogle.cloud.dataproc.v1.AutoscalingConfig" + + "B\003\340A\001\022F\n\017security_config\030\020 \001(\0132(.google." + + "cloud.dataproc.v1.SecurityConfigB\003\340A\001\022H\n" + + "\020lifecycle_config\030\021 \001(\0132).google.cloud.d" + + "ataproc.v1.LifecycleConfigB\003\340A\001\022F\n\017endpo" + + "int_config\030\023 \001(\0132(.google.cloud.dataproc" + + ".v1.EndpointConfigB\003\340A\001\022H\n\020metastore_con" + + "fig\030\024 \001(\0132).google.cloud.dataproc.v1.Met" + + "astoreConfigB\003\340A\001\022S\n\026dataproc_metric_con" + + "fig\030\027 \001(\0132..google.cloud.dataproc.v1.Dat" + + "aprocMetricConfigB\003\340A\001\022P\n\025auxiliary_node" + + "_groups\030\031 \003(\0132,.google.cloud.dataproc.v1" + + ".AuxiliaryNodeGroupB\003\340A\001\"\204\002\n\024VirtualClus" + + "terConfig\022\033\n\016staging_bucket\030\001 \001(\tB\003\340A\001\022[" + + "\n\031kubernetes_cluster_config\030\006 \001(\01321.goog" + + "le.cloud.dataproc.v1.KubernetesClusterCo" + + "nfigB\003\340A\002H\000\022Y\n\031auxiliary_services_config" + + "\030\007 \001(\01321.google.cloud.dataproc.v1.Auxili" + + "aryServicesConfigB\003\340A\001B\027\n\025infrastructure" + + "_config\"\301\001\n\027AuxiliaryServicesConfig\022H\n\020m" + + "etastore_config\030\001 \001(\0132).google.cloud.dat" + + "aproc.v1.MetastoreConfigB\003\340A\001\022\\\n\033spark_h" + + "istory_server_config\030\002 \001(\01322.google.clou" + + "d.dataproc.v1.SparkHistoryServerConfigB\003" + + "\340A\001\"\272\001\n\016EndpointConfig\022P\n\nhttp_ports\030\001 \003" + + "(\01327.google.cloud.dataproc.v1.EndpointCo" + + "nfig.HttpPortsEntryB\003\340A\003\022$\n\027enable_http_" + + "port_access\030\002 \001(\010B\003\340A\001\0320\n\016HttpPortsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\",\n\021Auto" + + "scalingConfig\022\027\n\npolicy_uri\030\001 \001(\tB\003\340A\001\"4" + + "\n\020EncryptionConfig\022 \n\023gce_pd_kms_key_nam" + + "e\030\001 \001(\tB\003\340A\001\"\233\007\n\020GceClusterConfig\022\025\n\010zon" + + "e_uri\030\001 \001(\tB\003\340A\001\022\030\n\013network_uri\030\002 \001(\tB\003\340" + + "A\001\022\033\n\016subnetwork_uri\030\006 \001(\tB\003\340A\001\022\035\n\020inter" + + "nal_ip_only\030\007 \001(\010B\003\340A\001\022k\n\032private_ipv6_g" + + "oogle_access\030\014 \001(\0162B.google.cloud.datapr" + + "oc.v1.GceClusterConfig.PrivateIpv6Google" + + "AccessB\003\340A\001\022\034\n\017service_account\030\010 \001(\tB\003\340A" + + "\001\022#\n\026service_account_scopes\030\003 \003(\tB\003\340A\001\022\014" + + "\n\004tags\030\004 \003(\t\022J\n\010metadata\030\005 \003(\01328.google." + + "cloud.dataproc.v1.GceClusterConfig.Metad" + + "ataEntry\022P\n\024reservation_affinity\030\013 \001(\0132-" + + ".google.cloud.dataproc.v1.ReservationAff" + + "inityB\003\340A\001\022M\n\023node_group_affinity\030\r \001(\0132" + + "+.google.cloud.dataproc.v1.NodeGroupAffi" + + "nityB\003\340A\001\022W\n\030shielded_instance_config\030\016 " + + "\001(\01320.google.cloud.dataproc.v1.ShieldedI" + + "nstanceConfigB\003\340A\001\022_\n\034confidential_insta" + + "nce_config\030\017 \001(\01324.google.cloud.dataproc" + + ".v1.ConfidentialInstanceConfigB\003\340A\001\032/\n\rM" + + "etadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"\203\001\n\027PrivateIpv6GoogleAccess\022*\n&PRIV" + + "ATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\020\000\022\033\n\027" + + "INHERIT_FROM_SUBNETWORK\020\001\022\014\n\010OUTBOUND\020\002\022" + + "\021\n\rBIDIRECTIONAL\020\003\"0\n\021NodeGroupAffinity\022" + + "\033\n\016node_group_uri\030\001 \001(\tB\003\340A\002\"}\n\026Shielded" + + "InstanceConfig\022\037\n\022enable_secure_boot\030\001 \001" + + "(\010B\003\340A\001\022\030\n\013enable_vtpm\030\002 \001(\010B\003\340A\001\022(\n\033ena" + + "ble_integrity_monitoring\030\003 \001(\010B\003\340A\001\"F\n\032C" + + "onfidentialInstanceConfig\022(\n\033enable_conf" + + "idential_compute\030\001 \001(\010B\003\340A\001\"\315\004\n\023Instance" + + "GroupConfig\022\032\n\rnum_instances\030\001 \001(\005B\003\340A\001\022" + + "\033\n\016instance_names\030\002 \003(\tB\003\340A\003\022\026\n\timage_ur" + + "i\030\003 \001(\tB\003\340A\001\022\035\n\020machine_type_uri\030\004 \001(\tB\003" + + "\340A\001\022>\n\013disk_config\030\005 \001(\0132$.google.cloud." + + "dataproc.v1.DiskConfigB\003\340A\001\022\033\n\016is_preemp" + + "tible\030\006 \001(\010B\003\340A\003\022Y\n\016preemptibility\030\n \001(\016" + + "2<.google.cloud.dataproc.v1.InstanceGrou" + + "pConfig.PreemptibilityB\003\340A\001\022O\n\024managed_g" + + "roup_config\030\007 \001(\0132,.google.cloud.datapro" + + "c.v1.ManagedGroupConfigB\003\340A\003\022F\n\014accelera" + + "tors\030\010 \003(\0132+.google.cloud.dataproc.v1.Ac" + + "celeratorConfigB\003\340A\001\022\035\n\020min_cpu_platform" + + "\030\t \001(\tB\003\340A\001\"V\n\016Preemptibility\022\036\n\032PREEMPT" + + "IBILITY_UNSPECIFIED\020\000\022\023\n\017NON_PREEMPTIBLE" + + "\020\001\022\017\n\013PREEMPTIBLE\020\002\"c\n\022ManagedGroupConfi" + + "g\022#\n\026instance_template_name\030\001 \001(\tB\003\340A\003\022(" + + "\n\033instance_group_manager_name\030\002 \001(\tB\003\340A\003" + + "\"L\n\021AcceleratorConfig\022\034\n\024accelerator_typ" + + "e_uri\030\001 \001(\t\022\031\n\021accelerator_count\030\002 \001(\005\"\210" + + "\001\n\nDiskConfig\022\033\n\016boot_disk_type\030\003 \001(\tB\003\340" + + "A\001\022\036\n\021boot_disk_size_gb\030\001 \001(\005B\003\340A\001\022\033\n\016nu" + + "m_local_ssds\030\002 \001(\005B\003\340A\001\022 \n\023local_ssd_int" + + "erface\030\004 \001(\tB\003\340A\001\"n\n\022AuxiliaryNodeGroup\022" + + "<\n\nnode_group\030\001 \001(\0132#.google.cloud.datap" + + "roc.v1.NodeGroupB\003\340A\002\022\032\n\rnode_group_id\030\002" + + " \001(\tB\003\340A\001\"\275\003\n\tNodeGroup\022\014\n\004name\030\001 \001(\t\022<\n" + + "\005roles\030\002 \003(\0162(.google.cloud.dataproc.v1." + + "NodeGroup.RoleB\003\340A\002\022M\n\021node_group_config" + + "\030\003 \001(\0132-.google.cloud.dataproc.v1.Instan" + + "ceGroupConfigB\003\340A\001\022D\n\006labels\030\004 \003(\0132/.goo" + + "gle.cloud.dataproc.v1.NodeGroup.LabelsEn" + + "tryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"(\n\004Role\022\024\n\020ROLE_UNSPECIF" + + "IED\020\000\022\n\n\006DRIVER\020\001:v\352As\n!dataproc.googlea" + + "pis.com/NodeGroup\022Nprojects/{project}/re" + + "gions/{region}/clusters/{cluster}/nodeGr" + + "oups/{node_group}\"s\n\030NodeInitializationA" + + "ction\022\034\n\017executable_file\030\001 \001(\tB\003\340A\002\0229\n\021e" + + "xecution_timeout\030\002 \001(\0132\031.google.protobuf" + + ".DurationB\003\340A\001\"\307\003\n\rClusterStatus\022A\n\005stat" + + "e\030\001 \001(\0162-.google.cloud.dataproc.v1.Clust" + + "erStatus.StateB\003\340A\003\022\026\n\006detail\030\002 \001(\tB\006\340A\003" + + "\340A\001\0229\n\020state_start_time\030\003 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022G\n\010substate\030\004 \001(\016" + + "20.google.cloud.dataproc.v1.ClusterStatu" + + "s.SubstateB\003\340A\003\"\230\001\n\005State\022\013\n\007UNKNOWN\020\000\022\014" + + "\n\010CREATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003\022\027\n\023" + + "ERROR_DUE_TO_UPDATE\020\t\022\014\n\010DELETING\020\004\022\014\n\010U" + + "PDATING\020\005\022\014\n\010STOPPING\020\006\022\013\n\007STOPPED\020\007\022\014\n\010" + + "STARTING\020\010\"<\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022" + + "\r\n\tUNHEALTHY\020\001\022\020\n\014STALE_STATUS\020\002\"\240\001\n\016Sec" + + "urityConfig\022F\n\017kerberos_config\030\001 \001(\0132(.g" + + "oogle.cloud.dataproc.v1.KerberosConfigB\003" + + "\340A\001\022F\n\017identity_config\030\002 \001(\0132(.google.cl" + + "oud.dataproc.v1.IdentityConfigB\003\340A\001\"\220\004\n\016" + + "KerberosConfig\022\034\n\017enable_kerberos\030\001 \001(\010B" + + "\003\340A\001\022(\n\033root_principal_password_uri\030\002 \001(" + + "\tB\003\340A\001\022\030\n\013kms_key_uri\030\003 \001(\tB\003\340A\001\022\031\n\014keys" + + "tore_uri\030\004 \001(\tB\003\340A\001\022\033\n\016truststore_uri\030\005 " + + "\001(\tB\003\340A\001\022\"\n\025keystore_password_uri\030\006 \001(\tB" + + "\003\340A\001\022\035\n\020key_password_uri\030\007 \001(\tB\003\340A\001\022$\n\027t" + + "ruststore_password_uri\030\010 \001(\tB\003\340A\001\022$\n\027cro" + + "ss_realm_trust_realm\030\t \001(\tB\003\340A\001\022\"\n\025cross" + + "_realm_trust_kdc\030\n \001(\tB\003\340A\001\022+\n\036cross_rea" + + "lm_trust_admin_server\030\013 \001(\tB\003\340A\001\0222\n%cros" + + "s_realm_trust_shared_password_uri\030\014 \001(\tB" + + "\003\340A\001\022\033\n\016kdc_db_key_uri\030\r \001(\tB\003\340A\001\022\037\n\022tgt" + + "_lifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n\005realm\030\017 \001(" + + "\tB\003\340A\001\"\306\001\n\016IdentityConfig\022r\n\034user_servic" + + "e_account_mapping\030\001 \003(\0132G.google.cloud.d" + + "ataproc.v1.IdentityConfig.UserServiceAcc" + + "ountMappingEntryB\003\340A\002\032@\n\036UserServiceAcco" + + "untMappingEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"\371\001\n\016SoftwareConfig\022\032\n\rimage_vers" + + "ion\030\001 \001(\tB\003\340A\001\022Q\n\nproperties\030\002 \003(\01328.goo" + + "gle.cloud.dataproc.v1.SoftwareConfig.Pro" + + "pertiesEntryB\003\340A\001\022E\n\023optional_components" + + "\030\003 \003(\0162#.google.cloud.dataproc.v1.Compon" + + "entB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\002\n\017LifecycleConfig\022" + + "7\n\017idle_delete_ttl\030\001 \001(\0132\031.google.protob" + + "uf.DurationB\003\340A\001\022;\n\020auto_delete_time\030\002 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\001H\000\0229\n" + + "\017auto_delete_ttl\030\003 \001(\0132\031.google.protobuf" + + ".DurationB\003\340A\001H\000\0228\n\017idle_start_time\030\004 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003B\005\n\003tt" + + "l\"_\n\017MetastoreConfig\022L\n\032dataproc_metasto" + + "re_service\030\001 \001(\tB(\340A\002\372A\"\n metastore.goog" + + "leapis.com/Service\"\377\002\n\024DataprocMetricCon" + + "fig\022K\n\007metrics\030\001 \003(\01325.google.cloud.data" + + "proc.v1.DataprocMetricConfig.MetricB\003\340A\002" + + "\032\200\001\n\006Metric\022W\n\rmetric_source\030\001 \001(\0162;.goo" + + "gle.cloud.dataproc.v1.DataprocMetricConf" + + "ig.MetricSourceB\003\340A\002\022\035\n\020metric_overrides" + + "\030\002 \003(\tB\003\340A\001\"\226\001\n\014MetricSource\022\035\n\031METRIC_S" + + "OURCE_UNSPECIFIED\020\000\022\035\n\031MONITORING_AGENT_" + + "DEFAULTS\020\001\022\010\n\004HDFS\020\002\022\t\n\005SPARK\020\003\022\010\n\004YARN\020" + + "\004\022\030\n\024SPARK_HISTORY_SERVER\020\005\022\017\n\013HIVESERVE" + + "R2\020\006\"\232\002\n\016ClusterMetrics\022O\n\014hdfs_metrics\030" + + "\001 \003(\01329.google.cloud.dataproc.v1.Cluster" + + "Metrics.HdfsMetricsEntry\022O\n\014yarn_metrics" + + "\030\002 \003(\01329.google.cloud.dataproc.v1.Cluste" + + "rMetrics.YarnMetricsEntry\0322\n\020HdfsMetrics" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0322\n" + + "\020YarnMetricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\003:\0028\001\"\356\001\n\024CreateClusterRequest\022\027\n\npr" + + "oject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002" + + "\0227\n\007cluster\030\002 \001(\0132!.google.cloud.datapro" + + "c.v1.ClusterB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340" + + "A\001\022V\n action_on_failed_primary_workers\030\005" + + " \001(\0162\'.google.cloud.dataproc.v1.FailureA" + + "ctionB\003\340A\001\"\256\002\n\024UpdateClusterRequest\022\027\n\np" + + "roject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\005 \001(\tB\003\340A" + + "\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\0227\n\007cluster\030" + + "\003 \001(\0132!.google.cloud.dataproc.v1.Cluster" + + "B\003\340A\002\022E\n\035graceful_decommission_timeout\030\006" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\0224\n\013" + + "update_mask\030\004 \001(\0132\032.google.protobuf.Fiel" + + "dMaskB\003\340A\002\022\027\n\nrequest_id\030\007 \001(\tB\003\340A\001\"\221\001\n\022" + + "StopClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003" + + "\340A\002\022\023\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_name" + + "\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027" + + "\n\nrequest_id\030\005 \001(\tB\003\340A\001\"\222\001\n\023StartCluster" + + "Request\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006regi" + + "on\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\003 \001(\tB\003\340A\002" + + "\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_i" + + "d\030\005 \001(\tB\003\340A\001\"\223\001\n\024DeleteClusterRequest\022\027\n" + + "\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003" + + "\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\022\031\n\014cluste" + + "r_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340" + + "A\001\"\\\n\021GetClusterRequest\022\027\n\nproject_id\030\001 " + + "\001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster" + + "_name\030\002 \001(\tB\003\340A\002\"\211\001\n\023ListClustersRequest" + + "\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\004 \001(" + + "\tB\003\340A\002\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\026\n\tpage_size" + + "\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"n\n\024" + + "ListClustersResponse\0228\n\010clusters\030\001 \003(\0132!" + + ".google.cloud.dataproc.v1.ClusterB\003\340A\003\022\034" + + "\n\017next_page_token\030\002 \001(\tB\003\340A\003\"a\n\026Diagnose" + + "ClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022" + + "\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001" + + "(\tB\003\340A\002\"1\n\026DiagnoseClusterResults\022\027\n\nout" + + "put_uri\030\001 \001(\tB\003\340A\003\"\370\001\n\023ReservationAffini" + + "ty\022Y\n\030consume_reservation_type\030\001 \001(\01622.g" + + "oogle.cloud.dataproc.v1.ReservationAffin" + + "ity.TypeB\003\340A\001\022\020\n\003key\030\002 \001(\tB\003\340A\001\022\023\n\006value" + + "s\030\003 \003(\tB\003\340A\001\"_\n\004Type\022\024\n\020TYPE_UNSPECIFIED" + + "\020\000\022\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY_RESERVATIO" + + "N\020\002\022\030\n\024SPECIFIC_RESERVATION\020\0032\344\020\n\021Cluste" + + "rController\022\200\002\n\rCreateCluster\022..google.c" + + "loud.dataproc.v1.CreateClusterRequest\032\035." + + "google.longrunning.Operation\"\237\001\202\323\344\223\002>\"3/" + + "v1/projects/{project_id}/regions/{region" + + "}/clusters:\007cluster\332A\031project_id,region," + + "cluster\312A<\n\007Cluster\0221google.cloud.datapr" + + "oc.v1.ClusterOperationMetadata\022\250\002\n\rUpdat" + + "eCluster\022..google.cloud.dataproc.v1.Upda" + + "teClusterRequest\032\035.google.longrunning.Op" + + "eration\"\307\001\202\323\344\223\002M2B/v1/projects/{project_" + + "id}/regions/{region}/clusters/{cluster_n" + + "ame}:\007cluster\332A2project_id,region,cluste" + + "r_name,cluster,update_mask\312A<\n\007Cluster\0221" + + "google.cloud.dataproc.v1.ClusterOperatio" + + "nMetadata\022\356\001\n\013StopCluster\022,.google.cloud" + + ".dataproc.v1.StopClusterRequest\032\035.google" + + ".longrunning.Operation\"\221\001\202\323\344\223\002L\"G/v1/pro" + + "jects/{project_id}/regions/{region}/clus" + + "ters/{cluster_name}:stop:\001*\312A<\n\007Cluster\022" + + "1google.cloud.dataproc.v1.ClusterOperati" + + "onMetadata\022\361\001\n\014StartCluster\022-.google.clo" + + "ud.dataproc.v1.StartClusterRequest\032\035.goo" + + "gle.longrunning.Operation\"\222\001\202\323\344\223\002M\"H/v1/" + + "projects/{project_id}/regions/{region}/c" + + "lusters/{cluster_name}:start:\001*\312A<\n\007Clus" + + "ter\0221google.cloud.dataproc.v1.ClusterOpe" + + "rationMetadata\022\231\002\n\rDeleteCluster\022..googl" + + "e.cloud.dataproc.v1.DeleteClusterRequest" + + "\032\035.google.longrunning.Operation\"\270\001\202\323\344\223\002D" + + "*B/v1/projects/{project_id}/regions/{reg" + + "ion}/clusters/{cluster_name}\332A\036project_i" + + "d,region,cluster_name\312AJ\n\025google.protobu" + + "f.Empty\0221google.cloud.dataproc.v1.Cluste" + + "rOperationMetadata\022\311\001\n\nGetCluster\022+.goog" + + "le.cloud.dataproc.v1.GetClusterRequest\032!" + + ".google.cloud.dataproc.v1.Cluster\"k\202\323\344\223\002" + + "D\022B/v1/projects/{project_id}/regions/{re" + + "gion}/clusters/{cluster_name}\332A\036project_" + + "id,region,cluster_name\022\331\001\n\014ListClusters\022" + + "-.google.cloud.dataproc.v1.ListClustersR" + + "equest\032..google.cloud.dataproc.v1.ListCl" + + "ustersResponse\"j\202\323\344\223\0025\0223/v1/projects/{pr" + + "oject_id}/regions/{region}/clusters\332A\021pr" + + "oject_id,region\332A\030project_id,region,filt" + + "er\022\252\002\n\017DiagnoseCluster\0220.google.cloud.da" + + "taproc.v1.DiagnoseClusterRequest\032\035.googl" + + "e.longrunning.Operation\"\305\001\202\323\344\223\002P\"K/v1/pr" + + "ojects/{project_id}/regions/{region}/clu" + + "sters/{cluster_name}:diagnose:\001*\332A\036proje" + + "ct_id,region,cluster_name\312AK\n\026DiagnoseCl" + + "usterResults\0221google.cloud.dataproc.v1.C" + + "lusterOperationMetadata\032K\312A\027dataproc.goo" + + "gleapis.com\322A.https://www.googleapis.com" + + "/auth/cloud-platformB\263\002\n\034com.google.clou" + + "d.dataproc.v1B\rClustersProtoP\001Z@google.g" + + "olang.org/genproto/googleapis/cloud/data" + + "proc/v1;dataproc\352A^\n container.googleapi" + + "s.com/Cluster\022:projects/{project}/locati" + + "ons/{location}/clusters/{cluster}\352A^\n me" + + "tastore.googleapis.com/Service\022:projects" + + "/{project}/locations/{location}/services" + + "/{service}b\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.dataproc.v1.SharedProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dataproc_v1_Cluster_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_Cluster_descriptor, + new java.lang.String[] { "ProjectId", "ClusterName", "Config", "VirtualClusterConfig", "Labels", "Status", "StatusHistory", "ClusterUuid", "Metrics", }); + internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_Cluster_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor, + new java.lang.String[] { "ConfigBucket", "TempBucket", "GceClusterConfig", "MasterConfig", "WorkerConfig", "SecondaryWorkerConfig", "SoftwareConfig", "InitializationActions", "EncryptionConfig", "AutoscalingConfig", "SecurityConfig", "LifecycleConfig", "EndpointConfig", "MetastoreConfig", "DataprocMetricConfig", "AuxiliaryNodeGroups", }); + internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor, + new java.lang.String[] { "StagingBucket", "KubernetesClusterConfig", "AuxiliaryServicesConfig", "InfrastructureConfig", }); + internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor, + new java.lang.String[] { "MetastoreConfig", "SparkHistoryServerConfig", }); + internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor, + new java.lang.String[] { "HttpPorts", "EnableHttpPortAccess", }); + internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor, + new java.lang.String[] { "PolicyUri", }); + internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor, + new java.lang.String[] { "GcePdKmsKeyName", }); + internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor, + new java.lang.String[] { "ZoneUri", "NetworkUri", "SubnetworkUri", "InternalIpOnly", "PrivateIpv6GoogleAccess", "ServiceAccount", "ServiceAccountScopes", "Tags", "Metadata", "ReservationAffinity", "NodeGroupAffinity", "ShieldedInstanceConfig", "ConfidentialInstanceConfig", }); + internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor = + internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor, + new java.lang.String[] { "NodeGroupUri", }); + internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor, + new java.lang.String[] { "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", }); + internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor, + new java.lang.String[] { "EnableConfidentialCompute", }); + internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor, + new java.lang.String[] { "NumInstances", "InstanceNames", "ImageUri", "MachineTypeUri", "DiskConfig", "IsPreemptible", "Preemptibility", "ManagedGroupConfig", "Accelerators", "MinCpuPlatform", }); + internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor, + new java.lang.String[] { "InstanceTemplateName", "InstanceGroupManagerName", }); + internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor, + new java.lang.String[] { "AcceleratorTypeUri", "AcceleratorCount", }); + internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor, + new java.lang.String[] { "BootDiskType", "BootDiskSizeGb", "NumLocalSsds", "LocalSsdInterface", }); + internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor, + new java.lang.String[] { "NodeGroup", "NodeGroupId", }); + internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_dataproc_v1_NodeGroup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor, + new java.lang.String[] { "Name", "Roles", "NodeGroupConfig", "Labels", }); + internal_static_google_cloud_dataproc_v1_NodeGroup_LabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_NodeGroup_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_NodeGroup_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor, + new java.lang.String[] { "ExecutableFile", "ExecutionTimeout", }); + internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor, + new java.lang.String[] { "State", "Detail", "StateStartTime", "Substate", }); + internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor, + new java.lang.String[] { "KerberosConfig", "IdentityConfig", }); + internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor, + new java.lang.String[] { "EnableKerberos", "RootPrincipalPasswordUri", "KmsKeyUri", "KeystoreUri", "TruststoreUri", "KeystorePasswordUri", "KeyPasswordUri", "TruststorePasswordUri", "CrossRealmTrustRealm", "CrossRealmTrustKdc", "CrossRealmTrustAdminServer", "CrossRealmTrustSharedPasswordUri", "KdcDbKeyUri", "TgtLifetimeHours", "Realm", }); + internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor, + new java.lang.String[] { "UserServiceAccountMapping", }); + internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor = + internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor, + new java.lang.String[] { "ImageVersion", "Properties", "OptionalComponents", }); + internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor, + new java.lang.String[] { "IdleDeleteTtl", "AutoDeleteTime", "AutoDeleteTtl", "IdleStartTime", "Ttl", }); + internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor, + new java.lang.String[] { "DataprocMetastoreService", }); + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor, + new java.lang.String[] { "Metrics", }); + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor = + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor, + new java.lang.String[] { "MetricSource", "MetricOverrides", }); + internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor, + new java.lang.String[] { "HdfsMetrics", "YarnMetrics", }); + internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor, + new java.lang.String[] { "ProjectId", "Region", "Cluster", "RequestId", "ActionOnFailedPrimaryWorkers", }); + internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor, + new java.lang.String[] { "ProjectId", "Region", "ClusterName", "Cluster", "GracefulDecommissionTimeout", "UpdateMask", "RequestId", }); + internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor, + new java.lang.String[] { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); + internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor, + new java.lang.String[] { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); + internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor, + new java.lang.String[] { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); + internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor, + new java.lang.String[] { "ProjectId", "Region", "ClusterName", }); + internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor, + new java.lang.String[] { "ProjectId", "Region", "Filter", "PageSize", "PageToken", }); + internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor, + new java.lang.String[] { "Clusters", "NextPageToken", }); + internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor, + new java.lang.String[] { "ProjectId", "Region", "ClusterName", }); + internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor, + new java.lang.String[] { "OutputUri", }); + internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor, + new java.lang.String[] { "ConsumeReservationType", "Key", "Values", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + 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.dataproc.v1.SharedProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java similarity index 74% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java index 95757b56f701..d6af1047de6d 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Cluster components that can be activated.
  * 
* * Protobuf enum {@code google.cloud.dataproc.v1.Component} */ -public enum Component implements com.google.protobuf.ProtocolMessageEnum { +public enum Component + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unspecified component. Specifying this will cause Cluster creation to fail.
    * 
@@ -39,8 +21,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ COMPONENT_UNSPECIFIED(0), /** - * - * *
    * The Anaconda python distribution. The Anaconda component is not supported
    * in the Dataproc
@@ -53,8 +33,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum {
    */
   ANACONDA(5),
   /**
-   *
-   *
    * 
    * Docker
    * 
@@ -63,8 +41,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ DOCKER(13), /** - * - * *
    * The Druid query engine. (alpha)
    * 
@@ -73,8 +49,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ DRUID(9), /** - * - * *
    * Flink
    * 
@@ -83,8 +57,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ FLINK(14), /** - * - * *
    * HBase. (beta)
    * 
@@ -93,8 +65,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ HBASE(11), /** - * - * *
    * The Hive Web HCatalog (the REST service for accessing HCatalog).
    * 
@@ -103,8 +73,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ HIVE_WEBHCAT(3), /** - * - * *
    * The Jupyter Notebook.
    * 
@@ -113,8 +81,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ JUPYTER(1), /** - * - * *
    * The Presto query engine.
    * 
@@ -123,8 +89,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ PRESTO(6), /** - * - * *
    * The Ranger service.
    * 
@@ -133,8 +97,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ RANGER(12), /** - * - * *
    * The Solr service.
    * 
@@ -143,8 +105,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ SOLR(10), /** - * - * *
    * The Zeppelin notebook.
    * 
@@ -153,8 +113,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ ZEPPELIN(4), /** - * - * *
    * The Zookeeper service.
    * 
@@ -166,8 +124,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unspecified component. Specifying this will cause Cluster creation to fail.
    * 
@@ -176,8 +132,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPONENT_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The Anaconda python distribution. The Anaconda component is not supported
    * in the Dataproc
@@ -190,8 +144,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int ANACONDA_VALUE = 5;
   /**
-   *
-   *
    * 
    * Docker
    * 
@@ -200,8 +152,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DOCKER_VALUE = 13; /** - * - * *
    * The Druid query engine. (alpha)
    * 
@@ -210,8 +160,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DRUID_VALUE = 9; /** - * - * *
    * Flink
    * 
@@ -220,8 +168,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FLINK_VALUE = 14; /** - * - * *
    * HBase. (beta)
    * 
@@ -230,8 +176,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HBASE_VALUE = 11; /** - * - * *
    * The Hive Web HCatalog (the REST service for accessing HCatalog).
    * 
@@ -240,8 +184,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HIVE_WEBHCAT_VALUE = 3; /** - * - * *
    * The Jupyter Notebook.
    * 
@@ -250,8 +192,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JUPYTER_VALUE = 1; /** - * - * *
    * The Presto query engine.
    * 
@@ -260,8 +200,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRESTO_VALUE = 6; /** - * - * *
    * The Ranger service.
    * 
@@ -270,8 +208,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RANGER_VALUE = 12; /** - * - * *
    * The Solr service.
    * 
@@ -280,8 +216,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SOLR_VALUE = 10; /** - * - * *
    * The Zeppelin notebook.
    * 
@@ -290,8 +224,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ZEPPELIN_VALUE = 4; /** - * - * *
    * The Zookeeper service.
    * 
@@ -300,6 +232,7 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ZOOKEEPER_VALUE = 8; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -324,69 +257,59 @@ public static Component valueOf(int value) { */ public static Component forNumber(int value) { switch (value) { - case 0: - return COMPONENT_UNSPECIFIED; - case 5: - return ANACONDA; - case 13: - return DOCKER; - case 9: - return DRUID; - case 14: - return FLINK; - case 11: - return HBASE; - case 3: - return HIVE_WEBHCAT; - case 1: - return JUPYTER; - case 6: - return PRESTO; - case 12: - return RANGER; - case 10: - return SOLR; - case 4: - return ZEPPELIN; - case 8: - return ZOOKEEPER; - default: - return null; + case 0: return COMPONENT_UNSPECIFIED; + case 5: return ANACONDA; + case 13: return DOCKER; + case 9: return DRUID; + case 14: return FLINK; + case 11: return HBASE; + case 3: return HIVE_WEBHCAT; + case 1: return JUPYTER; + case 6: return PRESTO; + case 12: return RANGER; + case 10: return SOLR; + case 4: return ZEPPELIN; + case 8: return ZOOKEEPER; + 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< + Component> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Component findValueByNumber(int number) { + return Component.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Component findValueByNumber(int number) { - return Component.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.dataproc.v1.SharedProto.getDescriptor().getEnumTypes().get(0); } private static final Component[] VALUES = values(); - public static Component valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Component 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; @@ -402,3 +325,4 @@ private Component(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.Component) } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java similarity index 64% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java index 911a7f764cfb..7d9b97ef3420 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Confidential Instance Config for clusters using [Confidential
  * VMs](https://cloud.google.com/compute/confidential-vm/docs)
@@ -28,55 +11,52 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.ConfidentialInstanceConfig}
  */
-public final class ConfidentialInstanceConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ConfidentialInstanceConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ConfidentialInstanceConfig)
     ConfidentialInstanceConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ConfidentialInstanceConfig.newBuilder() to construct.
   private ConfidentialInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ConfidentialInstanceConfig() {}
+  private ConfidentialInstanceConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ConfidentialInstanceConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto
-        .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.ClustersProto
-        .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.class,
-            com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder.class);
+            com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.class, com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder.class);
   }
 
   public static final int ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER = 1;
   private boolean enableConfidentialCompute_;
   /**
-   *
-   *
    * 
-   * Optional. Defines whether the instance should have confidential compute enabled.
+   * Optional. Defines whether the instance should have confidential compute
+   * enabled.
    * 
* * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableConfidentialCompute. */ @java.lang.Override @@ -85,7 +65,6 @@ public boolean getEnableConfidentialCompute() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,7 +76,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 (enableConfidentialCompute_ != false) { output.writeBool(1, enableConfidentialCompute_); } @@ -111,7 +91,8 @@ public int getSerializedSize() { size = 0; if (enableConfidentialCompute_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableConfidentialCompute_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableConfidentialCompute_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -121,15 +102,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.dataproc.v1.ConfidentialInstanceConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig other = - (com.google.cloud.dataproc.v1.ConfidentialInstanceConfig) obj; + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig other = (com.google.cloud.dataproc.v1.ConfidentialInstanceConfig) obj; - if (getEnableConfidentialCompute() != other.getEnableConfidentialCompute()) return false; + if (getEnableConfidentialCompute() + != other.getEnableConfidentialCompute()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -142,111 +123,104 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableConfidentialCompute()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableConfidentialCompute()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig 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.dataproc.v1.ConfidentialInstanceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.ConfidentialInstanceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Confidential Instance Config for clusters using [Confidential
    * VMs](https://cloud.google.com/compute/confidential-vm/docs)
@@ -254,32 +228,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.ConfidentialInstanceConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ConfidentialInstanceConfig)
       com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.class,
-              com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder.class);
+              com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.class, com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -289,9 +264,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor;
     }
 
     @java.lang.Override
@@ -310,8 +285,7 @@ public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig buildPartial() {
-      com.google.cloud.dataproc.v1.ConfidentialInstanceConfig result =
-          new com.google.cloud.dataproc.v1.ConfidentialInstanceConfig(this);
+      com.google.cloud.dataproc.v1.ConfidentialInstanceConfig result = new com.google.cloud.dataproc.v1.ConfidentialInstanceConfig(this);
       result.enableConfidentialCompute_ = enableConfidentialCompute_;
       onBuilt();
       return result;
@@ -321,39 +295,38 @@ public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.ConfidentialInstanceConfig) {
-        return mergeFrom((com.google.cloud.dataproc.v1.ConfidentialInstanceConfig) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.ConfidentialInstanceConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -361,8 +334,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.ConfidentialInstanceConfig other) {
-      if (other == com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance()) return this;
       if (other.getEnableConfidentialCompute() != false) {
         setEnableConfidentialCompute(other.getEnableConfidentialCompute());
       }
@@ -392,19 +364,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                enableConfidentialCompute_ = input.readBool();
-
-                break;
-              } // case 8
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              enableConfidentialCompute_ = input.readBool();
+
+              break;
+            } // case 8
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -415,16 +385,14 @@ public Builder mergeFrom(
       return this;
     }
 
-    private boolean enableConfidentialCompute_;
+    private boolean enableConfidentialCompute_ ;
     /**
-     *
-     *
      * 
-     * Optional. Defines whether the instance should have confidential compute enabled.
+     * Optional. Defines whether the instance should have confidential compute
+     * enabled.
      * 
* * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableConfidentialCompute. */ @java.lang.Override @@ -432,43 +400,39 @@ public boolean getEnableConfidentialCompute() { return enableConfidentialCompute_; } /** - * - * *
-     * Optional. Defines whether the instance should have confidential compute enabled.
+     * Optional. Defines whether the instance should have confidential compute
+     * enabled.
      * 
* * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enableConfidentialCompute to set. * @return This builder for chaining. */ public Builder setEnableConfidentialCompute(boolean value) { - + enableConfidentialCompute_ = value; onChanged(); return this; } /** - * - * *
-     * Optional. Defines whether the instance should have confidential compute enabled.
+     * Optional. Defines whether the instance should have confidential compute
+     * enabled.
      * 
* * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnableConfidentialCompute() { - + enableConfidentialCompute_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -478,12 +442,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ConfidentialInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ConfidentialInstanceConfig) private static final com.google.cloud.dataproc.v1.ConfidentialInstanceConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ConfidentialInstanceConfig(); } @@ -492,27 +456,27 @@ public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfidentialInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfidentialInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -527,4 +491,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java new file mode 100644 index 000000000000..1ddda0d301c2 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface ConfidentialInstanceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ConfidentialInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Optional. Defines whether the instance should have confidential compute
+   * enabled.
+   * 
+ * + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enableConfidentialCompute. + */ + boolean getEnableConfidentialCompute(); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java similarity index 64% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java index f907627d4e5c..02058b33af5f 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java @@ -1,78 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to create an autoscaling policy.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest} */ -public final class CreateAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateAutoscalingPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) CreateAutoscalingPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateAutoscalingPolicyRequest.newBuilder() to construct. - private CreateAutoscalingPolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateAutoscalingPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateAutoscalingPolicyRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateAutoscalingPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.Builder.class); + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.class, com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The "resource name" of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -84,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `projects/{project_id}/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 @@ -96,15 +71,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The "resource name" of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -116,18 +90,17 @@ public java.lang.String getParent() {
    *   `projects/{project_id}/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 { @@ -138,16 +111,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int POLICY_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.AutoscalingPolicy policy_; /** - * - * *
    * Required. The autoscaling policy to create.
    * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the policy field is set. */ @java.lang.Override @@ -155,34 +123,23 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
    * Required. The autoscaling policy to create.
    * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The policy. */ @java.lang.Override public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy() { - return policy_ == null - ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() - : policy_; + return policy_ == null ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() : policy_; } /** - * - * *
    * Required. The autoscaling policy to create.
    * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder() { @@ -190,7 +147,6 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilde } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -222,7 +179,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPolicy()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -232,18 +190,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.dataproc.v1.CreateAutoscalingPolicyRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest other = - (com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) obj; + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest other = (com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { - if (!getPolicy().equals(other.getPolicy())) return false; + if (!getPolicy() + .equals(other.getPolicy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -268,136 +227,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest 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.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to create an autoscaling policy.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.Builder.class); + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.class, com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +365,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; } @java.lang.Override @@ -434,8 +386,7 @@ public com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest buildPartial() { - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest result = - new com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest(this); + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest result = new com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest(this); result.parent_ = parent_; if (policyBuilder_ == null) { result.policy_ = policy_; @@ -450,39 +401,38 @@ public com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -490,8 +440,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest other) { - if (other == com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -525,25 +474,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getPolicyFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,8 +504,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -569,16 +515,14 @@ public Builder mergeFrom(
      *   `projects/{project_id}/locations/{location}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -587,8 +531,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -600,17 +542,16 @@ public java.lang.String getParent() {
      *   `projects/{project_id}/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 { @@ -618,8 +559,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -631,25 +570,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      *   `projects/{project_id}/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 "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -661,21 +596,16 @@ public Builder setParent(java.lang.String value) {
      *   `projects/{project_id}/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 "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -687,19 +617,17 @@ public Builder clearParent() {
      *   `projects/{project_id}/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; @@ -707,58 +635,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.AutoscalingPolicy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> - policyBuilder_; + com.google.cloud.dataproc.v1.AutoscalingPolicy, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> policyBuilder_; /** - * - * *
      * Required. The autoscaling policy to create.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** - * - * *
      * Required. The autoscaling policy to create.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The policy. */ public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy() { if (policyBuilder_ == null) { - return policy_ == null - ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() - : policy_; + return policy_ == null ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() : policy_; } else { return policyBuilder_.getMessage(); } } /** - * - * *
      * Required. The autoscaling policy to create.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { if (policyBuilder_ == null) { @@ -774,15 +683,11 @@ public Builder setPolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { return this; } /** - * - * *
      * Required. The autoscaling policy to create.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPolicy( com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder builderForValue) { @@ -796,23 +701,17 @@ public Builder setPolicy( return this; } /** - * - * *
      * Required. The autoscaling policy to create.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { if (policyBuilder_ == null) { if (policy_ != null) { policy_ = - com.google.cloud.dataproc.v1.AutoscalingPolicy.newBuilder(policy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.AutoscalingPolicy.newBuilder(policy_).mergeFrom(value).buildPartial(); } else { policy_ = value; } @@ -824,15 +723,11 @@ public Builder mergePolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) return this; } /** - * - * *
      * Required. The autoscaling policy to create.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPolicy() { if (policyBuilder_ == null) { @@ -846,71 +741,55 @@ public Builder clearPolicy() { return this; } /** - * - * *
      * Required. The autoscaling policy to create.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder getPolicyBuilder() { - + onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The autoscaling policy to create.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { - return policy_ == null - ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() - : policy_; + return policy_ == null ? + com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() : policy_; } } /** - * - * *
      * Required. The autoscaling policy to create.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> + com.google.cloud.dataproc.v1.AutoscalingPolicy, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { - policyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder>( - getPolicy(), getParentForChildren(), isClean()); + policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.AutoscalingPolicy, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder>( + getPolicy(), + getParentForChildren(), + isClean()); policy_ = null; } return policyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -920,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) private static final com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest(); } @@ -934,27 +813,27 @@ public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAutoscalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAutoscalingPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -969,4 +848,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.java similarity index 57% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.java index a7571aef21eb..b0e8aef377ca 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.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/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; -public interface CreateAutoscalingPolicyRequestOrBuilder - extends +public interface CreateAutoscalingPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The "resource name" of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -37,16 +19,11 @@ public interface CreateAutoscalingPolicyRequestOrBuilder
    *   `projects/{project_id}/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 "resource name" of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -58,52 +35,36 @@ public interface CreateAutoscalingPolicyRequestOrBuilder
    *   `projects/{project_id}/locations/{location}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The autoscaling policy to create.
    * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
    * Required. The autoscaling policy to create.
    * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The policy. */ com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy(); /** - * - * *
    * Required. The autoscaling policy to create.
    * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java similarity index 71% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java index 043efdce2355..ffecc55e6ee9 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.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/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to create a batch workload.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.CreateBatchRequest} */ -public final class CreateBatchRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateBatchRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.CreateBatchRequest) CreateBatchRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateBatchRequest.newBuilder() to construct. private CreateBatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateBatchRequest() { parent_ = ""; batchId_ = ""; @@ -45,43 +27,37 @@ private CreateBatchRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBatchRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateBatchRequest.class, - com.google.cloud.dataproc.v1.CreateBatchRequest.Builder.class); + com.google.cloud.dataproc.v1.CreateBatchRequest.class, com.google.cloud.dataproc.v1.CreateBatchRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource where this batch will be created.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -90,31 +66,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; } } /** - * - * *
    * Required. The parent resource where this batch will be created.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -125,15 +99,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int BATCH_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.Batch batch_; /** - * - * *
    * Required. The batch to create.
    * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the batch field is set. */ @java.lang.Override @@ -141,15 +111,11 @@ public boolean hasBatch() { return batch_ != null; } /** - * - * *
    * Required. The batch to create.
    * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The batch. */ @java.lang.Override @@ -157,14 +123,11 @@ public com.google.cloud.dataproc.v1.Batch getBatch() { return batch_ == null ? com.google.cloud.dataproc.v1.Batch.getDefaultInstance() : batch_; } /** - * - * *
    * Required. The batch to create.
    * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder() { @@ -174,8 +137,6 @@ public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder() { public static final int BATCH_ID_FIELD_NUMBER = 3; private volatile java.lang.Object batchId_; /** - * - * *
    * Optional. The ID to use for the batch, which will become the final component of
    * the batch's resource name.
@@ -183,7 +144,6 @@ public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder() {
    * 
* * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The batchId. */ @java.lang.Override @@ -192,15 +152,14 @@ public java.lang.String getBatchId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batchId_ = s; return s; } } /** - * - * *
    * Optional. The ID to use for the batch, which will become the final component of
    * the batch's resource name.
@@ -208,15 +167,16 @@ public java.lang.String getBatchId() {
    * 
* * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for batchId. */ @java.lang.Override - public com.google.protobuf.ByteString getBatchIdBytes() { + public com.google.protobuf.ByteString + getBatchIdBytes() { java.lang.Object ref = batchId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); batchId_ = b; return b; } else { @@ -227,8 +187,6 @@ public com.google.protobuf.ByteString getBatchIdBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A unique ID used to identify the request. If the service
    * receives two
@@ -243,7 +201,6 @@ public com.google.protobuf.ByteString getBatchIdBytes() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -252,15 +209,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. A unique ID used to identify the request. If the service
    * receives two
@@ -275,15 +231,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 { @@ -292,7 +249,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -304,7 +260,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_); } @@ -330,7 +287,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (batch_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBatch()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBatch()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, batchId_); @@ -346,21 +304,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.dataproc.v1.CreateBatchRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.CreateBatchRequest other = - (com.google.cloud.dataproc.v1.CreateBatchRequest) obj; + com.google.cloud.dataproc.v1.CreateBatchRequest other = (com.google.cloud.dataproc.v1.CreateBatchRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasBatch() != other.hasBatch()) return false; if (hasBatch()) { - if (!getBatch().equals(other.getBatch())) return false; + if (!getBatch() + .equals(other.getBatch())) return false; } - if (!getBatchId().equals(other.getBatchId())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getBatchId() + .equals(other.getBatchId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -387,136 +348,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.CreateBatchRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to create a batch workload.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.CreateBatchRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.CreateBatchRequest) com.google.cloud.dataproc.v1.CreateBatchRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateBatchRequest.class, - com.google.cloud.dataproc.v1.CreateBatchRequest.Builder.class); + com.google.cloud.dataproc.v1.CreateBatchRequest.class, com.google.cloud.dataproc.v1.CreateBatchRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.CreateBatchRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -536,9 +491,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; } @java.lang.Override @@ -557,8 +512,7 @@ public com.google.cloud.dataproc.v1.CreateBatchRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.CreateBatchRequest buildPartial() { - com.google.cloud.dataproc.v1.CreateBatchRequest result = - new com.google.cloud.dataproc.v1.CreateBatchRequest(this); + com.google.cloud.dataproc.v1.CreateBatchRequest result = new com.google.cloud.dataproc.v1.CreateBatchRequest(this); result.parent_ = parent_; if (batchBuilder_ == null) { result.batch_ = batch_; @@ -575,39 +529,38 @@ public com.google.cloud.dataproc.v1.CreateBatchRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.CreateBatchRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.CreateBatchRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.CreateBatchRequest)other); } else { super.mergeFrom(other); return this; @@ -615,8 +568,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateBatchRequest other) { - if (other == com.google.cloud.dataproc.v1.CreateBatchRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.CreateBatchRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -658,37 +610,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getBatchFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getBatchFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - batchId_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + batchId_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -701,22 +650,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource where this batch will be created.
      * 
* - * - * 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; @@ -725,23 +670,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource where this batch will be created.
      * 
* - * - * 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 { @@ -749,67 +691,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource where this batch will be created.
      * 
* - * - * 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 where this batch will be created.
      * 
* - * - * 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 where this batch will be created.
      * 
* - * - * 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; @@ -817,35 +746,24 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.Batch batch_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch, - com.google.cloud.dataproc.v1.Batch.Builder, - com.google.cloud.dataproc.v1.BatchOrBuilder> - batchBuilder_; + com.google.cloud.dataproc.v1.Batch, com.google.cloud.dataproc.v1.Batch.Builder, com.google.cloud.dataproc.v1.BatchOrBuilder> batchBuilder_; /** - * - * *
      * Required. The batch to create.
      * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the batch field is set. */ public boolean hasBatch() { return batchBuilder_ != null || batch_ != null; } /** - * - * *
      * Required. The batch to create.
      * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The batch. */ public com.google.cloud.dataproc.v1.Batch getBatch() { @@ -856,14 +774,11 @@ public com.google.cloud.dataproc.v1.Batch getBatch() { } } /** - * - * *
      * Required. The batch to create.
      * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBatch(com.google.cloud.dataproc.v1.Batch value) { if (batchBuilder_ == null) { @@ -879,16 +794,14 @@ public Builder setBatch(com.google.cloud.dataproc.v1.Batch value) { return this; } /** - * - * *
      * Required. The batch to create.
      * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBatch(com.google.cloud.dataproc.v1.Batch.Builder builderForValue) { + public Builder setBatch( + com.google.cloud.dataproc.v1.Batch.Builder builderForValue) { if (batchBuilder_ == null) { batch_ = builderForValue.build(); onChanged(); @@ -899,20 +812,17 @@ public Builder setBatch(com.google.cloud.dataproc.v1.Batch.Builder builderForVal return this; } /** - * - * *
      * Required. The batch to create.
      * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBatch(com.google.cloud.dataproc.v1.Batch value) { if (batchBuilder_ == null) { if (batch_ != null) { batch_ = - com.google.cloud.dataproc.v1.Batch.newBuilder(batch_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.Batch.newBuilder(batch_).mergeFrom(value).buildPartial(); } else { batch_ = value; } @@ -924,14 +834,11 @@ public Builder mergeBatch(com.google.cloud.dataproc.v1.Batch value) { return this; } /** - * - * *
      * Required. The batch to create.
      * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBatch() { if (batchBuilder_ == null) { @@ -945,59 +852,48 @@ public Builder clearBatch() { return this; } /** - * - * *
      * Required. The batch to create.
      * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.Batch.Builder getBatchBuilder() { - + onChanged(); return getBatchFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The batch to create.
      * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder() { if (batchBuilder_ != null) { return batchBuilder_.getMessageOrBuilder(); } else { - return batch_ == null ? com.google.cloud.dataproc.v1.Batch.getDefaultInstance() : batch_; + return batch_ == null ? + com.google.cloud.dataproc.v1.Batch.getDefaultInstance() : batch_; } } /** - * - * *
      * Required. The batch to create.
      * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch, - com.google.cloud.dataproc.v1.Batch.Builder, - com.google.cloud.dataproc.v1.BatchOrBuilder> + com.google.cloud.dataproc.v1.Batch, com.google.cloud.dataproc.v1.Batch.Builder, com.google.cloud.dataproc.v1.BatchOrBuilder> getBatchFieldBuilder() { if (batchBuilder_ == null) { - batchBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch, - com.google.cloud.dataproc.v1.Batch.Builder, - com.google.cloud.dataproc.v1.BatchOrBuilder>( - getBatch(), getParentForChildren(), isClean()); + batchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.Batch, com.google.cloud.dataproc.v1.Batch.Builder, com.google.cloud.dataproc.v1.BatchOrBuilder>( + getBatch(), + getParentForChildren(), + isClean()); batch_ = null; } return batchBuilder_; @@ -1005,8 +901,6 @@ public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder() { private java.lang.Object batchId_ = ""; /** - * - * *
      * Optional. The ID to use for the batch, which will become the final component of
      * the batch's resource name.
@@ -1014,13 +908,13 @@ public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder() {
      * 
* * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The batchId. */ public java.lang.String getBatchId() { java.lang.Object ref = batchId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batchId_ = s; return s; @@ -1029,8 +923,6 @@ public java.lang.String getBatchId() { } } /** - * - * *
      * Optional. The ID to use for the batch, which will become the final component of
      * the batch's resource name.
@@ -1038,14 +930,15 @@ public java.lang.String getBatchId() {
      * 
* * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for batchId. */ - public com.google.protobuf.ByteString getBatchIdBytes() { + public com.google.protobuf.ByteString + getBatchIdBytes() { java.lang.Object ref = batchId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); batchId_ = b; return b; } else { @@ -1053,8 +946,6 @@ public com.google.protobuf.ByteString getBatchIdBytes() { } } /** - * - * *
      * Optional. The ID to use for the batch, which will become the final component of
      * the batch's resource name.
@@ -1062,22 +953,20 @@ public com.google.protobuf.ByteString getBatchIdBytes() {
      * 
* * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The batchId to set. * @return This builder for chaining. */ - public Builder setBatchId(java.lang.String value) { + public Builder setBatchId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + batchId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The ID to use for the batch, which will become the final component of
      * the batch's resource name.
@@ -1085,18 +974,15 @@ public Builder setBatchId(java.lang.String value) {
      * 
* * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearBatchId() { - + batchId_ = getDefaultInstance().getBatchId(); onChanged(); return this; } /** - * - * *
      * Optional. The ID to use for the batch, which will become the final component of
      * the batch's resource name.
@@ -1104,16 +990,16 @@ public Builder clearBatchId() {
      * 
* * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for batchId to set. * @return This builder for chaining. */ - public Builder setBatchIdBytes(com.google.protobuf.ByteString value) { + public Builder setBatchIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + batchId_ = value; onChanged(); return this; @@ -1121,8 +1007,6 @@ public Builder setBatchIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique ID used to identify the request. If the service
      * receives two
@@ -1137,13 +1021,13 @@ public Builder setBatchIdBytes(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; @@ -1152,8 +1036,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique ID used to identify the request. If the service
      * receives two
@@ -1168,14 +1050,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 { @@ -1183,8 +1066,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique ID used to identify the request. If the service
      * receives two
@@ -1199,22 +1080,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. A unique ID used to identify the request. If the service
      * receives two
@@ -1229,18 +1108,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. A unique ID used to identify the request. If the service
      * receives two
@@ -1255,23 +1131,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); } @@ -1281,12 +1157,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.CreateBatchRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CreateBatchRequest) private static final com.google.cloud.dataproc.v1.CreateBatchRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.CreateBatchRequest(); } @@ -1295,27 +1171,27 @@ public static com.google.cloud.dataproc.v1.CreateBatchRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBatchRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBatchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1330,4 +1206,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.CreateBatchRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java similarity index 73% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java index 0ea10ac4b77b..19ca6e82c6ab 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java @@ -1,98 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; -public interface CreateBatchRequestOrBuilder - extends +public interface CreateBatchRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.CreateBatchRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource where this batch will be created.
    * 
* - * - * 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 where this batch will be created.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The batch to create.
    * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the batch field is set. */ boolean hasBatch(); /** - * - * *
    * Required. The batch to create.
    * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The batch. */ com.google.cloud.dataproc.v1.Batch getBatch(); /** - * - * *
    * Required. The batch to create.
    * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder(); /** - * - * *
    * Optional. The ID to use for the batch, which will become the final component of
    * the batch's resource name.
@@ -100,13 +62,10 @@ public interface CreateBatchRequestOrBuilder
    * 
* * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The batchId. */ java.lang.String getBatchId(); /** - * - * *
    * Optional. The ID to use for the batch, which will become the final component of
    * the batch's resource name.
@@ -114,14 +73,12 @@ public interface CreateBatchRequestOrBuilder
    * 
* * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for batchId. */ - com.google.protobuf.ByteString getBatchIdBytes(); + com.google.protobuf.ByteString + getBatchIdBytes(); /** - * - * *
    * Optional. A unique ID used to identify the request. If the service
    * receives two
@@ -136,13 +93,10 @@ public interface CreateBatchRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A unique ID used to identify the request. If the service
    * receives two
@@ -157,8 +111,8 @@ public interface CreateBatchRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java similarity index 68% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java index 8d5654938163..70905b40a572 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to create a cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.CreateClusterRequest} */ -public final class CreateClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.CreateClusterRequest) CreateClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateClusterRequest.newBuilder() to construct. private CreateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateClusterRequest() { projectId_ = ""; region_ = ""; @@ -46,42 +28,38 @@ private CreateClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateClusterRequest.class, - com.google.cloud.dataproc.v1.CreateClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.CreateClusterRequest.class, com.google.cloud.dataproc.v1.CreateClusterRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -90,30 +68,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -124,14 +102,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int REGION_FIELD_NUMBER = 3; private volatile java.lang.Object region_; /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ @java.lang.Override @@ -140,29 +115,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -173,15 +148,11 @@ public com.google.protobuf.ByteString getRegionBytes() { public static final int CLUSTER_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.Cluster cluster_; /** - * - * *
    * Required. The cluster to create.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cluster field is set. */ @java.lang.Override @@ -189,15 +160,11 @@ public boolean hasCluster() { return cluster_ != null; } /** - * - * *
    * Required. The cluster to create.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The cluster. */ @java.lang.Override @@ -205,14 +172,11 @@ public com.google.cloud.dataproc.v1.Cluster getCluster() { return cluster_ == null ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() : cluster_; } /** - * - * *
    * Required. The cluster to create.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { @@ -222,14 +186,13 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
-   * Optional. A unique ID used to identify the request. If the server receives two
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two
    * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-   * is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -237,7 +200,6 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -246,21 +208,21 @@ 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. A unique ID used to identify the request. If the server receives two
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two
    * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-   * is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -268,15 +230,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 { @@ -287,45 +250,31 @@ public com.google.protobuf.ByteString getRequestIdBytes() { public static final int ACTION_ON_FAILED_PRIMARY_WORKERS_FIELD_NUMBER = 5; private int actionOnFailedPrimaryWorkers_; /** - * - * *
    * Optional. Failure action when primary worker creation fails.
    * 
* - * - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for actionOnFailedPrimaryWorkers. */ - @java.lang.Override - public int getActionOnFailedPrimaryWorkersValue() { + @java.lang.Override public int getActionOnFailedPrimaryWorkersValue() { return actionOnFailedPrimaryWorkers_; } /** - * - * *
    * Optional. Failure action when primary worker creation fails.
    * 
* - * - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The actionOnFailedPrimaryWorkers. */ - @java.lang.Override - public com.google.cloud.dataproc.v1.FailureAction getActionOnFailedPrimaryWorkers() { + @java.lang.Override public com.google.cloud.dataproc.v1.FailureAction getActionOnFailedPrimaryWorkers() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.FailureAction result = - com.google.cloud.dataproc.v1.FailureAction.valueOf(actionOnFailedPrimaryWorkers_); + com.google.cloud.dataproc.v1.FailureAction result = com.google.cloud.dataproc.v1.FailureAction.valueOf(actionOnFailedPrimaryWorkers_); return result == null ? com.google.cloud.dataproc.v1.FailureAction.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -337,7 +286,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -350,8 +300,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); } - if (actionOnFailedPrimaryWorkers_ - != com.google.cloud.dataproc.v1.FailureAction.FAILURE_ACTION_UNSPECIFIED.getNumber()) { + if (actionOnFailedPrimaryWorkers_ != com.google.cloud.dataproc.v1.FailureAction.FAILURE_ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(5, actionOnFailedPrimaryWorkers_); } getUnknownFields().writeTo(output); @@ -367,7 +316,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } if (cluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCluster()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCluster()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); @@ -375,10 +325,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } - if (actionOnFailedPrimaryWorkers_ - != com.google.cloud.dataproc.v1.FailureAction.FAILURE_ACTION_UNSPECIFIED.getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(5, actionOnFailedPrimaryWorkers_); + if (actionOnFailedPrimaryWorkers_ != com.google.cloud.dataproc.v1.FailureAction.FAILURE_ACTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, actionOnFailedPrimaryWorkers_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -388,21 +337,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.dataproc.v1.CreateClusterRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.CreateClusterRequest other = - (com.google.cloud.dataproc.v1.CreateClusterRequest) obj; + com.google.cloud.dataproc.v1.CreateClusterRequest other = (com.google.cloud.dataproc.v1.CreateClusterRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getRegion() + .equals(other.getRegion())) return false; if (hasCluster() != other.hasCluster()) return false; if (hasCluster()) { - if (!getCluster().equals(other.getCluster())) return false; + if (!getCluster() + .equals(other.getCluster())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (actionOnFailedPrimaryWorkers_ != other.actionOnFailedPrimaryWorkers_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -433,135 +385,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.CreateClusterRequest 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.dataproc.v1.CreateClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.CreateClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.CreateClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to create a cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.CreateClusterRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.CreateClusterRequest) com.google.cloud.dataproc.v1.CreateClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateClusterRequest.class, - com.google.cloud.dataproc.v1.CreateClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.CreateClusterRequest.class, com.google.cloud.dataproc.v1.CreateClusterRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.CreateClusterRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -583,9 +529,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; } @java.lang.Override @@ -604,8 +550,7 @@ public com.google.cloud.dataproc.v1.CreateClusterRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.CreateClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.CreateClusterRequest result = - new com.google.cloud.dataproc.v1.CreateClusterRequest(this); + com.google.cloud.dataproc.v1.CreateClusterRequest result = new com.google.cloud.dataproc.v1.CreateClusterRequest(this); result.projectId_ = projectId_; result.region_ = region_; if (clusterBuilder_ == null) { @@ -623,39 +568,38 @@ public com.google.cloud.dataproc.v1.CreateClusterRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.CreateClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.CreateClusterRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.CreateClusterRequest)other); } else { super.mergeFrom(other); return this; @@ -663,8 +607,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.CreateClusterRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.CreateClusterRequest.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -709,43 +652,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); + case 10: { + projectId_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getClusterFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getClusterFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - region_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + region_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 40: - { - actionOnFailedPrimaryWorkers_ = input.readEnum(); + break; + } // case 34 + case 40: { + actionOnFailedPrimaryWorkers_ = input.readEnum(); - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -758,21 +697,19 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -781,22 +718,21 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -804,64 +740,57 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -869,20 +798,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object region_ = ""; /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -891,21 +818,20 @@ public java.lang.String getRegion() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -913,61 +839,54 @@ public com.google.protobuf.ByteString getRegionBytes() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion(java.lang.String value) { + public Builder setRegion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -975,58 +894,39 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.Cluster cluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, - com.google.cloud.dataproc.v1.Cluster.Builder, - com.google.cloud.dataproc.v1.ClusterOrBuilder> - clusterBuilder_; + com.google.cloud.dataproc.v1.Cluster, com.google.cloud.dataproc.v1.Cluster.Builder, com.google.cloud.dataproc.v1.ClusterOrBuilder> clusterBuilder_; /** - * - * *
      * Required. The cluster to create.
      * 
* - * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cluster field is set. */ public boolean hasCluster() { return clusterBuilder_ != null || cluster_ != null; } /** - * - * *
      * Required. The cluster to create.
      * 
* - * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The cluster. */ public com.google.cloud.dataproc.v1.Cluster getCluster() { if (clusterBuilder_ == null) { - return cluster_ == null - ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() - : cluster_; + return cluster_ == null ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() : cluster_; } else { return clusterBuilder_.getMessage(); } } /** - * - * *
      * Required. The cluster to create.
      * 
* - * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCluster(com.google.cloud.dataproc.v1.Cluster value) { if (clusterBuilder_ == null) { @@ -1042,17 +942,14 @@ public Builder setCluster(com.google.cloud.dataproc.v1.Cluster value) { return this; } /** - * - * *
      * Required. The cluster to create.
      * 
* - * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCluster(com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { + public Builder setCluster( + com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { if (clusterBuilder_ == null) { cluster_ = builderForValue.build(); onChanged(); @@ -1063,23 +960,17 @@ public Builder setCluster(com.google.cloud.dataproc.v1.Cluster.Builder builderFo return this; } /** - * - * *
      * Required. The cluster to create.
      * 
* - * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCluster(com.google.cloud.dataproc.v1.Cluster value) { if (clusterBuilder_ == null) { if (cluster_ != null) { cluster_ = - com.google.cloud.dataproc.v1.Cluster.newBuilder(cluster_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.Cluster.newBuilder(cluster_).mergeFrom(value).buildPartial(); } else { cluster_ = value; } @@ -1091,15 +982,11 @@ public Builder mergeCluster(com.google.cloud.dataproc.v1.Cluster value) { return this; } /** - * - * *
      * Required. The cluster to create.
      * 
* - * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCluster() { if (clusterBuilder_ == null) { @@ -1113,64 +1000,48 @@ public Builder clearCluster() { return this; } /** - * - * *
      * Required. The cluster to create.
      * 
* - * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.Cluster.Builder getClusterBuilder() { - + onChanged(); return getClusterFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The cluster to create.
      * 
* - * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { if (clusterBuilder_ != null) { return clusterBuilder_.getMessageOrBuilder(); } else { - return cluster_ == null - ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() - : cluster_; + return cluster_ == null ? + com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() : cluster_; } } /** - * - * *
      * Required. The cluster to create.
      * 
* - * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, - com.google.cloud.dataproc.v1.Cluster.Builder, - com.google.cloud.dataproc.v1.ClusterOrBuilder> + com.google.cloud.dataproc.v1.Cluster, com.google.cloud.dataproc.v1.Cluster.Builder, com.google.cloud.dataproc.v1.ClusterOrBuilder> getClusterFieldBuilder() { if (clusterBuilder_ == null) { - clusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, - com.google.cloud.dataproc.v1.Cluster.Builder, - com.google.cloud.dataproc.v1.ClusterOrBuilder>( - getCluster(), getParentForChildren(), isClean()); + clusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.Cluster, com.google.cloud.dataproc.v1.Cluster.Builder, com.google.cloud.dataproc.v1.ClusterOrBuilder>( + getCluster(), + getParentForChildren(), + isClean()); cluster_ = null; } return clusterBuilder_; @@ -1178,14 +1049,13 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
-     * Optional. A unique ID used to identify the request. If the server receives two
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two
      * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-     * is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1193,13 +1063,13 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() {
      * 
* * 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; @@ -1208,14 +1078,13 @@ public java.lang.String getRequestId() { } } /** - * - * *
-     * Optional. A unique ID used to identify the request. If the server receives two
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two
      * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-     * is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1223,14 +1092,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 { @@ -1238,14 +1108,13 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
-     * Optional. A unique ID used to identify the request. If the server receives two
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two
      * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-     * is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1253,28 +1122,27 @@ 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. A unique ID used to identify the request. If the server receives two
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two
      * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-     * is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1282,24 +1150,22 @@ 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. A unique ID used to identify the request. If the server receives two
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two
      * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-     * is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1307,16 +1173,16 @@ 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; @@ -1324,108 +1190,80 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { private int actionOnFailedPrimaryWorkers_ = 0; /** - * - * *
      * Optional. Failure action when primary worker creation fails.
      * 
* - * - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for actionOnFailedPrimaryWorkers. */ - @java.lang.Override - public int getActionOnFailedPrimaryWorkersValue() { + @java.lang.Override public int getActionOnFailedPrimaryWorkersValue() { return actionOnFailedPrimaryWorkers_; } /** - * - * *
      * Optional. Failure action when primary worker creation fails.
      * 
* - * - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for actionOnFailedPrimaryWorkers to set. * @return This builder for chaining. */ public Builder setActionOnFailedPrimaryWorkersValue(int value) { - + actionOnFailedPrimaryWorkers_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Failure action when primary worker creation fails.
      * 
* - * - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The actionOnFailedPrimaryWorkers. */ @java.lang.Override public com.google.cloud.dataproc.v1.FailureAction getActionOnFailedPrimaryWorkers() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.FailureAction result = - com.google.cloud.dataproc.v1.FailureAction.valueOf(actionOnFailedPrimaryWorkers_); + com.google.cloud.dataproc.v1.FailureAction result = com.google.cloud.dataproc.v1.FailureAction.valueOf(actionOnFailedPrimaryWorkers_); return result == null ? com.google.cloud.dataproc.v1.FailureAction.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Failure action when primary worker creation fails.
      * 
* - * - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param value The actionOnFailedPrimaryWorkers to set. * @return This builder for chaining. */ - public Builder setActionOnFailedPrimaryWorkers( - com.google.cloud.dataproc.v1.FailureAction value) { + public Builder setActionOnFailedPrimaryWorkers(com.google.cloud.dataproc.v1.FailureAction value) { if (value == null) { throw new NullPointerException(); } - + actionOnFailedPrimaryWorkers_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. Failure action when primary worker creation fails.
      * 
* - * - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearActionOnFailedPrimaryWorkers() { - + actionOnFailedPrimaryWorkers_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1435,12 +1273,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.CreateClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CreateClusterRequest) private static final com.google.cloud.dataproc.v1.CreateClusterRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.CreateClusterRequest(); } @@ -1449,27 +1287,27 @@ public static com.google.cloud.dataproc.v1.CreateClusterRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1484,4 +1322,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.CreateClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java similarity index 71% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java index 0903a768bb8f..d0f8bcf25998 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java @@ -1,127 +1,89 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface CreateClusterRequestOrBuilder - extends +public interface CreateClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.CreateClusterRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ java.lang.String getRegion(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - com.google.protobuf.ByteString getRegionBytes(); + com.google.protobuf.ByteString + getRegionBytes(); /** - * - * *
    * Required. The cluster to create.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cluster field is set. */ boolean hasCluster(); /** - * - * *
    * Required. The cluster to create.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The cluster. */ com.google.cloud.dataproc.v1.Cluster getCluster(); /** - * - * *
    * Required. The cluster to create.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder(); /** - * - * *
-   * Optional. A unique ID used to identify the request. If the server receives two
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two
    * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-   * is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -129,19 +91,17 @@ public interface CreateClusterRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
-   * Optional. A unique ID used to identify the request. If the server receives two
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two
    * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-   * is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -149,36 +109,26 @@ public interface CreateClusterRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
    * Optional. Failure action when primary worker creation fails.
    * 
* - * - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for actionOnFailedPrimaryWorkers. */ int getActionOnFailedPrimaryWorkersValue(); /** - * - * *
    * Optional. Failure action when primary worker creation fails.
    * 
* - * - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The actionOnFailedPrimaryWorkers. */ com.google.cloud.dataproc.v1.FailureAction getActionOnFailedPrimaryWorkers(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequest.java new file mode 100644 index 000000000000..d90fa65bb2cb --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequest.java @@ -0,0 +1,1225 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/node_groups.proto + +package com.google.cloud.dataproc.v1; + +/** + *
+ * A request to create a node group.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.CreateNodeGroupRequest} + */ +public final class CreateNodeGroupRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.CreateNodeGroupRequest) + CreateNodeGroupRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateNodeGroupRequest.newBuilder() to construct. + private CreateNodeGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateNodeGroupRequest() { + parent_ = ""; + nodeGroupId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateNodeGroupRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.CreateNodeGroupRequest.class, com.google.cloud.dataproc.v1.CreateNodeGroupRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Required. The parent resource where this node group will be created.
+   * Format: `projects/{project}/regions/{region}/clusters/{cluster}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. The parent resource where this node group will be created.
+   * Format: `projects/{project}/regions/{region}/clusters/{cluster}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_GROUP_FIELD_NUMBER = 2; + private com.google.cloud.dataproc.v1.NodeGroup nodeGroup_; + /** + *
+   * Required. The node group to create.
+   * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the nodeGroup field is set. + */ + @java.lang.Override + public boolean hasNodeGroup() { + return nodeGroup_ != null; + } + /** + *
+   * Required. The node group to create.
+   * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The nodeGroup. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroup getNodeGroup() { + return nodeGroup_ == null ? com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance() : nodeGroup_; + } + /** + *
+   * Required. The node group to create.
+   * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder() { + return getNodeGroup(); + } + + public static final int NODE_GROUP_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodeGroupId_; + /** + *
+   * Optional. An optional node group ID. Generated if not specified.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). Cannot begin or end with underscore
+   * or hyphen. Must consist of from 3 to 33 characters.
+   * 
+ * + * string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The nodeGroupId. + */ + @java.lang.Override + public java.lang.String getNodeGroupId() { + java.lang.Object ref = nodeGroupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeGroupId_ = s; + return s; + } + } + /** + *
+   * Optional. An optional node group ID. Generated if not specified.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). Cannot begin or end with underscore
+   * or hyphen. Must consist of from 3 to 33 characters.
+   * 
+ * + * string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for nodeGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNodeGroupIdBytes() { + java.lang.Object ref = nodeGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object requestId_; + /** + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two
+   * [CreateNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests)
+   * with the same ID, the second request is ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two
+   * [CreateNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests)
+   * with the same ID, the second request is ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + @java.lang.Override + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (nodeGroup_ != null) { + output.writeMessage(2, getNodeGroup()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroupId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodeGroupId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (nodeGroup_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getNodeGroup()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroupId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodeGroupId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataproc.v1.CreateNodeGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.CreateNodeGroupRequest other = (com.google.cloud.dataproc.v1.CreateNodeGroupRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (hasNodeGroup() != other.hasNodeGroup()) return false; + if (hasNodeGroup()) { + if (!getNodeGroup() + .equals(other.getNodeGroup())) return false; + } + if (!getNodeGroupId() + .equals(other.getNodeGroupId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasNodeGroup()) { + hash = (37 * hash) + NODE_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getNodeGroup().hashCode(); + } + hash = (37 * hash) + NODE_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeGroupId().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest 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.dataproc.v1.CreateNodeGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.dataproc.v1.CreateNodeGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A request to create a node group.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.CreateNodeGroupRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.CreateNodeGroupRequest) + com.google.cloud.dataproc.v1.CreateNodeGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.CreateNodeGroupRequest.class, com.google.cloud.dataproc.v1.CreateNodeGroupRequest.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.CreateNodeGroupRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (nodeGroupBuilder_ == null) { + nodeGroup_ = null; + } else { + nodeGroup_ = null; + nodeGroupBuilder_ = null; + } + nodeGroupId_ = ""; + + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.CreateNodeGroupRequest getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.CreateNodeGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.CreateNodeGroupRequest build() { + com.google.cloud.dataproc.v1.CreateNodeGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.CreateNodeGroupRequest buildPartial() { + com.google.cloud.dataproc.v1.CreateNodeGroupRequest result = new com.google.cloud.dataproc.v1.CreateNodeGroupRequest(this); + result.parent_ = parent_; + if (nodeGroupBuilder_ == null) { + result.nodeGroup_ = nodeGroup_; + } else { + result.nodeGroup_ = nodeGroupBuilder_.build(); + } + result.nodeGroupId_ = nodeGroupId_; + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataproc.v1.CreateNodeGroupRequest) { + return mergeFrom((com.google.cloud.dataproc.v1.CreateNodeGroupRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateNodeGroupRequest other) { + if (other == com.google.cloud.dataproc.v1.CreateNodeGroupRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasNodeGroup()) { + mergeNodeGroup(other.getNodeGroup()); + } + if (!other.getNodeGroupId().isEmpty()) { + nodeGroupId_ = other.nodeGroupId_; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getNodeGroupFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + nodeGroupId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The parent resource where this node group will be created.
+     * Format: `projects/{project}/regions/{region}/clusters/{cluster}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The parent resource where this node group will be created.
+     * Format: `projects/{project}/regions/{region}/clusters/{cluster}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The parent resource where this node group will be created.
+     * Format: `projects/{project}/regions/{region}/clusters/{cluster}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The parent resource where this node group will be created.
+     * Format: `projects/{project}/regions/{region}/clusters/{cluster}`
+     * 
+ * + * 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 where this node group will be created.
+     * Format: `projects/{project}/regions/{region}/clusters/{cluster}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.dataproc.v1.NodeGroup nodeGroup_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.NodeGroup, com.google.cloud.dataproc.v1.NodeGroup.Builder, com.google.cloud.dataproc.v1.NodeGroupOrBuilder> nodeGroupBuilder_; + /** + *
+     * Required. The node group to create.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the nodeGroup field is set. + */ + public boolean hasNodeGroup() { + return nodeGroupBuilder_ != null || nodeGroup_ != null; + } + /** + *
+     * Required. The node group to create.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The nodeGroup. + */ + public com.google.cloud.dataproc.v1.NodeGroup getNodeGroup() { + if (nodeGroupBuilder_ == null) { + return nodeGroup_ == null ? com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance() : nodeGroup_; + } else { + return nodeGroupBuilder_.getMessage(); + } + } + /** + *
+     * Required. The node group to create.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setNodeGroup(com.google.cloud.dataproc.v1.NodeGroup value) { + if (nodeGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeGroup_ = value; + onChanged(); + } else { + nodeGroupBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. The node group to create.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setNodeGroup( + com.google.cloud.dataproc.v1.NodeGroup.Builder builderForValue) { + if (nodeGroupBuilder_ == null) { + nodeGroup_ = builderForValue.build(); + onChanged(); + } else { + nodeGroupBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. The node group to create.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeNodeGroup(com.google.cloud.dataproc.v1.NodeGroup value) { + if (nodeGroupBuilder_ == null) { + if (nodeGroup_ != null) { + nodeGroup_ = + com.google.cloud.dataproc.v1.NodeGroup.newBuilder(nodeGroup_).mergeFrom(value).buildPartial(); + } else { + nodeGroup_ = value; + } + onChanged(); + } else { + nodeGroupBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. The node group to create.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearNodeGroup() { + if (nodeGroupBuilder_ == null) { + nodeGroup_ = null; + onChanged(); + } else { + nodeGroup_ = null; + nodeGroupBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. The node group to create.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.dataproc.v1.NodeGroup.Builder getNodeGroupBuilder() { + + onChanged(); + return getNodeGroupFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The node group to create.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder() { + if (nodeGroupBuilder_ != null) { + return nodeGroupBuilder_.getMessageOrBuilder(); + } else { + return nodeGroup_ == null ? + com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance() : nodeGroup_; + } + } + /** + *
+     * Required. The node group to create.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.NodeGroup, com.google.cloud.dataproc.v1.NodeGroup.Builder, com.google.cloud.dataproc.v1.NodeGroupOrBuilder> + getNodeGroupFieldBuilder() { + if (nodeGroupBuilder_ == null) { + nodeGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.NodeGroup, com.google.cloud.dataproc.v1.NodeGroup.Builder, com.google.cloud.dataproc.v1.NodeGroupOrBuilder>( + getNodeGroup(), + getParentForChildren(), + isClean()); + nodeGroup_ = null; + } + return nodeGroupBuilder_; + } + + private java.lang.Object nodeGroupId_ = ""; + /** + *
+     * Optional. An optional node group ID. Generated if not specified.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). Cannot begin or end with underscore
+     * or hyphen. Must consist of from 3 to 33 characters.
+     * 
+ * + * string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The nodeGroupId. + */ + public java.lang.String getNodeGroupId() { + java.lang.Object ref = nodeGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. An optional node group ID. Generated if not specified.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). Cannot begin or end with underscore
+     * or hyphen. Must consist of from 3 to 33 characters.
+     * 
+ * + * string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for nodeGroupId. + */ + public com.google.protobuf.ByteString + getNodeGroupIdBytes() { + java.lang.Object ref = nodeGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. An optional node group ID. Generated if not specified.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). Cannot begin or end with underscore
+     * or hyphen. Must consist of from 3 to 33 characters.
+     * 
+ * + * string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The nodeGroupId to set. + * @return This builder for chaining. + */ + public Builder setNodeGroupId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeGroupId_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional. An optional node group ID. Generated if not specified.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). Cannot begin or end with underscore
+     * or hyphen. Must consist of from 3 to 33 characters.
+     * 
+ * + * string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearNodeGroupId() { + + nodeGroupId_ = getDefaultInstance().getNodeGroupId(); + onChanged(); + return this; + } + /** + *
+     * Optional. An optional node group ID. Generated if not specified.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). Cannot begin or end with underscore
+     * or hyphen. Must consist of from 3 to 33 characters.
+     * 
+ * + * string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for nodeGroupId to set. + * @return This builder for chaining. + */ + public Builder setNodeGroupIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeGroupId_ = value; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two
+     * [CreateNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests)
+     * with the same ID, the second request is ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 3 [(.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; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two
+     * [CreateNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests)
+     * with the same ID, the second request is ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two
+     * [CreateNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests)
+     * with the same ID, the second request is ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two
+     * [CreateNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests)
+     * with the same ID, the second request is ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two
+     * [CreateNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests)
+     * with the same ID, the second request is ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.CreateNodeGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CreateNodeGroupRequest) + private static final com.google.cloud.dataproc.v1.CreateNodeGroupRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.CreateNodeGroupRequest(); + } + + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNodeGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.CreateNodeGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequestOrBuilder.java new file mode 100644 index 000000000000..2b066d010fa3 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequestOrBuilder.java @@ -0,0 +1,122 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/node_groups.proto + +package com.google.cloud.dataproc.v1; + +public interface CreateNodeGroupRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.CreateNodeGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent resource where this node group will be created.
+   * Format: `projects/{project}/regions/{region}/clusters/{cluster}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent resource where this node group will be created.
+   * Format: `projects/{project}/regions/{region}/clusters/{cluster}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The node group to create.
+   * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the nodeGroup field is set. + */ + boolean hasNodeGroup(); + /** + *
+   * Required. The node group to create.
+   * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The nodeGroup. + */ + com.google.cloud.dataproc.v1.NodeGroup getNodeGroup(); + /** + *
+   * Required. The node group to create.
+   * 
+ * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder(); + + /** + *
+   * Optional. An optional node group ID. Generated if not specified.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). Cannot begin or end with underscore
+   * or hyphen. Must consist of from 3 to 33 characters.
+   * 
+ * + * string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The nodeGroupId. + */ + java.lang.String getNodeGroupId(); + /** + *
+   * Optional. An optional node group ID. Generated if not specified.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). Cannot begin or end with underscore
+   * or hyphen. Must consist of from 3 to 33 characters.
+   * 
+ * + * string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for nodeGroupId. + */ + com.google.protobuf.ByteString + getNodeGroupIdBytes(); + + /** + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two
+   * [CreateNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests)
+   * with the same ID, the second request is ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two
+   * [CreateNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests)
+   * with the same ID, the second request is ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString + getRequestIdBytes(); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java similarity index 64% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java index 54383a352114..78fa47b9f9aa 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java @@ -1,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to create a workflow template.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.CreateWorkflowTemplateRequest} */ -public final class CreateWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateWorkflowTemplateRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) CreateWorkflowTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateWorkflowTemplateRequest.newBuilder() to construct. private CreateWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateWorkflowTemplateRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateWorkflowTemplateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -83,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `projects/{project_id}/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 @@ -95,15 +71,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -115,18 +90,17 @@ public java.lang.String getParent() {
    *   `projects/{project_id}/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 { @@ -137,16 +111,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int TEMPLATE_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.WorkflowTemplate template_; /** - * - * *
    * Required. The Dataproc workflow template to create.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the template field is set. */ @java.lang.Override @@ -154,34 +123,23 @@ public boolean hasTemplate() { return template_ != null; } /** - * - * *
    * Required. The Dataproc workflow template to create.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The template. */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate() { - return template_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() - : template_; + return template_ == null ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() : template_; } /** - * - * *
    * Required. The Dataproc workflow template to create.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder() { @@ -189,7 +147,6 @@ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuild } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -221,7 +179,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (template_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTemplate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTemplate()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -231,18 +190,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.dataproc.v1.CreateWorkflowTemplateRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest other = - (com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) obj; + com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest other = (com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { - if (!getTemplate().equals(other.getTemplate())) return false; + if (!getTemplate() + .equals(other.getTemplate())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -267,136 +227,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest 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.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to create a workflow template.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.CreateWorkflowTemplateRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +365,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; } @java.lang.Override @@ -433,8 +386,7 @@ public com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest result = - new com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest(this); + com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest result = new com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest(this); result.parent_ = parent_; if (templateBuilder_ == null) { result.template_ = template_; @@ -449,39 +401,38 @@ public com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest)other); } else { super.mergeFrom(other); return this; @@ -489,8 +440,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest other) { - if (other == com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -524,25 +474,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getTemplateFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getTemplateFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,8 +504,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -568,16 +515,14 @@ public Builder mergeFrom(
      *   `projects/{project_id}/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; @@ -586,8 +531,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -599,17 +542,16 @@ public java.lang.String getParent() {
      *   `projects/{project_id}/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 { @@ -617,8 +559,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -630,25 +570,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      *   `projects/{project_id}/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 resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -660,21 +596,16 @@ public Builder setParent(java.lang.String value) {
      *   `projects/{project_id}/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 resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -686,19 +617,17 @@ public Builder clearParent() {
      *   `projects/{project_id}/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; @@ -706,58 +635,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.WorkflowTemplate template_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> - templateBuilder_; + com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> templateBuilder_; /** - * - * *
      * Required. The Dataproc workflow template to create.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the template field is set. */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** - * - * *
      * Required. The Dataproc workflow template to create.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The template. */ public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate() { if (templateBuilder_ == null) { - return template_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() - : template_; + return template_ == null ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** - * - * *
      * Required. The Dataproc workflow template to create.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) { if (templateBuilder_ == null) { @@ -773,15 +683,11 @@ public Builder setTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) return this; } /** - * - * *
      * Required. The Dataproc workflow template to create.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTemplate( com.google.cloud.dataproc.v1.WorkflowTemplate.Builder builderForValue) { @@ -795,23 +701,17 @@ public Builder setTemplate( return this; } /** - * - * *
      * Required. The Dataproc workflow template to create.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = - com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder(template_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); } else { template_ = value; } @@ -823,15 +723,11 @@ public Builder mergeTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value return this; } /** - * - * *
      * Required. The Dataproc workflow template to create.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTemplate() { if (templateBuilder_ == null) { @@ -845,71 +741,55 @@ public Builder clearTemplate() { return this; } /** - * - * *
      * Required. The Dataproc workflow template to create.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder getTemplateBuilder() { - + onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Dataproc workflow template to create.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { - return template_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() - : template_; + return template_ == null ? + com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() : template_; } } /** - * - * *
      * Required. The Dataproc workflow template to create.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> + com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { - templateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( - getTemplate(), getParentForChildren(), isClean()); + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); template_ = null; } return templateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -919,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) private static final com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest(); } @@ -933,27 +813,27 @@ public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkflowTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -968,4 +848,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java similarity index 57% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java index 0c4883bb13e3..7ab711136762 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface CreateWorkflowTemplateRequestOrBuilder - extends +public interface CreateWorkflowTemplateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -37,16 +19,11 @@ public interface CreateWorkflowTemplateRequestOrBuilder
    *   `projects/{project_id}/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 resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -58,52 +35,36 @@ public interface CreateWorkflowTemplateRequestOrBuilder
    *   `projects/{project_id}/locations/{location}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The Dataproc workflow template to create.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the template field is set. */ boolean hasTemplate(); /** - * - * *
    * Required. The Dataproc workflow template to create.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The template. */ com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate(); /** - * - * *
    * Required. The Dataproc workflow template to create.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java similarity index 74% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java index 5215d1c9c867..3e7cc99163be 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java @@ -1,75 +1,54 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Dataproc metric config.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.DataprocMetricConfig} */ -public final class DataprocMetricConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DataprocMetricConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DataprocMetricConfig) DataprocMetricConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DataprocMetricConfig.newBuilder() to construct. private DataprocMetricConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DataprocMetricConfig() { metrics_ = 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 DataprocMetricConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DataprocMetricConfig.class, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder.class); + com.google.cloud.dataproc.v1.DataprocMetricConfig.class, com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder.class); } /** - * - * *
    * A source for the collection of Dataproc OSS metrics (see [available OSS
    * metrics]
@@ -78,10 +57,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource}
    */
-  public enum MetricSource implements com.google.protobuf.ProtocolMessageEnum {
+  public enum MetricSource
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Required unspecified metric source.
      * 
@@ -90,8 +68,6 @@ public enum MetricSource implements com.google.protobuf.ProtocolMessageEnum { */ METRIC_SOURCE_UNSPECIFIED(0), /** - * - * *
      * Default monitoring agent metrics. If this source is enabled,
      * Dataproc enables the monitoring agent in Compute Engine,
@@ -103,8 +79,6 @@ public enum MetricSource implements com.google.protobuf.ProtocolMessageEnum {
      */
     MONITORING_AGENT_DEFAULTS(1),
     /**
-     *
-     *
      * 
      * HDFS metric source.
      * 
@@ -113,8 +87,6 @@ public enum MetricSource implements com.google.protobuf.ProtocolMessageEnum { */ HDFS(2), /** - * - * *
      * Spark metric source.
      * 
@@ -123,8 +95,6 @@ public enum MetricSource implements com.google.protobuf.ProtocolMessageEnum { */ SPARK(3), /** - * - * *
      * YARN metric source.
      * 
@@ -133,8 +103,6 @@ public enum MetricSource implements com.google.protobuf.ProtocolMessageEnum { */ YARN(4), /** - * - * *
      * Spark History Server metric source.
      * 
@@ -143,8 +111,6 @@ public enum MetricSource implements com.google.protobuf.ProtocolMessageEnum { */ SPARK_HISTORY_SERVER(5), /** - * - * *
      * Hiveserver2 metric source.
      * 
@@ -156,8 +122,6 @@ public enum MetricSource implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Required unspecified metric source.
      * 
@@ -166,8 +130,6 @@ public enum MetricSource implements com.google.protobuf.ProtocolMessageEnum { */ public static final int METRIC_SOURCE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Default monitoring agent metrics. If this source is enabled,
      * Dataproc enables the monitoring agent in Compute Engine,
@@ -179,8 +141,6 @@ public enum MetricSource implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MONITORING_AGENT_DEFAULTS_VALUE = 1;
     /**
-     *
-     *
      * 
      * HDFS metric source.
      * 
@@ -189,8 +149,6 @@ public enum MetricSource implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HDFS_VALUE = 2; /** - * - * *
      * Spark metric source.
      * 
@@ -199,8 +157,6 @@ public enum MetricSource implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPARK_VALUE = 3; /** - * - * *
      * YARN metric source.
      * 
@@ -209,8 +165,6 @@ public enum MetricSource implements com.google.protobuf.ProtocolMessageEnum { */ public static final int YARN_VALUE = 4; /** - * - * *
      * Spark History Server metric source.
      * 
@@ -219,8 +173,6 @@ public enum MetricSource implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPARK_HISTORY_SERVER_VALUE = 5; /** - * - * *
      * Hiveserver2 metric source.
      * 
@@ -229,6 +181,7 @@ public enum MetricSource implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HIVESERVER2_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -253,59 +206,53 @@ public static MetricSource valueOf(int value) { */ public static MetricSource forNumber(int value) { switch (value) { - case 0: - return METRIC_SOURCE_UNSPECIFIED; - case 1: - return MONITORING_AGENT_DEFAULTS; - case 2: - return HDFS; - case 3: - return SPARK; - case 4: - return YARN; - case 5: - return SPARK_HISTORY_SERVER; - case 6: - return HIVESERVER2; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; + case 0: return METRIC_SOURCE_UNSPECIFIED; + case 1: return MONITORING_AGENT_DEFAULTS; + case 2: return HDFS; + case 3: return SPARK; + case 4: return YARN; + case 5: return SPARK_HISTORY_SERVER; + case 6: return HIVESERVER2; + default: return null; + } } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MetricSource findValueByNumber(int number) { - return MetricSource.forNumber(number); - } - }; + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MetricSource> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MetricSource findValueByNumber(int number) { + return MetricSource.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() { - return com.google.cloud.dataproc.v1.DataprocMetricConfig.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.DataprocMetricConfig.getDescriptor().getEnumTypes().get(0); } private static final MetricSource[] VALUES = values(); - public static MetricSource valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static MetricSource 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; @@ -322,14 +269,11 @@ private MetricSource(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource) } - public interface MetricOrBuilder - extends + public interface MetricOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DataprocMetricConfig.Metric) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Default metrics are collected unless `metricOverrides` are
      * specified for the metric source (see [Available OSS metrics]
@@ -337,16 +281,11 @@ public interface MetricOrBuilder
      * for more information).
      * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for metricSource. */ int getMetricSourceValue(); /** - * - * *
      * Required. Default metrics are collected unless `metricOverrides` are
      * specified for the metric source (see [Available OSS metrics]
@@ -354,17 +293,12 @@ public interface MetricOrBuilder
      * for more information).
      * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The metricSource. */ com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource getMetricSource(); /** - * - * *
      * Optional. Specify one or more [available OSS metrics]
      * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -393,13 +327,11 @@ public interface MetricOrBuilder
      * 
* * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the metricOverrides. */ - java.util.List getMetricOverridesList(); + java.util.List + getMetricOverridesList(); /** - * - * *
      * Optional. Specify one or more [available OSS metrics]
      * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -428,13 +360,10 @@ public interface MetricOrBuilder
      * 
* * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of metricOverrides. */ int getMetricOverridesCount(); /** - * - * *
      * Optional. Specify one or more [available OSS metrics]
      * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -463,14 +392,11 @@ public interface MetricOrBuilder
      * 
* * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The metricOverrides at the given index. */ java.lang.String getMetricOverrides(int index); /** - * - * *
      * Optional. Specify one or more [available OSS metrics]
      * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -499,31 +425,28 @@ public interface MetricOrBuilder
      * 
* * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the metricOverrides at the given index. */ - com.google.protobuf.ByteString getMetricOverridesBytes(int index); + com.google.protobuf.ByteString + getMetricOverridesBytes(int index); } /** - * - * *
    * A Dataproc OSS metric.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.DataprocMetricConfig.Metric} */ - public static final class Metric extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Metric extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DataprocMetricConfig.Metric) MetricOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Metric.newBuilder() to construct. private Metric(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Metric() { metricSource_ = 0; metricOverrides_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -531,35 +454,32 @@ private Metric() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Metric(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.class, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder.class); + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.class, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder.class); } public static final int METRIC_SOURCE_FIELD_NUMBER = 1; private int metricSource_; /** - * - * *
      * Required. Default metrics are collected unless `metricOverrides` are
      * specified for the metric source (see [Available OSS metrics]
@@ -567,19 +487,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * for more information).
      * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for metricSource. */ - @java.lang.Override - public int getMetricSourceValue() { + @java.lang.Override public int getMetricSourceValue() { return metricSource_; } /** - * - * *
      * Required. Default metrics are collected unless `metricOverrides` are
      * specified for the metric source (see [Available OSS metrics]
@@ -587,27 +501,18 @@ public int getMetricSourceValue() {
      * for more information).
      * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The metricSource. */ - @java.lang.Override - public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource getMetricSource() { + @java.lang.Override public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource getMetricSource() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource result = - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.valueOf(metricSource_); - return result == null - ? com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource result = com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.valueOf(metricSource_); + return result == null ? com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.UNRECOGNIZED : result; } public static final int METRIC_OVERRIDES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList metricOverrides_; /** - * - * *
      * Optional. Specify one or more [available OSS metrics]
      * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -636,15 +541,13 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource getMetricS
      * 
* * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the metricOverrides. */ - public com.google.protobuf.ProtocolStringList getMetricOverridesList() { + public com.google.protobuf.ProtocolStringList + getMetricOverridesList() { return metricOverrides_; } /** - * - * *
      * Optional. Specify one or more [available OSS metrics]
      * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -673,15 +576,12 @@ public com.google.protobuf.ProtocolStringList getMetricOverridesList() {
      * 
* * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of metricOverrides. */ public int getMetricOverridesCount() { return metricOverrides_.size(); } /** - * - * *
      * Optional. Specify one or more [available OSS metrics]
      * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -710,7 +610,6 @@ public int getMetricOverridesCount() {
      * 
* * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The metricOverrides at the given index. */ @@ -718,8 +617,6 @@ public java.lang.String getMetricOverrides(int index) { return metricOverrides_.get(index); } /** - * - * *
      * Optional. Specify one or more [available OSS metrics]
      * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -748,16 +645,15 @@ public java.lang.String getMetricOverrides(int index) {
      * 
* * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the metricOverrides at the given index. */ - public com.google.protobuf.ByteString getMetricOverridesBytes(int index) { + public com.google.protobuf.ByteString + getMetricOverridesBytes(int index) { return metricOverrides_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -769,11 +665,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (metricSource_ - != com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource - .METRIC_SOURCE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (metricSource_ != com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.METRIC_SOURCE_UNSPECIFIED.getNumber()) { output.writeEnum(1, metricSource_); } for (int i = 0; i < metricOverrides_.size(); i++) { @@ -788,11 +682,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (metricSource_ - != com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource - .METRIC_SOURCE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, metricSource_); + if (metricSource_ != com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.METRIC_SOURCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, metricSource_); } { int dataSize = 0; @@ -810,16 +702,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric other = - (com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric) obj; + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric other = (com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric) obj; if (metricSource_ != other.metricSource_) return false; - if (!getMetricOverridesList().equals(other.getMetricOverridesList())) return false; + if (!getMetricOverridesList() + .equals(other.getMetricOverridesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -843,94 +735,87 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric 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.dataproc.v1.DataprocMetricConfig.Metric parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -940,41 +825,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A Dataproc OSS metric.
      * 
* * Protobuf type {@code google.cloud.dataproc.v1.DataprocMetricConfig.Metric} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DataprocMetricConfig.Metric) com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.class, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder.class); + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.class, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder.class); } // Construct using com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -986,9 +869,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; } @java.lang.Override @@ -1007,8 +890,7 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric build() { @java.lang.Override public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric buildPartial() { - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric result = - new com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric(this); + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric result = new com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric(this); int from_bitField0_ = bitField0_; result.metricSource_ = metricSource_; if (((bitField0_ & 0x00000001) != 0)) { @@ -1024,41 +906,38 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.dataproc.v1.DataprocMetricConfig.Metric) { - return mergeFrom((com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric) other); + return mergeFrom((com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric)other); } else { super.mergeFrom(other); return this; @@ -1066,8 +945,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric other) { - if (other == com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance()) return this; if (other.metricSource_ != 0) { setMetricSourceValue(other.getMetricSourceValue()); } @@ -1107,26 +985,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - metricSource_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureMetricOverridesIsMutable(); - metricOverrides_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + metricSource_ = input.readEnum(); + + break; + } // case 8 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMetricOverridesIsMutable(); + metricOverrides_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1136,13 +1011,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int metricSource_ = 0; /** - * - * *
        * Required. Default metrics are collected unless `metricOverrides` are
        * specified for the metric source (see [Available OSS metrics]
@@ -1150,19 +1022,13 @@ public Builder mergeFrom(
        * for more information).
        * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for metricSource. */ - @java.lang.Override - public int getMetricSourceValue() { + @java.lang.Override public int getMetricSourceValue() { return metricSource_; } /** - * - * *
        * Required. Default metrics are collected unless `metricOverrides` are
        * specified for the metric source (see [Available OSS metrics]
@@ -1170,22 +1036,17 @@ public int getMetricSourceValue() {
        * for more information).
        * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for metricSource to set. * @return This builder for chaining. */ public Builder setMetricSourceValue(int value) { - + metricSource_ = value; onChanged(); return this; } /** - * - * *
        * Required. Default metrics are collected unless `metricOverrides` are
        * specified for the metric source (see [Available OSS metrics]
@@ -1193,24 +1054,16 @@ public Builder setMetricSourceValue(int value) {
        * for more information).
        * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The metricSource. */ @java.lang.Override public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource getMetricSource() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource result = - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.valueOf(metricSource_); - return result == null - ? com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource result = com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.valueOf(metricSource_); + return result == null ? com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.UNRECOGNIZED : result; } /** - * - * *
        * Required. Default metrics are collected unless `metricOverrides` are
        * specified for the metric source (see [Available OSS metrics]
@@ -1218,26 +1071,20 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource getMetricS
        * for more information).
        * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The metricSource to set. * @return This builder for chaining. */ - public Builder setMetricSource( - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource value) { + public Builder setMetricSource(com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource value) { if (value == null) { throw new NullPointerException(); } - + metricSource_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Required. Default metrics are collected unless `metricOverrides` are
        * specified for the metric source (see [Available OSS metrics]
@@ -1245,31 +1092,24 @@ public Builder setMetricSource(
        * for more information).
        * 
* - * - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearMetricSource() { - + metricSource_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList metricOverrides_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList metricOverrides_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMetricOverridesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { metricOverrides_ = new com.google.protobuf.LazyStringArrayList(metricOverrides_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * Optional. Specify one or more [available OSS metrics]
        * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -1297,17 +1137,14 @@ private void ensureMetricOverridesIsMutable() {
        *   all default YARN metrics will be collected.
        * 
* - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the metricOverrides. */ - public com.google.protobuf.ProtocolStringList getMetricOverridesList() { + public com.google.protobuf.ProtocolStringList + getMetricOverridesList() { return metricOverrides_.getUnmodifiableView(); } /** - * - * *
        * Optional. Specify one or more [available OSS metrics]
        * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -1335,17 +1172,13 @@ public com.google.protobuf.ProtocolStringList getMetricOverridesList() {
        *   all default YARN metrics will be collected.
        * 
* - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of metricOverrides. */ public int getMetricOverridesCount() { return metricOverrides_.size(); } /** - * - * *
        * Optional. Specify one or more [available OSS metrics]
        * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -1373,9 +1206,7 @@ public int getMetricOverridesCount() {
        *   all default YARN metrics will be collected.
        * 
* - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The metricOverrides at the given index. */ @@ -1383,8 +1214,6 @@ public java.lang.String getMetricOverrides(int index) { return metricOverrides_.get(index); } /** - * - * *
        * Optional. Specify one or more [available OSS metrics]
        * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -1412,18 +1241,15 @@ public java.lang.String getMetricOverrides(int index) {
        *   all default YARN metrics will be collected.
        * 
* - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the metricOverrides at the given index. */ - public com.google.protobuf.ByteString getMetricOverridesBytes(int index) { + public com.google.protobuf.ByteString + getMetricOverridesBytes(int index) { return metricOverrides_.getByteString(index); } /** - * - * *
        * Optional. Specify one or more [available OSS metrics]
        * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -1451,25 +1277,22 @@ public com.google.protobuf.ByteString getMetricOverridesBytes(int index) {
        *   all default YARN metrics will be collected.
        * 
* - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The metricOverrides to set. * @return This builder for chaining. */ - public Builder setMetricOverrides(int index, java.lang.String value) { + public Builder setMetricOverrides( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMetricOverridesIsMutable(); + throw new NullPointerException(); + } + ensureMetricOverridesIsMutable(); metricOverrides_.set(index, value); onChanged(); return this; } /** - * - * *
        * Optional. Specify one or more [available OSS metrics]
        * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -1497,24 +1320,21 @@ public Builder setMetricOverrides(int index, java.lang.String value) {
        *   all default YARN metrics will be collected.
        * 
* - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The metricOverrides to add. * @return This builder for chaining. */ - public Builder addMetricOverrides(java.lang.String value) { + public Builder addMetricOverrides( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMetricOverridesIsMutable(); + throw new NullPointerException(); + } + ensureMetricOverridesIsMutable(); metricOverrides_.add(value); onChanged(); return this; } /** - * - * *
        * Optional. Specify one or more [available OSS metrics]
        * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -1542,21 +1362,19 @@ public Builder addMetricOverrides(java.lang.String value) {
        *   all default YARN metrics will be collected.
        * 
* - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param values The metricOverrides to add. * @return This builder for chaining. */ - public Builder addAllMetricOverrides(java.lang.Iterable values) { + public Builder addAllMetricOverrides( + java.lang.Iterable values) { ensureMetricOverridesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricOverrides_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, metricOverrides_); onChanged(); return this; } /** - * - * *
        * Optional. Specify one or more [available OSS metrics]
        * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -1584,9 +1402,7 @@ public Builder addAllMetricOverrides(java.lang.Iterable values
        *   all default YARN metrics will be collected.
        * 
* - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearMetricOverrides() { @@ -1596,8 +1412,6 @@ public Builder clearMetricOverrides() { return this; } /** - * - * *
        * Optional. Specify one or more [available OSS metrics]
        * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -1625,23 +1439,21 @@ public Builder clearMetricOverrides() {
        *   all default YARN metrics will be collected.
        * 
* - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the metricOverrides to add. * @return This builder for chaining. */ - public Builder addMetricOverridesBytes(com.google.protobuf.ByteString value) { + public Builder addMetricOverridesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMetricOverridesIsMutable(); metricOverrides_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1654,12 +1466,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DataprocMetricConfig.Metric) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DataprocMetricConfig.Metric) private static final com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric(); } @@ -1668,28 +1480,27 @@ public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Metric parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1704,81 +1515,62 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int METRICS_FIELD_NUMBER = 1; private java.util.List metrics_; /** - * - * *
    * Required. Metrics sources to enable.
    * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getMetricsList() { return metrics_; } /** - * - * *
    * Required. Metrics sources to enable.
    * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getMetricsOrBuilderList() { return metrics_; } /** - * - * *
    * Required. Metrics sources to enable.
    * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getMetricsCount() { return metrics_.size(); } /** - * - * *
    * Required. Metrics sources to enable.
    * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getMetrics(int index) { return metrics_.get(index); } /** - * - * *
    * Required. Metrics sources to enable.
    * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder getMetricsOrBuilder( @@ -1787,7 +1579,6 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder getMetr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1799,7 +1590,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 < metrics_.size(); i++) { output.writeMessage(1, metrics_.get(i)); } @@ -1813,7 +1605,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < metrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, metrics_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, metrics_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1823,15 +1616,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.dataproc.v1.DataprocMetricConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DataprocMetricConfig other = - (com.google.cloud.dataproc.v1.DataprocMetricConfig) obj; + com.google.cloud.dataproc.v1.DataprocMetricConfig other = (com.google.cloud.dataproc.v1.DataprocMetricConfig) obj; - if (!getMetricsList().equals(other.getMetricsList())) return false; + if (!getMetricsList() + .equals(other.getMetricsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1853,135 +1646,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.DataprocMetricConfig 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.dataproc.v1.DataprocMetricConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.DataprocMetricConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Dataproc metric config.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.DataprocMetricConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DataprocMetricConfig) com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DataprocMetricConfig.class, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder.class); + com.google.cloud.dataproc.v1.DataprocMetricConfig.class, com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.DataprocMetricConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1996,9 +1783,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; } @java.lang.Override @@ -2017,8 +1804,7 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.DataprocMetricConfig buildPartial() { - com.google.cloud.dataproc.v1.DataprocMetricConfig result = - new com.google.cloud.dataproc.v1.DataprocMetricConfig(this); + com.google.cloud.dataproc.v1.DataprocMetricConfig result = new com.google.cloud.dataproc.v1.DataprocMetricConfig(this); int from_bitField0_ = bitField0_; if (metricsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2037,39 +1823,38 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.DataprocMetricConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.DataprocMetricConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.DataprocMetricConfig)other); } else { super.mergeFrom(other); return this; @@ -2077,8 +1862,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.DataprocMetricConfig other) { - if (other == com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance()) return this; if (metricsBuilder_ == null) { if (!other.metrics_.isEmpty()) { if (metrics_.isEmpty()) { @@ -2097,10 +1881,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.DataprocMetricConfig other metricsBuilder_ = null; metrics_ = other.metrics_; bitField0_ = (bitField0_ & ~0x00000001); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricsFieldBuilder() - : null; + metricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMetricsFieldBuilder() : null; } else { metricsBuilder_.addAllMessages(other.metrics_); } @@ -2132,27 +1915,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric m = - input.readMessage( - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.parser(), - extensionRegistry); - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(m); - } else { - metricsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric m = + input.readMessage( + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.parser(), + extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2162,40 +1943,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List metrics_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMetricsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - metrics_ = - new java.util.ArrayList( - metrics_); + metrics_ = new java.util.ArrayList(metrics_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder, - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder> - metricsBuilder_; + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder, com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder> metricsBuilder_; /** - * - * *
      * Required. Metrics sources to enable.
      * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getMetricsList() { + public java.util.List getMetricsList() { if (metricsBuilder_ == null) { return java.util.Collections.unmodifiableList(metrics_); } else { @@ -2203,15 +1972,11 @@ private void ensureMetricsIsMutable() { } } /** - * - * *
      * Required. Metrics sources to enable.
      * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getMetricsCount() { if (metricsBuilder_ == null) { @@ -2221,15 +1986,11 @@ public int getMetricsCount() { } } /** - * - * *
      * Required. Metrics sources to enable.
      * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getMetrics(int index) { if (metricsBuilder_ == null) { @@ -2239,15 +2000,11 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getMetrics(int i } } /** - * - * *
      * Required. Metrics sources to enable.
      * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMetrics( int index, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric value) { @@ -2264,19 +2021,14 @@ public Builder setMetrics( return this; } /** - * - * *
      * Required. Metrics sources to enable.
      * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMetrics( - int index, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder builderForValue) { + int index, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.set(index, builderForValue.build()); @@ -2287,15 +2039,11 @@ public Builder setMetrics( return this; } /** - * - * *
      * Required. Metrics sources to enable.
      * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addMetrics(com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric value) { if (metricsBuilder_ == null) { @@ -2311,15 +2059,11 @@ public Builder addMetrics(com.google.cloud.dataproc.v1.DataprocMetricConfig.Metr return this; } /** - * - * *
      * Required. Metrics sources to enable.
      * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addMetrics( int index, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric value) { @@ -2336,15 +2080,11 @@ public Builder addMetrics( return this; } /** - * - * *
      * Required. Metrics sources to enable.
      * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addMetrics( com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder builderForValue) { @@ -2358,19 +2098,14 @@ public Builder addMetrics( return this; } /** - * - * *
      * Required. Metrics sources to enable.
      * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addMetrics( - int index, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder builderForValue) { + int index, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.add(index, builderForValue.build()); @@ -2381,22 +2116,18 @@ public Builder addMetrics( return this; } /** - * - * *
      * Required. Metrics sources to enable.
      * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllMetrics( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, metrics_); onChanged(); } else { metricsBuilder_.addAllMessages(values); @@ -2404,15 +2135,11 @@ public Builder addAllMetrics( return this; } /** - * - * *
      * Required. Metrics sources to enable.
      * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearMetrics() { if (metricsBuilder_ == null) { @@ -2425,15 +2152,11 @@ public Builder clearMetrics() { return this; } /** - * - * *
      * Required. Metrics sources to enable.
      * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeMetrics(int index) { if (metricsBuilder_ == null) { @@ -2446,53 +2169,39 @@ public Builder removeMetrics(int index) { return this; } /** - * - * *
      * Required. Metrics sources to enable.
      * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder getMetricsBuilder( int index) { return getMetricsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Metrics sources to enable.
      * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder getMetricsOrBuilder( int index) { if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { + return metrics_.get(index); } else { return metricsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Metrics sources to enable.
      * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - ? extends com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder> - getMetricsOrBuilderList() { + public java.util.List + getMetricsOrBuilderList() { if (metricsBuilder_ != null) { return metricsBuilder_.getMessageOrBuilderList(); } else { @@ -2500,73 +2209,56 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder getMetr } } /** - * - * *
      * Required. Metrics sources to enable.
      * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder() - .addBuilder( - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance()); + return getMetricsFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance()); } /** - * - * *
      * Required. Metrics sources to enable.
      * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder addMetricsBuilder( int index) { - return getMetricsFieldBuilder() - .addBuilder( - index, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance()); + return getMetricsFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance()); } /** - * - * *
      * Required. Metrics sources to enable.
      * 
* - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getMetricsBuilderList() { + public java.util.List + getMetricsBuilderList() { return getMetricsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder, - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder> + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder, com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder> getMetricsFieldBuilder() { if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder, - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder>( - metrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder, com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder>( + metrics_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); metrics_ = null; } return metricsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2576,12 +2268,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DataprocMetricConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DataprocMetricConfig) private static final com.google.cloud.dataproc.v1.DataprocMetricConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DataprocMetricConfig(); } @@ -2590,27 +2282,27 @@ public static com.google.cloud.dataproc.v1.DataprocMetricConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataprocMetricConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataprocMetricConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2625,4 +2317,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.DataprocMetricConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java new file mode 100644 index 000000000000..949a80766920 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface DataprocMetricConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DataprocMetricConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getMetricsList(); + /** + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getMetrics(int index); + /** + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + int getMetricsCount(); + /** + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getMetricsOrBuilderList(); + /** + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder getMetricsOrBuilder( + int index); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java similarity index 67% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java index 57592d4fee01..1549afc1a75a 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.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/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to delete an autoscaling policy.
  * Autoscaling policies in use by one or more clusters will not be deleted.
@@ -28,52 +11,47 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest}
  */
-public final class DeleteAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteAutoscalingPolicyRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest)
     DeleteAutoscalingPolicyRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteAutoscalingPolicyRequest.newBuilder() to construct.
-  private DeleteAutoscalingPolicyRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private DeleteAutoscalingPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteAutoscalingPolicyRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteAutoscalingPolicyRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
-        .internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
-        .internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.class,
-            com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.Builder.class);
+            com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.class, com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -85,10 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
    * 
* - * - * 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 @@ -97,15 +72,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -117,18 +91,17 @@ public java.lang.String getName() {
    *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
    * 
* - * - * 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 { @@ -137,7 +110,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,7 +121,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_); } @@ -173,15 +146,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.dataproc.v1.DeleteAutoscalingPolicyRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest other = - (com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) obj; + com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest other = (com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -201,104 +174,96 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest 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.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to delete an autoscaling policy.
    * Autoscaling policies in use by one or more clusters will not be deleted.
@@ -306,32 +271,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest)
       com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
-          .internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
-          .internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.class,
-              com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.Builder.class);
+              com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.class, com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -341,9 +307,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
-          .internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor;
     }
 
     @java.lang.Override
@@ -362,8 +328,7 @@ public com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest buildPartial() {
-      com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest result =
-          new com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest(this);
+      com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest result = new com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -373,39 +338,38 @@ public com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest buildPartial(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) {
-        return mergeFrom((com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -413,8 +377,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest other) {
-      if (other == com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -445,19 +408,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -470,8 +431,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -483,16 +442,14 @@ public Builder mergeFrom(
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * - * 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; @@ -501,8 +458,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -514,17 +469,16 @@ public java.lang.String getName() {
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * - * 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 { @@ -532,8 +486,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -545,25 +497,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -575,21 +523,16 @@ public Builder setName(java.lang.String value) {
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -601,26 +544,24 @@ public Builder clearName() {
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * - * 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); } @@ -630,12 +571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) private static final com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest(); } @@ -644,27 +585,27 @@ public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAutoscalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAutoscalingPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -679,4 +620,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.java similarity index 61% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.java index 9d97b3f95e9f..6a1a1dd5af08 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.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/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; -public interface DeleteAutoscalingPolicyRequestOrBuilder - extends +public interface DeleteAutoscalingPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -37,16 +19,11 @@ public interface DeleteAutoscalingPolicyRequestOrBuilder
    *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -58,11 +35,9 @@ public interface DeleteAutoscalingPolicyRequestOrBuilder
    *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java similarity index 61% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java index 6a9d419b4d42..50f1c297049e 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java @@ -1,85 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to delete a batch workload.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.DeleteBatchRequest} */ -public final class DeleteBatchRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteBatchRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DeleteBatchRequest) DeleteBatchRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteBatchRequest.newBuilder() to construct. private DeleteBatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteBatchRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteBatchRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteBatchRequest.class, - com.google.cloud.dataproc.v1.DeleteBatchRequest.Builder.class); + com.google.cloud.dataproc.v1.DeleteBatchRequest.class, com.google.cloud.dataproc.v1.DeleteBatchRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the batch resource to delete.
    * 
* - * - * 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 @@ -88,31 +64,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the batch resource to delete.
    * 
* - * - * 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 { @@ -121,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,7 +106,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_); } @@ -157,15 +131,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.dataproc.v1.DeleteBatchRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DeleteBatchRequest other = - (com.google.cloud.dataproc.v1.DeleteBatchRequest) obj; + com.google.cloud.dataproc.v1.DeleteBatchRequest other = (com.google.cloud.dataproc.v1.DeleteBatchRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +158,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.DeleteBatchRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to delete a batch workload.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.DeleteBatchRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DeleteBatchRequest) com.google.cloud.dataproc.v1.DeleteBatchRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteBatchRequest.class, - com.google.cloud.dataproc.v1.DeleteBatchRequest.Builder.class); + com.google.cloud.dataproc.v1.DeleteBatchRequest.class, com.google.cloud.dataproc.v1.DeleteBatchRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.DeleteBatchRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; } @java.lang.Override @@ -344,8 +312,7 @@ public com.google.cloud.dataproc.v1.DeleteBatchRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.DeleteBatchRequest buildPartial() { - com.google.cloud.dataproc.v1.DeleteBatchRequest result = - new com.google.cloud.dataproc.v1.DeleteBatchRequest(this); + com.google.cloud.dataproc.v1.DeleteBatchRequest result = new com.google.cloud.dataproc.v1.DeleteBatchRequest(this); result.name_ = name_; onBuilt(); return result; @@ -355,39 +322,38 @@ public com.google.cloud.dataproc.v1.DeleteBatchRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.DeleteBatchRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.DeleteBatchRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.DeleteBatchRequest)other); } else { super.mergeFrom(other); return this; @@ -395,8 +361,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteBatchRequest other) { - if (other == com.google.cloud.dataproc.v1.DeleteBatchRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.DeleteBatchRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -427,19 +392,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -452,22 +415,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the batch resource to delete.
      * 
* - * - * 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; @@ -476,23 +435,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the batch resource to delete.
      * 
* - * - * 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 { @@ -500,74 +456,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the batch resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the batch resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the batch resource to delete.
      * 
* - * - * 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); } @@ -577,12 +520,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DeleteBatchRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteBatchRequest) private static final com.google.cloud.dataproc.v1.DeleteBatchRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DeleteBatchRequest(); } @@ -591,27 +534,27 @@ public static com.google.cloud.dataproc.v1.DeleteBatchRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBatchRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBatchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -626,4 +569,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.DeleteBatchRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java new file mode 100644 index 000000000000..a40d86c1607f --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +public interface DeleteBatchRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DeleteBatchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the batch resource to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the batch resource to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java similarity index 73% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java index 9508dd27dd75..755ba31c4074 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to delete a cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.DeleteClusterRequest} */ -public final class DeleteClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DeleteClusterRequest) DeleteClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteClusterRequest.newBuilder() to construct. private DeleteClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteClusterRequest() { projectId_ = ""; region_ = ""; @@ -47,42 +29,38 @@ private DeleteClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteClusterRequest.class, - com.google.cloud.dataproc.v1.DeleteClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.DeleteClusterRequest.class, com.google.cloud.dataproc.v1.DeleteClusterRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -91,30 +69,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -125,14 +103,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int REGION_FIELD_NUMBER = 3; private volatile java.lang.Object region_; /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ @java.lang.Override @@ -141,29 +116,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -174,14 +149,11 @@ public com.google.protobuf.ByteString getRegionBytes() { public static final int CLUSTER_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object clusterName_; /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ @java.lang.Override @@ -190,29 +162,29 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -223,15 +195,12 @@ public com.google.protobuf.ByteString getClusterNameBytes() { public static final int CLUSTER_UUID_FIELD_NUMBER = 4; private volatile java.lang.Object clusterUuid_; /** - * - * *
    * Optional. Specifying the `cluster_uuid` means the RPC should fail
    * (with error NOT_FOUND) if cluster with specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The clusterUuid. */ @java.lang.Override @@ -240,30 +209,30 @@ public java.lang.String getClusterUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; } } /** - * - * *
    * Optional. Specifying the `cluster_uuid` means the RPC should fail
    * (with error NOT_FOUND) if cluster with specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for clusterUuid. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { + public com.google.protobuf.ByteString + getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -274,15 +243,13 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 5; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -290,7 +257,6 @@ public com.google.protobuf.ByteString getClusterUuidBytes() {
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -299,22 +265,21 @@ 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. A unique ID used to identify the request. If the server
    * receives two
    * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -322,15 +287,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 5 [(.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 { @@ -339,7 +305,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -351,7 +316,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -399,19 +365,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.DeleteClusterRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DeleteClusterRequest other = - (com.google.cloud.dataproc.v1.DeleteClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (!getClusterUuid().equals(other.getClusterUuid())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + com.google.cloud.dataproc.v1.DeleteClusterRequest other = (com.google.cloud.dataproc.v1.DeleteClusterRequest) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getRegion() + .equals(other.getRegion())) return false; + if (!getClusterName() + .equals(other.getClusterName())) return false; + if (!getClusterUuid() + .equals(other.getClusterUuid())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -439,135 +409,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.DeleteClusterRequest 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.dataproc.v1.DeleteClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.DeleteClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to delete a cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.DeleteClusterRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DeleteClusterRequest) com.google.cloud.dataproc.v1.DeleteClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteClusterRequest.class, - com.google.cloud.dataproc.v1.DeleteClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.DeleteClusterRequest.class, com.google.cloud.dataproc.v1.DeleteClusterRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.DeleteClusterRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -585,9 +549,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; } @java.lang.Override @@ -606,8 +570,7 @@ public com.google.cloud.dataproc.v1.DeleteClusterRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.DeleteClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.DeleteClusterRequest result = - new com.google.cloud.dataproc.v1.DeleteClusterRequest(this); + com.google.cloud.dataproc.v1.DeleteClusterRequest result = new com.google.cloud.dataproc.v1.DeleteClusterRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.clusterName_ = clusterName_; @@ -621,39 +584,38 @@ public com.google.cloud.dataproc.v1.DeleteClusterRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.DeleteClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.DeleteClusterRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.DeleteClusterRequest)other); } else { super.mergeFrom(other); return this; @@ -661,8 +623,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.DeleteClusterRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.DeleteClusterRequest.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -709,43 +670,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); + case 10: { + projectId_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - clusterName_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + clusterName_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - region_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + region_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - clusterUuid_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + clusterUuid_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: - { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -758,21 +713,19 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -781,22 +734,21 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -804,64 +756,57 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -869,20 +814,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object region_ = ""; /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -891,21 +834,20 @@ public java.lang.String getRegion() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -913,61 +855,54 @@ public com.google.protobuf.ByteString getRegionBytes() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion(java.lang.String value) { + public Builder setRegion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -975,20 +910,18 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { private java.lang.Object clusterName_ = ""; /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -997,21 +930,20 @@ public java.lang.String getClusterName() { } } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -1019,61 +951,54 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName(java.lang.String value) { + public Builder setClusterName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1081,21 +1006,19 @@ public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object clusterUuid_ = ""; /** - * - * *
      * Optional. Specifying the `cluster_uuid` means the RPC should fail
      * (with error NOT_FOUND) if cluster with specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The clusterUuid. */ public java.lang.String getClusterUuid() { java.lang.Object ref = clusterUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; @@ -1104,22 +1027,21 @@ public java.lang.String getClusterUuid() { } } /** - * - * *
      * Optional. Specifying the `cluster_uuid` means the RPC should fail
      * (with error NOT_FOUND) if cluster with specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for clusterUuid. */ - public com.google.protobuf.ByteString getClusterUuidBytes() { + public com.google.protobuf.ByteString + getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -1127,64 +1049,57 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { } } /** - * - * *
      * Optional. Specifying the `cluster_uuid` means the RPC should fail
      * (with error NOT_FOUND) if cluster with specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuid(java.lang.String value) { + public Builder setClusterUuid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterUuid_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Specifying the `cluster_uuid` means the RPC should fail
      * (with error NOT_FOUND) if cluster with specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearClusterUuid() { - + clusterUuid_ = getDefaultInstance().getClusterUuid(); onChanged(); return this; } /** - * - * *
      * Optional. Specifying the `cluster_uuid` means the RPC should fail
      * (with error NOT_FOUND) if cluster with specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { + public Builder setClusterUuidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUuid_ = value; onChanged(); return this; @@ -1192,15 +1107,13 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1208,13 +1121,13 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 5 [(.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; @@ -1223,15 +1136,13 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1239,14 +1150,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 5 [(.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 { @@ -1254,15 +1166,13 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1270,29 +1180,27 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 5 [(.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. A unique ID used to identify the request. If the server
      * receives two
      * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1300,25 +1208,22 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1326,23 +1231,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 5 [(.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 +1257,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DeleteClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteClusterRequest) private static final com.google.cloud.dataproc.v1.DeleteClusterRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DeleteClusterRequest(); } @@ -1366,27 +1271,27 @@ public static com.google.cloud.dataproc.v1.DeleteClusterRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1401,4 +1306,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.DeleteClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java similarity index 77% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java index 32f0dd6ab605..f6f9655208bd 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java @@ -1,142 +1,104 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface DeleteClusterRequestOrBuilder - extends +public interface DeleteClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DeleteClusterRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ java.lang.String getRegion(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - com.google.protobuf.ByteString getRegionBytes(); + com.google.protobuf.ByteString + getRegionBytes(); /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ java.lang.String getClusterName(); /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString getClusterNameBytes(); + com.google.protobuf.ByteString + getClusterNameBytes(); /** - * - * *
    * Optional. Specifying the `cluster_uuid` means the RPC should fail
    * (with error NOT_FOUND) if cluster with specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The clusterUuid. */ java.lang.String getClusterUuid(); /** - * - * *
    * Optional. Specifying the `cluster_uuid` means the RPC should fail
    * (with error NOT_FOUND) if cluster with specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for clusterUuid. */ - com.google.protobuf.ByteString getClusterUuidBytes(); + com.google.protobuf.ByteString + getClusterUuidBytes(); /** - * - * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -144,20 +106,17 @@ public interface DeleteClusterRequestOrBuilder
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -165,8 +124,8 @@ public interface DeleteClusterRequestOrBuilder
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java index 6c4b1f96210c..44f93117487b 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to delete a job.
  * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.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() { projectId_ = ""; region_ = ""; @@ -45,42 +27,38 @@ private DeleteJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_DeleteJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DeleteJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteJobRequest.class, - com.google.cloud.dataproc.v1.DeleteJobRequest.Builder.class); + com.google.cloud.dataproc.v1.DeleteJobRequest.class, com.google.cloud.dataproc.v1.DeleteJobRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -89,30 +67,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -123,14 +101,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int REGION_FIELD_NUMBER = 3; private volatile java.lang.Object region_; /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ @java.lang.Override @@ -139,29 +114,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -172,14 +147,11 @@ public com.google.protobuf.ByteString getRegionBytes() { public static final int JOB_ID_FIELD_NUMBER = 2; private volatile java.lang.Object jobId_; /** - * - * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The jobId. */ @java.lang.Override @@ -188,29 +160,29 @@ public java.lang.String getJobId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; } } /** - * - * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for jobId. */ @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { + public com.google.protobuf.ByteString + getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); jobId_ = b; return b; } else { @@ -219,7 +191,6 @@ public com.google.protobuf.ByteString getJobIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,7 +202,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -267,17 +239,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.dataproc.v1.DeleteJobRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DeleteJobRequest other = - (com.google.cloud.dataproc.v1.DeleteJobRequest) obj; + com.google.cloud.dataproc.v1.DeleteJobRequest other = (com.google.cloud.dataproc.v1.DeleteJobRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getJobId().equals(other.getJobId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getRegion() + .equals(other.getRegion())) return false; + if (!getJobId() + .equals(other.getJobId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,136 +274,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.DeleteJobRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.DeleteJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.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.dataproc.v1.DeleteJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.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.dataproc.v1.DeleteJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.v1.DeleteJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.DeleteJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.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; } /** - * - * *
    * A request to delete a job.
    * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.v1.DeleteJobRequest) com.google.cloud.dataproc.v1.DeleteJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_DeleteJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DeleteJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteJobRequest.class, - com.google.cloud.dataproc.v1.DeleteJobRequest.Builder.class); + com.google.cloud.dataproc.v1.DeleteJobRequest.class, com.google.cloud.dataproc.v1.DeleteJobRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.DeleteJobRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; } @java.lang.Override @@ -464,8 +432,7 @@ public com.google.cloud.dataproc.v1.DeleteJobRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.DeleteJobRequest buildPartial() { - com.google.cloud.dataproc.v1.DeleteJobRequest result = - new com.google.cloud.dataproc.v1.DeleteJobRequest(this); + com.google.cloud.dataproc.v1.DeleteJobRequest result = new com.google.cloud.dataproc.v1.DeleteJobRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.jobId_ = jobId_; @@ -477,39 +444,38 @@ public com.google.cloud.dataproc.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.dataproc.v1.DeleteJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.DeleteJobRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.DeleteJobRequest)other); } else { super.mergeFrom(other); return this; @@ -556,31 +522,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + region_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -593,21 +555,19 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -616,22 +576,21 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -639,64 +598,57 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -704,20 +656,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object region_ = ""; /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -726,21 +676,20 @@ public java.lang.String getRegion() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -748,61 +697,54 @@ public com.google.protobuf.ByteString getRegionBytes() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion(java.lang.String value) { + public Builder setRegion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -810,20 +752,18 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { private java.lang.Object jobId_ = ""; /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The jobId. */ public java.lang.String getJobId() { java.lang.Object ref = jobId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; @@ -832,21 +772,20 @@ public java.lang.String getJobId() { } } /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for jobId. */ - public com.google.protobuf.ByteString getJobIdBytes() { + public com.google.protobuf.ByteString + getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); jobId_ = b; return b; } else { @@ -854,68 +793,61 @@ public com.google.protobuf.ByteString getJobIdBytes() { } } /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The jobId to set. * @return This builder for chaining. */ - public Builder setJobId(java.lang.String value) { + public Builder setJobId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearJobId() { - + jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for jobId to set. * @return This builder for chaining. */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { + public Builder setJobIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -925,12 +857,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DeleteJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteJobRequest) private static final com.google.cloud.dataproc.v1.DeleteJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DeleteJobRequest(); } @@ -939,27 +871,27 @@ public static com.google.cloud.dataproc.v1.DeleteJobRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -974,4 +906,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.DeleteJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java similarity index 64% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java index 6fb9ce0e7737..848af41d9a0d 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java @@ -1,102 +1,71 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface DeleteJobRequestOrBuilder - extends +public interface DeleteJobRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DeleteJobRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ java.lang.String getRegion(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - com.google.protobuf.ByteString getRegionBytes(); + com.google.protobuf.ByteString + getRegionBytes(); /** - * - * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The jobId. */ java.lang.String getJobId(); /** - * - * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for jobId. */ - com.google.protobuf.ByteString getJobIdBytes(); + com.google.protobuf.ByteString + getJobIdBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java index a937bf797393..a29d5993cf16 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to delete a workflow template.
  * Currently started workflows will remain running.
@@ -28,51 +11,47 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest}
  */
-public final class DeleteWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteWorkflowTemplateRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest)
     DeleteWorkflowTemplateRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteWorkflowTemplateRequest.newBuilder() to construct.
   private DeleteWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteWorkflowTemplateRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteWorkflowTemplateRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
-        .internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
-        .internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.class,
-            com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.Builder.class);
+            com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -84,10 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * - * 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 @@ -96,15 +72,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -116,18 +91,17 @@ public java.lang.String getName() {
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * - * 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 { @@ -138,8 +112,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VERSION_FIELD_NUMBER = 2; private int version_; /** - * - * *
    * Optional. The version of workflow template to delete. If specified,
    * will only delete the template if the current server version matches
@@ -147,7 +119,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ @java.lang.Override @@ -156,7 +127,6 @@ public int getVersion() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,7 +138,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -188,7 +159,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, version_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -198,16 +170,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.dataproc.v1.DeleteWorkflowTemplateRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest other = - (com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) obj; + com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest other = (com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getVersion() != other.getVersion()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getVersion() + != other.getVersion()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -229,104 +202,96 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest 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.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to delete a workflow template.
    * Currently started workflows will remain running.
@@ -334,32 +299,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest)
       com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
-          .internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
-          .internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.class,
-              com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.Builder.class);
+              com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -371,9 +337,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
-          .internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor;
     }
 
     @java.lang.Override
@@ -392,8 +358,7 @@ public com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest buildPartial() {
-      com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest result =
-          new com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest(this);
+      com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest result = new com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest(this);
       result.name_ = name_;
       result.version_ = version_;
       onBuilt();
@@ -404,39 +369,38 @@ public com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) {
-        return mergeFrom((com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -444,8 +408,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest other) {
-      if (other == com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -479,25 +442,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 16:
-              {
-                version_ = input.readInt32();
-
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 16: {
+              version_ = input.readInt32();
+
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -510,8 +470,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -523,16 +481,14 @@ public Builder mergeFrom(
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * - * 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; @@ -541,8 +497,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -554,17 +508,16 @@ public java.lang.String getName() {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * - * 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 { @@ -572,8 +525,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -585,25 +536,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -615,21 +562,16 @@ public Builder setName(java.lang.String value) {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -641,28 +583,24 @@ public Builder clearName() {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int version_; + private int version_ ; /** - * - * *
      * Optional. The version of workflow template to delete. If specified,
      * will only delete the template if the current server version matches
@@ -670,7 +608,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ @java.lang.Override @@ -678,8 +615,6 @@ public int getVersion() { return version_; } /** - * - * *
      * Optional. The version of workflow template to delete. If specified,
      * will only delete the template if the current server version matches
@@ -687,19 +622,16 @@ public int getVersion() {
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { - + version_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The version of workflow template to delete. If specified,
      * will only delete the template if the current server version matches
@@ -707,18 +639,17 @@ public Builder setVersion(int value) {
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -728,12 +659,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) private static final com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest(); } @@ -742,27 +673,27 @@ public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkflowTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -777,4 +708,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.java index 70f037aa1324..b67256a5a211 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface DeleteWorkflowTemplateRequestOrBuilder - extends +public interface DeleteWorkflowTemplateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -37,16 +19,11 @@ public interface DeleteWorkflowTemplateRequestOrBuilder
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -58,17 +35,13 @@ public interface DeleteWorkflowTemplateRequestOrBuilder
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The version of workflow template to delete. If specified,
    * will only delete the template if the current server version matches
@@ -76,7 +49,6 @@ public interface DeleteWorkflowTemplateRequestOrBuilder
    * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ int getVersion(); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java index 658ad524e629..441f6e1bee37 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to collect cluster diagnostic information.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.DiagnoseClusterRequest} */ -public final class DiagnoseClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DiagnoseClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DiagnoseClusterRequest) DiagnoseClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DiagnoseClusterRequest.newBuilder() to construct. private DiagnoseClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DiagnoseClusterRequest() { projectId_ = ""; region_ = ""; @@ -45,42 +27,38 @@ private DiagnoseClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DiagnoseClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DiagnoseClusterRequest.class, - com.google.cloud.dataproc.v1.DiagnoseClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.DiagnoseClusterRequest.class, com.google.cloud.dataproc.v1.DiagnoseClusterRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -89,30 +67,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -123,14 +101,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int REGION_FIELD_NUMBER = 3; private volatile java.lang.Object region_; /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ @java.lang.Override @@ -139,29 +114,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -172,14 +147,11 @@ public com.google.protobuf.ByteString getRegionBytes() { public static final int CLUSTER_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object clusterName_; /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ @java.lang.Override @@ -188,29 +160,29 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -219,7 +191,6 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,7 +202,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -267,17 +239,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.dataproc.v1.DiagnoseClusterRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DiagnoseClusterRequest other = - (com.google.cloud.dataproc.v1.DiagnoseClusterRequest) obj; + com.google.cloud.dataproc.v1.DiagnoseClusterRequest other = (com.google.cloud.dataproc.v1.DiagnoseClusterRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getRegion() + .equals(other.getRegion())) return false; + if (!getClusterName() + .equals(other.getClusterName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -301,135 +275,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest 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.dataproc.v1.DiagnoseClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.DiagnoseClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to collect cluster diagnostic information.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.DiagnoseClusterRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DiagnoseClusterRequest) com.google.cloud.dataproc.v1.DiagnoseClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DiagnoseClusterRequest.class, - com.google.cloud.dataproc.v1.DiagnoseClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.DiagnoseClusterRequest.class, com.google.cloud.dataproc.v1.DiagnoseClusterRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.DiagnoseClusterRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; } @java.lang.Override @@ -464,8 +432,7 @@ public com.google.cloud.dataproc.v1.DiagnoseClusterRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.DiagnoseClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.DiagnoseClusterRequest result = - new com.google.cloud.dataproc.v1.DiagnoseClusterRequest(this); + com.google.cloud.dataproc.v1.DiagnoseClusterRequest result = new com.google.cloud.dataproc.v1.DiagnoseClusterRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.clusterName_ = clusterName_; @@ -477,39 +444,38 @@ public com.google.cloud.dataproc.v1.DiagnoseClusterRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.DiagnoseClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.DiagnoseClusterRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.DiagnoseClusterRequest)other); } else { super.mergeFrom(other); return this; @@ -517,8 +483,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.DiagnoseClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.DiagnoseClusterRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.DiagnoseClusterRequest.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -557,31 +522,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + region_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -594,21 +555,19 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -617,22 +576,21 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -640,64 +598,57 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -705,20 +656,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object region_ = ""; /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -727,21 +676,20 @@ public java.lang.String getRegion() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -749,61 +697,54 @@ public com.google.protobuf.ByteString getRegionBytes() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion(java.lang.String value) { + public Builder setRegion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -811,20 +752,18 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { private java.lang.Object clusterName_ = ""; /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -833,21 +772,20 @@ public java.lang.String getClusterName() { } } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -855,68 +793,61 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName(java.lang.String value) { + public Builder setClusterName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = 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); } @@ -926,12 +857,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DiagnoseClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DiagnoseClusterRequest) private static final com.google.cloud.dataproc.v1.DiagnoseClusterRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DiagnoseClusterRequest(); } @@ -940,27 +871,27 @@ public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiagnoseClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiagnoseClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -975,4 +906,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.DiagnoseClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java index 52409f34ce4a..4a0fa5f468e1 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java @@ -1,102 +1,71 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface DiagnoseClusterRequestOrBuilder - extends +public interface DiagnoseClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DiagnoseClusterRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ java.lang.String getRegion(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - com.google.protobuf.ByteString getRegionBytes(); + com.google.protobuf.ByteString + getRegionBytes(); /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ java.lang.String getClusterName(); /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString getClusterNameBytes(); + com.google.protobuf.ByteString + getClusterNameBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java similarity index 66% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java index 5af437c3716a..41c892d53e4a 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java @@ -1,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * The location of diagnostic output.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.DiagnoseClusterResults} */ -public final class DiagnoseClusterResults extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DiagnoseClusterResults extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DiagnoseClusterResults) DiagnoseClusterResultsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DiagnoseClusterResults.newBuilder() to construct. private DiagnoseClusterResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DiagnoseClusterResults() { outputUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DiagnoseClusterResults(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DiagnoseClusterResults.class, - com.google.cloud.dataproc.v1.DiagnoseClusterResults.Builder.class); + com.google.cloud.dataproc.v1.DiagnoseClusterResults.class, com.google.cloud.dataproc.v1.DiagnoseClusterResults.Builder.class); } public static final int OUTPUT_URI_FIELD_NUMBER = 1; private volatile java.lang.Object outputUri_; /** - * - * *
    * Output only. The Cloud Storage URI of the diagnostic output.
    * The output report is a plain text file with a summary of collected
@@ -79,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The outputUri. */ @java.lang.Override @@ -88,15 +66,14 @@ public java.lang.String getOutputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUri_ = s; return s; } } /** - * - * *
    * Output only. The Cloud Storage URI of the diagnostic output.
    * The output report is a plain text file with a summary of collected
@@ -104,15 +81,16 @@ public java.lang.String getOutputUri() {
    * 
* * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for outputUri. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputUriBytes() { + public com.google.protobuf.ByteString + getOutputUriBytes() { java.lang.Object ref = outputUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUri_ = b; return b; } else { @@ -121,7 +99,6 @@ public com.google.protobuf.ByteString getOutputUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,7 +110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUri_); } @@ -157,15 +135,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.DiagnoseClusterResults)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DiagnoseClusterResults other = - (com.google.cloud.dataproc.v1.DiagnoseClusterResults) obj; + com.google.cloud.dataproc.v1.DiagnoseClusterResults other = (com.google.cloud.dataproc.v1.DiagnoseClusterResults) obj; - if (!getOutputUri().equals(other.getOutputUri())) return false; + if (!getOutputUri() + .equals(other.getOutputUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -185,135 +163,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.DiagnoseClusterResults 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.dataproc.v1.DiagnoseClusterResults parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.DiagnoseClusterResults prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 location of diagnostic output.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.DiagnoseClusterResults} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DiagnoseClusterResults) com.google.cloud.dataproc.v1.DiagnoseClusterResultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DiagnoseClusterResults.class, - com.google.cloud.dataproc.v1.DiagnoseClusterResults.Builder.class); + com.google.cloud.dataproc.v1.DiagnoseClusterResults.class, com.google.cloud.dataproc.v1.DiagnoseClusterResults.Builder.class); } // Construct using com.google.cloud.dataproc.v1.DiagnoseClusterResults.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +295,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; } @java.lang.Override @@ -344,8 +316,7 @@ public com.google.cloud.dataproc.v1.DiagnoseClusterResults build() { @java.lang.Override public com.google.cloud.dataproc.v1.DiagnoseClusterResults buildPartial() { - com.google.cloud.dataproc.v1.DiagnoseClusterResults result = - new com.google.cloud.dataproc.v1.DiagnoseClusterResults(this); + com.google.cloud.dataproc.v1.DiagnoseClusterResults result = new com.google.cloud.dataproc.v1.DiagnoseClusterResults(this); result.outputUri_ = outputUri_; onBuilt(); return result; @@ -355,39 +326,38 @@ public com.google.cloud.dataproc.v1.DiagnoseClusterResults buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.DiagnoseClusterResults) { - return mergeFrom((com.google.cloud.dataproc.v1.DiagnoseClusterResults) other); + return mergeFrom((com.google.cloud.dataproc.v1.DiagnoseClusterResults)other); } else { super.mergeFrom(other); return this; @@ -395,8 +365,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.DiagnoseClusterResults other) { - if (other == com.google.cloud.dataproc.v1.DiagnoseClusterResults.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.DiagnoseClusterResults.getDefaultInstance()) return this; if (!other.getOutputUri().isEmpty()) { outputUri_ = other.outputUri_; onChanged(); @@ -427,19 +396,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - outputUri_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + outputUri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -452,8 +419,6 @@ public Builder mergeFrom( private java.lang.Object outputUri_ = ""; /** - * - * *
      * Output only. The Cloud Storage URI of the diagnostic output.
      * The output report is a plain text file with a summary of collected
@@ -461,13 +426,13 @@ public Builder mergeFrom(
      * 
* * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The outputUri. */ public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUri_ = s; return s; @@ -476,8 +441,6 @@ public java.lang.String getOutputUri() { } } /** - * - * *
      * Output only. The Cloud Storage URI of the diagnostic output.
      * The output report is a plain text file with a summary of collected
@@ -485,14 +448,15 @@ public java.lang.String getOutputUri() {
      * 
* * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for outputUri. */ - public com.google.protobuf.ByteString getOutputUriBytes() { + public com.google.protobuf.ByteString + getOutputUriBytes() { java.lang.Object ref = outputUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUri_ = b; return b; } else { @@ -500,8 +464,6 @@ public com.google.protobuf.ByteString getOutputUriBytes() { } } /** - * - * *
      * Output only. The Cloud Storage URI of the diagnostic output.
      * The output report is a plain text file with a summary of collected
@@ -509,22 +471,20 @@ public com.google.protobuf.ByteString getOutputUriBytes() {
      * 
* * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The outputUri to set. * @return This builder for chaining. */ - public Builder setOutputUri(java.lang.String value) { + public Builder setOutputUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUri_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The Cloud Storage URI of the diagnostic output.
      * The output report is a plain text file with a summary of collected
@@ -532,18 +492,15 @@ public Builder setOutputUri(java.lang.String value) {
      * 
* * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearOutputUri() { - + outputUri_ = getDefaultInstance().getOutputUri(); onChanged(); return this; } /** - * - * *
      * Output only. The Cloud Storage URI of the diagnostic output.
      * The output report is a plain text file with a summary of collected
@@ -551,23 +508,23 @@ public Builder clearOutputUri() {
      * 
* * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for outputUri to set. * @return This builder for chaining. */ - public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUri_ = 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); } @@ -577,12 +534,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DiagnoseClusterResults) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DiagnoseClusterResults) private static final com.google.cloud.dataproc.v1.DiagnoseClusterResults DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DiagnoseClusterResults(); } @@ -591,27 +548,27 @@ public static com.google.cloud.dataproc.v1.DiagnoseClusterResults getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiagnoseClusterResults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiagnoseClusterResults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -626,4 +583,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.DiagnoseClusterResults getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.java similarity index 56% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.java index a377eeedef41..643310d3540c 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface DiagnoseClusterResultsOrBuilder - extends +public interface DiagnoseClusterResultsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DiagnoseClusterResults) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The Cloud Storage URI of the diagnostic output.
    * The output report is a plain text file with a summary of collected
@@ -33,13 +15,10 @@ public interface DiagnoseClusterResultsOrBuilder
    * 
* * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The outputUri. */ java.lang.String getOutputUri(); /** - * - * *
    * Output only. The Cloud Storage URI of the diagnostic output.
    * The output report is a plain text file with a summary of collected
@@ -47,8 +26,8 @@ public interface DiagnoseClusterResultsOrBuilder
    * 
* * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for outputUri. */ - com.google.protobuf.ByteString getOutputUriBytes(); + com.google.protobuf.ByteString + getOutputUriBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java similarity index 73% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java index ac9db471a117..8fc4b7d972f8 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Specifies the config of disk options for a group of VM instances.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.DiskConfig} */ -public final class DiskConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DiskConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DiskConfig) DiskConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DiskConfig.newBuilder() to construct. private DiskConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DiskConfig() { bootDiskType_ = ""; localSsdInterface_ = ""; @@ -44,35 +26,32 @@ private DiskConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DiskConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DiskConfig.class, - com.google.cloud.dataproc.v1.DiskConfig.Builder.class); + com.google.cloud.dataproc.v1.DiskConfig.class, com.google.cloud.dataproc.v1.DiskConfig.Builder.class); } public static final int BOOT_DISK_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object bootDiskType_; /** - * - * *
    * Optional. Type of the boot disk (default is "pd-standard").
    * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
@@ -82,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bootDiskType. */ @java.lang.Override @@ -91,15 +69,14 @@ public java.lang.String getBootDiskType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bootDiskType_ = s; return s; } } /** - * - * *
    * Optional. Type of the boot disk (default is "pd-standard").
    * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
@@ -109,15 +86,16 @@ public java.lang.String getBootDiskType() {
    * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for bootDiskType. */ @java.lang.Override - public com.google.protobuf.ByteString getBootDiskTypeBytes() { + public com.google.protobuf.ByteString + getBootDiskTypeBytes() { java.lang.Object ref = bootDiskType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bootDiskType_ = b; return b; } else { @@ -128,14 +106,11 @@ public com.google.protobuf.ByteString getBootDiskTypeBytes() { public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER = 1; private int bootDiskSizeGb_; /** - * - * *
    * Optional. Size in GB of the boot disk (default is 500GB).
    * 
* * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -146,10 +121,8 @@ public int getBootDiskSizeGb() { public static final int NUM_LOCAL_SSDS_FIELD_NUMBER = 2; private int numLocalSsds_; /** - * - * *
-   * Optional. Number of attached SSDs, from 0 to 4 (default is 0).
+   * Optional. Number of attached SSDs, from 0 to 8 (default is 0).
    * If SSDs are not attached, the boot disk is used to store runtime logs and
    * [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data.
    * If one or more SSDs are attached, this runtime bulk
@@ -158,7 +131,6 @@ public int getBootDiskSizeGb() {
    * 
* * int32 num_local_ssds = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The numLocalSsds. */ @java.lang.Override @@ -169,8 +141,6 @@ public int getNumLocalSsds() { public static final int LOCAL_SSD_INTERFACE_FIELD_NUMBER = 4; private volatile java.lang.Object localSsdInterface_; /** - * - * *
    * Optional. Interface type of local SSDs (default is "scsi").
    * Valid values: "scsi" (Small Computer System Interface),
@@ -180,7 +150,6 @@ public int getNumLocalSsds() {
    * 
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The localSsdInterface. */ @java.lang.Override @@ -189,15 +158,14 @@ public java.lang.String getLocalSsdInterface() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); localSsdInterface_ = s; return s; } } /** - * - * *
    * Optional. Interface type of local SSDs (default is "scsi").
    * Valid values: "scsi" (Small Computer System Interface),
@@ -207,15 +175,16 @@ public java.lang.String getLocalSsdInterface() {
    * 
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for localSsdInterface. */ @java.lang.Override - public com.google.protobuf.ByteString getLocalSsdInterfaceBytes() { + public com.google.protobuf.ByteString + getLocalSsdInterfaceBytes() { java.lang.Object ref = localSsdInterface_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); localSsdInterface_ = b; return b; } else { @@ -224,7 +193,6 @@ public com.google.protobuf.ByteString getLocalSsdInterfaceBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,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 (bootDiskSizeGb_ != 0) { output.writeInt32(1, bootDiskSizeGb_); } @@ -259,10 +228,12 @@ public int getSerializedSize() { size = 0; if (bootDiskSizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, bootDiskSizeGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, bootDiskSizeGb_); } if (numLocalSsds_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, numLocalSsds_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, numLocalSsds_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bootDiskType_); @@ -278,17 +249,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.dataproc.v1.DiskConfig)) { return super.equals(obj); } com.google.cloud.dataproc.v1.DiskConfig other = (com.google.cloud.dataproc.v1.DiskConfig) obj; - if (!getBootDiskType().equals(other.getBootDiskType())) return false; - if (getBootDiskSizeGb() != other.getBootDiskSizeGb()) return false; - if (getNumLocalSsds() != other.getNumLocalSsds()) return false; - if (!getLocalSsdInterface().equals(other.getLocalSsdInterface())) return false; + if (!getBootDiskType() + .equals(other.getBootDiskType())) return false; + if (getBootDiskSizeGb() + != other.getBootDiskSizeGb()) return false; + if (getNumLocalSsds() + != other.getNumLocalSsds()) return false; + if (!getLocalSsdInterface() + .equals(other.getLocalSsdInterface())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -313,136 +288,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.DiskConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DiskConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DiskConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.DiskConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.DiskConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DiskConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.DiskConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specifies the config of disk options for a group of VM instances.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.DiskConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DiskConfig) com.google.cloud.dataproc.v1.DiskConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DiskConfig.class, - com.google.cloud.dataproc.v1.DiskConfig.Builder.class); + com.google.cloud.dataproc.v1.DiskConfig.class, com.google.cloud.dataproc.v1.DiskConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.DiskConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +427,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; } @java.lang.Override @@ -479,8 +448,7 @@ public com.google.cloud.dataproc.v1.DiskConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.DiskConfig buildPartial() { - com.google.cloud.dataproc.v1.DiskConfig result = - new com.google.cloud.dataproc.v1.DiskConfig(this); + com.google.cloud.dataproc.v1.DiskConfig result = new com.google.cloud.dataproc.v1.DiskConfig(this); result.bootDiskType_ = bootDiskType_; result.bootDiskSizeGb_ = bootDiskSizeGb_; result.numLocalSsds_ = numLocalSsds_; @@ -493,39 +461,38 @@ public com.google.cloud.dataproc.v1.DiskConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.DiskConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.DiskConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.DiskConfig)other); } else { super.mergeFrom(other); return this; @@ -574,37 +541,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - bootDiskSizeGb_ = input.readInt32(); + case 8: { + bootDiskSizeGb_ = input.readInt32(); - break; - } // case 8 - case 16: - { - numLocalSsds_ = input.readInt32(); + break; + } // case 8 + case 16: { + numLocalSsds_ = input.readInt32(); - break; - } // case 16 - case 26: - { - bootDiskType_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: { + bootDiskType_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - localSsdInterface_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + localSsdInterface_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -617,8 +579,6 @@ public Builder mergeFrom( private java.lang.Object bootDiskType_ = ""; /** - * - * *
      * Optional. Type of the boot disk (default is "pd-standard").
      * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
@@ -628,13 +588,13 @@ public Builder mergeFrom(
      * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bootDiskType. */ public java.lang.String getBootDiskType() { java.lang.Object ref = bootDiskType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bootDiskType_ = s; return s; @@ -643,8 +603,6 @@ public java.lang.String getBootDiskType() { } } /** - * - * *
      * Optional. Type of the boot disk (default is "pd-standard").
      * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
@@ -654,14 +612,15 @@ public java.lang.String getBootDiskType() {
      * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for bootDiskType. */ - public com.google.protobuf.ByteString getBootDiskTypeBytes() { + public com.google.protobuf.ByteString + getBootDiskTypeBytes() { java.lang.Object ref = bootDiskType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bootDiskType_ = b; return b; } else { @@ -669,8 +628,6 @@ public com.google.protobuf.ByteString getBootDiskTypeBytes() { } } /** - * - * *
      * Optional. Type of the boot disk (default is "pd-standard").
      * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
@@ -680,22 +637,20 @@ public com.google.protobuf.ByteString getBootDiskTypeBytes() {
      * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bootDiskType to set. * @return This builder for chaining. */ - public Builder setBootDiskType(java.lang.String value) { + public Builder setBootDiskType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + bootDiskType_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Type of the boot disk (default is "pd-standard").
      * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
@@ -705,18 +660,15 @@ public Builder setBootDiskType(java.lang.String value) {
      * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearBootDiskType() { - + bootDiskType_ = getDefaultInstance().getBootDiskType(); onChanged(); return this; } /** - * - * *
      * Optional. Type of the boot disk (default is "pd-standard").
      * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
@@ -726,31 +678,28 @@ public Builder clearBootDiskType() {
      * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for bootDiskType to set. * @return This builder for chaining. */ - public Builder setBootDiskTypeBytes(com.google.protobuf.ByteString value) { + public Builder setBootDiskTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bootDiskType_ = value; onChanged(); return this; } - private int bootDiskSizeGb_; + private int bootDiskSizeGb_ ; /** - * - * *
      * Optional. Size in GB of the boot disk (default is 500GB).
      * 
* * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -758,47 +707,39 @@ public int getBootDiskSizeGb() { return bootDiskSizeGb_; } /** - * - * *
      * Optional. Size in GB of the boot disk (default is 500GB).
      * 
* * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bootDiskSizeGb to set. * @return This builder for chaining. */ public Builder setBootDiskSizeGb(int value) { - + bootDiskSizeGb_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Size in GB of the boot disk (default is 500GB).
      * 
* * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearBootDiskSizeGb() { - + bootDiskSizeGb_ = 0; onChanged(); return this; } - private int numLocalSsds_; + private int numLocalSsds_ ; /** - * - * *
-     * Optional. Number of attached SSDs, from 0 to 4 (default is 0).
+     * Optional. Number of attached SSDs, from 0 to 8 (default is 0).
      * If SSDs are not attached, the boot disk is used to store runtime logs and
      * [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data.
      * If one or more SSDs are attached, this runtime bulk
@@ -807,7 +748,6 @@ public Builder clearBootDiskSizeGb() {
      * 
* * int32 num_local_ssds = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The numLocalSsds. */ @java.lang.Override @@ -815,10 +755,8 @@ public int getNumLocalSsds() { return numLocalSsds_; } /** - * - * *
-     * Optional. Number of attached SSDs, from 0 to 4 (default is 0).
+     * Optional. Number of attached SSDs, from 0 to 8 (default is 0).
      * If SSDs are not attached, the boot disk is used to store runtime logs and
      * [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data.
      * If one or more SSDs are attached, this runtime bulk
@@ -827,21 +765,18 @@ public int getNumLocalSsds() {
      * 
* * int32 num_local_ssds = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The numLocalSsds to set. * @return This builder for chaining. */ public Builder setNumLocalSsds(int value) { - + numLocalSsds_ = value; onChanged(); return this; } /** - * - * *
-     * Optional. Number of attached SSDs, from 0 to 4 (default is 0).
+     * Optional. Number of attached SSDs, from 0 to 8 (default is 0).
      * If SSDs are not attached, the boot disk is used to store runtime logs and
      * [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data.
      * If one or more SSDs are attached, this runtime bulk
@@ -850,11 +785,10 @@ public Builder setNumLocalSsds(int value) {
      * 
* * int32 num_local_ssds = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearNumLocalSsds() { - + numLocalSsds_ = 0; onChanged(); return this; @@ -862,8 +796,6 @@ public Builder clearNumLocalSsds() { private java.lang.Object localSsdInterface_ = ""; /** - * - * *
      * Optional. Interface type of local SSDs (default is "scsi").
      * Valid values: "scsi" (Small Computer System Interface),
@@ -873,13 +805,13 @@ public Builder clearNumLocalSsds() {
      * 
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The localSsdInterface. */ public java.lang.String getLocalSsdInterface() { java.lang.Object ref = localSsdInterface_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); localSsdInterface_ = s; return s; @@ -888,8 +820,6 @@ public java.lang.String getLocalSsdInterface() { } } /** - * - * *
      * Optional. Interface type of local SSDs (default is "scsi").
      * Valid values: "scsi" (Small Computer System Interface),
@@ -899,14 +829,15 @@ public java.lang.String getLocalSsdInterface() {
      * 
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for localSsdInterface. */ - public com.google.protobuf.ByteString getLocalSsdInterfaceBytes() { + public com.google.protobuf.ByteString + getLocalSsdInterfaceBytes() { java.lang.Object ref = localSsdInterface_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); localSsdInterface_ = b; return b; } else { @@ -914,8 +845,6 @@ public com.google.protobuf.ByteString getLocalSsdInterfaceBytes() { } } /** - * - * *
      * Optional. Interface type of local SSDs (default is "scsi").
      * Valid values: "scsi" (Small Computer System Interface),
@@ -925,22 +854,20 @@ public com.google.protobuf.ByteString getLocalSsdInterfaceBytes() {
      * 
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The localSsdInterface to set. * @return This builder for chaining. */ - public Builder setLocalSsdInterface(java.lang.String value) { + public Builder setLocalSsdInterface( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + localSsdInterface_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Interface type of local SSDs (default is "scsi").
      * Valid values: "scsi" (Small Computer System Interface),
@@ -950,18 +877,15 @@ public Builder setLocalSsdInterface(java.lang.String value) {
      * 
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLocalSsdInterface() { - + localSsdInterface_ = getDefaultInstance().getLocalSsdInterface(); onChanged(); return this; } /** - * - * *
      * Optional. Interface type of local SSDs (default is "scsi").
      * Valid values: "scsi" (Small Computer System Interface),
@@ -971,23 +895,23 @@ public Builder clearLocalSsdInterface() {
      * 
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for localSsdInterface to set. * @return This builder for chaining. */ - public Builder setLocalSsdInterfaceBytes(com.google.protobuf.ByteString value) { + public Builder setLocalSsdInterfaceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + localSsdInterface_ = 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); } @@ -997,12 +921,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DiskConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DiskConfig) private static final com.google.cloud.dataproc.v1.DiskConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DiskConfig(); } @@ -1011,27 +935,27 @@ public static com.google.cloud.dataproc.v1.DiskConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiskConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiskConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1046,4 +970,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.DiskConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java similarity index 76% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java index 050b28c8fc50..b92f0d04c899 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface DiskConfigOrBuilder - extends +public interface DiskConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DiskConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Type of the boot disk (default is "pd-standard").
    * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
@@ -35,13 +17,10 @@ public interface DiskConfigOrBuilder
    * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bootDiskType. */ java.lang.String getBootDiskType(); /** - * - * *
    * Optional. Type of the boot disk (default is "pd-standard").
    * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
@@ -51,29 +30,24 @@ public interface DiskConfigOrBuilder
    * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for bootDiskType. */ - com.google.protobuf.ByteString getBootDiskTypeBytes(); + com.google.protobuf.ByteString + getBootDiskTypeBytes(); /** - * - * *
    * Optional. Size in GB of the boot disk (default is 500GB).
    * 
* * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bootDiskSizeGb. */ int getBootDiskSizeGb(); /** - * - * *
-   * Optional. Number of attached SSDs, from 0 to 4 (default is 0).
+   * Optional. Number of attached SSDs, from 0 to 8 (default is 0).
    * If SSDs are not attached, the boot disk is used to store runtime logs and
    * [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data.
    * If one or more SSDs are attached, this runtime bulk
@@ -82,14 +56,11 @@ public interface DiskConfigOrBuilder
    * 
* * int32 num_local_ssds = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The numLocalSsds. */ int getNumLocalSsds(); /** - * - * *
    * Optional. Interface type of local SSDs (default is "scsi").
    * Valid values: "scsi" (Small Computer System Interface),
@@ -99,13 +70,10 @@ public interface DiskConfigOrBuilder
    * 
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The localSsdInterface. */ java.lang.String getLocalSsdInterface(); /** - * - * *
    * Optional. Interface type of local SSDs (default is "scsi").
    * Valid values: "scsi" (Small Computer System Interface),
@@ -115,8 +83,8 @@ public interface DiskConfigOrBuilder
    * 
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for localSsdInterface. */ - com.google.protobuf.ByteString getLocalSsdInterfaceBytes(); + com.google.protobuf.ByteString + getLocalSsdInterfaceBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfig.java new file mode 100644 index 000000000000..d143a0647b62 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfig.java @@ -0,0 +1,569 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/jobs.proto + +package com.google.cloud.dataproc.v1; + +/** + *
+ * Driver scheduling configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.DriverSchedulingConfig} + */ +public final class DriverSchedulingConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DriverSchedulingConfig) + DriverSchedulingConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use DriverSchedulingConfig.newBuilder() to construct. + private DriverSchedulingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DriverSchedulingConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DriverSchedulingConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.DriverSchedulingConfig.class, com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder.class); + } + + public static final int MEMORY_MB_FIELD_NUMBER = 1; + private int memoryMb_; + /** + *
+   * Required. The amount of memory in MB the driver is requesting.
+   * 
+ * + * int32 memory_mb = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The memoryMb. + */ + @java.lang.Override + public int getMemoryMb() { + return memoryMb_; + } + + public static final int VCORES_FIELD_NUMBER = 2; + private int vcores_; + /** + *
+   * Required. The number of vCPUs the driver is requesting.
+   * 
+ * + * int32 vcores = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The vcores. + */ + @java.lang.Override + public int getVcores() { + return vcores_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (memoryMb_ != 0) { + output.writeInt32(1, memoryMb_); + } + if (vcores_ != 0) { + output.writeInt32(2, vcores_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (memoryMb_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, memoryMb_); + } + if (vcores_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, vcores_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataproc.v1.DriverSchedulingConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.DriverSchedulingConfig other = (com.google.cloud.dataproc.v1.DriverSchedulingConfig) obj; + + if (getMemoryMb() + != other.getMemoryMb()) return false; + if (getVcores() + != other.getVcores()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MEMORY_MB_FIELD_NUMBER; + hash = (53 * hash) + getMemoryMb(); + hash = (37 * hash) + VCORES_FIELD_NUMBER; + hash = (53 * hash) + getVcores(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig 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.dataproc.v1.DriverSchedulingConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.dataproc.v1.DriverSchedulingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Driver scheduling configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.DriverSchedulingConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DriverSchedulingConfig) + com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.DriverSchedulingConfig.class, com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.DriverSchedulingConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + memoryMb_ = 0; + + vcores_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.DriverSchedulingConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.DriverSchedulingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.DriverSchedulingConfig build() { + com.google.cloud.dataproc.v1.DriverSchedulingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.DriverSchedulingConfig buildPartial() { + com.google.cloud.dataproc.v1.DriverSchedulingConfig result = new com.google.cloud.dataproc.v1.DriverSchedulingConfig(this); + result.memoryMb_ = memoryMb_; + result.vcores_ = vcores_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataproc.v1.DriverSchedulingConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.DriverSchedulingConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.DriverSchedulingConfig other) { + if (other == com.google.cloud.dataproc.v1.DriverSchedulingConfig.getDefaultInstance()) return this; + if (other.getMemoryMb() != 0) { + setMemoryMb(other.getMemoryMb()); + } + if (other.getVcores() != 0) { + setVcores(other.getVcores()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + memoryMb_ = input.readInt32(); + + break; + } // case 8 + case 16: { + vcores_ = input.readInt32(); + + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int memoryMb_ ; + /** + *
+     * Required. The amount of memory in MB the driver is requesting.
+     * 
+ * + * int32 memory_mb = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The memoryMb. + */ + @java.lang.Override + public int getMemoryMb() { + return memoryMb_; + } + /** + *
+     * Required. The amount of memory in MB the driver is requesting.
+     * 
+ * + * int32 memory_mb = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The memoryMb to set. + * @return This builder for chaining. + */ + public Builder setMemoryMb(int value) { + + memoryMb_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The amount of memory in MB the driver is requesting.
+     * 
+ * + * int32 memory_mb = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearMemoryMb() { + + memoryMb_ = 0; + onChanged(); + return this; + } + + private int vcores_ ; + /** + *
+     * Required. The number of vCPUs the driver is requesting.
+     * 
+ * + * int32 vcores = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The vcores. + */ + @java.lang.Override + public int getVcores() { + return vcores_; + } + /** + *
+     * Required. The number of vCPUs the driver is requesting.
+     * 
+ * + * int32 vcores = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The vcores to set. + * @return This builder for chaining. + */ + public Builder setVcores(int value) { + + vcores_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The number of vCPUs the driver is requesting.
+     * 
+ * + * int32 vcores = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearVcores() { + + vcores_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DriverSchedulingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DriverSchedulingConfig) + private static final com.google.cloud.dataproc.v1.DriverSchedulingConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DriverSchedulingConfig(); + } + + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DriverSchedulingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.DriverSchedulingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfigOrBuilder.java new file mode 100644 index 000000000000..fc15efd039c5 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfigOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/jobs.proto + +package com.google.cloud.dataproc.v1; + +public interface DriverSchedulingConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DriverSchedulingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The amount of memory in MB the driver is requesting.
+   * 
+ * + * int32 memory_mb = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The memoryMb. + */ + int getMemoryMb(); + + /** + *
+   * Required. The number of vCPUs the driver is requesting.
+   * 
+ * + * int32 vcores = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The vcores. + */ + int getVcores(); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java similarity index 67% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java index b0c5a1902282..cb0194a65870 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java @@ -1,84 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Encryption settings for the cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.EncryptionConfig} */ -public final class EncryptionConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EncryptionConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.EncryptionConfig) EncryptionConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EncryptionConfig.newBuilder() to construct. private EncryptionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EncryptionConfig() { gcePdKmsKeyName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EncryptionConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.EncryptionConfig.class, - com.google.cloud.dataproc.v1.EncryptionConfig.Builder.class); + com.google.cloud.dataproc.v1.EncryptionConfig.class, com.google.cloud.dataproc.v1.EncryptionConfig.Builder.class); } public static final int GCE_PD_KMS_KEY_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object gcePdKmsKeyName_; /** - * - * *
    * Optional. The Cloud KMS key name to use for PD disk encryption for all
    * instances in the cluster.
    * 
* * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The gcePdKmsKeyName. */ @java.lang.Override @@ -87,30 +65,30 @@ public java.lang.String getGcePdKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcePdKmsKeyName_ = s; return s; } } /** - * - * *
    * Optional. The Cloud KMS key name to use for PD disk encryption for all
    * instances in the cluster.
    * 
* * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for gcePdKmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getGcePdKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getGcePdKmsKeyNameBytes() { java.lang.Object ref = gcePdKmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcePdKmsKeyName_ = b; return b; } else { @@ -119,7 +97,6 @@ public com.google.protobuf.ByteString getGcePdKmsKeyNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcePdKmsKeyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcePdKmsKeyName_); } @@ -155,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.EncryptionConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.EncryptionConfig other = - (com.google.cloud.dataproc.v1.EncryptionConfig) obj; + com.google.cloud.dataproc.v1.EncryptionConfig other = (com.google.cloud.dataproc.v1.EncryptionConfig) obj; - if (!getGcePdKmsKeyName().equals(other.getGcePdKmsKeyName())) return false; + if (!getGcePdKmsKeyName() + .equals(other.getGcePdKmsKeyName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,136 +160,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.EncryptionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.EncryptionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.EncryptionConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.EncryptionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Encryption settings for the cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.EncryptionConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.EncryptionConfig) com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.EncryptionConfig.class, - com.google.cloud.dataproc.v1.EncryptionConfig.Builder.class); + com.google.cloud.dataproc.v1.EncryptionConfig.class, com.google.cloud.dataproc.v1.EncryptionConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.EncryptionConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; } @java.lang.Override @@ -342,8 +314,7 @@ public com.google.cloud.dataproc.v1.EncryptionConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.EncryptionConfig buildPartial() { - com.google.cloud.dataproc.v1.EncryptionConfig result = - new com.google.cloud.dataproc.v1.EncryptionConfig(this); + com.google.cloud.dataproc.v1.EncryptionConfig result = new com.google.cloud.dataproc.v1.EncryptionConfig(this); result.gcePdKmsKeyName_ = gcePdKmsKeyName_; onBuilt(); return result; @@ -353,39 +324,38 @@ public com.google.cloud.dataproc.v1.EncryptionConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.EncryptionConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.EncryptionConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.EncryptionConfig)other); } else { super.mergeFrom(other); return this; @@ -424,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - gcePdKmsKeyName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + gcePdKmsKeyName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -449,21 +417,19 @@ public Builder mergeFrom( private java.lang.Object gcePdKmsKeyName_ = ""; /** - * - * *
      * Optional. The Cloud KMS key name to use for PD disk encryption for all
      * instances in the cluster.
      * 
* * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The gcePdKmsKeyName. */ public java.lang.String getGcePdKmsKeyName() { java.lang.Object ref = gcePdKmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcePdKmsKeyName_ = s; return s; @@ -472,22 +438,21 @@ public java.lang.String getGcePdKmsKeyName() { } } /** - * - * *
      * Optional. The Cloud KMS key name to use for PD disk encryption for all
      * instances in the cluster.
      * 
* * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for gcePdKmsKeyName. */ - public com.google.protobuf.ByteString getGcePdKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getGcePdKmsKeyNameBytes() { java.lang.Object ref = gcePdKmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcePdKmsKeyName_ = b; return b; } else { @@ -495,71 +460,64 @@ public com.google.protobuf.ByteString getGcePdKmsKeyNameBytes() { } } /** - * - * *
      * Optional. The Cloud KMS key name to use for PD disk encryption for all
      * instances in the cluster.
      * 
* * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The gcePdKmsKeyName to set. * @return This builder for chaining. */ - public Builder setGcePdKmsKeyName(java.lang.String value) { + public Builder setGcePdKmsKeyName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcePdKmsKeyName_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Cloud KMS key name to use for PD disk encryption for all
      * instances in the cluster.
      * 
* * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearGcePdKmsKeyName() { - + gcePdKmsKeyName_ = getDefaultInstance().getGcePdKmsKeyName(); onChanged(); return this; } /** - * - * *
      * Optional. The Cloud KMS key name to use for PD disk encryption for all
      * instances in the cluster.
      * 
* * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for gcePdKmsKeyName to set. * @return This builder for chaining. */ - public Builder setGcePdKmsKeyNameBytes(com.google.protobuf.ByteString value) { + public Builder setGcePdKmsKeyNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcePdKmsKeyName_ = 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); } @@ -569,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.EncryptionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.EncryptionConfig) private static final com.google.cloud.dataproc.v1.EncryptionConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.EncryptionConfig(); } @@ -583,27 +541,27 @@ public static com.google.cloud.dataproc.v1.EncryptionConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EncryptionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncryptionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -618,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.EncryptionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.java similarity index 54% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.java index 151b7c7e15dc..7a6a01dcca03 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface EncryptionConfigOrBuilder - extends +public interface EncryptionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.EncryptionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The Cloud KMS key name to use for PD disk encryption for all
    * instances in the cluster.
    * 
* * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The gcePdKmsKeyName. */ java.lang.String getGcePdKmsKeyName(); /** - * - * *
    * Optional. The Cloud KMS key name to use for PD disk encryption for all
    * instances in the cluster.
    * 
* * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for gcePdKmsKeyName. */ - com.google.protobuf.ByteString getGcePdKmsKeyNameBytes(); + com.google.protobuf.ByteString + getGcePdKmsKeyNameBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java similarity index 60% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java index bad319e400df..a77f8e2b8deb 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java @@ -1,99 +1,83 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Endpoint config for this cluster
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.EndpointConfig} */ -public final class EndpointConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EndpointConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.EndpointConfig) EndpointConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EndpointConfig.newBuilder() to construct. private EndpointConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private EndpointConfig() {} + private EndpointConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EndpointConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EndpointConfig_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 internalGetHttpPorts(); 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.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.EndpointConfig.class, - com.google.cloud.dataproc.v1.EndpointConfig.Builder.class); + com.google.cloud.dataproc.v1.EndpointConfig.class, com.google.cloud.dataproc.v1.EndpointConfig.Builder.class); } public static final int HTTP_PORTS_FIELD_NUMBER = 1; - private static final class HttpPortsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField httpPorts_; - - private com.google.protobuf.MapField internalGetHttpPorts() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> httpPorts_; + private com.google.protobuf.MapField + internalGetHttpPorts() { if (httpPorts_ == null) { - return com.google.protobuf.MapField.emptyMapField(HttpPortsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + HttpPortsDefaultEntryHolder.defaultEntry); } return httpPorts_; } @@ -102,81 +86,74 @@ public int getHttpPortsCount() { return internalGetHttpPorts().getMap().size(); } /** - * - * *
    * Output only. The map of port descriptions to URLs. Will only be populated
    * if enable_http_port_access is true.
    * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + @java.lang.Override - public boolean containsHttpPorts(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsHttpPorts( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetHttpPorts().getMap().containsKey(key); } - /** Use {@link #getHttpPortsMap()} instead. */ + /** + * Use {@link #getHttpPortsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHttpPorts() { return getHttpPortsMap(); } /** - * - * *
    * Output only. The map of port descriptions to URLs. Will only be populated
    * if enable_http_port_access is true.
    * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public java.util.Map getHttpPortsMap() { return internalGetHttpPorts().getMap(); } /** - * - * *
    * Output only. The map of port descriptions to URLs. Will only be populated
    * if enable_http_port_access is true.
    * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public java.lang.String getHttpPortsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHttpPorts().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetHttpPorts().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Output only. The map of port descriptions to URLs. Will only be populated
    * if enable_http_port_access is true.
    * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.lang.String getHttpPortsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHttpPorts().getMap(); + + public java.lang.String getHttpPortsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetHttpPorts().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -186,15 +163,12 @@ public java.lang.String getHttpPortsOrThrow(java.lang.String key) { public static final int ENABLE_HTTP_PORT_ACCESS_FIELD_NUMBER = 2; private boolean enableHttpPortAccess_; /** - * - * *
    * Optional. If true, enable http access to specific ports on the cluster
    * from external sources. Defaults to false.
    * 
* * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableHttpPortAccess. */ @java.lang.Override @@ -203,7 +177,6 @@ public boolean getEnableHttpPortAccess() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,9 +188,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, internalGetHttpPorts(), HttpPortsDefaultEntryHolder.defaultEntry, 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetHttpPorts(), + HttpPortsDefaultEntryHolder.defaultEntry, + 1); if (enableHttpPortAccess_ != false) { output.writeBool(2, enableHttpPortAccess_); } @@ -230,18 +208,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry : - internalGetHttpPorts().getMap().entrySet()) { - com.google.protobuf.MapEntry httpPorts__ = - HttpPortsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, httpPorts__); + for (java.util.Map.Entry entry + : internalGetHttpPorts().getMap().entrySet()) { + com.google.protobuf.MapEntry + httpPorts__ = HttpPortsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, httpPorts__); } if (enableHttpPortAccess_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableHttpPortAccess_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enableHttpPortAccess_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -251,16 +230,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.dataproc.v1.EndpointConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.EndpointConfig other = - (com.google.cloud.dataproc.v1.EndpointConfig) obj; + com.google.cloud.dataproc.v1.EndpointConfig other = (com.google.cloud.dataproc.v1.EndpointConfig) obj; - if (!internalGetHttpPorts().equals(other.internalGetHttpPorts())) return false; - if (getEnableHttpPortAccess() != other.getEnableHttpPortAccess()) return false; + if (!internalGetHttpPorts().equals( + other.internalGetHttpPorts())) return false; + if (getEnableHttpPortAccess() + != other.getEnableHttpPortAccess()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -277,162 +257,159 @@ public int hashCode() { hash = (53 * hash) + internalGetHttpPorts().hashCode(); } hash = (37 * hash) + ENABLE_HTTP_PORT_ACCESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableHttpPortAccess()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableHttpPortAccess()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.EndpointConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.EndpointConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.EndpointConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.EndpointConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Endpoint config for this cluster
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.EndpointConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.EndpointConfig) com.google.cloud.dataproc.v1.EndpointConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetHttpPorts(); 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 internalGetMutableHttpPorts(); 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.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.EndpointConfig.class, - com.google.cloud.dataproc.v1.EndpointConfig.Builder.class); + com.google.cloud.dataproc.v1.EndpointConfig.class, com.google.cloud.dataproc.v1.EndpointConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.EndpointConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; } @java.lang.Override @@ -464,8 +441,7 @@ public com.google.cloud.dataproc.v1.EndpointConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.EndpointConfig buildPartial() { - com.google.cloud.dataproc.v1.EndpointConfig result = - new com.google.cloud.dataproc.v1.EndpointConfig(this); + com.google.cloud.dataproc.v1.EndpointConfig result = new com.google.cloud.dataproc.v1.EndpointConfig(this); int from_bitField0_ = bitField0_; result.httpPorts_ = internalGetHttpPorts(); result.httpPorts_.makeImmutable(); @@ -478,39 +454,38 @@ public com.google.cloud.dataproc.v1.EndpointConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.EndpointConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.EndpointConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.EndpointConfig)other); } else { super.mergeFrom(other); return this; @@ -519,7 +494,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.dataproc.v1.EndpointConfig other) { if (other == com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance()) return this; - internalGetMutableHttpPorts().mergeFrom(other.internalGetHttpPorts()); + internalGetMutableHttpPorts().mergeFrom( + other.internalGetHttpPorts()); if (other.getEnableHttpPortAccess() != false) { setEnableHttpPortAccess(other.getEnableHttpPortAccess()); } @@ -549,30 +525,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.MapEntry httpPorts__ = - input.readMessage( - HttpPortsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableHttpPorts() - .getMutableMap() - .put(httpPorts__.getKey(), httpPorts__.getValue()); - break; - } // case 10 - case 16: - { - enableHttpPortAccess_ = input.readBool(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.protobuf.MapEntry + httpPorts__ = input.readMessage( + HttpPortsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableHttpPorts().getMutableMap().put( + httpPorts__.getKey(), httpPorts__.getValue()); + break; + } // case 10 + case 16: { + enableHttpPortAccess_ = input.readBool(); + + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -582,26 +553,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.MapField httpPorts_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> httpPorts_; private com.google.protobuf.MapField - internalGetHttpPorts() { + internalGetHttpPorts() { if (httpPorts_ == null) { - return com.google.protobuf.MapField.emptyMapField(HttpPortsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + HttpPortsDefaultEntryHolder.defaultEntry); } return httpPorts_; } - private com.google.protobuf.MapField - internalGetMutableHttpPorts() { - onChanged(); - ; + internalGetMutableHttpPorts() { + onChanged();; if (httpPorts_ == null) { - httpPorts_ = - com.google.protobuf.MapField.newMapField(HttpPortsDefaultEntryHolder.defaultEntry); + httpPorts_ = com.google.protobuf.MapField.newMapField( + HttpPortsDefaultEntryHolder.defaultEntry); } if (!httpPorts_.isMutable()) { httpPorts_ = httpPorts_.copy(); @@ -613,81 +582,74 @@ public int getHttpPortsCount() { return internalGetHttpPorts().getMap().size(); } /** - * - * *
      * Output only. The map of port descriptions to URLs. Will only be populated
      * if enable_http_port_access is true.
      * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + @java.lang.Override - public boolean containsHttpPorts(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsHttpPorts( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetHttpPorts().getMap().containsKey(key); } - /** Use {@link #getHttpPortsMap()} instead. */ + /** + * Use {@link #getHttpPortsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHttpPorts() { return getHttpPortsMap(); } /** - * - * *
      * Output only. The map of port descriptions to URLs. Will only be populated
      * if enable_http_port_access is true.
      * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public java.util.Map getHttpPortsMap() { return internalGetHttpPorts().getMap(); } /** - * - * *
      * Output only. The map of port descriptions to URLs. Will only be populated
      * if enable_http_port_access is true.
      * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public java.lang.String getHttpPortsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHttpPorts().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetHttpPorts().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Output only. The map of port descriptions to URLs. Will only be populated
      * if enable_http_port_access is true.
      * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.lang.String getHttpPortsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHttpPorts().getMap(); + + public java.lang.String getHttpPortsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetHttpPorts().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -695,81 +657,78 @@ public java.lang.String getHttpPortsOrThrow(java.lang.String key) { } public Builder clearHttpPorts() { - internalGetMutableHttpPorts().getMutableMap().clear(); + internalGetMutableHttpPorts().getMutableMap() + .clear(); return this; } /** - * - * *
      * Output only. The map of port descriptions to URLs. Will only be populated
      * if enable_http_port_access is true.
      * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder removeHttpPorts(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableHttpPorts().getMutableMap().remove(key); + + public Builder removeHttpPorts( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableHttpPorts().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableHttpPorts() { + public java.util.Map + getMutableHttpPorts() { return internalGetMutableHttpPorts().getMutableMap(); } /** - * - * *
      * Output only. The map of port descriptions to URLs. Will only be populated
      * if enable_http_port_access is true.
      * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder putHttpPorts(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putHttpPorts( + 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"); +} - internalGetMutableHttpPorts().getMutableMap().put(key, value); + internalGetMutableHttpPorts().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Output only. The map of port descriptions to URLs. Will only be populated
      * if enable_http_port_access is true.
      * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder putAllHttpPorts(java.util.Map values) { - internalGetMutableHttpPorts().getMutableMap().putAll(values); + + public Builder putAllHttpPorts( + java.util.Map values) { + internalGetMutableHttpPorts().getMutableMap() + .putAll(values); return this; } - private boolean enableHttpPortAccess_; + private boolean enableHttpPortAccess_ ; /** - * - * *
      * Optional. If true, enable http access to specific ports on the cluster
      * from external sources. Defaults to false.
      * 
* * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableHttpPortAccess. */ @java.lang.Override @@ -777,45 +736,39 @@ public boolean getEnableHttpPortAccess() { return enableHttpPortAccess_; } /** - * - * *
      * Optional. If true, enable http access to specific ports on the cluster
      * from external sources. Defaults to false.
      * 
* * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enableHttpPortAccess to set. * @return This builder for chaining. */ public Builder setEnableHttpPortAccess(boolean value) { - + enableHttpPortAccess_ = value; onChanged(); return this; } /** - * - * *
      * Optional. If true, enable http access to specific ports on the cluster
      * from external sources. Defaults to false.
      * 
* * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnableHttpPortAccess() { - + enableHttpPortAccess_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -825,12 +778,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.EndpointConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.EndpointConfig) private static final com.google.cloud.dataproc.v1.EndpointConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.EndpointConfig(); } @@ -839,27 +792,27 @@ public static com.google.cloud.dataproc.v1.EndpointConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EndpointConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndpointConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -874,4 +827,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.EndpointConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java similarity index 58% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java index 1facc5b83166..98168574bb77 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java @@ -1,107 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface EndpointConfigOrBuilder - extends +public interface EndpointConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.EndpointConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The map of port descriptions to URLs. Will only be populated
    * if enable_http_port_access is true.
    * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getHttpPortsCount(); /** - * - * *
    * Output only. The map of port descriptions to URLs. Will only be populated
    * if enable_http_port_access is true.
    * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + boolean containsHttpPorts( + java.lang.String key); + /** + * Use {@link #getHttpPortsMap()} instead. */ - boolean containsHttpPorts(java.lang.String key); - /** Use {@link #getHttpPortsMap()} instead. */ @java.lang.Deprecated - java.util.Map getHttpPorts(); + java.util.Map + getHttpPorts(); /** - * - * *
    * Output only. The map of port descriptions to URLs. Will only be populated
    * if enable_http_port_access is true.
    * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.Map getHttpPortsMap(); + java.util.Map + getHttpPortsMap(); /** - * - * *
    * Output only. The map of port descriptions to URLs. Will only be populated
    * if enable_http_port_access is true.
    * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ /* nullable */ - java.lang.String getHttpPortsOrDefault( +java.lang.String getHttpPortsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Output only. The map of port descriptions to URLs. Will only be populated
    * if enable_http_port_access is true.
    * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.lang.String getHttpPortsOrThrow(java.lang.String key); + + java.lang.String getHttpPortsOrThrow( + java.lang.String key); /** - * - * *
    * Optional. If true, enable http access to specific ports on the cluster
    * from external sources. Defaults to false.
    * 
* * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableHttpPortAccess. */ boolean getEnableHttpPortAccess(); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java similarity index 60% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java index 531a9b8831da..59ccc6336fd0 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java @@ -1,83 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Environment configuration for a workload.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.EnvironmentConfig} */ -public final class EnvironmentConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EnvironmentConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.EnvironmentConfig) EnvironmentConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EnvironmentConfig.newBuilder() to construct. private EnvironmentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private EnvironmentConfig() {} + private EnvironmentConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EnvironmentConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.EnvironmentConfig.class, - com.google.cloud.dataproc.v1.EnvironmentConfig.Builder.class); + com.google.cloud.dataproc.v1.EnvironmentConfig.class, com.google.cloud.dataproc.v1.EnvironmentConfig.Builder.class); } public static final int EXECUTION_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.dataproc.v1.ExecutionConfig executionConfig_; /** - * - * *
    * Optional. Execution configuration for a workload.
    * 
* - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the executionConfig field is set. */ @java.lang.Override @@ -85,34 +62,23 @@ public boolean hasExecutionConfig() { return executionConfig_ != null; } /** - * - * *
    * Optional. Execution configuration for a workload.
    * 
* - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The executionConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.ExecutionConfig getExecutionConfig() { - return executionConfig_ == null - ? com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance() - : executionConfig_; + return executionConfig_ == null ? com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance() : executionConfig_; } /** - * - * *
    * Optional. Execution configuration for a workload.
    * 
* - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder getExecutionConfigOrBuilder() { @@ -122,16 +88,11 @@ public com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder getExecutionConfigO public static final int PERIPHERALS_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.PeripheralsConfig peripheralsConfig_; /** - * - * *
    * Optional. Peripherals configuration that workload has access to.
    * 
* - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the peripheralsConfig field is set. */ @java.lang.Override @@ -139,34 +100,23 @@ public boolean hasPeripheralsConfig() { return peripheralsConfig_ != null; } /** - * - * *
    * Optional. Peripherals configuration that workload has access to.
    * 
* - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The peripheralsConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.PeripheralsConfig getPeripheralsConfig() { - return peripheralsConfig_ == null - ? com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance() - : peripheralsConfig_; + return peripheralsConfig_ == null ? com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance() : peripheralsConfig_; } /** - * - * *
    * Optional. Peripherals configuration that workload has access to.
    * 
* - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder getPeripheralsConfigOrBuilder() { @@ -174,7 +124,6 @@ public com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder getPeripheralsCon } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,7 +135,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 (executionConfig_ != null) { output.writeMessage(1, getExecutionConfig()); } @@ -203,10 +153,12 @@ public int getSerializedSize() { size = 0; if (executionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExecutionConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getExecutionConfig()); } if (peripheralsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPeripheralsConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPeripheralsConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -216,21 +168,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.dataproc.v1.EnvironmentConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.EnvironmentConfig other = - (com.google.cloud.dataproc.v1.EnvironmentConfig) obj; + com.google.cloud.dataproc.v1.EnvironmentConfig other = (com.google.cloud.dataproc.v1.EnvironmentConfig) obj; if (hasExecutionConfig() != other.hasExecutionConfig()) return false; if (hasExecutionConfig()) { - if (!getExecutionConfig().equals(other.getExecutionConfig())) return false; + if (!getExecutionConfig() + .equals(other.getExecutionConfig())) return false; } if (hasPeripheralsConfig() != other.hasPeripheralsConfig()) return false; if (hasPeripheralsConfig()) { - if (!getPeripheralsConfig().equals(other.getPeripheralsConfig())) return false; + if (!getPeripheralsConfig() + .equals(other.getPeripheralsConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -256,136 +209,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.EnvironmentConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Environment configuration for a workload.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.EnvironmentConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.EnvironmentConfig) com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.EnvironmentConfig.class, - com.google.cloud.dataproc.v1.EnvironmentConfig.Builder.class); + com.google.cloud.dataproc.v1.EnvironmentConfig.class, com.google.cloud.dataproc.v1.EnvironmentConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.EnvironmentConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -405,9 +352,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; } @java.lang.Override @@ -426,8 +373,7 @@ public com.google.cloud.dataproc.v1.EnvironmentConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.EnvironmentConfig buildPartial() { - com.google.cloud.dataproc.v1.EnvironmentConfig result = - new com.google.cloud.dataproc.v1.EnvironmentConfig(this); + com.google.cloud.dataproc.v1.EnvironmentConfig result = new com.google.cloud.dataproc.v1.EnvironmentConfig(this); if (executionConfigBuilder_ == null) { result.executionConfig_ = executionConfig_; } else { @@ -446,39 +392,38 @@ public com.google.cloud.dataproc.v1.EnvironmentConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.EnvironmentConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.EnvironmentConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.EnvironmentConfig)other); } else { super.mergeFrom(other); return this; @@ -519,26 +464,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getExecutionConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage( - getPeripheralsConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getExecutionConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getPeripheralsConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -551,58 +496,39 @@ public Builder mergeFrom( private com.google.cloud.dataproc.v1.ExecutionConfig executionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ExecutionConfig, - com.google.cloud.dataproc.v1.ExecutionConfig.Builder, - com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder> - executionConfigBuilder_; + com.google.cloud.dataproc.v1.ExecutionConfig, com.google.cloud.dataproc.v1.ExecutionConfig.Builder, com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder> executionConfigBuilder_; /** - * - * *
      * Optional. Execution configuration for a workload.
      * 
* - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the executionConfig field is set. */ public boolean hasExecutionConfig() { return executionConfigBuilder_ != null || executionConfig_ != null; } /** - * - * *
      * Optional. Execution configuration for a workload.
      * 
* - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The executionConfig. */ public com.google.cloud.dataproc.v1.ExecutionConfig getExecutionConfig() { if (executionConfigBuilder_ == null) { - return executionConfig_ == null - ? com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance() - : executionConfig_; + return executionConfig_ == null ? com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance() : executionConfig_; } else { return executionConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Execution configuration for a workload.
      * 
* - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setExecutionConfig(com.google.cloud.dataproc.v1.ExecutionConfig value) { if (executionConfigBuilder_ == null) { @@ -618,15 +544,11 @@ public Builder setExecutionConfig(com.google.cloud.dataproc.v1.ExecutionConfig v return this; } /** - * - * *
      * Optional. Execution configuration for a workload.
      * 
* - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setExecutionConfig( com.google.cloud.dataproc.v1.ExecutionConfig.Builder builderForValue) { @@ -640,23 +562,17 @@ public Builder setExecutionConfig( return this; } /** - * - * *
      * Optional. Execution configuration for a workload.
      * 
* - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeExecutionConfig(com.google.cloud.dataproc.v1.ExecutionConfig value) { if (executionConfigBuilder_ == null) { if (executionConfig_ != null) { executionConfig_ = - com.google.cloud.dataproc.v1.ExecutionConfig.newBuilder(executionConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.ExecutionConfig.newBuilder(executionConfig_).mergeFrom(value).buildPartial(); } else { executionConfig_ = value; } @@ -668,15 +584,11 @@ public Builder mergeExecutionConfig(com.google.cloud.dataproc.v1.ExecutionConfig return this; } /** - * - * *
      * Optional. Execution configuration for a workload.
      * 
* - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearExecutionConfig() { if (executionConfigBuilder_ == null) { @@ -690,64 +602,48 @@ public Builder clearExecutionConfig() { return this; } /** - * - * *
      * Optional. Execution configuration for a workload.
      * 
* - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.ExecutionConfig.Builder getExecutionConfigBuilder() { - + onChanged(); return getExecutionConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Execution configuration for a workload.
      * 
* - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder getExecutionConfigOrBuilder() { if (executionConfigBuilder_ != null) { return executionConfigBuilder_.getMessageOrBuilder(); } else { - return executionConfig_ == null - ? com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance() - : executionConfig_; + return executionConfig_ == null ? + com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance() : executionConfig_; } } /** - * - * *
      * Optional. Execution configuration for a workload.
      * 
* - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ExecutionConfig, - com.google.cloud.dataproc.v1.ExecutionConfig.Builder, - com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder> + com.google.cloud.dataproc.v1.ExecutionConfig, com.google.cloud.dataproc.v1.ExecutionConfig.Builder, com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder> getExecutionConfigFieldBuilder() { if (executionConfigBuilder_ == null) { - executionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ExecutionConfig, - com.google.cloud.dataproc.v1.ExecutionConfig.Builder, - com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder>( - getExecutionConfig(), getParentForChildren(), isClean()); + executionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ExecutionConfig, com.google.cloud.dataproc.v1.ExecutionConfig.Builder, com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder>( + getExecutionConfig(), + getParentForChildren(), + isClean()); executionConfig_ = null; } return executionConfigBuilder_; @@ -755,58 +651,39 @@ public com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder getExecutionConfigO private com.google.cloud.dataproc.v1.PeripheralsConfig peripheralsConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PeripheralsConfig, - com.google.cloud.dataproc.v1.PeripheralsConfig.Builder, - com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder> - peripheralsConfigBuilder_; + com.google.cloud.dataproc.v1.PeripheralsConfig, com.google.cloud.dataproc.v1.PeripheralsConfig.Builder, com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder> peripheralsConfigBuilder_; /** - * - * *
      * Optional. Peripherals configuration that workload has access to.
      * 
* - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the peripheralsConfig field is set. */ public boolean hasPeripheralsConfig() { return peripheralsConfigBuilder_ != null || peripheralsConfig_ != null; } /** - * - * *
      * Optional. Peripherals configuration that workload has access to.
      * 
* - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The peripheralsConfig. */ public com.google.cloud.dataproc.v1.PeripheralsConfig getPeripheralsConfig() { if (peripheralsConfigBuilder_ == null) { - return peripheralsConfig_ == null - ? com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance() - : peripheralsConfig_; + return peripheralsConfig_ == null ? com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance() : peripheralsConfig_; } else { return peripheralsConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Peripherals configuration that workload has access to.
      * 
* - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPeripheralsConfig(com.google.cloud.dataproc.v1.PeripheralsConfig value) { if (peripheralsConfigBuilder_ == null) { @@ -822,15 +699,11 @@ public Builder setPeripheralsConfig(com.google.cloud.dataproc.v1.PeripheralsConf return this; } /** - * - * *
      * Optional. Peripherals configuration that workload has access to.
      * 
* - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPeripheralsConfig( com.google.cloud.dataproc.v1.PeripheralsConfig.Builder builderForValue) { @@ -844,23 +717,17 @@ public Builder setPeripheralsConfig( return this; } /** - * - * *
      * Optional. Peripherals configuration that workload has access to.
      * 
* - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergePeripheralsConfig(com.google.cloud.dataproc.v1.PeripheralsConfig value) { if (peripheralsConfigBuilder_ == null) { if (peripheralsConfig_ != null) { peripheralsConfig_ = - com.google.cloud.dataproc.v1.PeripheralsConfig.newBuilder(peripheralsConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.PeripheralsConfig.newBuilder(peripheralsConfig_).mergeFrom(value).buildPartial(); } else { peripheralsConfig_ = value; } @@ -872,15 +739,11 @@ public Builder mergePeripheralsConfig(com.google.cloud.dataproc.v1.PeripheralsCo return this; } /** - * - * *
      * Optional. Peripherals configuration that workload has access to.
      * 
* - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPeripheralsConfig() { if (peripheralsConfigBuilder_ == null) { @@ -894,71 +757,55 @@ public Builder clearPeripheralsConfig() { return this; } /** - * - * *
      * Optional. Peripherals configuration that workload has access to.
      * 
* - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.PeripheralsConfig.Builder getPeripheralsConfigBuilder() { - + onChanged(); return getPeripheralsConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Peripherals configuration that workload has access to.
      * 
* - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder getPeripheralsConfigOrBuilder() { if (peripheralsConfigBuilder_ != null) { return peripheralsConfigBuilder_.getMessageOrBuilder(); } else { - return peripheralsConfig_ == null - ? com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance() - : peripheralsConfig_; + return peripheralsConfig_ == null ? + com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance() : peripheralsConfig_; } } /** - * - * *
      * Optional. Peripherals configuration that workload has access to.
      * 
* - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PeripheralsConfig, - com.google.cloud.dataproc.v1.PeripheralsConfig.Builder, - com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder> + com.google.cloud.dataproc.v1.PeripheralsConfig, com.google.cloud.dataproc.v1.PeripheralsConfig.Builder, com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder> getPeripheralsConfigFieldBuilder() { if (peripheralsConfigBuilder_ == null) { - peripheralsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PeripheralsConfig, - com.google.cloud.dataproc.v1.PeripheralsConfig.Builder, - com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder>( - getPeripheralsConfig(), getParentForChildren(), isClean()); + peripheralsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PeripheralsConfig, com.google.cloud.dataproc.v1.PeripheralsConfig.Builder, com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder>( + getPeripheralsConfig(), + getParentForChildren(), + isClean()); peripheralsConfig_ = null; } return peripheralsConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -968,12 +815,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.EnvironmentConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.EnvironmentConfig) private static final com.google.cloud.dataproc.v1.EnvironmentConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.EnvironmentConfig(); } @@ -982,27 +829,27 @@ public static com.google.cloud.dataproc.v1.EnvironmentConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnvironmentConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnvironmentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1017,4 +864,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.EnvironmentConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java new file mode 100644 index 000000000000..6dbb332657a4 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +public interface EnvironmentConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.EnvironmentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Optional. Execution configuration for a workload.
+   * 
+ * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the executionConfig field is set. + */ + boolean hasExecutionConfig(); + /** + *
+   * Optional. Execution configuration for a workload.
+   * 
+ * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The executionConfig. + */ + com.google.cloud.dataproc.v1.ExecutionConfig getExecutionConfig(); + /** + *
+   * Optional. Execution configuration for a workload.
+   * 
+ * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder getExecutionConfigOrBuilder(); + + /** + *
+   * Optional. Peripherals configuration that workload has access to.
+   * 
+ * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the peripheralsConfig field is set. + */ + boolean hasPeripheralsConfig(); + /** + *
+   * Optional. Peripherals configuration that workload has access to.
+   * 
+ * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The peripheralsConfig. + */ + com.google.cloud.dataproc.v1.PeripheralsConfig getPeripheralsConfig(); + /** + *
+   * Optional. Peripherals configuration that workload has access to.
+   * 
+ * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder getPeripheralsConfigOrBuilder(); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java similarity index 72% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java index a3d13e0b0da1..db1afaf571d8 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.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/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Execution configuration for a workload.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ExecutionConfig} */ -public final class ExecutionConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExecutionConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ExecutionConfig) ExecutionConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExecutionConfig.newBuilder() to construct. private ExecutionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExecutionConfig() { serviceAccount_ = ""; networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -45,42 +27,38 @@ private ExecutionConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExecutionConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ExecutionConfig.class, - com.google.cloud.dataproc.v1.ExecutionConfig.Builder.class); + com.google.cloud.dataproc.v1.ExecutionConfig.class, com.google.cloud.dataproc.v1.ExecutionConfig.Builder.class); } private int networkCase_ = 0; private java.lang.Object network_; - public enum NetworkCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NETWORK_URI(4), SUBNETWORK_URI(5), NETWORK_NOT_SET(0); private final int value; - private NetworkCase(int value) { this.value = value; } @@ -96,37 +74,31 @@ public static NetworkCase valueOf(int value) { public static NetworkCase forNumber(int value) { switch (value) { - case 4: - return NETWORK_URI; - case 5: - return SUBNETWORK_URI; - case 0: - return NETWORK_NOT_SET; - default: - return null; + case 4: return NETWORK_URI; + case 5: return SUBNETWORK_URI; + case 0: return NETWORK_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public NetworkCase getNetworkCase() { - return NetworkCase.forNumber(networkCase_); + public NetworkCase + getNetworkCase() { + return NetworkCase.forNumber( + networkCase_); } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; private volatile java.lang.Object serviceAccount_; /** - * - * *
    * Optional. Service account that used to execute workload.
    * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The serviceAccount. */ @java.lang.Override @@ -135,29 +107,29 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** - * - * *
    * Optional. Service account that used to execute workload.
    * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -167,28 +139,22 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { public static final int NETWORK_URI_FIELD_NUMBER = 4; /** - * - * *
    * Optional. Network URI to connect workload to.
    * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the networkUri field is set. */ public boolean hasNetworkUri() { return networkCase_ == 4; } /** - * - * *
    * Optional. Network URI to connect workload to.
    * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The networkUri. */ public java.lang.String getNetworkUri() { @@ -199,7 +165,8 @@ public java.lang.String getNetworkUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (networkCase_ == 4) { network_ = s; @@ -208,24 +175,23 @@ public java.lang.String getNetworkUri() { } } /** - * - * *
    * Optional. Network URI to connect workload to.
    * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for networkUri. */ - public com.google.protobuf.ByteString getNetworkUriBytes() { + public com.google.protobuf.ByteString + getNetworkUriBytes() { java.lang.Object ref = ""; if (networkCase_ == 4) { 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); if (networkCase_ == 4) { network_ = b; } @@ -237,28 +203,22 @@ public com.google.protobuf.ByteString getNetworkUriBytes() { public static final int SUBNETWORK_URI_FIELD_NUMBER = 5; /** - * - * *
    * Optional. Subnetwork URI to connect workload to.
    * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the subnetworkUri field is set. */ public boolean hasSubnetworkUri() { return networkCase_ == 5; } /** - * - * *
    * Optional. Subnetwork URI to connect workload to.
    * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The subnetworkUri. */ public java.lang.String getSubnetworkUri() { @@ -269,7 +229,8 @@ public java.lang.String getSubnetworkUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (networkCase_ == 5) { network_ = s; @@ -278,24 +239,23 @@ public java.lang.String getSubnetworkUri() { } } /** - * - * *
    * Optional. Subnetwork URI to connect workload to.
    * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for subnetworkUri. */ - public com.google.protobuf.ByteString getSubnetworkUriBytes() { + public com.google.protobuf.ByteString + getSubnetworkUriBytes() { java.lang.Object ref = ""; if (networkCase_ == 5) { 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); if (networkCase_ == 5) { network_ = b; } @@ -308,42 +268,34 @@ public com.google.protobuf.ByteString getSubnetworkUriBytes() { public static final int NETWORK_TAGS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList networkTags_; /** - * - * *
    * Optional. Tags used for network traffic control.
    * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the networkTags. */ - public com.google.protobuf.ProtocolStringList getNetworkTagsList() { + public com.google.protobuf.ProtocolStringList + getNetworkTagsList() { return networkTags_; } /** - * - * *
    * Optional. Tags used for network traffic control.
    * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of networkTags. */ public int getNetworkTagsCount() { return networkTags_.size(); } /** - * - * *
    * Optional. Tags used for network traffic control.
    * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The networkTags at the given index. */ @@ -351,32 +303,27 @@ public java.lang.String getNetworkTags(int index) { return networkTags_.get(index); } /** - * - * *
    * Optional. Tags used for network traffic control.
    * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ - public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { + public com.google.protobuf.ByteString + getNetworkTagsBytes(int index) { return networkTags_.getByteString(index); } public static final int KMS_KEY_FIELD_NUMBER = 7; private volatile java.lang.Object kmsKey_; /** - * - * *
    * Optional. The Cloud KMS key to use for encryption.
    * 
* * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The kmsKey. */ @java.lang.Override @@ -385,29 +332,29 @@ public java.lang.String getKmsKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; } } /** - * - * *
    * Optional. The Cloud KMS key to use for encryption.
    * 
* * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for kmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyBytes() { + public com.google.protobuf.ByteString + getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKey_ = b; return b; } else { @@ -416,7 +363,6 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -428,7 +374,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(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); } @@ -481,24 +428,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ExecutionConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ExecutionConfig other = - (com.google.cloud.dataproc.v1.ExecutionConfig) obj; + com.google.cloud.dataproc.v1.ExecutionConfig other = (com.google.cloud.dataproc.v1.ExecutionConfig) obj; - if (!getServiceAccount().equals(other.getServiceAccount())) return false; - if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false; - if (!getKmsKey().equals(other.getKmsKey())) return false; + if (!getServiceAccount() + .equals(other.getServiceAccount())) return false; + if (!getNetworkTagsList() + .equals(other.getNetworkTagsList())) return false; + if (!getKmsKey() + .equals(other.getKmsKey())) return false; if (!getNetworkCase().equals(other.getNetworkCase())) return false; switch (networkCase_) { case 4: - if (!getNetworkUri().equals(other.getNetworkUri())) return false; + if (!getNetworkUri() + .equals(other.getNetworkUri())) return false; break; case 5: - if (!getSubnetworkUri().equals(other.getSubnetworkUri())) return false; + if (!getSubnetworkUri() + .equals(other.getSubnetworkUri())) return false; break; case 0: default: @@ -539,136 +490,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ExecutionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ExecutionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ExecutionConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ExecutionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Execution configuration for a workload.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ExecutionConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ExecutionConfig) com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ExecutionConfig.class, - com.google.cloud.dataproc.v1.ExecutionConfig.Builder.class); + com.google.cloud.dataproc.v1.ExecutionConfig.class, com.google.cloud.dataproc.v1.ExecutionConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ExecutionConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -684,9 +629,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; } @java.lang.Override @@ -705,8 +650,7 @@ public com.google.cloud.dataproc.v1.ExecutionConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.ExecutionConfig buildPartial() { - com.google.cloud.dataproc.v1.ExecutionConfig result = - new com.google.cloud.dataproc.v1.ExecutionConfig(this); + com.google.cloud.dataproc.v1.ExecutionConfig result = new com.google.cloud.dataproc.v1.ExecutionConfig(this); int from_bitField0_ = bitField0_; result.serviceAccount_ = serviceAccount_; if (networkCase_ == 4) { @@ -730,39 +674,38 @@ public com.google.cloud.dataproc.v1.ExecutionConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ExecutionConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.ExecutionConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.ExecutionConfig)other); } else { super.mergeFrom(other); return this; @@ -790,24 +733,21 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ExecutionConfig other) { onChanged(); } switch (other.getNetworkCase()) { - case NETWORK_URI: - { - networkCase_ = 4; - network_ = other.network_; - onChanged(); - break; - } - case SUBNETWORK_URI: - { - networkCase_ = 5; - network_ = other.network_; - onChanged(); - break; - } - case NETWORK_NOT_SET: - { - break; - } + case NETWORK_URI: { + networkCase_ = 4; + network_ = other.network_; + onChanged(); + break; + } + case SUBNETWORK_URI: { + networkCase_ = 5; + network_ = other.network_; + onChanged(); + break; + } + case NETWORK_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -835,46 +775,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - serviceAccount_ = input.readStringRequireUtf8(); + case 18: { + serviceAccount_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - networkCase_ = 4; - network_ = s; - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - networkCase_ = 5; - network_ = s; - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureNetworkTagsIsMutable(); - networkTags_.add(s); - break; - } // case 50 - case 58: - { - kmsKey_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + networkCase_ = 4; + network_ = s; + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + networkCase_ = 5; + network_ = s; + break; + } // case 42 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + ensureNetworkTagsIsMutable(); + networkTags_.add(s); + break; + } // case 50 + case 58: { + kmsKey_ = input.readStringRequireUtf8(); - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -884,12 +818,12 @@ public Builder mergeFrom( } // finally return this; } - private int networkCase_ = 0; private java.lang.Object network_; - - public NetworkCase getNetworkCase() { - return NetworkCase.forNumber(networkCase_); + public NetworkCase + getNetworkCase() { + return NetworkCase.forNumber( + networkCase_); } public Builder clearNetwork() { @@ -903,20 +837,18 @@ public Builder clearNetwork() { private java.lang.Object serviceAccount_ = ""; /** - * - * *
      * Optional. Service account that used to execute workload.
      * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -925,21 +857,20 @@ public java.lang.String getServiceAccount() { } } /** - * - * *
      * Optional. Service account that used to execute workload.
      * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -947,75 +878,65 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } /** - * - * *
      * Optional. Service account that used to execute workload.
      * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount(java.lang.String value) { + public Builder setServiceAccount( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccount_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Service account that used to execute workload.
      * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearServiceAccount() { - + serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** - * - * *
      * Optional. Service account that used to execute workload.
      * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + public Builder setServiceAccountBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Network URI to connect workload to.
      * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the networkUri field is set. */ @java.lang.Override @@ -1023,14 +944,11 @@ public boolean hasNetworkUri() { return networkCase_ == 4; } /** - * - * *
      * Optional. Network URI to connect workload to.
      * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The networkUri. */ @java.lang.Override @@ -1040,7 +958,8 @@ public java.lang.String getNetworkUri() { 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(); if (networkCase_ == 4) { network_ = s; @@ -1051,25 +970,24 @@ public java.lang.String getNetworkUri() { } } /** - * - * *
      * Optional. Network URI to connect workload to.
      * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for networkUri. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkUriBytes() { + public com.google.protobuf.ByteString + getNetworkUriBytes() { java.lang.Object ref = ""; if (networkCase_ == 4) { 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); if (networkCase_ == 4) { network_ = b; } @@ -1079,35 +997,30 @@ public com.google.protobuf.ByteString getNetworkUriBytes() { } } /** - * - * *
      * Optional. Network URI to connect workload to.
      * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The networkUri to set. * @return This builder for chaining. */ - public Builder setNetworkUri(java.lang.String value) { + public Builder setNetworkUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - networkCase_ = 4; + throw new NullPointerException(); + } + networkCase_ = 4; network_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Network URI to connect workload to.
      * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearNetworkUri() { @@ -1119,22 +1032,20 @@ public Builder clearNetworkUri() { return this; } /** - * - * *
      * Optional. Network URI to connect workload to.
      * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for networkUri to set. * @return This builder for chaining. */ - public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { + public Builder setNetworkUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); networkCase_ = 4; network_ = value; onChanged(); @@ -1142,14 +1053,11 @@ public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * Optional. Subnetwork URI to connect workload to.
      * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the subnetworkUri field is set. */ @java.lang.Override @@ -1157,14 +1065,11 @@ public boolean hasSubnetworkUri() { return networkCase_ == 5; } /** - * - * *
      * Optional. Subnetwork URI to connect workload to.
      * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The subnetworkUri. */ @java.lang.Override @@ -1174,7 +1079,8 @@ public java.lang.String getSubnetworkUri() { 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(); if (networkCase_ == 5) { network_ = s; @@ -1185,25 +1091,24 @@ public java.lang.String getSubnetworkUri() { } } /** - * - * *
      * Optional. Subnetwork URI to connect workload to.
      * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for subnetworkUri. */ @java.lang.Override - public com.google.protobuf.ByteString getSubnetworkUriBytes() { + public com.google.protobuf.ByteString + getSubnetworkUriBytes() { java.lang.Object ref = ""; if (networkCase_ == 5) { 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); if (networkCase_ == 5) { network_ = b; } @@ -1213,35 +1118,30 @@ public com.google.protobuf.ByteString getSubnetworkUriBytes() { } } /** - * - * *
      * Optional. Subnetwork URI to connect workload to.
      * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The subnetworkUri to set. * @return This builder for chaining. */ - public Builder setSubnetworkUri(java.lang.String value) { + public Builder setSubnetworkUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - networkCase_ = 5; + throw new NullPointerException(); + } + networkCase_ = 5; network_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Subnetwork URI to connect workload to.
      * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSubnetworkUri() { @@ -1253,74 +1153,62 @@ public Builder clearSubnetworkUri() { return this; } /** - * - * *
      * Optional. Subnetwork URI to connect workload to.
      * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for subnetworkUri to set. * @return This builder for chaining. */ - public Builder setSubnetworkUriBytes(com.google.protobuf.ByteString value) { + public Builder setSubnetworkUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); networkCase_ = 5; network_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList networkTags_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNetworkTagsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { networkTags_ = new com.google.protobuf.LazyStringArrayList(networkTags_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Optional. Tags used for network traffic control.
      * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the networkTags. */ - public com.google.protobuf.ProtocolStringList getNetworkTagsList() { + public com.google.protobuf.ProtocolStringList + getNetworkTagsList() { return networkTags_.getUnmodifiableView(); } /** - * - * *
      * Optional. Tags used for network traffic control.
      * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of networkTags. */ public int getNetworkTagsCount() { return networkTags_.size(); } /** - * - * *
      * Optional. Tags used for network traffic control.
      * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The networkTags at the given index. */ @@ -1328,90 +1216,80 @@ public java.lang.String getNetworkTags(int index) { return networkTags_.get(index); } /** - * - * *
      * Optional. Tags used for network traffic control.
      * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ - public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { + public com.google.protobuf.ByteString + getNetworkTagsBytes(int index) { return networkTags_.getByteString(index); } /** - * - * *
      * Optional. Tags used for network traffic control.
      * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The networkTags to set. * @return This builder for chaining. */ - public Builder setNetworkTags(int index, java.lang.String value) { + public Builder setNetworkTags( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNetworkTagsIsMutable(); + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); networkTags_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. Tags used for network traffic control.
      * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The networkTags to add. * @return This builder for chaining. */ - public Builder addNetworkTags(java.lang.String value) { + public Builder addNetworkTags( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNetworkTagsIsMutable(); + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); networkTags_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. Tags used for network traffic control.
      * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The networkTags to add. * @return This builder for chaining. */ - public Builder addAllNetworkTags(java.lang.Iterable values) { + public Builder addAllNetworkTags( + java.lang.Iterable values) { ensureNetworkTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkTags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, networkTags_); onChanged(); return this; } /** - * - * *
      * Optional. Tags used for network traffic control.
      * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearNetworkTags() { @@ -1421,22 +1299,20 @@ public Builder clearNetworkTags() { return this; } /** - * - * *
      * Optional. Tags used for network traffic control.
      * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the networkTags to add. * @return This builder for chaining. */ - public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { + public Builder addNetworkTagsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNetworkTagsIsMutable(); networkTags_.add(value); onChanged(); @@ -1445,20 +1321,18 @@ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKey_ = ""; /** - * - * *
      * Optional. The Cloud KMS key to use for encryption.
      * 
* * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The kmsKey. */ public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; @@ -1467,21 +1341,20 @@ public java.lang.String getKmsKey() { } } /** - * - * *
      * Optional. The Cloud KMS key to use for encryption.
      * 
* * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for kmsKey. */ - public com.google.protobuf.ByteString getKmsKeyBytes() { + public com.google.protobuf.ByteString + getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKey_ = b; return b; } else { @@ -1489,68 +1362,61 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { } } /** - * - * *
      * Optional. The Cloud KMS key to use for encryption.
      * 
* * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKey(java.lang.String value) { + public Builder setKmsKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKey_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Cloud KMS key to use for encryption.
      * 
* * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearKmsKey() { - + kmsKey_ = getDefaultInstance().getKmsKey(); onChanged(); return this; } /** - * - * *
      * Optional. The Cloud KMS key to use for encryption.
      * 
* * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { + public Builder setKmsKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKey_ = 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); } @@ -1560,12 +1426,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ExecutionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ExecutionConfig) private static final com.google.cloud.dataproc.v1.ExecutionConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ExecutionConfig(); } @@ -1574,27 +1440,27 @@ public static com.google.cloud.dataproc.v1.ExecutionConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1609,4 +1475,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ExecutionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java similarity index 76% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java index 51aab728f4ca..20a8dc429395 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java @@ -1,202 +1,150 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; -public interface ExecutionConfigOrBuilder - extends +public interface ExecutionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ExecutionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Service account that used to execute workload.
    * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** - * - * *
    * Optional. Service account that used to execute workload.
    * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString getServiceAccountBytes(); + com.google.protobuf.ByteString + getServiceAccountBytes(); /** - * - * *
    * Optional. Network URI to connect workload to.
    * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the networkUri field is set. */ boolean hasNetworkUri(); /** - * - * *
    * Optional. Network URI to connect workload to.
    * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The networkUri. */ java.lang.String getNetworkUri(); /** - * - * *
    * Optional. Network URI to connect workload to.
    * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for networkUri. */ - com.google.protobuf.ByteString getNetworkUriBytes(); + com.google.protobuf.ByteString + getNetworkUriBytes(); /** - * - * *
    * Optional. Subnetwork URI to connect workload to.
    * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the subnetworkUri field is set. */ boolean hasSubnetworkUri(); /** - * - * *
    * Optional. Subnetwork URI to connect workload to.
    * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The subnetworkUri. */ java.lang.String getSubnetworkUri(); /** - * - * *
    * Optional. Subnetwork URI to connect workload to.
    * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for subnetworkUri. */ - com.google.protobuf.ByteString getSubnetworkUriBytes(); + com.google.protobuf.ByteString + getSubnetworkUriBytes(); /** - * - * *
    * Optional. Tags used for network traffic control.
    * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the networkTags. */ - java.util.List getNetworkTagsList(); + java.util.List + getNetworkTagsList(); /** - * - * *
    * Optional. Tags used for network traffic control.
    * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of networkTags. */ int getNetworkTagsCount(); /** - * - * *
    * Optional. Tags used for network traffic control.
    * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The networkTags at the given index. */ java.lang.String getNetworkTags(int index); /** - * - * *
    * Optional. Tags used for network traffic control.
    * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ - com.google.protobuf.ByteString getNetworkTagsBytes(int index); + com.google.protobuf.ByteString + getNetworkTagsBytes(int index); /** - * - * *
    * Optional. The Cloud KMS key to use for encryption.
    * 
* * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The kmsKey. */ java.lang.String getKmsKey(); /** - * - * *
    * Optional. The Cloud KMS key to use for encryption.
    * 
* * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for kmsKey. */ - com.google.protobuf.ByteString getKmsKeyBytes(); + com.google.protobuf.ByteString + getKmsKeyBytes(); public com.google.cloud.dataproc.v1.ExecutionConfig.NetworkCase getNetworkCase(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java similarity index 68% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java index b6a86610f189..9173cb5ea8e1 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Actions in response to failure of a resource associated with a cluster.
  * 
* * Protobuf enum {@code google.cloud.dataproc.v1.FailureAction} */ -public enum FailureAction implements com.google.protobuf.ProtocolMessageEnum { +public enum FailureAction + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * When FailureAction is unspecified, failure action defaults to NO_ACTION.
    * 
@@ -39,8 +21,6 @@ public enum FailureAction implements com.google.protobuf.ProtocolMessageEnum { */ FAILURE_ACTION_UNSPECIFIED(0), /** - * - * *
    * Take no action on failure to create a cluster resource. NO_ACTION is the
    * default.
@@ -50,8 +30,6 @@ public enum FailureAction implements com.google.protobuf.ProtocolMessageEnum {
    */
   NO_ACTION(1),
   /**
-   *
-   *
    * 
    * Delete the failed cluster resource.
    * 
@@ -63,8 +41,6 @@ public enum FailureAction implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * When FailureAction is unspecified, failure action defaults to NO_ACTION.
    * 
@@ -73,8 +49,6 @@ public enum FailureAction implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILURE_ACTION_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Take no action on failure to create a cluster resource. NO_ACTION is the
    * default.
@@ -84,8 +58,6 @@ public enum FailureAction implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int NO_ACTION_VALUE = 1;
   /**
-   *
-   *
    * 
    * Delete the failed cluster resource.
    * 
@@ -94,6 +66,7 @@ public enum FailureAction implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -118,49 +91,49 @@ public static FailureAction valueOf(int value) { */ public static FailureAction forNumber(int value) { switch (value) { - case 0: - return FAILURE_ACTION_UNSPECIFIED; - case 1: - return NO_ACTION; - case 2: - return DELETE; - default: - return null; + case 0: return FAILURE_ACTION_UNSPECIFIED; + case 1: return NO_ACTION; + case 2: return DELETE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FailureAction findValueByNumber(int number) { - return FailureAction.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + FailureAction> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FailureAction findValueByNumber(int number) { + return FailureAction.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.dataproc.v1.SharedProto.getDescriptor().getEnumTypes().get(1); } private static final FailureAction[] VALUES = values(); - public static FailureAction valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static FailureAction 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; @@ -176,3 +149,4 @@ private FailureAction(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.FailureAction) } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java similarity index 71% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java index f92c6a6cbcb1..585d1f2fb2bf 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Common config settings for resources of Compute Engine cluster
  * instances, applicable to all instances in the cluster.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.GceClusterConfig}
  */
-public final class GceClusterConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GceClusterConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GceClusterConfig)
     GceClusterConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GceClusterConfig.newBuilder() to construct.
   private GceClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GceClusterConfig() {
     zoneUri_ = "";
     networkUri_ = "";
@@ -50,44 +32,42 @@ private GceClusterConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GceClusterConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto
-        .internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 5:
         return internalGetMetadata();
       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.dataproc.v1.ClustersProto
-        .internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.GceClusterConfig.class,
-            com.google.cloud.dataproc.v1.GceClusterConfig.Builder.class);
+            com.google.cloud.dataproc.v1.GceClusterConfig.class, com.google.cloud.dataproc.v1.GceClusterConfig.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * `PrivateIpv6GoogleAccess` controls whether and how Dataproc cluster nodes
    * can communicate with Google Services through gRPC over IPv6.
@@ -98,21 +78,19 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * Protobuf enum {@code google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess}
    */
-  public enum PrivateIpv6GoogleAccess implements com.google.protobuf.ProtocolMessageEnum {
+  public enum PrivateIpv6GoogleAccess
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * If unspecified, Compute Engine default behavior will apply, which
-     * is the same as [INHERIT_FROM_SUBNETWORK][google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.INHERIT_FROM_SUBNETWORK].
+     * is the same as
+     * [INHERIT_FROM_SUBNETWORK][google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.INHERIT_FROM_SUBNETWORK].
      * 
* * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; */ PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED(0), /** - * - * *
      * Private access to and from Google Services configuration
      * inherited from the subnetwork configuration. This is the
@@ -123,8 +101,6 @@ public enum PrivateIpv6GoogleAccess implements com.google.protobuf.ProtocolMessa
      */
     INHERIT_FROM_SUBNETWORK(1),
     /**
-     *
-     *
      * 
      * Enables outbound private IPv6 access to Google Services from the Dataproc
      * cluster.
@@ -134,8 +110,6 @@ public enum PrivateIpv6GoogleAccess implements com.google.protobuf.ProtocolMessa
      */
     OUTBOUND(2),
     /**
-     *
-     *
      * 
      * Enables bidirectional private IPv6 access between Google Services and the
      * Dataproc cluster.
@@ -148,19 +122,16 @@ public enum PrivateIpv6GoogleAccess implements com.google.protobuf.ProtocolMessa
     ;
 
     /**
-     *
-     *
      * 
      * If unspecified, Compute Engine default behavior will apply, which
-     * is the same as [INHERIT_FROM_SUBNETWORK][google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.INHERIT_FROM_SUBNETWORK].
+     * is the same as
+     * [INHERIT_FROM_SUBNETWORK][google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.INHERIT_FROM_SUBNETWORK].
      * 
* * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; */ public static final int PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Private access to and from Google Services configuration
      * inherited from the subnetwork configuration. This is the
@@ -171,8 +142,6 @@ public enum PrivateIpv6GoogleAccess implements com.google.protobuf.ProtocolMessa
      */
     public static final int INHERIT_FROM_SUBNETWORK_VALUE = 1;
     /**
-     *
-     *
      * 
      * Enables outbound private IPv6 access to Google Services from the Dataproc
      * cluster.
@@ -182,8 +151,6 @@ public enum PrivateIpv6GoogleAccess implements com.google.protobuf.ProtocolMessa
      */
     public static final int OUTBOUND_VALUE = 2;
     /**
-     *
-     *
      * 
      * Enables bidirectional private IPv6 access between Google Services and the
      * Dataproc cluster.
@@ -193,6 +160,7 @@ public enum PrivateIpv6GoogleAccess implements com.google.protobuf.ProtocolMessa
      */
     public static final int BIDIRECTIONAL_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -217,16 +185,11 @@ public static PrivateIpv6GoogleAccess valueOf(int value) {
      */
     public static PrivateIpv6GoogleAccess forNumber(int value) {
       switch (value) {
-        case 0:
-          return PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED;
-        case 1:
-          return INHERIT_FROM_SUBNETWORK;
-        case 2:
-          return OUTBOUND;
-        case 3:
-          return BIDIRECTIONAL;
-        default:
-          return null;
+        case 0: return PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED;
+        case 1: return INHERIT_FROM_SUBNETWORK;
+        case 2: return OUTBOUND;
+        case 3: return BIDIRECTIONAL;
+        default: return null;
       }
     }
 
@@ -234,28 +197,28 @@ public static PrivateIpv6GoogleAccess forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        PrivateIpv6GoogleAccess> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public PrivateIpv6GoogleAccess findValueByNumber(int number) {
+              return PrivateIpv6GoogleAccess.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public PrivateIpv6GoogleAccess findValueByNumber(int number) {
-                return PrivateIpv6GoogleAccess.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.dataproc.v1.GceClusterConfig.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -264,7 +227,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static PrivateIpv6GoogleAccess valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -284,8 +248,6 @@ private PrivateIpv6GoogleAccess(int value) {
   public static final int ZONE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object zoneUri_;
   /**
-   *
-   *
    * 
    * Optional. The zone where the Compute Engine cluster will be located.
    * On a create request, it is required in the "global" region. If omitted
@@ -299,7 +261,6 @@ private PrivateIpv6GoogleAccess(int value) {
    * 
* * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The zoneUri. */ @java.lang.Override @@ -308,15 +269,14 @@ public java.lang.String getZoneUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zoneUri_ = s; return s; } } /** - * - * *
    * Optional. The zone where the Compute Engine cluster will be located.
    * On a create request, it is required in the "global" region. If omitted
@@ -330,15 +290,16 @@ public java.lang.String getZoneUri() {
    * 
* * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for zoneUri. */ @java.lang.Override - public com.google.protobuf.ByteString getZoneUriBytes() { + public com.google.protobuf.ByteString + getZoneUriBytes() { java.lang.Object ref = zoneUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); zoneUri_ = b; return b; } else { @@ -349,8 +310,6 @@ public com.google.protobuf.ByteString getZoneUriBytes() { public static final int NETWORK_URI_FIELD_NUMBER = 2; private volatile java.lang.Object networkUri_; /** - * - * *
    * Optional. The Compute Engine network to be used for machine
    * communications. Cannot be specified with subnetwork_uri. If neither
@@ -365,7 +324,6 @@ public com.google.protobuf.ByteString getZoneUriBytes() {
    * 
* * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The networkUri. */ @java.lang.Override @@ -374,15 +332,14 @@ public java.lang.String getNetworkUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkUri_ = s; return s; } } /** - * - * *
    * Optional. The Compute Engine network to be used for machine
    * communications. Cannot be specified with subnetwork_uri. If neither
@@ -397,15 +354,16 @@ public java.lang.String getNetworkUri() {
    * 
* * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for networkUri. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkUriBytes() { + public com.google.protobuf.ByteString + getNetworkUriBytes() { java.lang.Object ref = networkUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); networkUri_ = b; return b; } else { @@ -416,8 +374,6 @@ public com.google.protobuf.ByteString getNetworkUriBytes() { public static final int SUBNETWORK_URI_FIELD_NUMBER = 6; private volatile java.lang.Object subnetworkUri_; /** - * - * *
    * Optional. The Compute Engine subnetwork to be used for machine
    * communications. Cannot be specified with network_uri.
@@ -428,7 +384,6 @@ public com.google.protobuf.ByteString getNetworkUriBytes() {
    * 
* * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The subnetworkUri. */ @java.lang.Override @@ -437,15 +392,14 @@ public java.lang.String getSubnetworkUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetworkUri_ = s; return s; } } /** - * - * *
    * Optional. The Compute Engine subnetwork to be used for machine
    * communications. Cannot be specified with network_uri.
@@ -456,15 +410,16 @@ public java.lang.String getSubnetworkUri() {
    * 
* * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for subnetworkUri. */ @java.lang.Override - public com.google.protobuf.ByteString getSubnetworkUriBytes() { + public com.google.protobuf.ByteString + getSubnetworkUriBytes() { java.lang.Object ref = subnetworkUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subnetworkUri_ = b; return b; } else { @@ -475,8 +430,6 @@ public com.google.protobuf.ByteString getSubnetworkUriBytes() { public static final int INTERNAL_IP_ONLY_FIELD_NUMBER = 7; private boolean internalIpOnly_; /** - * - * *
    * Optional. If true, all instances in the cluster will only have internal IP
    * addresses. By default, clusters are not restricted to internal IP
@@ -487,7 +440,6 @@ public com.google.protobuf.ByteString getSubnetworkUriBytes() {
    * 
* * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The internalIpOnly. */ @java.lang.Override @@ -498,52 +450,33 @@ public boolean getInternalIpOnly() { public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 12; private int privateIpv6GoogleAccess_; /** - * - * *
    * Optional. The type of IPv6 access for a cluster.
    * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for privateIpv6GoogleAccess. */ - @java.lang.Override - public int getPrivateIpv6GoogleAccessValue() { + @java.lang.Override public int getPrivateIpv6GoogleAccessValue() { return privateIpv6GoogleAccess_; } /** - * - * *
    * Optional. The type of IPv6 access for a cluster.
    * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The privateIpv6GoogleAccess. */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess - getPrivateIpv6GoogleAccess() { + @java.lang.Override public com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess getPrivateIpv6GoogleAccess() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess result = - com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.valueOf( - privateIpv6GoogleAccess_); - return result == null - ? com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess result = com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.valueOf(privateIpv6GoogleAccess_); + return result == null ? com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.UNRECOGNIZED : result; } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 8; private volatile java.lang.Object serviceAccount_; /** - * - * *
    * Optional. The [Dataproc service
    * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
@@ -558,7 +491,6 @@ public int getPrivateIpv6GoogleAccessValue() {
    * 
* * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The serviceAccount. */ @java.lang.Override @@ -567,15 +499,14 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** - * - * *
    * Optional. The [Dataproc service
    * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
@@ -590,15 +521,16 @@ public java.lang.String getServiceAccount() {
    * 
* * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -609,8 +541,6 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { public static final int SERVICE_ACCOUNT_SCOPES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList serviceAccountScopes_; /** - * - * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances. The following base set of scopes is always
@@ -625,17 +555,14 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
    * * https://www.googleapis.com/auth/devstorage.full_control
    * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the serviceAccountScopes. */ - public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() { + public com.google.protobuf.ProtocolStringList + getServiceAccountScopesList() { return serviceAccountScopes_; } /** - * - * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances. The following base set of scopes is always
@@ -650,17 +577,13 @@ public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() {
    * * https://www.googleapis.com/auth/devstorage.full_control
    * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of serviceAccountScopes. */ public int getServiceAccountScopesCount() { return serviceAccountScopes_.size(); } /** - * - * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances. The following base set of scopes is always
@@ -675,9 +598,7 @@ public int getServiceAccountScopesCount() {
    * * https://www.googleapis.com/auth/devstorage.full_control
    * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ @@ -685,8 +606,6 @@ public java.lang.String getServiceAccountScopes(int index) { return serviceAccountScopes_.get(index); } /** - * - * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances. The following base set of scopes is always
@@ -701,58 +620,49 @@ public java.lang.String getServiceAccountScopes(int index) {
    * * https://www.googleapis.com/auth/devstorage.full_control
    * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) { + public com.google.protobuf.ByteString + getServiceAccountScopesBytes(int index) { return serviceAccountScopes_.getByteString(index); } public static final int TAGS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList tags_; /** - * - * *
    * The Compute Engine tags to add to all instances (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 4; - * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList getTagsList() { + public com.google.protobuf.ProtocolStringList + getTagsList() { return tags_; } /** - * - * *
    * The Compute Engine tags to add to all instances (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 4; - * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** - * - * *
    * The Compute Engine tags to add to all instances (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 4; - * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -760,40 +670,39 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** - * - * *
    * The Compute Engine tags to add to all instances (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 4; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString getTagsBytes(int index) { + public com.google.protobuf.ByteString + getTagsBytes(int index) { return tags_.getByteString(index); } public static final int METADATA_FIELD_NUMBER = 5; - private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } @@ -802,8 +711,6 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** - * - * *
    * The Compute Engine metadata entries to add to all instances (see
    * [Project and instance
@@ -812,22 +719,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 5;
    */
+
   @java.lang.Override
-  public boolean containsMetadata(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsMetadata(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /** Use {@link #getMetadataMap()} instead. */
+  /**
+   * Use {@link #getMetadataMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
-   *
-   *
    * 
    * The Compute Engine metadata entries to add to all instances (see
    * [Project and instance
@@ -837,12 +744,11 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 5;
    */
   @java.lang.Override
+
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
-   *
-   *
    * 
    * The Compute Engine metadata entries to add to all instances (see
    * [Project and instance
@@ -852,17 +758,16 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 5;
    */
   @java.lang.Override
+
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetMetadata().getMap();
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * The Compute Engine metadata entries to add to all instances (see
    * [Project and instance
@@ -872,11 +777,12 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 5;
    */
   @java.lang.Override
-  public java.lang.String getMetadataOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetMetadata().getMap();
+
+  public java.lang.String getMetadataOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -886,16 +792,11 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
   public static final int RESERVATION_AFFINITY_FIELD_NUMBER = 11;
   private com.google.cloud.dataproc.v1.ReservationAffinity reservationAffinity_;
   /**
-   *
-   *
    * 
    * Optional. Reservation Affinity for consuming Zonal reservation.
    * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the reservationAffinity field is set. */ @java.lang.Override @@ -903,54 +804,37 @@ public boolean hasReservationAffinity() { return reservationAffinity_ != null; } /** - * - * *
    * Optional. Reservation Affinity for consuming Zonal reservation.
    * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The reservationAffinity. */ @java.lang.Override public com.google.cloud.dataproc.v1.ReservationAffinity getReservationAffinity() { - return reservationAffinity_ == null - ? com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance() - : reservationAffinity_; + return reservationAffinity_ == null ? com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; } /** - * - * *
    * Optional. Reservation Affinity for consuming Zonal reservation.
    * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder - getReservationAffinityOrBuilder() { + public com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { return getReservationAffinity(); } public static final int NODE_GROUP_AFFINITY_FIELD_NUMBER = 13; private com.google.cloud.dataproc.v1.NodeGroupAffinity nodeGroupAffinity_; /** - * - * *
    * Optional. Node Group Affinity for sole-tenant clusters.
    * 
* - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the nodeGroupAffinity field is set. */ @java.lang.Override @@ -958,34 +842,23 @@ public boolean hasNodeGroupAffinity() { return nodeGroupAffinity_ != null; } /** - * - * *
    * Optional. Node Group Affinity for sole-tenant clusters.
    * 
* - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The nodeGroupAffinity. */ @java.lang.Override public com.google.cloud.dataproc.v1.NodeGroupAffinity getNodeGroupAffinity() { - return nodeGroupAffinity_ == null - ? com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance() - : nodeGroupAffinity_; + return nodeGroupAffinity_ == null ? com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance() : nodeGroupAffinity_; } /** - * - * *
    * Optional. Node Group Affinity for sole-tenant clusters.
    * 
* - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffinityOrBuilder() { @@ -995,17 +868,13 @@ public com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffin public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 14; private com.google.cloud.dataproc.v1.ShieldedInstanceConfig shieldedInstanceConfig_; /** - * - * *
-   * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+   * Optional. Shielded Instance Config for clusters using [Compute Engine
+   * Shielded
    * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
    * 
* - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the shieldedInstanceConfig field is set. */ @java.lang.Override @@ -1013,57 +882,42 @@ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfig_ != null; } /** - * - * *
-   * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+   * Optional. Shielded Instance Config for clusters using [Compute Engine
+   * Shielded
    * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
    * 
* - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The shieldedInstanceConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null - ? com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null ? com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; } /** - * - * *
-   * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+   * Optional. Shielded Instance Config for clusters using [Compute Engine
+   * Shielded
    * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
    * 
* - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { return getShieldedInstanceConfig(); } public static final int CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER = 15; private com.google.cloud.dataproc.v1.ConfidentialInstanceConfig confidentialInstanceConfig_; /** - * - * *
    * Optional. Confidential Instance Config for clusters using [Confidential
    * VMs](https://cloud.google.com/compute/confidential-vm/docs).
    * 
* - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the confidentialInstanceConfig field is set. */ @java.lang.Override @@ -1071,45 +925,32 @@ public boolean hasConfidentialInstanceConfig() { return confidentialInstanceConfig_ != null; } /** - * - * *
    * Optional. Confidential Instance Config for clusters using [Confidential
    * VMs](https://cloud.google.com/compute/confidential-vm/docs).
    * 
* - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The confidentialInstanceConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getConfidentialInstanceConfig() { - return confidentialInstanceConfig_ == null - ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance() - : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; } /** - * - * *
    * Optional. Confidential Instance Config for clusters using [Confidential
    * VMs](https://cloud.google.com/compute/confidential-vm/docs).
    * 
* - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder - getConfidentialInstanceConfigOrBuilder() { + public com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { return getConfidentialInstanceConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1121,7 +962,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(zoneUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, zoneUri_); } @@ -1129,14 +971,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, networkUri_); } for (int i = 0; i < serviceAccountScopes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, serviceAccountScopes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceAccountScopes_.getRaw(i)); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 5); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, subnetworkUri_); } @@ -1149,10 +994,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (reservationAffinity_ != null) { output.writeMessage(11, getReservationAffinity()); } - if (privateIpv6GoogleAccess_ - != com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess - .PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED - .getNumber()) { + if (privateIpv6GoogleAccess_ != com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED.getNumber()) { output.writeEnum(12, privateIpv6GoogleAccess_); } if (nodeGroupAffinity_ != null) { @@ -1195,46 +1037,45 @@ public int getSerializedSize() { size += dataSize; size += 1 * getTagsList().size(); } - for (java.util.Map.Entry entry : - internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry metadata__ = - MetadataDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, metadata__); + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, metadata__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, subnetworkUri_); } if (internalIpOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, internalIpOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, internalIpOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, serviceAccount_); } if (reservationAffinity_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(11, getReservationAffinity()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getReservationAffinity()); } - if (privateIpv6GoogleAccess_ - != com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess - .PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, privateIpv6GoogleAccess_); + if (privateIpv6GoogleAccess_ != com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, privateIpv6GoogleAccess_); } if (nodeGroupAffinity_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getNodeGroupAffinity()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getNodeGroupAffinity()); } if (shieldedInstanceConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(14, getShieldedInstanceConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getShieldedInstanceConfig()); } if (confidentialInstanceConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, getConfidentialInstanceConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getConfidentialInstanceConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1244,39 +1085,49 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.GceClusterConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GceClusterConfig other = - (com.google.cloud.dataproc.v1.GceClusterConfig) obj; + com.google.cloud.dataproc.v1.GceClusterConfig other = (com.google.cloud.dataproc.v1.GceClusterConfig) obj; - if (!getZoneUri().equals(other.getZoneUri())) return false; - if (!getNetworkUri().equals(other.getNetworkUri())) return false; - if (!getSubnetworkUri().equals(other.getSubnetworkUri())) return false; - if (getInternalIpOnly() != other.getInternalIpOnly()) return false; + if (!getZoneUri() + .equals(other.getZoneUri())) return false; + if (!getNetworkUri() + .equals(other.getNetworkUri())) return false; + if (!getSubnetworkUri() + .equals(other.getSubnetworkUri())) return false; + if (getInternalIpOnly() + != other.getInternalIpOnly()) return false; if (privateIpv6GoogleAccess_ != other.privateIpv6GoogleAccess_) return false; - if (!getServiceAccount().equals(other.getServiceAccount())) return false; - if (!getServiceAccountScopesList().equals(other.getServiceAccountScopesList())) return false; - if (!getTagsList().equals(other.getTagsList())) return false; - if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; + if (!getServiceAccount() + .equals(other.getServiceAccount())) return false; + if (!getServiceAccountScopesList() + .equals(other.getServiceAccountScopesList())) return false; + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (!internalGetMetadata().equals( + other.internalGetMetadata())) return false; if (hasReservationAffinity() != other.hasReservationAffinity()) return false; if (hasReservationAffinity()) { - if (!getReservationAffinity().equals(other.getReservationAffinity())) return false; + if (!getReservationAffinity() + .equals(other.getReservationAffinity())) return false; } if (hasNodeGroupAffinity() != other.hasNodeGroupAffinity()) return false; if (hasNodeGroupAffinity()) { - if (!getNodeGroupAffinity().equals(other.getNodeGroupAffinity())) return false; + if (!getNodeGroupAffinity() + .equals(other.getNodeGroupAffinity())) return false; } if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; if (hasShieldedInstanceConfig()) { - if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; + if (!getShieldedInstanceConfig() + .equals(other.getShieldedInstanceConfig())) return false; } if (hasConfidentialInstanceConfig() != other.hasConfidentialInstanceConfig()) return false; if (hasConfidentialInstanceConfig()) { - if (!getConfidentialInstanceConfig().equals(other.getConfidentialInstanceConfig())) - return false; + if (!getConfidentialInstanceConfig() + .equals(other.getConfidentialInstanceConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1296,7 +1147,8 @@ public int hashCode() { hash = (37 * hash) + SUBNETWORK_URI_FIELD_NUMBER; hash = (53 * hash) + getSubnetworkUri().hashCode(); hash = (37 * hash) + INTERNAL_IP_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInternalIpOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInternalIpOnly()); hash = (37 * hash) + PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER; hash = (53 * hash) + privateIpv6GoogleAccess_; hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; @@ -1334,104 +1186,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GceClusterConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GceClusterConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GceClusterConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.GceClusterConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Common config settings for resources of Compute Engine cluster
    * instances, applicable to all instances in the cluster.
@@ -1439,52 +1284,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.GceClusterConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GceClusterConfig)
       com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetMetadata();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetMutableMetadata();
         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.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.GceClusterConfig.class,
-              com.google.cloud.dataproc.v1.GceClusterConfig.Builder.class);
+              com.google.cloud.dataproc.v1.GceClusterConfig.class, com.google.cloud.dataproc.v1.GceClusterConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.GceClusterConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1533,9 +1381,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1554,8 +1402,7 @@ public com.google.cloud.dataproc.v1.GceClusterConfig build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.GceClusterConfig buildPartial() {
-      com.google.cloud.dataproc.v1.GceClusterConfig result =
-          new com.google.cloud.dataproc.v1.GceClusterConfig(this);
+      com.google.cloud.dataproc.v1.GceClusterConfig result = new com.google.cloud.dataproc.v1.GceClusterConfig(this);
       int from_bitField0_ = bitField0_;
       result.zoneUri_ = zoneUri_;
       result.networkUri_ = networkUri_;
@@ -1603,39 +1450,38 @@ public com.google.cloud.dataproc.v1.GceClusterConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.GceClusterConfig) {
-        return mergeFrom((com.google.cloud.dataproc.v1.GceClusterConfig) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.GceClusterConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1686,7 +1532,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) {
         }
         onChanged();
       }
-      internalGetMutableMetadata().mergeFrom(other.internalGetMetadata());
+      internalGetMutableMetadata().mergeFrom(
+          other.internalGetMetadata());
       if (other.hasReservationAffinity()) {
         mergeReservationAffinity(other.getReservationAffinity());
       }
@@ -1725,102 +1572,90 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                zoneUri_ = input.readStringRequireUtf8();
+            case 10: {
+              zoneUri_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                networkUri_ = input.readStringRequireUtf8();
+              break;
+            } // case 10
+            case 18: {
+              networkUri_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureServiceAccountScopesIsMutable();
-                serviceAccountScopes_.add(s);
-                break;
-              } // case 26
-            case 34:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureTagsIsMutable();
-                tags_.add(s);
-                break;
-              } // case 34
-            case 42:
-              {
-                com.google.protobuf.MapEntry metadata__ =
-                    input.readMessage(
-                        MetadataDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableMetadata()
-                    .getMutableMap()
-                    .put(metadata__.getKey(), metadata__.getValue());
-                break;
-              } // case 42
-            case 50:
-              {
-                subnetworkUri_ = input.readStringRequireUtf8();
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureServiceAccountScopesIsMutable();
+              serviceAccountScopes_.add(s);
+              break;
+            } // case 26
+            case 34: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureTagsIsMutable();
+              tags_.add(s);
+              break;
+            } // case 34
+            case 42: {
+              com.google.protobuf.MapEntry
+              metadata__ = input.readMessage(
+                  MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableMetadata().getMutableMap().put(
+                  metadata__.getKey(), metadata__.getValue());
+              break;
+            } // case 42
+            case 50: {
+              subnetworkUri_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 50
-            case 56:
-              {
-                internalIpOnly_ = input.readBool();
+              break;
+            } // case 50
+            case 56: {
+              internalIpOnly_ = input.readBool();
 
-                break;
-              } // case 56
-            case 66:
-              {
-                serviceAccount_ = input.readStringRequireUtf8();
+              break;
+            } // case 56
+            case 66: {
+              serviceAccount_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 66
-            case 90:
-              {
-                input.readMessage(
-                    getReservationAffinityFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 66
+            case 90: {
+              input.readMessage(
+                  getReservationAffinityFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 90
-            case 96:
-              {
-                privateIpv6GoogleAccess_ = input.readEnum();
+              break;
+            } // case 90
+            case 96: {
+              privateIpv6GoogleAccess_ = input.readEnum();
 
-                break;
-              } // case 96
-            case 106:
-              {
-                input.readMessage(
-                    getNodeGroupAffinityFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 96
+            case 106: {
+              input.readMessage(
+                  getNodeGroupAffinityFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 106
-            case 114:
-              {
-                input.readMessage(
-                    getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 106
+            case 114: {
+              input.readMessage(
+                  getShieldedInstanceConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 114
-            case 122:
-              {
-                input.readMessage(
-                    getConfidentialInstanceConfigFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 114
+            case 122: {
+              input.readMessage(
+                  getConfidentialInstanceConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 122
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 122
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1830,13 +1665,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object zoneUri_ = "";
     /**
-     *
-     *
      * 
      * Optional. The zone where the Compute Engine cluster will be located.
      * On a create request, it is required in the "global" region. If omitted
@@ -1850,13 +1682,13 @@ public Builder mergeFrom(
      * 
* * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The zoneUri. */ public java.lang.String getZoneUri() { java.lang.Object ref = zoneUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zoneUri_ = s; return s; @@ -1865,8 +1697,6 @@ public java.lang.String getZoneUri() { } } /** - * - * *
      * Optional. The zone where the Compute Engine cluster will be located.
      * On a create request, it is required in the "global" region. If omitted
@@ -1880,14 +1710,15 @@ public java.lang.String getZoneUri() {
      * 
* * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for zoneUri. */ - public com.google.protobuf.ByteString getZoneUriBytes() { + public com.google.protobuf.ByteString + getZoneUriBytes() { java.lang.Object ref = zoneUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); zoneUri_ = b; return b; } else { @@ -1895,8 +1726,6 @@ public com.google.protobuf.ByteString getZoneUriBytes() { } } /** - * - * *
      * Optional. The zone where the Compute Engine cluster will be located.
      * On a create request, it is required in the "global" region. If omitted
@@ -1910,22 +1739,20 @@ public com.google.protobuf.ByteString getZoneUriBytes() {
      * 
* * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The zoneUri to set. * @return This builder for chaining. */ - public Builder setZoneUri(java.lang.String value) { + public Builder setZoneUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + zoneUri_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The zone where the Compute Engine cluster will be located.
      * On a create request, it is required in the "global" region. If omitted
@@ -1939,18 +1766,15 @@ public Builder setZoneUri(java.lang.String value) {
      * 
* * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearZoneUri() { - + zoneUri_ = getDefaultInstance().getZoneUri(); onChanged(); return this; } /** - * - * *
      * Optional. The zone where the Compute Engine cluster will be located.
      * On a create request, it is required in the "global" region. If omitted
@@ -1964,16 +1788,16 @@ public Builder clearZoneUri() {
      * 
* * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for zoneUri to set. * @return This builder for chaining. */ - public Builder setZoneUriBytes(com.google.protobuf.ByteString value) { + public Builder setZoneUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zoneUri_ = value; onChanged(); return this; @@ -1981,8 +1805,6 @@ public Builder setZoneUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object networkUri_ = ""; /** - * - * *
      * Optional. The Compute Engine network to be used for machine
      * communications. Cannot be specified with subnetwork_uri. If neither
@@ -1997,13 +1819,13 @@ public Builder setZoneUriBytes(com.google.protobuf.ByteString value) {
      * 
* * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The networkUri. */ public java.lang.String getNetworkUri() { java.lang.Object ref = networkUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkUri_ = s; return s; @@ -2012,8 +1834,6 @@ public java.lang.String getNetworkUri() { } } /** - * - * *
      * Optional. The Compute Engine network to be used for machine
      * communications. Cannot be specified with subnetwork_uri. If neither
@@ -2028,14 +1848,15 @@ public java.lang.String getNetworkUri() {
      * 
* * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for networkUri. */ - public com.google.protobuf.ByteString getNetworkUriBytes() { + public com.google.protobuf.ByteString + getNetworkUriBytes() { java.lang.Object ref = networkUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); networkUri_ = b; return b; } else { @@ -2043,8 +1864,6 @@ public com.google.protobuf.ByteString getNetworkUriBytes() { } } /** - * - * *
      * Optional. The Compute Engine network to be used for machine
      * communications. Cannot be specified with subnetwork_uri. If neither
@@ -2059,22 +1878,20 @@ public com.google.protobuf.ByteString getNetworkUriBytes() {
      * 
* * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The networkUri to set. * @return This builder for chaining. */ - public Builder setNetworkUri(java.lang.String value) { + public Builder setNetworkUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + networkUri_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Compute Engine network to be used for machine
      * communications. Cannot be specified with subnetwork_uri. If neither
@@ -2089,18 +1906,15 @@ public Builder setNetworkUri(java.lang.String value) {
      * 
* * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearNetworkUri() { - + networkUri_ = getDefaultInstance().getNetworkUri(); onChanged(); return this; } /** - * - * *
      * Optional. The Compute Engine network to be used for machine
      * communications. Cannot be specified with subnetwork_uri. If neither
@@ -2115,16 +1929,16 @@ public Builder clearNetworkUri() {
      * 
* * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for networkUri to set. * @return This builder for chaining. */ - public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { + public Builder setNetworkUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkUri_ = value; onChanged(); return this; @@ -2132,8 +1946,6 @@ public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object subnetworkUri_ = ""; /** - * - * *
      * Optional. The Compute Engine subnetwork to be used for machine
      * communications. Cannot be specified with network_uri.
@@ -2144,13 +1956,13 @@ public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) {
      * 
* * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The subnetworkUri. */ public java.lang.String getSubnetworkUri() { java.lang.Object ref = subnetworkUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetworkUri_ = s; return s; @@ -2159,8 +1971,6 @@ public java.lang.String getSubnetworkUri() { } } /** - * - * *
      * Optional. The Compute Engine subnetwork to be used for machine
      * communications. Cannot be specified with network_uri.
@@ -2171,14 +1981,15 @@ public java.lang.String getSubnetworkUri() {
      * 
* * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for subnetworkUri. */ - public com.google.protobuf.ByteString getSubnetworkUriBytes() { + public com.google.protobuf.ByteString + getSubnetworkUriBytes() { java.lang.Object ref = subnetworkUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subnetworkUri_ = b; return b; } else { @@ -2186,8 +1997,6 @@ public com.google.protobuf.ByteString getSubnetworkUriBytes() { } } /** - * - * *
      * Optional. The Compute Engine subnetwork to be used for machine
      * communications. Cannot be specified with network_uri.
@@ -2198,22 +2007,20 @@ public com.google.protobuf.ByteString getSubnetworkUriBytes() {
      * 
* * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The subnetworkUri to set. * @return This builder for chaining. */ - public Builder setSubnetworkUri(java.lang.String value) { + public Builder setSubnetworkUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subnetworkUri_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Compute Engine subnetwork to be used for machine
      * communications. Cannot be specified with network_uri.
@@ -2224,18 +2031,15 @@ public Builder setSubnetworkUri(java.lang.String value) {
      * 
* * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSubnetworkUri() { - + subnetworkUri_ = getDefaultInstance().getSubnetworkUri(); onChanged(); return this; } /** - * - * *
      * Optional. The Compute Engine subnetwork to be used for machine
      * communications. Cannot be specified with network_uri.
@@ -2246,25 +2050,23 @@ public Builder clearSubnetworkUri() {
      * 
* * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for subnetworkUri to set. * @return This builder for chaining. */ - public Builder setSubnetworkUriBytes(com.google.protobuf.ByteString value) { + public Builder setSubnetworkUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnetworkUri_ = value; onChanged(); return this; } - private boolean internalIpOnly_; + private boolean internalIpOnly_ ; /** - * - * *
      * Optional. If true, all instances in the cluster will only have internal IP
      * addresses. By default, clusters are not restricted to internal IP
@@ -2275,7 +2077,6 @@ public Builder setSubnetworkUriBytes(com.google.protobuf.ByteString value) {
      * 
* * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The internalIpOnly. */ @java.lang.Override @@ -2283,8 +2084,6 @@ public boolean getInternalIpOnly() { return internalIpOnly_; } /** - * - * *
      * Optional. If true, all instances in the cluster will only have internal IP
      * addresses. By default, clusters are not restricted to internal IP
@@ -2295,19 +2094,16 @@ public boolean getInternalIpOnly() {
      * 
* * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The internalIpOnly to set. * @return This builder for chaining. */ public Builder setInternalIpOnly(boolean value) { - + internalIpOnly_ = value; onChanged(); return this; } /** - * - * *
      * Optional. If true, all instances in the cluster will only have internal IP
      * addresses. By default, clusters are not restricted to internal IP
@@ -2318,11 +2114,10 @@ public Builder setInternalIpOnly(boolean value) {
      * 
* * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearInternalIpOnly() { - + internalIpOnly_ = false; onChanged(); return this; @@ -2330,105 +2125,73 @@ public Builder clearInternalIpOnly() { private int privateIpv6GoogleAccess_ = 0; /** - * - * *
      * Optional. The type of IPv6 access for a cluster.
      * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for privateIpv6GoogleAccess. */ - @java.lang.Override - public int getPrivateIpv6GoogleAccessValue() { + @java.lang.Override public int getPrivateIpv6GoogleAccessValue() { return privateIpv6GoogleAccess_; } /** - * - * *
      * Optional. The type of IPv6 access for a cluster.
      * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for privateIpv6GoogleAccess to set. * @return This builder for chaining. */ public Builder setPrivateIpv6GoogleAccessValue(int value) { - + privateIpv6GoogleAccess_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The type of IPv6 access for a cluster.
      * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The privateIpv6GoogleAccess. */ @java.lang.Override - public com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess - getPrivateIpv6GoogleAccess() { + public com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess getPrivateIpv6GoogleAccess() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess result = - com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.valueOf( - privateIpv6GoogleAccess_); - return result == null - ? com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess result = com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.valueOf(privateIpv6GoogleAccess_); + return result == null ? com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The type of IPv6 access for a cluster.
      * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; * @param value The privateIpv6GoogleAccess to set. * @return This builder for chaining. */ - public Builder setPrivateIpv6GoogleAccess( - com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess value) { + public Builder setPrivateIpv6GoogleAccess(com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess value) { if (value == null) { throw new NullPointerException(); } - + privateIpv6GoogleAccess_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. The type of IPv6 access for a cluster.
      * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearPrivateIpv6GoogleAccess() { - + privateIpv6GoogleAccess_ = 0; onChanged(); return this; @@ -2436,8 +2199,6 @@ public Builder clearPrivateIpv6GoogleAccess() { private java.lang.Object serviceAccount_ = ""; /** - * - * *
      * Optional. The [Dataproc service
      * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
@@ -2452,13 +2213,13 @@ public Builder clearPrivateIpv6GoogleAccess() {
      * 
* * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -2467,8 +2228,6 @@ public java.lang.String getServiceAccount() { } } /** - * - * *
      * Optional. The [Dataproc service
      * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
@@ -2483,14 +2242,15 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -2498,8 +2258,6 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } /** - * - * *
      * Optional. The [Dataproc service
      * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
@@ -2514,22 +2272,20 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
      * 
* * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount(java.lang.String value) { + public Builder setServiceAccount( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccount_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The [Dataproc service
      * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
@@ -2544,18 +2300,15 @@ public Builder setServiceAccount(java.lang.String value) {
      * 
* * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearServiceAccount() { - + serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** - * - * *
      * Optional. The [Dataproc service
      * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
@@ -2570,33 +2323,29 @@ public Builder clearServiceAccount() {
      * 
* * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + public Builder setServiceAccountBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList serviceAccountScopes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureServiceAccountScopesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { serviceAccountScopes_ = new com.google.protobuf.LazyStringArrayList(serviceAccountScopes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances. The following base set of scopes is always
@@ -2611,17 +2360,14 @@ private void ensureServiceAccountScopesIsMutable() {
      * * https://www.googleapis.com/auth/devstorage.full_control
      * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the serviceAccountScopes. */ - public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() { + public com.google.protobuf.ProtocolStringList + getServiceAccountScopesList() { return serviceAccountScopes_.getUnmodifiableView(); } /** - * - * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances. The following base set of scopes is always
@@ -2636,17 +2382,13 @@ public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() {
      * * https://www.googleapis.com/auth/devstorage.full_control
      * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of serviceAccountScopes. */ public int getServiceAccountScopesCount() { return serviceAccountScopes_.size(); } /** - * - * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances. The following base set of scopes is always
@@ -2661,9 +2403,7 @@ public int getServiceAccountScopesCount() {
      * * https://www.googleapis.com/auth/devstorage.full_control
      * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ @@ -2671,8 +2411,6 @@ public java.lang.String getServiceAccountScopes(int index) { return serviceAccountScopes_.get(index); } /** - * - * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances. The following base set of scopes is always
@@ -2687,18 +2425,15 @@ public java.lang.String getServiceAccountScopes(int index) {
      * * https://www.googleapis.com/auth/devstorage.full_control
      * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) { + public com.google.protobuf.ByteString + getServiceAccountScopesBytes(int index) { return serviceAccountScopes_.getByteString(index); } /** - * - * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances. The following base set of scopes is always
@@ -2713,25 +2448,22 @@ public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) {
      * * https://www.googleapis.com/auth/devstorage.full_control
      * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The serviceAccountScopes to set. * @return This builder for chaining. */ - public Builder setServiceAccountScopes(int index, java.lang.String value) { + public Builder setServiceAccountScopes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureServiceAccountScopesIsMutable(); + throw new NullPointerException(); + } + ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances. The following base set of scopes is always
@@ -2746,24 +2478,21 @@ public Builder setServiceAccountScopes(int index, java.lang.String value) {
      * * https://www.googleapis.com/auth/devstorage.full_control
      * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addServiceAccountScopes(java.lang.String value) { + public Builder addServiceAccountScopes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureServiceAccountScopesIsMutable(); + throw new NullPointerException(); + } + ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances. The following base set of scopes is always
@@ -2778,21 +2507,19 @@ public Builder addServiceAccountScopes(java.lang.String value) {
      * * https://www.googleapis.com/auth/devstorage.full_control
      * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param values The serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addAllServiceAccountScopes(java.lang.Iterable values) { + public Builder addAllServiceAccountScopes( + java.lang.Iterable values) { ensureServiceAccountScopesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceAccountScopes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serviceAccountScopes_); onChanged(); return this; } /** - * - * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances. The following base set of scopes is always
@@ -2807,9 +2534,7 @@ public Builder addAllServiceAccountScopes(java.lang.Iterable v
      * * https://www.googleapis.com/auth/devstorage.full_control
      * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearServiceAccountScopes() { @@ -2819,8 +2544,6 @@ public Builder clearServiceAccountScopes() { return this; } /** - * - * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances. The following base set of scopes is always
@@ -2835,72 +2558,61 @@ public Builder clearServiceAccountScopes() {
      * * https://www.googleapis.com/auth/devstorage.full_control
      * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addServiceAccountScopesBytes(com.google.protobuf.ByteString value) { + public Builder addServiceAccountScopesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList tags_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * The Compute Engine tags to add to all instances (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 4; - * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList getTagsList() { + public com.google.protobuf.ProtocolStringList + getTagsList() { return tags_.getUnmodifiableView(); } /** - * - * *
      * The Compute Engine tags to add to all instances (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 4; - * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** - * - * *
      * The Compute Engine tags to add to all instances (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 4; - * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -2908,95 +2620,85 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** - * - * *
      * The Compute Engine tags to add to all instances (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 4; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString getTagsBytes(int index) { + public com.google.protobuf.ByteString + getTagsBytes(int index) { return tags_.getByteString(index); } /** - * - * *
      * The Compute Engine tags to add to all instances (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 4; - * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags(int index, java.lang.String value) { + public Builder setTags( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** - * - * *
      * The Compute Engine tags to add to all instances (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 4; - * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags(java.lang.String value) { + public Builder addTags( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** - * - * *
      * The Compute Engine tags to add to all instances (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 4; - * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags(java.lang.Iterable values) { + public Builder addAllTags( + java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); onChanged(); return this; } /** - * - * *
      * The Compute Engine tags to add to all instances (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 4; - * * @return This builder for chaining. */ public Builder clearTags() { @@ -3006,45 +2708,43 @@ public Builder clearTags() { return this; } /** - * - * *
      * The Compute Engine tags to add to all instances (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 4; - * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes(com.google.protobuf.ByteString value) { + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } - private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged(); - ; + internalGetMutableMetadata() { + onChanged();; if (metadata_ == null) { - metadata_ = - com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); @@ -3056,8 +2756,6 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** - * - * *
      * The Compute Engine metadata entries to add to all instances (see
      * [Project and instance
@@ -3066,22 +2764,22 @@ public int getMetadataCount() {
      *
      * map<string, string> metadata = 5;
      */
+
     @java.lang.Override
-    public boolean containsMetadata(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsMetadata(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetMetadata().getMap().containsKey(key);
     }
-    /** Use {@link #getMetadataMap()} instead. */
+    /**
+     * Use {@link #getMetadataMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMetadata() {
       return getMetadataMap();
     }
     /**
-     *
-     *
      * 
      * The Compute Engine metadata entries to add to all instances (see
      * [Project and instance
@@ -3091,12 +2789,11 @@ public java.util.Map getMetadata() {
      * map<string, string> metadata = 5;
      */
     @java.lang.Override
+
     public java.util.Map getMetadataMap() {
       return internalGetMetadata().getMap();
     }
     /**
-     *
-     *
      * 
      * The Compute Engine metadata entries to add to all instances (see
      * [Project and instance
@@ -3106,17 +2803,16 @@ public java.util.Map getMetadataMap() {
      * map<string, string> metadata = 5;
      */
     @java.lang.Override
+
     public java.lang.String getMetadataOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetMetadata().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * The Compute Engine metadata entries to add to all instances (see
      * [Project and instance
@@ -3126,11 +2822,12 @@ public java.lang.String getMetadataOrDefault(
      * map<string, string> metadata = 5;
      */
     @java.lang.Override
-    public java.lang.String getMetadataOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetMetadata().getMap();
+
+    public java.lang.String getMetadataOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3138,12 +2835,11 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
     }
 
     public Builder clearMetadata() {
-      internalGetMutableMetadata().getMutableMap().clear();
+      internalGetMutableMetadata().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * The Compute Engine metadata entries to add to all instances (see
      * [Project and instance
@@ -3152,21 +2848,23 @@ public Builder clearMetadata() {
      *
      * map<string, string> metadata = 5;
      */
-    public Builder removeMetadata(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableMetadata().getMutableMap().remove(key);
+
+    public Builder removeMetadata(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableMetadata().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableMetadata() {
+    public java.util.Map
+    getMutableMetadata() {
       return internalGetMutableMetadata().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * The Compute Engine metadata entries to add to all instances (see
      * [Project and instance
@@ -3175,20 +2873,19 @@ public java.util.Map getMutableMetadata() {
      *
      * map<string, string> metadata = 5;
      */
-    public Builder putMetadata(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putMetadata(
+        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");
+}
 
-      internalGetMutableMetadata().getMutableMap().put(key, value);
+      internalGetMutableMetadata().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * The Compute Engine metadata entries to add to all instances (see
      * [Project and instance
@@ -3197,65 +2894,49 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> metadata = 5;
      */
-    public Builder putAllMetadata(java.util.Map values) {
-      internalGetMutableMetadata().getMutableMap().putAll(values);
+
+    public Builder putAllMetadata(
+        java.util.Map values) {
+      internalGetMutableMetadata().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private com.google.cloud.dataproc.v1.ReservationAffinity reservationAffinity_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dataproc.v1.ReservationAffinity,
-            com.google.cloud.dataproc.v1.ReservationAffinity.Builder,
-            com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder>
-        reservationAffinityBuilder_;
+        com.google.cloud.dataproc.v1.ReservationAffinity, com.google.cloud.dataproc.v1.ReservationAffinity.Builder, com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder> reservationAffinityBuilder_;
     /**
-     *
-     *
      * 
      * Optional. Reservation Affinity for consuming Zonal reservation.
      * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the reservationAffinity field is set. */ public boolean hasReservationAffinity() { return reservationAffinityBuilder_ != null || reservationAffinity_ != null; } /** - * - * *
      * Optional. Reservation Affinity for consuming Zonal reservation.
      * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The reservationAffinity. */ public com.google.cloud.dataproc.v1.ReservationAffinity getReservationAffinity() { if (reservationAffinityBuilder_ == null) { - return reservationAffinity_ == null - ? com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance() - : reservationAffinity_; + return reservationAffinity_ == null ? com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; } else { return reservationAffinityBuilder_.getMessage(); } } /** - * - * *
      * Optional. Reservation Affinity for consuming Zonal reservation.
      * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setReservationAffinity(com.google.cloud.dataproc.v1.ReservationAffinity value) { if (reservationAffinityBuilder_ == null) { @@ -3271,15 +2952,11 @@ public Builder setReservationAffinity(com.google.cloud.dataproc.v1.ReservationAf return this; } /** - * - * *
      * Optional. Reservation Affinity for consuming Zonal reservation.
      * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setReservationAffinity( com.google.cloud.dataproc.v1.ReservationAffinity.Builder builderForValue) { @@ -3293,24 +2970,17 @@ public Builder setReservationAffinity( return this; } /** - * - * *
      * Optional. Reservation Affinity for consuming Zonal reservation.
      * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeReservationAffinity( - com.google.cloud.dataproc.v1.ReservationAffinity value) { + public Builder mergeReservationAffinity(com.google.cloud.dataproc.v1.ReservationAffinity value) { if (reservationAffinityBuilder_ == null) { if (reservationAffinity_ != null) { reservationAffinity_ = - com.google.cloud.dataproc.v1.ReservationAffinity.newBuilder(reservationAffinity_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.ReservationAffinity.newBuilder(reservationAffinity_).mergeFrom(value).buildPartial(); } else { reservationAffinity_ = value; } @@ -3322,15 +2992,11 @@ public Builder mergeReservationAffinity( return this; } /** - * - * *
      * Optional. Reservation Affinity for consuming Zonal reservation.
      * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearReservationAffinity() { if (reservationAffinityBuilder_ == null) { @@ -3344,66 +3010,48 @@ public Builder clearReservationAffinity() { return this; } /** - * - * *
      * Optional. Reservation Affinity for consuming Zonal reservation.
      * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.ReservationAffinity.Builder - getReservationAffinityBuilder() { - + public com.google.cloud.dataproc.v1.ReservationAffinity.Builder getReservationAffinityBuilder() { + onChanged(); return getReservationAffinityFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Reservation Affinity for consuming Zonal reservation.
      * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder - getReservationAffinityOrBuilder() { + public com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { if (reservationAffinityBuilder_ != null) { return reservationAffinityBuilder_.getMessageOrBuilder(); } else { - return reservationAffinity_ == null - ? com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance() - : reservationAffinity_; + return reservationAffinity_ == null ? + com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; } } /** - * - * *
      * Optional. Reservation Affinity for consuming Zonal reservation.
      * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ReservationAffinity, - com.google.cloud.dataproc.v1.ReservationAffinity.Builder, - com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder> + com.google.cloud.dataproc.v1.ReservationAffinity, com.google.cloud.dataproc.v1.ReservationAffinity.Builder, com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder> getReservationAffinityFieldBuilder() { if (reservationAffinityBuilder_ == null) { - reservationAffinityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ReservationAffinity, - com.google.cloud.dataproc.v1.ReservationAffinity.Builder, - com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder>( - getReservationAffinity(), getParentForChildren(), isClean()); + reservationAffinityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ReservationAffinity, com.google.cloud.dataproc.v1.ReservationAffinity.Builder, com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder>( + getReservationAffinity(), + getParentForChildren(), + isClean()); reservationAffinity_ = null; } return reservationAffinityBuilder_; @@ -3411,58 +3059,39 @@ public Builder clearReservationAffinity() { private com.google.cloud.dataproc.v1.NodeGroupAffinity nodeGroupAffinity_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeGroupAffinity, - com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder, - com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder> - nodeGroupAffinityBuilder_; + com.google.cloud.dataproc.v1.NodeGroupAffinity, com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder, com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder> nodeGroupAffinityBuilder_; /** - * - * *
      * Optional. Node Group Affinity for sole-tenant clusters.
      * 
* - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the nodeGroupAffinity field is set. */ public boolean hasNodeGroupAffinity() { return nodeGroupAffinityBuilder_ != null || nodeGroupAffinity_ != null; } /** - * - * *
      * Optional. Node Group Affinity for sole-tenant clusters.
      * 
* - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The nodeGroupAffinity. */ public com.google.cloud.dataproc.v1.NodeGroupAffinity getNodeGroupAffinity() { if (nodeGroupAffinityBuilder_ == null) { - return nodeGroupAffinity_ == null - ? com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance() - : nodeGroupAffinity_; + return nodeGroupAffinity_ == null ? com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance() : nodeGroupAffinity_; } else { return nodeGroupAffinityBuilder_.getMessage(); } } /** - * - * *
      * Optional. Node Group Affinity for sole-tenant clusters.
      * 
* - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setNodeGroupAffinity(com.google.cloud.dataproc.v1.NodeGroupAffinity value) { if (nodeGroupAffinityBuilder_ == null) { @@ -3478,15 +3107,11 @@ public Builder setNodeGroupAffinity(com.google.cloud.dataproc.v1.NodeGroupAffini return this; } /** - * - * *
      * Optional. Node Group Affinity for sole-tenant clusters.
      * 
* - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setNodeGroupAffinity( com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder builderForValue) { @@ -3500,23 +3125,17 @@ public Builder setNodeGroupAffinity( return this; } /** - * - * *
      * Optional. Node Group Affinity for sole-tenant clusters.
      * 
* - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeNodeGroupAffinity(com.google.cloud.dataproc.v1.NodeGroupAffinity value) { if (nodeGroupAffinityBuilder_ == null) { if (nodeGroupAffinity_ != null) { nodeGroupAffinity_ = - com.google.cloud.dataproc.v1.NodeGroupAffinity.newBuilder(nodeGroupAffinity_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.NodeGroupAffinity.newBuilder(nodeGroupAffinity_).mergeFrom(value).buildPartial(); } else { nodeGroupAffinity_ = value; } @@ -3528,15 +3147,11 @@ public Builder mergeNodeGroupAffinity(com.google.cloud.dataproc.v1.NodeGroupAffi return this; } /** - * - * *
      * Optional. Node Group Affinity for sole-tenant clusters.
      * 
* - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearNodeGroupAffinity() { if (nodeGroupAffinityBuilder_ == null) { @@ -3550,64 +3165,48 @@ public Builder clearNodeGroupAffinity() { return this; } /** - * - * *
      * Optional. Node Group Affinity for sole-tenant clusters.
      * 
* - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder getNodeGroupAffinityBuilder() { - + onChanged(); return getNodeGroupAffinityFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Node Group Affinity for sole-tenant clusters.
      * 
* - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffinityOrBuilder() { if (nodeGroupAffinityBuilder_ != null) { return nodeGroupAffinityBuilder_.getMessageOrBuilder(); } else { - return nodeGroupAffinity_ == null - ? com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance() - : nodeGroupAffinity_; + return nodeGroupAffinity_ == null ? + com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance() : nodeGroupAffinity_; } } /** - * - * *
      * Optional. Node Group Affinity for sole-tenant clusters.
      * 
* - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeGroupAffinity, - com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder, - com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder> + com.google.cloud.dataproc.v1.NodeGroupAffinity, com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder, com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder> getNodeGroupAffinityFieldBuilder() { if (nodeGroupAffinityBuilder_ == null) { - nodeGroupAffinityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeGroupAffinity, - com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder, - com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder>( - getNodeGroupAffinity(), getParentForChildren(), isClean()); + nodeGroupAffinityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.NodeGroupAffinity, com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder, com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder>( + getNodeGroupAffinity(), + getParentForChildren(), + isClean()); nodeGroupAffinity_ = null; } return nodeGroupAffinityBuilder_; @@ -3615,64 +3214,47 @@ public com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffin private com.google.cloud.dataproc.v1.ShieldedInstanceConfig shieldedInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ShieldedInstanceConfig, - com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder, - com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder> - shieldedInstanceConfigBuilder_; + com.google.cloud.dataproc.v1.ShieldedInstanceConfig, com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder, com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; /** - * - * *
-     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+     * Optional. Shielded Instance Config for clusters using [Compute Engine
+     * Shielded
      * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
      * 
* - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the shieldedInstanceConfig field is set. */ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; } /** - * - * *
-     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+     * Optional. Shielded Instance Config for clusters using [Compute Engine
+     * Shielded
      * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
      * 
* - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The shieldedInstanceConfig. */ public com.google.cloud.dataproc.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null - ? com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null ? com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; } else { return shieldedInstanceConfigBuilder_.getMessage(); } } /** - * - * *
-     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+     * Optional. Shielded Instance Config for clusters using [Compute Engine
+     * Shielded
      * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
      * 
* - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setShieldedInstanceConfig( - com.google.cloud.dataproc.v1.ShieldedInstanceConfig value) { + public Builder setShieldedInstanceConfig(com.google.cloud.dataproc.v1.ShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3686,16 +3268,13 @@ public Builder setShieldedInstanceConfig( return this; } /** - * - * *
-     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+     * Optional. Shielded Instance Config for clusters using [Compute Engine
+     * Shielded
      * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
      * 
* - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setShieldedInstanceConfig( com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder builderForValue) { @@ -3709,26 +3288,19 @@ public Builder setShieldedInstanceConfig( return this; } /** - * - * *
-     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+     * Optional. Shielded Instance Config for clusters using [Compute Engine
+     * Shielded
      * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
      * 
* - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeShieldedInstanceConfig( - com.google.cloud.dataproc.v1.ShieldedInstanceConfig value) { + public Builder mergeShieldedInstanceConfig(com.google.cloud.dataproc.v1.ShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { if (shieldedInstanceConfig_ != null) { shieldedInstanceConfig_ = - com.google.cloud.dataproc.v1.ShieldedInstanceConfig.newBuilder( - shieldedInstanceConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.ShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_).mergeFrom(value).buildPartial(); } else { shieldedInstanceConfig_ = value; } @@ -3740,16 +3312,13 @@ public Builder mergeShieldedInstanceConfig( return this; } /** - * - * *
-     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+     * Optional. Shielded Instance Config for clusters using [Compute Engine
+     * Shielded
      * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
      * 
* - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { @@ -3763,69 +3332,54 @@ public Builder clearShieldedInstanceConfig() { return this; } /** - * - * *
-     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+     * Optional. Shielded Instance Config for clusters using [Compute Engine
+     * Shielded
      * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
      * 
* - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder - getShieldedInstanceConfigBuilder() { - + public com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { + onChanged(); return getShieldedInstanceConfigFieldBuilder().getBuilder(); } /** - * - * *
-     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+     * Optional. Shielded Instance Config for clusters using [Compute Engine
+     * Shielded
      * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
      * 
* - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { if (shieldedInstanceConfigBuilder_ != null) { return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return shieldedInstanceConfig_ == null - ? com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null ? + com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; } } /** - * - * *
-     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+     * Optional. Shielded Instance Config for clusters using [Compute Engine
+     * Shielded
      * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
      * 
* - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ShieldedInstanceConfig, - com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder, - com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder> + com.google.cloud.dataproc.v1.ShieldedInstanceConfig, com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder, com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder> getShieldedInstanceConfigFieldBuilder() { if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ShieldedInstanceConfig, - com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder, - com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), getParentForChildren(), isClean()); + shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ShieldedInstanceConfig, com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder, com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), + getParentForChildren(), + isClean()); shieldedInstanceConfig_ = null; } return shieldedInstanceConfigBuilder_; @@ -3833,64 +3387,44 @@ public Builder clearShieldedInstanceConfig() { private com.google.cloud.dataproc.v1.ConfidentialInstanceConfig confidentialInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig, - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder, - com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder> - confidentialInstanceConfigBuilder_; + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig, com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder, com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder> confidentialInstanceConfigBuilder_; /** - * - * *
      * Optional. Confidential Instance Config for clusters using [Confidential
      * VMs](https://cloud.google.com/compute/confidential-vm/docs).
      * 
* - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the confidentialInstanceConfig field is set. */ public boolean hasConfidentialInstanceConfig() { return confidentialInstanceConfigBuilder_ != null || confidentialInstanceConfig_ != null; } /** - * - * *
      * Optional. Confidential Instance Config for clusters using [Confidential
      * VMs](https://cloud.google.com/compute/confidential-vm/docs).
      * 
* - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The confidentialInstanceConfig. */ public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getConfidentialInstanceConfig() { if (confidentialInstanceConfigBuilder_ == null) { - return confidentialInstanceConfig_ == null - ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance() - : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; } else { return confidentialInstanceConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Confidential Instance Config for clusters using [Confidential
      * VMs](https://cloud.google.com/compute/confidential-vm/docs).
      * 
* - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setConfidentialInstanceConfig( - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig value) { + public Builder setConfidentialInstanceConfig(com.google.cloud.dataproc.v1.ConfidentialInstanceConfig value) { if (confidentialInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3904,16 +3438,12 @@ public Builder setConfidentialInstanceConfig( return this; } /** - * - * *
      * Optional. Confidential Instance Config for clusters using [Confidential
      * VMs](https://cloud.google.com/compute/confidential-vm/docs).
      * 
* - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setConfidentialInstanceConfig( com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder builderForValue) { @@ -3927,26 +3457,18 @@ public Builder setConfidentialInstanceConfig( return this; } /** - * - * *
      * Optional. Confidential Instance Config for clusters using [Confidential
      * VMs](https://cloud.google.com/compute/confidential-vm/docs).
      * 
* - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeConfidentialInstanceConfig( - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig value) { + public Builder mergeConfidentialInstanceConfig(com.google.cloud.dataproc.v1.ConfidentialInstanceConfig value) { if (confidentialInstanceConfigBuilder_ == null) { if (confidentialInstanceConfig_ != null) { confidentialInstanceConfig_ = - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.newBuilder( - confidentialInstanceConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.newBuilder(confidentialInstanceConfig_).mergeFrom(value).buildPartial(); } else { confidentialInstanceConfig_ = value; } @@ -3958,16 +3480,12 @@ public Builder mergeConfidentialInstanceConfig( return this; } /** - * - * *
      * Optional. Confidential Instance Config for clusters using [Confidential
      * VMs](https://cloud.google.com/compute/confidential-vm/docs).
      * 
* - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearConfidentialInstanceConfig() { if (confidentialInstanceConfigBuilder_ == null) { @@ -3981,76 +3499,58 @@ public Builder clearConfidentialInstanceConfig() { return this; } /** - * - * *
      * Optional. Confidential Instance Config for clusters using [Confidential
      * VMs](https://cloud.google.com/compute/confidential-vm/docs).
      * 
* - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder - getConfidentialInstanceConfigBuilder() { - + public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder getConfidentialInstanceConfigBuilder() { + onChanged(); return getConfidentialInstanceConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Confidential Instance Config for clusters using [Confidential
      * VMs](https://cloud.google.com/compute/confidential-vm/docs).
      * 
* - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder - getConfidentialInstanceConfigOrBuilder() { + public com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { if (confidentialInstanceConfigBuilder_ != null) { return confidentialInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return confidentialInstanceConfig_ == null - ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance() - : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null ? + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; } } /** - * - * *
      * Optional. Confidential Instance Config for clusters using [Confidential
      * VMs](https://cloud.google.com/compute/confidential-vm/docs).
      * 
* - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig, - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder, - com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder> + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig, com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder, com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder> getConfidentialInstanceConfigFieldBuilder() { if (confidentialInstanceConfigBuilder_ == null) { - confidentialInstanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig, - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder, - com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder>( - getConfidentialInstanceConfig(), getParentForChildren(), isClean()); + confidentialInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig, com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder, com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder>( + getConfidentialInstanceConfig(), + getParentForChildren(), + isClean()); confidentialInstanceConfig_ = null; } return confidentialInstanceConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4060,12 +3560,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GceClusterConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GceClusterConfig) private static final com.google.cloud.dataproc.v1.GceClusterConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GceClusterConfig(); } @@ -4074,27 +3574,27 @@ public static com.google.cloud.dataproc.v1.GceClusterConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4109,4 +3609,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.GceClusterConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java similarity index 78% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java index 407610faa1e0..baa15201051d 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface GceClusterConfigOrBuilder - extends +public interface GceClusterConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GceClusterConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The zone where the Compute Engine cluster will be located.
    * On a create request, it is required in the "global" region. If omitted
@@ -39,13 +21,10 @@ public interface GceClusterConfigOrBuilder
    * 
* * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The zoneUri. */ java.lang.String getZoneUri(); /** - * - * *
    * Optional. The zone where the Compute Engine cluster will be located.
    * On a create request, it is required in the "global" region. If omitted
@@ -59,14 +38,12 @@ public interface GceClusterConfigOrBuilder
    * 
* * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for zoneUri. */ - com.google.protobuf.ByteString getZoneUriBytes(); + com.google.protobuf.ByteString + getZoneUriBytes(); /** - * - * *
    * Optional. The Compute Engine network to be used for machine
    * communications. Cannot be specified with subnetwork_uri. If neither
@@ -81,13 +58,10 @@ public interface GceClusterConfigOrBuilder
    * 
* * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The networkUri. */ java.lang.String getNetworkUri(); /** - * - * *
    * Optional. The Compute Engine network to be used for machine
    * communications. Cannot be specified with subnetwork_uri. If neither
@@ -102,14 +76,12 @@ public interface GceClusterConfigOrBuilder
    * 
* * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for networkUri. */ - com.google.protobuf.ByteString getNetworkUriBytes(); + com.google.protobuf.ByteString + getNetworkUriBytes(); /** - * - * *
    * Optional. The Compute Engine subnetwork to be used for machine
    * communications. Cannot be specified with network_uri.
@@ -120,13 +92,10 @@ public interface GceClusterConfigOrBuilder
    * 
* * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The subnetworkUri. */ java.lang.String getSubnetworkUri(); /** - * - * *
    * Optional. The Compute Engine subnetwork to be used for machine
    * communications. Cannot be specified with network_uri.
@@ -137,14 +106,12 @@ public interface GceClusterConfigOrBuilder
    * 
* * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for subnetworkUri. */ - com.google.protobuf.ByteString getSubnetworkUriBytes(); + com.google.protobuf.ByteString + getSubnetworkUriBytes(); /** - * - * *
    * Optional. If true, all instances in the cluster will only have internal IP
    * addresses. By default, clusters are not restricted to internal IP
@@ -155,44 +122,30 @@ public interface GceClusterConfigOrBuilder
    * 
* * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The internalIpOnly. */ boolean getInternalIpOnly(); /** - * - * *
    * Optional. The type of IPv6 access for a cluster.
    * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for privateIpv6GoogleAccess. */ int getPrivateIpv6GoogleAccessValue(); /** - * - * *
    * Optional. The type of IPv6 access for a cluster.
    * 
* - * - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The privateIpv6GoogleAccess. */ - com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess - getPrivateIpv6GoogleAccess(); + com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess getPrivateIpv6GoogleAccess(); /** - * - * *
    * Optional. The [Dataproc service
    * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
@@ -207,13 +160,10 @@ public interface GceClusterConfigOrBuilder
    * 
* * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** - * - * *
    * Optional. The [Dataproc service
    * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
@@ -228,14 +178,12 @@ public interface GceClusterConfigOrBuilder
    * 
* * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString getServiceAccountBytes(); + com.google.protobuf.ByteString + getServiceAccountBytes(); /** - * - * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances. The following base set of scopes is always
@@ -250,15 +198,12 @@ public interface GceClusterConfigOrBuilder
    * * https://www.googleapis.com/auth/devstorage.full_control
    * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the serviceAccountScopes. */ - java.util.List getServiceAccountScopesList(); + java.util.List + getServiceAccountScopesList(); /** - * - * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances. The following base set of scopes is always
@@ -273,15 +218,11 @@ public interface GceClusterConfigOrBuilder
    * * https://www.googleapis.com/auth/devstorage.full_control
    * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of serviceAccountScopes. */ int getServiceAccountScopesCount(); /** - * - * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances. The following base set of scopes is always
@@ -296,16 +237,12 @@ public interface GceClusterConfigOrBuilder
    * * https://www.googleapis.com/auth/devstorage.full_control
    * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ java.lang.String getServiceAccountScopes(int index); /** - * - * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances. The following base set of scopes is always
@@ -320,72 +257,59 @@ public interface GceClusterConfigOrBuilder
    * * https://www.googleapis.com/auth/devstorage.full_control
    * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - com.google.protobuf.ByteString getServiceAccountScopesBytes(int index); + com.google.protobuf.ByteString + getServiceAccountScopesBytes(int index); /** - * - * *
    * The Compute Engine tags to add to all instances (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 4; - * * @return A list containing the tags. */ - java.util.List getTagsList(); + java.util.List + getTagsList(); /** - * - * *
    * The Compute Engine tags to add to all instances (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 4; - * * @return The count of tags. */ int getTagsCount(); /** - * - * *
    * The Compute Engine tags to add to all instances (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 4; - * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** - * - * *
    * The Compute Engine tags to add to all instances (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 4; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString getTagsBytes(int index); + com.google.protobuf.ByteString + getTagsBytes(int index); /** - * - * *
    * The Compute Engine metadata entries to add to all instances (see
    * [Project and instance
@@ -396,8 +320,6 @@ public interface GceClusterConfigOrBuilder
    */
   int getMetadataCount();
   /**
-   *
-   *
    * 
    * The Compute Engine metadata entries to add to all instances (see
    * [Project and instance
@@ -406,13 +328,15 @@ public interface GceClusterConfigOrBuilder
    *
    * map<string, string> metadata = 5;
    */
-  boolean containsMetadata(java.lang.String key);
-  /** Use {@link #getMetadataMap()} instead. */
+  boolean containsMetadata(
+      java.lang.String key);
+  /**
+   * Use {@link #getMetadataMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getMetadata();
+  java.util.Map
+  getMetadata();
   /**
-   *
-   *
    * 
    * The Compute Engine metadata entries to add to all instances (see
    * [Project and instance
@@ -421,10 +345,9 @@ public interface GceClusterConfigOrBuilder
    *
    * map<string, string> metadata = 5;
    */
-  java.util.Map getMetadataMap();
+  java.util.Map
+  getMetadataMap();
   /**
-   *
-   *
    * 
    * The Compute Engine metadata entries to add to all instances (see
    * [Project and instance
@@ -435,13 +358,11 @@ public interface GceClusterConfigOrBuilder
    */
 
   /* nullable */
-  java.lang.String getMetadataOrDefault(
+java.lang.String getMetadataOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * The Compute Engine metadata entries to add to all instances (see
    * [Project and instance
@@ -450,176 +371,124 @@ java.lang.String getMetadataOrDefault(
    *
    * map<string, string> metadata = 5;
    */
-  java.lang.String getMetadataOrThrow(java.lang.String key);
+
+  java.lang.String getMetadataOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Optional. Reservation Affinity for consuming Zonal reservation.
    * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the reservationAffinity field is set. */ boolean hasReservationAffinity(); /** - * - * *
    * Optional. Reservation Affinity for consuming Zonal reservation.
    * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The reservationAffinity. */ com.google.cloud.dataproc.v1.ReservationAffinity getReservationAffinity(); /** - * - * *
    * Optional. Reservation Affinity for consuming Zonal reservation.
    * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder(); /** - * - * *
    * Optional. Node Group Affinity for sole-tenant clusters.
    * 
* - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the nodeGroupAffinity field is set. */ boolean hasNodeGroupAffinity(); /** - * - * *
    * Optional. Node Group Affinity for sole-tenant clusters.
    * 
* - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The nodeGroupAffinity. */ com.google.cloud.dataproc.v1.NodeGroupAffinity getNodeGroupAffinity(); /** - * - * *
    * Optional. Node Group Affinity for sole-tenant clusters.
    * 
* - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffinityOrBuilder(); /** - * - * *
-   * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+   * Optional. Shielded Instance Config for clusters using [Compute Engine
+   * Shielded
    * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
    * 
* - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the shieldedInstanceConfig field is set. */ boolean hasShieldedInstanceConfig(); /** - * - * *
-   * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+   * Optional. Shielded Instance Config for clusters using [Compute Engine
+   * Shielded
    * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
    * 
* - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The shieldedInstanceConfig. */ com.google.cloud.dataproc.v1.ShieldedInstanceConfig getShieldedInstanceConfig(); /** - * - * *
-   * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+   * Optional. Shielded Instance Config for clusters using [Compute Engine
+   * Shielded
    * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
    * 
* - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); /** - * - * *
    * Optional. Confidential Instance Config for clusters using [Confidential
    * VMs](https://cloud.google.com/compute/confidential-vm/docs).
    * 
* - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the confidentialInstanceConfig field is set. */ boolean hasConfidentialInstanceConfig(); /** - * - * *
    * Optional. Confidential Instance Config for clusters using [Confidential
    * VMs](https://cloud.google.com/compute/confidential-vm/docs).
    * 
* - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The confidentialInstanceConfig. */ com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getConfidentialInstanceConfig(); /** - * - * *
    * Optional. Confidential Instance Config for clusters using [Confidential
    * VMs](https://cloud.google.com/compute/confidential-vm/docs).
    * 
* - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder - getConfidentialInstanceConfigOrBuilder(); + com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java similarity index 68% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java index 7912ad40fa76..9d27bc752548 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java @@ -1,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to fetch an autoscaling policy.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.GetAutoscalingPolicyRequest} */ -public final class GetAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetAutoscalingPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) GetAutoscalingPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetAutoscalingPolicyRequest.newBuilder() to construct. private GetAutoscalingPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetAutoscalingPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetAutoscalingPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.Builder.class); + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.class, com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -83,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
    * 
* - * - * 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 @@ -95,15 +71,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -115,18 +90,17 @@ public java.lang.String getName() {
    *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
    * 
* - * - * 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 { @@ -135,7 +109,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,7 +120,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_); } @@ -171,15 +145,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.dataproc.v1.GetAutoscalingPolicyRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest other = - (com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) obj; + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest other = (com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,136 +173,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest 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.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to fetch an autoscaling policy.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.GetAutoscalingPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.Builder.class); + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.class, com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -338,9 +305,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; } @java.lang.Override @@ -359,8 +326,7 @@ public com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest buildPartial() { - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest result = - new com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest(this); + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest result = new com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,39 +336,38 @@ public com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -410,8 +375,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest other) { - if (other == com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -442,19 +406,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -467,8 +429,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -480,16 +440,14 @@ public Builder mergeFrom(
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * - * 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; @@ -498,8 +456,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -511,17 +467,16 @@ public java.lang.String getName() {
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * - * 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 { @@ -529,8 +484,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -542,25 +495,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -572,21 +521,16 @@ public Builder setName(java.lang.String value) {
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -598,26 +542,24 @@ public Builder clearName() {
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * - * 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); } @@ -627,12 +569,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) private static final com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest(); } @@ -641,27 +583,27 @@ public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAutoscalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAutoscalingPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -676,4 +618,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.java similarity index 60% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.java index e2dd358bc07f..1e5ac6ac155f 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.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/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; -public interface GetAutoscalingPolicyRequestOrBuilder - extends +public interface GetAutoscalingPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -37,16 +19,11 @@ public interface GetAutoscalingPolicyRequestOrBuilder
    *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -58,11 +35,9 @@ public interface GetAutoscalingPolicyRequestOrBuilder
    *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java similarity index 61% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java index 2f3639514f73..1ce57a240f26 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java @@ -1,85 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to get the resource representation for a batch workload.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.GetBatchRequest} */ -public final class GetBatchRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetBatchRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GetBatchRequest) GetBatchRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetBatchRequest.newBuilder() to construct. private GetBatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetBatchRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetBatchRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetBatchRequest.class, - com.google.cloud.dataproc.v1.GetBatchRequest.Builder.class); + com.google.cloud.dataproc.v1.GetBatchRequest.class, com.google.cloud.dataproc.v1.GetBatchRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the batch to retrieve.
    * 
* - * - * 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 @@ -88,31 +64,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the batch to retrieve.
    * 
* - * - * 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 { @@ -121,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,7 +106,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_); } @@ -157,15 +131,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.dataproc.v1.GetBatchRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GetBatchRequest other = - (com.google.cloud.dataproc.v1.GetBatchRequest) obj; + com.google.cloud.dataproc.v1.GetBatchRequest other = (com.google.cloud.dataproc.v1.GetBatchRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +158,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GetBatchRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GetBatchRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GetBatchRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.GetBatchRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to get the resource representation for a batch workload.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.GetBatchRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GetBatchRequest) com.google.cloud.dataproc.v1.GetBatchRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetBatchRequest.class, - com.google.cloud.dataproc.v1.GetBatchRequest.Builder.class); + com.google.cloud.dataproc.v1.GetBatchRequest.class, com.google.cloud.dataproc.v1.GetBatchRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.GetBatchRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; } @java.lang.Override @@ -344,8 +312,7 @@ public com.google.cloud.dataproc.v1.GetBatchRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.GetBatchRequest buildPartial() { - com.google.cloud.dataproc.v1.GetBatchRequest result = - new com.google.cloud.dataproc.v1.GetBatchRequest(this); + com.google.cloud.dataproc.v1.GetBatchRequest result = new com.google.cloud.dataproc.v1.GetBatchRequest(this); result.name_ = name_; onBuilt(); return result; @@ -355,39 +322,38 @@ public com.google.cloud.dataproc.v1.GetBatchRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.GetBatchRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.GetBatchRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.GetBatchRequest)other); } else { super.mergeFrom(other); return this; @@ -426,19 +392,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -451,22 +415,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the batch to retrieve.
      * 
* - * - * 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; @@ -475,23 +435,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the batch to retrieve.
      * 
* - * - * 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 { @@ -499,74 +456,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the batch to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the batch to retrieve.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the batch to retrieve.
      * 
* - * - * 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); } @@ -576,12 +520,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GetBatchRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetBatchRequest) private static final com.google.cloud.dataproc.v1.GetBatchRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GetBatchRequest(); } @@ -590,27 +534,27 @@ public static com.google.cloud.dataproc.v1.GetBatchRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBatchRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBatchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -625,4 +569,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.GetBatchRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java new file mode 100644 index 000000000000..09771c24601b --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +public interface GetBatchRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetBatchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the batch to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the batch to retrieve.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java index 153525a7b6e4..ca9c942096a9 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Request to get the resource representation for a cluster in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.GetClusterRequest} */ -public final class GetClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GetClusterRequest) GetClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetClusterRequest.newBuilder() to construct. private GetClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetClusterRequest() { projectId_ = ""; region_ = ""; @@ -45,42 +27,38 @@ private GetClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetClusterRequest.class, - com.google.cloud.dataproc.v1.GetClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.GetClusterRequest.class, com.google.cloud.dataproc.v1.GetClusterRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -89,30 +67,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -123,14 +101,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int REGION_FIELD_NUMBER = 3; private volatile java.lang.Object region_; /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ @java.lang.Override @@ -139,29 +114,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -172,14 +147,11 @@ public com.google.protobuf.ByteString getRegionBytes() { public static final int CLUSTER_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object clusterName_; /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ @java.lang.Override @@ -188,29 +160,29 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -219,7 +191,6 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,7 +202,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -267,17 +239,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.dataproc.v1.GetClusterRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GetClusterRequest other = - (com.google.cloud.dataproc.v1.GetClusterRequest) obj; + com.google.cloud.dataproc.v1.GetClusterRequest other = (com.google.cloud.dataproc.v1.GetClusterRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getRegion() + .equals(other.getRegion())) return false; + if (!getClusterName() + .equals(other.getClusterName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,136 +274,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GetClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GetClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GetClusterRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.GetClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 to get the resource representation for a cluster in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.GetClusterRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GetClusterRequest) com.google.cloud.dataproc.v1.GetClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetClusterRequest.class, - com.google.cloud.dataproc.v1.GetClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.GetClusterRequest.class, com.google.cloud.dataproc.v1.GetClusterRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.GetClusterRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; } @java.lang.Override @@ -464,8 +432,7 @@ public com.google.cloud.dataproc.v1.GetClusterRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.GetClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.GetClusterRequest result = - new com.google.cloud.dataproc.v1.GetClusterRequest(this); + com.google.cloud.dataproc.v1.GetClusterRequest result = new com.google.cloud.dataproc.v1.GetClusterRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.clusterName_ = clusterName_; @@ -477,39 +444,38 @@ public com.google.cloud.dataproc.v1.GetClusterRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.GetClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.GetClusterRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.GetClusterRequest)other); } else { super.mergeFrom(other); return this; @@ -556,31 +522,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + region_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -593,21 +555,19 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -616,22 +576,21 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -639,64 +598,57 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -704,20 +656,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object region_ = ""; /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -726,21 +676,20 @@ public java.lang.String getRegion() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -748,61 +697,54 @@ public com.google.protobuf.ByteString getRegionBytes() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion(java.lang.String value) { + public Builder setRegion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -810,20 +752,18 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { private java.lang.Object clusterName_ = ""; /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -832,21 +772,20 @@ public java.lang.String getClusterName() { } } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -854,68 +793,61 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName(java.lang.String value) { + public Builder setClusterName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = 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); } @@ -925,12 +857,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GetClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetClusterRequest) private static final com.google.cloud.dataproc.v1.GetClusterRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GetClusterRequest(); } @@ -939,27 +871,27 @@ public static com.google.cloud.dataproc.v1.GetClusterRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -974,4 +906,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.GetClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java index fba9993e20e3..717cef22eded 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java @@ -1,102 +1,71 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface GetClusterRequestOrBuilder - extends +public interface GetClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetClusterRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ java.lang.String getRegion(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - com.google.protobuf.ByteString getRegionBytes(); + com.google.protobuf.ByteString + getRegionBytes(); /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ java.lang.String getClusterName(); /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString getClusterNameBytes(); + com.google.protobuf.ByteString + getClusterNameBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java index 1f16649ac48a..7f110783cc5d 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to get the resource representation for a job in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.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() { projectId_ = ""; region_ = ""; @@ -45,42 +27,38 @@ private GetJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetJobRequest.class, - com.google.cloud.dataproc.v1.GetJobRequest.Builder.class); + com.google.cloud.dataproc.v1.GetJobRequest.class, com.google.cloud.dataproc.v1.GetJobRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -89,30 +67,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -123,14 +101,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int REGION_FIELD_NUMBER = 3; private volatile java.lang.Object region_; /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ @java.lang.Override @@ -139,29 +114,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -172,14 +147,11 @@ public com.google.protobuf.ByteString getRegionBytes() { public static final int JOB_ID_FIELD_NUMBER = 2; private volatile java.lang.Object jobId_; /** - * - * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The jobId. */ @java.lang.Override @@ -188,29 +160,29 @@ public java.lang.String getJobId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; } } /** - * - * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for jobId. */ @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { + public com.google.protobuf.ByteString + getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); jobId_ = b; return b; } else { @@ -219,7 +191,6 @@ public com.google.protobuf.ByteString getJobIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,7 +202,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -267,17 +239,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.dataproc.v1.GetJobRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GetJobRequest other = - (com.google.cloud.dataproc.v1.GetJobRequest) obj; + com.google.cloud.dataproc.v1.GetJobRequest other = (com.google.cloud.dataproc.v1.GetJobRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getJobId().equals(other.getJobId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getRegion() + .equals(other.getRegion())) return false; + if (!getJobId() + .equals(other.getJobId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,136 +274,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GetJobRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.GetJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.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.dataproc.v1.GetJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.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.dataproc.v1.GetJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.v1.GetJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GetJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.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; } /** - * - * *
    * A request to get the resource representation for a job in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.v1.GetJobRequest) com.google.cloud.dataproc.v1.GetJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetJobRequest.class, - com.google.cloud.dataproc.v1.GetJobRequest.Builder.class); + com.google.cloud.dataproc.v1.GetJobRequest.class, com.google.cloud.dataproc.v1.GetJobRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.GetJobRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; } @java.lang.Override @@ -464,8 +432,7 @@ public com.google.cloud.dataproc.v1.GetJobRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.GetJobRequest buildPartial() { - com.google.cloud.dataproc.v1.GetJobRequest result = - new com.google.cloud.dataproc.v1.GetJobRequest(this); + com.google.cloud.dataproc.v1.GetJobRequest result = new com.google.cloud.dataproc.v1.GetJobRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.jobId_ = jobId_; @@ -477,39 +444,38 @@ public com.google.cloud.dataproc.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.dataproc.v1.GetJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.GetJobRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.GetJobRequest)other); } else { super.mergeFrom(other); return this; @@ -556,31 +522,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + region_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -593,21 +555,19 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -616,22 +576,21 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -639,64 +598,57 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -704,20 +656,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object region_ = ""; /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -726,21 +676,20 @@ public java.lang.String getRegion() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -748,61 +697,54 @@ public com.google.protobuf.ByteString getRegionBytes() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion(java.lang.String value) { + public Builder setRegion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -810,20 +752,18 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { private java.lang.Object jobId_ = ""; /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The jobId. */ public java.lang.String getJobId() { java.lang.Object ref = jobId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; @@ -832,21 +772,20 @@ public java.lang.String getJobId() { } } /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for jobId. */ - public com.google.protobuf.ByteString getJobIdBytes() { + public com.google.protobuf.ByteString + getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); jobId_ = b; return b; } else { @@ -854,68 +793,61 @@ public com.google.protobuf.ByteString getJobIdBytes() { } } /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The jobId to set. * @return This builder for chaining. */ - public Builder setJobId(java.lang.String value) { + public Builder setJobId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearJobId() { - + jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for jobId to set. * @return This builder for chaining. */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { + public Builder setJobIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -925,12 +857,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GetJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetJobRequest) private static final com.google.cloud.dataproc.v1.GetJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GetJobRequest(); } @@ -939,27 +871,27 @@ public static com.google.cloud.dataproc.v1.GetJobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -974,4 +906,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.GetJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java similarity index 64% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java index 013ec48a9baa..3d7dcd20d0f8 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java @@ -1,102 +1,71 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface GetJobRequestOrBuilder - extends +public interface GetJobRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetJobRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ java.lang.String getRegion(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - com.google.protobuf.ByteString getRegionBytes(); + com.google.protobuf.ByteString + getRegionBytes(); /** - * - * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The jobId. */ java.lang.String getJobId(); /** - * - * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for jobId. */ - com.google.protobuf.ByteString getJobIdBytes(); + com.google.protobuf.ByteString + getJobIdBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequest.java new file mode 100644 index 000000000000..a722e63919ee --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequest.java @@ -0,0 +1,588 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/node_groups.proto + +package com.google.cloud.dataproc.v1; + +/** + *
+ * A request to get a node group .
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.GetNodeGroupRequest} + */ +public final class GetNodeGroupRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GetNodeGroupRequest) + GetNodeGroupRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetNodeGroupRequest.newBuilder() to construct. + private GetNodeGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetNodeGroupRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetNodeGroupRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.GetNodeGroupRequest.class, com.google.cloud.dataproc.v1.GetNodeGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. The name of the node group to retrieve.
+   * Format:
+   * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The name of the node group to retrieve.
+   * Format:
+   * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataproc.v1.GetNodeGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.GetNodeGroupRequest other = (com.google.cloud.dataproc.v1.GetNodeGroupRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest 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.dataproc.v1.GetNodeGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.dataproc.v1.GetNodeGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A request to get a node group .
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.GetNodeGroupRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GetNodeGroupRequest) + com.google.cloud.dataproc.v1.GetNodeGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.GetNodeGroupRequest.class, com.google.cloud.dataproc.v1.GetNodeGroupRequest.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.GetNodeGroupRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GetNodeGroupRequest getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.GetNodeGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GetNodeGroupRequest build() { + com.google.cloud.dataproc.v1.GetNodeGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GetNodeGroupRequest buildPartial() { + com.google.cloud.dataproc.v1.GetNodeGroupRequest result = new com.google.cloud.dataproc.v1.GetNodeGroupRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataproc.v1.GetNodeGroupRequest) { + return mergeFrom((com.google.cloud.dataproc.v1.GetNodeGroupRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.GetNodeGroupRequest other) { + if (other == com.google.cloud.dataproc.v1.GetNodeGroupRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The name of the node group to retrieve.
+     * Format:
+     * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The name of the node group to retrieve.
+     * Format:
+     * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The name of the node group to retrieve.
+     * Format:
+     * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The name of the node group to retrieve.
+     * Format:
+     * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Required. The name of the node group to retrieve.
+     * Format:
+     * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GetNodeGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetNodeGroupRequest) + private static final com.google.cloud.dataproc.v1.GetNodeGroupRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GetNodeGroupRequest(); + } + + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNodeGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GetNodeGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequestOrBuilder.java new file mode 100644 index 000000000000..48a868b1d154 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/node_groups.proto + +package com.google.cloud.dataproc.v1; + +public interface GetNodeGroupRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetNodeGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the node group to retrieve.
+   * Format:
+   * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the node group to retrieve.
+   * Format:
+   * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java index eb818575bd03..d13a318ef76d 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java @@ -1,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to fetch a workflow template.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.GetWorkflowTemplateRequest} */ -public final class GetWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetWorkflowTemplateRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GetWorkflowTemplateRequest) GetWorkflowTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetWorkflowTemplateRequest.newBuilder() to construct. private GetWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetWorkflowTemplateRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetWorkflowTemplateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -83,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * - * 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 @@ -95,15 +71,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -115,18 +90,17 @@ public java.lang.String getName() {
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * - * 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 { @@ -137,8 +111,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VERSION_FIELD_NUMBER = 2; private int version_; /** - * - * *
    * Optional. The version of workflow template to retrieve. Only previously
    * instantiated versions can be retrieved.
@@ -146,7 +118,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ @java.lang.Override @@ -155,7 +126,6 @@ public int getVersion() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,7 +137,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_); } @@ -187,7 +158,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, version_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -197,16 +169,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest other = - (com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest) obj; + com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest other = (com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getVersion() != other.getVersion()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getVersion() + != other.getVersion()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -228,136 +201,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest 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.dataproc.v1.GetWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to fetch a workflow template.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.GetWorkflowTemplateRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GetWorkflowTemplateRequest) com.google.cloud.dataproc.v1.GetWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -369,9 +335,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; } @java.lang.Override @@ -390,8 +356,7 @@ public com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest result = - new com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest(this); + com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest result = new com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest(this); result.name_ = name_; result.version_ = version_; onBuilt(); @@ -402,39 +367,38 @@ public com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest)other); } else { super.mergeFrom(other); return this; @@ -442,8 +406,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest other) { - if (other == com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -477,25 +440,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - version_ = input.readInt32(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + version_ = input.readInt32(); + + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -508,8 +468,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -521,16 +479,14 @@ public Builder mergeFrom(
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * - * 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; @@ -539,8 +495,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -552,17 +506,16 @@ public java.lang.String getName() {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -570,8 +523,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -583,25 +534,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -613,21 +560,16 @@ public Builder setName(java.lang.String value) {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -639,28 +581,24 @@ public Builder clearName() {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int version_; + private int version_ ; /** - * - * *
      * Optional. The version of workflow template to retrieve. Only previously
      * instantiated versions can be retrieved.
@@ -668,7 +606,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ @java.lang.Override @@ -676,8 +613,6 @@ public int getVersion() { return version_; } /** - * - * *
      * Optional. The version of workflow template to retrieve. Only previously
      * instantiated versions can be retrieved.
@@ -685,19 +620,16 @@ public int getVersion() {
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { - + version_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The version of workflow template to retrieve. Only previously
      * instantiated versions can be retrieved.
@@ -705,18 +637,17 @@ public Builder setVersion(int value) {
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -726,12 +657,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GetWorkflowTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetWorkflowTemplateRequest) private static final com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest(); } @@ -740,27 +671,27 @@ public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkflowTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -775,4 +706,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java index 41a72a2d1e01..7c353d7006a3 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface GetWorkflowTemplateRequestOrBuilder - extends +public interface GetWorkflowTemplateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetWorkflowTemplateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -37,16 +19,11 @@ public interface GetWorkflowTemplateRequestOrBuilder
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -58,17 +35,13 @@ public interface GetWorkflowTemplateRequestOrBuilder
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The version of workflow template to retrieve. Only previously
    * instantiated versions can be retrieved.
@@ -76,7 +49,6 @@ public interface GetWorkflowTemplateRequestOrBuilder
    * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ int getVersion(); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java similarity index 71% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java index 2cfbf5c73b57..046cdb0491e2 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.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/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * The cluster's GKE config.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.GkeClusterConfig} */ -public final class GkeClusterConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GkeClusterConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeClusterConfig) GkeClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GkeClusterConfig.newBuilder() to construct. private GkeClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GkeClusterConfig() { gkeClusterTarget_ = ""; nodePoolTarget_ = java.util.Collections.emptyList(); @@ -44,35 +26,32 @@ private GkeClusterConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GkeClusterConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeClusterConfig.class, - com.google.cloud.dataproc.v1.GkeClusterConfig.Builder.class); + com.google.cloud.dataproc.v1.GkeClusterConfig.class, com.google.cloud.dataproc.v1.GkeClusterConfig.Builder.class); } public static final int GKE_CLUSTER_TARGET_FIELD_NUMBER = 2; private volatile java.lang.Object gkeClusterTarget_; /** - * - * *
    * Optional. A target GKE cluster to deploy to. It must be in the same project and
    * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
@@ -80,7 +59,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The gkeClusterTarget. */ @java.lang.Override @@ -89,15 +67,14 @@ public java.lang.String getGkeClusterTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gkeClusterTarget_ = s; return s; } } /** - * - * *
    * Optional. A target GKE cluster to deploy to. It must be in the same project and
    * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
@@ -105,15 +82,16 @@ public java.lang.String getGkeClusterTarget() {
    * 
* * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for gkeClusterTarget. */ @java.lang.Override - public com.google.protobuf.ByteString getGkeClusterTargetBytes() { + public com.google.protobuf.ByteString + getGkeClusterTargetBytes() { java.lang.Object ref = gkeClusterTarget_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gkeClusterTarget_ = b; return b; } else { @@ -124,8 +102,6 @@ public com.google.protobuf.ByteString getGkeClusterTargetBytes() { public static final int NODE_POOL_TARGET_FIELD_NUMBER = 3; private java.util.List nodePoolTarget_; /** - * - * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -134,17 +110,13 @@ public com.google.protobuf.ByteString getGkeClusterTargetBytes() {
    * nodePoolTarget.
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getNodePoolTargetList() { return nodePoolTarget_; } /** - * - * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -153,18 +125,14 @@ public java.util.List getNodePoo
    * nodePoolTarget.
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getNodePoolTargetOrBuilderList() { return nodePoolTarget_; } /** - * - * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -173,17 +141,13 @@ public java.util.List getNodePoo
    * nodePoolTarget.
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getNodePoolTargetCount() { return nodePoolTarget_.size(); } /** - * - * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -192,17 +156,13 @@ public int getNodePoolTargetCount() {
    * nodePoolTarget.
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.GkeNodePoolTarget getNodePoolTarget(int index) { return nodePoolTarget_.get(index); } /** - * - * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -211,9 +171,7 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget getNodePoolTarget(int inde
    * nodePoolTarget.
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTargetOrBuilder( @@ -222,7 +180,6 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTarget } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,7 +191,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gkeClusterTarget_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gkeClusterTarget_); } @@ -254,7 +212,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gkeClusterTarget_); } for (int i = 0; i < nodePoolTarget_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, nodePoolTarget_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, nodePoolTarget_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -264,16 +223,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.dataproc.v1.GkeClusterConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GkeClusterConfig other = - (com.google.cloud.dataproc.v1.GkeClusterConfig) obj; + com.google.cloud.dataproc.v1.GkeClusterConfig other = (com.google.cloud.dataproc.v1.GkeClusterConfig) obj; - if (!getGkeClusterTarget().equals(other.getGkeClusterTarget())) return false; - if (!getNodePoolTargetList().equals(other.getNodePoolTargetList())) return false; + if (!getGkeClusterTarget() + .equals(other.getGkeClusterTarget())) return false; + if (!getNodePoolTargetList() + .equals(other.getNodePoolTargetList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -296,136 +256,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.GkeClusterConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 cluster's GKE config.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.GkeClusterConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeClusterConfig) com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeClusterConfig.class, - com.google.cloud.dataproc.v1.GkeClusterConfig.Builder.class); + com.google.cloud.dataproc.v1.GkeClusterConfig.class, com.google.cloud.dataproc.v1.GkeClusterConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.GkeClusterConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -442,9 +396,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; } @java.lang.Override @@ -463,8 +417,7 @@ public com.google.cloud.dataproc.v1.GkeClusterConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.GkeClusterConfig buildPartial() { - com.google.cloud.dataproc.v1.GkeClusterConfig result = - new com.google.cloud.dataproc.v1.GkeClusterConfig(this); + com.google.cloud.dataproc.v1.GkeClusterConfig result = new com.google.cloud.dataproc.v1.GkeClusterConfig(this); int from_bitField0_ = bitField0_; result.gkeClusterTarget_ = gkeClusterTarget_; if (nodePoolTargetBuilder_ == null) { @@ -484,39 +437,38 @@ public com.google.cloud.dataproc.v1.GkeClusterConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.GkeClusterConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.GkeClusterConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.GkeClusterConfig)other); } else { super.mergeFrom(other); return this; @@ -547,10 +499,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeClusterConfig other) { nodePoolTargetBuilder_ = null; nodePoolTarget_ = other.nodePoolTarget_; bitField0_ = (bitField0_ & ~0x00000001); - nodePoolTargetBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodePoolTargetFieldBuilder() - : null; + nodePoolTargetBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodePoolTargetFieldBuilder() : null; } else { nodePoolTargetBuilder_.addAllMessages(other.nodePoolTarget_); } @@ -582,32 +533,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - gkeClusterTarget_ = input.readStringRequireUtf8(); + case 18: { + gkeClusterTarget_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - com.google.cloud.dataproc.v1.GkeNodePoolTarget m = - input.readMessage( - com.google.cloud.dataproc.v1.GkeNodePoolTarget.parser(), extensionRegistry); - if (nodePoolTargetBuilder_ == null) { - ensureNodePoolTargetIsMutable(); - nodePoolTarget_.add(m); - } else { - nodePoolTargetBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: { + com.google.cloud.dataproc.v1.GkeNodePoolTarget m = + input.readMessage( + com.google.cloud.dataproc.v1.GkeNodePoolTarget.parser(), + extensionRegistry); + if (nodePoolTargetBuilder_ == null) { + ensureNodePoolTargetIsMutable(); + nodePoolTarget_.add(m); + } else { + nodePoolTargetBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -617,13 +566,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object gkeClusterTarget_ = ""; /** - * - * *
      * Optional. A target GKE cluster to deploy to. It must be in the same project and
      * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
@@ -631,13 +577,13 @@ public Builder mergeFrom(
      * 
* * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The gkeClusterTarget. */ public java.lang.String getGkeClusterTarget() { java.lang.Object ref = gkeClusterTarget_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gkeClusterTarget_ = s; return s; @@ -646,8 +592,6 @@ public java.lang.String getGkeClusterTarget() { } } /** - * - * *
      * Optional. A target GKE cluster to deploy to. It must be in the same project and
      * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
@@ -655,14 +599,15 @@ public java.lang.String getGkeClusterTarget() {
      * 
* * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for gkeClusterTarget. */ - public com.google.protobuf.ByteString getGkeClusterTargetBytes() { + public com.google.protobuf.ByteString + getGkeClusterTargetBytes() { java.lang.Object ref = gkeClusterTarget_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gkeClusterTarget_ = b; return b; } else { @@ -670,8 +615,6 @@ public com.google.protobuf.ByteString getGkeClusterTargetBytes() { } } /** - * - * *
      * Optional. A target GKE cluster to deploy to. It must be in the same project and
      * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
@@ -679,22 +622,20 @@ public com.google.protobuf.ByteString getGkeClusterTargetBytes() {
      * 
* * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The gkeClusterTarget to set. * @return This builder for chaining. */ - public Builder setGkeClusterTarget(java.lang.String value) { + public Builder setGkeClusterTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gkeClusterTarget_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A target GKE cluster to deploy to. It must be in the same project and
      * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
@@ -702,18 +643,15 @@ public Builder setGkeClusterTarget(java.lang.String value) {
      * 
* * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearGkeClusterTarget() { - + gkeClusterTarget_ = getDefaultInstance().getGkeClusterTarget(); onChanged(); return this; } /** - * - * *
      * Optional. A target GKE cluster to deploy to. It must be in the same project and
      * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
@@ -721,42 +659,34 @@ public Builder clearGkeClusterTarget() {
      * 
* * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for gkeClusterTarget to set. * @return This builder for chaining. */ - public Builder setGkeClusterTargetBytes(com.google.protobuf.ByteString value) { + public Builder setGkeClusterTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gkeClusterTarget_ = value; onChanged(); return this; } private java.util.List nodePoolTarget_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNodePoolTargetIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - nodePoolTarget_ = - new java.util.ArrayList( - nodePoolTarget_); + nodePoolTarget_ = new java.util.ArrayList(nodePoolTarget_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolTarget, - com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder> - nodePoolTargetBuilder_; + com.google.cloud.dataproc.v1.GkeNodePoolTarget, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder, com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder> nodePoolTargetBuilder_; /** - * - * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -765,9 +695,7 @@ private void ensureNodePoolTargetIsMutable() {
      * nodePoolTarget.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getNodePoolTargetList() { if (nodePoolTargetBuilder_ == null) { @@ -777,8 +705,6 @@ public java.util.List getNodePoo } } /** - * - * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -787,9 +713,7 @@ public java.util.List getNodePoo
      * nodePoolTarget.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public int getNodePoolTargetCount() { if (nodePoolTargetBuilder_ == null) { @@ -799,8 +723,6 @@ public int getNodePoolTargetCount() { } } /** - * - * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -809,9 +731,7 @@ public int getNodePoolTargetCount() {
      * nodePoolTarget.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.GkeNodePoolTarget getNodePoolTarget(int index) { if (nodePoolTargetBuilder_ == null) { @@ -821,8 +741,6 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget getNodePoolTarget(int inde } } /** - * - * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -831,9 +749,7 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget getNodePoolTarget(int inde
      * nodePoolTarget.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setNodePoolTarget( int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget value) { @@ -850,8 +766,6 @@ public Builder setNodePoolTarget( return this; } /** - * - * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -860,9 +774,7 @@ public Builder setNodePoolTarget(
      * nodePoolTarget.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setNodePoolTarget( int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder builderForValue) { @@ -876,8 +788,6 @@ public Builder setNodePoolTarget( return this; } /** - * - * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -886,9 +796,7 @@ public Builder setNodePoolTarget(
      * nodePoolTarget.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addNodePoolTarget(com.google.cloud.dataproc.v1.GkeNodePoolTarget value) { if (nodePoolTargetBuilder_ == null) { @@ -904,8 +812,6 @@ public Builder addNodePoolTarget(com.google.cloud.dataproc.v1.GkeNodePoolTarget return this; } /** - * - * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -914,9 +820,7 @@ public Builder addNodePoolTarget(com.google.cloud.dataproc.v1.GkeNodePoolTarget
      * nodePoolTarget.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addNodePoolTarget( int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget value) { @@ -933,8 +837,6 @@ public Builder addNodePoolTarget( return this; } /** - * - * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -943,9 +845,7 @@ public Builder addNodePoolTarget(
      * nodePoolTarget.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addNodePoolTarget( com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder builderForValue) { @@ -959,8 +859,6 @@ public Builder addNodePoolTarget( return this; } /** - * - * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -969,9 +867,7 @@ public Builder addNodePoolTarget(
      * nodePoolTarget.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addNodePoolTarget( int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder builderForValue) { @@ -985,8 +881,6 @@ public Builder addNodePoolTarget( return this; } /** - * - * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -995,15 +889,14 @@ public Builder addNodePoolTarget(
      * nodePoolTarget.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllNodePoolTarget( java.lang.Iterable values) { if (nodePoolTargetBuilder_ == null) { ensureNodePoolTargetIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodePoolTarget_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodePoolTarget_); onChanged(); } else { nodePoolTargetBuilder_.addAllMessages(values); @@ -1011,8 +904,6 @@ public Builder addAllNodePoolTarget( return this; } /** - * - * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -1021,9 +912,7 @@ public Builder addAllNodePoolTarget(
      * nodePoolTarget.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearNodePoolTarget() { if (nodePoolTargetBuilder_ == null) { @@ -1036,8 +925,6 @@ public Builder clearNodePoolTarget() { return this; } /** - * - * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -1046,9 +933,7 @@ public Builder clearNodePoolTarget() {
      * nodePoolTarget.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeNodePoolTarget(int index) { if (nodePoolTargetBuilder_ == null) { @@ -1061,8 +946,6 @@ public Builder removeNodePoolTarget(int index) { return this; } /** - * - * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -1071,17 +954,13 @@ public Builder removeNodePoolTarget(int index) {
      * nodePoolTarget.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder getNodePoolTargetBuilder( int index) { return getNodePoolTargetFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -1090,21 +969,16 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder getNodePoolTargetB
      * nodePoolTarget.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTargetOrBuilder( int index) { if (nodePoolTargetBuilder_ == null) { - return nodePoolTarget_.get(index); - } else { + return nodePoolTarget_.get(index); } else { return nodePoolTargetBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -1113,12 +987,10 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTarget
      * nodePoolTarget.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getNodePoolTargetOrBuilderList() { + public java.util.List + getNodePoolTargetOrBuilderList() { if (nodePoolTargetBuilder_ != null) { return nodePoolTargetBuilder_.getMessageOrBuilderList(); } else { @@ -1126,8 +998,6 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTarget } } /** - * - * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -1136,17 +1006,13 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTarget
      * nodePoolTarget.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder addNodePoolTargetBuilder() { - return getNodePoolTargetFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.GkeNodePoolTarget.getDefaultInstance()); + return getNodePoolTargetFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.GkeNodePoolTarget.getDefaultInstance()); } /** - * - * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -1155,18 +1021,14 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder addNodePoolTargetB
      * nodePoolTarget.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder addNodePoolTargetBuilder( int index) { - return getNodePoolTargetFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.getDefaultInstance()); + return getNodePoolTargetFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.getDefaultInstance()); } /** - * - * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -1175,26 +1037,18 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder addNodePoolTargetB
      * nodePoolTarget.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getNodePoolTargetBuilderList() { + public java.util.List + getNodePoolTargetBuilderList() { return getNodePoolTargetFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolTarget, - com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder> + com.google.cloud.dataproc.v1.GkeNodePoolTarget, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder, com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder> getNodePoolTargetFieldBuilder() { if (nodePoolTargetBuilder_ == null) { - nodePoolTargetBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolTarget, - com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder>( + nodePoolTargetBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolTarget, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder, com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder>( nodePoolTarget_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1203,9 +1057,9 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder addNodePoolTargetB } return nodePoolTargetBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1215,12 +1069,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GkeClusterConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeClusterConfig) private static final com.google.cloud.dataproc.v1.GkeClusterConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeClusterConfig(); } @@ -1229,27 +1083,27 @@ public static com.google.cloud.dataproc.v1.GkeClusterConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1264,4 +1118,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.GkeClusterConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java similarity index 67% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java index bc7bd12ad43b..314144fa81df 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.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/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; -public interface GkeClusterConfigOrBuilder - extends +public interface GkeClusterConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeClusterConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. A target GKE cluster to deploy to. It must be in the same project and
    * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
@@ -33,13 +15,10 @@ public interface GkeClusterConfigOrBuilder
    * 
* * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The gkeClusterTarget. */ java.lang.String getGkeClusterTarget(); /** - * - * *
    * Optional. A target GKE cluster to deploy to. It must be in the same project and
    * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
@@ -47,14 +26,12 @@ public interface GkeClusterConfigOrBuilder
    * 
* * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for gkeClusterTarget. */ - com.google.protobuf.ByteString getGkeClusterTargetBytes(); + com.google.protobuf.ByteString + getGkeClusterTargetBytes(); /** - * - * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -63,14 +40,11 @@ public interface GkeClusterConfigOrBuilder
    * nodePoolTarget.
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getNodePoolTargetList(); + java.util.List + getNodePoolTargetList(); /** - * - * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -79,14 +53,10 @@ public interface GkeClusterConfigOrBuilder
    * nodePoolTarget.
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.GkeNodePoolTarget getNodePoolTarget(int index); /** - * - * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -95,14 +65,10 @@ public interface GkeClusterConfigOrBuilder
    * nodePoolTarget.
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ int getNodePoolTargetCount(); /** - * - * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -111,15 +77,11 @@ public interface GkeClusterConfigOrBuilder
    * nodePoolTarget.
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getNodePoolTargetOrBuilderList(); /** - * - * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -128,9 +90,8 @@ public interface GkeClusterConfigOrBuilder
    * nodePoolTarget.
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTargetOrBuilder(int index); + com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTargetOrBuilder( + int index); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java index a25537d17a3d..edfe143d8cb9 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.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/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * The configuration of a GKE NodePool used by a [Dataproc-on-GKE
  * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
@@ -28,95 +11,82 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig}
  */
-public final class GkeNodePoolConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GkeNodePoolConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolConfig)
     GkeNodePoolConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GkeNodePoolConfig.newBuilder() to construct.
   private GkeNodePoolConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GkeNodePoolConfig() {
     locations_ = 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 GkeNodePoolConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.SharedProto
-        .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.SharedProto
-        .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.GkeNodePoolConfig.class,
-            com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder.class);
+            com.google.cloud.dataproc.v1.GkeNodePoolConfig.class, com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder.class);
   }
 
-  public interface GkeNodeConfigOrBuilder
-      extends
+  public interface GkeNodeConfigOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Optional. The name of a Compute Engine [machine
      * type](https://cloud.google.com/compute/docs/machine-types).
      * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The machineType. */ java.lang.String getMachineType(); /** - * - * *
      * Optional. The name of a Compute Engine [machine
      * type](https://cloud.google.com/compute/docs/machine-types).
      * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for machineType. */ - com.google.protobuf.ByteString getMachineTypeBytes(); + com.google.protobuf.ByteString + getMachineTypeBytes(); /** - * - * *
      * Optional. Whether the nodes are created as [preemptible VM
      * instances](https://cloud.google.com/compute/docs/instances/preemptible).
      * 
* * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The preemptible. */ boolean getPreemptible(); /** - * - * *
      * Optional. The number of local SSD disks to attach to the node, which is limited by
      * the maximum number of disks allowable per zone (see [Adding Local
@@ -124,92 +94,65 @@ public interface GkeNodeConfigOrBuilder
      * 
* * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The localSsdCount. */ int getLocalSsdCount(); /** - * - * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getAcceleratorsList(); /** - * - * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getAccelerators( - int index); + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getAccelerators(int index); /** - * - * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ int getAcceleratorsCount(); /** - * - * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - ? extends - com.google.cloud.dataproc.v1.GkeNodePoolConfig - .GkeNodePoolAcceleratorConfigOrBuilder> + java.util.List getAcceleratorsOrBuilderList(); /** - * - * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder - getAcceleratorsOrBuilder(int index); + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder getAcceleratorsOrBuilder( + int index); /** - * - * *
      * Optional. [Minimum CPU
      * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
@@ -219,13 +162,10 @@ com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getA
      * 
* * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The minCpuPlatform. */ java.lang.String getMinCpuPlatform(); /** - * - * *
      * Optional. [Minimum CPU
      * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
@@ -235,30 +175,27 @@ com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getA
      * 
* * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for minCpuPlatform. */ - com.google.protobuf.ByteString getMinCpuPlatformBytes(); + com.google.protobuf.ByteString + getMinCpuPlatformBytes(); } /** - * - * *
    * Parameters that describe cluster nodes.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig} */ - public static final class GkeNodeConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GkeNodeConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) GkeNodeConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GkeNodeConfig.newBuilder() to construct. private GkeNodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GkeNodeConfig() { machineType_ = ""; accelerators_ = java.util.Collections.emptyList(); @@ -267,42 +204,38 @@ private GkeNodeConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GkeNodeConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.class, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder.class); + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.class, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder.class); } public static final int MACHINE_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object machineType_; /** - * - * *
      * Optional. The name of a Compute Engine [machine
      * type](https://cloud.google.com/compute/docs/machine-types).
      * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The machineType. */ @java.lang.Override @@ -311,30 +244,30 @@ 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; } } /** - * - * *
      * Optional. The name of a Compute Engine [machine
      * type](https://cloud.google.com/compute/docs/machine-types).
      * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -345,15 +278,12 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { public static final int PREEMPTIBLE_FIELD_NUMBER = 10; private boolean preemptible_; /** - * - * *
      * Optional. Whether the nodes are created as [preemptible VM
      * instances](https://cloud.google.com/compute/docs/instances/preemptible).
      * 
* * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The preemptible. */ @java.lang.Override @@ -364,8 +294,6 @@ public boolean getPreemptible() { public static final int LOCAL_SSD_COUNT_FIELD_NUMBER = 7; private int localSsdCount_; /** - * - * *
      * Optional. The number of local SSD disks to attach to the node, which is limited by
      * the maximum number of disks allowable per zone (see [Adding Local
@@ -373,7 +301,6 @@ public boolean getPreemptible() {
      * 
* * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The localSsdCount. */ @java.lang.Override @@ -382,108 +309,78 @@ public int getLocalSsdCount() { } public static final int ACCELERATORS_FIELD_NUMBER = 11; - private java.util.List< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> - accelerators_; + private java.util.List accelerators_; /** - * - * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> - getAcceleratorsList() { + public java.util.List getAcceleratorsList() { return accelerators_; } /** - * - * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.dataproc.v1.GkeNodePoolConfig - .GkeNodePoolAcceleratorConfigOrBuilder> + public java.util.List getAcceleratorsOrBuilderList() { return accelerators_; } /** - * - * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getAcceleratorsCount() { return accelerators_.size(); } /** - * - * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - getAccelerators(int index) { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getAccelerators(int index) { return accelerators_.get(index); } /** - * - * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder - getAcceleratorsOrBuilder(int index) { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder getAcceleratorsOrBuilder( + int index) { return accelerators_.get(index); } public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 13; private volatile java.lang.Object minCpuPlatform_; /** - * - * *
      * Optional. [Minimum CPU
      * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
@@ -493,7 +390,6 @@ public int getAcceleratorsCount() {
      * 
* * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The minCpuPlatform. */ @java.lang.Override @@ -502,15 +398,14 @@ public java.lang.String getMinCpuPlatform() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); minCpuPlatform_ = s; return s; } } /** - * - * *
      * Optional. [Minimum CPU
      * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
@@ -520,15 +415,16 @@ public java.lang.String getMinCpuPlatform() {
      * 
* * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -537,7 +433,6 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -549,7 +444,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(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_); } @@ -578,13 +474,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, machineType_); } if (localSsdCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, localSsdCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, localSsdCount_); } if (preemptible_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, preemptible_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, preemptible_); } for (int i = 0; i < accelerators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, accelerators_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, accelerators_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, minCpuPlatform_); @@ -597,19 +496,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig other = - (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) obj; - - if (!getMachineType().equals(other.getMachineType())) return false; - if (getPreemptible() != other.getPreemptible()) return false; - if (getLocalSsdCount() != other.getLocalSsdCount()) return false; - if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; - if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false; + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig other = (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) obj; + + if (!getMachineType() + .equals(other.getMachineType())) return false; + if (getPreemptible() + != other.getPreemptible()) return false; + if (getLocalSsdCount() + != other.getLocalSsdCount()) return false; + if (!getAcceleratorsList() + .equals(other.getAcceleratorsList())) return false; + if (!getMinCpuPlatform() + .equals(other.getMinCpuPlatform())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -624,7 +527,8 @@ public int hashCode() { hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getMachineType().hashCode(); hash = (37 * hash) + PREEMPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreemptible()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPreemptible()); hash = (37 * hash) + LOCAL_SSD_COUNT_FIELD_NUMBER; hash = (53 * hash) + getLocalSsdCount(); if (getAcceleratorsCount() > 0) { @@ -639,94 +543,87 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig 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.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -736,41 +633,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Parameters that describe cluster nodes.
      * 
* * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.class, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder.class); + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.class, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -793,14 +688,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; } @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig - getDefaultInstanceForType() { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getDefaultInstanceForType() { return com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance(); } @@ -815,8 +709,7 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig buildPartial() { - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig result = - new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig(this); + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig result = new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig(this); int from_bitField0_ = bitField0_; result.machineType_ = machineType_; result.preemptible_ = preemptible_; @@ -839,41 +732,38 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig)other); } else { super.mergeFrom(other); return this; @@ -881,9 +771,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig other) { - if (other - == com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance()) return this; if (!other.getMachineType().isEmpty()) { machineType_ = other.machineType_; onChanged(); @@ -912,10 +800,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeC 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_); } @@ -951,52 +838,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - machineType_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 56: - { - localSsdCount_ = input.readInt32(); - - break; - } // case 56 - case 80: - { - preemptible_ = input.readBool(); - - break; - } // case 80 - case 90: - { - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig m = - input.readMessage( - com.google.cloud.dataproc.v1.GkeNodePoolConfig - .GkeNodePoolAcceleratorConfig.parser(), - extensionRegistry); - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(m); - } else { - acceleratorsBuilder_.addMessage(m); - } - break; - } // case 90 - case 106: - { - minCpuPlatform_ = input.readStringRequireUtf8(); - - break; - } // case 106 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + machineType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 56: { + localSsdCount_ = input.readInt32(); + + break; + } // case 56 + case 80: { + preemptible_ = input.readBool(); + + break; + } // case 80 + case 90: { + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig m = + input.readMessage( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.parser(), + extensionRegistry); + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(m); + } else { + acceleratorsBuilder_.addMessage(m); + } + break; + } // case 90 + case 106: { + minCpuPlatform_ = input.readStringRequireUtf8(); + + break; + } // case 106 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1006,26 +886,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object machineType_ = ""; /** - * - * *
        * Optional. The name of a Compute Engine [machine
        * type](https://cloud.google.com/compute/docs/machine-types).
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1034,22 +911,21 @@ public java.lang.String getMachineType() { } } /** - * - * *
        * Optional. The name of a Compute Engine [machine
        * type](https://cloud.google.com/compute/docs/machine-types).
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1057,80 +933,70 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { } } /** - * - * *
        * Optional. The name of a Compute Engine [machine
        * type](https://cloud.google.com/compute/docs/machine-types).
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
        * Optional. The name of a Compute Engine [machine
        * type](https://cloud.google.com/compute/docs/machine-types).
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMachineType() { - + machineType_ = getDefaultInstance().getMachineType(); onChanged(); return this; } /** - * - * *
        * Optional. The name of a Compute Engine [machine
        * type](https://cloud.google.com/compute/docs/machine-types).
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } - private boolean preemptible_; + private boolean preemptible_ ; /** - * - * *
        * Optional. Whether the nodes are created as [preemptible VM
        * instances](https://cloud.google.com/compute/docs/instances/preemptible).
        * 
* * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The preemptible. */ @java.lang.Override @@ -1138,47 +1004,39 @@ public boolean getPreemptible() { return preemptible_; } /** - * - * *
        * Optional. Whether the nodes are created as [preemptible VM
        * instances](https://cloud.google.com/compute/docs/instances/preemptible).
        * 
* * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The preemptible to set. * @return This builder for chaining. */ public Builder setPreemptible(boolean value) { - + preemptible_ = value; onChanged(); return this; } /** - * - * *
        * Optional. Whether the nodes are created as [preemptible VM
        * instances](https://cloud.google.com/compute/docs/instances/preemptible).
        * 
* * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPreemptible() { - + preemptible_ = false; onChanged(); return this; } - private int localSsdCount_; + private int localSsdCount_ ; /** - * - * *
        * Optional. The number of local SSD disks to attach to the node, which is limited by
        * the maximum number of disks allowable per zone (see [Adding Local
@@ -1186,7 +1044,6 @@ public Builder clearPreemptible() {
        * 
* * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The localSsdCount. */ @java.lang.Override @@ -1194,8 +1051,6 @@ public int getLocalSsdCount() { return localSsdCount_; } /** - * - * *
        * Optional. The number of local SSD disks to attach to the node, which is limited by
        * the maximum number of disks allowable per zone (see [Adding Local
@@ -1203,19 +1058,16 @@ public int getLocalSsdCount() {
        * 
* * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The localSsdCount to set. * @return This builder for chaining. */ public Builder setLocalSsdCount(int value) { - + localSsdCount_ = value; onChanged(); return this; } /** - * - * *
        * Optional. The number of local SSD disks to attach to the node, which is limited by
        * the maximum number of disks allowable per zone (see [Adding Local
@@ -1223,52 +1075,37 @@ public Builder setLocalSsdCount(int value) {
        * 
* * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLocalSsdCount() { - + localSsdCount_ = 0; onChanged(); return this; } - private java.util.List< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> - accelerators_ = java.util.Collections.emptyList(); - + private java.util.List accelerators_ = + java.util.Collections.emptyList(); private void ensureAcceleratorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - accelerators_ = - new java.util.ArrayList< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig>( - accelerators_); + accelerators_ = new java.util.ArrayList(accelerators_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder> - acceleratorsBuilder_; + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder> acceleratorsBuilder_; /** - * - * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> - getAcceleratorsList() { + public java.util.List getAcceleratorsList() { if (acceleratorsBuilder_ == null) { return java.util.Collections.unmodifiableList(accelerators_); } else { @@ -1276,17 +1113,13 @@ private void ensureAcceleratorsIsMutable() { } } /** - * - * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public int getAcceleratorsCount() { if (acceleratorsBuilder_ == null) { @@ -1296,20 +1129,15 @@ public int getAcceleratorsCount() { } } /** - * - * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - getAccelerators(int index) { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getAccelerators(int index) { if (acceleratorsBuilder_ == null) { return accelerators_.get(index); } else { @@ -1317,21 +1145,16 @@ public int getAcceleratorsCount() { } } /** - * - * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAccelerators( - int index, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value) { + int index, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value) { if (acceleratorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1345,22 +1168,16 @@ public Builder setAccelerators( return this; } /** - * - * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAccelerators( - int index, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder - builderForValue) { + int index, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder builderForValue) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.set(index, builderForValue.build()); @@ -1371,20 +1188,15 @@ public Builder setAccelerators( return this; } /** - * - * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addAccelerators( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value) { + public Builder addAccelerators(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value) { if (acceleratorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1398,21 +1210,16 @@ public Builder addAccelerators( return this; } /** - * - * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAccelerators( - int index, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value) { + int index, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value) { if (acceleratorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1426,21 +1233,16 @@ public Builder addAccelerators( return this; } /** - * - * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAccelerators( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder - builderForValue) { + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder builderForValue) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.add(builderForValue.build()); @@ -1451,22 +1253,16 @@ public Builder addAccelerators( return this; } /** - * - * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAccelerators( - int index, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder - builderForValue) { + int index, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder builderForValue) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.add(index, builderForValue.build()); @@ -1477,26 +1273,20 @@ public Builder addAccelerators( return this; } /** - * - * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllAccelerators( - java.lang.Iterable< - ? extends - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> - 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); @@ -1504,17 +1294,13 @@ public Builder addAllAccelerators( return this; } /** - * - * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAccelerators() { if (acceleratorsBuilder_ == null) { @@ -1527,17 +1313,13 @@ public Builder clearAccelerators() { return this; } /** - * - * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeAccelerators(int index) { if (acceleratorsBuilder_ == null) { @@ -1550,61 +1332,45 @@ public Builder removeAccelerators(int index) { return this; } /** - * - * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder - getAcceleratorsBuilder(int index) { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder getAcceleratorsBuilder( + int index) { return getAcceleratorsFieldBuilder().getBuilder(index); } /** - * - * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder - getAcceleratorsOrBuilder(int index) { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder getAcceleratorsOrBuilder( + int index) { if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); - } else { + return accelerators_.get(index); } else { return acceleratorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends - com.google.cloud.dataproc.v1.GkeNodePoolConfig - .GkeNodePoolAcceleratorConfigOrBuilder> - getAcceleratorsOrBuilderList() { + public java.util.List + getAcceleratorsOrBuilderList() { if (acceleratorsBuilder_ != null) { return acceleratorsBuilder_.getMessageOrBuilderList(); } else { @@ -1612,78 +1378,51 @@ public Builder removeAccelerators(int index) { } } /** - * - * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder - addAcceleratorsBuilder() { - return getAcceleratorsFieldBuilder() - .addBuilder( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - .getDefaultInstance()); + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder addAcceleratorsBuilder() { + return getAcceleratorsFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.getDefaultInstance()); } /** - * - * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder - addAcceleratorsBuilder(int index) { - return getAcceleratorsFieldBuilder() - .addBuilder( - index, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - .getDefaultInstance()); + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder addAcceleratorsBuilder( + int index) { + return getAcceleratorsFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.getDefaultInstance()); } /** - * - * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder> - getAcceleratorsBuilderList() { + public java.util.List + getAcceleratorsBuilderList() { return getAcceleratorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder> + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder> getAcceleratorsFieldBuilder() { if (acceleratorsBuilder_ == null) { - acceleratorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - .Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfig - .GkeNodePoolAcceleratorConfigOrBuilder>( + acceleratorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder>( accelerators_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1695,8 +1434,6 @@ public Builder removeAccelerators(int index) { private java.lang.Object minCpuPlatform_ = ""; /** - * - * *
        * Optional. [Minimum CPU
        * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
@@ -1706,13 +1443,13 @@ public Builder removeAccelerators(int index) {
        * 
* * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1721,8 +1458,6 @@ public java.lang.String getMinCpuPlatform() { } } /** - * - * *
        * Optional. [Minimum CPU
        * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
@@ -1732,14 +1467,15 @@ public java.lang.String getMinCpuPlatform() {
        * 
* * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1747,8 +1483,6 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { } } /** - * - * *
        * Optional. [Minimum CPU
        * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
@@ -1758,22 +1492,20 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() {
        * 
* * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
        * Optional. [Minimum CPU
        * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
@@ -1783,18 +1515,15 @@ public Builder setMinCpuPlatform(java.lang.String value) {
        * 
* * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMinCpuPlatform() { - + minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); onChanged(); return this; } /** - * - * *
        * Optional. [Minimum CPU
        * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
@@ -1804,21 +1533,20 @@ public Builder clearMinCpuPlatform() {
        * 
* * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1831,45 +1559,42 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) - private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig(); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig - getDefaultInstance() { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeNodeConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeNodeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + public static com.google.protobuf.Parser parser() { return PARSER; } @@ -1880,58 +1605,47 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig - getDefaultInstanceForType() { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface GkeNodePoolAcceleratorConfigOrBuilder - extends + public interface GkeNodePoolAcceleratorConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The number of accelerator cards exposed to an instance.
      * 
* * int64 accelerator_count = 1; - * * @return The acceleratorCount. */ long getAcceleratorCount(); /** - * - * *
      * The accelerator type resource namename (see GPUs on Compute Engine).
      * 
* * string accelerator_type = 2; - * * @return The acceleratorType. */ java.lang.String getAcceleratorType(); /** - * - * *
      * The accelerator type resource namename (see GPUs on Compute Engine).
      * 
* * string accelerator_type = 2; - * * @return The bytes for acceleratorType. */ - com.google.protobuf.ByteString getAcceleratorTypeBytes(); + com.google.protobuf.ByteString + getAcceleratorTypeBytes(); } /** - * - * *
    * A GkeNodeConfigAcceleratorConfig represents a Hardware Accelerator request
    * for a NodePool.
@@ -1939,60 +1653,52 @@ public interface GkeNodePoolAcceleratorConfigOrBuilder
    *
    * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig}
    */
-  public static final class GkeNodePoolAcceleratorConfig
-      extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class GkeNodePoolAcceleratorConfig extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig)
       GkeNodePoolAcceleratorConfigOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use GkeNodePoolAcceleratorConfig.newBuilder() to construct.
-    private GkeNodePoolAcceleratorConfig(
-        com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    private GkeNodePoolAcceleratorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private GkeNodePoolAcceleratorConfig() {
       acceleratorType_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new GkeNodePoolAcceleratorConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.SharedProto
-          .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.SharedProto
-          .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.class,
-              com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder
-                  .class);
+              com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.class, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder.class);
     }
 
     public static final int ACCELERATOR_COUNT_FIELD_NUMBER = 1;
     private long acceleratorCount_;
     /**
-     *
-     *
      * 
      * The number of accelerator cards exposed to an instance.
      * 
* * int64 accelerator_count = 1; - * * @return The acceleratorCount. */ @java.lang.Override @@ -2003,14 +1709,11 @@ public long getAcceleratorCount() { public static final int ACCELERATOR_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object acceleratorType_; /** - * - * *
      * The accelerator type resource namename (see GPUs on Compute Engine).
      * 
* * string accelerator_type = 2; - * * @return The acceleratorType. */ @java.lang.Override @@ -2019,29 +1722,29 @@ public java.lang.String getAcceleratorType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); acceleratorType_ = s; return s; } } /** - * - * *
      * The accelerator type resource namename (see GPUs on Compute Engine).
      * 
* * string accelerator_type = 2; - * * @return The bytes for acceleratorType. */ @java.lang.Override - public com.google.protobuf.ByteString getAcceleratorTypeBytes() { + public com.google.protobuf.ByteString + getAcceleratorTypeBytes() { java.lang.Object ref = acceleratorType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); acceleratorType_ = b; return b; } else { @@ -2050,7 +1753,6 @@ public com.google.protobuf.ByteString getAcceleratorTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2062,7 +1764,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 (acceleratorCount_ != 0L) { output.writeInt64(1, acceleratorCount_); } @@ -2079,7 +1782,8 @@ public int getSerializedSize() { size = 0; if (acceleratorCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, acceleratorCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, acceleratorCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acceleratorType_); @@ -2092,17 +1796,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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig)) { + if (!(obj instanceof com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig other = - (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) obj; + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig other = (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) obj; - if (getAcceleratorCount() != other.getAcceleratorCount()) return false; - if (!getAcceleratorType().equals(other.getAcceleratorType())) return false; + if (getAcceleratorCount() + != other.getAcceleratorCount()) return false; + if (!getAcceleratorType() + .equals(other.getAcceleratorType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2115,7 +1819,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCELERATOR_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAcceleratorCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAcceleratorCount()); hash = (37 * hash) + ACCELERATOR_TYPE_FIELD_NUMBER; hash = (53 * hash) + getAcceleratorType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -2123,101 +1828,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2227,8 +1919,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A GkeNodeConfigAcceleratorConfig represents a Hardware Accelerator request
      * for a NodePool.
@@ -2236,35 +1926,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig)
         com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.dataproc.v1.SharedProto
-            .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.dataproc.v1.SharedProto
-            .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable
+        return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.class,
-                com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder
-                    .class);
+                com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.class, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2276,22 +1964,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.dataproc.v1.SharedProto
-            .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig
-          getDefaultInstanceForType() {
-        return com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig
-            .getDefaultInstance();
+      public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getDefaultInstanceForType() {
+        return com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig build() {
-        com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig result =
-            buildPartial();
+        com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -2299,10 +1984,8 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConf
       }
 
       @java.lang.Override
-      public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig
-          buildPartial() {
-        com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig result =
-            new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig(this);
+      public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig buildPartial() {
+        com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig result = new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig(this);
         result.acceleratorCount_ = acceleratorCount_;
         result.acceleratorType_ = acceleratorType_;
         onBuilt();
@@ -2313,55 +1996,46 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConf
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) {
-          return mergeFrom(
-              (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) other);
+        if (other instanceof com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) {
+          return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig other) {
-        if (other
-            == com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig other) {
+        if (other == com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.getDefaultInstance()) return this;
         if (other.getAcceleratorCount() != 0L) {
           setAcceleratorCount(other.getAcceleratorCount());
         }
@@ -2395,25 +2069,22 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8:
-                {
-                  acceleratorCount_ = input.readInt64();
-
-                  break;
-                } // case 8
-              case 18:
-                {
-                  acceleratorType_ = input.readStringRequireUtf8();
-
-                  break;
-                } // case 18
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 8: {
+                acceleratorCount_ = input.readInt64();
+
+                break;
+              } // case 8
+              case 18: {
+                acceleratorType_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 18
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2424,16 +2095,13 @@ public Builder mergeFrom(
         return this;
       }
 
-      private long acceleratorCount_;
+      private long acceleratorCount_ ;
       /**
-       *
-       *
        * 
        * The number of accelerator cards exposed to an instance.
        * 
* * int64 accelerator_count = 1; - * * @return The acceleratorCount. */ @java.lang.Override @@ -2441,36 +2109,30 @@ public long getAcceleratorCount() { return acceleratorCount_; } /** - * - * *
        * The number of accelerator cards exposed to an instance.
        * 
* * int64 accelerator_count = 1; - * * @param value The acceleratorCount to set. * @return This builder for chaining. */ public Builder setAcceleratorCount(long value) { - + acceleratorCount_ = value; onChanged(); return this; } /** - * - * *
        * The number of accelerator cards exposed to an instance.
        * 
* * int64 accelerator_count = 1; - * * @return This builder for chaining. */ public Builder clearAcceleratorCount() { - + acceleratorCount_ = 0L; onChanged(); return this; @@ -2478,20 +2140,18 @@ public Builder clearAcceleratorCount() { private java.lang.Object acceleratorType_ = ""; /** - * - * *
        * The accelerator type resource namename (see GPUs on Compute Engine).
        * 
* * string accelerator_type = 2; - * * @return The acceleratorType. */ public java.lang.String getAcceleratorType() { java.lang.Object ref = acceleratorType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); acceleratorType_ = s; return s; @@ -2500,21 +2160,20 @@ public java.lang.String getAcceleratorType() { } } /** - * - * *
        * The accelerator type resource namename (see GPUs on Compute Engine).
        * 
* * string accelerator_type = 2; - * * @return The bytes for acceleratorType. */ - public com.google.protobuf.ByteString getAcceleratorTypeBytes() { + public com.google.protobuf.ByteString + getAcceleratorTypeBytes() { java.lang.Object ref = acceleratorType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); acceleratorType_ = b; return b; } else { @@ -2522,66 +2181,58 @@ public com.google.protobuf.ByteString getAcceleratorTypeBytes() { } } /** - * - * *
        * The accelerator type resource namename (see GPUs on Compute Engine).
        * 
* * string accelerator_type = 2; - * * @param value The acceleratorType to set. * @return This builder for chaining. */ - public Builder setAcceleratorType(java.lang.String value) { + public Builder setAcceleratorType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + acceleratorType_ = value; onChanged(); return this; } /** - * - * *
        * The accelerator type resource namename (see GPUs on Compute Engine).
        * 
* * string accelerator_type = 2; - * * @return This builder for chaining. */ public Builder clearAcceleratorType() { - + acceleratorType_ = getDefaultInstance().getAcceleratorType(); onChanged(); return this; } /** - * - * *
        * The accelerator type resource namename (see GPUs on Compute Engine).
        * 
* * string accelerator_type = 2; - * * @param value The bytes for acceleratorType to set. * @return This builder for chaining. */ - public Builder setAcceleratorTypeBytes(com.google.protobuf.ByteString value) { + public Builder setAcceleratorTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + acceleratorType_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2594,45 +2245,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) - private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig(); + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig(); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - getDefaultInstance() { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeNodePoolAcceleratorConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeNodePoolAcceleratorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2644,48 +2291,39 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - getDefaultInstanceForType() { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface GkeNodePoolAutoscalingConfigOrBuilder - extends + public interface GkeNodePoolAutoscalingConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The minimum number of nodes in the NodePool. Must be >= 0 and <=
      * max_node_count.
      * 
* * int32 min_node_count = 2; - * * @return The minNodeCount. */ int getMinNodeCount(); /** - * - * *
      * The maximum number of nodes in the NodePool. Must be >= min_node_count.
      * **Note:** Quota must be sufficient to scale up the cluster.
      * 
* * int32 max_node_count = 3; - * * @return The maxNodeCount. */ int getMaxNodeCount(); } /** - * - * *
    * GkeNodePoolAutoscaling contains information the cluster autoscaler needs to
    * adjust the size of the node pool to the current cluster usage.
@@ -2693,59 +2331,52 @@ public interface GkeNodePoolAutoscalingConfigOrBuilder
    *
    * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig}
    */
-  public static final class GkeNodePoolAutoscalingConfig
-      extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class GkeNodePoolAutoscalingConfig extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig)
       GkeNodePoolAutoscalingConfigOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use GkeNodePoolAutoscalingConfig.newBuilder() to construct.
-    private GkeNodePoolAutoscalingConfig(
-        com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    private GkeNodePoolAutoscalingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private GkeNodePoolAutoscalingConfig() {}
+    private GkeNodePoolAutoscalingConfig() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new GkeNodePoolAutoscalingConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.SharedProto
-          .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.SharedProto
-          .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.class,
-              com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder
-                  .class);
+              com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.class, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder.class);
     }
 
     public static final int MIN_NODE_COUNT_FIELD_NUMBER = 2;
     private int minNodeCount_;
     /**
-     *
-     *
      * 
      * The minimum number of nodes in the NodePool. Must be >= 0 and <=
      * max_node_count.
      * 
* * int32 min_node_count = 2; - * * @return The minNodeCount. */ @java.lang.Override @@ -2756,15 +2387,12 @@ public int getMinNodeCount() { public static final int MAX_NODE_COUNT_FIELD_NUMBER = 3; private int maxNodeCount_; /** - * - * *
      * The maximum number of nodes in the NodePool. Must be >= min_node_count.
      * **Note:** Quota must be sufficient to scale up the cluster.
      * 
* * int32 max_node_count = 3; - * * @return The maxNodeCount. */ @java.lang.Override @@ -2773,7 +2401,6 @@ public int getMaxNodeCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2785,7 +2412,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 (minNodeCount_ != 0) { output.writeInt32(2, minNodeCount_); } @@ -2802,10 +2430,12 @@ public int getSerializedSize() { size = 0; if (minNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minNodeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, minNodeCount_); } if (maxNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxNodeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxNodeCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2815,17 +2445,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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig)) { + if (!(obj instanceof com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig other = - (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) obj; + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig other = (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) obj; - if (getMinNodeCount() != other.getMinNodeCount()) return false; - if (getMaxNodeCount() != other.getMaxNodeCount()) return false; + if (getMinNodeCount() + != other.getMinNodeCount()) return false; + if (getMaxNodeCount() + != other.getMaxNodeCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2846,101 +2476,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2950,8 +2567,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * GkeNodePoolAutoscaling contains information the cluster autoscaler needs to
      * adjust the size of the node pool to the current cluster usage.
@@ -2959,35 +2574,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig)
         com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.dataproc.v1.SharedProto
-            .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.dataproc.v1.SharedProto
-            .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable
+        return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.class,
-                com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder
-                    .class);
+                com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.class, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2999,22 +2612,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.dataproc.v1.SharedProto
-            .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig
-          getDefaultInstanceForType() {
-        return com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig
-            .getDefaultInstance();
+      public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig getDefaultInstanceForType() {
+        return com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig build() {
-        com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig result =
-            buildPartial();
+        com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -3022,10 +2632,8 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConf
       }
 
       @java.lang.Override
-      public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig
-          buildPartial() {
-        com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig result =
-            new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig(this);
+      public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig buildPartial() {
+        com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig result = new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig(this);
         result.minNodeCount_ = minNodeCount_;
         result.maxNodeCount_ = maxNodeCount_;
         onBuilt();
@@ -3036,55 +2644,46 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConf
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) {
-          return mergeFrom(
-              (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) other);
+        if (other instanceof com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) {
+          return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig other) {
-        if (other
-            == com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig other) {
+        if (other == com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.getDefaultInstance()) return this;
         if (other.getMinNodeCount() != 0) {
           setMinNodeCount(other.getMinNodeCount());
         }
@@ -3117,25 +2716,22 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 16:
-                {
-                  minNodeCount_ = input.readInt32();
-
-                  break;
-                } // case 16
-              case 24:
-                {
-                  maxNodeCount_ = input.readInt32();
-
-                  break;
-                } // case 24
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 16: {
+                minNodeCount_ = input.readInt32();
+
+                break;
+              } // case 16
+              case 24: {
+                maxNodeCount_ = input.readInt32();
+
+                break;
+              } // case 24
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3146,17 +2742,14 @@ public Builder mergeFrom(
         return this;
       }
 
-      private int minNodeCount_;
+      private int minNodeCount_ ;
       /**
-       *
-       *
        * 
        * The minimum number of nodes in the NodePool. Must be >= 0 and <=
        * max_node_count.
        * 
* * int32 min_node_count = 2; - * * @return The minNodeCount. */ @java.lang.Override @@ -3164,54 +2757,45 @@ public int getMinNodeCount() { return minNodeCount_; } /** - * - * *
        * The minimum number of nodes in the NodePool. Must be >= 0 and <=
        * max_node_count.
        * 
* * int32 min_node_count = 2; - * * @param value The minNodeCount to set. * @return This builder for chaining. */ public Builder setMinNodeCount(int value) { - + minNodeCount_ = value; onChanged(); return this; } /** - * - * *
        * The minimum number of nodes in the NodePool. Must be >= 0 and <=
        * max_node_count.
        * 
* * int32 min_node_count = 2; - * * @return This builder for chaining. */ public Builder clearMinNodeCount() { - + minNodeCount_ = 0; onChanged(); return this; } - private int maxNodeCount_; + private int maxNodeCount_ ; /** - * - * *
        * The maximum number of nodes in the NodePool. Must be >= min_node_count.
        * **Note:** Quota must be sufficient to scale up the cluster.
        * 
* * int32 max_node_count = 3; - * * @return The maxNodeCount. */ @java.lang.Override @@ -3219,43 +2803,36 @@ public int getMaxNodeCount() { return maxNodeCount_; } /** - * - * *
        * The maximum number of nodes in the NodePool. Must be >= min_node_count.
        * **Note:** Quota must be sufficient to scale up the cluster.
        * 
* * int32 max_node_count = 3; - * * @param value The maxNodeCount to set. * @return This builder for chaining. */ public Builder setMaxNodeCount(int value) { - + maxNodeCount_ = value; onChanged(); return this; } /** - * - * *
        * The maximum number of nodes in the NodePool. Must be >= min_node_count.
        * **Note:** Quota must be sufficient to scale up the cluster.
        * 
* * int32 max_node_count = 3; - * * @return This builder for chaining. */ public Builder clearMaxNodeCount() { - + maxNodeCount_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3268,45 +2845,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) - private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig(); + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig(); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - getDefaultInstance() { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeNodePoolAutoscalingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeNodePoolAutoscalingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3318,25 +2891,20 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - getDefaultInstanceForType() { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int CONFIG_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config_; /** - * - * *
    * Optional. The node pool configuration.
    * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the config field is set. */ @java.lang.Override @@ -3344,46 +2912,32 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Optional. The node pool configuration.
    * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The config. */ @java.lang.Override public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getConfig() { - return config_ == null - ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance() : config_; } /** - * - * *
    * Optional. The node pool configuration.
    * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder - getConfigOrBuilder() { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder getConfigOrBuilder() { return getConfig(); } public static final int LOCATIONS_FIELD_NUMBER = 13; private com.google.protobuf.LazyStringList locations_; /** - * - * *
    * Optional. The list of Compute Engine
    * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -3394,15 +2948,13 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getConfig()
    * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the locations. */ - public com.google.protobuf.ProtocolStringList getLocationsList() { + public com.google.protobuf.ProtocolStringList + getLocationsList() { return locations_; } /** - * - * *
    * Optional. The list of Compute Engine
    * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -3413,15 +2965,12 @@ public com.google.protobuf.ProtocolStringList getLocationsList() {
    * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of locations. */ public int getLocationsCount() { return locations_.size(); } /** - * - * *
    * Optional. The list of Compute Engine
    * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -3432,7 +2981,6 @@ public int getLocationsCount() {
    * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The locations at the given index. */ @@ -3440,8 +2988,6 @@ public java.lang.String getLocations(int index) { return locations_.get(index); } /** - * - * *
    * Optional. The list of Compute Engine
    * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -3452,28 +2998,23 @@ public java.lang.String getLocations(int index) {
    * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the locations at the given index. */ - public com.google.protobuf.ByteString getLocationsBytes(int index) { + public com.google.protobuf.ByteString + getLocationsBytes(int index) { return locations_.getByteString(index); } public static final int AUTOSCALING_FIELD_NUMBER = 4; private com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling_; /** - * - * *
    * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
    * only when a valid configuration is present.
    * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the autoscaling field is set. */ @java.lang.Override @@ -3481,47 +3022,32 @@ public boolean hasAutoscaling() { return autoscaling_ != null; } /** - * - * *
    * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
    * only when a valid configuration is present.
    * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The autoscaling. */ @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - getAutoscaling() { - return autoscaling_ == null - ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - .getDefaultInstance() - : autoscaling_; + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig getAutoscaling() { + return autoscaling_ == null ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.getDefaultInstance() : autoscaling_; } /** - * - * *
    * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
    * only when a valid configuration is present.
    * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder - getAutoscalingOrBuilder() { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder getAutoscalingOrBuilder() { return getAutoscaling(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3533,7 +3059,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 (config_ != null) { output.writeMessage(2, getConfig()); } @@ -3553,10 +3080,12 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConfig()); } if (autoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAutoscaling()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAutoscaling()); } { int dataSize = 0; @@ -3574,22 +3103,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.dataproc.v1.GkeNodePoolConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GkeNodePoolConfig other = - (com.google.cloud.dataproc.v1.GkeNodePoolConfig) obj; + com.google.cloud.dataproc.v1.GkeNodePoolConfig other = (com.google.cloud.dataproc.v1.GkeNodePoolConfig) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } - if (!getLocationsList().equals(other.getLocationsList())) return false; + if (!getLocationsList() + .equals(other.getLocationsList())) return false; if (hasAutoscaling() != other.hasAutoscaling()) return false; if (hasAutoscaling()) { - if (!getAutoscaling().equals(other.getAutoscaling())) return false; + if (!getAutoscaling() + .equals(other.getAutoscaling())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3619,104 +3150,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.GkeNodePoolConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 configuration of a GKE NodePool used by a [Dataproc-on-GKE
    * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
@@ -3724,32 +3248,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolConfig)
       com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.SharedProto
-          .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.SharedProto
-          .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.GkeNodePoolConfig.class,
-              com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder.class);
+              com.google.cloud.dataproc.v1.GkeNodePoolConfig.class, com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.GkeNodePoolConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3771,9 +3296,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.SharedProto
-          .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor;
     }
 
     @java.lang.Override
@@ -3792,8 +3317,7 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.GkeNodePoolConfig buildPartial() {
-      com.google.cloud.dataproc.v1.GkeNodePoolConfig result =
-          new com.google.cloud.dataproc.v1.GkeNodePoolConfig(this);
+      com.google.cloud.dataproc.v1.GkeNodePoolConfig result = new com.google.cloud.dataproc.v1.GkeNodePoolConfig(this);
       int from_bitField0_ = bitField0_;
       if (configBuilder_ == null) {
         result.config_ = config_;
@@ -3818,39 +3342,38 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.GkeNodePoolConfig) {
-        return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolConfig) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3901,32 +3424,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+            case 18: {
+              input.readMessage(
+                  getConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 18
-            case 34:
-              {
-                input.readMessage(getAutoscalingFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 18
+            case 34: {
+              input.readMessage(
+                  getAutoscalingFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 34
-            case 106:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureLocationsIsMutable();
-                locations_.add(s);
-                break;
-              } // case 106
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 34
+            case 106: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureLocationsIsMutable();
+              locations_.add(s);
+              break;
+            } // case 106
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3936,63 +3459,43 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig,
-            com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder,
-            com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder>
-        configBuilder_;
+        com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder> configBuilder_;
     /**
-     *
-     *
      * 
      * Optional. The node pool configuration.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * Optional. The node pool configuration.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The config. */ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Optional. The node pool configuration.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig value) { if (configBuilder_ == null) { @@ -4008,15 +3511,11 @@ public Builder setConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeC return this; } /** - * - * *
      * Optional. The node pool configuration.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setConfig( com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder builderForValue) { @@ -4030,23 +3529,17 @@ public Builder setConfig( return this; } /** - * - * *
      * Optional. The node pool configuration.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -4058,15 +3551,11 @@ public Builder mergeConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNod return this; } /** - * - * *
      * Optional. The node pool configuration.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -4080,82 +3569,61 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Optional. The node pool configuration.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The node pool configuration.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder - getConfigOrBuilder() { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Optional. The node pool configuration.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder> + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; } - private com.google.protobuf.LazyStringList locations_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLocationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { locations_ = new com.google.protobuf.LazyStringArrayList(locations_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Optional. The list of Compute Engine
      * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -4166,15 +3634,13 @@ private void ensureLocationsIsMutable() {
      * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the locations. */ - public com.google.protobuf.ProtocolStringList getLocationsList() { + public com.google.protobuf.ProtocolStringList + getLocationsList() { return locations_.getUnmodifiableView(); } /** - * - * *
      * Optional. The list of Compute Engine
      * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -4185,15 +3651,12 @@ public com.google.protobuf.ProtocolStringList getLocationsList() {
      * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of locations. */ public int getLocationsCount() { return locations_.size(); } /** - * - * *
      * Optional. The list of Compute Engine
      * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -4204,7 +3667,6 @@ public int getLocationsCount() {
      * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The locations at the given index. */ @@ -4212,8 +3674,6 @@ public java.lang.String getLocations(int index) { return locations_.get(index); } /** - * - * *
      * Optional. The list of Compute Engine
      * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -4224,16 +3684,14 @@ public java.lang.String getLocations(int index) {
      * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the locations at the given index. */ - public com.google.protobuf.ByteString getLocationsBytes(int index) { + public com.google.protobuf.ByteString + getLocationsBytes(int index) { return locations_.getByteString(index); } /** - * - * *
      * Optional. The list of Compute Engine
      * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -4244,23 +3702,21 @@ public com.google.protobuf.ByteString getLocationsBytes(int index) {
      * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The locations to set. * @return This builder for chaining. */ - public Builder setLocations(int index, java.lang.String value) { + public Builder setLocations( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); + throw new NullPointerException(); + } + ensureLocationsIsMutable(); locations_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. The list of Compute Engine
      * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -4271,22 +3727,20 @@ public Builder setLocations(int index, java.lang.String value) {
      * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The locations to add. * @return This builder for chaining. */ - public Builder addLocations(java.lang.String value) { + public Builder addLocations( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); + throw new NullPointerException(); + } + ensureLocationsIsMutable(); locations_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. The list of Compute Engine
      * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -4297,19 +3751,18 @@ public Builder addLocations(java.lang.String value) {
      * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The locations to add. * @return This builder for chaining. */ - public Builder addAllLocations(java.lang.Iterable values) { + public Builder addAllLocations( + java.lang.Iterable values) { ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, locations_); onChanged(); return this; } /** - * - * *
      * Optional. The list of Compute Engine
      * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -4320,7 +3773,6 @@ public Builder addAllLocations(java.lang.Iterable values) {
      * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLocations() { @@ -4330,8 +3782,6 @@ public Builder clearLocations() { return this; } /** - * - * *
      * Optional. The list of Compute Engine
      * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -4342,84 +3792,61 @@ public Builder clearLocations() {
      * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the locations to add. * @return This builder for chaining. */ - public Builder addLocationsBytes(com.google.protobuf.ByteString value) { + public Builder addLocationsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLocationsIsMutable(); locations_.add(value); onChanged(); return this; } - private com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - autoscaling_; + private com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder> - autoscalingBuilder_; + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder> autoscalingBuilder_; /** - * - * *
      * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
      * only when a valid configuration is present.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the autoscaling field is set. */ public boolean hasAutoscaling() { return autoscalingBuilder_ != null || autoscaling_ != null; } /** - * - * *
      * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
      * only when a valid configuration is present.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The autoscaling. */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - getAutoscaling() { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig getAutoscaling() { if (autoscalingBuilder_ == null) { - return autoscaling_ == null - ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - .getDefaultInstance() - : autoscaling_; + return autoscaling_ == null ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.getDefaultInstance() : autoscaling_; } else { return autoscalingBuilder_.getMessage(); } } /** - * - * *
      * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
      * only when a valid configuration is present.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setAutoscaling( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value) { + public Builder setAutoscaling(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value) { if (autoscalingBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4433,20 +3860,15 @@ public Builder setAutoscaling( return this; } /** - * - * *
      * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
      * only when a valid configuration is present.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAutoscaling( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder - builderForValue) { + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder builderForValue) { if (autoscalingBuilder_ == null) { autoscaling_ = builderForValue.build(); onChanged(); @@ -4457,26 +3879,18 @@ public Builder setAutoscaling( return this; } /** - * - * *
      * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
      * only when a valid configuration is present.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeAutoscaling( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value) { + public Builder mergeAutoscaling(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value) { if (autoscalingBuilder_ == null) { if (autoscaling_ != null) { autoscaling_ = - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - .newBuilder(autoscaling_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.newBuilder(autoscaling_).mergeFrom(value).buildPartial(); } else { autoscaling_ = value; } @@ -4488,16 +3902,12 @@ public Builder mergeAutoscaling( return this; } /** - * - * *
      * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
      * only when a valid configuration is present.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAutoscaling() { if (autoscalingBuilder_ == null) { @@ -4511,78 +3921,58 @@ public Builder clearAutoscaling() { return this; } /** - * - * *
      * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
      * only when a valid configuration is present.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder - getAutoscalingBuilder() { - + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder getAutoscalingBuilder() { + onChanged(); return getAutoscalingFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
      * only when a valid configuration is present.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder - getAutoscalingOrBuilder() { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder getAutoscalingOrBuilder() { if (autoscalingBuilder_ != null) { return autoscalingBuilder_.getMessageOrBuilder(); } else { - return autoscaling_ == null - ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - .getDefaultInstance() - : autoscaling_; + return autoscaling_ == null ? + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.getDefaultInstance() : autoscaling_; } } /** - * - * *
      * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
      * only when a valid configuration is present.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder> + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder> getAutoscalingFieldBuilder() { if (autoscalingBuilder_ == null) { - autoscalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfig - .GkeNodePoolAutoscalingConfigOrBuilder>( - getAutoscaling(), getParentForChildren(), isClean()); + autoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder>( + getAutoscaling(), + getParentForChildren(), + isClean()); autoscaling_ = null; } return autoscalingBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4592,12 +3982,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GkeNodePoolConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolConfig) private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeNodePoolConfig(); } @@ -4606,27 +3996,27 @@ public static com.google.cloud.dataproc.v1.GkeNodePoolConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeNodePoolConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeNodePoolConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4641,4 +4031,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.GkeNodePoolConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java similarity index 66% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java index 81c1de166bee..f26db58007a5 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java @@ -1,72 +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/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; -public interface GkeNodePoolConfigOrBuilder - extends +public interface GkeNodePoolConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The node pool configuration.
    * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Optional. The node pool configuration.
    * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The config. */ com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getConfig(); /** - * - * *
    * Optional. The node pool configuration.
    * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder getConfigOrBuilder(); /** - * - * *
    * Optional. The list of Compute Engine
    * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -77,13 +45,11 @@ public interface GkeNodePoolConfigOrBuilder
    * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the locations. */ - java.util.List getLocationsList(); + java.util.List + getLocationsList(); /** - * - * *
    * Optional. The list of Compute Engine
    * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -94,13 +60,10 @@ public interface GkeNodePoolConfigOrBuilder
    * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of locations. */ int getLocationsCount(); /** - * - * *
    * Optional. The list of Compute Engine
    * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -111,14 +74,11 @@ public interface GkeNodePoolConfigOrBuilder
    * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The locations at the given index. */ java.lang.String getLocations(int index); /** - * - * *
    * Optional. The list of Compute Engine
    * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -129,54 +89,39 @@ public interface GkeNodePoolConfigOrBuilder
    * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the locations at the given index. */ - com.google.protobuf.ByteString getLocationsBytes(int index); + com.google.protobuf.ByteString + getLocationsBytes(int index); /** - * - * *
    * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
    * only when a valid configuration is present.
    * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the autoscaling field is set. */ boolean hasAutoscaling(); /** - * - * *
    * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
    * only when a valid configuration is present.
    * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The autoscaling. */ com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig getAutoscaling(); /** - * - * *
    * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
    * only when a valid configuration is present.
    * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder - getAutoscalingOrBuilder(); + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder getAutoscalingOrBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java index 40aa3a4bd047..3b9dd9f3dc70 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.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/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * GKE NodePools that Dataproc workloads run on.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolTarget} */ -public final class GkeNodePoolTarget extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GkeNodePoolTarget extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolTarget) GkeNodePoolTargetOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GkeNodePoolTarget.newBuilder() to construct. private GkeNodePoolTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GkeNodePoolTarget() { nodePool_ = ""; roles_ = java.util.Collections.emptyList(); @@ -44,33 +26,30 @@ private GkeNodePoolTarget() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GkeNodePoolTarget(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeNodePoolTarget.class, - com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder.class); + com.google.cloud.dataproc.v1.GkeNodePoolTarget.class, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder.class); } /** - * - * *
    * `Role` specifies whose tasks will run on the NodePool. The roles can be
    * specific to workloads. Exactly one GkeNodePoolTarget within the
@@ -80,10 +59,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.dataproc.v1.GkeNodePoolTarget.Role}
    */
-  public enum Role implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Role
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Role is unspecified.
      * 
@@ -92,8 +70,6 @@ public enum Role implements com.google.protobuf.ProtocolMessageEnum { */ ROLE_UNSPECIFIED(0), /** - * - * *
      * Any roles that are not directly assigned to a NodePool run on the
      * `default` role's NodePool.
@@ -103,8 +79,6 @@ public enum Role implements com.google.protobuf.ProtocolMessageEnum {
      */
     DEFAULT(1),
     /**
-     *
-     *
      * 
      * Run controllers and webhooks.
      * 
@@ -113,8 +87,6 @@ public enum Role implements com.google.protobuf.ProtocolMessageEnum { */ CONTROLLER(2), /** - * - * *
      * Run spark driver.
      * 
@@ -123,8 +95,6 @@ public enum Role implements com.google.protobuf.ProtocolMessageEnum { */ SPARK_DRIVER(3), /** - * - * *
      * Run spark executors.
      * 
@@ -136,8 +106,6 @@ public enum Role implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Role is unspecified.
      * 
@@ -146,8 +114,6 @@ public enum Role implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ROLE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Any roles that are not directly assigned to a NodePool run on the
      * `default` role's NodePool.
@@ -157,8 +123,6 @@ public enum Role implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DEFAULT_VALUE = 1;
     /**
-     *
-     *
      * 
      * Run controllers and webhooks.
      * 
@@ -167,8 +131,6 @@ public enum Role implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTROLLER_VALUE = 2; /** - * - * *
      * Run spark driver.
      * 
@@ -177,8 +139,6 @@ public enum Role implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPARK_DRIVER_VALUE = 3; /** - * - * *
      * Run spark executors.
      * 
@@ -187,6 +147,7 @@ public enum Role implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPARK_EXECUTOR_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -211,53 +172,51 @@ public static Role valueOf(int value) { */ public static Role forNumber(int value) { switch (value) { - case 0: - return ROLE_UNSPECIFIED; - case 1: - return DEFAULT; - case 2: - return CONTROLLER; - case 3: - return SPARK_DRIVER; - case 4: - return SPARK_EXECUTOR; - default: - return null; + case 0: return ROLE_UNSPECIFIED; + case 1: return DEFAULT; + case 2: return CONTROLLER; + case 3: return SPARK_DRIVER; + case 4: return SPARK_EXECUTOR; + 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< + Role> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Role findValueByNumber(int number) { + return Role.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Role findValueByNumber(int number) { - return Role.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.dataproc.v1.GkeNodePoolTarget.getDescriptor().getEnumTypes().get(0); } private static final Role[] VALUES = values(); - public static Role valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Role 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; @@ -277,8 +236,6 @@ private Role(int value) { public static final int NODE_POOL_FIELD_NUMBER = 1; private volatile java.lang.Object nodePool_; /** - * - * *
    * Required. The target GKE NodePool.
    * Format:
@@ -286,7 +243,6 @@ private Role(int value) {
    * 
* * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The nodePool. */ @java.lang.Override @@ -295,15 +251,14 @@ public java.lang.String getNodePool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodePool_ = s; return s; } } /** - * - * *
    * Required. The target GKE NodePool.
    * Format:
@@ -311,15 +266,16 @@ public java.lang.String getNodePool() {
    * 
* * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for nodePool. */ @java.lang.Override - public com.google.protobuf.ByteString getNodePoolBytes() { + public com.google.protobuf.ByteString + getNodePoolBytes() { java.lang.Object ref = nodePool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nodePool_ = b; return b; } else { @@ -330,50 +286,34 @@ public com.google.protobuf.ByteString getNodePoolBytes() { public static final int ROLES_FIELD_NUMBER = 2; private java.util.List roles_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role> - roles_converter_ = + java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role> roles_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role>() { - public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role convert( - java.lang.Integer from) { + public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role result = - com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role.valueOf(from); - return result == null - ? com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role result = com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role.valueOf(from); + return result == null ? com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role.UNRECOGNIZED : result; } }; /** - * - * *
    * Required. The types of role for a GKE NodePool
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the roles. */ @java.lang.Override public java.util.List getRolesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role>( - roles_, roles_converter_); + java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role>(roles_, roles_converter_); } /** - * - * *
    * Required. The types of role for a GKE NodePool
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The count of roles. */ @java.lang.Override @@ -381,16 +321,11 @@ public int getRolesCount() { return roles_.size(); } /** - * - * *
    * Required. The types of role for a GKE NodePool
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The roles at the given index. */ @@ -399,33 +334,24 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role getRoles(int index) { return roles_converter_.convert(roles_.get(index)); } /** - * - * *
    * Required. The types of role for a GKE NodePool
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the enum numeric values on the wire for roles. */ @java.lang.Override - public java.util.List getRolesValueList() { + public java.util.List + getRolesValueList() { return roles_; } /** - * - * *
    * Required. The types of role for a GKE NodePool
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The enum numeric value on the wire of roles at the given index. */ @@ -433,14 +359,11 @@ public java.util.List getRolesValueList() { public int getRolesValue(int index) { return roles_.get(index); } - private int rolesMemoizedSerializedSize; public static final int NODE_POOL_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.dataproc.v1.GkeNodePoolConfig nodePoolConfig_; /** - * - * *
    * Optional. The configuration for the GKE NodePool.
    * If specified, Dataproc attempts to create a NodePool with the
@@ -452,10 +375,7 @@ public int getRolesValue(int index) {
    * with default values.
    * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the nodePoolConfig field is set. */ @java.lang.Override @@ -463,8 +383,6 @@ public boolean hasNodePoolConfig() { return nodePoolConfig_ != null; } /** - * - * *
    * Optional. The configuration for the GKE NodePool.
    * If specified, Dataproc attempts to create a NodePool with the
@@ -476,21 +394,14 @@ public boolean hasNodePoolConfig() {
    * with default values.
    * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The nodePoolConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.GkeNodePoolConfig getNodePoolConfig() { - return nodePoolConfig_ == null - ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance() - : nodePoolConfig_; + return nodePoolConfig_ == null ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance() : nodePoolConfig_; } /** - * - * *
    * Optional. The configuration for the GKE NodePool.
    * If specified, Dataproc attempts to create a NodePool with the
@@ -502,9 +413,7 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig getNodePoolConfig() {
    * with default values.
    * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder getNodePoolConfigOrBuilder() { @@ -512,7 +421,6 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder getNodePoolConfig } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -524,7 +432,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePool_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodePool_); @@ -554,17 +463,18 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < roles_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(roles_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(roles_.get(i)); } size += dataSize; - if (!getRolesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - rolesMemoizedSerializedSize = dataSize; + if (!getRolesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }rolesMemoizedSerializedSize = dataSize; } if (nodePoolConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNodePoolConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getNodePoolConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -574,19 +484,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.GkeNodePoolTarget)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GkeNodePoolTarget other = - (com.google.cloud.dataproc.v1.GkeNodePoolTarget) obj; + com.google.cloud.dataproc.v1.GkeNodePoolTarget other = (com.google.cloud.dataproc.v1.GkeNodePoolTarget) obj; - if (!getNodePool().equals(other.getNodePool())) return false; + if (!getNodePool() + .equals(other.getNodePool())) return false; if (!roles_.equals(other.roles_)) return false; if (hasNodePoolConfig() != other.hasNodePoolConfig()) return false; if (hasNodePoolConfig()) { - if (!getNodePoolConfig().equals(other.getNodePoolConfig())) return false; + if (!getNodePoolConfig() + .equals(other.getNodePoolConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -614,136 +525,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.GkeNodePoolTarget prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * GKE NodePools that Dataproc workloads run on.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolTarget} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolTarget) com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeNodePoolTarget.class, - com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder.class); + com.google.cloud.dataproc.v1.GkeNodePoolTarget.class, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder.class); } // Construct using com.google.cloud.dataproc.v1.GkeNodePoolTarget.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -761,9 +666,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; } @java.lang.Override @@ -782,8 +687,7 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget build() { @java.lang.Override public com.google.cloud.dataproc.v1.GkeNodePoolTarget buildPartial() { - com.google.cloud.dataproc.v1.GkeNodePoolTarget result = - new com.google.cloud.dataproc.v1.GkeNodePoolTarget(this); + com.google.cloud.dataproc.v1.GkeNodePoolTarget result = new com.google.cloud.dataproc.v1.GkeNodePoolTarget(this); int from_bitField0_ = bitField0_; result.nodePool_ = nodePool_; if (((bitField0_ & 0x00000001) != 0)) { @@ -804,39 +708,38 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.GkeNodePoolTarget) { - return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolTarget) other); + return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolTarget)other); } else { super.mergeFrom(other); return this; @@ -888,44 +791,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - nodePool_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { + case 10: { + nodePool_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + int tmpRaw = input.readEnum(); + ensureRolesIsMutable(); + roles_.add(tmpRaw); + break; + } // case 16 + case 18: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureRolesIsMutable(); roles_.add(tmpRaw); - break; - } // case 16 - case 18: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureRolesIsMutable(); - roles_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 18 - case 26: - { - input.readMessage(getNodePoolConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 18 + case 26: { + input.readMessage( + getNodePoolConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -935,13 +835,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object nodePool_ = ""; /** - * - * *
      * Required. The target GKE NodePool.
      * Format:
@@ -949,13 +846,13 @@ public Builder mergeFrom(
      * 
* * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The nodePool. */ public java.lang.String getNodePool() { java.lang.Object ref = nodePool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodePool_ = s; return s; @@ -964,8 +861,6 @@ public java.lang.String getNodePool() { } } /** - * - * *
      * Required. The target GKE NodePool.
      * Format:
@@ -973,14 +868,15 @@ public java.lang.String getNodePool() {
      * 
* * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for nodePool. */ - public com.google.protobuf.ByteString getNodePoolBytes() { + public com.google.protobuf.ByteString + getNodePoolBytes() { java.lang.Object ref = nodePool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nodePool_ = b; return b; } else { @@ -988,8 +884,6 @@ public com.google.protobuf.ByteString getNodePoolBytes() { } } /** - * - * *
      * Required. The target GKE NodePool.
      * Format:
@@ -997,22 +891,20 @@ public com.google.protobuf.ByteString getNodePoolBytes() {
      * 
* * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The nodePool to set. * @return This builder for chaining. */ - public Builder setNodePool(java.lang.String value) { + public Builder setNodePool( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodePool_ = value; onChanged(); return this; } /** - * - * *
      * Required. The target GKE NodePool.
      * Format:
@@ -1020,18 +912,15 @@ public Builder setNodePool(java.lang.String value) {
      * 
* * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearNodePool() { - + nodePool_ = getDefaultInstance().getNodePool(); onChanged(); return this; } /** - * - * *
      * Required. The target GKE NodePool.
      * Format:
@@ -1039,23 +928,23 @@ public Builder clearNodePool() {
      * 
* * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for nodePool to set. * @return This builder for chaining. */ - public Builder setNodePoolBytes(com.google.protobuf.ByteString value) { + public Builder setNodePoolBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodePool_ = value; onChanged(); return this; } - private java.util.List roles_ = java.util.Collections.emptyList(); - + private java.util.List roles_ = + java.util.Collections.emptyList(); private void ensureRolesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { roles_ = new java.util.ArrayList(roles_); @@ -1063,50 +952,34 @@ private void ensureRolesIsMutable() { } } /** - * - * *
      * Required. The types of role for a GKE NodePool
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the roles. */ public java.util.List getRolesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role>( - roles_, roles_converter_); + java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role>(roles_, roles_converter_); } /** - * - * *
      * Required. The types of role for a GKE NodePool
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The count of roles. */ public int getRolesCount() { return roles_.size(); } /** - * - * *
      * Required. The types of role for a GKE NodePool
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The roles at the given index. */ @@ -1114,21 +987,17 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role getRoles(int index) { return roles_converter_.convert(roles_.get(index)); } /** - * - * *
      * Required. The types of role for a GKE NodePool
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @param index The index to set the value at. * @param value The roles to set. * @return This builder for chaining. */ - public Builder setRoles(int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role value) { + public Builder setRoles( + int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role value) { if (value == null) { throw new NullPointerException(); } @@ -1138,16 +1007,11 @@ public Builder setRoles(int index, com.google.cloud.dataproc.v1.GkeNodePoolTarge return this; } /** - * - * *
      * Required. The types of role for a GKE NodePool
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The roles to add. * @return This builder for chaining. */ @@ -1161,16 +1025,11 @@ public Builder addRoles(com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role valu return this; } /** - * - * *
      * Required. The types of role for a GKE NodePool
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @param values The roles to add. * @return This builder for chaining. */ @@ -1184,16 +1043,11 @@ public Builder addAllRoles( return this; } /** - * - * *
      * Required. The types of role for a GKE NodePool
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearRoles() { @@ -1203,32 +1057,23 @@ public Builder clearRoles() { return this; } /** - * - * *
      * Required. The types of role for a GKE NodePool
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the enum numeric values on the wire for roles. */ - public java.util.List getRolesValueList() { + public java.util.List + getRolesValueList() { return java.util.Collections.unmodifiableList(roles_); } /** - * - * *
      * Required. The types of role for a GKE NodePool
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The enum numeric value on the wire of roles at the given index. */ @@ -1236,37 +1081,28 @@ public int getRolesValue(int index) { return roles_.get(index); } /** - * - * *
      * Required. The types of role for a GKE NodePool
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @param index The index to set the value at. * @param value The enum numeric value on the wire for roles to set. * @return This builder for chaining. */ - public Builder setRolesValue(int index, int value) { + public Builder setRolesValue( + int index, int value) { ensureRolesIsMutable(); roles_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The types of role for a GKE NodePool
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for roles to add. * @return This builder for chaining. */ @@ -1277,20 +1113,16 @@ public Builder addRolesValue(int value) { return this; } /** - * - * *
      * Required. The types of role for a GKE NodePool
      * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @param values The enum numeric values on the wire for roles to add. * @return This builder for chaining. */ - public Builder addAllRolesValue(java.lang.Iterable values) { + public Builder addAllRolesValue( + java.lang.Iterable values) { ensureRolesIsMutable(); for (int value : values) { roles_.add(value); @@ -1301,13 +1133,8 @@ public Builder addAllRolesValue(java.lang.Iterable values) { private com.google.cloud.dataproc.v1.GkeNodePoolConfig nodePoolConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder> - nodePoolConfigBuilder_; + com.google.cloud.dataproc.v1.GkeNodePoolConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder> nodePoolConfigBuilder_; /** - * - * *
      * Optional. The configuration for the GKE NodePool.
      * If specified, Dataproc attempts to create a NodePool with the
@@ -1319,18 +1146,13 @@ public Builder addAllRolesValue(java.lang.Iterable values) {
      * with default values.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the nodePoolConfig field is set. */ public boolean hasNodePoolConfig() { return nodePoolConfigBuilder_ != null || nodePoolConfig_ != null; } /** - * - * *
      * Optional. The configuration for the GKE NodePool.
      * If specified, Dataproc attempts to create a NodePool with the
@@ -1342,24 +1164,17 @@ public boolean hasNodePoolConfig() {
      * with default values.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The nodePoolConfig. */ public com.google.cloud.dataproc.v1.GkeNodePoolConfig getNodePoolConfig() { if (nodePoolConfigBuilder_ == null) { - return nodePoolConfig_ == null - ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance() - : nodePoolConfig_; + return nodePoolConfig_ == null ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance() : nodePoolConfig_; } else { return nodePoolConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The configuration for the GKE NodePool.
      * If specified, Dataproc attempts to create a NodePool with the
@@ -1371,9 +1186,7 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig getNodePoolConfig() {
      * with default values.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setNodePoolConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig value) { if (nodePoolConfigBuilder_ == null) { @@ -1389,8 +1202,6 @@ public Builder setNodePoolConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig return this; } /** - * - * *
      * Optional. The configuration for the GKE NodePool.
      * If specified, Dataproc attempts to create a NodePool with the
@@ -1402,9 +1213,7 @@ public Builder setNodePoolConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig
      * with default values.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setNodePoolConfig( com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder builderForValue) { @@ -1418,8 +1227,6 @@ public Builder setNodePoolConfig( return this; } /** - * - * *
      * Optional. The configuration for the GKE NodePool.
      * If specified, Dataproc attempts to create a NodePool with the
@@ -1431,17 +1238,13 @@ public Builder setNodePoolConfig(
      * with default values.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeNodePoolConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig value) { if (nodePoolConfigBuilder_ == null) { if (nodePoolConfig_ != null) { nodePoolConfig_ = - com.google.cloud.dataproc.v1.GkeNodePoolConfig.newBuilder(nodePoolConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.GkeNodePoolConfig.newBuilder(nodePoolConfig_).mergeFrom(value).buildPartial(); } else { nodePoolConfig_ = value; } @@ -1453,8 +1256,6 @@ public Builder mergeNodePoolConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfi return this; } /** - * - * *
      * Optional. The configuration for the GKE NodePool.
      * If specified, Dataproc attempts to create a NodePool with the
@@ -1466,9 +1267,7 @@ public Builder mergeNodePoolConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfi
      * with default values.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearNodePoolConfig() { if (nodePoolConfigBuilder_ == null) { @@ -1482,8 +1281,6 @@ public Builder clearNodePoolConfig() { return this; } /** - * - * *
      * Optional. The configuration for the GKE NodePool.
      * If specified, Dataproc attempts to create a NodePool with the
@@ -1495,18 +1292,14 @@ public Builder clearNodePoolConfig() {
      * with default values.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder getNodePoolConfigBuilder() { - + onChanged(); return getNodePoolConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The configuration for the GKE NodePool.
      * If specified, Dataproc attempts to create a NodePool with the
@@ -1518,22 +1311,17 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder getNodePoolConfigB
      * with default values.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder getNodePoolConfigOrBuilder() { if (nodePoolConfigBuilder_ != null) { return nodePoolConfigBuilder_.getMessageOrBuilder(); } else { - return nodePoolConfig_ == null - ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance() - : nodePoolConfig_; + return nodePoolConfig_ == null ? + com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance() : nodePoolConfig_; } } /** - * - * *
      * Optional. The configuration for the GKE NodePool.
      * If specified, Dataproc attempts to create a NodePool with the
@@ -1545,29 +1333,24 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder getNodePoolConfig
      * with default values.
      * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder> + com.google.cloud.dataproc.v1.GkeNodePoolConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder> getNodePoolConfigFieldBuilder() { if (nodePoolConfigBuilder_ == null) { - nodePoolConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder>( - getNodePoolConfig(), getParentForChildren(), isClean()); + nodePoolConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder>( + getNodePoolConfig(), + getParentForChildren(), + isClean()); nodePoolConfig_ = null; } return nodePoolConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1577,12 +1360,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GkeNodePoolTarget) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolTarget) private static final com.google.cloud.dataproc.v1.GkeNodePoolTarget DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeNodePoolTarget(); } @@ -1591,27 +1374,27 @@ public static com.google.cloud.dataproc.v1.GkeNodePoolTarget getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeNodePoolTarget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeNodePoolTarget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1626,4 +1409,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.GkeNodePoolTarget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java index 64b301fb4178..dd9cab6c8234 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.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/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; -public interface GkeNodePoolTargetOrBuilder - extends +public interface GkeNodePoolTargetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolTarget) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The target GKE NodePool.
    * Format:
@@ -33,13 +15,10 @@ public interface GkeNodePoolTargetOrBuilder
    * 
* * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The nodePool. */ java.lang.String getNodePool(); /** - * - * *
    * Required. The target GKE NodePool.
    * Format:
@@ -47,87 +26,61 @@ public interface GkeNodePoolTargetOrBuilder
    * 
* * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for nodePool. */ - com.google.protobuf.ByteString getNodePoolBytes(); + com.google.protobuf.ByteString + getNodePoolBytes(); /** - * - * *
    * Required. The types of role for a GKE NodePool
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the roles. */ java.util.List getRolesList(); /** - * - * *
    * Required. The types of role for a GKE NodePool
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The count of roles. */ int getRolesCount(); /** - * - * *
    * Required. The types of role for a GKE NodePool
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The roles at the given index. */ com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role getRoles(int index); /** - * - * *
    * Required. The types of role for a GKE NodePool
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the enum numeric values on the wire for roles. */ - java.util.List getRolesValueList(); + java.util.List + getRolesValueList(); /** - * - * *
    * Required. The types of role for a GKE NodePool
    * 
* - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The enum numeric value on the wire of roles at the given index. */ int getRolesValue(int index); /** - * - * *
    * Optional. The configuration for the GKE NodePool.
    * If specified, Dataproc attempts to create a NodePool with the
@@ -139,16 +92,11 @@ public interface GkeNodePoolTargetOrBuilder
    * with default values.
    * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the nodePoolConfig field is set. */ boolean hasNodePoolConfig(); /** - * - * *
    * Optional. The configuration for the GKE NodePool.
    * If specified, Dataproc attempts to create a NodePool with the
@@ -160,16 +108,11 @@ public interface GkeNodePoolTargetOrBuilder
    * with default values.
    * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The nodePoolConfig. */ com.google.cloud.dataproc.v1.GkeNodePoolConfig getNodePoolConfig(); /** - * - * *
    * Optional. The configuration for the GKE NodePool.
    * If specified, Dataproc attempts to create a NodePool with the
@@ -181,9 +124,7 @@ public interface GkeNodePoolTargetOrBuilder
    * with default values.
    * 
* - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder getNodePoolConfigOrBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java similarity index 73% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java index c0bd8537a53d..99536a4a3bae 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A Dataproc job for running
  * [Apache Hadoop
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.HadoopJob}
  */
-public final class HadoopJob extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class HadoopJob extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.HadoopJob)
     HadoopJobOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use HadoopJob.newBuilder() to construct.
   private HadoopJob(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private HadoopJob() {
     args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -50,53 +32,50 @@ private HadoopJob() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new HadoopJob();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.JobsProto
-        .internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HadoopJob_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 7:
         return internalGetProperties();
       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.dataproc.v1.JobsProto
-        .internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.HadoopJob.class,
-            com.google.cloud.dataproc.v1.HadoopJob.Builder.class);
+            com.google.cloud.dataproc.v1.HadoopJob.class, com.google.cloud.dataproc.v1.HadoopJob.Builder.class);
   }
 
   private int driverCase_ = 0;
   private java.lang.Object driver_;
-
   public enum DriverCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     MAIN_JAR_FILE_URI(1),
     MAIN_CLASS(2),
     DRIVER_NOT_SET(0);
     private final int value;
-
     private DriverCase(int value) {
       this.value = value;
     }
@@ -112,30 +91,25 @@ public static DriverCase valueOf(int value) {
 
     public static DriverCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return MAIN_JAR_FILE_URI;
-        case 2:
-          return MAIN_CLASS;
-        case 0:
-          return DRIVER_NOT_SET;
-        default:
-          return null;
+        case 1: return MAIN_JAR_FILE_URI;
+        case 2: return MAIN_CLASS;
+        case 0: return DRIVER_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DriverCase getDriverCase() {
-    return DriverCase.forNumber(driverCase_);
+  public DriverCase
+  getDriverCase() {
+    return DriverCase.forNumber(
+        driverCase_);
   }
 
   public static final int MAIN_JAR_FILE_URI_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * The HCFS URI of the jar file containing the main class.
    * Examples:
@@ -145,15 +119,12 @@ public DriverCase getDriverCase() {
    * 
* * string main_jar_file_uri = 1; - * * @return Whether the mainJarFileUri field is set. */ public boolean hasMainJarFileUri() { return driverCase_ == 1; } /** - * - * *
    * The HCFS URI of the jar file containing the main class.
    * Examples:
@@ -163,7 +134,6 @@ public boolean hasMainJarFileUri() {
    * 
* * string main_jar_file_uri = 1; - * * @return The mainJarFileUri. */ public java.lang.String getMainJarFileUri() { @@ -174,7 +144,8 @@ public java.lang.String getMainJarFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (driverCase_ == 1) { driver_ = s; @@ -183,8 +154,6 @@ public java.lang.String getMainJarFileUri() { } } /** - * - * *
    * The HCFS URI of the jar file containing the main class.
    * Examples:
@@ -194,17 +163,18 @@ public java.lang.String getMainJarFileUri() {
    * 
* * string main_jar_file_uri = 1; - * * @return The bytes for mainJarFileUri. */ - public com.google.protobuf.ByteString getMainJarFileUriBytes() { + public com.google.protobuf.ByteString + getMainJarFileUriBytes() { java.lang.Object ref = ""; if (driverCase_ == 1) { ref = driver_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (driverCase_ == 1) { driver_ = b; } @@ -216,30 +186,24 @@ public com.google.protobuf.ByteString getMainJarFileUriBytes() { public static final int MAIN_CLASS_FIELD_NUMBER = 2; /** - * - * *
    * The name of the driver's main class. The jar file containing the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; - * * @return Whether the mainClass field is set. */ public boolean hasMainClass() { return driverCase_ == 2; } /** - * - * *
    * The name of the driver's main class. The jar file containing the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; - * * @return The mainClass. */ public java.lang.String getMainClass() { @@ -250,7 +214,8 @@ public java.lang.String getMainClass() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (driverCase_ == 2) { driver_ = s; @@ -259,25 +224,24 @@ public java.lang.String getMainClass() { } } /** - * - * *
    * The name of the driver's main class. The jar file containing the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; - * * @return The bytes for mainClass. */ - public com.google.protobuf.ByteString getMainClassBytes() { + public com.google.protobuf.ByteString + getMainClassBytes() { java.lang.Object ref = ""; if (driverCase_ == 2) { ref = driver_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (driverCase_ == 2) { driver_ = b; } @@ -290,8 +254,6 @@ public com.google.protobuf.ByteString getMainClassBytes() { public static final int ARGS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList args_; /** - * - * *
    * Optional. The arguments to pass to the driver. Do not
    * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -300,15 +262,13 @@ public com.google.protobuf.ByteString getMainClassBytes() {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_; } /** - * - * *
    * Optional. The arguments to pass to the driver. Do not
    * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -317,15 +277,12 @@ public com.google.protobuf.ProtocolStringList getArgsList() {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
    * Optional. The arguments to pass to the driver. Do not
    * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -334,7 +291,6 @@ public int getArgsCount() {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -342,8 +298,6 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
    * Optional. The arguments to pass to the driver. Do not
    * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -352,56 +306,48 @@ public java.lang.String getArgs(int index) {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList jarFileUris_; /** - * - * *
    * Optional. Jar file URIs to add to the CLASSPATHs of the
    * Hadoop driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList + getJarFileUrisList() { return jarFileUris_; } /** - * - * *
    * Optional. Jar file URIs to add to the CLASSPATHs of the
    * Hadoop driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** - * - * *
    * Optional. Jar file URIs to add to the CLASSPATHs of the
    * Hadoop driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -409,27 +355,23 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** - * - * *
    * Optional. Jar file URIs to add to the CLASSPATHs of the
    * Hadoop driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } public static final int FILE_URIS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList fileUris_; /** - * - * *
    * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
    * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -437,15 +379,13 @@ public com.google.protobuf.ByteString getJarFileUrisBytes(int index) {
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { + public com.google.protobuf.ProtocolStringList + getFileUrisList() { return fileUris_; } /** - * - * *
    * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
    * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -453,15 +393,12 @@ public com.google.protobuf.ProtocolStringList getFileUrisList() {
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** - * - * *
    * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
    * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -469,7 +406,6 @@ public int getFileUrisCount() {
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -477,8 +413,6 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** - * - * *
    * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
    * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -486,19 +420,17 @@ public java.lang.String getFileUris(int index) {
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getFileUrisBytes(int index) { return fileUris_.getByteString(index); } public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList archiveUris_; /** - * - * *
    * Optional. HCFS URIs of archives to be extracted in the working directory of
    * Hadoop drivers and tasks. Supported file types:
@@ -506,15 +438,13 @@ public com.google.protobuf.ByteString getFileUrisBytes(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList + getArchiveUrisList() { return archiveUris_; } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted in the working directory of
    * Hadoop drivers and tasks. Supported file types:
@@ -522,15 +452,12 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted in the working directory of
    * Hadoop drivers and tasks. Supported file types:
@@ -538,7 +465,6 @@ public int getArchiveUrisCount() {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -546,8 +472,6 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted in the working directory of
    * Hadoop drivers and tasks. Supported file types:
@@ -555,32 +479,33 @@ public java.lang.String getArchiveUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString + getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } public static final int PROPERTIES_FIELD_NUMBER = 7; - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField + internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -589,8 +514,6 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
    * Optional. A mapping of property names to values, used to configure Hadoop.
    * Properties that conflict with values set by the Dataproc API may be
@@ -598,25 +521,24 @@ public int getPropertiesCount() {
    * classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
    * Optional. A mapping of property names to values, used to configure Hadoop.
    * Properties that conflict with values set by the Dataproc API may be
@@ -624,16 +546,14 @@ public java.util.Map getProperties() {
    * classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
    * Optional. A mapping of property names to values, used to configure Hadoop.
    * Properties that conflict with values set by the Dataproc API may be
@@ -641,21 +561,19 @@ public java.util.Map getPropertiesMap() {
    * classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. A mapping of property names to values, used to configure Hadoop.
    * Properties that conflict with values set by the Dataproc API may be
@@ -663,15 +581,15 @@ public java.lang.String getPropertiesOrDefault(
    * classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -681,16 +599,11 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { public static final int LOGGING_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ @java.lang.Override @@ -698,34 +611,23 @@ public boolean hasLoggingConfig() { return loggingConfig_ != null; } /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { @@ -733,7 +635,6 @@ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBui } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -745,7 +646,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 (driverCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); } @@ -764,8 +666,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < archiveUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetProperties(), + PropertiesDefaultEntryHolder.defaultEntry, + 7); if (loggingConfig_ != null) { output.writeMessage(8, getLoggingConfig()); } @@ -816,18 +722,19 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArchiveUrisList().size(); } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, properties__); + for (java.util.Map.Entry entry + : internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, properties__); } if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLoggingConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getLoggingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -837,29 +744,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.HadoopJob)) { return super.equals(obj); } com.google.cloud.dataproc.v1.HadoopJob other = (com.google.cloud.dataproc.v1.HadoopJob) obj; - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (!getFileUrisList().equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (!getJarFileUrisList() + .equals(other.getJarFileUrisList())) return false; + if (!getFileUrisList() + .equals(other.getFileUrisList())) return false; + if (!getArchiveUrisList() + .equals(other.getArchiveUrisList())) return false; + if (!internalGetProperties().equals( + other.internalGetProperties())) return false; if (hasLoggingConfig() != other.hasLoggingConfig()) return false; if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; + if (!getLoggingConfig() + .equals(other.getLoggingConfig())) return false; } if (!getDriverCase().equals(other.getDriverCase())) return false; switch (driverCase_) { case 1: - if (!getMainJarFileUri().equals(other.getMainJarFileUri())) return false; + if (!getMainJarFileUri() + .equals(other.getMainJarFileUri())) return false; break; case 2: - if (!getMainClass().equals(other.getMainClass())) return false; + if (!getMainClass() + .equals(other.getMainClass())) return false; break; case 0: default: @@ -916,104 +831,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.HadoopJob parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.HadoopJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.HadoopJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.HadoopJob 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.dataproc.v1.HadoopJob parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.HadoopJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc job for running
    * [Apache Hadoop
@@ -1024,52 +932,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.HadoopJob}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.HadoopJob)
       com.google.cloud.dataproc.v1.HadoopJobOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetProperties();
         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 7:
           return internalGetMutableProperties();
         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.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.HadoopJob.class,
-              com.google.cloud.dataproc.v1.HadoopJob.Builder.class);
+              com.google.cloud.dataproc.v1.HadoopJob.class, com.google.cloud.dataproc.v1.HadoopJob.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.HadoopJob.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1094,9 +1005,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor;
     }
 
     @java.lang.Override
@@ -1115,8 +1026,7 @@ public com.google.cloud.dataproc.v1.HadoopJob build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.HadoopJob buildPartial() {
-      com.google.cloud.dataproc.v1.HadoopJob result =
-          new com.google.cloud.dataproc.v1.HadoopJob(this);
+      com.google.cloud.dataproc.v1.HadoopJob result = new com.google.cloud.dataproc.v1.HadoopJob(this);
       int from_bitField0_ = bitField0_;
       if (driverCase_ == 1) {
         result.driver_ = driver_;
@@ -1160,39 +1070,38 @@ public com.google.cloud.dataproc.v1.HadoopJob buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.HadoopJob) {
-        return mergeFrom((com.google.cloud.dataproc.v1.HadoopJob) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.HadoopJob)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1241,29 +1150,27 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.HadoopJob other) {
         }
         onChanged();
       }
-      internalGetMutableProperties().mergeFrom(other.internalGetProperties());
+      internalGetMutableProperties().mergeFrom(
+          other.internalGetProperties());
       if (other.hasLoggingConfig()) {
         mergeLoggingConfig(other.getLoggingConfig());
       }
       switch (other.getDriverCase()) {
-        case MAIN_JAR_FILE_URI:
-          {
-            driverCase_ = 1;
-            driver_ = other.driver_;
-            onChanged();
-            break;
-          }
-        case MAIN_CLASS:
-          {
-            driverCase_ = 2;
-            driver_ = other.driver_;
-            onChanged();
-            break;
-          }
-        case DRIVER_NOT_SET:
-          {
-            break;
-          }
+        case MAIN_JAR_FILE_URI: {
+          driverCase_ = 1;
+          driver_ = other.driver_;
+          onChanged();
+          break;
+        }
+        case MAIN_CLASS: {
+          driverCase_ = 2;
+          driver_ = other.driver_;
+          onChanged();
+          break;
+        }
+        case DRIVER_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1291,72 +1198,63 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                driverCase_ = 1;
-                driver_ = s;
-                break;
-              } // case 10
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                driverCase_ = 2;
-                driver_ = s;
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureArgsIsMutable();
-                args_.add(s);
-                break;
-              } // case 26
-            case 34:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureJarFileUrisIsMutable();
-                jarFileUris_.add(s);
-                break;
-              } // case 34
-            case 42:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureFileUrisIsMutable();
-                fileUris_.add(s);
-                break;
-              } // case 42
-            case 50:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureArchiveUrisIsMutable();
-                archiveUris_.add(s);
-                break;
-              } // case 50
-            case 58:
-              {
-                com.google.protobuf.MapEntry properties__ =
-                    input.readMessage(
-                        PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableProperties()
-                    .getMutableMap()
-                    .put(properties__.getKey(), properties__.getValue());
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 66
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              driverCase_ = 1;
+              driver_ = s;
+              break;
+            } // case 10
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              driverCase_ = 2;
+              driver_ = s;
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureArgsIsMutable();
+              args_.add(s);
+              break;
+            } // case 26
+            case 34: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureJarFileUrisIsMutable();
+              jarFileUris_.add(s);
+              break;
+            } // case 34
+            case 42: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureFileUrisIsMutable();
+              fileUris_.add(s);
+              break;
+            } // case 42
+            case 50: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureArchiveUrisIsMutable();
+              archiveUris_.add(s);
+              break;
+            } // case 50
+            case 58: {
+              com.google.protobuf.MapEntry
+              properties__ = input.readMessage(
+                  PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableProperties().getMutableMap().put(
+                  properties__.getKey(), properties__.getValue());
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getLoggingConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 66
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1366,12 +1264,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int driverCase_ = 0;
     private java.lang.Object driver_;
-
-    public DriverCase getDriverCase() {
-      return DriverCase.forNumber(driverCase_);
+    public DriverCase
+        getDriverCase() {
+      return DriverCase.forNumber(
+          driverCase_);
     }
 
     public Builder clearDriver() {
@@ -1384,8 +1282,6 @@ public Builder clearDriver() {
     private int bitField0_;
 
     /**
-     *
-     *
      * 
      * The HCFS URI of the jar file containing the main class.
      * Examples:
@@ -1395,7 +1291,6 @@ public Builder clearDriver() {
      * 
* * string main_jar_file_uri = 1; - * * @return Whether the mainJarFileUri field is set. */ @java.lang.Override @@ -1403,8 +1298,6 @@ public boolean hasMainJarFileUri() { return driverCase_ == 1; } /** - * - * *
      * The HCFS URI of the jar file containing the main class.
      * Examples:
@@ -1414,7 +1307,6 @@ public boolean hasMainJarFileUri() {
      * 
* * string main_jar_file_uri = 1; - * * @return The mainJarFileUri. */ @java.lang.Override @@ -1424,7 +1316,8 @@ public java.lang.String getMainJarFileUri() { ref = driver_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (driverCase_ == 1) { driver_ = s; @@ -1435,8 +1328,6 @@ public java.lang.String getMainJarFileUri() { } } /** - * - * *
      * The HCFS URI of the jar file containing the main class.
      * Examples:
@@ -1446,18 +1337,19 @@ public java.lang.String getMainJarFileUri() {
      * 
* * string main_jar_file_uri = 1; - * * @return The bytes for mainJarFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString getMainJarFileUriBytes() { + public com.google.protobuf.ByteString + getMainJarFileUriBytes() { java.lang.Object ref = ""; if (driverCase_ == 1) { ref = driver_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (driverCase_ == 1) { driver_ = b; } @@ -1467,8 +1359,6 @@ public com.google.protobuf.ByteString getMainJarFileUriBytes() { } } /** - * - * *
      * The HCFS URI of the jar file containing the main class.
      * Examples:
@@ -1478,22 +1368,20 @@ public com.google.protobuf.ByteString getMainJarFileUriBytes() {
      * 
* * string main_jar_file_uri = 1; - * * @param value The mainJarFileUri to set. * @return This builder for chaining. */ - public Builder setMainJarFileUri(java.lang.String value) { + public Builder setMainJarFileUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 1; + throw new NullPointerException(); + } + driverCase_ = 1; driver_ = value; onChanged(); return this; } /** - * - * *
      * The HCFS URI of the jar file containing the main class.
      * Examples:
@@ -1503,7 +1391,6 @@ public Builder setMainJarFileUri(java.lang.String value) {
      * 
* * string main_jar_file_uri = 1; - * * @return This builder for chaining. */ public Builder clearMainJarFileUri() { @@ -1515,8 +1402,6 @@ public Builder clearMainJarFileUri() { return this; } /** - * - * *
      * The HCFS URI of the jar file containing the main class.
      * Examples:
@@ -1526,15 +1411,15 @@ public Builder clearMainJarFileUri() {
      * 
* * string main_jar_file_uri = 1; - * * @param value The bytes for mainJarFileUri to set. * @return This builder for chaining. */ - public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { + public Builder setMainJarFileUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); driverCase_ = 1; driver_ = value; onChanged(); @@ -1542,15 +1427,12 @@ public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * The name of the driver's main class. The jar file containing the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; - * * @return Whether the mainClass field is set. */ @java.lang.Override @@ -1558,15 +1440,12 @@ public boolean hasMainClass() { return driverCase_ == 2; } /** - * - * *
      * The name of the driver's main class. The jar file containing the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; - * * @return The mainClass. */ @java.lang.Override @@ -1576,7 +1455,8 @@ public java.lang.String getMainClass() { ref = driver_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (driverCase_ == 2) { driver_ = s; @@ -1587,26 +1467,25 @@ public java.lang.String getMainClass() { } } /** - * - * *
      * The name of the driver's main class. The jar file containing the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; - * * @return The bytes for mainClass. */ @java.lang.Override - public com.google.protobuf.ByteString getMainClassBytes() { + public com.google.protobuf.ByteString + getMainClassBytes() { java.lang.Object ref = ""; if (driverCase_ == 2) { ref = driver_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (driverCase_ == 2) { driver_ = b; } @@ -1616,37 +1495,32 @@ public com.google.protobuf.ByteString getMainClassBytes() { } } /** - * - * *
      * The name of the driver's main class. The jar file containing the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; - * * @param value The mainClass to set. * @return This builder for chaining. */ - public Builder setMainClass(java.lang.String value) { + public Builder setMainClass( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 2; + throw new NullPointerException(); + } + driverCase_ = 2; driver_ = value; onChanged(); return this; } /** - * - * *
      * The name of the driver's main class. The jar file containing the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; - * * @return This builder for chaining. */ public Builder clearMainClass() { @@ -1658,41 +1532,35 @@ public Builder clearMainClass() { return this; } /** - * - * *
      * The name of the driver's main class. The jar file containing the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; - * * @param value The bytes for mainClass to set. * @return This builder for chaining. */ - public Builder setMainClassBytes(com.google.protobuf.ByteString value) { + public Builder setMainClassBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); driverCase_ = 2; driver_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not
      * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -1701,15 +1569,13 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_.getUnmodifiableView(); } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not
      * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -1718,15 +1584,12 @@ public com.google.protobuf.ProtocolStringList getArgsList() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not
      * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -1735,7 +1598,6 @@ public int getArgsCount() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1743,8 +1605,6 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not
      * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -1753,16 +1613,14 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not
      * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -1771,23 +1629,21 @@ public com.google.protobuf.ByteString getArgsBytes(int index) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs(int index, java.lang.String value) { + public Builder setArgs( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not
      * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -1796,22 +1652,20 @@ public Builder setArgs(int index, java.lang.String value) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs(java.lang.String value) { + public Builder addArgs( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not
      * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -1820,19 +1674,18 @@ public Builder addArgs(java.lang.String value) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs(java.lang.Iterable values) { + public Builder addAllArgs( + java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not
      * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -1841,7 +1694,6 @@ public Builder addAllArgs(java.lang.Iterable values) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearArgs() { @@ -1851,8 +1703,6 @@ public Builder clearArgs() { return this; } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not
      * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -1861,70 +1711,60 @@ public Builder clearArgs() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureJarFileUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Optional. Jar file URIs to add to the CLASSPATHs of the
      * Hadoop driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList + getJarFileUrisList() { return jarFileUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. Jar file URIs to add to the CLASSPATHs of the
      * Hadoop driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** - * - * *
      * Optional. Jar file URIs to add to the CLASSPATHs of the
      * Hadoop driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -1932,95 +1772,85 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** - * - * *
      * Optional. Jar file URIs to add to the CLASSPATHs of the
      * Hadoop driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } /** - * - * *
      * Optional. Jar file URIs to add to the CLASSPATHs of the
      * Hadoop driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The jarFileUris to set. * @return This builder for chaining. */ - public Builder setJarFileUris(int index, java.lang.String value) { + public Builder setJarFileUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. Jar file URIs to add to the CLASSPATHs of the
      * Hadoop driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUris(java.lang.String value) { + public Builder addJarFileUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. Jar file URIs to add to the CLASSPATHs of the
      * Hadoop driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The jarFileUris to add. * @return This builder for chaining. */ - public Builder addAllJarFileUris(java.lang.Iterable values) { + public Builder addAllJarFileUris( + java.lang.Iterable values) { ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, jarFileUris_); onChanged(); return this; } /** - * - * *
      * Optional. Jar file URIs to add to the CLASSPATHs of the
      * Hadoop driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearJarFileUris() { @@ -2030,41 +1860,35 @@ public Builder clearJarFileUris() { return this; } /** - * - * *
      * Optional. Jar file URIs to add to the CLASSPATHs of the
      * Hadoop driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { + public Builder addJarFileUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList fileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFileUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
      * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -2072,15 +1896,13 @@ private void ensureFileUrisIsMutable() {
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { + public com.google.protobuf.ProtocolStringList + getFileUrisList() { return fileUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
      * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -2088,15 +1910,12 @@ public com.google.protobuf.ProtocolStringList getFileUrisList() {
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** - * - * *
      * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
      * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -2104,7 +1923,6 @@ public int getFileUrisCount() {
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -2112,8 +1930,6 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** - * - * *
      * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
      * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -2121,16 +1937,14 @@ public java.lang.String getFileUris(int index) {
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getFileUrisBytes(int index) { return fileUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
      * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -2138,23 +1952,21 @@ public com.google.protobuf.ByteString getFileUrisBytes(int index) {
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The fileUris to set. * @return This builder for chaining. */ - public Builder setFileUris(int index, java.lang.String value) { + public Builder setFileUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
      * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -2162,22 +1974,20 @@ public Builder setFileUris(int index, java.lang.String value) {
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The fileUris to add. * @return This builder for chaining. */ - public Builder addFileUris(java.lang.String value) { + public Builder addFileUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
      * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -2185,19 +1995,18 @@ public Builder addFileUris(java.lang.String value) {
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The fileUris to add. * @return This builder for chaining. */ - public Builder addAllFileUris(java.lang.Iterable values) { + public Builder addAllFileUris( + java.lang.Iterable values) { ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fileUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
      * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -2205,7 +2014,6 @@ public Builder addAllFileUris(java.lang.Iterable values) {
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFileUris() { @@ -2215,8 +2023,6 @@ public Builder clearFileUris() { return this; } /** - * - * *
      * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
      * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -2224,33 +2030,29 @@ public Builder clearFileUris() {
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the fileUris to add. * @return This builder for chaining. */ - public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { + public Builder addFileUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList archiveUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArchiveUrisIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); bitField0_ |= 0x00000008; - } + } } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted in the working directory of
      * Hadoop drivers and tasks. Supported file types:
@@ -2258,15 +2060,13 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList + getArchiveUrisList() { return archiveUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted in the working directory of
      * Hadoop drivers and tasks. Supported file types:
@@ -2274,15 +2074,12 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted in the working directory of
      * Hadoop drivers and tasks. Supported file types:
@@ -2290,7 +2087,6 @@ public int getArchiveUrisCount() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -2298,8 +2094,6 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted in the working directory of
      * Hadoop drivers and tasks. Supported file types:
@@ -2307,16 +2101,14 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString + getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted in the working directory of
      * Hadoop drivers and tasks. Supported file types:
@@ -2324,23 +2116,21 @@ public com.google.protobuf.ByteString getArchiveUrisBytes(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The archiveUris to set. * @return This builder for chaining. */ - public Builder setArchiveUris(int index, java.lang.String value) { + public Builder setArchiveUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted in the working directory of
      * Hadoop drivers and tasks. Supported file types:
@@ -2348,22 +2138,20 @@ public Builder setArchiveUris(int index, java.lang.String value) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUris(java.lang.String value) { + public Builder addArchiveUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted in the working directory of
      * Hadoop drivers and tasks. Supported file types:
@@ -2371,19 +2159,18 @@ public Builder addArchiveUris(java.lang.String value) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The archiveUris to add. * @return This builder for chaining. */ - public Builder addAllArchiveUris(java.lang.Iterable values) { + public Builder addAllArchiveUris( + java.lang.Iterable values) { ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, archiveUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted in the working directory of
      * Hadoop drivers and tasks. Supported file types:
@@ -2391,7 +2178,6 @@ public Builder addAllArchiveUris(java.lang.Iterable values) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearArchiveUris() { @@ -2401,8 +2187,6 @@ public Builder clearArchiveUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted in the working directory of
      * Hadoop drivers and tasks. Supported file types:
@@ -2410,39 +2194,37 @@ public Builder clearArchiveUris() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { + public Builder addArchiveUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } - private com.google.protobuf.MapField properties_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; + internalGetMutableProperties() { + onChanged();; if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); + properties_ = com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -2454,8 +2236,6 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Hadoop.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2463,25 +2243,24 @@ public int getPropertiesCount() {
      * classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Hadoop.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2489,16 +2268,14 @@ public java.util.Map getProperties() {
      * classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Hadoop.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2506,21 +2283,19 @@ public java.util.Map getPropertiesMap() {
      * classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Hadoop.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2528,15 +2303,15 @@ public java.lang.String getPropertiesOrDefault(
      * classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2544,12 +2319,11 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); + internalGetMutableProperties().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Hadoop.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2557,24 +2331,25 @@ public Builder clearProperties() {
      * classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); + + public Builder removeProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableProperties().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableProperties() { + public java.util.Map + getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Hadoop.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2582,23 +2357,21 @@ public java.util.Map getMutableProperties()
      * classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putProperties( + 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"); +} - internalGetMutableProperties().getMutableMap().put(key, value); + internalGetMutableProperties().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Hadoop.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2606,68 +2379,51 @@ public Builder putProperties(java.lang.String key, java.lang.String value) {
      * classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); + + public Builder putAllProperties( + java.util.Map values) { + internalGetMutableProperties().getMutableMap() + .putAll(values); return this; } private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - loggingConfigBuilder_; + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> loggingConfigBuilder_; /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ public boolean hasLoggingConfig() { return loggingConfigBuilder_ != null || loggingConfig_ != null; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } else { return loggingConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { @@ -2683,15 +2439,11 @@ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLoggingConfig( com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { @@ -2705,23 +2457,17 @@ public Builder setLoggingConfig( return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { if (loggingConfig_ != null) { loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); } else { loggingConfig_ = value; } @@ -2733,15 +2479,11 @@ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig val return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearLoggingConfig() { if (loggingConfigBuilder_ == null) { @@ -2755,71 +2497,55 @@ public Builder clearLoggingConfig() { return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - + onChanged(); return getLoggingConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { if (loggingConfigBuilder_ != null) { return loggingConfigBuilder_.getMessageOrBuilder(); } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? + com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> getLoggingConfigFieldBuilder() { if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); + loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( + getLoggingConfig(), + getParentForChildren(), + isClean()); loggingConfig_ = null; } return loggingConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2829,12 +2555,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.HadoopJob) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.HadoopJob) private static final com.google.cloud.dataproc.v1.HadoopJob DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.HadoopJob(); } @@ -2843,27 +2569,27 @@ public static com.google.cloud.dataproc.v1.HadoopJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HadoopJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HadoopJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2878,4 +2604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.HadoopJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java similarity index 81% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java index 8d14389afed2..93ffbbda3315 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface HadoopJobOrBuilder - extends +public interface HadoopJobOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.HadoopJob) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The HCFS URI of the jar file containing the main class.
    * Examples:
@@ -35,13 +17,10 @@ public interface HadoopJobOrBuilder
    * 
* * string main_jar_file_uri = 1; - * * @return Whether the mainJarFileUri field is set. */ boolean hasMainJarFileUri(); /** - * - * *
    * The HCFS URI of the jar file containing the main class.
    * Examples:
@@ -51,13 +30,10 @@ public interface HadoopJobOrBuilder
    * 
* * string main_jar_file_uri = 1; - * * @return The mainJarFileUri. */ java.lang.String getMainJarFileUri(); /** - * - * *
    * The HCFS URI of the jar file containing the main class.
    * Examples:
@@ -67,54 +43,44 @@ public interface HadoopJobOrBuilder
    * 
* * string main_jar_file_uri = 1; - * * @return The bytes for mainJarFileUri. */ - com.google.protobuf.ByteString getMainJarFileUriBytes(); + com.google.protobuf.ByteString + getMainJarFileUriBytes(); /** - * - * *
    * The name of the driver's main class. The jar file containing the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; - * * @return Whether the mainClass field is set. */ boolean hasMainClass(); /** - * - * *
    * The name of the driver's main class. The jar file containing the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; - * * @return The mainClass. */ java.lang.String getMainClass(); /** - * - * *
    * The name of the driver's main class. The jar file containing the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; - * * @return The bytes for mainClass. */ - com.google.protobuf.ByteString getMainClassBytes(); + com.google.protobuf.ByteString + getMainClassBytes(); /** - * - * *
    * Optional. The arguments to pass to the driver. Do not
    * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -123,13 +89,11 @@ public interface HadoopJobOrBuilder
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - java.util.List getArgsList(); + java.util.List + getArgsList(); /** - * - * *
    * Optional. The arguments to pass to the driver. Do not
    * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -138,13 +102,10 @@ public interface HadoopJobOrBuilder
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ int getArgsCount(); /** - * - * *
    * Optional. The arguments to pass to the driver. Do not
    * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -153,14 +114,11 @@ public interface HadoopJobOrBuilder
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** - * - * *
    * Optional. The arguments to pass to the driver. Do not
    * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -169,70 +127,58 @@ public interface HadoopJobOrBuilder
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString getArgsBytes(int index); + com.google.protobuf.ByteString + getArgsBytes(int index); /** - * - * *
    * Optional. Jar file URIs to add to the CLASSPATHs of the
    * Hadoop driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - java.util.List getJarFileUrisList(); + java.util.List + getJarFileUrisList(); /** - * - * *
    * Optional. Jar file URIs to add to the CLASSPATHs of the
    * Hadoop driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ int getJarFileUrisCount(); /** - * - * *
    * Optional. Jar file URIs to add to the CLASSPATHs of the
    * Hadoop driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ java.lang.String getJarFileUris(int index); /** - * - * *
    * Optional. Jar file URIs to add to the CLASSPATHs of the
    * Hadoop driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); + com.google.protobuf.ByteString + getJarFileUrisBytes(int index); /** - * - * *
    * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
    * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -240,13 +186,11 @@ public interface HadoopJobOrBuilder
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - java.util.List getFileUrisList(); + java.util.List + getFileUrisList(); /** - * - * *
    * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
    * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -254,13 +198,10 @@ public interface HadoopJobOrBuilder
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ int getFileUrisCount(); /** - * - * *
    * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
    * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -268,14 +209,11 @@ public interface HadoopJobOrBuilder
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ java.lang.String getFileUris(int index); /** - * - * *
    * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
    * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -283,15 +221,13 @@ public interface HadoopJobOrBuilder
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - com.google.protobuf.ByteString getFileUrisBytes(int index); + com.google.protobuf.ByteString + getFileUrisBytes(int index); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted in the working directory of
    * Hadoop drivers and tasks. Supported file types:
@@ -299,13 +235,11 @@ public interface HadoopJobOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - java.util.List getArchiveUrisList(); + java.util.List + getArchiveUrisList(); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted in the working directory of
    * Hadoop drivers and tasks. Supported file types:
@@ -313,13 +247,10 @@ public interface HadoopJobOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ int getArchiveUrisCount(); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted in the working directory of
    * Hadoop drivers and tasks. Supported file types:
@@ -327,14 +258,11 @@ public interface HadoopJobOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ java.lang.String getArchiveUris(int index); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted in the working directory of
    * Hadoop drivers and tasks. Supported file types:
@@ -342,15 +270,13 @@ public interface HadoopJobOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - com.google.protobuf.ByteString getArchiveUrisBytes(int index); + com.google.protobuf.ByteString + getArchiveUrisBytes(int index); /** - * - * *
    * Optional. A mapping of property names to values, used to configure Hadoop.
    * Properties that conflict with values set by the Dataproc API may be
@@ -358,13 +284,10 @@ public interface HadoopJobOrBuilder
    * classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getPropertiesCount(); /** - * - * *
    * Optional. A mapping of property names to values, used to configure Hadoop.
    * Properties that conflict with values set by the Dataproc API may be
@@ -372,16 +295,17 @@ public interface HadoopJobOrBuilder
    * classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsProperties( + java.lang.String key); + /** + * Use {@link #getPropertiesMap()} instead. */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map getProperties(); + java.util.Map + getProperties(); /** - * - * *
    * Optional. A mapping of property names to values, used to configure Hadoop.
    * Properties that conflict with values set by the Dataproc API may be
@@ -389,13 +313,11 @@ public interface HadoopJobOrBuilder
    * classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getPropertiesMap(); + java.util.Map + getPropertiesMap(); /** - * - * *
    * Optional. A mapping of property names to values, used to configure Hadoop.
    * Properties that conflict with values set by the Dataproc API may be
@@ -403,18 +325,15 @@ public interface HadoopJobOrBuilder
    * classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getPropertiesOrDefault( +java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. A mapping of property names to values, used to configure Hadoop.
    * Properties that conflict with values set by the Dataproc API may be
@@ -422,49 +341,36 @@ java.lang.String getPropertiesOrDefault(
    * classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getPropertiesOrThrow(java.lang.String key); + + java.lang.String getPropertiesOrThrow( + java.lang.String key); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ boolean hasLoggingConfig(); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java similarity index 66% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java index b8fac6073a0b..c8cabc8f68c1 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A Dataproc job for running [Apache Hive](https://hive.apache.org/)
  * queries on YARN.
@@ -28,71 +11,67 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.HiveJob}
  */
-public final class HiveJob extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class HiveJob extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.HiveJob)
     HiveJobOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use HiveJob.newBuilder() to construct.
   private HiveJob(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private HiveJob() {
     jarFileUris_ = 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 HiveJob();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.JobsProto
-        .internal_static_google_cloud_dataproc_v1_HiveJob_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HiveJob_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 internalGetScriptVariables();
       case 5:
         return internalGetProperties();
       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.dataproc.v1.JobsProto
-        .internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.HiveJob.class,
-            com.google.cloud.dataproc.v1.HiveJob.Builder.class);
+            com.google.cloud.dataproc.v1.HiveJob.class, com.google.cloud.dataproc.v1.HiveJob.Builder.class);
   }
 
   private int queriesCase_ = 0;
   private java.lang.Object queries_;
-
   public enum QueriesCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     QUERY_FILE_URI(1),
     QUERY_LIST(2),
     QUERIES_NOT_SET(0);
     private final int value;
-
     private QueriesCase(int value) {
       this.value = value;
     }
@@ -108,50 +87,41 @@ public static QueriesCase valueOf(int value) {
 
     public static QueriesCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return QUERY_FILE_URI;
-        case 2:
-          return QUERY_LIST;
-        case 0:
-          return QUERIES_NOT_SET;
-        default:
-          return null;
+        case 1: return QUERY_FILE_URI;
+        case 2: return QUERY_LIST;
+        case 0: return QUERIES_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public QueriesCase getQueriesCase() {
-    return QueriesCase.forNumber(queriesCase_);
+  public QueriesCase
+  getQueriesCase() {
+    return QueriesCase.forNumber(
+        queriesCase_);
   }
 
   public static final int QUERY_FILE_URI_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * The HCFS URI of the script that contains Hive queries.
    * 
* * string query_file_uri = 1; - * * @return Whether the queryFileUri field is set. */ public boolean hasQueryFileUri() { return queriesCase_ == 1; } /** - * - * *
    * The HCFS URI of the script that contains Hive queries.
    * 
* * string query_file_uri = 1; - * * @return The queryFileUri. */ public java.lang.String getQueryFileUri() { @@ -162,7 +132,8 @@ public java.lang.String getQueryFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (queriesCase_ == 1) { queries_ = s; @@ -171,24 +142,23 @@ public java.lang.String getQueryFileUri() { } } /** - * - * *
    * The HCFS URI of the script that contains Hive queries.
    * 
* * string query_file_uri = 1; - * * @return The bytes for queryFileUri. */ - public com.google.protobuf.ByteString getQueryFileUriBytes() { + public com.google.protobuf.ByteString + getQueryFileUriBytes() { java.lang.Object ref = ""; if (queriesCase_ == 1) { ref = queries_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (queriesCase_ == 1) { queries_ = b; } @@ -200,14 +170,11 @@ public com.google.protobuf.ByteString getQueryFileUriBytes() { public static final int QUERY_LIST_FIELD_NUMBER = 2; /** - * - * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return Whether the queryList field is set. */ @java.lang.Override @@ -215,26 +182,21 @@ public boolean hasQueryList() { return queriesCase_ == 2; } /** - * - * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return The queryList. */ @java.lang.Override public com.google.cloud.dataproc.v1.QueryList getQueryList() { if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; + return (com.google.cloud.dataproc.v1.QueryList) queries_; } return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } /** - * - * *
    * A list of queries.
    * 
@@ -244,7 +206,7 @@ public com.google.cloud.dataproc.v1.QueryList getQueryList() { @java.lang.Override public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; + return (com.google.cloud.dataproc.v1.QueryList) queries_; } return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } @@ -252,8 +214,6 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER = 3; private boolean continueOnFailure_; /** - * - * *
    * Optional. Whether to continue executing queries if a query fails.
    * The default value is `false`. Setting to `true` can be useful when
@@ -261,7 +221,6 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() {
    * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The continueOnFailure. */ @java.lang.Override @@ -270,22 +229,21 @@ public boolean getContinueOnFailure() { } public static final int SCRIPT_VARIABLES_FIELD_NUMBER = 4; - private static final class ScriptVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField scriptVariables_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> scriptVariables_; private com.google.protobuf.MapField - internalGetScriptVariables() { + internalGetScriptVariables() { if (scriptVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( ScriptVariablesDefaultEntryHolder.defaultEntry); @@ -297,81 +255,74 @@ public int getScriptVariablesCount() { return internalGetScriptVariables().getMap().size(); } /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Hive command: `SET name="value";`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsScriptVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsScriptVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetScriptVariables().getMap().containsKey(key); } - /** Use {@link #getScriptVariablesMap()} instead. */ + /** + * Use {@link #getScriptVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getScriptVariables() { return getScriptVariablesMap(); } /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Hive command: `SET name="value";`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getScriptVariablesMap() { return internalGetScriptVariables().getMap(); } /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Hive command: `SET name="value";`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetScriptVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Hive command: `SET name="value";`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); + + public java.lang.String getScriptVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetScriptVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -379,23 +330,24 @@ public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { } public static final int PROPERTIES_FIELD_NUMBER = 5; - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField + internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -404,8 +356,6 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
    * Optional. A mapping of property names and values, used to configure Hive.
    * Properties that conflict with values set by the Dataproc API may be
@@ -413,25 +363,24 @@ public int getPropertiesCount() {
    * /etc/hive/conf/hive-site.xml, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
    * Optional. A mapping of property names and values, used to configure Hive.
    * Properties that conflict with values set by the Dataproc API may be
@@ -439,16 +388,14 @@ public java.util.Map getProperties() {
    * /etc/hive/conf/hive-site.xml, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
    * Optional. A mapping of property names and values, used to configure Hive.
    * Properties that conflict with values set by the Dataproc API may be
@@ -456,21 +403,19 @@ public java.util.Map getPropertiesMap() {
    * /etc/hive/conf/hive-site.xml, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. A mapping of property names and values, used to configure Hive.
    * Properties that conflict with values set by the Dataproc API may be
@@ -478,15 +423,15 @@ public java.lang.String getPropertiesOrDefault(
    * /etc/hive/conf/hive-site.xml, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -496,8 +441,6 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { public static final int JAR_FILE_URIS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList jarFileUris_; /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -505,15 +448,13 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) {
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList + getJarFileUrisList() { return jarFileUris_; } /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -521,15 +462,12 @@ public com.google.protobuf.ProtocolStringList getJarFileUrisList() {
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -537,7 +475,6 @@ public int getJarFileUrisCount() {
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -545,8 +482,6 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -554,16 +489,15 @@ public java.lang.String getJarFileUris(int index) {
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -575,7 +509,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 (queriesCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_); } @@ -585,10 +520,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (continueOnFailure_ != false) { output.writeBool(3, continueOnFailure_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetScriptVariables(), ScriptVariablesDefaultEntryHolder.defaultEntry, 4); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetScriptVariables(), + ScriptVariablesDefaultEntryHolder.defaultEntry, + 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetProperties(), + PropertiesDefaultEntryHolder.defaultEntry, + 5); for (int i = 0; i < jarFileUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jarFileUris_.getRaw(i)); } @@ -605,32 +548,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queries_); } if (queriesCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1.QueryList) queries_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.dataproc.v1.QueryList) queries_); } if (continueOnFailure_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, continueOnFailure_); - } - for (java.util.Map.Entry entry : - internalGetScriptVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry scriptVariables__ = - ScriptVariablesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, scriptVariables__); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, properties__); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, continueOnFailure_); + } + for (java.util.Map.Entry entry + : internalGetScriptVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry + scriptVariables__ = ScriptVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, scriptVariables__); + } + for (java.util.Map.Entry entry + : internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, properties__); } { int dataSize = 0; @@ -648,24 +591,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.HiveJob)) { return super.equals(obj); } com.google.cloud.dataproc.v1.HiveJob other = (com.google.cloud.dataproc.v1.HiveJob) obj; - if (getContinueOnFailure() != other.getContinueOnFailure()) return false; - if (!internalGetScriptVariables().equals(other.internalGetScriptVariables())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; + if (getContinueOnFailure() + != other.getContinueOnFailure()) return false; + if (!internalGetScriptVariables().equals( + other.internalGetScriptVariables())) return false; + if (!internalGetProperties().equals( + other.internalGetProperties())) return false; + if (!getJarFileUrisList() + .equals(other.getJarFileUrisList())) return false; if (!getQueriesCase().equals(other.getQueriesCase())) return false; switch (queriesCase_) { case 1: - if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; + if (!getQueryFileUri() + .equals(other.getQueryFileUri())) return false; break; case 2: - if (!getQueryList().equals(other.getQueryList())) return false; + if (!getQueryList() + .equals(other.getQueryList())) return false; break; case 0: default: @@ -682,7 +631,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONTINUE_ON_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContinueOnFailure()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getContinueOnFailure()); if (!internalGetScriptVariables().getMap().isEmpty()) { hash = (37 * hash) + SCRIPT_VARIABLES_FIELD_NUMBER; hash = (53 * hash) + internalGetScriptVariables().hashCode(); @@ -712,103 +662,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.HiveJob parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.HiveJob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.HiveJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.HiveJob parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.dataproc.v1.HiveJob parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.HiveJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.HiveJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.HiveJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.HiveJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.HiveJob parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.HiveJob 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.dataproc.v1.HiveJob parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.HiveJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.HiveJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.HiveJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc job for running [Apache Hive](https://hive.apache.org/)
    * queries on YARN.
@@ -816,56 +760,59 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.HiveJob}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.HiveJob)
       com.google.cloud.dataproc.v1.HiveJobOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_HiveJob_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HiveJob_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetScriptVariables();
         case 5:
           return internalGetProperties();
         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 internalGetMutableScriptVariables();
         case 5:
           return internalGetMutableProperties();
         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.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.HiveJob.class,
-              com.google.cloud.dataproc.v1.HiveJob.Builder.class);
+              com.google.cloud.dataproc.v1.HiveJob.class, com.google.cloud.dataproc.v1.HiveJob.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.HiveJob.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -884,9 +831,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_HiveJob_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HiveJob_descriptor;
     }
 
     @java.lang.Override
@@ -936,39 +883,38 @@ public com.google.cloud.dataproc.v1.HiveJob buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.HiveJob) {
-        return mergeFrom((com.google.cloud.dataproc.v1.HiveJob) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.HiveJob)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -980,8 +926,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.HiveJob other) {
       if (other.getContinueOnFailure() != false) {
         setContinueOnFailure(other.getContinueOnFailure());
       }
-      internalGetMutableScriptVariables().mergeFrom(other.internalGetScriptVariables());
-      internalGetMutableProperties().mergeFrom(other.internalGetProperties());
+      internalGetMutableScriptVariables().mergeFrom(
+          other.internalGetScriptVariables());
+      internalGetMutableProperties().mergeFrom(
+          other.internalGetProperties());
       if (!other.jarFileUris_.isEmpty()) {
         if (jarFileUris_.isEmpty()) {
           jarFileUris_ = other.jarFileUris_;
@@ -993,22 +941,19 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.HiveJob other) {
         onChanged();
       }
       switch (other.getQueriesCase()) {
-        case QUERY_FILE_URI:
-          {
-            queriesCase_ = 1;
-            queries_ = other.queries_;
-            onChanged();
-            break;
-          }
-        case QUERY_LIST:
-          {
-            mergeQueryList(other.getQueryList());
-            break;
-          }
-        case QUERIES_NOT_SET:
-          {
-            break;
-          }
+        case QUERY_FILE_URI: {
+          queriesCase_ = 1;
+          queries_ = other.queries_;
+          onChanged();
+          break;
+        }
+        case QUERY_LIST: {
+          mergeQueryList(other.getQueryList());
+          break;
+        }
+        case QUERIES_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1036,61 +981,52 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                queriesCase_ = 1;
-                queries_ = s;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getQueryListFieldBuilder().getBuilder(), extensionRegistry);
-                queriesCase_ = 2;
-                break;
-              } // case 18
-            case 24:
-              {
-                continueOnFailure_ = input.readBool();
-
-                break;
-              } // case 24
-            case 34:
-              {
-                com.google.protobuf.MapEntry scriptVariables__ =
-                    input.readMessage(
-                        ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableScriptVariables()
-                    .getMutableMap()
-                    .put(scriptVariables__.getKey(), scriptVariables__.getValue());
-                break;
-              } // case 34
-            case 42:
-              {
-                com.google.protobuf.MapEntry properties__ =
-                    input.readMessage(
-                        PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableProperties()
-                    .getMutableMap()
-                    .put(properties__.getKey(), properties__.getValue());
-                break;
-              } // case 42
-            case 50:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureJarFileUrisIsMutable();
-                jarFileUris_.add(s);
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              queriesCase_ = 1;
+              queries_ = s;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getQueryListFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              queriesCase_ = 2;
+              break;
+            } // case 18
+            case 24: {
+              continueOnFailure_ = input.readBool();
+
+              break;
+            } // case 24
+            case 34: {
+              com.google.protobuf.MapEntry
+              scriptVariables__ = input.readMessage(
+                  ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableScriptVariables().getMutableMap().put(
+                  scriptVariables__.getKey(), scriptVariables__.getValue());
+              break;
+            } // case 34
+            case 42: {
+              com.google.protobuf.MapEntry
+              properties__ = input.readMessage(
+                  PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableProperties().getMutableMap().put(
+                  properties__.getKey(), properties__.getValue());
+              break;
+            } // case 42
+            case 50: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureJarFileUrisIsMutable();
+              jarFileUris_.add(s);
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1100,12 +1036,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int queriesCase_ = 0;
     private java.lang.Object queries_;
-
-    public QueriesCase getQueriesCase() {
-      return QueriesCase.forNumber(queriesCase_);
+    public QueriesCase
+        getQueriesCase() {
+      return QueriesCase.forNumber(
+          queriesCase_);
     }
 
     public Builder clearQueries() {
@@ -1118,14 +1054,11 @@ public Builder clearQueries() {
     private int bitField0_;
 
     /**
-     *
-     *
      * 
      * The HCFS URI of the script that contains Hive queries.
      * 
* * string query_file_uri = 1; - * * @return Whether the queryFileUri field is set. */ @java.lang.Override @@ -1133,14 +1066,11 @@ public boolean hasQueryFileUri() { return queriesCase_ == 1; } /** - * - * *
      * The HCFS URI of the script that contains Hive queries.
      * 
* * string query_file_uri = 1; - * * @return The queryFileUri. */ @java.lang.Override @@ -1150,7 +1080,8 @@ public java.lang.String getQueryFileUri() { ref = queries_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (queriesCase_ == 1) { queries_ = s; @@ -1161,25 +1092,24 @@ public java.lang.String getQueryFileUri() { } } /** - * - * *
      * The HCFS URI of the script that contains Hive queries.
      * 
* * string query_file_uri = 1; - * * @return The bytes for queryFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString getQueryFileUriBytes() { + public com.google.protobuf.ByteString + getQueryFileUriBytes() { java.lang.Object ref = ""; if (queriesCase_ == 1) { ref = queries_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (queriesCase_ == 1) { queries_ = b; } @@ -1189,35 +1119,30 @@ public com.google.protobuf.ByteString getQueryFileUriBytes() { } } /** - * - * *
      * The HCFS URI of the script that contains Hive queries.
      * 
* * string query_file_uri = 1; - * * @param value The queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUri(java.lang.String value) { + public Builder setQueryFileUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - queriesCase_ = 1; + throw new NullPointerException(); + } + queriesCase_ = 1; queries_ = value; onChanged(); return this; } /** - * - * *
      * The HCFS URI of the script that contains Hive queries.
      * 
* * string query_file_uri = 1; - * * @return This builder for chaining. */ public Builder clearQueryFileUri() { @@ -1229,22 +1154,20 @@ public Builder clearQueryFileUri() { return this; } /** - * - * *
      * The HCFS URI of the script that contains Hive queries.
      * 
* * string query_file_uri = 1; - * * @param value The bytes for queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { + public Builder setQueryFileUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); queriesCase_ = 1; queries_ = value; onChanged(); @@ -1252,19 +1175,13 @@ public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder> - queryListBuilder_; + com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder> queryListBuilder_; /** - * - * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return Whether the queryList field is set. */ @java.lang.Override @@ -1272,14 +1189,11 @@ public boolean hasQueryList() { return queriesCase_ == 2; } /** - * - * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return The queryList. */ @java.lang.Override @@ -1297,8 +1211,6 @@ public com.google.cloud.dataproc.v1.QueryList getQueryList() { } } /** - * - * *
      * A list of queries.
      * 
@@ -1319,15 +1231,14 @@ public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList value) { return this; } /** - * - * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; */ - public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { + public Builder setQueryList( + com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { if (queryListBuilder_ == null) { queries_ = builderForValue.build(); onChanged(); @@ -1338,8 +1249,6 @@ public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder build return this; } /** - * - * *
      * A list of queries.
      * 
@@ -1348,13 +1257,10 @@ public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder build */ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { if (queryListBuilder_ == null) { - if (queriesCase_ == 2 - && queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { - queries_ = - com.google.cloud.dataproc.v1.QueryList.newBuilder( - (com.google.cloud.dataproc.v1.QueryList) queries_) - .mergeFrom(value) - .buildPartial(); + if (queriesCase_ == 2 && + queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { + queries_ = com.google.cloud.dataproc.v1.QueryList.newBuilder((com.google.cloud.dataproc.v1.QueryList) queries_) + .mergeFrom(value).buildPartial(); } else { queries_ = value; } @@ -1370,8 +1276,6 @@ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { return this; } /** - * - * *
      * A list of queries.
      * 
@@ -1395,8 +1299,6 @@ public Builder clearQueryList() { return this; } /** - * - * *
      * A list of queries.
      * 
@@ -1407,8 +1309,6 @@ public com.google.cloud.dataproc.v1.QueryList.Builder getQueryListBuilder() { return getQueryListFieldBuilder().getBuilder(); } /** - * - * *
      * A list of queries.
      * 
@@ -1427,8 +1327,6 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { } } /** - * - * *
      * A list of queries.
      * 
@@ -1436,34 +1334,26 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { * .google.cloud.dataproc.v1.QueryList query_list = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder> + com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder> getQueryListFieldBuilder() { if (queryListBuilder_ == null) { if (!(queriesCase_ == 2)) { queries_ = com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } - queryListBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder>( + queryListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder>( (com.google.cloud.dataproc.v1.QueryList) queries_, getParentForChildren(), isClean()); queries_ = null; } queriesCase_ = 2; - onChanged(); - ; + onChanged();; return queryListBuilder_; } - private boolean continueOnFailure_; + private boolean continueOnFailure_ ; /** - * - * *
      * Optional. Whether to continue executing queries if a query fails.
      * The default value is `false`. Setting to `true` can be useful when
@@ -1471,7 +1361,6 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() {
      * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The continueOnFailure. */ @java.lang.Override @@ -1479,8 +1368,6 @@ public boolean getContinueOnFailure() { return continueOnFailure_; } /** - * - * *
      * Optional. Whether to continue executing queries if a query fails.
      * The default value is `false`. Setting to `true` can be useful when
@@ -1488,19 +1375,16 @@ public boolean getContinueOnFailure() {
      * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The continueOnFailure to set. * @return This builder for chaining. */ public Builder setContinueOnFailure(boolean value) { - + continueOnFailure_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Whether to continue executing queries if a query fails.
      * The default value is `false`. Setting to `true` can be useful when
@@ -1508,35 +1392,31 @@ public Builder setContinueOnFailure(boolean value) {
      * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearContinueOnFailure() { - + continueOnFailure_ = false; onChanged(); return this; } - private com.google.protobuf.MapField scriptVariables_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> scriptVariables_; private com.google.protobuf.MapField - internalGetScriptVariables() { + internalGetScriptVariables() { if (scriptVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( ScriptVariablesDefaultEntryHolder.defaultEntry); } return scriptVariables_; } - private com.google.protobuf.MapField - internalGetMutableScriptVariables() { - onChanged(); - ; + internalGetMutableScriptVariables() { + onChanged();; if (scriptVariables_ == null) { - scriptVariables_ = - com.google.protobuf.MapField.newMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); + scriptVariables_ = com.google.protobuf.MapField.newMapField( + ScriptVariablesDefaultEntryHolder.defaultEntry); } if (!scriptVariables_.isMutable()) { scriptVariables_ = scriptVariables_.copy(); @@ -1548,85 +1428,74 @@ public int getScriptVariablesCount() { return internalGetScriptVariables().getMap().size(); } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Hive command: `SET name="value";`).
      * 
* - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsScriptVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsScriptVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetScriptVariables().getMap().containsKey(key); } - /** Use {@link #getScriptVariablesMap()} instead. */ + /** + * Use {@link #getScriptVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getScriptVariables() { return getScriptVariablesMap(); } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Hive command: `SET name="value";`).
      * 
* - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getScriptVariablesMap() { return internalGetScriptVariables().getMap(); } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Hive command: `SET name="value";`).
      * 
* - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetScriptVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Hive command: `SET name="value";`).
      * 
* - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); + + public java.lang.String getScriptVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetScriptVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1634,91 +1503,86 @@ public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { } public Builder clearScriptVariables() { - internalGetMutableScriptVariables().getMutableMap().clear(); + internalGetMutableScriptVariables().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Hive command: `SET name="value";`).
      * 
* - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeScriptVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableScriptVariables().getMutableMap().remove(key); + + public Builder removeScriptVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableScriptVariables().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableScriptVariables() { + public java.util.Map + getMutableScriptVariables() { return internalGetMutableScriptVariables().getMutableMap(); } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Hive command: `SET name="value";`).
      * 
* - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putScriptVariables(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putScriptVariables( + 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"); +} - internalGetMutableScriptVariables().getMutableMap().put(key, value); + internalGetMutableScriptVariables().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Hive command: `SET name="value";`).
      * 
* - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllScriptVariables(java.util.Map values) { - internalGetMutableScriptVariables().getMutableMap().putAll(values); + + public Builder putAllScriptVariables( + java.util.Map values) { + internalGetMutableScriptVariables().getMutableMap() + .putAll(values); return this; } - private com.google.protobuf.MapField properties_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; + internalGetMutableProperties() { + onChanged();; if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); + properties_ = com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -1730,8 +1594,6 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
      * Optional. A mapping of property names and values, used to configure Hive.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1739,25 +1601,24 @@ public int getPropertiesCount() {
      * /etc/hive/conf/hive-site.xml, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
      * Optional. A mapping of property names and values, used to configure Hive.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1765,16 +1626,14 @@ public java.util.Map getProperties() {
      * /etc/hive/conf/hive-site.xml, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
      * Optional. A mapping of property names and values, used to configure Hive.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1782,21 +1641,19 @@ public java.util.Map getPropertiesMap() {
      * /etc/hive/conf/hive-site.xml, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. A mapping of property names and values, used to configure Hive.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1804,15 +1661,15 @@ public java.lang.String getPropertiesOrDefault(
      * /etc/hive/conf/hive-site.xml, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1820,12 +1677,11 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); + internalGetMutableProperties().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. A mapping of property names and values, used to configure Hive.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1833,24 +1689,25 @@ public Builder clearProperties() {
      * /etc/hive/conf/hive-site.xml, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); + + public Builder removeProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableProperties().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableProperties() { + public java.util.Map + getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** - * - * *
      * Optional. A mapping of property names and values, used to configure Hive.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1858,23 +1715,21 @@ public java.util.Map getMutableProperties()
      * /etc/hive/conf/hive-site.xml, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putProperties( + 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"); +} - internalGetMutableProperties().getMutableMap().put(key, value); + internalGetMutableProperties().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. A mapping of property names and values, used to configure Hive.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1882,26 +1737,24 @@ public Builder putProperties(java.lang.String key, java.lang.String value) {
      * /etc/hive/conf/hive-site.xml, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); + + public Builder putAllProperties( + java.util.Map values) { + internalGetMutableProperties().getMutableMap() + .putAll(values); return this; } - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureJarFileUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -1909,15 +1762,13 @@ private void ensureJarFileUrisIsMutable() {
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList + getJarFileUrisList() { return jarFileUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -1925,15 +1776,12 @@ public com.google.protobuf.ProtocolStringList getJarFileUrisList() {
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -1941,7 +1789,6 @@ public int getJarFileUrisCount() {
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -1949,8 +1796,6 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -1958,16 +1803,14 @@ public java.lang.String getJarFileUris(int index) {
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -1975,23 +1818,21 @@ public com.google.protobuf.ByteString getJarFileUrisBytes(int index) {
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The jarFileUris to set. * @return This builder for chaining. */ - public Builder setJarFileUris(int index, java.lang.String value) { + public Builder setJarFileUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -1999,22 +1840,20 @@ public Builder setJarFileUris(int index, java.lang.String value) {
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUris(java.lang.String value) { + public Builder addJarFileUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -2022,19 +1861,18 @@ public Builder addJarFileUris(java.lang.String value) {
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The jarFileUris to add. * @return This builder for chaining. */ - public Builder addAllJarFileUris(java.lang.Iterable values) { + public Builder addAllJarFileUris( + java.lang.Iterable values) { ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, jarFileUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -2042,7 +1880,6 @@ public Builder addAllJarFileUris(java.lang.Iterable values) {
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearJarFileUris() { @@ -2052,8 +1889,6 @@ public Builder clearJarFileUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -2061,23 +1896,23 @@ public Builder clearJarFileUris() {
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { + public Builder addJarFileUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureJarFileUrisIsMutable(); jarFileUris_.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); } @@ -2087,12 +1922,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.HiveJob) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.HiveJob) private static final com.google.cloud.dataproc.v1.HiveJob DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.HiveJob(); } @@ -2101,27 +1936,27 @@ public static com.google.cloud.dataproc.v1.HiveJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HiveJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HiveJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2136,4 +1971,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.HiveJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java similarity index 74% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java index 3ec982082294..53a081d6fe00 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java @@ -1,92 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface HiveJobOrBuilder - extends +public interface HiveJobOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.HiveJob) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The HCFS URI of the script that contains Hive queries.
    * 
* * string query_file_uri = 1; - * * @return Whether the queryFileUri field is set. */ boolean hasQueryFileUri(); /** - * - * *
    * The HCFS URI of the script that contains Hive queries.
    * 
* * string query_file_uri = 1; - * * @return The queryFileUri. */ java.lang.String getQueryFileUri(); /** - * - * *
    * The HCFS URI of the script that contains Hive queries.
    * 
* * string query_file_uri = 1; - * * @return The bytes for queryFileUri. */ - com.google.protobuf.ByteString getQueryFileUriBytes(); + com.google.protobuf.ByteString + getQueryFileUriBytes(); /** - * - * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return Whether the queryList field is set. */ boolean hasQueryList(); /** - * - * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return The queryList. */ com.google.cloud.dataproc.v1.QueryList getQueryList(); /** - * - * *
    * A list of queries.
    * 
@@ -96,8 +64,6 @@ public interface HiveJobOrBuilder com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder(); /** - * - * *
    * Optional. Whether to continue executing queries if a query fails.
    * The default value is `false`. Setting to `true` can be useful when
@@ -105,83 +71,72 @@ public interface HiveJobOrBuilder
    * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The continueOnFailure. */ boolean getContinueOnFailure(); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Hive command: `SET name="value";`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ int getScriptVariablesCount(); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Hive command: `SET name="value";`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsScriptVariables( + java.lang.String key); + /** + * Use {@link #getScriptVariablesMap()} instead. */ - boolean containsScriptVariables(java.lang.String key); - /** Use {@link #getScriptVariablesMap()} instead. */ @java.lang.Deprecated - java.util.Map getScriptVariables(); + java.util.Map + getScriptVariables(); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Hive command: `SET name="value";`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getScriptVariablesMap(); + java.util.Map + getScriptVariablesMap(); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Hive command: `SET name="value";`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getScriptVariablesOrDefault( +java.lang.String getScriptVariablesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Hive command: `SET name="value";`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getScriptVariablesOrThrow(java.lang.String key); + + java.lang.String getScriptVariablesOrThrow( + java.lang.String key); /** - * - * *
    * Optional. A mapping of property names and values, used to configure Hive.
    * Properties that conflict with values set by the Dataproc API may be
@@ -189,13 +144,10 @@ java.lang.String getScriptVariablesOrDefault(
    * /etc/hive/conf/hive-site.xml, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getPropertiesCount(); /** - * - * *
    * Optional. A mapping of property names and values, used to configure Hive.
    * Properties that conflict with values set by the Dataproc API may be
@@ -203,16 +155,17 @@ java.lang.String getScriptVariablesOrDefault(
    * /etc/hive/conf/hive-site.xml, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsProperties( + java.lang.String key); + /** + * Use {@link #getPropertiesMap()} instead. */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map getProperties(); + java.util.Map + getProperties(); /** - * - * *
    * Optional. A mapping of property names and values, used to configure Hive.
    * Properties that conflict with values set by the Dataproc API may be
@@ -220,13 +173,11 @@ java.lang.String getScriptVariablesOrDefault(
    * /etc/hive/conf/hive-site.xml, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getPropertiesMap(); + java.util.Map + getPropertiesMap(); /** - * - * *
    * Optional. A mapping of property names and values, used to configure Hive.
    * Properties that conflict with values set by the Dataproc API may be
@@ -234,18 +185,15 @@ java.lang.String getScriptVariablesOrDefault(
    * /etc/hive/conf/hive-site.xml, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getPropertiesOrDefault( +java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. A mapping of property names and values, used to configure Hive.
    * Properties that conflict with values set by the Dataproc API may be
@@ -253,14 +201,13 @@ java.lang.String getPropertiesOrDefault(
    * /etc/hive/conf/hive-site.xml, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getPropertiesOrThrow(java.lang.String key); + + java.lang.String getPropertiesOrThrow( + java.lang.String key); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -268,13 +215,11 @@ java.lang.String getPropertiesOrDefault(
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - java.util.List getJarFileUrisList(); + java.util.List + getJarFileUrisList(); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -282,13 +227,10 @@ java.lang.String getPropertiesOrDefault(
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ int getJarFileUrisCount(); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -296,14 +238,11 @@ java.lang.String getPropertiesOrDefault(
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ java.lang.String getJarFileUris(int index); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -311,11 +250,11 @@ java.lang.String getPropertiesOrDefault(
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); + com.google.protobuf.ByteString + getJarFileUrisBytes(int index); public com.google.cloud.dataproc.v1.HiveJob.QueriesCase getQueriesCase(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java similarity index 57% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java index 6b707e4e0c2b..087adc016f52 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Identity related configuration, including service account based
  * secure multi-tenancy user mappings.
@@ -28,73 +11,71 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.IdentityConfig}
  */
-public final class IdentityConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class IdentityConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.IdentityConfig)
     IdentityConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use IdentityConfig.newBuilder() to construct.
   private IdentityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private IdentityConfig() {}
+  private IdentityConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new IdentityConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto
-        .internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_IdentityConfig_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 internalGetUserServiceAccountMapping();
       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.dataproc.v1.ClustersProto
-        .internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.IdentityConfig.class,
-            com.google.cloud.dataproc.v1.IdentityConfig.Builder.class);
+            com.google.cloud.dataproc.v1.IdentityConfig.class, com.google.cloud.dataproc.v1.IdentityConfig.Builder.class);
   }
 
   public static final int USER_SERVICE_ACCOUNT_MAPPING_FIELD_NUMBER = 1;
-
   private static final class UserServiceAccountMappingDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.cloud.dataproc.v1.ClustersProto
-                .internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor,
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "",
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "");
-  }
-
-  private com.google.protobuf.MapField
-      userServiceAccountMapping_;
-
+    static final com.google.protobuf.MapEntry<
+        java.lang.String, java.lang.String> defaultEntry =
+            com.google.protobuf.MapEntry
+            .newDefaultInstance(
+                com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "");
+  }
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> userServiceAccountMapping_;
   private com.google.protobuf.MapField
-      internalGetUserServiceAccountMapping() {
+  internalGetUserServiceAccountMapping() {
     if (userServiceAccountMapping_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
           UserServiceAccountMappingDefaultEntryHolder.defaultEntry);
@@ -106,81 +87,68 @@ public int getUserServiceAccountMappingCount() {
     return internalGetUserServiceAccountMapping().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Required. Map of user to service account.
    * 
* - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; */ + @java.lang.Override - public boolean containsUserServiceAccountMapping(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsUserServiceAccountMapping( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetUserServiceAccountMapping().getMap().containsKey(key); } - /** Use {@link #getUserServiceAccountMappingMap()} instead. */ + /** + * Use {@link #getUserServiceAccountMappingMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getUserServiceAccountMapping() { return getUserServiceAccountMappingMap(); } /** - * - * *
    * Required. Map of user to service account.
    * 
* - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override + public java.util.Map getUserServiceAccountMappingMap() { return internalGetUserServiceAccountMapping().getMap(); } /** - * - * *
    * Required. Map of user to service account.
    * 
* - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override + public java.lang.String getUserServiceAccountMappingOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetUserServiceAccountMapping().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Required. Map of user to service account.
    * 
* - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.lang.String getUserServiceAccountMappingOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public java.lang.String getUserServiceAccountMappingOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetUserServiceAccountMapping().getMap(); if (!map.containsKey(key)) { @@ -190,7 +158,6 @@ public java.lang.String getUserServiceAccountMappingOrThrow(java.lang.String key } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +169,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetUserServiceAccountMapping(), UserServiceAccountMappingDefaultEntryHolder.defaultEntry, @@ -217,16 +186,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry : - internalGetUserServiceAccountMapping().getMap().entrySet()) { - com.google.protobuf.MapEntry userServiceAccountMapping__ = - UserServiceAccountMappingDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, userServiceAccountMapping__); + for (java.util.Map.Entry entry + : internalGetUserServiceAccountMapping().getMap().entrySet()) { + com.google.protobuf.MapEntry + userServiceAccountMapping__ = UserServiceAccountMappingDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, userServiceAccountMapping__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -236,16 +204,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.dataproc.v1.IdentityConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.IdentityConfig other = - (com.google.cloud.dataproc.v1.IdentityConfig) obj; + com.google.cloud.dataproc.v1.IdentityConfig other = (com.google.cloud.dataproc.v1.IdentityConfig) obj; - if (!internalGetUserServiceAccountMapping() - .equals(other.internalGetUserServiceAccountMapping())) return false; + if (!internalGetUserServiceAccountMapping().equals( + other.internalGetUserServiceAccountMapping())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,104 +233,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.IdentityConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.IdentityConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.IdentityConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.IdentityConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Identity related configuration, including service account based
    * secure multi-tenancy user mappings.
@@ -371,52 +331,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.IdentityConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.IdentityConfig)
       com.google.cloud.dataproc.v1.IdentityConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetUserServiceAccountMapping();
         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 internalGetMutableUserServiceAccountMapping();
         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.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.IdentityConfig.class,
-              com.google.cloud.dataproc.v1.IdentityConfig.Builder.class);
+              com.google.cloud.dataproc.v1.IdentityConfig.class, com.google.cloud.dataproc.v1.IdentityConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.IdentityConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -425,9 +388,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor;
     }
 
     @java.lang.Override
@@ -446,8 +409,7 @@ public com.google.cloud.dataproc.v1.IdentityConfig build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.IdentityConfig buildPartial() {
-      com.google.cloud.dataproc.v1.IdentityConfig result =
-          new com.google.cloud.dataproc.v1.IdentityConfig(this);
+      com.google.cloud.dataproc.v1.IdentityConfig result = new com.google.cloud.dataproc.v1.IdentityConfig(this);
       int from_bitField0_ = bitField0_;
       result.userServiceAccountMapping_ = internalGetUserServiceAccountMapping();
       result.userServiceAccountMapping_.makeImmutable();
@@ -459,39 +421,38 @@ public com.google.cloud.dataproc.v1.IdentityConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.IdentityConfig) {
-        return mergeFrom((com.google.cloud.dataproc.v1.IdentityConfig) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.IdentityConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -500,8 +461,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.IdentityConfig other) {
       if (other == com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance()) return this;
-      internalGetMutableUserServiceAccountMapping()
-          .mergeFrom(other.internalGetUserServiceAccountMapping());
+      internalGetMutableUserServiceAccountMapping().mergeFrom(
+          other.internalGetUserServiceAccountMapping());
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -528,28 +489,20 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.protobuf.MapEntry
-                    userServiceAccountMapping__ =
-                        input.readMessage(
-                            UserServiceAccountMappingDefaultEntryHolder.defaultEntry
-                                .getParserForType(),
-                            extensionRegistry);
-                internalGetMutableUserServiceAccountMapping()
-                    .getMutableMap()
-                    .put(
-                        userServiceAccountMapping__.getKey(),
-                        userServiceAccountMapping__.getValue());
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.protobuf.MapEntry
+              userServiceAccountMapping__ = input.readMessage(
+                  UserServiceAccountMappingDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableUserServiceAccountMapping().getMutableMap().put(
+                  userServiceAccountMapping__.getKey(), userServiceAccountMapping__.getValue());
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -559,29 +512,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> userServiceAccountMapping_;
     private com.google.protobuf.MapField
-        userServiceAccountMapping_;
-
-    private com.google.protobuf.MapField
-        internalGetUserServiceAccountMapping() {
+    internalGetUserServiceAccountMapping() {
       if (userServiceAccountMapping_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             UserServiceAccountMappingDefaultEntryHolder.defaultEntry);
       }
       return userServiceAccountMapping_;
     }
-
     private com.google.protobuf.MapField
-        internalGetMutableUserServiceAccountMapping() {
-      onChanged();
-      ;
+    internalGetMutableUserServiceAccountMapping() {
+      onChanged();;
       if (userServiceAccountMapping_ == null) {
-        userServiceAccountMapping_ =
-            com.google.protobuf.MapField.newMapField(
-                UserServiceAccountMappingDefaultEntryHolder.defaultEntry);
+        userServiceAccountMapping_ = com.google.protobuf.MapField.newMapField(
+            UserServiceAccountMappingDefaultEntryHolder.defaultEntry);
       }
       if (!userServiceAccountMapping_.isMutable()) {
         userServiceAccountMapping_ = userServiceAccountMapping_.copy();
@@ -593,81 +541,68 @@ public int getUserServiceAccountMappingCount() {
       return internalGetUserServiceAccountMapping().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Required. Map of user to service account.
      * 
* - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; */ + @java.lang.Override - public boolean containsUserServiceAccountMapping(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsUserServiceAccountMapping( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetUserServiceAccountMapping().getMap().containsKey(key); } - /** Use {@link #getUserServiceAccountMappingMap()} instead. */ + /** + * Use {@link #getUserServiceAccountMappingMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getUserServiceAccountMapping() { return getUserServiceAccountMappingMap(); } /** - * - * *
      * Required. Map of user to service account.
      * 
* - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override + public java.util.Map getUserServiceAccountMappingMap() { return internalGetUserServiceAccountMapping().getMap(); } /** - * - * *
      * Required. Map of user to service account.
      * 
* - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override + public java.lang.String getUserServiceAccountMappingOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetUserServiceAccountMapping().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Required. Map of user to service account.
      * 
* - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.lang.String getUserServiceAccountMappingOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public java.lang.String getUserServiceAccountMappingOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetUserServiceAccountMapping().getMap(); if (!map.containsKey(key)) { @@ -677,73 +612,69 @@ public java.lang.String getUserServiceAccountMappingOrThrow(java.lang.String key } public Builder clearUserServiceAccountMapping() { - internalGetMutableUserServiceAccountMapping().getMutableMap().clear(); + internalGetMutableUserServiceAccountMapping().getMutableMap() + .clear(); return this; } /** - * - * *
      * Required. Map of user to service account.
      * 
* - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder removeUserServiceAccountMapping(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableUserServiceAccountMapping().getMutableMap().remove(key); + + public Builder removeUserServiceAccountMapping( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableUserServiceAccountMapping().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableUserServiceAccountMapping() { + public java.util.Map + getMutableUserServiceAccountMapping() { return internalGetMutableUserServiceAccountMapping().getMutableMap(); } /** - * - * *
      * Required. Map of user to service account.
      * 
* - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder putUserServiceAccountMapping(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putUserServiceAccountMapping( + 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"); +} - internalGetMutableUserServiceAccountMapping().getMutableMap().put(key, value); + internalGetMutableUserServiceAccountMapping().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Required. Map of user to service account.
      * 
* - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; */ + public Builder putAllUserServiceAccountMapping( java.util.Map values) { - internalGetMutableUserServiceAccountMapping().getMutableMap().putAll(values); + internalGetMutableUserServiceAccountMapping().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); } @@ -753,12 +684,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.IdentityConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.IdentityConfig) private static final com.google.cloud.dataproc.v1.IdentityConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.IdentityConfig(); } @@ -767,27 +698,27 @@ public static com.google.cloud.dataproc.v1.IdentityConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IdentityConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdentityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -802,4 +733,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.IdentityConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java new file mode 100644 index 000000000000..67403d5ae433 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface IdentityConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.IdentityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Map of user to service account.
+   * 
+ * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + int getUserServiceAccountMappingCount(); + /** + *
+   * Required. Map of user to service account.
+   * 
+ * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + boolean containsUserServiceAccountMapping( + java.lang.String key); + /** + * Use {@link #getUserServiceAccountMappingMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getUserServiceAccountMapping(); + /** + *
+   * Required. Map of user to service account.
+   * 
+ * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.Map + getUserServiceAccountMappingMap(); + /** + *
+   * Required. Map of user to service account.
+   * 
+ * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + + /* nullable */ +java.lang.String getUserServiceAccountMappingOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Required. Map of user to service account.
+   * 
+ * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + + java.lang.String getUserServiceAccountMappingOrThrow( + java.lang.String key); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java similarity index 72% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java index 6e4db50dec29..2c944db83700 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.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/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Configuration for the size bounds of an instance group, including its
  * proportional size to other groups.
@@ -28,51 +11,46 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig}
  */
-public final class InstanceGroupAutoscalingPolicyConfig
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class InstanceGroupAutoscalingPolicyConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig)
     InstanceGroupAutoscalingPolicyConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use InstanceGroupAutoscalingPolicyConfig.newBuilder() to construct.
-  private InstanceGroupAutoscalingPolicyConfig(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private InstanceGroupAutoscalingPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private InstanceGroupAutoscalingPolicyConfig() {}
+  private InstanceGroupAutoscalingPolicyConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new InstanceGroupAutoscalingPolicyConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
-        .internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
-        .internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.class,
-            com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder.class);
+            com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.class, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder.class);
   }
 
   public static final int MIN_INSTANCES_FIELD_NUMBER = 1;
   private int minInstances_;
   /**
-   *
-   *
    * 
    * Optional. Minimum number of instances for this group.
    * Primary workers - Bounds: [2, max_instances]. Default: 2.
@@ -80,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The minInstances. */ @java.lang.Override @@ -91,8 +68,6 @@ public int getMinInstances() { public static final int MAX_INSTANCES_FIELD_NUMBER = 2; private int maxInstances_; /** - * - * *
    * Required. Maximum number of instances for this group. Required for primary
    * workers. Note that by default, clusters will not use secondary workers.
@@ -102,7 +77,6 @@ public int getMinInstances() {
    * 
* * int32 max_instances = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The maxInstances. */ @java.lang.Override @@ -113,8 +87,6 @@ public int getMaxInstances() { public static final int WEIGHT_FIELD_NUMBER = 3; private int weight_; /** - * - * *
    * Optional. Weight for the instance group, which is used to determine the
    * fraction of total workers in the cluster from this instance group.
@@ -135,7 +107,6 @@ public int getMaxInstances() {
    * 
* * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The weight. */ @java.lang.Override @@ -144,7 +115,6 @@ public int getWeight() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -156,7 +126,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 (minInstances_ != 0) { output.writeInt32(1, minInstances_); } @@ -176,13 +147,16 @@ public int getSerializedSize() { size = 0; if (minInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, minInstances_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, minInstances_); } if (maxInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxInstances_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, maxInstances_); } if (weight_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, weight_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, weight_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -192,17 +166,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.dataproc.v1.InstanceGroupAutoscalingPolicyConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig other = - (com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) obj; + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig other = (com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) obj; - if (getMinInstances() != other.getMinInstances()) return false; - if (getMaxInstances() != other.getMaxInstances()) return false; - if (getWeight() != other.getWeight()) return false; + if (getMinInstances() + != other.getMinInstances()) return false; + if (getMaxInstances() + != other.getMaxInstances()) return false; + if (getWeight() + != other.getWeight()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -226,105 +202,96 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig 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.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig - 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.dataproc.v1.InstanceGroupAutoscalingPolicyConfig 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.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration for the size bounds of an instance group, including its
    * proportional size to other groups.
@@ -332,33 +299,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig)
       com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
-          .internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
-          .internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.class,
-              com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder.class);
+              com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.class, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -372,14 +339,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
-          .internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig
-        getDefaultInstanceForType() {
+    public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getDefaultInstanceForType() {
       return com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance();
     }
 
@@ -394,8 +360,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig build()
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig buildPartial() {
-      com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig result =
-          new com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig(this);
+      com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig result = new com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig(this);
       result.minInstances_ = minInstances_;
       result.maxInstances_ = maxInstances_;
       result.weight_ = weight_;
@@ -407,50 +372,46 @@ public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig buildPa
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) {
-        return mergeFrom((com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig other) {
-      if (other
-          == com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig other) {
+      if (other == com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance()) return this;
       if (other.getMinInstances() != 0) {
         setMinInstances(other.getMinInstances());
       }
@@ -486,31 +447,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                minInstances_ = input.readInt32();
-
-                break;
-              } // case 8
-            case 16:
-              {
-                maxInstances_ = input.readInt32();
-
-                break;
-              } // case 16
-            case 24:
-              {
-                weight_ = input.readInt32();
-
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              minInstances_ = input.readInt32();
+
+              break;
+            } // case 8
+            case 16: {
+              maxInstances_ = input.readInt32();
+
+              break;
+            } // case 16
+            case 24: {
+              weight_ = input.readInt32();
+
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -521,10 +478,8 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int minInstances_;
+    private int minInstances_ ;
     /**
-     *
-     *
      * 
      * Optional. Minimum number of instances for this group.
      * Primary workers - Bounds: [2, max_instances]. Default: 2.
@@ -532,7 +487,6 @@ public Builder mergeFrom(
      * 
* * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The minInstances. */ @java.lang.Override @@ -540,8 +494,6 @@ public int getMinInstances() { return minInstances_; } /** - * - * *
      * Optional. Minimum number of instances for this group.
      * Primary workers - Bounds: [2, max_instances]. Default: 2.
@@ -549,19 +501,16 @@ public int getMinInstances() {
      * 
* * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The minInstances to set. * @return This builder for chaining. */ public Builder setMinInstances(int value) { - + minInstances_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Minimum number of instances for this group.
      * Primary workers - Bounds: [2, max_instances]. Default: 2.
@@ -569,20 +518,17 @@ public Builder setMinInstances(int value) {
      * 
* * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMinInstances() { - + minInstances_ = 0; onChanged(); return this; } - private int maxInstances_; + private int maxInstances_ ; /** - * - * *
      * Required. Maximum number of instances for this group. Required for primary
      * workers. Note that by default, clusters will not use secondary workers.
@@ -592,7 +538,6 @@ public Builder clearMinInstances() {
      * 
* * int32 max_instances = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The maxInstances. */ @java.lang.Override @@ -600,8 +545,6 @@ public int getMaxInstances() { return maxInstances_; } /** - * - * *
      * Required. Maximum number of instances for this group. Required for primary
      * workers. Note that by default, clusters will not use secondary workers.
@@ -611,19 +554,16 @@ public int getMaxInstances() {
      * 
* * int32 max_instances = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The maxInstances to set. * @return This builder for chaining. */ public Builder setMaxInstances(int value) { - + maxInstances_ = value; onChanged(); return this; } /** - * - * *
      * Required. Maximum number of instances for this group. Required for primary
      * workers. Note that by default, clusters will not use secondary workers.
@@ -633,20 +573,17 @@ public Builder setMaxInstances(int value) {
      * 
* * int32 max_instances = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMaxInstances() { - + maxInstances_ = 0; onChanged(); return this; } - private int weight_; + private int weight_ ; /** - * - * *
      * Optional. Weight for the instance group, which is used to determine the
      * fraction of total workers in the cluster from this instance group.
@@ -667,7 +604,6 @@ public Builder clearMaxInstances() {
      * 
* * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The weight. */ @java.lang.Override @@ -675,8 +611,6 @@ public int getWeight() { return weight_; } /** - * - * *
      * Optional. Weight for the instance group, which is used to determine the
      * fraction of total workers in the cluster from this instance group.
@@ -697,19 +631,16 @@ public int getWeight() {
      * 
* * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The weight to set. * @return This builder for chaining. */ public Builder setWeight(int value) { - + weight_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Weight for the instance group, which is used to determine the
      * fraction of total workers in the cluster from this instance group.
@@ -730,18 +661,17 @@ public Builder setWeight(int value) {
      * 
* * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearWeight() { - + weight_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -751,43 +681,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) - private static final com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig(); } - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig - getDefaultInstance() { + public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstanceGroupAutoscalingPolicyConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceGroupAutoscalingPolicyConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -799,8 +727,9 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig - getDefaultInstanceForType() { + public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java similarity index 77% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java index 6076ba8db912..d3f668050172 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.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/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; -public interface InstanceGroupAutoscalingPolicyConfigOrBuilder - extends +public interface InstanceGroupAutoscalingPolicyConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Minimum number of instances for this group.
    * Primary workers - Bounds: [2, max_instances]. Default: 2.
@@ -33,14 +15,11 @@ public interface InstanceGroupAutoscalingPolicyConfigOrBuilder
    * 
* * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The minInstances. */ int getMinInstances(); /** - * - * *
    * Required. Maximum number of instances for this group. Required for primary
    * workers. Note that by default, clusters will not use secondary workers.
@@ -50,14 +29,11 @@ public interface InstanceGroupAutoscalingPolicyConfigOrBuilder
    * 
* * int32 max_instances = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The maxInstances. */ int getMaxInstances(); /** - * - * *
    * Optional. Weight for the instance group, which is used to determine the
    * fraction of total workers in the cluster from this instance group.
@@ -78,7 +54,6 @@ public interface InstanceGroupAutoscalingPolicyConfigOrBuilder
    * 
* * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The weight. */ int getWeight(); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java similarity index 71% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java index 3507efee35b6..b33c53a1bcd7 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * The config settings for Compute Engine resources in
  * an instance group, such as a master or worker group.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.InstanceGroupConfig}
  */
-public final class InstanceGroupConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class InstanceGroupConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.InstanceGroupConfig)
     InstanceGroupConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use InstanceGroupConfig.newBuilder() to construct.
   private InstanceGroupConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private InstanceGroupConfig() {
     instanceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     imageUri_ = "";
@@ -49,46 +31,39 @@ private InstanceGroupConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new InstanceGroupConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto
-        .internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.ClustersProto
-        .internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.InstanceGroupConfig.class,
-            com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder.class);
+            com.google.cloud.dataproc.v1.InstanceGroupConfig.class, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder.class);
   }
 
   /**
-   *
-   *
    * 
-   * Controls the use of
-   * [preemptible instances]
-   * (https://cloud.google.com/compute/docs/instances/preemptible)
-   * within the group.
+   * Controls the use of preemptible instances within the group.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility} */ - public enum Preemptibility implements com.google.protobuf.ProtocolMessageEnum { + public enum Preemptibility + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Preemptibility is unspecified, the system will choose the
      * appropriate setting for each instance group.
@@ -98,8 +73,6 @@ public enum Preemptibility implements com.google.protobuf.ProtocolMessageEnum {
      */
     PREEMPTIBILITY_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Instances are non-preemptible.
      * This option is allowed for all instance groups and is the only valid
@@ -110,11 +83,12 @@ public enum Preemptibility implements com.google.protobuf.ProtocolMessageEnum {
      */
     NON_PREEMPTIBLE(1),
     /**
-     *
-     *
      * 
-     * Instances are preemptible.
-     * This option is allowed only for secondary worker groups.
+     * Instances are [preemptible]
+     * (https://cloud.google.com/compute/docs/instances/preemptible).
+     * This option is allowed only for [secondary worker]
+     * (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms)
+     * groups.
      * 
* * PREEMPTIBLE = 2; @@ -124,8 +98,6 @@ public enum Preemptibility implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Preemptibility is unspecified, the system will choose the
      * appropriate setting for each instance group.
@@ -135,8 +107,6 @@ public enum Preemptibility implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int PREEMPTIBILITY_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Instances are non-preemptible.
      * This option is allowed for all instance groups and is the only valid
@@ -147,17 +117,19 @@ public enum Preemptibility implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int NON_PREEMPTIBLE_VALUE = 1;
     /**
-     *
-     *
      * 
-     * Instances are preemptible.
-     * This option is allowed only for secondary worker groups.
+     * Instances are [preemptible]
+     * (https://cloud.google.com/compute/docs/instances/preemptible).
+     * This option is allowed only for [secondary worker]
+     * (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms)
+     * groups.
      * 
* * PREEMPTIBLE = 2; */ public static final int PREEMPTIBLE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -182,49 +154,49 @@ public static Preemptibility valueOf(int value) { */ public static Preemptibility forNumber(int value) { switch (value) { - case 0: - return PREEMPTIBILITY_UNSPECIFIED; - case 1: - return NON_PREEMPTIBLE; - case 2: - return PREEMPTIBLE; - default: - return null; + case 0: return PREEMPTIBILITY_UNSPECIFIED; + case 1: return NON_PREEMPTIBLE; + case 2: return PREEMPTIBLE; + 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< + Preemptibility> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Preemptibility findValueByNumber(int number) { + return Preemptibility.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Preemptibility findValueByNumber(int number) { - return Preemptibility.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.dataproc.v1.InstanceGroupConfig.getDescriptor().getEnumTypes().get(0); } private static final Preemptibility[] VALUES = values(); - public static Preemptibility valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Preemptibility 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; @@ -244,8 +216,6 @@ private Preemptibility(int value) { public static final int NUM_INSTANCES_FIELD_NUMBER = 1; private int numInstances_; /** - * - * *
    * Optional. The number of VM instances in the instance group.
    * For [HA
@@ -256,7 +226,6 @@ private Preemptibility(int value) {
    * 
* * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The numInstances. */ @java.lang.Override @@ -267,45 +236,37 @@ public int getNumInstances() { public static final int INSTANCE_NAMES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList instanceNames_; /** - * - * *
    * Output only. The list of instance names. Dataproc derives the names
    * from `cluster_name`, `num_instances`, and the instance group.
    * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the instanceNames. */ - public com.google.protobuf.ProtocolStringList getInstanceNamesList() { + public com.google.protobuf.ProtocolStringList + getInstanceNamesList() { return instanceNames_; } /** - * - * *
    * Output only. The list of instance names. Dataproc derives the names
    * from `cluster_name`, `num_instances`, and the instance group.
    * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of instanceNames. */ public int getInstanceNamesCount() { return instanceNames_.size(); } /** - * - * *
    * Output only. The list of instance names. Dataproc derives the names
    * from `cluster_name`, `num_instances`, and the instance group.
    * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The instanceNames at the given index. */ @@ -313,27 +274,23 @@ public java.lang.String getInstanceNames(int index) { return instanceNames_.get(index); } /** - * - * *
    * Output only. The list of instance names. Dataproc derives the names
    * from `cluster_name`, `num_instances`, and the instance group.
    * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the instanceNames at the given index. */ - public com.google.protobuf.ByteString getInstanceNamesBytes(int index) { + public com.google.protobuf.ByteString + getInstanceNamesBytes(int index) { return instanceNames_.getByteString(index); } public static final int IMAGE_URI_FIELD_NUMBER = 3; private volatile java.lang.Object imageUri_; /** - * - * *
    * Optional. The Compute Engine image resource used for cluster instances.
    * The URI can represent an image or image family.
@@ -350,7 +307,6 @@ public com.google.protobuf.ByteString getInstanceNamesBytes(int index) {
    * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The imageUri. */ @java.lang.Override @@ -359,15 +315,14 @@ 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; } } /** - * - * *
    * Optional. The Compute Engine image resource used for cluster instances.
    * The URI can represent an image or image family.
@@ -384,15 +339,16 @@ public java.lang.String getImageUri() {
    * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -403,8 +359,6 @@ public com.google.protobuf.ByteString getImageUriBytes() { public static final int MACHINE_TYPE_URI_FIELD_NUMBER = 4; private volatile java.lang.Object machineTypeUri_; /** - * - * *
    * Optional. The Compute Engine machine type used for cluster instances.
    * A full URL, partial URI, or short name are valid. Examples:
@@ -419,7 +373,6 @@ public com.google.protobuf.ByteString getImageUriBytes() {
    * 
* * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The machineTypeUri. */ @java.lang.Override @@ -428,15 +381,14 @@ public java.lang.String getMachineTypeUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineTypeUri_ = s; return s; } } /** - * - * *
    * Optional. The Compute Engine machine type used for cluster instances.
    * A full URL, partial URI, or short name are valid. Examples:
@@ -451,15 +403,16 @@ public java.lang.String getMachineTypeUri() {
    * 
* * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for machineTypeUri. */ @java.lang.Override - public com.google.protobuf.ByteString getMachineTypeUriBytes() { + public com.google.protobuf.ByteString + getMachineTypeUriBytes() { java.lang.Object ref = machineTypeUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); machineTypeUri_ = b; return b; } else { @@ -470,16 +423,11 @@ public com.google.protobuf.ByteString getMachineTypeUriBytes() { public static final int DISK_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.dataproc.v1.DiskConfig diskConfig_; /** - * - * *
    * Optional. Disk option config settings.
    * 
* - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the diskConfig field is set. */ @java.lang.Override @@ -487,34 +435,23 @@ public boolean hasDiskConfig() { return diskConfig_ != null; } /** - * - * *
    * Optional. Disk option config settings.
    * 
* - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The diskConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.DiskConfig getDiskConfig() { - return diskConfig_ == null - ? com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() - : diskConfig_; + return diskConfig_ == null ? com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() : diskConfig_; } /** - * - * *
    * Optional. Disk option config settings.
    * 
* - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.DiskConfigOrBuilder getDiskConfigOrBuilder() { @@ -524,15 +461,12 @@ public com.google.cloud.dataproc.v1.DiskConfigOrBuilder getDiskConfigOrBuilder() public static final int IS_PREEMPTIBLE_FIELD_NUMBER = 6; private boolean isPreemptible_; /** - * - * *
    * Output only. Specifies that this instance group contains preemptible
    * instances.
    * 
* * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The isPreemptible. */ @java.lang.Override @@ -543,8 +477,6 @@ public boolean getIsPreemptible() { public static final int PREEMPTIBILITY_FIELD_NUMBER = 10; private int preemptibility_; /** - * - * *
    * Optional. Specifies the preemptibility of the instance group.
    * The default value for master and worker groups is
@@ -553,19 +485,13 @@ public boolean getIsPreemptible() {
    * `PREEMPTIBLE`.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for preemptibility. */ - @java.lang.Override - public int getPreemptibilityValue() { + @java.lang.Override public int getPreemptibilityValue() { return preemptibility_; } /** - * - * *
    * Optional. Specifies the preemptibility of the instance group.
    * The default value for master and worker groups is
@@ -574,37 +500,25 @@ public int getPreemptibilityValue() {
    * `PREEMPTIBLE`.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The preemptibility. */ - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility getPreemptibility() { + @java.lang.Override public com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility getPreemptibility() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility result = - com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.valueOf(preemptibility_); - return result == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility result = com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.valueOf(preemptibility_); + return result == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.UNRECOGNIZED : result; } public static final int MANAGED_GROUP_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.dataproc.v1.ManagedGroupConfig managedGroupConfig_; /** - * - * *
    * Output only. The config for Compute Engine Instance Group
    * Manager that manages this group.
    * This is only used for preemptible instance groups.
    * 
* - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the managedGroupConfig field is set. */ @java.lang.Override @@ -612,38 +526,27 @@ public boolean hasManagedGroupConfig() { return managedGroupConfig_ != null; } /** - * - * *
    * Output only. The config for Compute Engine Instance Group
    * Manager that manages this group.
    * This is only used for preemptible instance groups.
    * 
* - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The managedGroupConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.ManagedGroupConfig getManagedGroupConfig() { - return managedGroupConfig_ == null - ? com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance() - : managedGroupConfig_; + return managedGroupConfig_ == null ? com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance() : managedGroupConfig_; } /** - * - * *
    * Output only. The config for Compute Engine Instance Group
    * Manager that manages this group.
    * This is only used for preemptible instance groups.
    * 
* - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder getManagedGroupConfigOrBuilder() { @@ -653,81 +556,61 @@ public com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder getManagedGroupC public static final int ACCELERATORS_FIELD_NUMBER = 8; private java.util.List accelerators_; /** - * - * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getAcceleratorsList() { return accelerators_; } /** - * - * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getAcceleratorsOrBuilderList() { return accelerators_; } /** - * - * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getAcceleratorsCount() { return accelerators_.size(); } /** - * - * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.AcceleratorConfig getAccelerators(int index) { return accelerators_.get(index); } /** - * - * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( @@ -738,8 +621,6 @@ public com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOr public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 9; private volatile java.lang.Object minCpuPlatform_; /** - * - * *
    * Optional. Specifies the minimum cpu platform for the Instance Group.
    * See [Dataproc -> Minimum CPU
@@ -747,7 +628,6 @@ public com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOr
    * 
* * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The minCpuPlatform. */ @java.lang.Override @@ -756,15 +636,14 @@ public java.lang.String getMinCpuPlatform() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); minCpuPlatform_ = s; return s; } } /** - * - * *
    * Optional. Specifies the minimum cpu platform for the Instance Group.
    * See [Dataproc -> Minimum CPU
@@ -772,15 +651,16 @@ public java.lang.String getMinCpuPlatform() {
    * 
* * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -789,7 +669,6 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -801,7 +680,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 (numInstances_ != 0) { output.writeInt32(1, numInstances_); } @@ -829,10 +709,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, minCpuPlatform_); } - if (preemptibility_ - != com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility - .PREEMPTIBILITY_UNSPECIFIED - .getNumber()) { + if (preemptibility_ != com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.PREEMPTIBILITY_UNSPECIFIED.getNumber()) { output.writeEnum(10, preemptibility_); } getUnknownFields().writeTo(output); @@ -845,7 +722,8 @@ public int getSerializedSize() { size = 0; if (numInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, numInstances_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, numInstances_); } { int dataSize = 0; @@ -862,25 +740,27 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, machineTypeUri_); } if (diskConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDiskConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getDiskConfig()); } if (isPreemptible_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, isPreemptible_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, isPreemptible_); } if (managedGroupConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getManagedGroupConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getManagedGroupConfig()); } for (int i = 0; i < accelerators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, accelerators_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, accelerators_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, minCpuPlatform_); } - if (preemptibility_ - != com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility - .PREEMPTIBILITY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, preemptibility_); + if (preemptibility_ != com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.PREEMPTIBILITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, preemptibility_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -890,30 +770,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.InstanceGroupConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.InstanceGroupConfig other = - (com.google.cloud.dataproc.v1.InstanceGroupConfig) obj; + com.google.cloud.dataproc.v1.InstanceGroupConfig other = (com.google.cloud.dataproc.v1.InstanceGroupConfig) obj; - if (getNumInstances() != other.getNumInstances()) return false; - if (!getInstanceNamesList().equals(other.getInstanceNamesList())) return false; - if (!getImageUri().equals(other.getImageUri())) return false; - if (!getMachineTypeUri().equals(other.getMachineTypeUri())) return false; + if (getNumInstances() + != other.getNumInstances()) return false; + if (!getInstanceNamesList() + .equals(other.getInstanceNamesList())) return false; + if (!getImageUri() + .equals(other.getImageUri())) return false; + if (!getMachineTypeUri() + .equals(other.getMachineTypeUri())) return false; if (hasDiskConfig() != other.hasDiskConfig()) return false; if (hasDiskConfig()) { - if (!getDiskConfig().equals(other.getDiskConfig())) return false; + if (!getDiskConfig() + .equals(other.getDiskConfig())) return false; } - if (getIsPreemptible() != other.getIsPreemptible()) return false; + if (getIsPreemptible() + != other.getIsPreemptible()) return false; if (preemptibility_ != other.preemptibility_) return false; if (hasManagedGroupConfig() != other.hasManagedGroupConfig()) return false; if (hasManagedGroupConfig()) { - if (!getManagedGroupConfig().equals(other.getManagedGroupConfig())) return false; + if (!getManagedGroupConfig() + .equals(other.getManagedGroupConfig())) return false; } - if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; - if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false; + if (!getAcceleratorsList() + .equals(other.getAcceleratorsList())) return false; + if (!getMinCpuPlatform() + .equals(other.getMinCpuPlatform())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -940,7 +828,8 @@ public int hashCode() { hash = (53 * hash) + getDiskConfig().hashCode(); } hash = (37 * hash) + IS_PREEMPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPreemptible()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsPreemptible()); hash = (37 * hash) + PREEMPTIBILITY_FIELD_NUMBER; hash = (53 * hash) + preemptibility_; if (hasManagedGroupConfig()) { @@ -958,104 +847,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.InstanceGroupConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 config settings for Compute Engine resources in
    * an instance group, such as a master or worker group.
@@ -1063,32 +945,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.InstanceGroupConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.InstanceGroupConfig)
       com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.InstanceGroupConfig.class,
-              com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder.class);
+              com.google.cloud.dataproc.v1.InstanceGroupConfig.class, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1129,9 +1012,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1150,8 +1033,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfig build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.InstanceGroupConfig buildPartial() {
-      com.google.cloud.dataproc.v1.InstanceGroupConfig result =
-          new com.google.cloud.dataproc.v1.InstanceGroupConfig(this);
+      com.google.cloud.dataproc.v1.InstanceGroupConfig result = new com.google.cloud.dataproc.v1.InstanceGroupConfig(this);
       int from_bitField0_ = bitField0_;
       result.numInstances_ = numInstances_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -1191,39 +1073,38 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.InstanceGroupConfig) {
-        return mergeFrom((com.google.cloud.dataproc.v1.InstanceGroupConfig) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.InstanceGroupConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1231,8 +1112,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.InstanceGroupConfig other) {
-      if (other == com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()) return this;
       if (other.getNumInstances() != 0) {
         setNumInstances(other.getNumInstances());
       }
@@ -1284,10 +1164,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.InstanceGroupConfig other)
             acceleratorsBuilder_ = null;
             accelerators_ = other.accelerators_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            acceleratorsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getAcceleratorsFieldBuilder()
-                    : null;
+            acceleratorsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getAcceleratorsFieldBuilder() : null;
           } else {
             acceleratorsBuilder_.addAllMessages(other.accelerators_);
           }
@@ -1323,82 +1202,75 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                numInstances_ = input.readInt32();
-
-                break;
-              } // case 8
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureInstanceNamesIsMutable();
-                instanceNames_.add(s);
-                break;
-              } // case 18
-            case 26:
-              {
-                imageUri_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 26
-            case 34:
-              {
-                machineTypeUri_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getDiskConfigFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 42
-            case 48:
-              {
-                isPreemptible_ = input.readBool();
-
-                break;
-              } // case 48
-            case 58:
-              {
-                input.readMessage(
-                    getManagedGroupConfigFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 58
-            case 66:
-              {
-                com.google.cloud.dataproc.v1.AcceleratorConfig m =
-                    input.readMessage(
-                        com.google.cloud.dataproc.v1.AcceleratorConfig.parser(), extensionRegistry);
-                if (acceleratorsBuilder_ == null) {
-                  ensureAcceleratorsIsMutable();
-                  accelerators_.add(m);
-                } else {
-                  acceleratorsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 66
-            case 74:
-              {
-                minCpuPlatform_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 74
-            case 80:
-              {
-                preemptibility_ = input.readEnum();
-
-                break;
-              } // case 80
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              numInstances_ = input.readInt32();
+
+              break;
+            } // case 8
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureInstanceNamesIsMutable();
+              instanceNames_.add(s);
+              break;
+            } // case 18
+            case 26: {
+              imageUri_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 26
+            case 34: {
+              machineTypeUri_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getDiskConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 42
+            case 48: {
+              isPreemptible_ = input.readBool();
+
+              break;
+            } // case 48
+            case 58: {
+              input.readMessage(
+                  getManagedGroupConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 58
+            case 66: {
+              com.google.cloud.dataproc.v1.AcceleratorConfig m =
+                  input.readMessage(
+                      com.google.cloud.dataproc.v1.AcceleratorConfig.parser(),
+                      extensionRegistry);
+              if (acceleratorsBuilder_ == null) {
+                ensureAcceleratorsIsMutable();
+                accelerators_.add(m);
+              } else {
+                acceleratorsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 66
+            case 74: {
+              minCpuPlatform_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 74
+            case 80: {
+              preemptibility_ = input.readEnum();
+
+              break;
+            } // case 80
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1408,13 +1280,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private int numInstances_;
+    private int numInstances_ ;
     /**
-     *
-     *
      * 
      * Optional. The number of VM instances in the instance group.
      * For [HA
@@ -1425,7 +1294,6 @@ public Builder mergeFrom(
      * 
* * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The numInstances. */ @java.lang.Override @@ -1433,8 +1301,6 @@ public int getNumInstances() { return numInstances_; } /** - * - * *
      * Optional. The number of VM instances in the instance group.
      * For [HA
@@ -1445,19 +1311,16 @@ public int getNumInstances() {
      * 
* * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The numInstances to set. * @return This builder for chaining. */ public Builder setNumInstances(int value) { - + numInstances_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The number of VM instances in the instance group.
      * For [HA
@@ -1468,65 +1331,54 @@ public Builder setNumInstances(int value) {
      * 
* * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearNumInstances() { - + numInstances_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList instanceNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList instanceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureInstanceNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { instanceNames_ = new com.google.protobuf.LazyStringArrayList(instanceNames_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Output only. The list of instance names. Dataproc derives the names
      * from `cluster_name`, `num_instances`, and the instance group.
      * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the instanceNames. */ - public com.google.protobuf.ProtocolStringList getInstanceNamesList() { + public com.google.protobuf.ProtocolStringList + getInstanceNamesList() { return instanceNames_.getUnmodifiableView(); } /** - * - * *
      * Output only. The list of instance names. Dataproc derives the names
      * from `cluster_name`, `num_instances`, and the instance group.
      * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of instanceNames. */ public int getInstanceNamesCount() { return instanceNames_.size(); } /** - * - * *
      * Output only. The list of instance names. Dataproc derives the names
      * from `cluster_name`, `num_instances`, and the instance group.
      * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The instanceNames at the given index. */ @@ -1534,95 +1386,85 @@ public java.lang.String getInstanceNames(int index) { return instanceNames_.get(index); } /** - * - * *
      * Output only. The list of instance names. Dataproc derives the names
      * from `cluster_name`, `num_instances`, and the instance group.
      * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the instanceNames at the given index. */ - public com.google.protobuf.ByteString getInstanceNamesBytes(int index) { + public com.google.protobuf.ByteString + getInstanceNamesBytes(int index) { return instanceNames_.getByteString(index); } /** - * - * *
      * Output only. The list of instance names. Dataproc derives the names
      * from `cluster_name`, `num_instances`, and the instance group.
      * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index to set the value at. * @param value The instanceNames to set. * @return This builder for chaining. */ - public Builder setInstanceNames(int index, java.lang.String value) { + public Builder setInstanceNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInstanceNamesIsMutable(); + throw new NullPointerException(); + } + ensureInstanceNamesIsMutable(); instanceNames_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. The list of instance names. Dataproc derives the names
      * from `cluster_name`, `num_instances`, and the instance group.
      * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The instanceNames to add. * @return This builder for chaining. */ - public Builder addInstanceNames(java.lang.String value) { + public Builder addInstanceNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInstanceNamesIsMutable(); + throw new NullPointerException(); + } + ensureInstanceNamesIsMutable(); instanceNames_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. The list of instance names. Dataproc derives the names
      * from `cluster_name`, `num_instances`, and the instance group.
      * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param values The instanceNames to add. * @return This builder for chaining. */ - public Builder addAllInstanceNames(java.lang.Iterable values) { + public Builder addAllInstanceNames( + java.lang.Iterable values) { ensureInstanceNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instanceNames_); onChanged(); return this; } /** - * - * *
      * Output only. The list of instance names. Dataproc derives the names
      * from `cluster_name`, `num_instances`, and the instance group.
      * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearInstanceNames() { @@ -1632,23 +1474,21 @@ public Builder clearInstanceNames() { return this; } /** - * - * *
      * Output only. The list of instance names. Dataproc derives the names
      * from `cluster_name`, `num_instances`, and the instance group.
      * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes of the instanceNames to add. * @return This builder for chaining. */ - public Builder addInstanceNamesBytes(com.google.protobuf.ByteString value) { + public Builder addInstanceNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureInstanceNamesIsMutable(); instanceNames_.add(value); onChanged(); @@ -1657,8 +1497,6 @@ public Builder addInstanceNamesBytes(com.google.protobuf.ByteString value) { private java.lang.Object imageUri_ = ""; /** - * - * *
      * Optional. The Compute Engine image resource used for cluster instances.
      * The URI can represent an image or image family.
@@ -1675,13 +1513,13 @@ public Builder addInstanceNamesBytes(com.google.protobuf.ByteString value) {
      * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1690,8 +1528,6 @@ public java.lang.String getImageUri() { } } /** - * - * *
      * Optional. The Compute Engine image resource used for cluster instances.
      * The URI can represent an image or image family.
@@ -1708,14 +1544,15 @@ public java.lang.String getImageUri() {
      * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1723,8 +1560,6 @@ public com.google.protobuf.ByteString getImageUriBytes() { } } /** - * - * *
      * Optional. The Compute Engine image resource used for cluster instances.
      * The URI can represent an image or image family.
@@ -1741,22 +1576,20 @@ public com.google.protobuf.ByteString getImageUriBytes() {
      * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. The Compute Engine image resource used for cluster instances.
      * The URI can represent an image or image family.
@@ -1773,18 +1606,15 @@ public Builder setImageUri(java.lang.String value) {
      * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearImageUri() { - + imageUri_ = getDefaultInstance().getImageUri(); onChanged(); return this; } /** - * - * *
      * Optional. The Compute Engine image resource used for cluster instances.
      * The URI can represent an image or image family.
@@ -1801,16 +1631,16 @@ public Builder clearImageUri() {
      * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1818,8 +1648,6 @@ public Builder setImageUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object machineTypeUri_ = ""; /** - * - * *
      * Optional. The Compute Engine machine type used for cluster instances.
      * A full URL, partial URI, or short name are valid. Examples:
@@ -1834,13 +1662,13 @@ public Builder setImageUriBytes(com.google.protobuf.ByteString value) {
      * 
* * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The machineTypeUri. */ public java.lang.String getMachineTypeUri() { java.lang.Object ref = machineTypeUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineTypeUri_ = s; return s; @@ -1849,8 +1677,6 @@ public java.lang.String getMachineTypeUri() { } } /** - * - * *
      * Optional. The Compute Engine machine type used for cluster instances.
      * A full URL, partial URI, or short name are valid. Examples:
@@ -1865,14 +1691,15 @@ public java.lang.String getMachineTypeUri() {
      * 
* * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for machineTypeUri. */ - public com.google.protobuf.ByteString getMachineTypeUriBytes() { + public com.google.protobuf.ByteString + getMachineTypeUriBytes() { java.lang.Object ref = machineTypeUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); machineTypeUri_ = b; return b; } else { @@ -1880,8 +1707,6 @@ public com.google.protobuf.ByteString getMachineTypeUriBytes() { } } /** - * - * *
      * Optional. The Compute Engine machine type used for cluster instances.
      * A full URL, partial URI, or short name are valid. Examples:
@@ -1896,22 +1721,20 @@ public com.google.protobuf.ByteString getMachineTypeUriBytes() {
      * 
* * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The machineTypeUri to set. * @return This builder for chaining. */ - public Builder setMachineTypeUri(java.lang.String value) { + public Builder setMachineTypeUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + machineTypeUri_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Compute Engine machine type used for cluster instances.
      * A full URL, partial URI, or short name are valid. Examples:
@@ -1926,18 +1749,15 @@ public Builder setMachineTypeUri(java.lang.String value) {
      * 
* * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMachineTypeUri() { - + machineTypeUri_ = getDefaultInstance().getMachineTypeUri(); onChanged(); return this; } /** - * - * *
      * Optional. The Compute Engine machine type used for cluster instances.
      * A full URL, partial URI, or short name are valid. Examples:
@@ -1952,16 +1772,16 @@ public Builder clearMachineTypeUri() {
      * 
* * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for machineTypeUri to set. * @return This builder for chaining. */ - public Builder setMachineTypeUriBytes(com.google.protobuf.ByteString value) { + public Builder setMachineTypeUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineTypeUri_ = value; onChanged(); return this; @@ -1969,58 +1789,39 @@ public Builder setMachineTypeUriBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.DiskConfig diskConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DiskConfig, - com.google.cloud.dataproc.v1.DiskConfig.Builder, - com.google.cloud.dataproc.v1.DiskConfigOrBuilder> - diskConfigBuilder_; + com.google.cloud.dataproc.v1.DiskConfig, com.google.cloud.dataproc.v1.DiskConfig.Builder, com.google.cloud.dataproc.v1.DiskConfigOrBuilder> diskConfigBuilder_; /** - * - * *
      * Optional. Disk option config settings.
      * 
* - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the diskConfig field is set. */ public boolean hasDiskConfig() { return diskConfigBuilder_ != null || diskConfig_ != null; } /** - * - * *
      * Optional. Disk option config settings.
      * 
* - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The diskConfig. */ public com.google.cloud.dataproc.v1.DiskConfig getDiskConfig() { if (diskConfigBuilder_ == null) { - return diskConfig_ == null - ? com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() - : diskConfig_; + return diskConfig_ == null ? com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() : diskConfig_; } else { return diskConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Disk option config settings.
      * 
* - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDiskConfig(com.google.cloud.dataproc.v1.DiskConfig value) { if (diskConfigBuilder_ == null) { @@ -2036,17 +1837,14 @@ public Builder setDiskConfig(com.google.cloud.dataproc.v1.DiskConfig value) { return this; } /** - * - * *
      * Optional. Disk option config settings.
      * 
* - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDiskConfig(com.google.cloud.dataproc.v1.DiskConfig.Builder builderForValue) { + public Builder setDiskConfig( + com.google.cloud.dataproc.v1.DiskConfig.Builder builderForValue) { if (diskConfigBuilder_ == null) { diskConfig_ = builderForValue.build(); onChanged(); @@ -2057,23 +1855,17 @@ public Builder setDiskConfig(com.google.cloud.dataproc.v1.DiskConfig.Builder bui return this; } /** - * - * *
      * Optional. Disk option config settings.
      * 
* - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeDiskConfig(com.google.cloud.dataproc.v1.DiskConfig value) { if (diskConfigBuilder_ == null) { if (diskConfig_ != null) { diskConfig_ = - com.google.cloud.dataproc.v1.DiskConfig.newBuilder(diskConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.DiskConfig.newBuilder(diskConfig_).mergeFrom(value).buildPartial(); } else { diskConfig_ = value; } @@ -2085,15 +1877,11 @@ public Builder mergeDiskConfig(com.google.cloud.dataproc.v1.DiskConfig value) { return this; } /** - * - * *
      * Optional. Disk option config settings.
      * 
* - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDiskConfig() { if (diskConfigBuilder_ == null) { @@ -2107,80 +1895,61 @@ public Builder clearDiskConfig() { return this; } /** - * - * *
      * Optional. Disk option config settings.
      * 
* - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.DiskConfig.Builder getDiskConfigBuilder() { - + onChanged(); return getDiskConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Disk option config settings.
      * 
* - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.DiskConfigOrBuilder getDiskConfigOrBuilder() { if (diskConfigBuilder_ != null) { return diskConfigBuilder_.getMessageOrBuilder(); } else { - return diskConfig_ == null - ? com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() - : diskConfig_; + return diskConfig_ == null ? + com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() : diskConfig_; } } /** - * - * *
      * Optional. Disk option config settings.
      * 
* - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DiskConfig, - com.google.cloud.dataproc.v1.DiskConfig.Builder, - com.google.cloud.dataproc.v1.DiskConfigOrBuilder> + com.google.cloud.dataproc.v1.DiskConfig, com.google.cloud.dataproc.v1.DiskConfig.Builder, com.google.cloud.dataproc.v1.DiskConfigOrBuilder> getDiskConfigFieldBuilder() { if (diskConfigBuilder_ == null) { - diskConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DiskConfig, - com.google.cloud.dataproc.v1.DiskConfig.Builder, - com.google.cloud.dataproc.v1.DiskConfigOrBuilder>( - getDiskConfig(), getParentForChildren(), isClean()); + diskConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.DiskConfig, com.google.cloud.dataproc.v1.DiskConfig.Builder, com.google.cloud.dataproc.v1.DiskConfigOrBuilder>( + getDiskConfig(), + getParentForChildren(), + isClean()); diskConfig_ = null; } return diskConfigBuilder_; } - private boolean isPreemptible_; + private boolean isPreemptible_ ; /** - * - * *
      * Output only. Specifies that this instance group contains preemptible
      * instances.
      * 
* * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The isPreemptible. */ @java.lang.Override @@ -2188,38 +1957,32 @@ public boolean getIsPreemptible() { return isPreemptible_; } /** - * - * *
      * Output only. Specifies that this instance group contains preemptible
      * instances.
      * 
* * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The isPreemptible to set. * @return This builder for chaining. */ public Builder setIsPreemptible(boolean value) { - + isPreemptible_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Specifies that this instance group contains preemptible
      * instances.
      * 
* * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearIsPreemptible() { - + isPreemptible_ = false; onChanged(); return this; @@ -2227,8 +1990,6 @@ public Builder clearIsPreemptible() { private int preemptibility_ = 0; /** - * - * *
      * Optional. Specifies the preemptibility of the instance group.
      * The default value for master and worker groups is
@@ -2237,19 +1998,13 @@ public Builder clearIsPreemptible() {
      * `PREEMPTIBLE`.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for preemptibility. */ - @java.lang.Override - public int getPreemptibilityValue() { + @java.lang.Override public int getPreemptibilityValue() { return preemptibility_; } /** - * - * *
      * Optional. Specifies the preemptibility of the instance group.
      * The default value for master and worker groups is
@@ -2258,22 +2013,17 @@ public int getPreemptibilityValue() {
      * `PREEMPTIBLE`.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for preemptibility to set. * @return This builder for chaining. */ public Builder setPreemptibilityValue(int value) { - + preemptibility_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Specifies the preemptibility of the instance group.
      * The default value for master and worker groups is
@@ -2282,24 +2032,16 @@ public Builder setPreemptibilityValue(int value) {
      * `PREEMPTIBLE`.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The preemptibility. */ @java.lang.Override public com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility getPreemptibility() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility result = - com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.valueOf(preemptibility_); - return result == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility result = com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.valueOf(preemptibility_); + return result == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Specifies the preemptibility of the instance group.
      * The default value for master and worker groups is
@@ -2308,26 +2050,20 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility getPreemp
      * `PREEMPTIBLE`.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param value The preemptibility to set. * @return This builder for chaining. */ - public Builder setPreemptibility( - com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility value) { + public Builder setPreemptibility(com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility value) { if (value == null) { throw new NullPointerException(); } - + preemptibility_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. Specifies the preemptibility of the instance group.
      * The default value for master and worker groups is
@@ -2336,14 +2072,11 @@ public Builder setPreemptibility(
      * `PREEMPTIBLE`.
      * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearPreemptibility() { - + preemptibility_ = 0; onChanged(); return this; @@ -2351,64 +2084,45 @@ public Builder clearPreemptibility() { private com.google.cloud.dataproc.v1.ManagedGroupConfig managedGroupConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ManagedGroupConfig, - com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder, - com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder> - managedGroupConfigBuilder_; + com.google.cloud.dataproc.v1.ManagedGroupConfig, com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder, com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder> managedGroupConfigBuilder_; /** - * - * *
      * Output only. The config for Compute Engine Instance Group
      * Manager that manages this group.
      * This is only used for preemptible instance groups.
      * 
* - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the managedGroupConfig field is set. */ public boolean hasManagedGroupConfig() { return managedGroupConfigBuilder_ != null || managedGroupConfig_ != null; } /** - * - * *
      * Output only. The config for Compute Engine Instance Group
      * Manager that manages this group.
      * This is only used for preemptible instance groups.
      * 
* - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The managedGroupConfig. */ public com.google.cloud.dataproc.v1.ManagedGroupConfig getManagedGroupConfig() { if (managedGroupConfigBuilder_ == null) { - return managedGroupConfig_ == null - ? com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance() - : managedGroupConfig_; + return managedGroupConfig_ == null ? com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance() : managedGroupConfig_; } else { return managedGroupConfigBuilder_.getMessage(); } } /** - * - * *
      * Output only. The config for Compute Engine Instance Group
      * Manager that manages this group.
      * This is only used for preemptible instance groups.
      * 
* - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setManagedGroupConfig(com.google.cloud.dataproc.v1.ManagedGroupConfig value) { if (managedGroupConfigBuilder_ == null) { @@ -2424,17 +2138,13 @@ public Builder setManagedGroupConfig(com.google.cloud.dataproc.v1.ManagedGroupCo return this; } /** - * - * *
      * Output only. The config for Compute Engine Instance Group
      * Manager that manages this group.
      * This is only used for preemptible instance groups.
      * 
* - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setManagedGroupConfig( com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder builderForValue) { @@ -2448,25 +2158,19 @@ public Builder setManagedGroupConfig( return this; } /** - * - * *
      * Output only. The config for Compute Engine Instance Group
      * Manager that manages this group.
      * This is only used for preemptible instance groups.
      * 
* - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeManagedGroupConfig(com.google.cloud.dataproc.v1.ManagedGroupConfig value) { if (managedGroupConfigBuilder_ == null) { if (managedGroupConfig_ != null) { managedGroupConfig_ = - com.google.cloud.dataproc.v1.ManagedGroupConfig.newBuilder(managedGroupConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.ManagedGroupConfig.newBuilder(managedGroupConfig_).mergeFrom(value).buildPartial(); } else { managedGroupConfig_ = value; } @@ -2478,17 +2182,13 @@ public Builder mergeManagedGroupConfig(com.google.cloud.dataproc.v1.ManagedGroup return this; } /** - * - * *
      * Output only. The config for Compute Engine Instance Group
      * Manager that manages this group.
      * This is only used for preemptible instance groups.
      * 
* - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearManagedGroupConfig() { if (managedGroupConfigBuilder_ == null) { @@ -2502,104 +2202,78 @@ public Builder clearManagedGroupConfig() { return this; } /** - * - * *
      * Output only. The config for Compute Engine Instance Group
      * Manager that manages this group.
      * This is only used for preemptible instance groups.
      * 
* - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder getManagedGroupConfigBuilder() { - + onChanged(); return getManagedGroupConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The config for Compute Engine Instance Group
      * Manager that manages this group.
      * This is only used for preemptible instance groups.
      * 
* - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder - getManagedGroupConfigOrBuilder() { + public com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder getManagedGroupConfigOrBuilder() { if (managedGroupConfigBuilder_ != null) { return managedGroupConfigBuilder_.getMessageOrBuilder(); } else { - return managedGroupConfig_ == null - ? com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance() - : managedGroupConfig_; + return managedGroupConfig_ == null ? + com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance() : managedGroupConfig_; } } /** - * - * *
      * Output only. The config for Compute Engine Instance Group
      * Manager that manages this group.
      * This is only used for preemptible instance groups.
      * 
* - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ManagedGroupConfig, - com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder, - com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder> + com.google.cloud.dataproc.v1.ManagedGroupConfig, com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder, com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder> getManagedGroupConfigFieldBuilder() { if (managedGroupConfigBuilder_ == null) { - managedGroupConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ManagedGroupConfig, - com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder, - com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder>( - getManagedGroupConfig(), getParentForChildren(), isClean()); + managedGroupConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ManagedGroupConfig, com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder, com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder>( + getManagedGroupConfig(), + getParentForChildren(), + isClean()); managedGroupConfig_ = null; } return managedGroupConfigBuilder_; } private java.util.List accelerators_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAcceleratorsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - accelerators_ = - new java.util.ArrayList(accelerators_); + accelerators_ = new java.util.ArrayList(accelerators_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AcceleratorConfig, - com.google.cloud.dataproc.v1.AcceleratorConfig.Builder, - com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder> - acceleratorsBuilder_; + com.google.cloud.dataproc.v1.AcceleratorConfig, com.google.cloud.dataproc.v1.AcceleratorConfig.Builder, com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder> acceleratorsBuilder_; /** - * - * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getAcceleratorsList() { if (acceleratorsBuilder_ == null) { @@ -2609,16 +2283,12 @@ public java.util.List getAcceler } } /** - * - * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public int getAcceleratorsCount() { if (acceleratorsBuilder_ == null) { @@ -2628,16 +2298,12 @@ public int getAcceleratorsCount() { } } /** - * - * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.AcceleratorConfig getAccelerators(int index) { if (acceleratorsBuilder_ == null) { @@ -2647,16 +2313,12 @@ public com.google.cloud.dataproc.v1.AcceleratorConfig getAccelerators(int index) } } /** - * - * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAccelerators( int index, com.google.cloud.dataproc.v1.AcceleratorConfig value) { @@ -2673,16 +2335,12 @@ public Builder setAccelerators( return this; } /** - * - * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAccelerators( int index, com.google.cloud.dataproc.v1.AcceleratorConfig.Builder builderForValue) { @@ -2696,16 +2354,12 @@ public Builder setAccelerators( return this; } /** - * - * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAccelerators(com.google.cloud.dataproc.v1.AcceleratorConfig value) { if (acceleratorsBuilder_ == null) { @@ -2721,16 +2375,12 @@ public Builder addAccelerators(com.google.cloud.dataproc.v1.AcceleratorConfig va return this; } /** - * - * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAccelerators( int index, com.google.cloud.dataproc.v1.AcceleratorConfig value) { @@ -2747,16 +2397,12 @@ public Builder addAccelerators( return this; } /** - * - * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAccelerators( com.google.cloud.dataproc.v1.AcceleratorConfig.Builder builderForValue) { @@ -2770,16 +2416,12 @@ public Builder addAccelerators( return this; } /** - * - * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAccelerators( int index, com.google.cloud.dataproc.v1.AcceleratorConfig.Builder builderForValue) { @@ -2793,22 +2435,19 @@ public Builder addAccelerators( return this; } /** - * - * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllAccelerators( 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); @@ -2816,16 +2455,12 @@ public Builder addAllAccelerators( return this; } /** - * - * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAccelerators() { if (acceleratorsBuilder_ == null) { @@ -2838,16 +2473,12 @@ public Builder clearAccelerators() { return this; } /** - * - * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeAccelerators(int index) { if (acceleratorsBuilder_ == null) { @@ -2860,55 +2491,42 @@ public Builder removeAccelerators(int index) { return this; } /** - * - * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.AcceleratorConfig.Builder getAcceleratorsBuilder( int index) { return getAcceleratorsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( int index) { if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); - } else { + return accelerators_.get(index); } else { return acceleratorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getAcceleratorsOrBuilderList() { + public java.util.List + getAcceleratorsOrBuilderList() { if (acceleratorsBuilder_ != null) { return acceleratorsBuilder_.getMessageOrBuilderList(); } else { @@ -2916,67 +2534,52 @@ public com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOr } } /** - * - * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.AcceleratorConfig.Builder addAcceleratorsBuilder() { - return getAcceleratorsFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.AcceleratorConfig.getDefaultInstance()); + return getAcceleratorsFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.AcceleratorConfig.getDefaultInstance()); } /** - * - * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.AcceleratorConfig.Builder addAcceleratorsBuilder( int index) { - return getAcceleratorsFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.AcceleratorConfig.getDefaultInstance()); + return getAcceleratorsFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.AcceleratorConfig.getDefaultInstance()); } /** - * - * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getAcceleratorsBuilderList() { + public java.util.List + getAcceleratorsBuilderList() { return getAcceleratorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AcceleratorConfig, - com.google.cloud.dataproc.v1.AcceleratorConfig.Builder, - com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder> + com.google.cloud.dataproc.v1.AcceleratorConfig, com.google.cloud.dataproc.v1.AcceleratorConfig.Builder, com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder> getAcceleratorsFieldBuilder() { if (acceleratorsBuilder_ == null) { - acceleratorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AcceleratorConfig, - com.google.cloud.dataproc.v1.AcceleratorConfig.Builder, - com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder>( - accelerators_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + acceleratorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.AcceleratorConfig, com.google.cloud.dataproc.v1.AcceleratorConfig.Builder, com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder>( + accelerators_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); accelerators_ = null; } return acceleratorsBuilder_; @@ -2984,8 +2587,6 @@ public com.google.cloud.dataproc.v1.AcceleratorConfig.Builder addAcceleratorsBui private java.lang.Object minCpuPlatform_ = ""; /** - * - * *
      * Optional. Specifies the minimum cpu platform for the Instance Group.
      * See [Dataproc -> Minimum CPU
@@ -2993,13 +2594,13 @@ public com.google.cloud.dataproc.v1.AcceleratorConfig.Builder addAcceleratorsBui
      * 
* * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -3008,8 +2609,6 @@ public java.lang.String getMinCpuPlatform() { } } /** - * - * *
      * Optional. Specifies the minimum cpu platform for the Instance Group.
      * See [Dataproc -> Minimum CPU
@@ -3017,14 +2616,15 @@ public java.lang.String getMinCpuPlatform() {
      * 
* * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -3032,8 +2632,6 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { } } /** - * - * *
      * Optional. Specifies the minimum cpu platform for the Instance Group.
      * See [Dataproc -> Minimum CPU
@@ -3041,22 +2639,20 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() {
      * 
* * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Specifies the minimum cpu platform for the Instance Group.
      * See [Dataproc -> Minimum CPU
@@ -3064,18 +2660,15 @@ public Builder setMinCpuPlatform(java.lang.String value) {
      * 
* * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMinCpuPlatform() { - + minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); onChanged(); return this; } /** - * - * *
      * Optional. Specifies the minimum cpu platform for the Instance Group.
      * See [Dataproc -> Minimum CPU
@@ -3083,23 +2676,23 @@ public Builder clearMinCpuPlatform() {
      * 
* * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3109,12 +2702,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.InstanceGroupConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.InstanceGroupConfig) private static final com.google.cloud.dataproc.v1.InstanceGroupConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.InstanceGroupConfig(); } @@ -3123,27 +2716,27 @@ public static com.google.cloud.dataproc.v1.InstanceGroupConfig getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstanceGroupConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceGroupConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3158,4 +2751,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.InstanceGroupConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java similarity index 75% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java index 77f65b6d89a0..5a72056930dc 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface InstanceGroupConfigOrBuilder - extends +public interface InstanceGroupConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.InstanceGroupConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The number of VM instances in the instance group.
    * For [HA
@@ -36,69 +18,56 @@ public interface InstanceGroupConfigOrBuilder
    * 
* * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The numInstances. */ int getNumInstances(); /** - * - * *
    * Output only. The list of instance names. Dataproc derives the names
    * from `cluster_name`, `num_instances`, and the instance group.
    * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the instanceNames. */ - java.util.List getInstanceNamesList(); + java.util.List + getInstanceNamesList(); /** - * - * *
    * Output only. The list of instance names. Dataproc derives the names
    * from `cluster_name`, `num_instances`, and the instance group.
    * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of instanceNames. */ int getInstanceNamesCount(); /** - * - * *
    * Output only. The list of instance names. Dataproc derives the names
    * from `cluster_name`, `num_instances`, and the instance group.
    * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The instanceNames at the given index. */ java.lang.String getInstanceNames(int index); /** - * - * *
    * Output only. The list of instance names. Dataproc derives the names
    * from `cluster_name`, `num_instances`, and the instance group.
    * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the instanceNames at the given index. */ - com.google.protobuf.ByteString getInstanceNamesBytes(int index); + com.google.protobuf.ByteString + getInstanceNamesBytes(int index); /** - * - * *
    * Optional. The Compute Engine image resource used for cluster instances.
    * The URI can represent an image or image family.
@@ -115,13 +84,10 @@ public interface InstanceGroupConfigOrBuilder
    * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The imageUri. */ java.lang.String getImageUri(); /** - * - * *
    * Optional. The Compute Engine image resource used for cluster instances.
    * The URI can represent an image or image family.
@@ -138,14 +104,12 @@ public interface InstanceGroupConfigOrBuilder
    * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for imageUri. */ - com.google.protobuf.ByteString getImageUriBytes(); + com.google.protobuf.ByteString + getImageUriBytes(); /** - * - * *
    * Optional. The Compute Engine machine type used for cluster instances.
    * A full URL, partial URI, or short name are valid. Examples:
@@ -160,13 +124,10 @@ public interface InstanceGroupConfigOrBuilder
    * 
* * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The machineTypeUri. */ java.lang.String getMachineTypeUri(); /** - * - * *
    * Optional. The Compute Engine machine type used for cluster instances.
    * A full URL, partial URI, or short name are valid. Examples:
@@ -181,69 +142,50 @@ public interface InstanceGroupConfigOrBuilder
    * 
* * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for machineTypeUri. */ - com.google.protobuf.ByteString getMachineTypeUriBytes(); + com.google.protobuf.ByteString + getMachineTypeUriBytes(); /** - * - * *
    * Optional. Disk option config settings.
    * 
* - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the diskConfig field is set. */ boolean hasDiskConfig(); /** - * - * *
    * Optional. Disk option config settings.
    * 
* - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The diskConfig. */ com.google.cloud.dataproc.v1.DiskConfig getDiskConfig(); /** - * - * *
    * Optional. Disk option config settings.
    * 
* - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.DiskConfigOrBuilder getDiskConfigOrBuilder(); /** - * - * *
    * Output only. Specifies that this instance group contains preemptible
    * instances.
    * 
* * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The isPreemptible. */ boolean getIsPreemptible(); /** - * - * *
    * Optional. Specifies the preemptibility of the instance group.
    * The default value for master and worker groups is
@@ -252,16 +194,11 @@ public interface InstanceGroupConfigOrBuilder
    * `PREEMPTIBLE`.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for preemptibility. */ int getPreemptibilityValue(); /** - * - * *
    * Optional. Specifies the preemptibility of the instance group.
    * The default value for master and worker groups is
@@ -270,131 +207,94 @@ public interface InstanceGroupConfigOrBuilder
    * `PREEMPTIBLE`.
    * 
* - * - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The preemptibility. */ com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility getPreemptibility(); /** - * - * *
    * Output only. The config for Compute Engine Instance Group
    * Manager that manages this group.
    * This is only used for preemptible instance groups.
    * 
* - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the managedGroupConfig field is set. */ boolean hasManagedGroupConfig(); /** - * - * *
    * Output only. The config for Compute Engine Instance Group
    * Manager that manages this group.
    * This is only used for preemptible instance groups.
    * 
* - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The managedGroupConfig. */ com.google.cloud.dataproc.v1.ManagedGroupConfig getManagedGroupConfig(); /** - * - * *
    * Output only. The config for Compute Engine Instance Group
    * Manager that manages this group.
    * This is only used for preemptible instance groups.
    * 
* - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder getManagedGroupConfigOrBuilder(); /** - * - * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getAcceleratorsList(); + java.util.List + getAcceleratorsList(); /** - * - * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.AcceleratorConfig getAccelerators(int index); /** - * - * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ int getAcceleratorsCount(); /** - * - * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getAcceleratorsOrBuilderList(); /** - * - * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index); + com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( + int index); /** - * - * *
    * Optional. Specifies the minimum cpu platform for the Instance Group.
    * See [Dataproc -> Minimum CPU
@@ -402,13 +302,10 @@ public interface InstanceGroupConfigOrBuilder
    * 
* * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The minCpuPlatform. */ java.lang.String getMinCpuPlatform(); /** - * - * *
    * Optional. Specifies the minimum cpu platform for the Instance Group.
    * See [Dataproc -> Minimum CPU
@@ -416,8 +313,8 @@ public interface InstanceGroupConfigOrBuilder
    * 
* * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for minCpuPlatform. */ - com.google.protobuf.ByteString getMinCpuPlatformBytes(); + com.google.protobuf.ByteString + getMinCpuPlatformBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java similarity index 66% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java index ef441e5bf093..b3ad8cbb0499 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java @@ -1,44 +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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to instantiate an inline workflow template.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest} */ -public final class InstantiateInlineWorkflowTemplateRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InstantiateInlineWorkflowTemplateRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) InstantiateInlineWorkflowTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InstantiateInlineWorkflowTemplateRequest.newBuilder() to construct. - private InstantiateInlineWorkflowTemplateRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private InstantiateInlineWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InstantiateInlineWorkflowTemplateRequest() { parent_ = ""; requestId_ = ""; @@ -46,35 +26,32 @@ private InstantiateInlineWorkflowTemplateRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InstantiateInlineWorkflowTemplateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -86,10 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `projects/{project_id}/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 @@ -98,15 +72,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -118,18 +91,17 @@ public java.lang.String getParent() {
    *   `projects/{project_id}/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 { @@ -140,16 +112,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int TEMPLATE_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.WorkflowTemplate template_; /** - * - * *
    * Required. The workflow template to instantiate.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the template field is set. */ @java.lang.Override @@ -157,34 +124,23 @@ public boolean hasTemplate() { return template_ != null; } /** - * - * *
    * Required. The workflow template to instantiate.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The template. */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate() { - return template_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() - : template_; + return template_ == null ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() : template_; } /** - * - * *
    * Required. The workflow template to instantiate.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder() { @@ -194,8 +150,6 @@ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuild public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A tag that prevents multiple concurrent workflow
    * instances with the same tag from running. This mitigates risk of
@@ -207,7 +161,6 @@ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuild
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -216,15 +169,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A tag that prevents multiple concurrent workflow
    * instances with the same tag from running. This mitigates risk of
@@ -236,15 +188,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.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 { @@ -253,7 +206,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +217,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_); } @@ -288,7 +241,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (template_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTemplate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTemplate()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -301,20 +255,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.dataproc.v1.InstantiateInlineWorkflowTemplateRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest other = - (com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) obj; + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest other = (com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { - if (!getTemplate().equals(other.getTemplate())) return false; + if (!getTemplate() + .equals(other.getTemplate())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -340,138 +296,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest 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.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest - 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.dataproc.v1.InstantiateInlineWorkflowTemplateRequest 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.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to instantiate an inline workflow template.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.Builder.class); } - // Construct using - // com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -489,16 +436,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; } @java.lang.Override - public com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest - .getDefaultInstance(); + public com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.getDefaultInstance(); } @java.lang.Override @@ -512,8 +457,7 @@ public com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest bui @java.lang.Override public com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest result = - new com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest(this); + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest result = new com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest(this); result.parent_ = parent_; if (templateBuilder_ == null) { result.template_ = template_; @@ -529,51 +473,46 @@ public com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) { - return mergeFrom( - (com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest other) { - if (other - == com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest other) { + if (other == com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -611,31 +550,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getTemplateFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getTemplateFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -648,8 +585,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -661,16 +596,14 @@ public Builder mergeFrom(
      *   `projects/{project_id}/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; @@ -679,8 +612,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -692,17 +623,16 @@ public java.lang.String getParent() {
      *   `projects/{project_id}/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 { @@ -710,8 +640,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -723,25 +651,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      *   `projects/{project_id}/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 resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -753,21 +677,16 @@ public Builder setParent(java.lang.String value) {
      *   `projects/{project_id}/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 resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -779,19 +698,17 @@ public Builder clearParent() {
      *   `projects/{project_id}/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; @@ -799,58 +716,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.WorkflowTemplate template_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> - templateBuilder_; + com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> templateBuilder_; /** - * - * *
      * Required. The workflow template to instantiate.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the template field is set. */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** - * - * *
      * Required. The workflow template to instantiate.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The template. */ public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate() { if (templateBuilder_ == null) { - return template_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() - : template_; + return template_ == null ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** - * - * *
      * Required. The workflow template to instantiate.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) { if (templateBuilder_ == null) { @@ -866,15 +764,11 @@ public Builder setTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) return this; } /** - * - * *
      * Required. The workflow template to instantiate.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTemplate( com.google.cloud.dataproc.v1.WorkflowTemplate.Builder builderForValue) { @@ -888,23 +782,17 @@ public Builder setTemplate( return this; } /** - * - * *
      * Required. The workflow template to instantiate.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = - com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder(template_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); } else { template_ = value; } @@ -916,15 +804,11 @@ public Builder mergeTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value return this; } /** - * - * *
      * Required. The workflow template to instantiate.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTemplate() { if (templateBuilder_ == null) { @@ -938,64 +822,48 @@ public Builder clearTemplate() { return this; } /** - * - * *
      * Required. The workflow template to instantiate.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder getTemplateBuilder() { - + onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The workflow template to instantiate.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { - return template_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() - : template_; + return template_ == null ? + com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() : template_; } } /** - * - * *
      * Required. The workflow template to instantiate.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> + com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { - templateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( - getTemplate(), getParentForChildren(), isClean()); + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); template_ = null; } return templateBuilder_; @@ -1003,8 +871,6 @@ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuild private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -1016,13 +882,13 @@ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuild
      * 
* * string request_id = 3 [(.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; @@ -1031,8 +897,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -1044,14 +908,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.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 { @@ -1059,8 +924,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -1072,22 +935,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.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. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -1099,18 +960,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -1122,23 +980,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.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); } @@ -1148,43 +1006,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) - private static final com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest(); } - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest - getDefaultInstance() { + public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstantiateInlineWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstantiateInlineWorkflowTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1196,8 +1052,9 @@ public com.google.protobuf.Parser getP } @java.lang.Override - public com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest - getDefaultInstanceForType() { + public com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.java index 0a96c1712c77..7539068ffd87 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface InstantiateInlineWorkflowTemplateRequestOrBuilder - extends +public interface InstantiateInlineWorkflowTemplateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -37,16 +19,11 @@ public interface InstantiateInlineWorkflowTemplateRequestOrBuilder
    *   `projects/{project_id}/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 resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -58,58 +35,40 @@ public interface InstantiateInlineWorkflowTemplateRequestOrBuilder
    *   `projects/{project_id}/locations/{location}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The workflow template to instantiate.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the template field is set. */ boolean hasTemplate(); /** - * - * *
    * Required. The workflow template to instantiate.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The template. */ com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate(); /** - * - * *
    * Required. The workflow template to instantiate.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder(); /** - * - * *
    * Optional. A tag that prevents multiple concurrent workflow
    * instances with the same tag from running. This mitigates risk of
@@ -121,13 +80,10 @@ public interface InstantiateInlineWorkflowTemplateRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A tag that prevents multiple concurrent workflow
    * instances with the same tag from running. This mitigates risk of
@@ -139,8 +95,8 @@ public interface InstantiateInlineWorkflowTemplateRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java similarity index 66% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java index 4118db209f09..4c4d41f8daa7 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java @@ -1,43 +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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to instantiate a workflow template.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest} */ -public final class InstantiateWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InstantiateWorkflowTemplateRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) InstantiateWorkflowTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InstantiateWorkflowTemplateRequest.newBuilder() to construct. - private InstantiateWorkflowTemplateRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private InstantiateWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InstantiateWorkflowTemplateRequest() { name_ = ""; requestId_ = ""; @@ -45,46 +26,44 @@ private InstantiateWorkflowTemplateRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InstantiateWorkflowTemplateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_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 internalGetParameters(); 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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -96,10 +75,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -108,15 +84,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -128,18 +103,17 @@ public java.lang.String getName() {
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * - * 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 { @@ -150,8 +124,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VERSION_FIELD_NUMBER = 2; private int version_; /** - * - * *
    * Optional. The version of workflow template to instantiate. If specified,
    * the workflow will be instantiated only if the current version of
@@ -161,7 +133,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ @java.lang.Override @@ -172,8 +143,6 @@ public int getVersion() { public static final int REQUEST_ID_FIELD_NUMBER = 5; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A tag that prevents multiple concurrent workflow
    * instances with the same tag from running. This mitigates risk of
@@ -185,7 +154,6 @@ public int getVersion() {
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -194,15 +162,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. A tag that prevents multiple concurrent workflow
    * instances with the same tag from running. This mitigates risk of
@@ -214,15 +181,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 5 [(.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 { @@ -231,23 +199,24 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } public static final int PARAMETERS_FIELD_NUMBER = 6; - private static final class ParametersDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_ParametersEntry_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.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_ParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField parameters_; - - private com.google.protobuf.MapField internalGetParameters() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> parameters_; + private com.google.protobuf.MapField + internalGetParameters() { if (parameters_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParametersDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); } return parameters_; } @@ -256,81 +225,74 @@ public int getParametersCount() { return internalGetParameters().getMap().size(); } /** - * - * *
    * Optional. Map from parameter names to values that should be used for those
    * parameters. Values may not exceed 1000 characters.
    * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsParameters(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetParameters().getMap().containsKey(key); } - /** Use {@link #getParametersMap()} instead. */ + /** + * Use {@link #getParametersMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParameters() { return getParametersMap(); } /** - * - * *
    * Optional. Map from parameter names to values that should be used for those
    * parameters. Values may not exceed 1000 characters.
    * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } /** - * - * *
    * Optional. Map from parameter names to values that should be used for those
    * parameters. Values may not exceed 1000 characters.
    * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getParametersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParameters().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Map from parameter names to values that should be used for those
    * parameters. Values may not exceed 1000 characters.
    * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getParametersOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParameters().getMap(); + + public java.lang.String getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -338,7 +300,6 @@ public java.lang.String getParametersOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -350,7 +311,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_); } @@ -360,8 +322,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetParameters(), + ParametersDefaultEntryHolder.defaultEntry, + 6); getUnknownFields().writeTo(output); } @@ -375,20 +341,21 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); } - for (java.util.Map.Entry entry : - internalGetParameters().getMap().entrySet()) { - com.google.protobuf.MapEntry parameters__ = - ParametersDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, parameters__); + for (java.util.Map.Entry entry + : internalGetParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry + parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, parameters__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -398,18 +365,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.dataproc.v1.InstantiateWorkflowTemplateRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest other = - (com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) obj; + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest other = (com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getVersion() != other.getVersion()) return false; - if (!getRequestId().equals(other.getRequestId())) return false; - if (!internalGetParameters().equals(other.internalGetParameters())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getVersion() + != other.getVersion()) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (!internalGetParameters().equals( + other.internalGetParameters())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -437,156 +407,151 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest 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.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to instantiate a workflow template.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetParameters(); 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 internalGetMutableParameters(); 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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -601,14 +566,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor; } @java.lang.Override - public com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest - getDefaultInstanceForType() { + public com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest getDefaultInstanceForType() { return com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.getDefaultInstance(); } @@ -623,8 +587,7 @@ public com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest result = - new com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest(this); + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest result = new com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.version_ = version_; @@ -639,50 +602,46 @@ public com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest other) { - if (other - == com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest other) { + if (other == com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -694,7 +653,8 @@ public Builder mergeFrom( requestId_ = other.requestId_; onChanged(); } - internalGetMutableParameters().mergeFrom(other.internalGetParameters()); + internalGetMutableParameters().mergeFrom( + other.internalGetParameters()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -721,42 +681,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - version_ = input.readInt32(); - - break; - } // case 16 - case 42: - { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry parameters__ = - input.readMessage( - ParametersDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableParameters() - .getMutableMap() - .put(parameters__.getKey(), parameters__.getValue()); - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + version_ = input.readInt32(); + + break; + } // case 16 + case 42: { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + parameters__ = input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableParameters().getMutableMap().put( + parameters__.getKey(), parameters__.getValue()); + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -766,13 +719,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -784,16 +734,14 @@ public Builder mergeFrom(
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * - * 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; @@ -802,8 +750,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -815,17 +761,16 @@ public java.lang.String getName() {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * - * 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 { @@ -833,8 +778,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -846,25 +789,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -876,21 +815,16 @@ public Builder setName(java.lang.String value) {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -902,28 +836,24 @@ public Builder clearName() {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int version_; + private int version_ ; /** - * - * *
      * Optional. The version of workflow template to instantiate. If specified,
      * the workflow will be instantiated only if the current version of
@@ -933,7 +863,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ @java.lang.Override @@ -941,8 +870,6 @@ public int getVersion() { return version_; } /** - * - * *
      * Optional. The version of workflow template to instantiate. If specified,
      * the workflow will be instantiated only if the current version of
@@ -952,19 +879,16 @@ public int getVersion() {
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { - + version_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The version of workflow template to instantiate. If specified,
      * the workflow will be instantiated only if the current version of
@@ -974,11 +898,10 @@ public Builder setVersion(int value) {
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = 0; onChanged(); return this; @@ -986,8 +909,6 @@ public Builder clearVersion() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -999,13 +920,13 @@ public Builder clearVersion() {
      * 
* * string request_id = 5 [(.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; @@ -1014,8 +935,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -1027,14 +946,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 5 [(.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 { @@ -1042,8 +962,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -1055,22 +973,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 5 [(.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. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -1082,18 +998,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -1105,39 +1018,37 @@ public Builder clearRequestId() {
      * 
* * string request_id = 5 [(.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; } - private com.google.protobuf.MapField parameters_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> parameters_; private com.google.protobuf.MapField - internalGetParameters() { + internalGetParameters() { if (parameters_ == null) { return com.google.protobuf.MapField.emptyMapField( ParametersDefaultEntryHolder.defaultEntry); } return parameters_; } - private com.google.protobuf.MapField - internalGetMutableParameters() { - onChanged(); - ; + internalGetMutableParameters() { + onChanged();; if (parameters_ == null) { - parameters_ = - com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); + parameters_ = com.google.protobuf.MapField.newMapField( + ParametersDefaultEntryHolder.defaultEntry); } if (!parameters_.isMutable()) { parameters_ = parameters_.copy(); @@ -1149,81 +1060,74 @@ public int getParametersCount() { return internalGetParameters().getMap().size(); } /** - * - * *
      * Optional. Map from parameter names to values that should be used for those
      * parameters. Values may not exceed 1000 characters.
      * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsParameters(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetParameters().getMap().containsKey(key); } - /** Use {@link #getParametersMap()} instead. */ + /** + * Use {@link #getParametersMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParameters() { return getParametersMap(); } /** - * - * *
      * Optional. Map from parameter names to values that should be used for those
      * parameters. Values may not exceed 1000 characters.
      * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } /** - * - * *
      * Optional. Map from parameter names to values that should be used for those
      * parameters. Values may not exceed 1000 characters.
      * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getParametersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParameters().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Map from parameter names to values that should be used for those
      * parameters. Values may not exceed 1000 characters.
      * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getParametersOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParameters().getMap(); + + public java.lang.String getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1231,72 +1135,72 @@ public java.lang.String getParametersOrThrow(java.lang.String key) { } public Builder clearParameters() { - internalGetMutableParameters().getMutableMap().clear(); + internalGetMutableParameters().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Map from parameter names to values that should be used for those
      * parameters. Values may not exceed 1000 characters.
      * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeParameters(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableParameters().getMutableMap().remove(key); + + public Builder removeParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableParameters().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableParameters() { + public java.util.Map + getMutableParameters() { return internalGetMutableParameters().getMutableMap(); } /** - * - * *
      * Optional. Map from parameter names to values that should be used for those
      * parameters. Values may not exceed 1000 characters.
      * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putParameters(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putParameters( + 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"); +} - internalGetMutableParameters().getMutableMap().put(key, value); + internalGetMutableParameters().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Map from parameter names to values that should be used for those
      * parameters. Values may not exceed 1000 characters.
      * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllParameters(java.util.Map values) { - internalGetMutableParameters().getMutableMap().putAll(values); + + public Builder putAllParameters( + java.util.Map values) { + internalGetMutableParameters().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); } @@ -1306,43 +1210,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) - private static final com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest(); } - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest - getDefaultInstance() { + public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstantiateWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstantiateWorkflowTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1354,8 +1256,9 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest - getDefaultInstanceForType() { + public com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java similarity index 72% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java index 5ef0491fa3a2..b3d9ccba46da 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface InstantiateWorkflowTemplateRequestOrBuilder - extends +public interface InstantiateWorkflowTemplateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -37,16 +19,11 @@ public interface InstantiateWorkflowTemplateRequestOrBuilder
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -58,17 +35,13 @@ public interface InstantiateWorkflowTemplateRequestOrBuilder
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The version of workflow template to instantiate. If specified,
    * the workflow will be instantiated only if the current version of
@@ -78,14 +51,11 @@ public interface InstantiateWorkflowTemplateRequestOrBuilder
    * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ int getVersion(); /** - * - * *
    * Optional. A tag that prevents multiple concurrent workflow
    * instances with the same tag from running. This mitigates risk of
@@ -97,13 +67,10 @@ public interface InstantiateWorkflowTemplateRequestOrBuilder
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A tag that prevents multiple concurrent workflow
    * instances with the same tag from running. This mitigates risk of
@@ -115,77 +82,69 @@ public interface InstantiateWorkflowTemplateRequestOrBuilder
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
    * Optional. Map from parameter names to values that should be used for those
    * parameters. Values may not exceed 1000 characters.
    * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; */ int getParametersCount(); /** - * - * *
    * Optional. Map from parameter names to values that should be used for those
    * parameters. Values may not exceed 1000 characters.
    * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsParameters( + java.lang.String key); + /** + * Use {@link #getParametersMap()} instead. */ - boolean containsParameters(java.lang.String key); - /** Use {@link #getParametersMap()} instead. */ @java.lang.Deprecated - java.util.Map getParameters(); + java.util.Map + getParameters(); /** - * - * *
    * Optional. Map from parameter names to values that should be used for those
    * parameters. Values may not exceed 1000 characters.
    * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getParametersMap(); + java.util.Map + getParametersMap(); /** - * - * *
    * Optional. Map from parameter names to values that should be used for those
    * parameters. Values may not exceed 1000 characters.
    * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getParametersOrDefault( +java.lang.String getParametersOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Map from parameter names to values that should be used for those
    * parameters. Values may not exceed 1000 characters.
    * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getParametersOrThrow(java.lang.String key); + + java.lang.String getParametersOrThrow( + java.lang.String key); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java index 2c0babed88a8..362d47ec56bf 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A Dataproc job resource.
  * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.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() { statusHistory_ = java.util.Collections.emptyList(); yarnApplications_ = java.util.Collections.emptyList(); @@ -47,46 +29,45 @@ private Job() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Job(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_Job_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_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 18: 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.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataproc.v1.Job.class, com.google.cloud.dataproc.v1.Job.Builder.class); } private int typeJobCase_ = 0; private java.lang.Object typeJob_; - public enum TypeJobCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { HADOOP_JOB(3), SPARK_JOB(4), @@ -98,7 +79,6 @@ public enum TypeJobCase PRESTO_JOB(23), TYPEJOB_NOT_SET(0); private final int value; - private TypeJobCase(int value) { this.value = value; } @@ -114,43 +94,32 @@ public static TypeJobCase valueOf(int value) { public static TypeJobCase forNumber(int value) { switch (value) { - case 3: - return HADOOP_JOB; - case 4: - return SPARK_JOB; - case 5: - return PYSPARK_JOB; - case 6: - return HIVE_JOB; - case 7: - return PIG_JOB; - case 21: - return SPARK_R_JOB; - case 12: - return SPARK_SQL_JOB; - case 23: - return PRESTO_JOB; - case 0: - return TYPEJOB_NOT_SET; - default: - return null; + case 3: return HADOOP_JOB; + case 4: return SPARK_JOB; + case 5: return PYSPARK_JOB; + case 6: return HIVE_JOB; + case 7: return PIG_JOB; + case 21: return SPARK_R_JOB; + case 12: return SPARK_SQL_JOB; + case 23: return PRESTO_JOB; + case 0: return TYPEJOB_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public TypeJobCase getTypeJobCase() { - return TypeJobCase.forNumber(typeJobCase_); + public TypeJobCase + getTypeJobCase() { + return TypeJobCase.forNumber( + typeJobCase_); } public static final int REFERENCE_FIELD_NUMBER = 1; private com.google.cloud.dataproc.v1.JobReference reference_; /** - * - * *
    * Optional. The fully qualified reference to the job, which can be used to
    * obtain the equivalent REST path of the job resource. If this property
@@ -158,10 +127,7 @@ public TypeJobCase getTypeJobCase() {
    * <code>job_id</code>.
    * 
* - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the reference field is set. */ @java.lang.Override @@ -169,8 +135,6 @@ public boolean hasReference() { return reference_ != null; } /** - * - * *
    * Optional. The fully qualified reference to the job, which can be used to
    * obtain the equivalent REST path of the job resource. If this property
@@ -178,21 +142,14 @@ public boolean hasReference() {
    * <code>job_id</code>.
    * 
* - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The reference. */ @java.lang.Override public com.google.cloud.dataproc.v1.JobReference getReference() { - return reference_ == null - ? com.google.cloud.dataproc.v1.JobReference.getDefaultInstance() - : reference_; + return reference_ == null ? com.google.cloud.dataproc.v1.JobReference.getDefaultInstance() : reference_; } /** - * - * *
    * Optional. The fully qualified reference to the job, which can be used to
    * obtain the equivalent REST path of the job resource. If this property
@@ -200,9 +157,7 @@ public com.google.cloud.dataproc.v1.JobReference getReference() {
    * <code>job_id</code>.
    * 
* - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.JobReferenceOrBuilder getReferenceOrBuilder() { @@ -212,17 +167,12 @@ public com.google.cloud.dataproc.v1.JobReferenceOrBuilder getReferenceOrBuilder( public static final int PLACEMENT_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.JobPlacement placement_; /** - * - * *
    * Required. Job information, including how, when, and where to
    * run the job.
    * 
* - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the placement field is set. */ @java.lang.Override @@ -230,36 +180,25 @@ public boolean hasPlacement() { return placement_ != null; } /** - * - * *
    * Required. Job information, including how, when, and where to
    * run the job.
    * 
* - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The placement. */ @java.lang.Override public com.google.cloud.dataproc.v1.JobPlacement getPlacement() { - return placement_ == null - ? com.google.cloud.dataproc.v1.JobPlacement.getDefaultInstance() - : placement_; + return placement_ == null ? com.google.cloud.dataproc.v1.JobPlacement.getDefaultInstance() : placement_; } /** - * - * *
    * Required. Job information, including how, when, and where to
    * run the job.
    * 
* - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dataproc.v1.JobPlacementOrBuilder getPlacementOrBuilder() { @@ -268,16 +207,11 @@ public com.google.cloud.dataproc.v1.JobPlacementOrBuilder getPlacementOrBuilder( public static final int HADOOP_JOB_FIELD_NUMBER = 3; /** - * - * *
    * Optional. Job is a Hadoop job.
    * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the hadoopJob field is set. */ @java.lang.Override @@ -285,56 +219,42 @@ public boolean hasHadoopJob() { return typeJobCase_ == 3; } /** - * - * *
    * Optional. Job is a Hadoop job.
    * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The hadoopJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.HadoopJob getHadoopJob() { if (typeJobCase_ == 3) { - return (com.google.cloud.dataproc.v1.HadoopJob) typeJob_; + return (com.google.cloud.dataproc.v1.HadoopJob) typeJob_; } return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); } /** - * - * *
    * Optional. Job is a Hadoop job.
    * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder() { if (typeJobCase_ == 3) { - return (com.google.cloud.dataproc.v1.HadoopJob) typeJob_; + return (com.google.cloud.dataproc.v1.HadoopJob) typeJob_; } return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); } public static final int SPARK_JOB_FIELD_NUMBER = 4; /** - * - * *
    * Optional. Job is a Spark job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkJob field is set. */ @java.lang.Override @@ -342,56 +262,42 @@ public boolean hasSparkJob() { return typeJobCase_ == 4; } /** - * - * *
    * Optional. Job is a Spark job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkJob getSparkJob() { if (typeJobCase_ == 4) { - return (com.google.cloud.dataproc.v1.SparkJob) typeJob_; + return (com.google.cloud.dataproc.v1.SparkJob) typeJob_; } return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); } /** - * - * *
    * Optional. Job is a Spark job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder() { if (typeJobCase_ == 4) { - return (com.google.cloud.dataproc.v1.SparkJob) typeJob_; + return (com.google.cloud.dataproc.v1.SparkJob) typeJob_; } return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); } public static final int PYSPARK_JOB_FIELD_NUMBER = 5; /** - * - * *
    * Optional. Job is a PySpark job.
    * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pysparkJob field is set. */ @java.lang.Override @@ -399,55 +305,42 @@ public boolean hasPysparkJob() { return typeJobCase_ == 5; } /** - * - * *
    * Optional. Job is a PySpark job.
    * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The pysparkJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.PySparkJob getPysparkJob() { if (typeJobCase_ == 5) { - return (com.google.cloud.dataproc.v1.PySparkJob) typeJob_; + return (com.google.cloud.dataproc.v1.PySparkJob) typeJob_; } return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); } /** - * - * *
    * Optional. Job is a PySpark job.
    * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder() { if (typeJobCase_ == 5) { - return (com.google.cloud.dataproc.v1.PySparkJob) typeJob_; + return (com.google.cloud.dataproc.v1.PySparkJob) typeJob_; } return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); } public static final int HIVE_JOB_FIELD_NUMBER = 6; /** - * - * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the hiveJob field is set. */ @java.lang.Override @@ -455,53 +348,42 @@ public boolean hasHiveJob() { return typeJobCase_ == 6; } /** - * - * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The hiveJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.HiveJob getHiveJob() { if (typeJobCase_ == 6) { - return (com.google.cloud.dataproc.v1.HiveJob) typeJob_; + return (com.google.cloud.dataproc.v1.HiveJob) typeJob_; } return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); } /** - * - * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder() { if (typeJobCase_ == 6) { - return (com.google.cloud.dataproc.v1.HiveJob) typeJob_; + return (com.google.cloud.dataproc.v1.HiveJob) typeJob_; } return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); } public static final int PIG_JOB_FIELD_NUMBER = 7; /** - * - * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pigJob field is set. */ @java.lang.Override @@ -509,54 +391,42 @@ public boolean hasPigJob() { return typeJobCase_ == 7; } /** - * - * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The pigJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.PigJob getPigJob() { if (typeJobCase_ == 7) { - return (com.google.cloud.dataproc.v1.PigJob) typeJob_; + return (com.google.cloud.dataproc.v1.PigJob) typeJob_; } return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); } /** - * - * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder() { if (typeJobCase_ == 7) { - return (com.google.cloud.dataproc.v1.PigJob) typeJob_; + return (com.google.cloud.dataproc.v1.PigJob) typeJob_; } return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); } public static final int SPARK_R_JOB_FIELD_NUMBER = 21; /** - * - * *
    * Optional. Job is a SparkR job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkRJob field is set. */ @java.lang.Override @@ -564,56 +434,42 @@ public boolean hasSparkRJob() { return typeJobCase_ == 21; } /** - * - * *
    * Optional. Job is a SparkR job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkRJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkRJob getSparkRJob() { if (typeJobCase_ == 21) { - return (com.google.cloud.dataproc.v1.SparkRJob) typeJob_; + return (com.google.cloud.dataproc.v1.SparkRJob) typeJob_; } return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); } /** - * - * *
    * Optional. Job is a SparkR job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder() { if (typeJobCase_ == 21) { - return (com.google.cloud.dataproc.v1.SparkRJob) typeJob_; + return (com.google.cloud.dataproc.v1.SparkRJob) typeJob_; } return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); } public static final int SPARK_SQL_JOB_FIELD_NUMBER = 12; /** - * - * *
    * Optional. Job is a SparkSql job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkSqlJob field is set. */ @java.lang.Override @@ -621,56 +477,42 @@ public boolean hasSparkSqlJob() { return typeJobCase_ == 12; } /** - * - * *
    * Optional. Job is a SparkSql job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkSqlJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlJob getSparkSqlJob() { if (typeJobCase_ == 12) { - return (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_; + return (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_; } return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); } /** - * - * *
    * Optional. Job is a SparkSql job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder() { if (typeJobCase_ == 12) { - return (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_; + return (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_; } return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); } public static final int PRESTO_JOB_FIELD_NUMBER = 23; /** - * - * *
    * Optional. Job is a Presto job.
    * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the prestoJob field is set. */ @java.lang.Override @@ -678,40 +520,31 @@ public boolean hasPrestoJob() { return typeJobCase_ == 23; } /** - * - * *
    * Optional. Job is a Presto job.
    * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; * @return The prestoJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.PrestoJob getPrestoJob() { if (typeJobCase_ == 23) { - return (com.google.cloud.dataproc.v1.PrestoJob) typeJob_; + return (com.google.cloud.dataproc.v1.PrestoJob) typeJob_; } return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); } /** - * - * *
    * Optional. Job is a Presto job.
    * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder() { if (typeJobCase_ == 23) { - return (com.google.cloud.dataproc.v1.PrestoJob) typeJob_; + return (com.google.cloud.dataproc.v1.PrestoJob) typeJob_; } return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); } @@ -719,18 +552,13 @@ public com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder() { public static final int STATUS_FIELD_NUMBER = 8; private com.google.cloud.dataproc.v1.JobStatus status_; /** - * - * *
    * Output only. The job status. Additional application-specific
    * status information may be contained in the <code>type_job</code>
    * and <code>yarn_applications</code> fields.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the status field is set. */ @java.lang.Override @@ -738,18 +566,13 @@ public boolean hasStatus() { return status_ != null; } /** - * - * *
    * Output only. The job status. Additional application-specific
    * status information may be contained in the <code>type_job</code>
    * and <code>yarn_applications</code> fields.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ @java.lang.Override @@ -757,17 +580,13 @@ public com.google.cloud.dataproc.v1.JobStatus getStatus() { return status_ == null ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() : status_; } /** - * - * *
    * Output only. The job status. Additional application-specific
    * status information may be contained in the <code>type_job</code>
    * and <code>yarn_applications</code> fields.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder() { @@ -777,165 +596,126 @@ public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder() { public static final int STATUS_HISTORY_FIELD_NUMBER = 13; private java.util.List statusHistory_; /** - * - * *
    * Output only. The previous job status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getStatusHistoryList() { return statusHistory_; } /** - * - * *
    * Output only. The previous job status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getStatusHistoryOrBuilderList() { return statusHistory_; } /** - * - * *
    * Output only. The previous job status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getStatusHistoryCount() { return statusHistory_.size(); } /** - * - * *
    * Output only. The previous job status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.JobStatus getStatusHistory(int index) { return statusHistory_.get(index); } /** - * - * *
    * Output only. The previous job status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusHistoryOrBuilder(int index) { + public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusHistoryOrBuilder( + int index) { return statusHistory_.get(index); } public static final int YARN_APPLICATIONS_FIELD_NUMBER = 9; private java.util.List yarnApplications_; /** - * - * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getYarnApplicationsList() { return yarnApplications_; } /** - * - * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getYarnApplicationsOrBuilderList() { return yarnApplications_; } /** - * - * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getYarnApplicationsCount() { return yarnApplications_.size(); } /** - * - * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.YarnApplication getYarnApplications(int index) { return yarnApplications_.get(index); } /** - * - * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplicationsOrBuilder( @@ -946,16 +726,12 @@ public com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplications public static final int DRIVER_OUTPUT_RESOURCE_URI_FIELD_NUMBER = 17; private volatile java.lang.Object driverOutputResourceUri_; /** - * - * *
    * Output only. A URI pointing to the location of the stdout of the job's
    * driver program.
    * 
* - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The driverOutputResourceUri. */ @java.lang.Override @@ -964,31 +740,30 @@ public java.lang.String getDriverOutputResourceUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); driverOutputResourceUri_ = s; return s; } } /** - * - * *
    * Output only. A URI pointing to the location of the stdout of the job's
    * driver program.
    * 
* - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for driverOutputResourceUri. */ @java.lang.Override - public com.google.protobuf.ByteString getDriverOutputResourceUriBytes() { + public com.google.protobuf.ByteString + getDriverOutputResourceUriBytes() { java.lang.Object ref = driverOutputResourceUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); driverOutputResourceUri_ = b; return b; } else { @@ -999,8 +774,6 @@ public com.google.protobuf.ByteString getDriverOutputResourceUriBytes() { public static final int DRIVER_CONTROL_FILES_URI_FIELD_NUMBER = 15; private volatile java.lang.Object driverControlFilesUri_; /** - * - * *
    * Output only. If present, the location of miscellaneous control files
    * which may be used as part of job setup and handling. If not present,
@@ -1008,7 +781,6 @@ public com.google.protobuf.ByteString getDriverOutputResourceUriBytes() {
    * 
* * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The driverControlFilesUri. */ @java.lang.Override @@ -1017,15 +789,14 @@ public java.lang.String getDriverControlFilesUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); driverControlFilesUri_ = s; return s; } } /** - * - * *
    * Output only. If present, the location of miscellaneous control files
    * which may be used as part of job setup and handling. If not present,
@@ -1033,15 +804,16 @@ public java.lang.String getDriverControlFilesUri() {
    * 
* * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for driverControlFilesUri. */ @java.lang.Override - public com.google.protobuf.ByteString getDriverControlFilesUriBytes() { + public com.google.protobuf.ByteString + getDriverControlFilesUriBytes() { java.lang.Object ref = driverControlFilesUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); driverControlFilesUri_ = b; return b; } else { @@ -1050,23 +822,24 @@ public com.google.protobuf.ByteString getDriverControlFilesUriBytes() { } public static final int LABELS_FIELD_NUMBER = 18; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_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() { + 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_; } @@ -1075,8 +848,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels to associate with this job.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1089,22 +860,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @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();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this job.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1118,12 +889,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this job.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1137,16 +907,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this job.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1160,11 +930,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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();
     }
@@ -1174,16 +945,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int SCHEDULING_FIELD_NUMBER = 20;
   private com.google.cloud.dataproc.v1.JobScheduling scheduling_;
   /**
-   *
-   *
    * 
    * Optional. Job scheduling configuration.
    * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the scheduling field is set. */ @java.lang.Override @@ -1191,34 +957,23 @@ public boolean hasScheduling() { return scheduling_ != null; } /** - * - * *
    * Optional. Job scheduling configuration.
    * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; * @return The scheduling. */ @java.lang.Override public com.google.cloud.dataproc.v1.JobScheduling getScheduling() { - return scheduling_ == null - ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() - : scheduling_; + return scheduling_ == null ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() : scheduling_; } /** - * - * *
    * Optional. Job scheduling configuration.
    * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilder() { @@ -1228,8 +983,6 @@ public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilde public static final int JOB_UUID_FIELD_NUMBER = 22; private volatile java.lang.Object jobUuid_; /** - * - * *
    * Output only. A UUID that uniquely identifies a job within the project
    * over time. This is in contrast to a user-settable reference.job_id that
@@ -1237,7 +990,6 @@ public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilde
    * 
* * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The jobUuid. */ @java.lang.Override @@ -1246,15 +998,14 @@ public java.lang.String getJobUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobUuid_ = s; return s; } } /** - * - * *
    * Output only. A UUID that uniquely identifies a job within the project
    * over time. This is in contrast to a user-settable reference.job_id that
@@ -1262,15 +1013,16 @@ public java.lang.String getJobUuid() {
    * 
* * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for jobUuid. */ @java.lang.Override - public com.google.protobuf.ByteString getJobUuidBytes() { + public com.google.protobuf.ByteString + getJobUuidBytes() { java.lang.Object ref = jobUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); jobUuid_ = b; return b; } else { @@ -1281,17 +1033,14 @@ public com.google.protobuf.ByteString getJobUuidBytes() { public static final int DONE_FIELD_NUMBER = 24; private boolean done_; /** - * - * *
-   * Output only. Indicates whether the job is completed. If the value is `false`,
-   * the job is still in progress. If `true`, the job is completed, and
+   * Output only. Indicates whether the job is completed. If the value is
+   * `false`, the job is still in progress. If `true`, the job is completed, and
    * `status.state` field will indicate if it was successful, failed,
    * or cancelled.
    * 
* * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The done. */ @java.lang.Override @@ -1299,8 +1048,45 @@ public boolean getDone() { return done_; } - private byte memoizedIsInitialized = -1; + public static final int DRIVER_SCHEDULING_CONFIG_FIELD_NUMBER = 27; + private com.google.cloud.dataproc.v1.DriverSchedulingConfig driverSchedulingConfig_; + /** + *
+   * Optional. Driver scheduling configuration.
+   * 
+ * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the driverSchedulingConfig field is set. + */ + @java.lang.Override + public boolean hasDriverSchedulingConfig() { + return driverSchedulingConfig_ != null; + } + /** + *
+   * Optional. Driver scheduling configuration.
+   * 
+ * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * @return The driverSchedulingConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.DriverSchedulingConfig getDriverSchedulingConfig() { + return driverSchedulingConfig_ == null ? com.google.cloud.dataproc.v1.DriverSchedulingConfig.getDefaultInstance() : driverSchedulingConfig_; + } + /** + *
+   * Optional. Driver scheduling configuration.
+   * 
+ * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder getDriverSchedulingConfigOrBuilder() { + return getDriverSchedulingConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1312,7 +1098,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 (reference_ != null) { output.writeMessage(1, getReference()); } @@ -1352,8 +1139,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(driverOutputResourceUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, driverOutputResourceUri_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 18); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 18); if (scheduling_ != null) { output.writeMessage(20, getScheduling()); } @@ -1369,6 +1160,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (done_ != false) { output.writeBool(24, done_); } + if (driverSchedulingConfig_ != null) { + output.writeMessage(27, getDriverSchedulingConfig()); + } getUnknownFields().writeTo(output); } @@ -1379,85 +1173,87 @@ public int getSerializedSize() { size = 0; if (reference_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReference()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getReference()); } if (placement_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPlacement()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPlacement()); } if (typeJobCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.dataproc.v1.HadoopJob) typeJob_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.dataproc.v1.HadoopJob) typeJob_); } if (typeJobCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.dataproc.v1.SparkJob) typeJob_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.dataproc.v1.SparkJob) typeJob_); } if (typeJobCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.dataproc.v1.PySparkJob) typeJob_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.dataproc.v1.PySparkJob) typeJob_); } if (typeJobCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.dataproc.v1.HiveJob) typeJob_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.dataproc.v1.HiveJob) typeJob_); } if (typeJobCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.dataproc.v1.PigJob) typeJob_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.cloud.dataproc.v1.PigJob) typeJob_); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getStatus()); } for (int i = 0; i < yarnApplications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, yarnApplications_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, yarnApplications_.get(i)); } if (typeJobCase_ == 12) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_); } for (int i = 0; i < statusHistory_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, statusHistory_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, statusHistory_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(driverControlFilesUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, driverControlFilesUri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(driverOutputResourceUri_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(17, driverOutputResourceUri_); - } - 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(18, labels__); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, driverOutputResourceUri_); + } + 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(18, labels__); } if (scheduling_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getScheduling()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getScheduling()); } if (typeJobCase_ == 21) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 21, (com.google.cloud.dataproc.v1.SparkRJob) typeJob_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, (com.google.cloud.dataproc.v1.SparkRJob) typeJob_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobUuid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, jobUuid_); } if (typeJobCase_ == 23) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 23, (com.google.cloud.dataproc.v1.PrestoJob) typeJob_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, (com.google.cloud.dataproc.v1.PrestoJob) typeJob_); } if (done_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, done_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(24, done_); + } + if (driverSchedulingConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(27, getDriverSchedulingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1467,7 +1263,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.dataproc.v1.Job)) { return super.equals(obj); @@ -1476,52 +1272,76 @@ public boolean equals(final java.lang.Object obj) { if (hasReference() != other.hasReference()) return false; if (hasReference()) { - if (!getReference().equals(other.getReference())) return false; + if (!getReference() + .equals(other.getReference())) return false; } if (hasPlacement() != other.hasPlacement()) return false; if (hasPlacement()) { - if (!getPlacement().equals(other.getPlacement())) return false; + if (!getPlacement() + .equals(other.getPlacement())) return false; } if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; - } - if (!getStatusHistoryList().equals(other.getStatusHistoryList())) return false; - if (!getYarnApplicationsList().equals(other.getYarnApplicationsList())) return false; - if (!getDriverOutputResourceUri().equals(other.getDriverOutputResourceUri())) return false; - if (!getDriverControlFilesUri().equals(other.getDriverControlFilesUri())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!getStatusHistoryList() + .equals(other.getStatusHistoryList())) return false; + if (!getYarnApplicationsList() + .equals(other.getYarnApplicationsList())) return false; + if (!getDriverOutputResourceUri() + .equals(other.getDriverOutputResourceUri())) return false; + if (!getDriverControlFilesUri() + .equals(other.getDriverControlFilesUri())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasScheduling() != other.hasScheduling()) return false; if (hasScheduling()) { - if (!getScheduling().equals(other.getScheduling())) return false; + if (!getScheduling() + .equals(other.getScheduling())) return false; + } + if (!getJobUuid() + .equals(other.getJobUuid())) return false; + if (getDone() + != other.getDone()) return false; + if (hasDriverSchedulingConfig() != other.hasDriverSchedulingConfig()) return false; + if (hasDriverSchedulingConfig()) { + if (!getDriverSchedulingConfig() + .equals(other.getDriverSchedulingConfig())) return false; } - if (!getJobUuid().equals(other.getJobUuid())) return false; - if (getDone() != other.getDone()) return false; if (!getTypeJobCase().equals(other.getTypeJobCase())) return false; switch (typeJobCase_) { case 3: - if (!getHadoopJob().equals(other.getHadoopJob())) return false; + if (!getHadoopJob() + .equals(other.getHadoopJob())) return false; break; case 4: - if (!getSparkJob().equals(other.getSparkJob())) return false; + if (!getSparkJob() + .equals(other.getSparkJob())) return false; break; case 5: - if (!getPysparkJob().equals(other.getPysparkJob())) return false; + if (!getPysparkJob() + .equals(other.getPysparkJob())) return false; break; case 6: - if (!getHiveJob().equals(other.getHiveJob())) return false; + if (!getHiveJob() + .equals(other.getHiveJob())) return false; break; case 7: - if (!getPigJob().equals(other.getPigJob())) return false; + if (!getPigJob() + .equals(other.getPigJob())) return false; break; case 21: - if (!getSparkRJob().equals(other.getSparkRJob())) return false; + if (!getSparkRJob() + .equals(other.getSparkRJob())) return false; break; case 12: - if (!getSparkSqlJob().equals(other.getSparkSqlJob())) return false; + if (!getSparkSqlJob() + .equals(other.getSparkSqlJob())) return false; break; case 23: - if (!getPrestoJob().equals(other.getPrestoJob())) return false; + if (!getPrestoJob() + .equals(other.getPrestoJob())) return false; break; case 0: default: @@ -1572,7 +1392,12 @@ public int hashCode() { hash = (37 * hash) + JOB_UUID_FIELD_NUMBER; hash = (53 * hash) + getJobUuid().hashCode(); hash = (37 * hash) + DONE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDone()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDone()); + if (hasDriverSchedulingConfig()) { + hash = (37 * hash) + DRIVER_SCHEDULING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDriverSchedulingConfig().hashCode(); + } switch (typeJobCase_) { case 3: hash = (37 * hash) + HADOOP_JOB_FIELD_NUMBER; @@ -1614,155 +1439,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.Job parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.Job parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.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.dataproc.v1.Job parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.dataproc.v1.Job parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.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.dataproc.v1.Job parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.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.dataproc.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.dataproc.v1.Job parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.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.dataproc.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; } /** - * - * *
    * A Dataproc job resource.
    * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.v1.Job) com.google.cloud.dataproc.v1.JobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_Job_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_Job_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 18: 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 18: 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.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.Job.class, - com.google.cloud.dataproc.v1.Job.Builder.class); + com.google.cloud.dataproc.v1.Job.class, com.google.cloud.dataproc.v1.Job.Builder.class); } // Construct using com.google.cloud.dataproc.v1.Job.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1837,15 +1659,21 @@ public Builder clear() { done_ = false; + if (driverSchedulingConfigBuilder_ == null) { + driverSchedulingConfig_ = null; + } else { + driverSchedulingConfig_ = null; + driverSchedulingConfigBuilder_ = null; + } typeJobCase_ = 0; typeJob_ = null; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_Job_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_Job_descriptor; } @java.lang.Override @@ -1966,6 +1794,11 @@ public com.google.cloud.dataproc.v1.Job buildPartial() { } result.jobUuid_ = jobUuid_; result.done_ = done_; + if (driverSchedulingConfigBuilder_ == null) { + result.driverSchedulingConfig_ = driverSchedulingConfig_; + } else { + result.driverSchedulingConfig_ = driverSchedulingConfigBuilder_.build(); + } result.typeJobCase_ = typeJobCase_; onBuilt(); return result; @@ -1975,39 +1808,38 @@ public com.google.cloud.dataproc.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.dataproc.v1.Job) { - return mergeFrom((com.google.cloud.dataproc.v1.Job) other); + return mergeFrom((com.google.cloud.dataproc.v1.Job)other); } else { super.mergeFrom(other); return this; @@ -2043,10 +1875,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Job other) { statusHistoryBuilder_ = null; statusHistory_ = other.statusHistory_; bitField0_ = (bitField0_ & ~0x00000001); - statusHistoryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStatusHistoryFieldBuilder() - : null; + statusHistoryBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStatusHistoryFieldBuilder() : null; } else { statusHistoryBuilder_.addAllMessages(other.statusHistory_); } @@ -2070,10 +1901,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Job other) { yarnApplicationsBuilder_ = null; yarnApplications_ = other.yarnApplications_; bitField0_ = (bitField0_ & ~0x00000002); - yarnApplicationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getYarnApplicationsFieldBuilder() - : null; + yarnApplicationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getYarnApplicationsFieldBuilder() : null; } else { yarnApplicationsBuilder_.addAllMessages(other.yarnApplications_); } @@ -2087,7 +1917,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Job other) { driverControlFilesUri_ = other.driverControlFilesUri_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.hasScheduling()) { mergeScheduling(other.getScheduling()); } @@ -2098,59 +1929,53 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Job other) { if (other.getDone() != false) { setDone(other.getDone()); } - switch (other.getTypeJobCase()) { - case HADOOP_JOB: - { - mergeHadoopJob(other.getHadoopJob()); - break; - } - case SPARK_JOB: - { - mergeSparkJob(other.getSparkJob()); - break; - } - case PYSPARK_JOB: - { - mergePysparkJob(other.getPysparkJob()); - break; - } - case HIVE_JOB: - { - mergeHiveJob(other.getHiveJob()); - break; - } - case PIG_JOB: - { - mergePigJob(other.getPigJob()); - break; - } - case SPARK_R_JOB: - { - mergeSparkRJob(other.getSparkRJob()); - break; - } - case SPARK_SQL_JOB: - { - mergeSparkSqlJob(other.getSparkSqlJob()); - break; - } - case PRESTO_JOB: - { - mergePrestoJob(other.getPrestoJob()); - break; - } - case TYPEJOB_NOT_SET: - { - break; - } + if (other.hasDriverSchedulingConfig()) { + mergeDriverSchedulingConfig(other.getDriverSchedulingConfig()); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { + switch (other.getTypeJobCase()) { + case HADOOP_JOB: { + mergeHadoopJob(other.getHadoopJob()); + break; + } + case SPARK_JOB: { + mergeSparkJob(other.getSparkJob()); + break; + } + case PYSPARK_JOB: { + mergePysparkJob(other.getPysparkJob()); + break; + } + case HIVE_JOB: { + mergeHiveJob(other.getHiveJob()); + break; + } + case PIG_JOB: { + mergePigJob(other.getPigJob()); + break; + } + case SPARK_R_JOB: { + mergeSparkRJob(other.getSparkRJob()); + break; + } + case SPARK_SQL_JOB: { + mergeSparkSqlJob(other.getSparkSqlJob()); + break; + } + case PRESTO_JOB: { + mergePrestoJob(other.getPrestoJob()); + break; + } + case TYPEJOB_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { return true; } @@ -2170,146 +1995,157 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getReferenceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getPlacementFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getHadoopJobFieldBuilder().getBuilder(), extensionRegistry); - typeJobCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getSparkJobFieldBuilder().getBuilder(), extensionRegistry); - typeJobCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getPysparkJobFieldBuilder().getBuilder(), extensionRegistry); - typeJobCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getHiveJobFieldBuilder().getBuilder(), extensionRegistry); - typeJobCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage(getPigJobFieldBuilder().getBuilder(), extensionRegistry); - typeJobCase_ = 7; - break; - } // case 58 - case 66: - { - input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - case 74: - { - com.google.cloud.dataproc.v1.YarnApplication m = - input.readMessage( - com.google.cloud.dataproc.v1.YarnApplication.parser(), extensionRegistry); - if (yarnApplicationsBuilder_ == null) { - ensureYarnApplicationsIsMutable(); - yarnApplications_.add(m); - } else { - yarnApplicationsBuilder_.addMessage(m); - } - break; - } // case 74 - case 98: - { - input.readMessage(getSparkSqlJobFieldBuilder().getBuilder(), extensionRegistry); - typeJobCase_ = 12; - break; - } // case 98 - case 106: - { - com.google.cloud.dataproc.v1.JobStatus m = - input.readMessage( - com.google.cloud.dataproc.v1.JobStatus.parser(), extensionRegistry); - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(m); - } else { - statusHistoryBuilder_.addMessage(m); - } - break; - } // case 106 - case 122: - { - driverControlFilesUri_ = input.readStringRequireUtf8(); - - break; - } // case 122 - case 138: - { - driverOutputResourceUri_ = input.readStringRequireUtf8(); - - break; - } // case 138 - case 146: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 146 - case 162: - { - input.readMessage(getSchedulingFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 162 - case 170: - { - input.readMessage(getSparkRJobFieldBuilder().getBuilder(), extensionRegistry); - typeJobCase_ = 21; - break; - } // case 170 - case 178: - { - jobUuid_ = input.readStringRequireUtf8(); - - break; - } // case 178 - case 186: - { - input.readMessage(getPrestoJobFieldBuilder().getBuilder(), extensionRegistry); - typeJobCase_ = 23; - break; - } // case 186 - case 192: - { - done_ = input.readBool(); - - break; - } // case 192 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getReferenceFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getPlacementFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getHadoopJobFieldBuilder().getBuilder(), + extensionRegistry); + typeJobCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getSparkJobFieldBuilder().getBuilder(), + extensionRegistry); + typeJobCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getPysparkJobFieldBuilder().getBuilder(), + extensionRegistry); + typeJobCase_ = 5; + break; + } // case 42 + case 50: { + input.readMessage( + getHiveJobFieldBuilder().getBuilder(), + extensionRegistry); + typeJobCase_ = 6; + break; + } // case 50 + case 58: { + input.readMessage( + getPigJobFieldBuilder().getBuilder(), + extensionRegistry); + typeJobCase_ = 7; + break; + } // case 58 + case 66: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 66 + case 74: { + com.google.cloud.dataproc.v1.YarnApplication m = + input.readMessage( + com.google.cloud.dataproc.v1.YarnApplication.parser(), + extensionRegistry); + if (yarnApplicationsBuilder_ == null) { + ensureYarnApplicationsIsMutable(); + yarnApplications_.add(m); + } else { + yarnApplicationsBuilder_.addMessage(m); + } + break; + } // case 74 + case 98: { + input.readMessage( + getSparkSqlJobFieldBuilder().getBuilder(), + extensionRegistry); + typeJobCase_ = 12; + break; + } // case 98 + case 106: { + com.google.cloud.dataproc.v1.JobStatus m = + input.readMessage( + com.google.cloud.dataproc.v1.JobStatus.parser(), + extensionRegistry); + if (statusHistoryBuilder_ == null) { + ensureStatusHistoryIsMutable(); + statusHistory_.add(m); + } else { + statusHistoryBuilder_.addMessage(m); + } + break; + } // case 106 + case 122: { + driverControlFilesUri_ = input.readStringRequireUtf8(); + + break; + } // case 122 + case 138: { + driverOutputResourceUri_ = input.readStringRequireUtf8(); + + break; + } // case 138 + case 146: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 146 + case 162: { + input.readMessage( + getSchedulingFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 162 + case 170: { + input.readMessage( + getSparkRJobFieldBuilder().getBuilder(), + extensionRegistry); + typeJobCase_ = 21; + break; + } // case 170 + case 178: { + jobUuid_ = input.readStringRequireUtf8(); + + break; + } // case 178 + case 186: { + input.readMessage( + getPrestoJobFieldBuilder().getBuilder(), + extensionRegistry); + typeJobCase_ = 23; + break; + } // case 186 + case 192: { + done_ = input.readBool(); + + break; + } // case 192 + case 218: { + input.readMessage( + getDriverSchedulingConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 218 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2319,12 +2155,12 @@ public Builder mergeFrom( } // finally return this; } - private int typeJobCase_ = 0; private java.lang.Object typeJob_; - - public TypeJobCase getTypeJobCase() { - return TypeJobCase.forNumber(typeJobCase_); + public TypeJobCase + getTypeJobCase() { + return TypeJobCase.forNumber( + typeJobCase_); } public Builder clearTypeJob() { @@ -2338,13 +2174,8 @@ public Builder clearTypeJob() { private com.google.cloud.dataproc.v1.JobReference reference_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobReference, - com.google.cloud.dataproc.v1.JobReference.Builder, - com.google.cloud.dataproc.v1.JobReferenceOrBuilder> - referenceBuilder_; + com.google.cloud.dataproc.v1.JobReference, com.google.cloud.dataproc.v1.JobReference.Builder, com.google.cloud.dataproc.v1.JobReferenceOrBuilder> referenceBuilder_; /** - * - * *
      * Optional. The fully qualified reference to the job, which can be used to
      * obtain the equivalent REST path of the job resource. If this property
@@ -2352,18 +2183,13 @@ public Builder clearTypeJob() {
      * <code>job_id</code>.
      * 
* - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the reference field is set. */ public boolean hasReference() { return referenceBuilder_ != null || reference_ != null; } /** - * - * *
      * Optional. The fully qualified reference to the job, which can be used to
      * obtain the equivalent REST path of the job resource. If this property
@@ -2371,24 +2197,17 @@ public boolean hasReference() {
      * <code>job_id</code>.
      * 
* - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The reference. */ public com.google.cloud.dataproc.v1.JobReference getReference() { if (referenceBuilder_ == null) { - return reference_ == null - ? com.google.cloud.dataproc.v1.JobReference.getDefaultInstance() - : reference_; + return reference_ == null ? com.google.cloud.dataproc.v1.JobReference.getDefaultInstance() : reference_; } else { return referenceBuilder_.getMessage(); } } /** - * - * *
      * Optional. The fully qualified reference to the job, which can be used to
      * obtain the equivalent REST path of the job resource. If this property
@@ -2396,9 +2215,7 @@ public com.google.cloud.dataproc.v1.JobReference getReference() {
      * <code>job_id</code>.
      * 
* - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setReference(com.google.cloud.dataproc.v1.JobReference value) { if (referenceBuilder_ == null) { @@ -2414,8 +2231,6 @@ public Builder setReference(com.google.cloud.dataproc.v1.JobReference value) { return this; } /** - * - * *
      * Optional. The fully qualified reference to the job, which can be used to
      * obtain the equivalent REST path of the job resource. If this property
@@ -2423,11 +2238,10 @@ public Builder setReference(com.google.cloud.dataproc.v1.JobReference value) {
      * <code>job_id</code>.
      * 
* - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setReference(com.google.cloud.dataproc.v1.JobReference.Builder builderForValue) { + public Builder setReference( + com.google.cloud.dataproc.v1.JobReference.Builder builderForValue) { if (referenceBuilder_ == null) { reference_ = builderForValue.build(); onChanged(); @@ -2438,8 +2252,6 @@ public Builder setReference(com.google.cloud.dataproc.v1.JobReference.Builder bu return this; } /** - * - * *
      * Optional. The fully qualified reference to the job, which can be used to
      * obtain the equivalent REST path of the job resource. If this property
@@ -2447,17 +2259,13 @@ public Builder setReference(com.google.cloud.dataproc.v1.JobReference.Builder bu
      * <code>job_id</code>.
      * 
* - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeReference(com.google.cloud.dataproc.v1.JobReference value) { if (referenceBuilder_ == null) { if (reference_ != null) { reference_ = - com.google.cloud.dataproc.v1.JobReference.newBuilder(reference_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.JobReference.newBuilder(reference_).mergeFrom(value).buildPartial(); } else { reference_ = value; } @@ -2469,8 +2277,6 @@ public Builder mergeReference(com.google.cloud.dataproc.v1.JobReference value) { return this; } /** - * - * *
      * Optional. The fully qualified reference to the job, which can be used to
      * obtain the equivalent REST path of the job resource. If this property
@@ -2478,9 +2284,7 @@ public Builder mergeReference(com.google.cloud.dataproc.v1.JobReference value) {
      * <code>job_id</code>.
      * 
* - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearReference() { if (referenceBuilder_ == null) { @@ -2494,8 +2298,6 @@ public Builder clearReference() { return this; } /** - * - * *
      * Optional. The fully qualified reference to the job, which can be used to
      * obtain the equivalent REST path of the job resource. If this property
@@ -2503,18 +2305,14 @@ public Builder clearReference() {
      * <code>job_id</code>.
      * 
* - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.JobReference.Builder getReferenceBuilder() { - + onChanged(); return getReferenceFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The fully qualified reference to the job, which can be used to
      * obtain the equivalent REST path of the job resource. If this property
@@ -2522,22 +2320,17 @@ public com.google.cloud.dataproc.v1.JobReference.Builder getReferenceBuilder() {
      * <code>job_id</code>.
      * 
* - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.JobReferenceOrBuilder getReferenceOrBuilder() { if (referenceBuilder_ != null) { return referenceBuilder_.getMessageOrBuilder(); } else { - return reference_ == null - ? com.google.cloud.dataproc.v1.JobReference.getDefaultInstance() - : reference_; + return reference_ == null ? + com.google.cloud.dataproc.v1.JobReference.getDefaultInstance() : reference_; } } /** - * - * *
      * Optional. The fully qualified reference to the job, which can be used to
      * obtain the equivalent REST path of the job resource. If this property
@@ -2545,22 +2338,17 @@ public com.google.cloud.dataproc.v1.JobReferenceOrBuilder getReferenceOrBuilder(
      * <code>job_id</code>.
      * 
* - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobReference, - com.google.cloud.dataproc.v1.JobReference.Builder, - com.google.cloud.dataproc.v1.JobReferenceOrBuilder> + com.google.cloud.dataproc.v1.JobReference, com.google.cloud.dataproc.v1.JobReference.Builder, com.google.cloud.dataproc.v1.JobReferenceOrBuilder> getReferenceFieldBuilder() { if (referenceBuilder_ == null) { - referenceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobReference, - com.google.cloud.dataproc.v1.JobReference.Builder, - com.google.cloud.dataproc.v1.JobReferenceOrBuilder>( - getReference(), getParentForChildren(), isClean()); + referenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.JobReference, com.google.cloud.dataproc.v1.JobReference.Builder, com.google.cloud.dataproc.v1.JobReferenceOrBuilder>( + getReference(), + getParentForChildren(), + isClean()); reference_ = null; } return referenceBuilder_; @@ -2568,61 +2356,42 @@ public com.google.cloud.dataproc.v1.JobReferenceOrBuilder getReferenceOrBuilder( private com.google.cloud.dataproc.v1.JobPlacement placement_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobPlacement, - com.google.cloud.dataproc.v1.JobPlacement.Builder, - com.google.cloud.dataproc.v1.JobPlacementOrBuilder> - placementBuilder_; + com.google.cloud.dataproc.v1.JobPlacement, com.google.cloud.dataproc.v1.JobPlacement.Builder, com.google.cloud.dataproc.v1.JobPlacementOrBuilder> placementBuilder_; /** - * - * *
      * Required. Job information, including how, when, and where to
      * run the job.
      * 
* - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the placement field is set. */ public boolean hasPlacement() { return placementBuilder_ != null || placement_ != null; } /** - * - * *
      * Required. Job information, including how, when, and where to
      * run the job.
      * 
* - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The placement. */ public com.google.cloud.dataproc.v1.JobPlacement getPlacement() { if (placementBuilder_ == null) { - return placement_ == null - ? com.google.cloud.dataproc.v1.JobPlacement.getDefaultInstance() - : placement_; + return placement_ == null ? com.google.cloud.dataproc.v1.JobPlacement.getDefaultInstance() : placement_; } else { return placementBuilder_.getMessage(); } } /** - * - * *
      * Required. Job information, including how, when, and where to
      * run the job.
      * 
* - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPlacement(com.google.cloud.dataproc.v1.JobPlacement value) { if (placementBuilder_ == null) { @@ -2638,18 +2407,15 @@ public Builder setPlacement(com.google.cloud.dataproc.v1.JobPlacement value) { return this; } /** - * - * *
      * Required. Job information, including how, when, and where to
      * run the job.
      * 
* - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setPlacement(com.google.cloud.dataproc.v1.JobPlacement.Builder builderForValue) { + public Builder setPlacement( + com.google.cloud.dataproc.v1.JobPlacement.Builder builderForValue) { if (placementBuilder_ == null) { placement_ = builderForValue.build(); onChanged(); @@ -2660,24 +2426,18 @@ public Builder setPlacement(com.google.cloud.dataproc.v1.JobPlacement.Builder bu return this; } /** - * - * *
      * Required. Job information, including how, when, and where to
      * run the job.
      * 
* - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePlacement(com.google.cloud.dataproc.v1.JobPlacement value) { if (placementBuilder_ == null) { if (placement_ != null) { placement_ = - com.google.cloud.dataproc.v1.JobPlacement.newBuilder(placement_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.JobPlacement.newBuilder(placement_).mergeFrom(value).buildPartial(); } else { placement_ = value; } @@ -2689,16 +2449,12 @@ public Builder mergePlacement(com.google.cloud.dataproc.v1.JobPlacement value) { return this; } /** - * - * *
      * Required. Job information, including how, when, and where to
      * run the job.
      * 
* - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPlacement() { if (placementBuilder_ == null) { @@ -2712,88 +2468,64 @@ public Builder clearPlacement() { return this; } /** - * - * *
      * Required. Job information, including how, when, and where to
      * run the job.
      * 
* - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.JobPlacement.Builder getPlacementBuilder() { - + onChanged(); return getPlacementFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Job information, including how, when, and where to
      * run the job.
      * 
* - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.JobPlacementOrBuilder getPlacementOrBuilder() { if (placementBuilder_ != null) { return placementBuilder_.getMessageOrBuilder(); } else { - return placement_ == null - ? com.google.cloud.dataproc.v1.JobPlacement.getDefaultInstance() - : placement_; + return placement_ == null ? + com.google.cloud.dataproc.v1.JobPlacement.getDefaultInstance() : placement_; } } /** - * - * *
      * Required. Job information, including how, when, and where to
      * run the job.
      * 
* - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobPlacement, - com.google.cloud.dataproc.v1.JobPlacement.Builder, - com.google.cloud.dataproc.v1.JobPlacementOrBuilder> + com.google.cloud.dataproc.v1.JobPlacement, com.google.cloud.dataproc.v1.JobPlacement.Builder, com.google.cloud.dataproc.v1.JobPlacementOrBuilder> getPlacementFieldBuilder() { if (placementBuilder_ == null) { - placementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobPlacement, - com.google.cloud.dataproc.v1.JobPlacement.Builder, - com.google.cloud.dataproc.v1.JobPlacementOrBuilder>( - getPlacement(), getParentForChildren(), isClean()); + placementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.JobPlacement, com.google.cloud.dataproc.v1.JobPlacement.Builder, com.google.cloud.dataproc.v1.JobPlacementOrBuilder>( + getPlacement(), + getParentForChildren(), + isClean()); placement_ = null; } return placementBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HadoopJob, - com.google.cloud.dataproc.v1.HadoopJob.Builder, - com.google.cloud.dataproc.v1.HadoopJobOrBuilder> - hadoopJobBuilder_; + com.google.cloud.dataproc.v1.HadoopJob, com.google.cloud.dataproc.v1.HadoopJob.Builder, com.google.cloud.dataproc.v1.HadoopJobOrBuilder> hadoopJobBuilder_; /** - * - * *
      * Optional. Job is a Hadoop job.
      * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the hadoopJob field is set. */ @java.lang.Override @@ -2801,16 +2533,11 @@ public boolean hasHadoopJob() { return typeJobCase_ == 3; } /** - * - * *
      * Optional. Job is a Hadoop job.
      * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The hadoopJob. */ @java.lang.Override @@ -2828,15 +2555,11 @@ public com.google.cloud.dataproc.v1.HadoopJob getHadoopJob() { } } /** - * - * *
      * Optional. Job is a Hadoop job.
      * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { if (hadoopJobBuilder_ == null) { @@ -2852,17 +2575,14 @@ public Builder setHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { return this; } /** - * - * *
      * Optional. Job is a Hadoop job.
      * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setHadoopJob(com.google.cloud.dataproc.v1.HadoopJob.Builder builderForValue) { + public Builder setHadoopJob( + com.google.cloud.dataproc.v1.HadoopJob.Builder builderForValue) { if (hadoopJobBuilder_ == null) { typeJob_ = builderForValue.build(); onChanged(); @@ -2873,25 +2593,18 @@ public Builder setHadoopJob(com.google.cloud.dataproc.v1.HadoopJob.Builder build return this; } /** - * - * *
      * Optional. Job is a Hadoop job.
      * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { if (hadoopJobBuilder_ == null) { - if (typeJobCase_ == 3 - && typeJob_ != com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1.HadoopJob.newBuilder( - (com.google.cloud.dataproc.v1.HadoopJob) typeJob_) - .mergeFrom(value) - .buildPartial(); + if (typeJobCase_ == 3 && + typeJob_ != com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance()) { + typeJob_ = com.google.cloud.dataproc.v1.HadoopJob.newBuilder((com.google.cloud.dataproc.v1.HadoopJob) typeJob_) + .mergeFrom(value).buildPartial(); } else { typeJob_ = value; } @@ -2907,15 +2620,11 @@ public Builder mergeHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { return this; } /** - * - * *
      * Optional. Job is a Hadoop job.
      * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearHadoopJob() { if (hadoopJobBuilder_ == null) { @@ -2934,29 +2643,21 @@ public Builder clearHadoopJob() { return this; } /** - * - * *
      * Optional. Job is a Hadoop job.
      * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.HadoopJob.Builder getHadoopJobBuilder() { return getHadoopJobFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Job is a Hadoop job.
      * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder() { @@ -2970,57 +2671,39 @@ public com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder() { } } /** - * - * *
      * Optional. Job is a Hadoop job.
      * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HadoopJob, - com.google.cloud.dataproc.v1.HadoopJob.Builder, - com.google.cloud.dataproc.v1.HadoopJobOrBuilder> + com.google.cloud.dataproc.v1.HadoopJob, com.google.cloud.dataproc.v1.HadoopJob.Builder, com.google.cloud.dataproc.v1.HadoopJobOrBuilder> getHadoopJobFieldBuilder() { if (hadoopJobBuilder_ == null) { if (!(typeJobCase_ == 3)) { typeJob_ = com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); } - hadoopJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HadoopJob, - com.google.cloud.dataproc.v1.HadoopJob.Builder, - com.google.cloud.dataproc.v1.HadoopJobOrBuilder>( + hadoopJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.HadoopJob, com.google.cloud.dataproc.v1.HadoopJob.Builder, com.google.cloud.dataproc.v1.HadoopJobOrBuilder>( (com.google.cloud.dataproc.v1.HadoopJob) typeJob_, getParentForChildren(), isClean()); typeJob_ = null; } typeJobCase_ = 3; - onChanged(); - ; + onChanged();; return hadoopJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkJob, - com.google.cloud.dataproc.v1.SparkJob.Builder, - com.google.cloud.dataproc.v1.SparkJobOrBuilder> - sparkJobBuilder_; + com.google.cloud.dataproc.v1.SparkJob, com.google.cloud.dataproc.v1.SparkJob.Builder, com.google.cloud.dataproc.v1.SparkJobOrBuilder> sparkJobBuilder_; /** - * - * *
      * Optional. Job is a Spark job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkJob field is set. */ @java.lang.Override @@ -3028,16 +2711,11 @@ public boolean hasSparkJob() { return typeJobCase_ == 4; } /** - * - * *
      * Optional. Job is a Spark job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkJob. */ @java.lang.Override @@ -3055,15 +2733,11 @@ public com.google.cloud.dataproc.v1.SparkJob getSparkJob() { } } /** - * - * *
      * Optional. Job is a Spark job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { if (sparkJobBuilder_ == null) { @@ -3079,17 +2753,14 @@ public Builder setSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { return this; } /** - * - * *
      * Optional. Job is a Spark job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setSparkJob(com.google.cloud.dataproc.v1.SparkJob.Builder builderForValue) { + public Builder setSparkJob( + com.google.cloud.dataproc.v1.SparkJob.Builder builderForValue) { if (sparkJobBuilder_ == null) { typeJob_ = builderForValue.build(); onChanged(); @@ -3100,25 +2771,18 @@ public Builder setSparkJob(com.google.cloud.dataproc.v1.SparkJob.Builder builder return this; } /** - * - * *
      * Optional. Job is a Spark job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { if (sparkJobBuilder_ == null) { - if (typeJobCase_ == 4 - && typeJob_ != com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1.SparkJob.newBuilder( - (com.google.cloud.dataproc.v1.SparkJob) typeJob_) - .mergeFrom(value) - .buildPartial(); + if (typeJobCase_ == 4 && + typeJob_ != com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance()) { + typeJob_ = com.google.cloud.dataproc.v1.SparkJob.newBuilder((com.google.cloud.dataproc.v1.SparkJob) typeJob_) + .mergeFrom(value).buildPartial(); } else { typeJob_ = value; } @@ -3134,15 +2798,11 @@ public Builder mergeSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { return this; } /** - * - * *
      * Optional. Job is a Spark job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSparkJob() { if (sparkJobBuilder_ == null) { @@ -3161,29 +2821,21 @@ public Builder clearSparkJob() { return this; } /** - * - * *
      * Optional. Job is a Spark job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.SparkJob.Builder getSparkJobBuilder() { return getSparkJobFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Job is a Spark job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder() { @@ -3197,57 +2849,39 @@ public com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder() { } } /** - * - * *
      * Optional. Job is a Spark job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkJob, - com.google.cloud.dataproc.v1.SparkJob.Builder, - com.google.cloud.dataproc.v1.SparkJobOrBuilder> + com.google.cloud.dataproc.v1.SparkJob, com.google.cloud.dataproc.v1.SparkJob.Builder, com.google.cloud.dataproc.v1.SparkJobOrBuilder> getSparkJobFieldBuilder() { if (sparkJobBuilder_ == null) { if (!(typeJobCase_ == 4)) { typeJob_ = com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); } - sparkJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkJob, - com.google.cloud.dataproc.v1.SparkJob.Builder, - com.google.cloud.dataproc.v1.SparkJobOrBuilder>( + sparkJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkJob, com.google.cloud.dataproc.v1.SparkJob.Builder, com.google.cloud.dataproc.v1.SparkJobOrBuilder>( (com.google.cloud.dataproc.v1.SparkJob) typeJob_, getParentForChildren(), isClean()); typeJob_ = null; } typeJobCase_ = 4; - onChanged(); - ; + onChanged();; return sparkJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkJob, - com.google.cloud.dataproc.v1.PySparkJob.Builder, - com.google.cloud.dataproc.v1.PySparkJobOrBuilder> - pysparkJobBuilder_; + com.google.cloud.dataproc.v1.PySparkJob, com.google.cloud.dataproc.v1.PySparkJob.Builder, com.google.cloud.dataproc.v1.PySparkJobOrBuilder> pysparkJobBuilder_; /** - * - * *
      * Optional. Job is a PySpark job.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pysparkJob field is set. */ @java.lang.Override @@ -3255,16 +2889,11 @@ public boolean hasPysparkJob() { return typeJobCase_ == 5; } /** - * - * *
      * Optional. Job is a PySpark job.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The pysparkJob. */ @java.lang.Override @@ -3282,15 +2911,11 @@ public com.google.cloud.dataproc.v1.PySparkJob getPysparkJob() { } } /** - * - * *
      * Optional. Job is a PySpark job.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { if (pysparkJobBuilder_ == null) { @@ -3306,17 +2931,14 @@ public Builder setPysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { return this; } /** - * - * *
      * Optional. Job is a PySpark job.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPysparkJob(com.google.cloud.dataproc.v1.PySparkJob.Builder builderForValue) { + public Builder setPysparkJob( + com.google.cloud.dataproc.v1.PySparkJob.Builder builderForValue) { if (pysparkJobBuilder_ == null) { typeJob_ = builderForValue.build(); onChanged(); @@ -3327,25 +2949,18 @@ public Builder setPysparkJob(com.google.cloud.dataproc.v1.PySparkJob.Builder bui return this; } /** - * - * *
      * Optional. Job is a PySpark job.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergePysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { if (pysparkJobBuilder_ == null) { - if (typeJobCase_ == 5 - && typeJob_ != com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1.PySparkJob.newBuilder( - (com.google.cloud.dataproc.v1.PySparkJob) typeJob_) - .mergeFrom(value) - .buildPartial(); + if (typeJobCase_ == 5 && + typeJob_ != com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance()) { + typeJob_ = com.google.cloud.dataproc.v1.PySparkJob.newBuilder((com.google.cloud.dataproc.v1.PySparkJob) typeJob_) + .mergeFrom(value).buildPartial(); } else { typeJob_ = value; } @@ -3361,15 +2976,11 @@ public Builder mergePysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { return this; } /** - * - * *
      * Optional. Job is a PySpark job.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPysparkJob() { if (pysparkJobBuilder_ == null) { @@ -3388,29 +2999,21 @@ public Builder clearPysparkJob() { return this; } /** - * - * *
      * Optional. Job is a PySpark job.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.PySparkJob.Builder getPysparkJobBuilder() { return getPysparkJobFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Job is a PySpark job.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder() { @@ -3424,57 +3027,39 @@ public com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder() } } /** - * - * *
      * Optional. Job is a PySpark job.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkJob, - com.google.cloud.dataproc.v1.PySparkJob.Builder, - com.google.cloud.dataproc.v1.PySparkJobOrBuilder> + com.google.cloud.dataproc.v1.PySparkJob, com.google.cloud.dataproc.v1.PySparkJob.Builder, com.google.cloud.dataproc.v1.PySparkJobOrBuilder> getPysparkJobFieldBuilder() { if (pysparkJobBuilder_ == null) { if (!(typeJobCase_ == 5)) { typeJob_ = com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); } - pysparkJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkJob, - com.google.cloud.dataproc.v1.PySparkJob.Builder, - com.google.cloud.dataproc.v1.PySparkJobOrBuilder>( + pysparkJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PySparkJob, com.google.cloud.dataproc.v1.PySparkJob.Builder, com.google.cloud.dataproc.v1.PySparkJobOrBuilder>( (com.google.cloud.dataproc.v1.PySparkJob) typeJob_, getParentForChildren(), isClean()); typeJob_ = null; } typeJobCase_ = 5; - onChanged(); - ; + onChanged();; return pysparkJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HiveJob, - com.google.cloud.dataproc.v1.HiveJob.Builder, - com.google.cloud.dataproc.v1.HiveJobOrBuilder> - hiveJobBuilder_; + com.google.cloud.dataproc.v1.HiveJob, com.google.cloud.dataproc.v1.HiveJob.Builder, com.google.cloud.dataproc.v1.HiveJobOrBuilder> hiveJobBuilder_; /** - * - * *
      * Optional. Job is a Hive job.
      * 
* - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the hiveJob field is set. */ @java.lang.Override @@ -3482,16 +3067,11 @@ public boolean hasHiveJob() { return typeJobCase_ == 6; } /** - * - * *
      * Optional. Job is a Hive job.
      * 
* - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The hiveJob. */ @java.lang.Override @@ -3509,15 +3089,11 @@ public com.google.cloud.dataproc.v1.HiveJob getHiveJob() { } } /** - * - * *
      * Optional. Job is a Hive job.
      * 
* - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { if (hiveJobBuilder_ == null) { @@ -3533,17 +3109,14 @@ public Builder setHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { return this; } /** - * - * *
      * Optional. Job is a Hive job.
      * 
* - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setHiveJob(com.google.cloud.dataproc.v1.HiveJob.Builder builderForValue) { + public Builder setHiveJob( + com.google.cloud.dataproc.v1.HiveJob.Builder builderForValue) { if (hiveJobBuilder_ == null) { typeJob_ = builderForValue.build(); onChanged(); @@ -3554,25 +3127,18 @@ public Builder setHiveJob(com.google.cloud.dataproc.v1.HiveJob.Builder builderFo return this; } /** - * - * *
      * Optional. Job is a Hive job.
      * 
* - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { if (hiveJobBuilder_ == null) { - if (typeJobCase_ == 6 - && typeJob_ != com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1.HiveJob.newBuilder( - (com.google.cloud.dataproc.v1.HiveJob) typeJob_) - .mergeFrom(value) - .buildPartial(); + if (typeJobCase_ == 6 && + typeJob_ != com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance()) { + typeJob_ = com.google.cloud.dataproc.v1.HiveJob.newBuilder((com.google.cloud.dataproc.v1.HiveJob) typeJob_) + .mergeFrom(value).buildPartial(); } else { typeJob_ = value; } @@ -3588,15 +3154,11 @@ public Builder mergeHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { return this; } /** - * - * *
      * Optional. Job is a Hive job.
      * 
* - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearHiveJob() { if (hiveJobBuilder_ == null) { @@ -3615,29 +3177,21 @@ public Builder clearHiveJob() { return this; } /** - * - * *
      * Optional. Job is a Hive job.
      * 
* - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.HiveJob.Builder getHiveJobBuilder() { return getHiveJobFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Job is a Hive job.
      * 
* - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder() { @@ -3651,54 +3205,39 @@ public com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder() { } } /** - * - * *
      * Optional. Job is a Hive job.
      * 
* - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HiveJob, - com.google.cloud.dataproc.v1.HiveJob.Builder, - com.google.cloud.dataproc.v1.HiveJobOrBuilder> + com.google.cloud.dataproc.v1.HiveJob, com.google.cloud.dataproc.v1.HiveJob.Builder, com.google.cloud.dataproc.v1.HiveJobOrBuilder> getHiveJobFieldBuilder() { if (hiveJobBuilder_ == null) { if (!(typeJobCase_ == 6)) { typeJob_ = com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); } - hiveJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HiveJob, - com.google.cloud.dataproc.v1.HiveJob.Builder, - com.google.cloud.dataproc.v1.HiveJobOrBuilder>( - (com.google.cloud.dataproc.v1.HiveJob) typeJob_, getParentForChildren(), isClean()); + hiveJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.HiveJob, com.google.cloud.dataproc.v1.HiveJob.Builder, com.google.cloud.dataproc.v1.HiveJobOrBuilder>( + (com.google.cloud.dataproc.v1.HiveJob) typeJob_, + getParentForChildren(), + isClean()); typeJob_ = null; } typeJobCase_ = 6; - onChanged(); - ; + onChanged();; return hiveJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PigJob, - com.google.cloud.dataproc.v1.PigJob.Builder, - com.google.cloud.dataproc.v1.PigJobOrBuilder> - pigJobBuilder_; + com.google.cloud.dataproc.v1.PigJob, com.google.cloud.dataproc.v1.PigJob.Builder, com.google.cloud.dataproc.v1.PigJobOrBuilder> pigJobBuilder_; /** - * - * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pigJob field is set. */ @java.lang.Override @@ -3706,15 +3245,11 @@ public boolean hasPigJob() { return typeJobCase_ == 7; } /** - * - * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The pigJob. */ @java.lang.Override @@ -3732,14 +3267,11 @@ public com.google.cloud.dataproc.v1.PigJob getPigJob() { } } /** - * - * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPigJob(com.google.cloud.dataproc.v1.PigJob value) { if (pigJobBuilder_ == null) { @@ -3755,16 +3287,14 @@ public Builder setPigJob(com.google.cloud.dataproc.v1.PigJob value) { return this; } /** - * - * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPigJob(com.google.cloud.dataproc.v1.PigJob.Builder builderForValue) { + public Builder setPigJob( + com.google.cloud.dataproc.v1.PigJob.Builder builderForValue) { if (pigJobBuilder_ == null) { typeJob_ = builderForValue.build(); onChanged(); @@ -3775,24 +3305,18 @@ public Builder setPigJob(com.google.cloud.dataproc.v1.PigJob.Builder builderForV return this; } /** - * - * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergePigJob(com.google.cloud.dataproc.v1.PigJob value) { if (pigJobBuilder_ == null) { - if (typeJobCase_ == 7 - && typeJob_ != com.google.cloud.dataproc.v1.PigJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1.PigJob.newBuilder( - (com.google.cloud.dataproc.v1.PigJob) typeJob_) - .mergeFrom(value) - .buildPartial(); + if (typeJobCase_ == 7 && + typeJob_ != com.google.cloud.dataproc.v1.PigJob.getDefaultInstance()) { + typeJob_ = com.google.cloud.dataproc.v1.PigJob.newBuilder((com.google.cloud.dataproc.v1.PigJob) typeJob_) + .mergeFrom(value).buildPartial(); } else { typeJob_ = value; } @@ -3808,14 +3332,11 @@ public Builder mergePigJob(com.google.cloud.dataproc.v1.PigJob value) { return this; } /** - * - * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPigJob() { if (pigJobBuilder_ == null) { @@ -3834,27 +3355,21 @@ public Builder clearPigJob() { return this; } /** - * - * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.PigJob.Builder getPigJobBuilder() { return getPigJobFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder() { @@ -3868,54 +3383,39 @@ public com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder() { } } /** - * - * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PigJob, - com.google.cloud.dataproc.v1.PigJob.Builder, - com.google.cloud.dataproc.v1.PigJobOrBuilder> + com.google.cloud.dataproc.v1.PigJob, com.google.cloud.dataproc.v1.PigJob.Builder, com.google.cloud.dataproc.v1.PigJobOrBuilder> getPigJobFieldBuilder() { if (pigJobBuilder_ == null) { if (!(typeJobCase_ == 7)) { typeJob_ = com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); } - pigJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PigJob, - com.google.cloud.dataproc.v1.PigJob.Builder, - com.google.cloud.dataproc.v1.PigJobOrBuilder>( - (com.google.cloud.dataproc.v1.PigJob) typeJob_, getParentForChildren(), isClean()); + pigJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PigJob, com.google.cloud.dataproc.v1.PigJob.Builder, com.google.cloud.dataproc.v1.PigJobOrBuilder>( + (com.google.cloud.dataproc.v1.PigJob) typeJob_, + getParentForChildren(), + isClean()); typeJob_ = null; } typeJobCase_ = 7; - onChanged(); - ; + onChanged();; return pigJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRJob, - com.google.cloud.dataproc.v1.SparkRJob.Builder, - com.google.cloud.dataproc.v1.SparkRJobOrBuilder> - sparkRJobBuilder_; + com.google.cloud.dataproc.v1.SparkRJob, com.google.cloud.dataproc.v1.SparkRJob.Builder, com.google.cloud.dataproc.v1.SparkRJobOrBuilder> sparkRJobBuilder_; /** - * - * *
      * Optional. Job is a SparkR job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkRJob field is set. */ @java.lang.Override @@ -3923,16 +3423,11 @@ public boolean hasSparkRJob() { return typeJobCase_ == 21; } /** - * - * *
      * Optional. Job is a SparkR job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkRJob. */ @java.lang.Override @@ -3950,15 +3445,11 @@ public com.google.cloud.dataproc.v1.SparkRJob getSparkRJob() { } } /** - * - * *
      * Optional. Job is a SparkR job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { if (sparkRJobBuilder_ == null) { @@ -3974,17 +3465,14 @@ public Builder setSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { return this; } /** - * - * *
      * Optional. Job is a SparkR job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setSparkRJob(com.google.cloud.dataproc.v1.SparkRJob.Builder builderForValue) { + public Builder setSparkRJob( + com.google.cloud.dataproc.v1.SparkRJob.Builder builderForValue) { if (sparkRJobBuilder_ == null) { typeJob_ = builderForValue.build(); onChanged(); @@ -3995,25 +3483,18 @@ public Builder setSparkRJob(com.google.cloud.dataproc.v1.SparkRJob.Builder build return this; } /** - * - * *
      * Optional. Job is a SparkR job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { if (sparkRJobBuilder_ == null) { - if (typeJobCase_ == 21 - && typeJob_ != com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1.SparkRJob.newBuilder( - (com.google.cloud.dataproc.v1.SparkRJob) typeJob_) - .mergeFrom(value) - .buildPartial(); + if (typeJobCase_ == 21 && + typeJob_ != com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance()) { + typeJob_ = com.google.cloud.dataproc.v1.SparkRJob.newBuilder((com.google.cloud.dataproc.v1.SparkRJob) typeJob_) + .mergeFrom(value).buildPartial(); } else { typeJob_ = value; } @@ -4029,15 +3510,11 @@ public Builder mergeSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { return this; } /** - * - * *
      * Optional. Job is a SparkR job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSparkRJob() { if (sparkRJobBuilder_ == null) { @@ -4056,29 +3533,21 @@ public Builder clearSparkRJob() { return this; } /** - * - * *
      * Optional. Job is a SparkR job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.SparkRJob.Builder getSparkRJobBuilder() { return getSparkRJobFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Job is a SparkR job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder() { @@ -4092,57 +3561,39 @@ public com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder() { } } /** - * - * *
      * Optional. Job is a SparkR job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRJob, - com.google.cloud.dataproc.v1.SparkRJob.Builder, - com.google.cloud.dataproc.v1.SparkRJobOrBuilder> + com.google.cloud.dataproc.v1.SparkRJob, com.google.cloud.dataproc.v1.SparkRJob.Builder, com.google.cloud.dataproc.v1.SparkRJobOrBuilder> getSparkRJobFieldBuilder() { if (sparkRJobBuilder_ == null) { if (!(typeJobCase_ == 21)) { typeJob_ = com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); } - sparkRJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRJob, - com.google.cloud.dataproc.v1.SparkRJob.Builder, - com.google.cloud.dataproc.v1.SparkRJobOrBuilder>( + sparkRJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkRJob, com.google.cloud.dataproc.v1.SparkRJob.Builder, com.google.cloud.dataproc.v1.SparkRJobOrBuilder>( (com.google.cloud.dataproc.v1.SparkRJob) typeJob_, getParentForChildren(), isClean()); typeJob_ = null; } typeJobCase_ = 21; - onChanged(); - ; + onChanged();; return sparkRJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlJob, - com.google.cloud.dataproc.v1.SparkSqlJob.Builder, - com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> - sparkSqlJobBuilder_; + com.google.cloud.dataproc.v1.SparkSqlJob, com.google.cloud.dataproc.v1.SparkSqlJob.Builder, com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> sparkSqlJobBuilder_; /** - * - * *
      * Optional. Job is a SparkSql job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkSqlJob field is set. */ @java.lang.Override @@ -4150,16 +3601,11 @@ public boolean hasSparkSqlJob() { return typeJobCase_ == 12; } /** - * - * *
      * Optional. Job is a SparkSql job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkSqlJob. */ @java.lang.Override @@ -4177,15 +3623,11 @@ public com.google.cloud.dataproc.v1.SparkSqlJob getSparkSqlJob() { } } /** - * - * *
      * Optional. Job is a SparkSql job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) { if (sparkSqlJobBuilder_ == null) { @@ -4201,15 +3643,11 @@ public Builder setSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) { return this; } /** - * - * *
      * Optional. Job is a SparkSql job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSparkSqlJob( com.google.cloud.dataproc.v1.SparkSqlJob.Builder builderForValue) { @@ -4223,25 +3661,18 @@ public Builder setSparkSqlJob( return this; } /** - * - * *
      * Optional. Job is a SparkSql job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) { if (sparkSqlJobBuilder_ == null) { - if (typeJobCase_ == 12 - && typeJob_ != com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1.SparkSqlJob.newBuilder( - (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_) - .mergeFrom(value) - .buildPartial(); + if (typeJobCase_ == 12 && + typeJob_ != com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance()) { + typeJob_ = com.google.cloud.dataproc.v1.SparkSqlJob.newBuilder((com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_) + .mergeFrom(value).buildPartial(); } else { typeJob_ = value; } @@ -4257,15 +3688,11 @@ public Builder mergeSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) return this; } /** - * - * *
      * Optional. Job is a SparkSql job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSparkSqlJob() { if (sparkSqlJobBuilder_ == null) { @@ -4284,29 +3711,21 @@ public Builder clearSparkSqlJob() { return this; } /** - * - * *
      * Optional. Job is a SparkSql job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.SparkSqlJob.Builder getSparkSqlJobBuilder() { return getSparkSqlJobFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Job is a SparkSql job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder() { @@ -4320,57 +3739,39 @@ public com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder } } /** - * - * *
      * Optional. Job is a SparkSql job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlJob, - com.google.cloud.dataproc.v1.SparkSqlJob.Builder, - com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> + com.google.cloud.dataproc.v1.SparkSqlJob, com.google.cloud.dataproc.v1.SparkSqlJob.Builder, com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> getSparkSqlJobFieldBuilder() { if (sparkSqlJobBuilder_ == null) { if (!(typeJobCase_ == 12)) { typeJob_ = com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); } - sparkSqlJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlJob, - com.google.cloud.dataproc.v1.SparkSqlJob.Builder, - com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder>( + sparkSqlJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkSqlJob, com.google.cloud.dataproc.v1.SparkSqlJob.Builder, com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder>( (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_, getParentForChildren(), isClean()); typeJob_ = null; } typeJobCase_ = 12; - onChanged(); - ; + onChanged();; return sparkSqlJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PrestoJob, - com.google.cloud.dataproc.v1.PrestoJob.Builder, - com.google.cloud.dataproc.v1.PrestoJobOrBuilder> - prestoJobBuilder_; + com.google.cloud.dataproc.v1.PrestoJob, com.google.cloud.dataproc.v1.PrestoJob.Builder, com.google.cloud.dataproc.v1.PrestoJobOrBuilder> prestoJobBuilder_; /** - * - * *
      * Optional. Job is a Presto job.
      * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the prestoJob field is set. */ @java.lang.Override @@ -4378,16 +3779,11 @@ public boolean hasPrestoJob() { return typeJobCase_ == 23; } /** - * - * *
      * Optional. Job is a Presto job.
      * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; * @return The prestoJob. */ @java.lang.Override @@ -4405,15 +3801,11 @@ public com.google.cloud.dataproc.v1.PrestoJob getPrestoJob() { } } /** - * - * *
      * Optional. Job is a Presto job.
      * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { if (prestoJobBuilder_ == null) { @@ -4429,17 +3821,14 @@ public Builder setPrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { return this; } /** - * - * *
      * Optional. Job is a Presto job.
      * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPrestoJob(com.google.cloud.dataproc.v1.PrestoJob.Builder builderForValue) { + public Builder setPrestoJob( + com.google.cloud.dataproc.v1.PrestoJob.Builder builderForValue) { if (prestoJobBuilder_ == null) { typeJob_ = builderForValue.build(); onChanged(); @@ -4450,25 +3839,18 @@ public Builder setPrestoJob(com.google.cloud.dataproc.v1.PrestoJob.Builder build return this; } /** - * - * *
      * Optional. Job is a Presto job.
      * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergePrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { if (prestoJobBuilder_ == null) { - if (typeJobCase_ == 23 - && typeJob_ != com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1.PrestoJob.newBuilder( - (com.google.cloud.dataproc.v1.PrestoJob) typeJob_) - .mergeFrom(value) - .buildPartial(); + if (typeJobCase_ == 23 && + typeJob_ != com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance()) { + typeJob_ = com.google.cloud.dataproc.v1.PrestoJob.newBuilder((com.google.cloud.dataproc.v1.PrestoJob) typeJob_) + .mergeFrom(value).buildPartial(); } else { typeJob_ = value; } @@ -4484,15 +3866,11 @@ public Builder mergePrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { return this; } /** - * - * *
      * Optional. Job is a Presto job.
      * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPrestoJob() { if (prestoJobBuilder_ == null) { @@ -4511,29 +3889,21 @@ public Builder clearPrestoJob() { return this; } /** - * - * *
      * Optional. Job is a Presto job.
      * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.PrestoJob.Builder getPrestoJobBuilder() { return getPrestoJobFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Job is a Presto job.
      * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder() { @@ -4547,101 +3917,72 @@ public com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder() { } } /** - * - * *
      * Optional. Job is a Presto job.
      * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PrestoJob, - com.google.cloud.dataproc.v1.PrestoJob.Builder, - com.google.cloud.dataproc.v1.PrestoJobOrBuilder> + com.google.cloud.dataproc.v1.PrestoJob, com.google.cloud.dataproc.v1.PrestoJob.Builder, com.google.cloud.dataproc.v1.PrestoJobOrBuilder> getPrestoJobFieldBuilder() { if (prestoJobBuilder_ == null) { if (!(typeJobCase_ == 23)) { typeJob_ = com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); } - prestoJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PrestoJob, - com.google.cloud.dataproc.v1.PrestoJob.Builder, - com.google.cloud.dataproc.v1.PrestoJobOrBuilder>( + prestoJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PrestoJob, com.google.cloud.dataproc.v1.PrestoJob.Builder, com.google.cloud.dataproc.v1.PrestoJobOrBuilder>( (com.google.cloud.dataproc.v1.PrestoJob) typeJob_, getParentForChildren(), isClean()); typeJob_ = null; } typeJobCase_ = 23; - onChanged(); - ; + onChanged();; return prestoJobBuilder_; } private com.google.cloud.dataproc.v1.JobStatus status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, - com.google.cloud.dataproc.v1.JobStatus.Builder, - com.google.cloud.dataproc.v1.JobStatusOrBuilder> - statusBuilder_; + com.google.cloud.dataproc.v1.JobStatus, com.google.cloud.dataproc.v1.JobStatus.Builder, com.google.cloud.dataproc.v1.JobStatusOrBuilder> statusBuilder_; /** - * - * *
      * Output only. The job status. Additional application-specific
      * status information may be contained in the <code>type_job</code>
      * and <code>yarn_applications</code> fields.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** - * - * *
      * Output only. The job status. Additional application-specific
      * status information may be contained in the <code>type_job</code>
      * and <code>yarn_applications</code> fields.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ public com.google.cloud.dataproc.v1.JobStatus getStatus() { if (statusBuilder_ == null) { - return status_ == null - ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() - : status_; + return status_ == null ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** - * - * *
      * Output only. The job status. Additional application-specific
      * status information may be contained in the <code>type_job</code>
      * and <code>yarn_applications</code> fields.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStatus(com.google.cloud.dataproc.v1.JobStatus value) { if (statusBuilder_ == null) { @@ -4657,19 +3998,16 @@ public Builder setStatus(com.google.cloud.dataproc.v1.JobStatus value) { return this; } /** - * - * *
      * Output only. The job status. Additional application-specific
      * status information may be contained in the <code>type_job</code>
      * and <code>yarn_applications</code> fields.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStatus(com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { + public Builder setStatus( + com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); @@ -4680,25 +4018,19 @@ public Builder setStatus(com.google.cloud.dataproc.v1.JobStatus.Builder builderF return this; } /** - * - * *
      * Output only. The job status. Additional application-specific
      * status information may be contained in the <code>type_job</code>
      * and <code>yarn_applications</code> fields.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStatus(com.google.cloud.dataproc.v1.JobStatus value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = - com.google.cloud.dataproc.v1.JobStatus.newBuilder(status_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.JobStatus.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } @@ -4710,17 +4042,13 @@ public Builder mergeStatus(com.google.cloud.dataproc.v1.JobStatus value) { return this; } /** - * - * *
      * Output only. The job status. Additional application-specific
      * status information may be contained in the <code>type_job</code>
      * and <code>yarn_applications</code> fields.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStatus() { if (statusBuilder_ == null) { @@ -4734,102 +4062,77 @@ public Builder clearStatus() { return this; } /** - * - * *
      * Output only. The job status. Additional application-specific
      * status information may be contained in the <code>type_job</code>
      * and <code>yarn_applications</code> fields.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.JobStatus.Builder getStatusBuilder() { - + onChanged(); return getStatusFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The job status. Additional application-specific
      * status information may be contained in the <code>type_job</code>
      * and <code>yarn_applications</code> fields.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null - ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() - : status_; + return status_ == null ? + com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() : status_; } } /** - * - * *
      * Output only. The job status. Additional application-specific
      * status information may be contained in the <code>type_job</code>
      * and <code>yarn_applications</code> fields.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, - com.google.cloud.dataproc.v1.JobStatus.Builder, - com.google.cloud.dataproc.v1.JobStatusOrBuilder> + com.google.cloud.dataproc.v1.JobStatus, com.google.cloud.dataproc.v1.JobStatus.Builder, com.google.cloud.dataproc.v1.JobStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, - com.google.cloud.dataproc.v1.JobStatus.Builder, - com.google.cloud.dataproc.v1.JobStatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.JobStatus, com.google.cloud.dataproc.v1.JobStatus.Builder, com.google.cloud.dataproc.v1.JobStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); status_ = null; } return statusBuilder_; } private java.util.List statusHistory_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStatusHistoryIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - statusHistory_ = - new java.util.ArrayList(statusHistory_); + statusHistory_ = new java.util.ArrayList(statusHistory_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, - com.google.cloud.dataproc.v1.JobStatus.Builder, - com.google.cloud.dataproc.v1.JobStatusOrBuilder> - statusHistoryBuilder_; + com.google.cloud.dataproc.v1.JobStatus, com.google.cloud.dataproc.v1.JobStatus.Builder, com.google.cloud.dataproc.v1.JobStatusOrBuilder> statusHistoryBuilder_; /** - * - * *
      * Output only. The previous job status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getStatusHistoryList() { if (statusHistoryBuilder_ == null) { @@ -4839,15 +4142,11 @@ public java.util.List getStatusHistoryLi } } /** - * - * *
      * Output only. The previous job status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getStatusHistoryCount() { if (statusHistoryBuilder_ == null) { @@ -4857,15 +4156,11 @@ public int getStatusHistoryCount() { } } /** - * - * *
      * Output only. The previous job status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.JobStatus getStatusHistory(int index) { if (statusHistoryBuilder_ == null) { @@ -4875,17 +4170,14 @@ public com.google.cloud.dataproc.v1.JobStatus getStatusHistory(int index) { } } /** - * - * *
      * Output only. The previous job status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStatusHistory(int index, com.google.cloud.dataproc.v1.JobStatus value) { + public Builder setStatusHistory( + int index, com.google.cloud.dataproc.v1.JobStatus value) { if (statusHistoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4899,15 +4191,11 @@ public Builder setStatusHistory(int index, com.google.cloud.dataproc.v1.JobStatu return this; } /** - * - * *
      * Output only. The previous job status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStatusHistory( int index, com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { @@ -4921,15 +4209,11 @@ public Builder setStatusHistory( return this; } /** - * - * *
      * Output only. The previous job status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStatusHistory(com.google.cloud.dataproc.v1.JobStatus value) { if (statusHistoryBuilder_ == null) { @@ -4945,17 +4229,14 @@ public Builder addStatusHistory(com.google.cloud.dataproc.v1.JobStatus value) { return this; } /** - * - * *
      * Output only. The previous job status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addStatusHistory(int index, com.google.cloud.dataproc.v1.JobStatus value) { + public Builder addStatusHistory( + int index, com.google.cloud.dataproc.v1.JobStatus value) { if (statusHistoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4969,15 +4250,11 @@ public Builder addStatusHistory(int index, com.google.cloud.dataproc.v1.JobStatu return this; } /** - * - * *
      * Output only. The previous job status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStatusHistory( com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { @@ -4991,15 +4268,11 @@ public Builder addStatusHistory( return this; } /** - * - * *
      * Output only. The previous job status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStatusHistory( int index, com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { @@ -5013,21 +4286,18 @@ public Builder addStatusHistory( return this; } /** - * - * *
      * Output only. The previous job status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllStatusHistory( java.lang.Iterable values) { if (statusHistoryBuilder_ == null) { ensureStatusHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statusHistory_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, statusHistory_); onChanged(); } else { statusHistoryBuilder_.addAllMessages(values); @@ -5035,15 +4305,11 @@ public Builder addAllStatusHistory( return this; } /** - * - * *
      * Output only. The previous job status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStatusHistory() { if (statusHistoryBuilder_ == null) { @@ -5056,15 +4322,11 @@ public Builder clearStatusHistory() { return this; } /** - * - * *
      * Output only. The previous job status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeStatusHistory(int index) { if (statusHistoryBuilder_ == null) { @@ -5077,50 +4339,39 @@ public Builder removeStatusHistory(int index) { return this; } /** - * - * *
      * Output only. The previous job status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.JobStatus.Builder getStatusHistoryBuilder(int index) { + public com.google.cloud.dataproc.v1.JobStatus.Builder getStatusHistoryBuilder( + int index) { return getStatusHistoryFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. The previous job status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusHistoryOrBuilder(int index) { + public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusHistoryOrBuilder( + int index) { if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); - } else { + return statusHistory_.get(index); } else { return statusHistoryBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. The previous job status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getStatusHistoryOrBuilderList() { + public java.util.List + getStatusHistoryOrBuilderList() { if (statusHistoryBuilder_ != null) { return statusHistoryBuilder_.getMessageOrBuilderList(); } else { @@ -5128,62 +4379,45 @@ public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusHistoryOrBuilder } } /** - * - * *
      * Output only. The previous job status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.JobStatus.Builder addStatusHistoryBuilder() { - return getStatusHistoryFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance()); + return getStatusHistoryFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance()); } /** - * - * *
      * Output only. The previous job status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.JobStatus.Builder addStatusHistoryBuilder(int index) { - return getStatusHistoryFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance()); + public com.google.cloud.dataproc.v1.JobStatus.Builder addStatusHistoryBuilder( + int index) { + return getStatusHistoryFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance()); } /** - * - * *
      * Output only. The previous job status.
      * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getStatusHistoryBuilderList() { + public java.util.List + getStatusHistoryBuilderList() { return getStatusHistoryFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, - com.google.cloud.dataproc.v1.JobStatus.Builder, - com.google.cloud.dataproc.v1.JobStatusOrBuilder> + com.google.cloud.dataproc.v1.JobStatus, com.google.cloud.dataproc.v1.JobStatus.Builder, com.google.cloud.dataproc.v1.JobStatusOrBuilder> getStatusHistoryFieldBuilder() { if (statusHistoryBuilder_ == null) { - statusHistoryBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, - com.google.cloud.dataproc.v1.JobStatus.Builder, - com.google.cloud.dataproc.v1.JobStatusOrBuilder>( + statusHistoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.JobStatus, com.google.cloud.dataproc.v1.JobStatus.Builder, com.google.cloud.dataproc.v1.JobStatusOrBuilder>( statusHistory_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -5194,35 +4428,25 @@ public com.google.cloud.dataproc.v1.JobStatus.Builder addStatusHistoryBuilder(in } private java.util.List yarnApplications_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureYarnApplicationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - yarnApplications_ = - new java.util.ArrayList( - yarnApplications_); + yarnApplications_ = new java.util.ArrayList(yarnApplications_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.YarnApplication, - com.google.cloud.dataproc.v1.YarnApplication.Builder, - com.google.cloud.dataproc.v1.YarnApplicationOrBuilder> - yarnApplicationsBuilder_; + com.google.cloud.dataproc.v1.YarnApplication, com.google.cloud.dataproc.v1.YarnApplication.Builder, com.google.cloud.dataproc.v1.YarnApplicationOrBuilder> yarnApplicationsBuilder_; /** - * - * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getYarnApplicationsList() { if (yarnApplicationsBuilder_ == null) { @@ -5232,17 +4456,13 @@ public java.util.List getYarnAppli } } /** - * - * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getYarnApplicationsCount() { if (yarnApplicationsBuilder_ == null) { @@ -5252,17 +4472,13 @@ public int getYarnApplicationsCount() { } } /** - * - * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.YarnApplication getYarnApplications(int index) { if (yarnApplicationsBuilder_ == null) { @@ -5272,17 +4488,13 @@ public com.google.cloud.dataproc.v1.YarnApplication getYarnApplications(int inde } } /** - * - * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setYarnApplications( int index, com.google.cloud.dataproc.v1.YarnApplication value) { @@ -5299,17 +4511,13 @@ public Builder setYarnApplications( return this; } /** - * - * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setYarnApplications( int index, com.google.cloud.dataproc.v1.YarnApplication.Builder builderForValue) { @@ -5323,17 +4531,13 @@ public Builder setYarnApplications( return this; } /** - * - * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addYarnApplications(com.google.cloud.dataproc.v1.YarnApplication value) { if (yarnApplicationsBuilder_ == null) { @@ -5349,17 +4553,13 @@ public Builder addYarnApplications(com.google.cloud.dataproc.v1.YarnApplication return this; } /** - * - * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addYarnApplications( int index, com.google.cloud.dataproc.v1.YarnApplication value) { @@ -5376,17 +4576,13 @@ public Builder addYarnApplications( return this; } /** - * - * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addYarnApplications( com.google.cloud.dataproc.v1.YarnApplication.Builder builderForValue) { @@ -5400,17 +4596,13 @@ public Builder addYarnApplications( return this; } /** - * - * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addYarnApplications( int index, com.google.cloud.dataproc.v1.YarnApplication.Builder builderForValue) { @@ -5424,23 +4616,20 @@ public Builder addYarnApplications( return this; } /** - * - * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllYarnApplications( java.lang.Iterable values) { if (yarnApplicationsBuilder_ == null) { ensureYarnApplicationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, yarnApplications_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, yarnApplications_); onChanged(); } else { yarnApplicationsBuilder_.addAllMessages(values); @@ -5448,17 +4637,13 @@ public Builder addAllYarnApplications( return this; } /** - * - * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearYarnApplications() { if (yarnApplicationsBuilder_ == null) { @@ -5471,17 +4656,13 @@ public Builder clearYarnApplications() { return this; } /** - * - * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeYarnApplications(int index) { if (yarnApplicationsBuilder_ == null) { @@ -5494,58 +4675,45 @@ public Builder removeYarnApplications(int index) { return this; } /** - * - * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.YarnApplication.Builder getYarnApplicationsBuilder( int index) { return getYarnApplicationsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplicationsOrBuilder( int index) { if (yarnApplicationsBuilder_ == null) { - return yarnApplications_.get(index); - } else { + return yarnApplications_.get(index); } else { return yarnApplicationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getYarnApplicationsOrBuilderList() { + public java.util.List + getYarnApplicationsOrBuilderList() { if (yarnApplicationsBuilder_ != null) { return yarnApplicationsBuilder_.getMessageOrBuilderList(); } else { @@ -5553,69 +4721,51 @@ public com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplications } } /** - * - * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.YarnApplication.Builder addYarnApplicationsBuilder() { - return getYarnApplicationsFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.YarnApplication.getDefaultInstance()); + return getYarnApplicationsFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.YarnApplication.getDefaultInstance()); } /** - * - * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.YarnApplication.Builder addYarnApplicationsBuilder( int index) { - return getYarnApplicationsFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.YarnApplication.getDefaultInstance()); + return getYarnApplicationsFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.YarnApplication.getDefaultInstance()); } /** - * - * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getYarnApplicationsBuilderList() { + public java.util.List + getYarnApplicationsBuilderList() { return getYarnApplicationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.YarnApplication, - com.google.cloud.dataproc.v1.YarnApplication.Builder, - com.google.cloud.dataproc.v1.YarnApplicationOrBuilder> + com.google.cloud.dataproc.v1.YarnApplication, com.google.cloud.dataproc.v1.YarnApplication.Builder, com.google.cloud.dataproc.v1.YarnApplicationOrBuilder> getYarnApplicationsFieldBuilder() { if (yarnApplicationsBuilder_ == null) { - yarnApplicationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.YarnApplication, - com.google.cloud.dataproc.v1.YarnApplication.Builder, - com.google.cloud.dataproc.v1.YarnApplicationOrBuilder>( + yarnApplicationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.YarnApplication, com.google.cloud.dataproc.v1.YarnApplication.Builder, com.google.cloud.dataproc.v1.YarnApplicationOrBuilder>( yarnApplications_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -5627,22 +4777,19 @@ public com.google.cloud.dataproc.v1.YarnApplication.Builder addYarnApplicationsB private java.lang.Object driverOutputResourceUri_ = ""; /** - * - * *
      * Output only. A URI pointing to the location of the stdout of the job's
      * driver program.
      * 
* - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The driverOutputResourceUri. */ public java.lang.String getDriverOutputResourceUri() { java.lang.Object ref = driverOutputResourceUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); driverOutputResourceUri_ = s; return s; @@ -5651,23 +4798,21 @@ public java.lang.String getDriverOutputResourceUri() { } } /** - * - * *
      * Output only. A URI pointing to the location of the stdout of the job's
      * driver program.
      * 
* - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for driverOutputResourceUri. */ - public com.google.protobuf.ByteString getDriverOutputResourceUriBytes() { + public com.google.protobuf.ByteString + getDriverOutputResourceUriBytes() { java.lang.Object ref = driverOutputResourceUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); driverOutputResourceUri_ = b; return b; } else { @@ -5675,67 +4820,57 @@ public com.google.protobuf.ByteString getDriverOutputResourceUriBytes() { } } /** - * - * *
      * Output only. A URI pointing to the location of the stdout of the job's
      * driver program.
      * 
* - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The driverOutputResourceUri to set. * @return This builder for chaining. */ - public Builder setDriverOutputResourceUri(java.lang.String value) { + public Builder setDriverOutputResourceUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + driverOutputResourceUri_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A URI pointing to the location of the stdout of the job's
      * driver program.
      * 
* - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearDriverOutputResourceUri() { - + driverOutputResourceUri_ = getDefaultInstance().getDriverOutputResourceUri(); onChanged(); return this; } /** - * - * *
      * Output only. A URI pointing to the location of the stdout of the job's
      * driver program.
      * 
* - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for driverOutputResourceUri to set. * @return This builder for chaining. */ - public Builder setDriverOutputResourceUriBytes(com.google.protobuf.ByteString value) { + public Builder setDriverOutputResourceUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + driverOutputResourceUri_ = value; onChanged(); return this; @@ -5743,23 +4878,20 @@ public Builder setDriverOutputResourceUriBytes(com.google.protobuf.ByteString va private java.lang.Object driverControlFilesUri_ = ""; /** - * - * *
      * Output only. If present, the location of miscellaneous control files
      * which may be used as part of job setup and handling. If not present,
      * control files may be placed in the same location as `driver_output_uri`.
      * 
* - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The driverControlFilesUri. */ public java.lang.String getDriverControlFilesUri() { java.lang.Object ref = driverControlFilesUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); driverControlFilesUri_ = s; return s; @@ -5768,24 +4900,22 @@ public java.lang.String getDriverControlFilesUri() { } } /** - * - * *
      * Output only. If present, the location of miscellaneous control files
      * which may be used as part of job setup and handling. If not present,
      * control files may be placed in the same location as `driver_output_uri`.
      * 
* - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for driverControlFilesUri. */ - public com.google.protobuf.ByteString getDriverControlFilesUriBytes() { + public com.google.protobuf.ByteString + getDriverControlFilesUriBytes() { java.lang.Object ref = driverControlFilesUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); driverControlFilesUri_ = b; return b; } else { @@ -5793,90 +4923,81 @@ public com.google.protobuf.ByteString getDriverControlFilesUriBytes() { } } /** - * - * *
      * Output only. If present, the location of miscellaneous control files
      * which may be used as part of job setup and handling. If not present,
      * control files may be placed in the same location as `driver_output_uri`.
      * 
* - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The driverControlFilesUri to set. * @return This builder for chaining. */ - public Builder setDriverControlFilesUri(java.lang.String value) { + public Builder setDriverControlFilesUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + driverControlFilesUri_ = value; onChanged(); return this; } /** - * - * *
      * Output only. If present, the location of miscellaneous control files
      * which may be used as part of job setup and handling. If not present,
      * control files may be placed in the same location as `driver_output_uri`.
      * 
* - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearDriverControlFilesUri() { - + driverControlFilesUri_ = getDefaultInstance().getDriverControlFilesUri(); onChanged(); return this; } /** - * - * *
      * Output only. If present, the location of miscellaneous control files
      * which may be used as part of job setup and handling. If not present,
      * control files may be placed in the same location as `driver_output_uri`.
      * 
* - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for driverControlFilesUri to set. * @return This builder for chaining. */ - public Builder setDriverControlFilesUriBytes(com.google.protobuf.ByteString value) { + public Builder setDriverControlFilesUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + driverControlFilesUri_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -5888,8 +5009,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels to associate with this job.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -5902,22 +5021,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @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();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this job.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -5931,12 +5050,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this job.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -5950,17 +5068,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this job.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -5974,11 +5091,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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();
       }
@@ -5986,12 +5104,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this job.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -6004,21 +5121,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this job.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -6031,20 +5150,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this job.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -6057,65 +5175,49 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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.dataproc.v1.JobScheduling scheduling_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dataproc.v1.JobScheduling,
-            com.google.cloud.dataproc.v1.JobScheduling.Builder,
-            com.google.cloud.dataproc.v1.JobSchedulingOrBuilder>
-        schedulingBuilder_;
+        com.google.cloud.dataproc.v1.JobScheduling, com.google.cloud.dataproc.v1.JobScheduling.Builder, com.google.cloud.dataproc.v1.JobSchedulingOrBuilder> schedulingBuilder_;
     /**
-     *
-     *
      * 
      * Optional. Job scheduling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the scheduling field is set. */ public boolean hasScheduling() { return schedulingBuilder_ != null || scheduling_ != null; } /** - * - * *
      * Optional. Job scheduling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; * @return The scheduling. */ public com.google.cloud.dataproc.v1.JobScheduling getScheduling() { if (schedulingBuilder_ == null) { - return scheduling_ == null - ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() - : scheduling_; + return scheduling_ == null ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() : scheduling_; } else { return schedulingBuilder_.getMessage(); } } /** - * - * *
      * Optional. Job scheduling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setScheduling(com.google.cloud.dataproc.v1.JobScheduling value) { if (schedulingBuilder_ == null) { @@ -6131,15 +5233,11 @@ public Builder setScheduling(com.google.cloud.dataproc.v1.JobScheduling value) { return this; } /** - * - * *
      * Optional. Job scheduling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setScheduling( com.google.cloud.dataproc.v1.JobScheduling.Builder builderForValue) { @@ -6153,23 +5251,17 @@ public Builder setScheduling( return this; } /** - * - * *
      * Optional. Job scheduling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeScheduling(com.google.cloud.dataproc.v1.JobScheduling value) { if (schedulingBuilder_ == null) { if (scheduling_ != null) { scheduling_ = - com.google.cloud.dataproc.v1.JobScheduling.newBuilder(scheduling_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.JobScheduling.newBuilder(scheduling_).mergeFrom(value).buildPartial(); } else { scheduling_ = value; } @@ -6181,15 +5273,11 @@ public Builder mergeScheduling(com.google.cloud.dataproc.v1.JobScheduling value) return this; } /** - * - * *
      * Optional. Job scheduling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearScheduling() { if (schedulingBuilder_ == null) { @@ -6203,64 +5291,48 @@ public Builder clearScheduling() { return this; } /** - * - * *
      * Optional. Job scheduling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.JobScheduling.Builder getSchedulingBuilder() { - + onChanged(); return getSchedulingFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Job scheduling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilder() { if (schedulingBuilder_ != null) { return schedulingBuilder_.getMessageOrBuilder(); } else { - return scheduling_ == null - ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() - : scheduling_; + return scheduling_ == null ? + com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() : scheduling_; } } /** - * - * *
      * Optional. Job scheduling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobScheduling, - com.google.cloud.dataproc.v1.JobScheduling.Builder, - com.google.cloud.dataproc.v1.JobSchedulingOrBuilder> + com.google.cloud.dataproc.v1.JobScheduling, com.google.cloud.dataproc.v1.JobScheduling.Builder, com.google.cloud.dataproc.v1.JobSchedulingOrBuilder> getSchedulingFieldBuilder() { if (schedulingBuilder_ == null) { - schedulingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobScheduling, - com.google.cloud.dataproc.v1.JobScheduling.Builder, - com.google.cloud.dataproc.v1.JobSchedulingOrBuilder>( - getScheduling(), getParentForChildren(), isClean()); + schedulingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.JobScheduling, com.google.cloud.dataproc.v1.JobScheduling.Builder, com.google.cloud.dataproc.v1.JobSchedulingOrBuilder>( + getScheduling(), + getParentForChildren(), + isClean()); scheduling_ = null; } return schedulingBuilder_; @@ -6268,8 +5340,6 @@ public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilde private java.lang.Object jobUuid_ = ""; /** - * - * *
      * Output only. A UUID that uniquely identifies a job within the project
      * over time. This is in contrast to a user-settable reference.job_id that
@@ -6277,13 +5347,13 @@ public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilde
      * 
* * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The jobUuid. */ public java.lang.String getJobUuid() { java.lang.Object ref = jobUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobUuid_ = s; return s; @@ -6292,8 +5362,6 @@ public java.lang.String getJobUuid() { } } /** - * - * *
      * Output only. A UUID that uniquely identifies a job within the project
      * over time. This is in contrast to a user-settable reference.job_id that
@@ -6301,14 +5369,15 @@ public java.lang.String getJobUuid() {
      * 
* * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for jobUuid. */ - public com.google.protobuf.ByteString getJobUuidBytes() { + public com.google.protobuf.ByteString + getJobUuidBytes() { java.lang.Object ref = jobUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); jobUuid_ = b; return b; } else { @@ -6316,8 +5385,6 @@ public com.google.protobuf.ByteString getJobUuidBytes() { } } /** - * - * *
      * Output only. A UUID that uniquely identifies a job within the project
      * over time. This is in contrast to a user-settable reference.job_id that
@@ -6325,22 +5392,20 @@ public com.google.protobuf.ByteString getJobUuidBytes() {
      * 
* * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The jobUuid to set. * @return This builder for chaining. */ - public Builder setJobUuid(java.lang.String value) { + public Builder setJobUuid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobUuid_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A UUID that uniquely identifies a job within the project
      * over time. This is in contrast to a user-settable reference.job_id that
@@ -6348,18 +5413,15 @@ public Builder setJobUuid(java.lang.String value) {
      * 
* * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearJobUuid() { - + jobUuid_ = getDefaultInstance().getJobUuid(); onChanged(); return this; } /** - * - * *
      * Output only. A UUID that uniquely identifies a job within the project
      * over time. This is in contrast to a user-settable reference.job_id that
@@ -6367,34 +5429,31 @@ public Builder clearJobUuid() {
      * 
* * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for jobUuid to set. * @return This builder for chaining. */ - public Builder setJobUuidBytes(com.google.protobuf.ByteString value) { + public Builder setJobUuidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobUuid_ = value; onChanged(); return this; } - private boolean done_; + private boolean done_ ; /** - * - * *
-     * Output only. Indicates whether the job is completed. If the value is `false`,
-     * the job is still in progress. If `true`, the job is completed, and
+     * Output only. Indicates whether the job is completed. If the value is
+     * `false`, the job is still in progress. If `true`, the job is completed, and
      * `status.state` field will indicate if it was successful, failed,
      * or cancelled.
      * 
* * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The done. */ @java.lang.Override @@ -6402,49 +5461,198 @@ public boolean getDone() { return done_; } /** - * - * *
-     * Output only. Indicates whether the job is completed. If the value is `false`,
-     * the job is still in progress. If `true`, the job is completed, and
+     * Output only. Indicates whether the job is completed. If the value is
+     * `false`, the job is still in progress. If `true`, the job is completed, and
      * `status.state` field will indicate if it was successful, failed,
      * or cancelled.
      * 
* * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The done to set. * @return This builder for chaining. */ public Builder setDone(boolean value) { - + done_ = value; onChanged(); return this; } /** - * - * *
-     * Output only. Indicates whether the job is completed. If the value is `false`,
-     * the job is still in progress. If `true`, the job is completed, and
+     * Output only. Indicates whether the job is completed. If the value is
+     * `false`, the job is still in progress. If `true`, the job is completed, and
      * `status.state` field will indicate if it was successful, failed,
      * or cancelled.
      * 
* * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDone() { - + done_ = false; onChanged(); return this; } + private com.google.cloud.dataproc.v1.DriverSchedulingConfig driverSchedulingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.DriverSchedulingConfig, com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder, com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder> driverSchedulingConfigBuilder_; + /** + *
+     * Optional. Driver scheduling configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the driverSchedulingConfig field is set. + */ + public boolean hasDriverSchedulingConfig() { + return driverSchedulingConfigBuilder_ != null || driverSchedulingConfig_ != null; + } + /** + *
+     * Optional. Driver scheduling configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * @return The driverSchedulingConfig. + */ + public com.google.cloud.dataproc.v1.DriverSchedulingConfig getDriverSchedulingConfig() { + if (driverSchedulingConfigBuilder_ == null) { + return driverSchedulingConfig_ == null ? com.google.cloud.dataproc.v1.DriverSchedulingConfig.getDefaultInstance() : driverSchedulingConfig_; + } else { + return driverSchedulingConfigBuilder_.getMessage(); + } + } + /** + *
+     * Optional. Driver scheduling configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setDriverSchedulingConfig(com.google.cloud.dataproc.v1.DriverSchedulingConfig value) { + if (driverSchedulingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + driverSchedulingConfig_ = value; + onChanged(); + } else { + driverSchedulingConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Optional. Driver scheduling configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setDriverSchedulingConfig( + com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder builderForValue) { + if (driverSchedulingConfigBuilder_ == null) { + driverSchedulingConfig_ = builderForValue.build(); + onChanged(); + } else { + driverSchedulingConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Optional. Driver scheduling configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeDriverSchedulingConfig(com.google.cloud.dataproc.v1.DriverSchedulingConfig value) { + if (driverSchedulingConfigBuilder_ == null) { + if (driverSchedulingConfig_ != null) { + driverSchedulingConfig_ = + com.google.cloud.dataproc.v1.DriverSchedulingConfig.newBuilder(driverSchedulingConfig_).mergeFrom(value).buildPartial(); + } else { + driverSchedulingConfig_ = value; + } + onChanged(); + } else { + driverSchedulingConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Optional. Driver scheduling configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearDriverSchedulingConfig() { + if (driverSchedulingConfigBuilder_ == null) { + driverSchedulingConfig_ = null; + onChanged(); + } else { + driverSchedulingConfig_ = null; + driverSchedulingConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Optional. Driver scheduling configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder getDriverSchedulingConfigBuilder() { + + onChanged(); + return getDriverSchedulingConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. Driver scheduling configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder getDriverSchedulingConfigOrBuilder() { + if (driverSchedulingConfigBuilder_ != null) { + return driverSchedulingConfigBuilder_.getMessageOrBuilder(); + } else { + return driverSchedulingConfig_ == null ? + com.google.cloud.dataproc.v1.DriverSchedulingConfig.getDefaultInstance() : driverSchedulingConfig_; + } + } + /** + *
+     * Optional. Driver scheduling configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.DriverSchedulingConfig, com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder, com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder> + getDriverSchedulingConfigFieldBuilder() { + if (driverSchedulingConfigBuilder_ == null) { + driverSchedulingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.DriverSchedulingConfig, com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder, com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder>( + getDriverSchedulingConfig(), + getParentForChildren(), + isClean()); + driverSchedulingConfig_ = null; + } + return driverSchedulingConfigBuilder_; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6454,12 +5662,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.Job) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Job) private static final com.google.cloud.dataproc.v1.Job DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.Job(); } @@ -6468,27 +5676,27 @@ public static com.google.cloud.dataproc.v1.Job getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Job parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Job parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6503,4 +5711,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.Job getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java similarity index 66% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java index d3ca8880b7c9..a7919bd6234c 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Job Operation metadata.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.JobMetadata} */ -public final class JobMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class JobMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.JobMetadata) JobMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use JobMetadata.newBuilder() to construct. private JobMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private JobMetadata() { jobId_ = ""; operationType_ = ""; @@ -44,41 +26,37 @@ private JobMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new JobMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobMetadata.class, - com.google.cloud.dataproc.v1.JobMetadata.Builder.class); + com.google.cloud.dataproc.v1.JobMetadata.class, com.google.cloud.dataproc.v1.JobMetadata.Builder.class); } public static final int JOB_ID_FIELD_NUMBER = 1; private volatile java.lang.Object jobId_; /** - * - * *
    * Output only. The job id.
    * 
* * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The jobId. */ @java.lang.Override @@ -87,29 +65,29 @@ 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; } } /** - * - * *
    * Output only. The job id.
    * 
* * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -120,16 +98,11 @@ public com.google.protobuf.ByteString getJobIdBytes() { public static final int STATUS_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.JobStatus status_; /** - * - * *
    * Output only. Most recent job status.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the status field is set. */ @java.lang.Override @@ -137,16 +110,11 @@ public boolean hasStatus() { return status_ != null; } /** - * - * *
    * Output only. Most recent job status.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ @java.lang.Override @@ -154,15 +122,11 @@ public com.google.cloud.dataproc.v1.JobStatus getStatus() { return status_ == null ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() : status_; } /** - * - * *
    * Output only. Most recent job status.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder() { @@ -172,14 +136,11 @@ public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder() { public static final int OPERATION_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object operationType_; /** - * - * *
    * Output only. Operation type.
    * 
* * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The operationType. */ @java.lang.Override @@ -188,29 +149,29 @@ public java.lang.String getOperationType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationType_ = s; return s; } } /** - * - * *
    * Output only. Operation type.
    * 
* * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for operationType. */ @java.lang.Override - public com.google.protobuf.ByteString getOperationTypeBytes() { + public com.google.protobuf.ByteString + getOperationTypeBytes() { java.lang.Object ref = operationType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operationType_ = b; return b; } else { @@ -221,15 +182,11 @@ public com.google.protobuf.ByteString getOperationTypeBytes() { public static final int START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Output only. Job submission time.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ @java.lang.Override @@ -237,15 +194,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Output only. Job submission time.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ @java.lang.Override @@ -253,14 +206,11 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Output only. Job submission time.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -268,7 +218,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -280,7 +229,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jobId_); } @@ -306,13 +256,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jobId_); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationType_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStartTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -322,22 +274,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.dataproc.v1.JobMetadata)) { return super.equals(obj); } com.google.cloud.dataproc.v1.JobMetadata other = (com.google.cloud.dataproc.v1.JobMetadata) obj; - if (!getJobId().equals(other.getJobId())) return false; + if (!getJobId() + .equals(other.getJobId())) 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 (!getOperationType().equals(other.getOperationType())) return false; + if (!getOperationType() + .equals(other.getOperationType())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -367,136 +323,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.JobMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.JobMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.JobMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.JobMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.JobMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Operation metadata.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.JobMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.JobMetadata) com.google.cloud.dataproc.v1.JobMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobMetadata.class, - com.google.cloud.dataproc.v1.JobMetadata.Builder.class); + com.google.cloud.dataproc.v1.JobMetadata.class, com.google.cloud.dataproc.v1.JobMetadata.Builder.class); } // Construct using com.google.cloud.dataproc.v1.JobMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +470,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; } @java.lang.Override @@ -541,8 +491,7 @@ public com.google.cloud.dataproc.v1.JobMetadata build() { @java.lang.Override public com.google.cloud.dataproc.v1.JobMetadata buildPartial() { - com.google.cloud.dataproc.v1.JobMetadata result = - new com.google.cloud.dataproc.v1.JobMetadata(this); + com.google.cloud.dataproc.v1.JobMetadata result = new com.google.cloud.dataproc.v1.JobMetadata(this); result.jobId_ = jobId_; if (statusBuilder_ == null) { result.status_ = status_; @@ -563,39 +512,38 @@ public com.google.cloud.dataproc.v1.JobMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.JobMetadata) { - return mergeFrom((com.google.cloud.dataproc.v1.JobMetadata) other); + return mergeFrom((com.google.cloud.dataproc.v1.JobMetadata)other); } else { super.mergeFrom(other); return this; @@ -644,37 +592,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - jobId_ = input.readStringRequireUtf8(); + case 10: { + jobId_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - operationType_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + operationType_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 26 + case 34: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -687,20 +634,18 @@ public Builder mergeFrom( private java.lang.Object jobId_ = ""; /** - * - * *
      * Output only. The job id.
      * 
* * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -709,21 +654,20 @@ public java.lang.String getJobId() { } } /** - * - * *
      * Output only. The job id.
      * 
* * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -731,61 +675,54 @@ public com.google.protobuf.ByteString getJobIdBytes() { } } /** - * - * *
      * Output only. The job id.
      * 
* * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; } /** - * - * *
      * Output only. The job id.
      * 
* * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearJobId() { - + jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** - * - * *
      * Output only. The job id.
      * 
* * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -793,58 +730,39 @@ public Builder setJobIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.JobStatus status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, - com.google.cloud.dataproc.v1.JobStatus.Builder, - com.google.cloud.dataproc.v1.JobStatusOrBuilder> - statusBuilder_; + com.google.cloud.dataproc.v1.JobStatus, com.google.cloud.dataproc.v1.JobStatus.Builder, com.google.cloud.dataproc.v1.JobStatusOrBuilder> statusBuilder_; /** - * - * *
      * Output only. Most recent job status.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** - * - * *
      * Output only. Most recent job status.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ public com.google.cloud.dataproc.v1.JobStatus getStatus() { if (statusBuilder_ == null) { - return status_ == null - ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() - : status_; + return status_ == null ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** - * - * *
      * Output only. Most recent job status.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStatus(com.google.cloud.dataproc.v1.JobStatus value) { if (statusBuilder_ == null) { @@ -860,17 +778,14 @@ public Builder setStatus(com.google.cloud.dataproc.v1.JobStatus value) { return this; } /** - * - * *
      * Output only. Most recent job status.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStatus(com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { + public Builder setStatus( + com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); @@ -881,23 +796,17 @@ public Builder setStatus(com.google.cloud.dataproc.v1.JobStatus.Builder builderF return this; } /** - * - * *
      * Output only. Most recent job status.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStatus(com.google.cloud.dataproc.v1.JobStatus value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = - com.google.cloud.dataproc.v1.JobStatus.newBuilder(status_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.JobStatus.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } @@ -909,15 +818,11 @@ public Builder mergeStatus(com.google.cloud.dataproc.v1.JobStatus value) { return this; } /** - * - * *
      * Output only. Most recent job status.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStatus() { if (statusBuilder_ == null) { @@ -931,64 +836,48 @@ public Builder clearStatus() { return this; } /** - * - * *
      * Output only. Most recent job status.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.JobStatus.Builder getStatusBuilder() { - + onChanged(); return getStatusFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Most recent job status.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null - ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() - : status_; + return status_ == null ? + com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() : status_; } } /** - * - * *
      * Output only. Most recent job status.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, - com.google.cloud.dataproc.v1.JobStatus.Builder, - com.google.cloud.dataproc.v1.JobStatusOrBuilder> + com.google.cloud.dataproc.v1.JobStatus, com.google.cloud.dataproc.v1.JobStatus.Builder, com.google.cloud.dataproc.v1.JobStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, - com.google.cloud.dataproc.v1.JobStatus.Builder, - com.google.cloud.dataproc.v1.JobStatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.JobStatus, com.google.cloud.dataproc.v1.JobStatus.Builder, com.google.cloud.dataproc.v1.JobStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); status_ = null; } return statusBuilder_; @@ -996,20 +885,18 @@ public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder() { private java.lang.Object operationType_ = ""; /** - * - * *
      * Output only. Operation type.
      * 
* * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The operationType. */ public java.lang.String getOperationType() { java.lang.Object ref = operationType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationType_ = s; return s; @@ -1018,21 +905,20 @@ public java.lang.String getOperationType() { } } /** - * - * *
      * Output only. Operation type.
      * 
* * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for operationType. */ - public com.google.protobuf.ByteString getOperationTypeBytes() { + public com.google.protobuf.ByteString + getOperationTypeBytes() { java.lang.Object ref = operationType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operationType_ = b; return b; } else { @@ -1040,61 +926,54 @@ public com.google.protobuf.ByteString getOperationTypeBytes() { } } /** - * - * *
      * Output only. Operation type.
      * 
* * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The operationType to set. * @return This builder for chaining. */ - public Builder setOperationType(java.lang.String value) { + public Builder setOperationType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + operationType_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Operation type.
      * 
* * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearOperationType() { - + operationType_ = getDefaultInstance().getOperationType(); onChanged(); return this; } /** - * - * *
      * Output only. Operation type.
      * 
* * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for operationType to set. * @return This builder for chaining. */ - public Builder setOperationTypeBytes(com.google.protobuf.ByteString value) { + public Builder setOperationTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationType_ = value; onChanged(); return this; @@ -1102,35 +981,24 @@ public Builder setOperationTypeBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Output only. Job submission time.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Output only. Job submission time.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1141,14 +1009,11 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Output only. Job submission time.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -1164,16 +1029,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Job submission time.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -1184,20 +1047,17 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. Job submission time.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -1209,14 +1069,11 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Job submission time.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -1230,66 +1087,55 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Output only. Job submission time.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Job submission time.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * Output only. Job submission time.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1299,12 +1145,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.JobMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobMetadata) private static final com.google.cloud.dataproc.v1.JobMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.JobMetadata(); } @@ -1313,27 +1159,27 @@ public static com.google.cloud.dataproc.v1.JobMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1348,4 +1194,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.JobMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java similarity index 61% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java index f1343e20fe2b..27a55df8fee0 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java @@ -1,154 +1,103 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface JobMetadataOrBuilder - extends +public interface JobMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.JobMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The job id.
    * 
* * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The jobId. */ java.lang.String getJobId(); /** - * - * *
    * Output only. The job id.
    * 
* * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for jobId. */ - com.google.protobuf.ByteString getJobIdBytes(); + com.google.protobuf.ByteString + getJobIdBytes(); /** - * - * *
    * Output only. Most recent job status.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the status field is set. */ boolean hasStatus(); /** - * - * *
    * Output only. Most recent job status.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ com.google.cloud.dataproc.v1.JobStatus getStatus(); /** - * - * *
    * Output only. Most recent job status.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder(); /** - * - * *
    * Output only. Operation type.
    * 
* * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The operationType. */ java.lang.String getOperationType(); /** - * - * *
    * Output only. Operation type.
    * 
* * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for operationType. */ - com.google.protobuf.ByteString getOperationTypeBytes(); + com.google.protobuf.ByteString + getOperationTypeBytes(); /** - * - * *
    * Output only. Job submission time.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Output only. Job submission time.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Output only. Job submission time.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java index 4747c1e252a1..5f33ee499e73 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface JobOrBuilder - extends +public interface JobOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.Job) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The fully qualified reference to the job, which can be used to
    * obtain the equivalent REST path of the job resource. If this property
@@ -33,16 +15,11 @@ public interface JobOrBuilder
    * <code>job_id</code>.
    * 
* - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the reference field is set. */ boolean hasReference(); /** - * - * *
    * Optional. The fully qualified reference to the job, which can be used to
    * obtain the equivalent REST path of the job resource. If this property
@@ -50,16 +27,11 @@ public interface JobOrBuilder
    * <code>job_id</code>.
    * 
* - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The reference. */ com.google.cloud.dataproc.v1.JobReference getReference(); /** - * - * *
    * Optional. The fully qualified reference to the job, which can be used to
    * obtain the equivalent REST path of the job resource. If this property
@@ -67,591 +39,410 @@ public interface JobOrBuilder
    * <code>job_id</code>.
    * 
* - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.JobReferenceOrBuilder getReferenceOrBuilder(); /** - * - * *
    * Required. Job information, including how, when, and where to
    * run the job.
    * 
* - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the placement field is set. */ boolean hasPlacement(); /** - * - * *
    * Required. Job information, including how, when, and where to
    * run the job.
    * 
* - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The placement. */ com.google.cloud.dataproc.v1.JobPlacement getPlacement(); /** - * - * *
    * Required. Job information, including how, when, and where to
    * run the job.
    * 
* - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dataproc.v1.JobPlacementOrBuilder getPlacementOrBuilder(); /** - * - * *
    * Optional. Job is a Hadoop job.
    * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the hadoopJob field is set. */ boolean hasHadoopJob(); /** - * - * *
    * Optional. Job is a Hadoop job.
    * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The hadoopJob. */ com.google.cloud.dataproc.v1.HadoopJob getHadoopJob(); /** - * - * *
    * Optional. Job is a Hadoop job.
    * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder(); /** - * - * *
    * Optional. Job is a Spark job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkJob field is set. */ boolean hasSparkJob(); /** - * - * *
    * Optional. Job is a Spark job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkJob. */ com.google.cloud.dataproc.v1.SparkJob getSparkJob(); /** - * - * *
    * Optional. Job is a Spark job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder(); /** - * - * *
    * Optional. Job is a PySpark job.
    * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pysparkJob field is set. */ boolean hasPysparkJob(); /** - * - * *
    * Optional. Job is a PySpark job.
    * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The pysparkJob. */ com.google.cloud.dataproc.v1.PySparkJob getPysparkJob(); /** - * - * *
    * Optional. Job is a PySpark job.
    * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder(); /** - * - * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the hiveJob field is set. */ boolean hasHiveJob(); /** - * - * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The hiveJob. */ com.google.cloud.dataproc.v1.HiveJob getHiveJob(); /** - * - * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder(); /** - * - * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pigJob field is set. */ boolean hasPigJob(); /** - * - * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The pigJob. */ com.google.cloud.dataproc.v1.PigJob getPigJob(); /** - * - * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder(); /** - * - * *
    * Optional. Job is a SparkR job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkRJob field is set. */ boolean hasSparkRJob(); /** - * - * *
    * Optional. Job is a SparkR job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkRJob. */ com.google.cloud.dataproc.v1.SparkRJob getSparkRJob(); /** - * - * *
    * Optional. Job is a SparkR job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder(); /** - * - * *
    * Optional. Job is a SparkSql job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkSqlJob field is set. */ boolean hasSparkSqlJob(); /** - * - * *
    * Optional. Job is a SparkSql job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkSqlJob. */ com.google.cloud.dataproc.v1.SparkSqlJob getSparkSqlJob(); /** - * - * *
    * Optional. Job is a SparkSql job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder(); /** - * - * *
    * Optional. Job is a Presto job.
    * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the prestoJob field is set. */ boolean hasPrestoJob(); /** - * - * *
    * Optional. Job is a Presto job.
    * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; * @return The prestoJob. */ com.google.cloud.dataproc.v1.PrestoJob getPrestoJob(); /** - * - * *
    * Optional. Job is a Presto job.
    * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder(); /** - * - * *
    * Output only. The job status. Additional application-specific
    * status information may be contained in the <code>type_job</code>
    * and <code>yarn_applications</code> fields.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the status field is set. */ boolean hasStatus(); /** - * - * *
    * Output only. The job status. Additional application-specific
    * status information may be contained in the <code>type_job</code>
    * and <code>yarn_applications</code> fields.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ com.google.cloud.dataproc.v1.JobStatus getStatus(); /** - * - * *
    * Output only. The job status. Additional application-specific
    * status information may be contained in the <code>type_job</code>
    * and <code>yarn_applications</code> fields.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder(); /** - * - * *
    * Output only. The previous job status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getStatusHistoryList(); + java.util.List + getStatusHistoryList(); /** - * - * *
    * Output only. The previous job status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.JobStatus getStatusHistory(int index); /** - * - * *
    * Output only. The previous job status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getStatusHistoryCount(); /** - * - * *
    * Output only. The previous job status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getStatusHistoryOrBuilderList(); /** - * - * *
    * Output only. The previous job status.
    * 
* - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusHistoryOrBuilder(int index); + com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusHistoryOrBuilder( + int index); /** - * - * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getYarnApplicationsList(); + java.util.List + getYarnApplicationsList(); /** - * - * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.YarnApplication getYarnApplications(int index); /** - * - * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getYarnApplicationsCount(); /** - * - * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getYarnApplicationsOrBuilderList(); /** - * - * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplicationsOrBuilder(int index); + com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplicationsOrBuilder( + int index); /** - * - * *
    * Output only. A URI pointing to the location of the stdout of the job's
    * driver program.
    * 
* - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The driverOutputResourceUri. */ java.lang.String getDriverOutputResourceUri(); /** - * - * *
    * Output only. A URI pointing to the location of the stdout of the job's
    * driver program.
    * 
* - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for driverOutputResourceUri. */ - com.google.protobuf.ByteString getDriverOutputResourceUriBytes(); + com.google.protobuf.ByteString + getDriverOutputResourceUriBytes(); /** - * - * *
    * Output only. If present, the location of miscellaneous control files
    * which may be used as part of job setup and handling. If not present,
@@ -659,13 +450,10 @@ public interface JobOrBuilder
    * 
* * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The driverControlFilesUri. */ java.lang.String getDriverControlFilesUri(); /** - * - * *
    * Output only. If present, the location of miscellaneous control files
    * which may be used as part of job setup and handling. If not present,
@@ -673,14 +461,12 @@ public interface JobOrBuilder
    * 
* * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for driverControlFilesUri. */ - com.google.protobuf.ByteString getDriverControlFilesUriBytes(); + com.google.protobuf.ByteString + getDriverControlFilesUriBytes(); /** - * - * *
    * Optional. The labels to associate with this job.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -695,8 +481,6 @@ public interface JobOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this job.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -709,13 +493,15 @@ public interface JobOrBuilder
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-  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();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this job.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -728,10 +514,9 @@ public interface JobOrBuilder
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this job.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -746,13 +531,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);
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this job.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -765,52 +548,38 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Optional. Job scheduling configuration.
    * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the scheduling field is set. */ boolean hasScheduling(); /** - * - * *
    * Optional. Job scheduling configuration.
    * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; * @return The scheduling. */ com.google.cloud.dataproc.v1.JobScheduling getScheduling(); /** - * - * *
    * Optional. Job scheduling configuration.
    * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilder(); /** - * - * *
    * Output only. A UUID that uniquely identifies a job within the project
    * over time. This is in contrast to a user-settable reference.job_id that
@@ -818,13 +587,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The jobUuid. */ java.lang.String getJobUuid(); /** - * - * *
    * Output only. A UUID that uniquely identifies a job within the project
    * over time. This is in contrast to a user-settable reference.job_id that
@@ -832,26 +598,50 @@ java.lang.String getLabelsOrDefault(
    * 
* * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for jobUuid. */ - com.google.protobuf.ByteString getJobUuidBytes(); + com.google.protobuf.ByteString + getJobUuidBytes(); /** - * - * *
-   * Output only. Indicates whether the job is completed. If the value is `false`,
-   * the job is still in progress. If `true`, the job is completed, and
+   * Output only. Indicates whether the job is completed. If the value is
+   * `false`, the job is still in progress. If `true`, the job is completed, and
    * `status.state` field will indicate if it was successful, failed,
    * or cancelled.
    * 
* * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The done. */ boolean getDone(); + /** + *
+   * Optional. Driver scheduling configuration.
+   * 
+ * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the driverSchedulingConfig field is set. + */ + boolean hasDriverSchedulingConfig(); + /** + *
+   * Optional. Driver scheduling configuration.
+   * 
+ * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * @return The driverSchedulingConfig. + */ + com.google.cloud.dataproc.v1.DriverSchedulingConfig getDriverSchedulingConfig(); + /** + *
+   * Optional. Driver scheduling configuration.
+   * 
+ * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder getDriverSchedulingConfigOrBuilder(); + public com.google.cloud.dataproc.v1.Job.TypeJobCase getTypeJobCase(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java similarity index 62% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java index b891a0435fbe..d25ad152402b 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Dataproc job config.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.JobPlacement} */ -public final class JobPlacement extends com.google.protobuf.GeneratedMessageV3 - implements +public final class JobPlacement extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.JobPlacement) JobPlacementOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use JobPlacement.newBuilder() to construct. private JobPlacement(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private JobPlacement() { clusterName_ = ""; clusterUuid_ = ""; @@ -44,52 +26,49 @@ private JobPlacement() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new JobPlacement(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobPlacement_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 3: return internalGetClusterLabels(); 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.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobPlacement.class, - com.google.cloud.dataproc.v1.JobPlacement.Builder.class); + com.google.cloud.dataproc.v1.JobPlacement.class, com.google.cloud.dataproc.v1.JobPlacement.Builder.class); } public static final int CLUSTER_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object clusterName_; /** - * - * *
    * Required. The name of the cluster where the job will be submitted.
    * 
* * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ @java.lang.Override @@ -98,29 +77,29 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** - * - * *
    * Required. The name of the cluster where the job will be submitted.
    * 
* * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -131,15 +110,12 @@ public com.google.protobuf.ByteString getClusterNameBytes() { public static final int CLUSTER_UUID_FIELD_NUMBER = 2; private volatile java.lang.Object clusterUuid_; /** - * - * *
    * Output only. A cluster UUID generated by the Dataproc service when
    * the job is submitted.
    * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterUuid. */ @java.lang.Override @@ -148,30 +124,30 @@ public java.lang.String getClusterUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; } } /** - * - * *
    * Output only. A cluster UUID generated by the Dataproc service when
    * the job is submitted.
    * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterUuid. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { + public com.google.protobuf.ByteString + getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -180,22 +156,21 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { } public static final int CLUSTER_LABELS_FIELD_NUMBER = 3; - private static final class ClusterLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField clusterLabels_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> clusterLabels_; private com.google.protobuf.MapField - internalGetClusterLabels() { + internalGetClusterLabels() { if (clusterLabels_ == null) { return com.google.protobuf.MapField.emptyMapField( ClusterLabelsDefaultEntryHolder.defaultEntry); @@ -207,77 +182,74 @@ public int getClusterLabelsCount() { return internalGetClusterLabels().getMap().size(); } /** - * - * *
-   * Optional. Cluster labels to identify a cluster where the job will be submitted.
+   * Optional. Cluster labels to identify a cluster where the job will be
+   * submitted.
    * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsClusterLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsClusterLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetClusterLabels().getMap().containsKey(key); } - /** Use {@link #getClusterLabelsMap()} instead. */ + /** + * Use {@link #getClusterLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getClusterLabels() { return getClusterLabelsMap(); } /** - * - * *
-   * Optional. Cluster labels to identify a cluster where the job will be submitted.
+   * Optional. Cluster labels to identify a cluster where the job will be
+   * submitted.
    * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getClusterLabelsMap() { return internalGetClusterLabels().getMap(); } /** - * - * *
-   * Optional. Cluster labels to identify a cluster where the job will be submitted.
+   * Optional. Cluster labels to identify a cluster where the job will be
+   * submitted.
    * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getClusterLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetClusterLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetClusterLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
-   * Optional. Cluster labels to identify a cluster where the job will be submitted.
+   * Optional. Cluster labels to identify a cluster where the job will be
+   * submitted.
    * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetClusterLabels().getMap(); + + public java.lang.String getClusterLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetClusterLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -285,7 +257,6 @@ public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -297,15 +268,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterUuid_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetClusterLabels(), ClusterLabelsDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetClusterLabels(), + ClusterLabelsDefaultEntryHolder.defaultEntry, + 3); getUnknownFields().writeTo(output); } @@ -321,15 +297,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterUuid_); } - for (java.util.Map.Entry entry : - internalGetClusterLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry clusterLabels__ = - ClusterLabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, clusterLabels__); + for (java.util.Map.Entry entry + : internalGetClusterLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + clusterLabels__ = ClusterLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, clusterLabels__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -339,17 +315,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.dataproc.v1.JobPlacement)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.JobPlacement other = - (com.google.cloud.dataproc.v1.JobPlacement) obj; + com.google.cloud.dataproc.v1.JobPlacement other = (com.google.cloud.dataproc.v1.JobPlacement) obj; - if (!getClusterName().equals(other.getClusterName())) return false; - if (!getClusterUuid().equals(other.getClusterUuid())) return false; - if (!internalGetClusterLabels().equals(other.internalGetClusterLabels())) return false; + if (!getClusterName() + .equals(other.getClusterName())) return false; + if (!getClusterUuid() + .equals(other.getClusterUuid())) return false; + if (!internalGetClusterLabels().equals( + other.internalGetClusterLabels())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -374,156 +352,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.JobPlacement parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobPlacement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobPlacement parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.JobPlacement parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.JobPlacement parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.JobPlacement parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.JobPlacement prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Dataproc job config.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.JobPlacement} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.JobPlacement) com.google.cloud.dataproc.v1.JobPlacementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetClusterLabels(); 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 3: return internalGetMutableClusterLabels(); 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.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobPlacement.class, - com.google.cloud.dataproc.v1.JobPlacement.Builder.class); + com.google.cloud.dataproc.v1.JobPlacement.class, com.google.cloud.dataproc.v1.JobPlacement.Builder.class); } // Construct using com.google.cloud.dataproc.v1.JobPlacement.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -536,9 +510,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; } @java.lang.Override @@ -557,8 +531,7 @@ public com.google.cloud.dataproc.v1.JobPlacement build() { @java.lang.Override public com.google.cloud.dataproc.v1.JobPlacement buildPartial() { - com.google.cloud.dataproc.v1.JobPlacement result = - new com.google.cloud.dataproc.v1.JobPlacement(this); + com.google.cloud.dataproc.v1.JobPlacement result = new com.google.cloud.dataproc.v1.JobPlacement(this); int from_bitField0_ = bitField0_; result.clusterName_ = clusterName_; result.clusterUuid_ = clusterUuid_; @@ -572,39 +545,38 @@ public com.google.cloud.dataproc.v1.JobPlacement buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.JobPlacement) { - return mergeFrom((com.google.cloud.dataproc.v1.JobPlacement) other); + return mergeFrom((com.google.cloud.dataproc.v1.JobPlacement)other); } else { super.mergeFrom(other); return this; @@ -621,7 +593,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.JobPlacement other) { clusterUuid_ = other.clusterUuid_; onChanged(); } - internalGetMutableClusterLabels().mergeFrom(other.internalGetClusterLabels()); + internalGetMutableClusterLabels().mergeFrom( + other.internalGetClusterLabels()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -648,36 +621,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - clusterUuid_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - com.google.protobuf.MapEntry clusterLabels__ = - input.readMessage( - ClusterLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableClusterLabels() - .getMutableMap() - .put(clusterLabels__.getKey(), clusterLabels__.getValue()); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + clusterUuid_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + com.google.protobuf.MapEntry + clusterLabels__ = input.readMessage( + ClusterLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableClusterLabels().getMutableMap().put( + clusterLabels__.getKey(), clusterLabels__.getValue()); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -687,25 +654,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object clusterName_ = ""; /** - * - * *
      * Required. The name of the cluster where the job will be submitted.
      * 
* * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -714,21 +678,20 @@ public java.lang.String getClusterName() { } } /** - * - * *
      * Required. The name of the cluster where the job will be submitted.
      * 
* * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -736,61 +699,54 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } } /** - * - * *
      * Required. The name of the cluster where the job will be submitted.
      * 
* * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName(java.lang.String value) { + public Builder setClusterName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the cluster where the job will be submitted.
      * 
* * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the cluster where the job will be submitted.
      * 
* * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -798,21 +754,19 @@ public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object clusterUuid_ = ""; /** - * - * *
      * Output only. A cluster UUID generated by the Dataproc service when
      * the job is submitted.
      * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterUuid. */ public java.lang.String getClusterUuid() { java.lang.Object ref = clusterUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; @@ -821,22 +775,21 @@ public java.lang.String getClusterUuid() { } } /** - * - * *
      * Output only. A cluster UUID generated by the Dataproc service when
      * the job is submitted.
      * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterUuid. */ - public com.google.protobuf.ByteString getClusterUuidBytes() { + public com.google.protobuf.ByteString + getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -844,87 +797,78 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { } } /** - * - * *
      * Output only. A cluster UUID generated by the Dataproc service when
      * the job is submitted.
      * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuid(java.lang.String value) { + public Builder setClusterUuid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterUuid_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A cluster UUID generated by the Dataproc service when
      * the job is submitted.
      * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClusterUuid() { - + clusterUuid_ = getDefaultInstance().getClusterUuid(); onChanged(); return this; } /** - * - * *
      * Output only. A cluster UUID generated by the Dataproc service when
      * the job is submitted.
      * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { + public Builder setClusterUuidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUuid_ = value; onChanged(); return this; } - private com.google.protobuf.MapField clusterLabels_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> clusterLabels_; private com.google.protobuf.MapField - internalGetClusterLabels() { + internalGetClusterLabels() { if (clusterLabels_ == null) { return com.google.protobuf.MapField.emptyMapField( ClusterLabelsDefaultEntryHolder.defaultEntry); } return clusterLabels_; } - private com.google.protobuf.MapField - internalGetMutableClusterLabels() { - onChanged(); - ; + internalGetMutableClusterLabels() { + onChanged();; if (clusterLabels_ == null) { - clusterLabels_ = - com.google.protobuf.MapField.newMapField(ClusterLabelsDefaultEntryHolder.defaultEntry); + clusterLabels_ = com.google.protobuf.MapField.newMapField( + ClusterLabelsDefaultEntryHolder.defaultEntry); } if (!clusterLabels_.isMutable()) { clusterLabels_ = clusterLabels_.copy(); @@ -936,77 +880,74 @@ public int getClusterLabelsCount() { return internalGetClusterLabels().getMap().size(); } /** - * - * *
-     * Optional. Cluster labels to identify a cluster where the job will be submitted.
+     * Optional. Cluster labels to identify a cluster where the job will be
+     * submitted.
      * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsClusterLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsClusterLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetClusterLabels().getMap().containsKey(key); } - /** Use {@link #getClusterLabelsMap()} instead. */ + /** + * Use {@link #getClusterLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getClusterLabels() { return getClusterLabelsMap(); } /** - * - * *
-     * Optional. Cluster labels to identify a cluster where the job will be submitted.
+     * Optional. Cluster labels to identify a cluster where the job will be
+     * submitted.
      * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getClusterLabelsMap() { return internalGetClusterLabels().getMap(); } /** - * - * *
-     * Optional. Cluster labels to identify a cluster where the job will be submitted.
+     * Optional. Cluster labels to identify a cluster where the job will be
+     * submitted.
      * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getClusterLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetClusterLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetClusterLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
-     * Optional. Cluster labels to identify a cluster where the job will be submitted.
+     * Optional. Cluster labels to identify a cluster where the job will be
+     * submitted.
      * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetClusterLabels().getMap(); + + public java.lang.String getClusterLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetClusterLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1014,69 +955,72 @@ public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { } public Builder clearClusterLabels() { - internalGetMutableClusterLabels().getMutableMap().clear(); + internalGetMutableClusterLabels().getMutableMap() + .clear(); return this; } /** - * - * *
-     * Optional. Cluster labels to identify a cluster where the job will be submitted.
+     * Optional. Cluster labels to identify a cluster where the job will be
+     * submitted.
      * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeClusterLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableClusterLabels().getMutableMap().remove(key); + + public Builder removeClusterLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableClusterLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableClusterLabels() { + public java.util.Map + getMutableClusterLabels() { return internalGetMutableClusterLabels().getMutableMap(); } /** - * - * *
-     * Optional. Cluster labels to identify a cluster where the job will be submitted.
+     * Optional. Cluster labels to identify a cluster where the job will be
+     * submitted.
      * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putClusterLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putClusterLabels( + 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"); +} - internalGetMutableClusterLabels().getMutableMap().put(key, value); + internalGetMutableClusterLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
-     * Optional. Cluster labels to identify a cluster where the job will be submitted.
+     * Optional. Cluster labels to identify a cluster where the job will be
+     * submitted.
      * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllClusterLabels(java.util.Map values) { - internalGetMutableClusterLabels().getMutableMap().putAll(values); + + public Builder putAllClusterLabels( + java.util.Map values) { + internalGetMutableClusterLabels().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); } @@ -1086,12 +1030,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.JobPlacement) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobPlacement) private static final com.google.cloud.dataproc.v1.JobPlacement DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.JobPlacement(); } @@ -1100,27 +1044,27 @@ public static com.google.cloud.dataproc.v1.JobPlacement getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobPlacement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobPlacement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1135,4 +1079,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.JobPlacement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java similarity index 58% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java index fb61780da9aa..ba2dc030862b 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java @@ -1,141 +1,112 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface JobPlacementOrBuilder - extends +public interface JobPlacementOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.JobPlacement) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the cluster where the job will be submitted.
    * 
* * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ java.lang.String getClusterName(); /** - * - * *
    * Required. The name of the cluster where the job will be submitted.
    * 
* * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString getClusterNameBytes(); + com.google.protobuf.ByteString + getClusterNameBytes(); /** - * - * *
    * Output only. A cluster UUID generated by the Dataproc service when
    * the job is submitted.
    * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterUuid. */ java.lang.String getClusterUuid(); /** - * - * *
    * Output only. A cluster UUID generated by the Dataproc service when
    * the job is submitted.
    * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterUuid. */ - com.google.protobuf.ByteString getClusterUuidBytes(); + com.google.protobuf.ByteString + getClusterUuidBytes(); /** - * - * *
-   * Optional. Cluster labels to identify a cluster where the job will be submitted.
+   * Optional. Cluster labels to identify a cluster where the job will be
+   * submitted.
    * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ int getClusterLabelsCount(); /** - * - * *
-   * Optional. Cluster labels to identify a cluster where the job will be submitted.
+   * Optional. Cluster labels to identify a cluster where the job will be
+   * submitted.
    * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsClusterLabels( + java.lang.String key); + /** + * Use {@link #getClusterLabelsMap()} instead. */ - boolean containsClusterLabels(java.lang.String key); - /** Use {@link #getClusterLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map getClusterLabels(); + java.util.Map + getClusterLabels(); /** - * - * *
-   * Optional. Cluster labels to identify a cluster where the job will be submitted.
+   * Optional. Cluster labels to identify a cluster where the job will be
+   * submitted.
    * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getClusterLabelsMap(); + java.util.Map + getClusterLabelsMap(); /** - * - * *
-   * Optional. Cluster labels to identify a cluster where the job will be submitted.
+   * Optional. Cluster labels to identify a cluster where the job will be
+   * submitted.
    * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getClusterLabelsOrDefault( +java.lang.String getClusterLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
-   * Optional. Cluster labels to identify a cluster where the job will be submitted.
+   * Optional. Cluster labels to identify a cluster where the job will be
+   * submitted.
    * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getClusterLabelsOrThrow(java.lang.String key); + + java.lang.String getClusterLabelsOrThrow( + java.lang.String key); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java similarity index 68% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java index 7657961042a7..3235ec742bbc 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Encapsulates the full scoping used to reference a job.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.JobReference} */ -public final class JobReference extends com.google.protobuf.GeneratedMessageV3 - implements +public final class JobReference extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.JobReference) JobReferenceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use JobReference.newBuilder() to construct. private JobReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private JobReference() { projectId_ = ""; jobId_ = ""; @@ -44,42 +26,38 @@ private JobReference() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new JobReference(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobReference.class, - com.google.cloud.dataproc.v1.JobReference.Builder.class); + com.google.cloud.dataproc.v1.JobReference.class, com.google.cloud.dataproc.v1.JobReference.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-   * specified, must match the request project ID.
+   * Optional. The ID of the Google Cloud Platform project that the job belongs
+   * to. If specified, must match the request project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The projectId. */ @java.lang.Override @@ -88,30 +66,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-   * specified, must match the request project ID.
+   * Optional. The ID of the Google Cloud Platform project that the job belongs
+   * to. If specified, must match the request project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -122,8 +100,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int JOB_ID_FIELD_NUMBER = 2; private volatile java.lang.Object jobId_; /** - * - * *
    * Optional. The job ID, which must be unique within the project.
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -132,7 +108,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
    * 
* * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The jobId. */ @java.lang.Override @@ -141,15 +116,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; } } /** - * - * *
    * Optional. The job ID, which must be unique within the project.
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -158,15 +132,16 @@ public java.lang.String getJobId() {
    * 
* * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -175,7 +150,6 @@ public com.google.protobuf.ByteString getJobIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +161,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -217,16 +192,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.JobReference)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.JobReference other = - (com.google.cloud.dataproc.v1.JobReference) obj; + com.google.cloud.dataproc.v1.JobReference other = (com.google.cloud.dataproc.v1.JobReference) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getJobId().equals(other.getJobId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getJobId() + .equals(other.getJobId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,136 +223,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.JobReference parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.JobReference parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.JobReference parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.JobReference parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.JobReference parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobReference parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.JobReference parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.JobReference parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.JobReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.JobReference parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobReference parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.JobReference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.JobReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Encapsulates the full scoping used to reference a job.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.JobReference} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.JobReference) com.google.cloud.dataproc.v1.JobReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobReference.class, - com.google.cloud.dataproc.v1.JobReference.Builder.class); + com.google.cloud.dataproc.v1.JobReference.class, com.google.cloud.dataproc.v1.JobReference.Builder.class); } // Construct using com.google.cloud.dataproc.v1.JobReference.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -388,9 +358,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobReference_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobReference_descriptor; } @java.lang.Override @@ -409,8 +379,7 @@ public com.google.cloud.dataproc.v1.JobReference build() { @java.lang.Override public com.google.cloud.dataproc.v1.JobReference buildPartial() { - com.google.cloud.dataproc.v1.JobReference result = - new com.google.cloud.dataproc.v1.JobReference(this); + com.google.cloud.dataproc.v1.JobReference result = new com.google.cloud.dataproc.v1.JobReference(this); result.projectId_ = projectId_; result.jobId_ = jobId_; onBuilt(); @@ -421,39 +390,38 @@ public com.google.cloud.dataproc.v1.JobReference buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.JobReference) { - return mergeFrom((com.google.cloud.dataproc.v1.JobReference) other); + return mergeFrom((com.google.cloud.dataproc.v1.JobReference)other); } else { super.mergeFrom(other); return this; @@ -496,25 +464,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -527,21 +492,19 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** - * - * *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs
+     * to. If specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -550,22 +513,21 @@ public java.lang.String getProjectId() { } } /** - * - * *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs
+     * to. If specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -573,64 +535,57 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs
+     * to. If specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs
+     * to. If specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs
+     * to. If specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -638,8 +593,6 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object jobId_ = ""; /** - * - * *
      * Optional. The job ID, which must be unique within the project.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -648,13 +601,13 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -663,8 +616,6 @@ public java.lang.String getJobId() { } } /** - * - * *
      * Optional. The job ID, which must be unique within the project.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -673,14 +624,15 @@ public java.lang.String getJobId() {
      * 
* * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -688,8 +640,6 @@ public com.google.protobuf.ByteString getJobIdBytes() { } } /** - * - * *
      * Optional. The job ID, which must be unique within the project.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -698,22 +648,20 @@ public com.google.protobuf.ByteString getJobIdBytes() {
      * 
* * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. The job ID, which must be unique within the project.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -722,18 +670,15 @@ public Builder setJobId(java.lang.String value) {
      * 
* * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearJobId() { - + jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** - * - * *
      * Optional. The job ID, which must be unique within the project.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -742,23 +687,23 @@ public Builder clearJobId() {
      * 
* * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -768,12 +713,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.JobReference) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobReference) private static final com.google.cloud.dataproc.v1.JobReference DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.JobReference(); } @@ -782,27 +727,27 @@ public static com.google.cloud.dataproc.v1.JobReference getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -817,4 +762,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.JobReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java similarity index 63% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java index df102fa47605..cfdd1bf87ef9 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface JobReferenceOrBuilder - extends +public interface JobReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.JobReference) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-   * specified, must match the request project ID.
+   * Optional. The ID of the Google Cloud Platform project that the job belongs
+   * to. If specified, must match the request project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-   * specified, must match the request project ID.
+   * Optional. The ID of the Google Cloud Platform project that the job belongs
+   * to. If specified, must match the request project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Optional. The job ID, which must be unique within the project.
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -61,13 +38,10 @@ public interface JobReferenceOrBuilder
    * 
* * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The jobId. */ java.lang.String getJobId(); /** - * - * *
    * Optional. The job ID, which must be unique within the project.
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -76,8 +50,8 @@ public interface JobReferenceOrBuilder
    * 
* * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for jobId. */ - com.google.protobuf.ByteString getJobIdBytes(); + com.google.protobuf.ByteString + getJobIdBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java similarity index 60% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java index b5f855921810..cd38a212f1b9 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java @@ -1,91 +1,68 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Job scheduling options.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.JobScheduling} */ -public final class JobScheduling extends com.google.protobuf.GeneratedMessageV3 - implements +public final class JobScheduling extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.JobScheduling) JobSchedulingOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use JobScheduling.newBuilder() to construct. private JobScheduling(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private JobScheduling() {} + private JobScheduling() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new JobScheduling(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobScheduling.class, - com.google.cloud.dataproc.v1.JobScheduling.Builder.class); + com.google.cloud.dataproc.v1.JobScheduling.class, com.google.cloud.dataproc.v1.JobScheduling.Builder.class); } public static final int MAX_FAILURES_PER_HOUR_FIELD_NUMBER = 1; private int maxFailuresPerHour_; /** - * - * *
    * Optional. Maximum number of times per hour a driver may be restarted as
    * a result of driver exiting with non-zero code before job is
    * reported failed.
-   * A job may be reported as thrashing if driver exits with non-zero code
-   * 4 times within 10 minute window.
+   * A job may be reported as thrashing if the driver exits with a non-zero code
+   * four times within a 10-minute window.
    * Maximum value is 10.
-   * **Note:** Currently, this restartable job option is
-   * not supported in Dataproc
-   * [workflow
-   * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-   * jobs.
+   * **Note:** This restartable job option is not supported in Dataproc
+   * [workflow templates]
+   * (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).
    * 
* * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The maxFailuresPerHour. */ @java.lang.Override @@ -96,21 +73,18 @@ public int getMaxFailuresPerHour() { public static final int MAX_FAILURES_TOTAL_FIELD_NUMBER = 2; private int maxFailuresTotal_; /** - * - * *
-   * Optional. Maximum number of times in total a driver may be restarted as a result of
-   * driver exiting with non-zero code before job is reported failed.
+   * Optional. Maximum total number of times a driver may be restarted as a
+   * result of the driver exiting with a non-zero code. After the maximum number
+   * is reached, the job will be reported as failed.
    * Maximum value is 240.
    * **Note:** Currently, this restartable job option is
    * not supported in Dataproc
    * [workflow
-   * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-   * jobs.
+   * templates](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).
    * 
* * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The maxFailuresTotal. */ @java.lang.Override @@ -119,7 +93,6 @@ public int getMaxFailuresTotal() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +104,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 (maxFailuresPerHour_ != 0) { output.writeInt32(1, maxFailuresPerHour_); } @@ -148,10 +122,12 @@ public int getSerializedSize() { size = 0; if (maxFailuresPerHour_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxFailuresPerHour_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, maxFailuresPerHour_); } if (maxFailuresTotal_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxFailuresTotal_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, maxFailuresTotal_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -161,16 +137,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.dataproc.v1.JobScheduling)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.JobScheduling other = - (com.google.cloud.dataproc.v1.JobScheduling) obj; + com.google.cloud.dataproc.v1.JobScheduling other = (com.google.cloud.dataproc.v1.JobScheduling) obj; - if (getMaxFailuresPerHour() != other.getMaxFailuresPerHour()) return false; - if (getMaxFailuresTotal() != other.getMaxFailuresTotal()) return false; + if (getMaxFailuresPerHour() + != other.getMaxFailuresPerHour()) return false; + if (getMaxFailuresTotal() + != other.getMaxFailuresTotal()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -191,136 +168,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.JobScheduling parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobScheduling parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobScheduling parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.JobScheduling parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.JobScheduling parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.JobScheduling parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.JobScheduling prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 scheduling options.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.JobScheduling} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.JobScheduling) com.google.cloud.dataproc.v1.JobSchedulingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobScheduling.class, - com.google.cloud.dataproc.v1.JobScheduling.Builder.class); + com.google.cloud.dataproc.v1.JobScheduling.class, com.google.cloud.dataproc.v1.JobScheduling.Builder.class); } // Construct using com.google.cloud.dataproc.v1.JobScheduling.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -332,9 +303,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; } @java.lang.Override @@ -353,8 +324,7 @@ public com.google.cloud.dataproc.v1.JobScheduling build() { @java.lang.Override public com.google.cloud.dataproc.v1.JobScheduling buildPartial() { - com.google.cloud.dataproc.v1.JobScheduling result = - new com.google.cloud.dataproc.v1.JobScheduling(this); + com.google.cloud.dataproc.v1.JobScheduling result = new com.google.cloud.dataproc.v1.JobScheduling(this); result.maxFailuresPerHour_ = maxFailuresPerHour_; result.maxFailuresTotal_ = maxFailuresTotal_; onBuilt(); @@ -365,39 +335,38 @@ public com.google.cloud.dataproc.v1.JobScheduling buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.JobScheduling) { - return mergeFrom((com.google.cloud.dataproc.v1.JobScheduling) other); + return mergeFrom((com.google.cloud.dataproc.v1.JobScheduling)other); } else { super.mergeFrom(other); return this; @@ -438,25 +407,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - maxFailuresPerHour_ = input.readInt32(); - - break; - } // case 8 - case 16: - { - maxFailuresTotal_ = input.readInt32(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + maxFailuresPerHour_ = input.readInt32(); + + break; + } // case 8 + case 16: { + maxFailuresTotal_ = input.readInt32(); + + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -467,26 +433,21 @@ public Builder mergeFrom( return this; } - private int maxFailuresPerHour_; + private int maxFailuresPerHour_ ; /** - * - * *
      * Optional. Maximum number of times per hour a driver may be restarted as
      * a result of driver exiting with non-zero code before job is
      * reported failed.
-     * A job may be reported as thrashing if driver exits with non-zero code
-     * 4 times within 10 minute window.
+     * A job may be reported as thrashing if the driver exits with a non-zero code
+     * four times within a 10-minute window.
      * Maximum value is 10.
-     * **Note:** Currently, this restartable job option is
-     * not supported in Dataproc
-     * [workflow
-     * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-     * jobs.
+     * **Note:** This restartable job option is not supported in Dataproc
+     * [workflow templates]
+     * (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).
      * 
* * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The maxFailuresPerHour. */ @java.lang.Override @@ -494,78 +455,65 @@ public int getMaxFailuresPerHour() { return maxFailuresPerHour_; } /** - * - * *
      * Optional. Maximum number of times per hour a driver may be restarted as
      * a result of driver exiting with non-zero code before job is
      * reported failed.
-     * A job may be reported as thrashing if driver exits with non-zero code
-     * 4 times within 10 minute window.
+     * A job may be reported as thrashing if the driver exits with a non-zero code
+     * four times within a 10-minute window.
      * Maximum value is 10.
-     * **Note:** Currently, this restartable job option is
-     * not supported in Dataproc
-     * [workflow
-     * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-     * jobs.
+     * **Note:** This restartable job option is not supported in Dataproc
+     * [workflow templates]
+     * (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).
      * 
* * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The maxFailuresPerHour to set. * @return This builder for chaining. */ public Builder setMaxFailuresPerHour(int value) { - + maxFailuresPerHour_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Maximum number of times per hour a driver may be restarted as
      * a result of driver exiting with non-zero code before job is
      * reported failed.
-     * A job may be reported as thrashing if driver exits with non-zero code
-     * 4 times within 10 minute window.
+     * A job may be reported as thrashing if the driver exits with a non-zero code
+     * four times within a 10-minute window.
      * Maximum value is 10.
-     * **Note:** Currently, this restartable job option is
-     * not supported in Dataproc
-     * [workflow
-     * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-     * jobs.
+     * **Note:** This restartable job option is not supported in Dataproc
+     * [workflow templates]
+     * (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).
      * 
* * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMaxFailuresPerHour() { - + maxFailuresPerHour_ = 0; onChanged(); return this; } - private int maxFailuresTotal_; + private int maxFailuresTotal_ ; /** - * - * *
-     * Optional. Maximum number of times in total a driver may be restarted as a result of
-     * driver exiting with non-zero code before job is reported failed.
+     * Optional. Maximum total number of times a driver may be restarted as a
+     * result of the driver exiting with a non-zero code. After the maximum number
+     * is reached, the job will be reported as failed.
      * Maximum value is 240.
      * **Note:** Currently, this restartable job option is
      * not supported in Dataproc
      * [workflow
-     * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-     * jobs.
+     * templates](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).
      * 
* * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The maxFailuresTotal. */ @java.lang.Override @@ -573,57 +521,51 @@ public int getMaxFailuresTotal() { return maxFailuresTotal_; } /** - * - * *
-     * Optional. Maximum number of times in total a driver may be restarted as a result of
-     * driver exiting with non-zero code before job is reported failed.
+     * Optional. Maximum total number of times a driver may be restarted as a
+     * result of the driver exiting with a non-zero code. After the maximum number
+     * is reached, the job will be reported as failed.
      * Maximum value is 240.
      * **Note:** Currently, this restartable job option is
      * not supported in Dataproc
      * [workflow
-     * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-     * jobs.
+     * templates](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).
      * 
* * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The maxFailuresTotal to set. * @return This builder for chaining. */ public Builder setMaxFailuresTotal(int value) { - + maxFailuresTotal_ = value; onChanged(); return this; } /** - * - * *
-     * Optional. Maximum number of times in total a driver may be restarted as a result of
-     * driver exiting with non-zero code before job is reported failed.
+     * Optional. Maximum total number of times a driver may be restarted as a
+     * result of the driver exiting with a non-zero code. After the maximum number
+     * is reached, the job will be reported as failed.
      * Maximum value is 240.
      * **Note:** Currently, this restartable job option is
      * not supported in Dataproc
      * [workflow
-     * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-     * jobs.
+     * templates](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).
      * 
* * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMaxFailuresTotal() { - + maxFailuresTotal_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -633,12 +575,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.JobScheduling) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobScheduling) private static final com.google.cloud.dataproc.v1.JobScheduling DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.JobScheduling(); } @@ -647,27 +589,27 @@ public static com.google.cloud.dataproc.v1.JobScheduling getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobScheduling parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobScheduling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -682,4 +624,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.JobScheduling getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java new file mode 100644 index 000000000000..130bc51d63f1 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java @@ -0,0 +1,44 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/jobs.proto + +package com.google.cloud.dataproc.v1; + +public interface JobSchedulingOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.JobScheduling) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Optional. Maximum number of times per hour a driver may be restarted as
+   * a result of driver exiting with non-zero code before job is
+   * reported failed.
+   * A job may be reported as thrashing if the driver exits with a non-zero code
+   * four times within a 10-minute window.
+   * Maximum value is 10.
+   * **Note:** This restartable job option is not supported in Dataproc
+   * [workflow templates]
+   * (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).
+   * 
+ * + * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The maxFailuresPerHour. + */ + int getMaxFailuresPerHour(); + + /** + *
+   * Optional. Maximum total number of times a driver may be restarted as a
+   * result of the driver exiting with a non-zero code. After the maximum number
+   * is reached, the job will be reported as failed.
+   * Maximum value is 240.
+   * **Note:** Currently, this restartable job option is
+   * not supported in Dataproc
+   * [workflow
+   * templates](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).
+   * 
+ * + * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The maxFailuresTotal. + */ + int getMaxFailuresTotal(); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java similarity index 66% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java index 5f35f1244b5c..9e2dde5a2753 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Dataproc job status.
  * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.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; details_ = ""; @@ -45,43 +27,39 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobStatus.class, - com.google.cloud.dataproc.v1.JobStatus.Builder.class); + com.google.cloud.dataproc.v1.JobStatus.class, com.google.cloud.dataproc.v1.JobStatus.Builder.class); } /** - * - * *
    * The job state.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.JobStatus.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The job state is unknown.
      * 
@@ -90,8 +68,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The job is pending; it has been submitted, but is not yet running.
      * 
@@ -100,8 +76,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PENDING(1), /** - * - * *
      * Job has been received by the service and completed initial setup;
      * it will soon be submitted to the cluster.
@@ -111,8 +85,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     SETUP_DONE(8),
     /**
-     *
-     *
      * 
      * The job is running on the cluster.
      * 
@@ -121,8 +93,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(2), /** - * - * *
      * A CancelJob request has been received, but is pending.
      * 
@@ -131,8 +101,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CANCEL_PENDING(3), /** - * - * *
      * Transient in-flight resources have been canceled, and the request to
      * cancel the running job has been issued to the cluster.
@@ -142,8 +110,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     CANCEL_STARTED(7),
     /**
-     *
-     *
      * 
      * The job cancellation was successful.
      * 
@@ -152,8 +118,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CANCELLED(4), /** - * - * *
      * The job has completed successfully.
      * 
@@ -162,8 +126,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DONE(5), /** - * - * *
      * The job has completed, but encountered an error.
      * 
@@ -172,8 +134,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(6), /** - * - * *
      * Job attempt has failed. The detail field contains failure details for
      * this attempt.
@@ -187,8 +147,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * The job state is unknown.
      * 
@@ -197,8 +155,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The job is pending; it has been submitted, but is not yet running.
      * 
@@ -207,8 +163,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PENDING_VALUE = 1; /** - * - * *
      * Job has been received by the service and completed initial setup;
      * it will soon be submitted to the cluster.
@@ -218,8 +172,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SETUP_DONE_VALUE = 8;
     /**
-     *
-     *
      * 
      * The job is running on the cluster.
      * 
@@ -228,8 +180,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 2; /** - * - * *
      * A CancelJob request has been received, but is pending.
      * 
@@ -238,8 +188,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCEL_PENDING_VALUE = 3; /** - * - * *
      * Transient in-flight resources have been canceled, and the request to
      * cancel the running job has been issued to the cluster.
@@ -249,8 +197,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CANCEL_STARTED_VALUE = 7;
     /**
-     *
-     *
      * 
      * The job cancellation was successful.
      * 
@@ -259,8 +205,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 4; /** - * - * *
      * The job has completed successfully.
      * 
@@ -269,8 +213,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DONE_VALUE = 5; /** - * - * *
      * The job has completed, but encountered an error.
      * 
@@ -279,8 +221,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 6; /** - * - * *
      * Job attempt has failed. The detail field contains failure details for
      * this attempt.
@@ -291,6 +231,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ATTEMPT_FAILURE_VALUE = 9;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -315,63 +256,56 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return PENDING;
-        case 8:
-          return SETUP_DONE;
-        case 2:
-          return RUNNING;
-        case 3:
-          return CANCEL_PENDING;
-        case 7:
-          return CANCEL_STARTED;
-        case 4:
-          return CANCELLED;
-        case 5:
-          return DONE;
-        case 6:
-          return ERROR;
-        case 9:
-          return ATTEMPT_FAILURE;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return PENDING;
+        case 8: return SETUP_DONE;
+        case 2: return RUNNING;
+        case 3: return CANCEL_PENDING;
+        case 7: return CANCEL_STARTED;
+        case 4: return CANCELLED;
+        case 5: return DONE;
+        case 6: return ERROR;
+        case 9: return ATTEMPT_FAILURE;
+        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.dataproc.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;
@@ -389,18 +323,15 @@ private State(int value) {
   }
 
   /**
-   *
-   *
    * 
    * The job substate.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.JobStatus.Substate} */ - public enum Substate implements com.google.protobuf.ProtocolMessageEnum { + public enum Substate + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The job substate is unknown.
      * 
@@ -409,8 +340,6 @@ public enum Substate implements com.google.protobuf.ProtocolMessageEnum { */ UNSPECIFIED(0), /** - * - * *
      * The Job is submitted to the agent.
      * Applies to RUNNING state.
@@ -420,8 +349,6 @@ public enum Substate implements com.google.protobuf.ProtocolMessageEnum {
      */
     SUBMITTED(1),
     /**
-     *
-     *
      * 
      * The Job has been received and is awaiting execution (it may be waiting
      * for a condition to be met). See the "details" field for the reason for
@@ -433,8 +360,6 @@ public enum Substate implements com.google.protobuf.ProtocolMessageEnum {
      */
     QUEUED(2),
     /**
-     *
-     *
      * 
      * The agent-reported status is out of date, which may be caused by a
      * loss of communication between the agent and Dataproc. If the
@@ -449,8 +374,6 @@ public enum Substate implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * The job substate is unknown.
      * 
@@ -459,8 +382,6 @@ public enum Substate implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSPECIFIED_VALUE = 0; /** - * - * *
      * The Job is submitted to the agent.
      * Applies to RUNNING state.
@@ -470,8 +391,6 @@ public enum Substate implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SUBMITTED_VALUE = 1;
     /**
-     *
-     *
      * 
      * The Job has been received and is awaiting execution (it may be waiting
      * for a condition to be met). See the "details" field for the reason for
@@ -483,8 +402,6 @@ public enum Substate implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int QUEUED_VALUE = 2;
     /**
-     *
-     *
      * 
      * The agent-reported status is out of date, which may be caused by a
      * loss of communication between the agent and Dataproc. If the
@@ -496,6 +413,7 @@ public enum Substate implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int STALE_STATUS_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -520,51 +438,50 @@ public static Substate valueOf(int value) {
      */
     public static Substate forNumber(int value) {
       switch (value) {
-        case 0:
-          return UNSPECIFIED;
-        case 1:
-          return SUBMITTED;
-        case 2:
-          return QUEUED;
-        case 3:
-          return STALE_STATUS;
-        default:
-          return null;
+        case 0: return UNSPECIFIED;
+        case 1: return SUBMITTED;
+        case 2: return QUEUED;
+        case 3: return STALE_STATUS;
+        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<
+        Substate> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Substate findValueByNumber(int number) {
+              return Substate.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Substate findValueByNumber(int number) {
-            return Substate.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.dataproc.v1.JobStatus.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Substate[] VALUES = values();
 
-    public static Substate valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Substate 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;
@@ -584,57 +501,39 @@ private Substate(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
-   *
-   *
    * 
    * Output only. A state message specifying the overall job state.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. A state message specifying the overall job state.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobStatus.State getState() { + @java.lang.Override public com.google.cloud.dataproc.v1.JobStatus.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.JobStatus.State result = - com.google.cloud.dataproc.v1.JobStatus.State.valueOf(state_); + com.google.cloud.dataproc.v1.JobStatus.State result = com.google.cloud.dataproc.v1.JobStatus.State.valueOf(state_); return result == null ? com.google.cloud.dataproc.v1.JobStatus.State.UNRECOGNIZED : result; } public static final int DETAILS_FIELD_NUMBER = 2; private volatile java.lang.Object details_; /** - * - * *
    * Optional. Output only. Job state details, such as an error
    * description if the state is <code>ERROR</code>.
    * 
* - * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The details. */ @java.lang.Override @@ -643,32 +542,30 @@ public java.lang.String getDetails() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; } } /** - * - * *
    * Optional. Output only. Job state details, such as an error
    * description if the state is <code>ERROR</code>.
    * 
* - * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The bytes for details. */ @java.lang.Override - public com.google.protobuf.ByteString getDetailsBytes() { + public com.google.protobuf.ByteString + getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); details_ = b; return b; } else { @@ -679,16 +576,11 @@ public com.google.protobuf.ByteString getDetailsBytes() { public static final int STATE_START_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp stateStartTime_; /** - * - * *
    * Output only. The time when this state was entered.
    * 
* - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateStartTime field is set. */ @java.lang.Override @@ -696,34 +588,23 @@ public boolean hasStateStartTime() { return stateStartTime_ != null; } /** - * - * *
    * Output only. The time when this state was entered.
    * 
* - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStateStartTime() { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; + return stateStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; } /** - * - * *
    * Output only. The time when this state was entered.
    * 
* - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { @@ -733,47 +614,33 @@ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { public static final int SUBSTATE_FIELD_NUMBER = 7; private int substate_; /** - * - * *
    * Output only. Additional state information, which includes
    * status reported by the agent.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for substate. */ - @java.lang.Override - public int getSubstateValue() { + @java.lang.Override public int getSubstateValue() { return substate_; } /** - * - * *
    * Output only. Additional state information, which includes
    * status reported by the agent.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The substate. */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobStatus.Substate getSubstate() { + @java.lang.Override public com.google.cloud.dataproc.v1.JobStatus.Substate getSubstate() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.JobStatus.Substate result = - com.google.cloud.dataproc.v1.JobStatus.Substate.valueOf(substate_); + com.google.cloud.dataproc.v1.JobStatus.Substate result = com.google.cloud.dataproc.v1.JobStatus.Substate.valueOf(substate_); return result == null ? com.google.cloud.dataproc.v1.JobStatus.Substate.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -785,7 +652,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 (state_ != com.google.cloud.dataproc.v1.JobStatus.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } @@ -808,16 +676,19 @@ public int getSerializedSize() { size = 0; if (state_ != com.google.cloud.dataproc.v1.JobStatus.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, details_); } if (stateStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStateStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getStateStartTime()); } if (substate_ != com.google.cloud.dataproc.v1.JobStatus.Substate.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, substate_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, substate_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -827,7 +698,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.dataproc.v1.JobStatus)) { return super.equals(obj); @@ -835,10 +706,12 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.dataproc.v1.JobStatus other = (com.google.cloud.dataproc.v1.JobStatus) obj; if (state_ != other.state_) return false; - if (!getDetails().equals(other.getDetails())) return false; + if (!getDetails() + .equals(other.getDetails())) return false; if (hasStateStartTime() != other.hasStateStartTime()) return false; if (hasStateStartTime()) { - if (!getStateStartTime().equals(other.getStateStartTime())) return false; + if (!getStateStartTime() + .equals(other.getStateStartTime())) return false; } if (substate_ != other.substate_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -867,136 +740,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.JobStatus parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.JobStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.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.dataproc.v1.JobStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.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.dataproc.v1.JobStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.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.dataproc.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.dataproc.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.dataproc.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.dataproc.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; } /** - * - * *
    * Dataproc job status.
    * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.v1.JobStatus) com.google.cloud.dataproc.v1.JobStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobStatus.class, - com.google.cloud.dataproc.v1.JobStatus.Builder.class); + com.google.cloud.dataproc.v1.JobStatus.class, com.google.cloud.dataproc.v1.JobStatus.Builder.class); } // Construct using com.google.cloud.dataproc.v1.JobStatus.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1016,9 +883,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; } @java.lang.Override @@ -1037,8 +904,7 @@ public com.google.cloud.dataproc.v1.JobStatus build() { @java.lang.Override public com.google.cloud.dataproc.v1.JobStatus buildPartial() { - com.google.cloud.dataproc.v1.JobStatus result = - new com.google.cloud.dataproc.v1.JobStatus(this); + com.google.cloud.dataproc.v1.JobStatus result = new com.google.cloud.dataproc.v1.JobStatus(this); result.state_ = state_; result.details_ = details_; if (stateStartTimeBuilder_ == null) { @@ -1055,39 +921,38 @@ public com.google.cloud.dataproc.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.dataproc.v1.JobStatus) { - return mergeFrom((com.google.cloud.dataproc.v1.JobStatus) other); + return mergeFrom((com.google.cloud.dataproc.v1.JobStatus)other); } else { super.mergeFrom(other); return this; @@ -1135,37 +1000,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - state_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - details_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 50: - { - input.readMessage(getStateStartTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 56: - { - substate_ = input.readEnum(); - - break; - } // case 56 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + state_ = input.readEnum(); + + break; + } // case 8 + case 18: { + details_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 50: { + input.readMessage( + getStateStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + case 56: { + substate_ = input.readEnum(); + + break; + } // case 56 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1178,73 +1040,51 @@ public Builder mergeFrom( private int state_ = 0; /** - * - * *
      * Output only. A state message specifying the overall job state.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. A state message specifying the overall job state.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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; } /** - * - * *
      * Output only. A state message specifying the overall job state.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.dataproc.v1.JobStatus.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.JobStatus.State result = - com.google.cloud.dataproc.v1.JobStatus.State.valueOf(state_); + com.google.cloud.dataproc.v1.JobStatus.State result = com.google.cloud.dataproc.v1.JobStatus.State.valueOf(state_); return result == null ? com.google.cloud.dataproc.v1.JobStatus.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. A state message specifying the overall job state.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -1252,26 +1092,21 @@ public Builder setState(com.google.cloud.dataproc.v1.JobStatus.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. A state message specifying the overall job state.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1279,23 +1114,19 @@ public Builder clearState() { private java.lang.Object details_ = ""; /** - * - * *
      * Optional. Output only. Job state details, such as an error
      * description if the state is <code>ERROR</code>.
      * 
* - * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The details. */ public java.lang.String getDetails() { java.lang.Object ref = details_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; @@ -1304,24 +1135,21 @@ public java.lang.String getDetails() { } } /** - * - * *
      * Optional. Output only. Job state details, such as an error
      * description if the state is <code>ERROR</code>.
      * 
* - * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The bytes for details. */ - public com.google.protobuf.ByteString getDetailsBytes() { + public com.google.protobuf.ByteString + getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); details_ = b; return b; } else { @@ -1329,70 +1157,57 @@ public com.google.protobuf.ByteString getDetailsBytes() { } } /** - * - * *
      * Optional. Output only. Job state details, such as an error
      * description if the state is <code>ERROR</code>.
      * 
* - * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param value The details to set. * @return This builder for chaining. */ - public Builder setDetails(java.lang.String value) { + public Builder setDetails( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + details_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Output only. Job state details, such as an error
      * description if the state is <code>ERROR</code>.
      * 
* - * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearDetails() { - + details_ = getDefaultInstance().getDetails(); onChanged(); return this; } /** - * - * *
      * Optional. Output only. Job state details, such as an error
      * description if the state is <code>ERROR</code>.
      * 
* - * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param value The bytes for details to set. * @return This builder for chaining. */ - public Builder setDetailsBytes(com.google.protobuf.ByteString value) { + public Builder setDetailsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + details_ = value; onChanged(); return this; @@ -1400,58 +1215,39 @@ public Builder setDetailsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp stateStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - stateStartTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> stateStartTimeBuilder_; /** - * - * *
      * Output only. The time when this state was entered.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateStartTime field is set. */ public boolean hasStateStartTime() { return stateStartTimeBuilder_ != null || stateStartTime_ != null; } /** - * - * *
      * Output only. The time when this state was entered.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateStartTime. */ public com.google.protobuf.Timestamp getStateStartTime() { if (stateStartTimeBuilder_ == null) { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; + return stateStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; } else { return stateStartTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when this state was entered.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStateStartTime(com.google.protobuf.Timestamp value) { if (stateStartTimeBuilder_ == null) { @@ -1467,17 +1263,14 @@ public Builder setStateStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when this state was entered.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStateStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (stateStartTimeBuilder_ == null) { stateStartTime_ = builderForValue.build(); onChanged(); @@ -1488,23 +1281,17 @@ public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
      * Output only. The time when this state was entered.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { if (stateStartTimeBuilder_ == null) { if (stateStartTime_ != null) { stateStartTime_ = - com.google.protobuf.Timestamp.newBuilder(stateStartTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(stateStartTime_).mergeFrom(value).buildPartial(); } else { stateStartTime_ = value; } @@ -1516,15 +1303,11 @@ public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when this state was entered.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStateStartTime() { if (stateStartTimeBuilder_ == null) { @@ -1538,64 +1321,48 @@ public Builder clearStateStartTime() { return this; } /** - * - * *
      * Output only. The time when this state was entered.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStateStartTimeBuilder() { - + onChanged(); return getStateStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when this state was entered.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { if (stateStartTimeBuilder_ != null) { return stateStartTimeBuilder_.getMessageOrBuilder(); } else { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; + return stateStartTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; } } /** - * - * *
      * Output only. The time when this state was entered.
      * 
* - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStateStartTimeFieldBuilder() { if (stateStartTimeBuilder_ == null) { - stateStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStateStartTime(), getParentForChildren(), isClean()); + stateStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStateStartTime(), + getParentForChildren(), + isClean()); stateStartTime_ = null; } return stateStartTimeBuilder_; @@ -1603,77 +1370,55 @@ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { private int substate_ = 0; /** - * - * *
      * Output only. Additional state information, which includes
      * status reported by the agent.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for substate. */ - @java.lang.Override - public int getSubstateValue() { + @java.lang.Override public int getSubstateValue() { return substate_; } /** - * - * *
      * Output only. Additional state information, which includes
      * status reported by the agent.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for substate to set. * @return This builder for chaining. */ public Builder setSubstateValue(int value) { - + substate_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Additional state information, which includes
      * status reported by the agent.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The substate. */ @java.lang.Override public com.google.cloud.dataproc.v1.JobStatus.Substate getSubstate() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.JobStatus.Substate result = - com.google.cloud.dataproc.v1.JobStatus.Substate.valueOf(substate_); + com.google.cloud.dataproc.v1.JobStatus.Substate result = com.google.cloud.dataproc.v1.JobStatus.Substate.valueOf(substate_); return result == null ? com.google.cloud.dataproc.v1.JobStatus.Substate.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Additional state information, which includes
      * status reported by the agent.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The substate to set. * @return This builder for chaining. */ @@ -1681,34 +1426,29 @@ public Builder setSubstate(com.google.cloud.dataproc.v1.JobStatus.Substate value if (value == null) { throw new NullPointerException(); } - + substate_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Additional state information, which includes
      * status reported by the agent.
      * 
* - * - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSubstate() { - + substate_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1718,12 +1458,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.JobStatus) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobStatus) private static final com.google.cloud.dataproc.v1.JobStatus DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.JobStatus(); } @@ -1732,27 +1472,27 @@ public static com.google.cloud.dataproc.v1.JobStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1767,4 +1507,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.JobStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java similarity index 51% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java index 512fa440cd4e..fe1a60c3378f 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java @@ -1,156 +1,97 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface JobStatusOrBuilder - extends +public interface JobStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.JobStatus) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. A state message specifying the overall job state.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. A state message specifying the overall job state.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.dataproc.v1.JobStatus.State getState(); /** - * - * *
    * Optional. Output only. Job state details, such as an error
    * description if the state is <code>ERROR</code>.
    * 
* - * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The details. */ java.lang.String getDetails(); /** - * - * *
    * Optional. Output only. Job state details, such as an error
    * description if the state is <code>ERROR</code>.
    * 
* - * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The bytes for details. */ - com.google.protobuf.ByteString getDetailsBytes(); + com.google.protobuf.ByteString + getDetailsBytes(); /** - * - * *
    * Output only. The time when this state was entered.
    * 
* - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateStartTime field is set. */ boolean hasStateStartTime(); /** - * - * *
    * Output only. The time when this state was entered.
    * 
* - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateStartTime. */ com.google.protobuf.Timestamp getStateStartTime(); /** - * - * *
    * Output only. The time when this state was entered.
    * 
* - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder(); /** - * - * *
    * Output only. Additional state information, which includes
    * status reported by the agent.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for substate. */ int getSubstateValue(); /** - * - * *
    * Output only. Additional state information, which includes
    * status reported by the agent.
    * 
* - * - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The substate. */ com.google.cloud.dataproc.v1.JobStatus.Substate getSubstate(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java new file mode 100644 index 000000000000..67afe5f7a452 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java @@ -0,0 +1,714 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/jobs.proto + +package com.google.cloud.dataproc.v1; + +public final class JobsProto { + private JobsProto() {} + 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_dataproc_v1_LoggingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkJob_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_QueryList_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_HiveJob_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PigJob_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_JobReference_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_Job_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DeleteJobRequest_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/dataproc/v1/jobs.proto\022\030g" + + "oogle.cloud.dataproc.v1\032\034google/api/anno" + + "tations.proto\032\027google/api/client.proto\032\037" + + "google/api/field_behavior.proto\032#google/" + + "longrunning/operations.proto\032\033google/pro" + + "tobuf/empty.proto\032 google/protobuf/field" + + "_mask.proto\032\037google/protobuf/timestamp.p" + + "roto\"\301\002\n\rLoggingConfig\022W\n\021driver_log_lev" + + "els\030\002 \003(\0132<.google.cloud.dataproc.v1.Log" + + "gingConfig.DriverLogLevelsEntry\032e\n\024Drive" + + "rLogLevelsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 " + + "\001(\0162-.google.cloud.dataproc.v1.LoggingCo" + + "nfig.Level:\0028\001\"p\n\005Level\022\025\n\021LEVEL_UNSPECI" + + "FIED\020\000\022\007\n\003ALL\020\001\022\t\n\005TRACE\020\002\022\t\n\005DEBUG\020\003\022\010\n" + + "\004INFO\020\004\022\010\n\004WARN\020\005\022\t\n\005ERROR\020\006\022\t\n\005FATAL\020\007\022" + + "\007\n\003OFF\020\010\"\361\002\n\tHadoopJob\022\033\n\021main_jar_file_" + + "uri\030\001 \001(\tH\000\022\024\n\nmain_class\030\002 \001(\tH\000\022\021\n\004arg" + + "s\030\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 \003(\tB\003\340A\001" + + "\022\026\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014archive_uris" + + "\030\006 \003(\tB\003\340A\001\022L\n\nproperties\030\007 \003(\01323.google" + + ".cloud.dataproc.v1.HadoopJob.PropertiesE" + + "ntryB\003\340A\001\022D\n\016logging_config\030\010 \001(\0132\'.goog" + + "le.cloud.dataproc.v1.LoggingConfigB\003\340A\001\032" + + "1\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001B\010\n\006driver\"\357\002\n\010SparkJob\022\033\n\021mai" + + "n_jar_file_uri\030\001 \001(\tH\000\022\024\n\nmain_class\030\002 \001" + + "(\tH\000\022\021\n\004args\030\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris" + + "\030\004 \003(\tB\003\340A\001\022\026\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014a" + + "rchive_uris\030\006 \003(\tB\003\340A\001\022K\n\nproperties\030\007 \003" + + "(\01322.google.cloud.dataproc.v1.SparkJob.P" + + "ropertiesEntryB\003\340A\001\022D\n\016logging_config\030\010 " + + "\001(\0132\'.google.cloud.dataproc.v1.LoggingCo" + + "nfigB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006driver\"\370\002\n\nPySpa" + + "rkJob\022!\n\024main_python_file_uri\030\001 \001(\tB\003\340A\002" + + "\022\021\n\004args\030\002 \003(\tB\003\340A\001\022\035\n\020python_file_uris\030" + + "\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 \003(\tB\003\340A\001\022\026" + + "\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014archive_uris\030\006" + + " \003(\tB\003\340A\001\022M\n\nproperties\030\007 \003(\01324.google.c" + + "loud.dataproc.v1.PySparkJob.PropertiesEn" + + "tryB\003\340A\001\022D\n\016logging_config\030\010 \001(\0132\'.googl" + + "e.cloud.dataproc.v1.LoggingConfigB\003\340A\001\0321" + + "\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"!\n\tQueryList\022\024\n\007queries\030\001 \003(\tB" + + "\003\340A\002\"\265\003\n\007HiveJob\022\030\n\016query_file_uri\030\001 \001(\t" + + "H\000\0229\n\nquery_list\030\002 \001(\0132#.google.cloud.da" + + "taproc.v1.QueryListH\000\022 \n\023continue_on_fai" + + "lure\030\003 \001(\010B\003\340A\001\022U\n\020script_variables\030\004 \003(" + + "\01326.google.cloud.dataproc.v1.HiveJob.Scr" + + "iptVariablesEntryB\003\340A\001\022J\n\nproperties\030\005 \003" + + "(\01321.google.cloud.dataproc.v1.HiveJob.Pr" + + "opertiesEntryB\003\340A\001\022\032\n\rjar_file_uris\030\006 \003(" + + "\tB\003\340A\001\0326\n\024ScriptVariablesEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017PropertiesEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007que" + + "ries\"\345\003\n\013SparkSqlJob\022\030\n\016query_file_uri\030\001" + + " \001(\tH\000\0229\n\nquery_list\030\002 \001(\0132#.google.clou" + + "d.dataproc.v1.QueryListH\000\022Y\n\020script_vari" + + "ables\030\003 \003(\0132:.google.cloud.dataproc.v1.S" + + "parkSqlJob.ScriptVariablesEntryB\003\340A\001\022N\n\n" + + "properties\030\004 \003(\01325.google.cloud.dataproc" + + ".v1.SparkSqlJob.PropertiesEntryB\003\340A\001\022\032\n\r" + + "jar_file_uris\0308 \003(\tB\003\340A\001\022D\n\016logging_conf" + + "ig\030\006 \001(\0132\'.google.cloud.dataproc.v1.Logg" + + "ingConfigB\003\340A\001\0326\n\024ScriptVariablesEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017Proper" + + "tiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001B\t\n\007queries\"\370\003\n\006PigJob\022\030\n\016query_file_ur" + + "i\030\001 \001(\tH\000\0229\n\nquery_list\030\002 \001(\0132#.google.c" + + "loud.dataproc.v1.QueryListH\000\022 \n\023continue" + + "_on_failure\030\003 \001(\010B\003\340A\001\022T\n\020script_variabl" + + "es\030\004 \003(\01325.google.cloud.dataproc.v1.PigJ" + + "ob.ScriptVariablesEntryB\003\340A\001\022I\n\nproperti" + + "es\030\005 \003(\01320.google.cloud.dataproc.v1.PigJ" + + "ob.PropertiesEntryB\003\340A\001\022\032\n\rjar_file_uris" + + "\030\006 \003(\tB\003\340A\001\022D\n\016logging_config\030\007 \001(\0132\'.go" + + "ogle.cloud.dataproc.v1.LoggingConfigB\003\340A" + + "\001\0326\n\024ScriptVariablesEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\0321\n\017PropertiesEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007queries\"" + + "\266\002\n\tSparkRJob\022\034\n\017main_r_file_uri\030\001 \001(\tB\003" + + "\340A\002\022\021\n\004args\030\002 \003(\tB\003\340A\001\022\026\n\tfile_uris\030\003 \003(" + + "\tB\003\340A\001\022\031\n\014archive_uris\030\004 \003(\tB\003\340A\001\022L\n\npro" + + "perties\030\005 \003(\01323.google.cloud.dataproc.v1" + + ".SparkRJob.PropertiesEntryB\003\340A\001\022D\n\016loggi" + + "ng_config\030\006 \001(\0132\'.google.cloud.dataproc." + + "v1.LoggingConfigB\003\340A\001\0321\n\017PropertiesEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\212\003\n\tPre" + + "stoJob\022\030\n\016query_file_uri\030\001 \001(\tH\000\0229\n\nquer" + + "y_list\030\002 \001(\0132#.google.cloud.dataproc.v1." + + "QueryListH\000\022 \n\023continue_on_failure\030\003 \001(\010" + + "B\003\340A\001\022\032\n\routput_format\030\004 \001(\tB\003\340A\001\022\030\n\013cli" + + "ent_tags\030\005 \003(\tB\003\340A\001\022L\n\nproperties\030\006 \003(\0132" + + "3.google.cloud.dataproc.v1.PrestoJob.Pro" + + "pertiesEntryB\003\340A\001\022D\n\016logging_config\030\007 \001(" + + "\0132\'.google.cloud.dataproc.v1.LoggingConf" + + "igB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007queries\"\322\001\n\014JobPla" + + "cement\022\031\n\014cluster_name\030\001 \001(\tB\003\340A\002\022\031\n\014clu" + + "ster_uuid\030\002 \001(\tB\003\340A\003\022V\n\016cluster_labels\030\003" + + " \003(\01329.google.cloud.dataproc.v1.JobPlace" + + "ment.ClusterLabelsEntryB\003\340A\001\0324\n\022ClusterL" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"\331\003\n\tJobStatus\022=\n\005state\030\001 \001(\0162).google" + + ".cloud.dataproc.v1.JobStatus.StateB\003\340A\003\022" + + "\027\n\007details\030\002 \001(\tB\006\340A\003\340A\001\0229\n\020state_start_" + + "time\030\006 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\022C\n\010substate\030\007 \001(\0162,.google.cloud.dat" + + "aproc.v1.JobStatus.SubstateB\003\340A\003\"\251\001\n\005Sta" + + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\016" + + "\n\nSETUP_DONE\020\010\022\013\n\007RUNNING\020\002\022\022\n\016CANCEL_PE" + + "NDING\020\003\022\022\n\016CANCEL_STARTED\020\007\022\r\n\tCANCELLED" + + "\020\004\022\010\n\004DONE\020\005\022\t\n\005ERROR\020\006\022\023\n\017ATTEMPT_FAILU" + + "RE\020\t\"H\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022\r\n\tSUB" + + "MITTED\020\001\022\n\n\006QUEUED\020\002\022\020\n\014STALE_STATUS\020\003\"<" + + "\n\014JobReference\022\027\n\nproject_id\030\001 \001(\tB\003\340A\001\022" + + "\023\n\006job_id\030\002 \001(\tB\003\340A\001\"\245\002\n\017YarnApplication" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022C\n\005state\030\002 \001(\0162/.goo" + + "gle.cloud.dataproc.v1.YarnApplication.St" + + "ateB\003\340A\002\022\025\n\010progress\030\003 \001(\002B\003\340A\002\022\031\n\014track" + + "ing_url\030\004 \001(\tB\003\340A\001\"\207\001\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\007\n\003NEW\020\001\022\016\n\nNEW_SAVING\020\002\022\r\n\t" + + "SUBMITTED\020\003\022\014\n\010ACCEPTED\020\004\022\013\n\007RUNNING\020\005\022\014" + + "\n\010FINISHED\020\006\022\n\n\006FAILED\020\007\022\n\n\006KILLED\020\010\"\330\t\n" + + "\003Job\022>\n\treference\030\001 \001(\0132&.google.cloud.d" + + "ataproc.v1.JobReferenceB\003\340A\001\022>\n\tplacemen" + + "t\030\002 \001(\0132&.google.cloud.dataproc.v1.JobPl" + + "acementB\003\340A\002\022>\n\nhadoop_job\030\003 \001(\0132#.googl" + + "e.cloud.dataproc.v1.HadoopJobB\003\340A\001H\000\022<\n\t" + + "spark_job\030\004 \001(\0132\".google.cloud.dataproc." + + "v1.SparkJobB\003\340A\001H\000\022@\n\013pyspark_job\030\005 \001(\0132" + + "$.google.cloud.dataproc.v1.PySparkJobB\003\340" + + "A\001H\000\022:\n\010hive_job\030\006 \001(\0132!.google.cloud.da" + + "taproc.v1.HiveJobB\003\340A\001H\000\0228\n\007pig_job\030\007 \001(" + + "\0132 .google.cloud.dataproc.v1.PigJobB\003\340A\001" + + "H\000\022?\n\013spark_r_job\030\025 \001(\0132#.google.cloud.d" + + "ataproc.v1.SparkRJobB\003\340A\001H\000\022C\n\rspark_sql" + + "_job\030\014 \001(\0132%.google.cloud.dataproc.v1.Sp" + + "arkSqlJobB\003\340A\001H\000\022>\n\npresto_job\030\027 \001(\0132#.g" + + "oogle.cloud.dataproc.v1.PrestoJobB\003\340A\001H\000" + + "\0228\n\006status\030\010 \001(\0132#.google.cloud.dataproc" + + ".v1.JobStatusB\003\340A\003\022@\n\016status_history\030\r \003" + + "(\0132#.google.cloud.dataproc.v1.JobStatusB" + + "\003\340A\003\022I\n\021yarn_applications\030\t \003(\0132).google" + + ".cloud.dataproc.v1.YarnApplicationB\003\340A\003\022" + + "\'\n\032driver_output_resource_uri\030\021 \001(\tB\003\340A\003" + + "\022%\n\030driver_control_files_uri\030\017 \001(\tB\003\340A\003\022" + + ">\n\006labels\030\022 \003(\0132).google.cloud.dataproc." + + "v1.Job.LabelsEntryB\003\340A\001\022@\n\nscheduling\030\024 " + + "\001(\0132\'.google.cloud.dataproc.v1.JobSchedu" + + "lingB\003\340A\001\022\025\n\010job_uuid\030\026 \001(\tB\003\340A\003\022\021\n\004done" + + "\030\030 \001(\010B\003\340A\003\022W\n\030driver_scheduling_config\030" + + "\033 \001(\01320.google.cloud.dataproc.v1.DriverS" + + "chedulingConfigB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\n\n\010type_job\"" + + "E\n\026DriverSchedulingConfig\022\026\n\tmemory_mb\030\001" + + " \001(\005B\003\340A\002\022\023\n\006vcores\030\002 \001(\005B\003\340A\002\"T\n\rJobSch" + + "eduling\022\"\n\025max_failures_per_hour\030\001 \001(\005B\003" + + "\340A\001\022\037\n\022max_failures_total\030\002 \001(\005B\003\340A\001\"\212\001\n" + + "\020SubmitJobRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340" + + "A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022/\n\003job\030\002 \001(\0132\035.g" + + "oogle.cloud.dataproc.v1.JobB\003\340A\002\022\027\n\nrequ" + + "est_id\030\004 \001(\tB\003\340A\001\"\256\001\n\013JobMetadata\022\023\n\006job" + + "_id\030\001 \001(\tB\003\340A\003\0228\n\006status\030\002 \001(\0132#.google." + + "cloud.dataproc.v1.JobStatusB\003\340A\003\022\033\n\016oper" + + "ation_type\030\003 \001(\tB\003\340A\003\0223\n\nstart_time\030\004 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\"R\n\rGe" + + "tJobRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006" + + "region\030\003 \001(\tB\003\340A\002\022\023\n\006job_id\030\002 \001(\tB\003\340A\002\"\263" + + "\002\n\017ListJobsRequest\022\027\n\nproject_id\030\001 \001(\tB\003" + + "\340A\002\022\023\n\006region\030\006 \001(\tB\003\340A\002\022\026\n\tpage_size\030\002 " + + "\001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\031\n\014clu" + + "ster_name\030\004 \001(\tB\003\340A\001\022Y\n\021job_state_matche" + + "r\030\005 \001(\01629.google.cloud.dataproc.v1.ListJ" + + "obsRequest.JobStateMatcherB\003\340A\001\022\023\n\006filte" + + "r\030\007 \001(\tB\003\340A\001\"6\n\017JobStateMatcher\022\007\n\003ALL\020\000" + + "\022\n\n\006ACTIVE\020\001\022\016\n\nNON_ACTIVE\020\002\"\274\001\n\020UpdateJ" + + "obRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006re" + + "gion\030\002 \001(\tB\003\340A\002\022\023\n\006job_id\030\003 \001(\tB\003\340A\002\022/\n\003" + + "job\030\004 \001(\0132\035.google.cloud.dataproc.v1.Job" + + "B\003\340A\002\0224\n\013update_mask\030\005 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\002\"b\n\020ListJobsResponse\022" + + "0\n\004jobs\030\001 \003(\0132\035.google.cloud.dataproc.v1" + + ".JobB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"" + + "U\n\020CancelJobRequest\022\027\n\nproject_id\030\001 \001(\tB" + + "\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\023\n\006job_id\030\002 \001(" + + "\tB\003\340A\002\"U\n\020DeleteJobRequest\022\027\n\nproject_id" + + "\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\023\n\006job_" + + "id\030\002 \001(\tB\003\340A\0022\374\n\n\rJobController\022\261\001\n\tSubm" + + "itJob\022*.google.cloud.dataproc.v1.SubmitJ" + + "obRequest\032\035.google.cloud.dataproc.v1.Job" + + "\"Y\202\323\344\223\002;\"6/v1/projects/{project_id}/regi" + + "ons/{region}/jobs:submit:\001*\332A\025project_id" + + ",region,job\022\336\001\n\024SubmitJobAsOperation\022*.g" + + "oogle.cloud.dataproc.v1.SubmitJobRequest" + + "\032\035.google.longrunning.Operation\"{\202\323\344\223\002F\"" + + "A/v1/projects/{project_id}/regions/{regi" + + "on}/jobs:submitAsOperation:\001*\332A\027project_" + + "id, region, job\312A\022\n\003Job\022\013JobMetadata\022\255\001\n" + + "\006GetJob\022\'.google.cloud.dataproc.v1.GetJo" + + "bRequest\032\035.google.cloud.dataproc.v1.Job\"" + + "[\202\323\344\223\002:\0228/v1/projects/{project_id}/regio" + + "ns/{region}/jobs/{job_id}\332A\030project_id,r" + + "egion,job_id\022\311\001\n\010ListJobs\022).google.cloud" + + ".dataproc.v1.ListJobsRequest\032*.google.cl" + + "oud.dataproc.v1.ListJobsResponse\"f\202\323\344\223\0021" + + "\022//v1/projects/{project_id}/regions/{reg" + + "ion}/jobs\332A\021project_id,region\332A\030project_" + + "id,region,filter\022\235\001\n\tUpdateJob\022*.google." + + "cloud.dataproc.v1.UpdateJobRequest\032\035.goo" + + "gle.cloud.dataproc.v1.Job\"E\202\323\344\223\002?28/v1/p" + + "rojects/{project_id}/regions/{region}/jo" + + "bs/{job_id}:\003job\022\275\001\n\tCancelJob\022*.google." + + "cloud.dataproc.v1.CancelJobRequest\032\035.goo" + + "gle.cloud.dataproc.v1.Job\"e\202\323\344\223\002D\"?/v1/p" + + "rojects/{project_id}/regions/{region}/jo" + + "bs/{job_id}:cancel:\001*\332A\030project_id,regio" + + "n,job_id\022\254\001\n\tDeleteJob\022*.google.cloud.da" + + "taproc.v1.DeleteJobRequest\032\026.google.prot" + + "obuf.Empty\"[\202\323\344\223\002:*8/v1/projects/{projec" + + "t_id}/regions/{region}/jobs/{job_id}\332A\030p" + + "roject_id,region,job_id\032K\312A\027dataproc.goo" + + "gleapis.com\322A.https://www.googleapis.com" + + "/auth/cloud-platformBm\n\034com.google.cloud" + + ".dataproc.v1B\tJobsProtoP\001Z@google.golang" + + ".org/genproto/googleapis/cloud/dataproc/" + + "v1;dataprocb\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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor, + new java.lang.String[] { "DriverLogLevels", }); + internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor, + new java.lang.String[] { "MainJarFileUri", "MainClass", "Args", "JarFileUris", "FileUris", "ArchiveUris", "Properties", "LoggingConfig", "Driver", }); + internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_SparkJob_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkJob_descriptor, + new java.lang.String[] { "MainJarFileUri", "MainClass", "Args", "JarFileUris", "FileUris", "ArchiveUris", "Properties", "LoggingConfig", "Driver", }); + internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_SparkJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor, + new java.lang.String[] { "MainPythonFileUri", "Args", "PythonFileUris", "JarFileUris", "FileUris", "ArchiveUris", "Properties", "LoggingConfig", }); + internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_QueryList_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_QueryList_descriptor, + new java.lang.String[] { "Queries", }); + internal_static_google_cloud_dataproc_v1_HiveJob_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_HiveJob_descriptor, + new java.lang.String[] { "QueryFileUri", "QueryList", "ContinueOnFailure", "ScriptVariables", "Properties", "JarFileUris", "Queries", }); + internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_HiveJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_HiveJob_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor, + new java.lang.String[] { "QueryFileUri", "QueryList", "ScriptVariables", "Properties", "JarFileUris", "LoggingConfig", "Queries", }); + internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_PigJob_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PigJob_descriptor, + new java.lang.String[] { "QueryFileUri", "QueryList", "ContinueOnFailure", "ScriptVariables", "Properties", "JarFileUris", "LoggingConfig", "Queries", }); + internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_PigJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_PigJob_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor, + new java.lang.String[] { "MainRFileUri", "Args", "FileUris", "ArchiveUris", "Properties", "LoggingConfig", }); + internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor, + new java.lang.String[] { "QueryFileUri", "QueryList", "ContinueOnFailure", "OutputFormat", "ClientTags", "Properties", "LoggingConfig", "Queries", }); + internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor, + new java.lang.String[] { "ClusterName", "ClusterUuid", "ClusterLabels", }); + internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_JobStatus_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_JobStatus_descriptor, + new java.lang.String[] { "State", "Details", "StateStartTime", "Substate", }); + internal_static_google_cloud_dataproc_v1_JobReference_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_JobReference_descriptor, + new java.lang.String[] { "ProjectId", "JobId", }); + internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor, + new java.lang.String[] { "Name", "State", "Progress", "TrackingUrl", }); + internal_static_google_cloud_dataproc_v1_Job_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_Job_descriptor, + new java.lang.String[] { "Reference", "Placement", "HadoopJob", "SparkJob", "PysparkJob", "HiveJob", "PigJob", "SparkRJob", "SparkSqlJob", "PrestoJob", "Status", "StatusHistory", "YarnApplications", "DriverOutputResourceUri", "DriverControlFilesUri", "Labels", "Scheduling", "JobUuid", "Done", "DriverSchedulingConfig", "TypeJob", }); + internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_Job_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_descriptor, + new java.lang.String[] { "MemoryMb", "Vcores", }); + internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor, + new java.lang.String[] { "MaxFailuresPerHour", "MaxFailuresTotal", }); + internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor, + new java.lang.String[] { "ProjectId", "Region", "Job", "RequestId", }); + internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor, + new java.lang.String[] { "JobId", "Status", "OperationType", "StartTime", }); + internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor, + new java.lang.String[] { "ProjectId", "Region", "JobId", }); + internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor, + new java.lang.String[] { "ProjectId", "Region", "PageSize", "PageToken", "ClusterName", "JobStateMatcher", "Filter", }); + internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor, + new java.lang.String[] { "ProjectId", "Region", "JobId", "Job", "UpdateMask", }); + internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor, + new java.lang.String[] { "Jobs", "NextPageToken", }); + internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor, + new java.lang.String[] { "ProjectId", "Region", "JobId", }); + internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_dataproc_v1_DeleteJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor, + new java.lang.String[] { "ProjectId", "Region", "JobId", }); + 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.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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java similarity index 75% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java index c04e38c2009b..37a13c4af469 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Specifies Kerberos related configuration.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.KerberosConfig} */ -public final class KerberosConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class KerberosConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.KerberosConfig) KerberosConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use KerberosConfig.newBuilder() to construct. private KerberosConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private KerberosConfig() { rootPrincipalPasswordUri_ = ""; kmsKeyUri_ = ""; @@ -55,42 +37,38 @@ private KerberosConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new KerberosConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.KerberosConfig.class, - com.google.cloud.dataproc.v1.KerberosConfig.Builder.class); + com.google.cloud.dataproc.v1.KerberosConfig.class, com.google.cloud.dataproc.v1.KerberosConfig.Builder.class); } public static final int ENABLE_KERBEROS_FIELD_NUMBER = 1; private boolean enableKerberos_; /** - * - * *
-   * Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set
-   * this field to true to enable Kerberos on a cluster.
+   * Optional. Flag to indicate whether to Kerberize the cluster (default:
+   * false). Set this field to true to enable Kerberos on a cluster.
    * 
* * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableKerberos. */ @java.lang.Override @@ -101,15 +79,12 @@ public boolean getEnableKerberos() { public static final int ROOT_PRINCIPAL_PASSWORD_URI_FIELD_NUMBER = 2; private volatile java.lang.Object rootPrincipalPasswordUri_; /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
    * principal password.
    * 
* * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The rootPrincipalPasswordUri. */ @java.lang.Override @@ -118,30 +93,30 @@ public java.lang.String getRootPrincipalPasswordUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootPrincipalPasswordUri_ = s; return s; } } /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
    * principal password.
    * 
* * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for rootPrincipalPasswordUri. */ @java.lang.Override - public com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes() { + public com.google.protobuf.ByteString + getRootPrincipalPasswordUriBytes() { java.lang.Object ref = rootPrincipalPasswordUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rootPrincipalPasswordUri_ = b; return b; } else { @@ -152,15 +127,12 @@ public com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes() { public static final int KMS_KEY_URI_FIELD_NUMBER = 3; private volatile java.lang.Object kmsKeyUri_; /** - * - * *
    * Optional. The uri of the KMS key used to encrypt various sensitive
    * files.
    * 
* * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The kmsKeyUri. */ @java.lang.Override @@ -169,30 +141,30 @@ public java.lang.String getKmsKeyUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyUri_ = s; return s; } } /** - * - * *
    * Optional. The uri of the KMS key used to encrypt various sensitive
    * files.
    * 
* * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for kmsKeyUri. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyUriBytes() { + public com.google.protobuf.ByteString + getKmsKeyUriBytes() { java.lang.Object ref = kmsKeyUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyUri_ = b; return b; } else { @@ -203,8 +175,6 @@ public com.google.protobuf.ByteString getKmsKeyUriBytes() { public static final int KEYSTORE_URI_FIELD_NUMBER = 4; private volatile java.lang.Object keystoreUri_; /** - * - * *
    * Optional. The Cloud Storage URI of the keystore file used for SSL
    * encryption. If not provided, Dataproc will provide a self-signed
@@ -212,7 +182,6 @@ public com.google.protobuf.ByteString getKmsKeyUriBytes() {
    * 
* * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The keystoreUri. */ @java.lang.Override @@ -221,15 +190,14 @@ public java.lang.String getKeystoreUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keystoreUri_ = s; return s; } } /** - * - * *
    * Optional. The Cloud Storage URI of the keystore file used for SSL
    * encryption. If not provided, Dataproc will provide a self-signed
@@ -237,15 +205,16 @@ public java.lang.String getKeystoreUri() {
    * 
* * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for keystoreUri. */ @java.lang.Override - public com.google.protobuf.ByteString getKeystoreUriBytes() { + public com.google.protobuf.ByteString + getKeystoreUriBytes() { java.lang.Object ref = keystoreUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); keystoreUri_ = b; return b; } else { @@ -256,8 +225,6 @@ public com.google.protobuf.ByteString getKeystoreUriBytes() { public static final int TRUSTSTORE_URI_FIELD_NUMBER = 5; private volatile java.lang.Object truststoreUri_; /** - * - * *
    * Optional. The Cloud Storage URI of the truststore file used for SSL
    * encryption. If not provided, Dataproc will provide a self-signed
@@ -265,7 +232,6 @@ public com.google.protobuf.ByteString getKeystoreUriBytes() {
    * 
* * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The truststoreUri. */ @java.lang.Override @@ -274,15 +240,14 @@ public java.lang.String getTruststoreUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); truststoreUri_ = s; return s; } } /** - * - * *
    * Optional. The Cloud Storage URI of the truststore file used for SSL
    * encryption. If not provided, Dataproc will provide a self-signed
@@ -290,15 +255,16 @@ public java.lang.String getTruststoreUri() {
    * 
* * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for truststoreUri. */ @java.lang.Override - public com.google.protobuf.ByteString getTruststoreUriBytes() { + public com.google.protobuf.ByteString + getTruststoreUriBytes() { java.lang.Object ref = truststoreUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); truststoreUri_ = b; return b; } else { @@ -309,8 +275,6 @@ public com.google.protobuf.ByteString getTruststoreUriBytes() { public static final int KEYSTORE_PASSWORD_URI_FIELD_NUMBER = 6; private volatile java.lang.Object keystorePasswordUri_; /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided keystore. For the self-signed certificate,
@@ -318,7 +282,6 @@ public com.google.protobuf.ByteString getTruststoreUriBytes() {
    * 
* * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The keystorePasswordUri. */ @java.lang.Override @@ -327,15 +290,14 @@ public java.lang.String getKeystorePasswordUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keystorePasswordUri_ = s; return s; } } /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided keystore. For the self-signed certificate,
@@ -343,15 +305,16 @@ public java.lang.String getKeystorePasswordUri() {
    * 
* * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for keystorePasswordUri. */ @java.lang.Override - public com.google.protobuf.ByteString getKeystorePasswordUriBytes() { + public com.google.protobuf.ByteString + getKeystorePasswordUriBytes() { java.lang.Object ref = keystorePasswordUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); keystorePasswordUri_ = b; return b; } else { @@ -362,8 +325,6 @@ public com.google.protobuf.ByteString getKeystorePasswordUriBytes() { public static final int KEY_PASSWORD_URI_FIELD_NUMBER = 7; private volatile java.lang.Object keyPasswordUri_; /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided key. For the self-signed certificate, this
@@ -371,7 +332,6 @@ public com.google.protobuf.ByteString getKeystorePasswordUriBytes() {
    * 
* * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The keyPasswordUri. */ @java.lang.Override @@ -380,15 +340,14 @@ public java.lang.String getKeyPasswordUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyPasswordUri_ = s; return s; } } /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided key. For the self-signed certificate, this
@@ -396,15 +355,16 @@ public java.lang.String getKeyPasswordUri() {
    * 
* * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for keyPasswordUri. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyPasswordUriBytes() { + public com.google.protobuf.ByteString + getKeyPasswordUriBytes() { java.lang.Object ref = keyPasswordUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); keyPasswordUri_ = b; return b; } else { @@ -415,8 +375,6 @@ public com.google.protobuf.ByteString getKeyPasswordUriBytes() { public static final int TRUSTSTORE_PASSWORD_URI_FIELD_NUMBER = 8; private volatile java.lang.Object truststorePasswordUri_; /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided truststore. For the self-signed certificate,
@@ -424,7 +382,6 @@ public com.google.protobuf.ByteString getKeyPasswordUriBytes() {
    * 
* * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The truststorePasswordUri. */ @java.lang.Override @@ -433,15 +390,14 @@ public java.lang.String getTruststorePasswordUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); truststorePasswordUri_ = s; return s; } } /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided truststore. For the self-signed certificate,
@@ -449,15 +405,16 @@ public java.lang.String getTruststorePasswordUri() {
    * 
* * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for truststorePasswordUri. */ @java.lang.Override - public com.google.protobuf.ByteString getTruststorePasswordUriBytes() { + public com.google.protobuf.ByteString + getTruststorePasswordUriBytes() { java.lang.Object ref = truststorePasswordUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); truststorePasswordUri_ = b; return b; } else { @@ -468,15 +425,12 @@ public com.google.protobuf.ByteString getTruststorePasswordUriBytes() { public static final int CROSS_REALM_TRUST_REALM_FIELD_NUMBER = 9; private volatile java.lang.Object crossRealmTrustRealm_; /** - * - * *
    * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
    * the user enable cross realm trust.
    * 
* * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The crossRealmTrustRealm. */ @java.lang.Override @@ -485,30 +439,30 @@ public java.lang.String getCrossRealmTrustRealm() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crossRealmTrustRealm_ = s; return s; } } /** - * - * *
    * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
    * the user enable cross realm trust.
    * 
* * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for crossRealmTrustRealm. */ @java.lang.Override - public com.google.protobuf.ByteString getCrossRealmTrustRealmBytes() { + public com.google.protobuf.ByteString + getCrossRealmTrustRealmBytes() { java.lang.Object ref = crossRealmTrustRealm_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crossRealmTrustRealm_ = b; return b; } else { @@ -519,15 +473,12 @@ public com.google.protobuf.ByteString getCrossRealmTrustRealmBytes() { public static final int CROSS_REALM_TRUST_KDC_FIELD_NUMBER = 10; private volatile java.lang.Object crossRealmTrustKdc_; /** - * - * *
    * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
    * realm trust relationship.
    * 
* * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The crossRealmTrustKdc. */ @java.lang.Override @@ -536,30 +487,30 @@ public java.lang.String getCrossRealmTrustKdc() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crossRealmTrustKdc_ = s; return s; } } /** - * - * *
    * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
    * realm trust relationship.
    * 
* * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for crossRealmTrustKdc. */ @java.lang.Override - public com.google.protobuf.ByteString getCrossRealmTrustKdcBytes() { + public com.google.protobuf.ByteString + getCrossRealmTrustKdcBytes() { java.lang.Object ref = crossRealmTrustKdc_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crossRealmTrustKdc_ = b; return b; } else { @@ -570,16 +521,12 @@ public com.google.protobuf.ByteString getCrossRealmTrustKdcBytes() { public static final int CROSS_REALM_TRUST_ADMIN_SERVER_FIELD_NUMBER = 11; private volatile java.lang.Object crossRealmTrustAdminServer_; /** - * - * *
    * Optional. The admin server (IP or hostname) for the remote trusted realm in
    * a cross realm trust relationship.
    * 
* - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The crossRealmTrustAdminServer. */ @java.lang.Override @@ -588,31 +535,30 @@ public java.lang.String getCrossRealmTrustAdminServer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crossRealmTrustAdminServer_ = s; return s; } } /** - * - * *
    * Optional. The admin server (IP or hostname) for the remote trusted realm in
    * a cross realm trust relationship.
    * 
* - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The bytes for crossRealmTrustAdminServer. */ @java.lang.Override - public com.google.protobuf.ByteString getCrossRealmTrustAdminServerBytes() { + public com.google.protobuf.ByteString + getCrossRealmTrustAdminServerBytes() { java.lang.Object ref = crossRealmTrustAdminServer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crossRealmTrustAdminServer_ = b; return b; } else { @@ -623,18 +569,13 @@ public com.google.protobuf.ByteString getCrossRealmTrustAdminServerBytes() { public static final int CROSS_REALM_TRUST_SHARED_PASSWORD_URI_FIELD_NUMBER = 12; private volatile java.lang.Object crossRealmTrustSharedPasswordUri_; /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * shared password between the on-cluster Kerberos realm and the remote
    * trusted realm, in a cross realm trust relationship.
    * 
* - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The crossRealmTrustSharedPasswordUri. */ @java.lang.Override @@ -643,33 +584,31 @@ public java.lang.String getCrossRealmTrustSharedPasswordUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crossRealmTrustSharedPasswordUri_ = s; return s; } } /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * shared password between the on-cluster Kerberos realm and the remote
    * trusted realm, in a cross realm trust relationship.
    * 
* - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The bytes for crossRealmTrustSharedPasswordUri. */ @java.lang.Override - public com.google.protobuf.ByteString getCrossRealmTrustSharedPasswordUriBytes() { + public com.google.protobuf.ByteString + getCrossRealmTrustSharedPasswordUriBytes() { java.lang.Object ref = crossRealmTrustSharedPasswordUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crossRealmTrustSharedPasswordUri_ = b; return b; } else { @@ -680,15 +619,12 @@ public com.google.protobuf.ByteString getCrossRealmTrustSharedPasswordUriBytes() public static final int KDC_DB_KEY_URI_FIELD_NUMBER = 13; private volatile java.lang.Object kdcDbKeyUri_; /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * master key of the KDC database.
    * 
* * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The kdcDbKeyUri. */ @java.lang.Override @@ -697,30 +633,30 @@ public java.lang.String getKdcDbKeyUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kdcDbKeyUri_ = s; return s; } } /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * master key of the KDC database.
    * 
* * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for kdcDbKeyUri. */ @java.lang.Override - public com.google.protobuf.ByteString getKdcDbKeyUriBytes() { + public com.google.protobuf.ByteString + getKdcDbKeyUriBytes() { java.lang.Object ref = kdcDbKeyUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kdcDbKeyUri_ = b; return b; } else { @@ -731,8 +667,6 @@ public com.google.protobuf.ByteString getKdcDbKeyUriBytes() { public static final int TGT_LIFETIME_HOURS_FIELD_NUMBER = 14; private int tgtLifetimeHours_; /** - * - * *
    * Optional. The lifetime of the ticket granting ticket, in hours.
    * If not specified, or user specifies 0, then default value 10
@@ -740,7 +674,6 @@ public com.google.protobuf.ByteString getKdcDbKeyUriBytes() {
    * 
* * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The tgtLifetimeHours. */ @java.lang.Override @@ -751,15 +684,12 @@ public int getTgtLifetimeHours() { public static final int REALM_FIELD_NUMBER = 15; private volatile java.lang.Object realm_; /** - * - * *
    * Optional. The name of the on-cluster Kerberos realm.
    * If not specified, the uppercased domain of hostnames will be the realm.
    * 
* * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The realm. */ @java.lang.Override @@ -768,30 +698,30 @@ public java.lang.String getRealm() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); realm_ = s; return s; } } /** - * - * *
    * Optional. The name of the on-cluster Kerberos realm.
    * If not specified, the uppercased domain of hostnames will be the realm.
    * 
* * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for realm. */ @java.lang.Override - public com.google.protobuf.ByteString getRealmBytes() { + public com.google.protobuf.ByteString + getRealmBytes() { java.lang.Object ref = realm_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); realm_ = b; return b; } else { @@ -800,7 +730,6 @@ public com.google.protobuf.ByteString getRealmBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -812,7 +741,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 (enableKerberos_ != false) { output.writeBool(1, enableKerberos_); } @@ -847,8 +777,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 11, crossRealmTrustAdminServer_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustSharedPasswordUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 12, crossRealmTrustSharedPasswordUri_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, crossRealmTrustSharedPasswordUri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kdcDbKeyUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, kdcDbKeyUri_); @@ -869,11 +798,11 @@ public int getSerializedSize() { size = 0; if (enableKerberos_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableKerberos_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableKerberos_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rootPrincipalPasswordUri_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rootPrincipalPasswordUri_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rootPrincipalPasswordUri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kmsKeyUri_); @@ -900,19 +829,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, crossRealmTrustKdc_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustAdminServer_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(11, crossRealmTrustAdminServer_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, crossRealmTrustAdminServer_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustSharedPasswordUri_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 12, crossRealmTrustSharedPasswordUri_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, crossRealmTrustSharedPasswordUri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kdcDbKeyUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kdcDbKeyUri_); } if (tgtLifetimeHours_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, tgtLifetimeHours_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(14, tgtLifetimeHours_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(realm_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, realm_); @@ -925,31 +852,43 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.KerberosConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.KerberosConfig other = - (com.google.cloud.dataproc.v1.KerberosConfig) obj; - - if (getEnableKerberos() != other.getEnableKerberos()) return false; - if (!getRootPrincipalPasswordUri().equals(other.getRootPrincipalPasswordUri())) return false; - if (!getKmsKeyUri().equals(other.getKmsKeyUri())) return false; - if (!getKeystoreUri().equals(other.getKeystoreUri())) return false; - if (!getTruststoreUri().equals(other.getTruststoreUri())) return false; - if (!getKeystorePasswordUri().equals(other.getKeystorePasswordUri())) return false; - if (!getKeyPasswordUri().equals(other.getKeyPasswordUri())) return false; - if (!getTruststorePasswordUri().equals(other.getTruststorePasswordUri())) return false; - if (!getCrossRealmTrustRealm().equals(other.getCrossRealmTrustRealm())) return false; - if (!getCrossRealmTrustKdc().equals(other.getCrossRealmTrustKdc())) return false; - if (!getCrossRealmTrustAdminServer().equals(other.getCrossRealmTrustAdminServer())) - return false; - if (!getCrossRealmTrustSharedPasswordUri().equals(other.getCrossRealmTrustSharedPasswordUri())) - return false; - if (!getKdcDbKeyUri().equals(other.getKdcDbKeyUri())) return false; - if (getTgtLifetimeHours() != other.getTgtLifetimeHours()) return false; - if (!getRealm().equals(other.getRealm())) return false; + com.google.cloud.dataproc.v1.KerberosConfig other = (com.google.cloud.dataproc.v1.KerberosConfig) obj; + + if (getEnableKerberos() + != other.getEnableKerberos()) return false; + if (!getRootPrincipalPasswordUri() + .equals(other.getRootPrincipalPasswordUri())) return false; + if (!getKmsKeyUri() + .equals(other.getKmsKeyUri())) return false; + if (!getKeystoreUri() + .equals(other.getKeystoreUri())) return false; + if (!getTruststoreUri() + .equals(other.getTruststoreUri())) return false; + if (!getKeystorePasswordUri() + .equals(other.getKeystorePasswordUri())) return false; + if (!getKeyPasswordUri() + .equals(other.getKeyPasswordUri())) return false; + if (!getTruststorePasswordUri() + .equals(other.getTruststorePasswordUri())) return false; + if (!getCrossRealmTrustRealm() + .equals(other.getCrossRealmTrustRealm())) return false; + if (!getCrossRealmTrustKdc() + .equals(other.getCrossRealmTrustKdc())) return false; + if (!getCrossRealmTrustAdminServer() + .equals(other.getCrossRealmTrustAdminServer())) return false; + if (!getCrossRealmTrustSharedPasswordUri() + .equals(other.getCrossRealmTrustSharedPasswordUri())) return false; + if (!getKdcDbKeyUri() + .equals(other.getKdcDbKeyUri())) return false; + if (getTgtLifetimeHours() + != other.getTgtLifetimeHours()) return false; + if (!getRealm() + .equals(other.getRealm())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -962,7 +901,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_KERBEROS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableKerberos()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableKerberos()); hash = (37 * hash) + ROOT_PRINCIPAL_PASSWORD_URI_FIELD_NUMBER; hash = (53 * hash) + getRootPrincipalPasswordUri().hashCode(); hash = (37 * hash) + KMS_KEY_URI_FIELD_NUMBER; @@ -996,136 +936,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.KerberosConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.KerberosConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.KerberosConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.KerberosConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specifies Kerberos related configuration.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.KerberosConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.KerberosConfig) com.google.cloud.dataproc.v1.KerberosConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.KerberosConfig.class, - com.google.cloud.dataproc.v1.KerberosConfig.Builder.class); + com.google.cloud.dataproc.v1.KerberosConfig.class, com.google.cloud.dataproc.v1.KerberosConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.KerberosConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1163,9 +1097,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; } @java.lang.Override @@ -1184,8 +1118,7 @@ public com.google.cloud.dataproc.v1.KerberosConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.KerberosConfig buildPartial() { - com.google.cloud.dataproc.v1.KerberosConfig result = - new com.google.cloud.dataproc.v1.KerberosConfig(this); + com.google.cloud.dataproc.v1.KerberosConfig result = new com.google.cloud.dataproc.v1.KerberosConfig(this); result.enableKerberos_ = enableKerberos_; result.rootPrincipalPasswordUri_ = rootPrincipalPasswordUri_; result.kmsKeyUri_ = kmsKeyUri_; @@ -1209,39 +1142,38 @@ public com.google.cloud.dataproc.v1.KerberosConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.KerberosConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.KerberosConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.KerberosConfig)other); } else { super.mergeFrom(other); return this; @@ -1334,103 +1266,87 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enableKerberos_ = input.readBool(); - - break; - } // case 8 - case 18: - { - rootPrincipalPasswordUri_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - kmsKeyUri_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - keystoreUri_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - truststoreUri_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: - { - keystorePasswordUri_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: - { - keyPasswordUri_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: - { - truststorePasswordUri_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: - { - crossRealmTrustRealm_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 82: - { - crossRealmTrustKdc_ = input.readStringRequireUtf8(); - - break; - } // case 82 - case 90: - { - crossRealmTrustAdminServer_ = input.readStringRequireUtf8(); - - break; - } // case 90 - case 98: - { - crossRealmTrustSharedPasswordUri_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 106: - { - kdcDbKeyUri_ = input.readStringRequireUtf8(); - - break; - } // case 106 - case 112: - { - tgtLifetimeHours_ = input.readInt32(); - - break; - } // case 112 - case 122: - { - realm_ = input.readStringRequireUtf8(); - - break; - } // case 122 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enableKerberos_ = input.readBool(); + + break; + } // case 8 + case 18: { + rootPrincipalPasswordUri_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + kmsKeyUri_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + keystoreUri_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + truststoreUri_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + keystorePasswordUri_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: { + keyPasswordUri_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: { + truststorePasswordUri_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: { + crossRealmTrustRealm_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: { + crossRealmTrustKdc_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: { + crossRealmTrustAdminServer_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: { + crossRealmTrustSharedPasswordUri_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: { + kdcDbKeyUri_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 112: { + tgtLifetimeHours_ = input.readInt32(); + + break; + } // case 112 + case 122: { + realm_ = input.readStringRequireUtf8(); + + break; + } // case 122 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1441,17 +1357,14 @@ public Builder mergeFrom( return this; } - private boolean enableKerberos_; + private boolean enableKerberos_ ; /** - * - * *
-     * Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set
-     * this field to true to enable Kerberos on a cluster.
+     * Optional. Flag to indicate whether to Kerberize the cluster (default:
+     * false). Set this field to true to enable Kerberos on a cluster.
      * 
* * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableKerberos. */ @java.lang.Override @@ -1459,38 +1372,32 @@ public boolean getEnableKerberos() { return enableKerberos_; } /** - * - * *
-     * Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set
-     * this field to true to enable Kerberos on a cluster.
+     * Optional. Flag to indicate whether to Kerberize the cluster (default:
+     * false). Set this field to true to enable Kerberos on a cluster.
      * 
* * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enableKerberos to set. * @return This builder for chaining. */ public Builder setEnableKerberos(boolean value) { - + enableKerberos_ = value; onChanged(); return this; } /** - * - * *
-     * Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set
-     * this field to true to enable Kerberos on a cluster.
+     * Optional. Flag to indicate whether to Kerberize the cluster (default:
+     * false). Set this field to true to enable Kerberos on a cluster.
      * 
* * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnableKerberos() { - + enableKerberos_ = false; onChanged(); return this; @@ -1498,22 +1405,19 @@ public Builder clearEnableKerberos() { private java.lang.Object rootPrincipalPasswordUri_ = ""; /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
      * principal password.
      * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The rootPrincipalPasswordUri. */ public java.lang.String getRootPrincipalPasswordUri() { java.lang.Object ref = rootPrincipalPasswordUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootPrincipalPasswordUri_ = s; return s; @@ -1522,23 +1426,21 @@ public java.lang.String getRootPrincipalPasswordUri() { } } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
      * principal password.
      * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The bytes for rootPrincipalPasswordUri. */ - public com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes() { + public com.google.protobuf.ByteString + getRootPrincipalPasswordUriBytes() { java.lang.Object ref = rootPrincipalPasswordUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rootPrincipalPasswordUri_ = b; return b; } else { @@ -1546,67 +1448,57 @@ public com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes() { } } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
      * principal password.
      * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The rootPrincipalPasswordUri to set. * @return This builder for chaining. */ - public Builder setRootPrincipalPasswordUri(java.lang.String value) { + public Builder setRootPrincipalPasswordUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + rootPrincipalPasswordUri_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
      * principal password.
      * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearRootPrincipalPasswordUri() { - + rootPrincipalPasswordUri_ = getDefaultInstance().getRootPrincipalPasswordUri(); onChanged(); return this; } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
      * principal password.
      * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes for rootPrincipalPasswordUri to set. * @return This builder for chaining. */ - public Builder setRootPrincipalPasswordUriBytes(com.google.protobuf.ByteString value) { + public Builder setRootPrincipalPasswordUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rootPrincipalPasswordUri_ = value; onChanged(); return this; @@ -1614,21 +1506,19 @@ public Builder setRootPrincipalPasswordUriBytes(com.google.protobuf.ByteString v private java.lang.Object kmsKeyUri_ = ""; /** - * - * *
      * Optional. The uri of the KMS key used to encrypt various sensitive
      * files.
      * 
* * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The kmsKeyUri. */ public java.lang.String getKmsKeyUri() { java.lang.Object ref = kmsKeyUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyUri_ = s; return s; @@ -1637,22 +1527,21 @@ public java.lang.String getKmsKeyUri() { } } /** - * - * *
      * Optional. The uri of the KMS key used to encrypt various sensitive
      * files.
      * 
* * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for kmsKeyUri. */ - public com.google.protobuf.ByteString getKmsKeyUriBytes() { + public com.google.protobuf.ByteString + getKmsKeyUriBytes() { java.lang.Object ref = kmsKeyUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyUri_ = b; return b; } else { @@ -1660,64 +1549,57 @@ public com.google.protobuf.ByteString getKmsKeyUriBytes() { } } /** - * - * *
      * Optional. The uri of the KMS key used to encrypt various sensitive
      * files.
      * 
* * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The kmsKeyUri to set. * @return This builder for chaining. */ - public Builder setKmsKeyUri(java.lang.String value) { + public Builder setKmsKeyUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyUri_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The uri of the KMS key used to encrypt various sensitive
      * files.
      * 
* * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearKmsKeyUri() { - + kmsKeyUri_ = getDefaultInstance().getKmsKeyUri(); onChanged(); return this; } /** - * - * *
      * Optional. The uri of the KMS key used to encrypt various sensitive
      * files.
      * 
* * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for kmsKeyUri to set. * @return This builder for chaining. */ - public Builder setKmsKeyUriBytes(com.google.protobuf.ByteString value) { + public Builder setKmsKeyUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyUri_ = value; onChanged(); return this; @@ -1725,8 +1607,6 @@ public Builder setKmsKeyUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object keystoreUri_ = ""; /** - * - * *
      * Optional. The Cloud Storage URI of the keystore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1734,13 +1614,13 @@ public Builder setKmsKeyUriBytes(com.google.protobuf.ByteString value) {
      * 
* * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The keystoreUri. */ public java.lang.String getKeystoreUri() { java.lang.Object ref = keystoreUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keystoreUri_ = s; return s; @@ -1749,8 +1629,6 @@ public java.lang.String getKeystoreUri() { } } /** - * - * *
      * Optional. The Cloud Storage URI of the keystore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1758,14 +1636,15 @@ public java.lang.String getKeystoreUri() {
      * 
* * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for keystoreUri. */ - public com.google.protobuf.ByteString getKeystoreUriBytes() { + public com.google.protobuf.ByteString + getKeystoreUriBytes() { java.lang.Object ref = keystoreUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); keystoreUri_ = b; return b; } else { @@ -1773,8 +1652,6 @@ public com.google.protobuf.ByteString getKeystoreUriBytes() { } } /** - * - * *
      * Optional. The Cloud Storage URI of the keystore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1782,22 +1659,20 @@ public com.google.protobuf.ByteString getKeystoreUriBytes() {
      * 
* * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The keystoreUri to set. * @return This builder for chaining. */ - public Builder setKeystoreUri(java.lang.String value) { + public Builder setKeystoreUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + keystoreUri_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Cloud Storage URI of the keystore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1805,18 +1680,15 @@ public Builder setKeystoreUri(java.lang.String value) {
      * 
* * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearKeystoreUri() { - + keystoreUri_ = getDefaultInstance().getKeystoreUri(); onChanged(); return this; } /** - * - * *
      * Optional. The Cloud Storage URI of the keystore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1824,16 +1696,16 @@ public Builder clearKeystoreUri() {
      * 
* * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for keystoreUri to set. * @return This builder for chaining. */ - public Builder setKeystoreUriBytes(com.google.protobuf.ByteString value) { + public Builder setKeystoreUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keystoreUri_ = value; onChanged(); return this; @@ -1841,8 +1713,6 @@ public Builder setKeystoreUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object truststoreUri_ = ""; /** - * - * *
      * Optional. The Cloud Storage URI of the truststore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1850,13 +1720,13 @@ public Builder setKeystoreUriBytes(com.google.protobuf.ByteString value) {
      * 
* * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The truststoreUri. */ public java.lang.String getTruststoreUri() { java.lang.Object ref = truststoreUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); truststoreUri_ = s; return s; @@ -1865,8 +1735,6 @@ public java.lang.String getTruststoreUri() { } } /** - * - * *
      * Optional. The Cloud Storage URI of the truststore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1874,14 +1742,15 @@ public java.lang.String getTruststoreUri() {
      * 
* * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for truststoreUri. */ - public com.google.protobuf.ByteString getTruststoreUriBytes() { + public com.google.protobuf.ByteString + getTruststoreUriBytes() { java.lang.Object ref = truststoreUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); truststoreUri_ = b; return b; } else { @@ -1889,8 +1758,6 @@ public com.google.protobuf.ByteString getTruststoreUriBytes() { } } /** - * - * *
      * Optional. The Cloud Storage URI of the truststore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1898,22 +1765,20 @@ public com.google.protobuf.ByteString getTruststoreUriBytes() {
      * 
* * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The truststoreUri to set. * @return This builder for chaining. */ - public Builder setTruststoreUri(java.lang.String value) { + public Builder setTruststoreUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + truststoreUri_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Cloud Storage URI of the truststore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1921,18 +1786,15 @@ public Builder setTruststoreUri(java.lang.String value) {
      * 
* * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTruststoreUri() { - + truststoreUri_ = getDefaultInstance().getTruststoreUri(); onChanged(); return this; } /** - * - * *
      * Optional. The Cloud Storage URI of the truststore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1940,16 +1802,16 @@ public Builder clearTruststoreUri() {
      * 
* * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for truststoreUri to set. * @return This builder for chaining. */ - public Builder setTruststoreUriBytes(com.google.protobuf.ByteString value) { + public Builder setTruststoreUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + truststoreUri_ = value; onChanged(); return this; @@ -1957,8 +1819,6 @@ public Builder setTruststoreUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object keystorePasswordUri_ = ""; /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided keystore. For the self-signed certificate,
@@ -1966,13 +1826,13 @@ public Builder setTruststoreUriBytes(com.google.protobuf.ByteString value) {
      * 
* * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The keystorePasswordUri. */ public java.lang.String getKeystorePasswordUri() { java.lang.Object ref = keystorePasswordUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keystorePasswordUri_ = s; return s; @@ -1981,8 +1841,6 @@ public java.lang.String getKeystorePasswordUri() { } } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided keystore. For the self-signed certificate,
@@ -1990,14 +1848,15 @@ public java.lang.String getKeystorePasswordUri() {
      * 
* * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for keystorePasswordUri. */ - public com.google.protobuf.ByteString getKeystorePasswordUriBytes() { + public com.google.protobuf.ByteString + getKeystorePasswordUriBytes() { java.lang.Object ref = keystorePasswordUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); keystorePasswordUri_ = b; return b; } else { @@ -2005,8 +1864,6 @@ public com.google.protobuf.ByteString getKeystorePasswordUriBytes() { } } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided keystore. For the self-signed certificate,
@@ -2014,22 +1871,20 @@ public com.google.protobuf.ByteString getKeystorePasswordUriBytes() {
      * 
* * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The keystorePasswordUri to set. * @return This builder for chaining. */ - public Builder setKeystorePasswordUri(java.lang.String value) { + public Builder setKeystorePasswordUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + keystorePasswordUri_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided keystore. For the self-signed certificate,
@@ -2037,18 +1892,15 @@ public Builder setKeystorePasswordUri(java.lang.String value) {
      * 
* * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearKeystorePasswordUri() { - + keystorePasswordUri_ = getDefaultInstance().getKeystorePasswordUri(); onChanged(); return this; } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided keystore. For the self-signed certificate,
@@ -2056,16 +1908,16 @@ public Builder clearKeystorePasswordUri() {
      * 
* * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for keystorePasswordUri to set. * @return This builder for chaining. */ - public Builder setKeystorePasswordUriBytes(com.google.protobuf.ByteString value) { + public Builder setKeystorePasswordUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keystorePasswordUri_ = value; onChanged(); return this; @@ -2073,8 +1925,6 @@ public Builder setKeystorePasswordUriBytes(com.google.protobuf.ByteString value) private java.lang.Object keyPasswordUri_ = ""; /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided key. For the self-signed certificate, this
@@ -2082,13 +1932,13 @@ public Builder setKeystorePasswordUriBytes(com.google.protobuf.ByteString value)
      * 
* * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The keyPasswordUri. */ public java.lang.String getKeyPasswordUri() { java.lang.Object ref = keyPasswordUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyPasswordUri_ = s; return s; @@ -2097,8 +1947,6 @@ public java.lang.String getKeyPasswordUri() { } } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided key. For the self-signed certificate, this
@@ -2106,14 +1954,15 @@ public java.lang.String getKeyPasswordUri() {
      * 
* * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for keyPasswordUri. */ - public com.google.protobuf.ByteString getKeyPasswordUriBytes() { + public com.google.protobuf.ByteString + getKeyPasswordUriBytes() { java.lang.Object ref = keyPasswordUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); keyPasswordUri_ = b; return b; } else { @@ -2121,8 +1970,6 @@ public com.google.protobuf.ByteString getKeyPasswordUriBytes() { } } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided key. For the self-signed certificate, this
@@ -2130,22 +1977,20 @@ public com.google.protobuf.ByteString getKeyPasswordUriBytes() {
      * 
* * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The keyPasswordUri to set. * @return This builder for chaining. */ - public Builder setKeyPasswordUri(java.lang.String value) { + public Builder setKeyPasswordUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + keyPasswordUri_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided key. For the self-signed certificate, this
@@ -2153,18 +1998,15 @@ public Builder setKeyPasswordUri(java.lang.String value) {
      * 
* * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearKeyPasswordUri() { - + keyPasswordUri_ = getDefaultInstance().getKeyPasswordUri(); onChanged(); return this; } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided key. For the self-signed certificate, this
@@ -2172,16 +2014,16 @@ public Builder clearKeyPasswordUri() {
      * 
* * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for keyPasswordUri to set. * @return This builder for chaining. */ - public Builder setKeyPasswordUriBytes(com.google.protobuf.ByteString value) { + public Builder setKeyPasswordUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keyPasswordUri_ = value; onChanged(); return this; @@ -2189,8 +2031,6 @@ public Builder setKeyPasswordUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object truststorePasswordUri_ = ""; /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided truststore. For the self-signed certificate,
@@ -2198,13 +2038,13 @@ public Builder setKeyPasswordUriBytes(com.google.protobuf.ByteString value) {
      * 
* * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The truststorePasswordUri. */ public java.lang.String getTruststorePasswordUri() { java.lang.Object ref = truststorePasswordUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); truststorePasswordUri_ = s; return s; @@ -2213,8 +2053,6 @@ public java.lang.String getTruststorePasswordUri() { } } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided truststore. For the self-signed certificate,
@@ -2222,14 +2060,15 @@ public java.lang.String getTruststorePasswordUri() {
      * 
* * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for truststorePasswordUri. */ - public com.google.protobuf.ByteString getTruststorePasswordUriBytes() { + public com.google.protobuf.ByteString + getTruststorePasswordUriBytes() { java.lang.Object ref = truststorePasswordUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); truststorePasswordUri_ = b; return b; } else { @@ -2237,8 +2076,6 @@ public com.google.protobuf.ByteString getTruststorePasswordUriBytes() { } } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided truststore. For the self-signed certificate,
@@ -2246,22 +2083,20 @@ public com.google.protobuf.ByteString getTruststorePasswordUriBytes() {
      * 
* * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The truststorePasswordUri to set. * @return This builder for chaining. */ - public Builder setTruststorePasswordUri(java.lang.String value) { + public Builder setTruststorePasswordUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + truststorePasswordUri_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided truststore. For the self-signed certificate,
@@ -2269,18 +2104,15 @@ public Builder setTruststorePasswordUri(java.lang.String value) {
      * 
* * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTruststorePasswordUri() { - + truststorePasswordUri_ = getDefaultInstance().getTruststorePasswordUri(); onChanged(); return this; } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided truststore. For the self-signed certificate,
@@ -2288,16 +2120,16 @@ public Builder clearTruststorePasswordUri() {
      * 
* * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for truststorePasswordUri to set. * @return This builder for chaining. */ - public Builder setTruststorePasswordUriBytes(com.google.protobuf.ByteString value) { + public Builder setTruststorePasswordUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + truststorePasswordUri_ = value; onChanged(); return this; @@ -2305,21 +2137,19 @@ public Builder setTruststorePasswordUriBytes(com.google.protobuf.ByteString valu private java.lang.Object crossRealmTrustRealm_ = ""; /** - * - * *
      * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
      * the user enable cross realm trust.
      * 
* * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The crossRealmTrustRealm. */ public java.lang.String getCrossRealmTrustRealm() { java.lang.Object ref = crossRealmTrustRealm_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crossRealmTrustRealm_ = s; return s; @@ -2328,22 +2158,21 @@ public java.lang.String getCrossRealmTrustRealm() { } } /** - * - * *
      * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
      * the user enable cross realm trust.
      * 
* * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for crossRealmTrustRealm. */ - public com.google.protobuf.ByteString getCrossRealmTrustRealmBytes() { + public com.google.protobuf.ByteString + getCrossRealmTrustRealmBytes() { java.lang.Object ref = crossRealmTrustRealm_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crossRealmTrustRealm_ = b; return b; } else { @@ -2351,64 +2180,57 @@ public com.google.protobuf.ByteString getCrossRealmTrustRealmBytes() { } } /** - * - * *
      * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
      * the user enable cross realm trust.
      * 
* * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The crossRealmTrustRealm to set. * @return This builder for chaining. */ - public Builder setCrossRealmTrustRealm(java.lang.String value) { + public Builder setCrossRealmTrustRealm( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crossRealmTrustRealm_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
      * the user enable cross realm trust.
      * 
* * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCrossRealmTrustRealm() { - + crossRealmTrustRealm_ = getDefaultInstance().getCrossRealmTrustRealm(); onChanged(); return this; } /** - * - * *
      * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
      * the user enable cross realm trust.
      * 
* * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for crossRealmTrustRealm to set. * @return This builder for chaining. */ - public Builder setCrossRealmTrustRealmBytes(com.google.protobuf.ByteString value) { + public Builder setCrossRealmTrustRealmBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crossRealmTrustRealm_ = value; onChanged(); return this; @@ -2416,21 +2238,19 @@ public Builder setCrossRealmTrustRealmBytes(com.google.protobuf.ByteString value private java.lang.Object crossRealmTrustKdc_ = ""; /** - * - * *
      * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
      * realm trust relationship.
      * 
* * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The crossRealmTrustKdc. */ public java.lang.String getCrossRealmTrustKdc() { java.lang.Object ref = crossRealmTrustKdc_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crossRealmTrustKdc_ = s; return s; @@ -2439,22 +2259,21 @@ public java.lang.String getCrossRealmTrustKdc() { } } /** - * - * *
      * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
      * realm trust relationship.
      * 
* * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for crossRealmTrustKdc. */ - public com.google.protobuf.ByteString getCrossRealmTrustKdcBytes() { + public com.google.protobuf.ByteString + getCrossRealmTrustKdcBytes() { java.lang.Object ref = crossRealmTrustKdc_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crossRealmTrustKdc_ = b; return b; } else { @@ -2462,64 +2281,57 @@ public com.google.protobuf.ByteString getCrossRealmTrustKdcBytes() { } } /** - * - * *
      * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
      * realm trust relationship.
      * 
* * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The crossRealmTrustKdc to set. * @return This builder for chaining. */ - public Builder setCrossRealmTrustKdc(java.lang.String value) { + public Builder setCrossRealmTrustKdc( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crossRealmTrustKdc_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
      * realm trust relationship.
      * 
* * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCrossRealmTrustKdc() { - + crossRealmTrustKdc_ = getDefaultInstance().getCrossRealmTrustKdc(); onChanged(); return this; } /** - * - * *
      * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
      * realm trust relationship.
      * 
* * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for crossRealmTrustKdc to set. * @return This builder for chaining. */ - public Builder setCrossRealmTrustKdcBytes(com.google.protobuf.ByteString value) { + public Builder setCrossRealmTrustKdcBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crossRealmTrustKdc_ = value; onChanged(); return this; @@ -2527,22 +2339,19 @@ public Builder setCrossRealmTrustKdcBytes(com.google.protobuf.ByteString value) private java.lang.Object crossRealmTrustAdminServer_ = ""; /** - * - * *
      * Optional. The admin server (IP or hostname) for the remote trusted realm in
      * a cross realm trust relationship.
      * 
* - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The crossRealmTrustAdminServer. */ public java.lang.String getCrossRealmTrustAdminServer() { java.lang.Object ref = crossRealmTrustAdminServer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crossRealmTrustAdminServer_ = s; return s; @@ -2551,23 +2360,21 @@ public java.lang.String getCrossRealmTrustAdminServer() { } } /** - * - * *
      * Optional. The admin server (IP or hostname) for the remote trusted realm in
      * a cross realm trust relationship.
      * 
* - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The bytes for crossRealmTrustAdminServer. */ - public com.google.protobuf.ByteString getCrossRealmTrustAdminServerBytes() { + public com.google.protobuf.ByteString + getCrossRealmTrustAdminServerBytes() { java.lang.Object ref = crossRealmTrustAdminServer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crossRealmTrustAdminServer_ = b; return b; } else { @@ -2575,67 +2382,57 @@ public com.google.protobuf.ByteString getCrossRealmTrustAdminServerBytes() { } } /** - * - * *
      * Optional. The admin server (IP or hostname) for the remote trusted realm in
      * a cross realm trust relationship.
      * 
* - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; * @param value The crossRealmTrustAdminServer to set. * @return This builder for chaining. */ - public Builder setCrossRealmTrustAdminServer(java.lang.String value) { + public Builder setCrossRealmTrustAdminServer( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crossRealmTrustAdminServer_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The admin server (IP or hostname) for the remote trusted realm in
      * a cross realm trust relationship.
      * 
* - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearCrossRealmTrustAdminServer() { - + crossRealmTrustAdminServer_ = getDefaultInstance().getCrossRealmTrustAdminServer(); onChanged(); return this; } /** - * - * *
      * Optional. The admin server (IP or hostname) for the remote trusted realm in
      * a cross realm trust relationship.
      * 
* - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes for crossRealmTrustAdminServer to set. * @return This builder for chaining. */ - public Builder setCrossRealmTrustAdminServerBytes(com.google.protobuf.ByteString value) { + public Builder setCrossRealmTrustAdminServerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crossRealmTrustAdminServer_ = value; onChanged(); return this; @@ -2643,24 +2440,20 @@ public Builder setCrossRealmTrustAdminServerBytes(com.google.protobuf.ByteString private java.lang.Object crossRealmTrustSharedPasswordUri_ = ""; /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * shared password between the on-cluster Kerberos realm and the remote
      * trusted realm, in a cross realm trust relationship.
      * 
* - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The crossRealmTrustSharedPasswordUri. */ public java.lang.String getCrossRealmTrustSharedPasswordUri() { java.lang.Object ref = crossRealmTrustSharedPasswordUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crossRealmTrustSharedPasswordUri_ = s; return s; @@ -2669,25 +2462,22 @@ public java.lang.String getCrossRealmTrustSharedPasswordUri() { } } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * shared password between the on-cluster Kerberos realm and the remote
      * trusted realm, in a cross realm trust relationship.
      * 
* - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The bytes for crossRealmTrustSharedPasswordUri. */ - public com.google.protobuf.ByteString getCrossRealmTrustSharedPasswordUriBytes() { + public com.google.protobuf.ByteString + getCrossRealmTrustSharedPasswordUriBytes() { java.lang.Object ref = crossRealmTrustSharedPasswordUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crossRealmTrustSharedPasswordUri_ = b; return b; } else { @@ -2695,74 +2485,60 @@ public com.google.protobuf.ByteString getCrossRealmTrustSharedPasswordUriBytes() } } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * shared password between the on-cluster Kerberos realm and the remote
      * trusted realm, in a cross realm trust relationship.
      * 
* - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; * @param value The crossRealmTrustSharedPasswordUri to set. * @return This builder for chaining. */ - public Builder setCrossRealmTrustSharedPasswordUri(java.lang.String value) { + public Builder setCrossRealmTrustSharedPasswordUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crossRealmTrustSharedPasswordUri_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * shared password between the on-cluster Kerberos realm and the remote
      * trusted realm, in a cross realm trust relationship.
      * 
* - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearCrossRealmTrustSharedPasswordUri() { - - crossRealmTrustSharedPasswordUri_ = - getDefaultInstance().getCrossRealmTrustSharedPasswordUri(); + + crossRealmTrustSharedPasswordUri_ = getDefaultInstance().getCrossRealmTrustSharedPasswordUri(); onChanged(); return this; } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * shared password between the on-cluster Kerberos realm and the remote
      * trusted realm, in a cross realm trust relationship.
      * 
* - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes for crossRealmTrustSharedPasswordUri to set. * @return This builder for chaining. */ - public Builder setCrossRealmTrustSharedPasswordUriBytes(com.google.protobuf.ByteString value) { + public Builder setCrossRealmTrustSharedPasswordUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crossRealmTrustSharedPasswordUri_ = value; onChanged(); return this; @@ -2770,21 +2546,19 @@ public Builder setCrossRealmTrustSharedPasswordUriBytes(com.google.protobuf.Byte private java.lang.Object kdcDbKeyUri_ = ""; /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * master key of the KDC database.
      * 
* * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The kdcDbKeyUri. */ public java.lang.String getKdcDbKeyUri() { java.lang.Object ref = kdcDbKeyUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kdcDbKeyUri_ = s; return s; @@ -2793,22 +2567,21 @@ public java.lang.String getKdcDbKeyUri() { } } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * master key of the KDC database.
      * 
* * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for kdcDbKeyUri. */ - public com.google.protobuf.ByteString getKdcDbKeyUriBytes() { + public com.google.protobuf.ByteString + getKdcDbKeyUriBytes() { java.lang.Object ref = kdcDbKeyUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kdcDbKeyUri_ = b; return b; } else { @@ -2816,73 +2589,64 @@ public com.google.protobuf.ByteString getKdcDbKeyUriBytes() { } } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * master key of the KDC database.
      * 
* * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The kdcDbKeyUri to set. * @return This builder for chaining. */ - public Builder setKdcDbKeyUri(java.lang.String value) { + public Builder setKdcDbKeyUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kdcDbKeyUri_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * master key of the KDC database.
      * 
* * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearKdcDbKeyUri() { - + kdcDbKeyUri_ = getDefaultInstance().getKdcDbKeyUri(); onChanged(); return this; } /** - * - * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * master key of the KDC database.
      * 
* * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for kdcDbKeyUri to set. * @return This builder for chaining. */ - public Builder setKdcDbKeyUriBytes(com.google.protobuf.ByteString value) { + public Builder setKdcDbKeyUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kdcDbKeyUri_ = value; onChanged(); return this; } - private int tgtLifetimeHours_; + private int tgtLifetimeHours_ ; /** - * - * *
      * Optional. The lifetime of the ticket granting ticket, in hours.
      * If not specified, or user specifies 0, then default value 10
@@ -2890,7 +2654,6 @@ public Builder setKdcDbKeyUriBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The tgtLifetimeHours. */ @java.lang.Override @@ -2898,8 +2661,6 @@ public int getTgtLifetimeHours() { return tgtLifetimeHours_; } /** - * - * *
      * Optional. The lifetime of the ticket granting ticket, in hours.
      * If not specified, or user specifies 0, then default value 10
@@ -2907,19 +2668,16 @@ public int getTgtLifetimeHours() {
      * 
* * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The tgtLifetimeHours to set. * @return This builder for chaining. */ public Builder setTgtLifetimeHours(int value) { - + tgtLifetimeHours_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The lifetime of the ticket granting ticket, in hours.
      * If not specified, or user specifies 0, then default value 10
@@ -2927,11 +2685,10 @@ public Builder setTgtLifetimeHours(int value) {
      * 
* * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTgtLifetimeHours() { - + tgtLifetimeHours_ = 0; onChanged(); return this; @@ -2939,21 +2696,19 @@ public Builder clearTgtLifetimeHours() { private java.lang.Object realm_ = ""; /** - * - * *
      * Optional. The name of the on-cluster Kerberos realm.
      * If not specified, the uppercased domain of hostnames will be the realm.
      * 
* * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The realm. */ public java.lang.String getRealm() { java.lang.Object ref = realm_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); realm_ = s; return s; @@ -2962,22 +2717,21 @@ public java.lang.String getRealm() { } } /** - * - * *
      * Optional. The name of the on-cluster Kerberos realm.
      * If not specified, the uppercased domain of hostnames will be the realm.
      * 
* * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for realm. */ - public com.google.protobuf.ByteString getRealmBytes() { + public com.google.protobuf.ByteString + getRealmBytes() { java.lang.Object ref = realm_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); realm_ = b; return b; } else { @@ -2985,71 +2739,64 @@ public com.google.protobuf.ByteString getRealmBytes() { } } /** - * - * *
      * Optional. The name of the on-cluster Kerberos realm.
      * If not specified, the uppercased domain of hostnames will be the realm.
      * 
* * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The realm to set. * @return This builder for chaining. */ - public Builder setRealm(java.lang.String value) { + public Builder setRealm( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + realm_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The name of the on-cluster Kerberos realm.
      * If not specified, the uppercased domain of hostnames will be the realm.
      * 
* * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRealm() { - + realm_ = getDefaultInstance().getRealm(); onChanged(); return this; } /** - * - * *
      * Optional. The name of the on-cluster Kerberos realm.
      * If not specified, the uppercased domain of hostnames will be the realm.
      * 
* * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for realm to set. * @return This builder for chaining. */ - public Builder setRealmBytes(com.google.protobuf.ByteString value) { + public Builder setRealmBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + realm_ = 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); } @@ -3059,12 +2806,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.KerberosConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.KerberosConfig) private static final com.google.cloud.dataproc.v1.KerberosConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.KerberosConfig(); } @@ -3073,27 +2820,27 @@ public static com.google.cloud.dataproc.v1.KerberosConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KerberosConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KerberosConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3108,4 +2855,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.KerberosConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java similarity index 80% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java index 0f7dc4724f1a..b5b99db40fbb 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java @@ -1,99 +1,68 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface KerberosConfigOrBuilder - extends +public interface KerberosConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.KerberosConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set
-   * this field to true to enable Kerberos on a cluster.
+   * Optional. Flag to indicate whether to Kerberize the cluster (default:
+   * false). Set this field to true to enable Kerberos on a cluster.
    * 
* * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableKerberos. */ boolean getEnableKerberos(); /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
    * principal password.
    * 
* * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The rootPrincipalPasswordUri. */ java.lang.String getRootPrincipalPasswordUri(); /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
    * principal password.
    * 
* * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for rootPrincipalPasswordUri. */ - com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes(); + com.google.protobuf.ByteString + getRootPrincipalPasswordUriBytes(); /** - * - * *
    * Optional. The uri of the KMS key used to encrypt various sensitive
    * files.
    * 
* * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The kmsKeyUri. */ java.lang.String getKmsKeyUri(); /** - * - * *
    * Optional. The uri of the KMS key used to encrypt various sensitive
    * files.
    * 
* * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for kmsKeyUri. */ - com.google.protobuf.ByteString getKmsKeyUriBytes(); + com.google.protobuf.ByteString + getKmsKeyUriBytes(); /** - * - * *
    * Optional. The Cloud Storage URI of the keystore file used for SSL
    * encryption. If not provided, Dataproc will provide a self-signed
@@ -101,13 +70,10 @@ public interface KerberosConfigOrBuilder
    * 
* * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The keystoreUri. */ java.lang.String getKeystoreUri(); /** - * - * *
    * Optional. The Cloud Storage URI of the keystore file used for SSL
    * encryption. If not provided, Dataproc will provide a self-signed
@@ -115,14 +81,12 @@ public interface KerberosConfigOrBuilder
    * 
* * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for keystoreUri. */ - com.google.protobuf.ByteString getKeystoreUriBytes(); + com.google.protobuf.ByteString + getKeystoreUriBytes(); /** - * - * *
    * Optional. The Cloud Storage URI of the truststore file used for SSL
    * encryption. If not provided, Dataproc will provide a self-signed
@@ -130,13 +94,10 @@ public interface KerberosConfigOrBuilder
    * 
* * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The truststoreUri. */ java.lang.String getTruststoreUri(); /** - * - * *
    * Optional. The Cloud Storage URI of the truststore file used for SSL
    * encryption. If not provided, Dataproc will provide a self-signed
@@ -144,14 +105,12 @@ public interface KerberosConfigOrBuilder
    * 
* * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for truststoreUri. */ - com.google.protobuf.ByteString getTruststoreUriBytes(); + com.google.protobuf.ByteString + getTruststoreUriBytes(); /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided keystore. For the self-signed certificate,
@@ -159,13 +118,10 @@ public interface KerberosConfigOrBuilder
    * 
* * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The keystorePasswordUri. */ java.lang.String getKeystorePasswordUri(); /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided keystore. For the self-signed certificate,
@@ -173,14 +129,12 @@ public interface KerberosConfigOrBuilder
    * 
* * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for keystorePasswordUri. */ - com.google.protobuf.ByteString getKeystorePasswordUriBytes(); + com.google.protobuf.ByteString + getKeystorePasswordUriBytes(); /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided key. For the self-signed certificate, this
@@ -188,13 +142,10 @@ public interface KerberosConfigOrBuilder
    * 
* * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The keyPasswordUri. */ java.lang.String getKeyPasswordUri(); /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided key. For the self-signed certificate, this
@@ -202,14 +153,12 @@ public interface KerberosConfigOrBuilder
    * 
* * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for keyPasswordUri. */ - com.google.protobuf.ByteString getKeyPasswordUriBytes(); + com.google.protobuf.ByteString + getKeyPasswordUriBytes(); /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided truststore. For the self-signed certificate,
@@ -217,13 +166,10 @@ public interface KerberosConfigOrBuilder
    * 
* * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The truststorePasswordUri. */ java.lang.String getTruststorePasswordUri(); /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided truststore. For the self-signed certificate,
@@ -231,157 +177,124 @@ public interface KerberosConfigOrBuilder
    * 
* * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for truststorePasswordUri. */ - com.google.protobuf.ByteString getTruststorePasswordUriBytes(); + com.google.protobuf.ByteString + getTruststorePasswordUriBytes(); /** - * - * *
    * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
    * the user enable cross realm trust.
    * 
* * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The crossRealmTrustRealm. */ java.lang.String getCrossRealmTrustRealm(); /** - * - * *
    * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
    * the user enable cross realm trust.
    * 
* * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for crossRealmTrustRealm. */ - com.google.protobuf.ByteString getCrossRealmTrustRealmBytes(); + com.google.protobuf.ByteString + getCrossRealmTrustRealmBytes(); /** - * - * *
    * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
    * realm trust relationship.
    * 
* * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The crossRealmTrustKdc. */ java.lang.String getCrossRealmTrustKdc(); /** - * - * *
    * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
    * realm trust relationship.
    * 
* * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for crossRealmTrustKdc. */ - com.google.protobuf.ByteString getCrossRealmTrustKdcBytes(); + com.google.protobuf.ByteString + getCrossRealmTrustKdcBytes(); /** - * - * *
    * Optional. The admin server (IP or hostname) for the remote trusted realm in
    * a cross realm trust relationship.
    * 
* - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The crossRealmTrustAdminServer. */ java.lang.String getCrossRealmTrustAdminServer(); /** - * - * *
    * Optional. The admin server (IP or hostname) for the remote trusted realm in
    * a cross realm trust relationship.
    * 
* - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The bytes for crossRealmTrustAdminServer. */ - com.google.protobuf.ByteString getCrossRealmTrustAdminServerBytes(); + com.google.protobuf.ByteString + getCrossRealmTrustAdminServerBytes(); /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * shared password between the on-cluster Kerberos realm and the remote
    * trusted realm, in a cross realm trust relationship.
    * 
* - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The crossRealmTrustSharedPasswordUri. */ java.lang.String getCrossRealmTrustSharedPasswordUri(); /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * shared password between the on-cluster Kerberos realm and the remote
    * trusted realm, in a cross realm trust relationship.
    * 
* - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The bytes for crossRealmTrustSharedPasswordUri. */ - com.google.protobuf.ByteString getCrossRealmTrustSharedPasswordUriBytes(); + com.google.protobuf.ByteString + getCrossRealmTrustSharedPasswordUriBytes(); /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * master key of the KDC database.
    * 
* * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The kdcDbKeyUri. */ java.lang.String getKdcDbKeyUri(); /** - * - * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * master key of the KDC database.
    * 
* * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for kdcDbKeyUri. */ - com.google.protobuf.ByteString getKdcDbKeyUriBytes(); + com.google.protobuf.ByteString + getKdcDbKeyUriBytes(); /** - * - * *
    * Optional. The lifetime of the ticket granting ticket, in hours.
    * If not specified, or user specifies 0, then default value 10
@@ -389,35 +302,29 @@ public interface KerberosConfigOrBuilder
    * 
* * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The tgtLifetimeHours. */ int getTgtLifetimeHours(); /** - * - * *
    * Optional. The name of the on-cluster Kerberos realm.
    * If not specified, the uppercased domain of hostnames will be the realm.
    * 
* * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The realm. */ java.lang.String getRealm(); /** - * - * *
    * Optional. The name of the on-cluster Kerberos realm.
    * If not specified, the uppercased domain of hostnames will be the realm.
    * 
* * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for realm. */ - com.google.protobuf.ByteString getRealmBytes(); + com.google.protobuf.ByteString + getRealmBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java index 338a6a857ab5..d58538da890f 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java @@ -1,83 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * The configuration for running the Dataproc cluster on Kubernetes.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.KubernetesClusterConfig} */ -public final class KubernetesClusterConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class KubernetesClusterConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.KubernetesClusterConfig) KubernetesClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use KubernetesClusterConfig.newBuilder() to construct. private KubernetesClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private KubernetesClusterConfig() { kubernetesNamespace_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new KubernetesClusterConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.KubernetesClusterConfig.class, - com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder.class); + com.google.cloud.dataproc.v1.KubernetesClusterConfig.class, com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder.class); } private int configCase_ = 0; private java.lang.Object config_; - public enum ConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GKE_CLUSTER_CONFIG(2), CONFIG_NOT_SET(0); private final int value; - private ConfigCase(int value) { this.value = value; } @@ -93,29 +71,25 @@ public static ConfigCase valueOf(int value) { public static ConfigCase forNumber(int value) { switch (value) { - case 2: - return GKE_CLUSTER_CONFIG; - case 0: - return CONFIG_NOT_SET; - default: - return null; + case 2: return GKE_CLUSTER_CONFIG; + case 0: return CONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ConfigCase getConfigCase() { - return ConfigCase.forNumber(configCase_); + public ConfigCase + getConfigCase() { + return ConfigCase.forNumber( + configCase_); } public static final int KUBERNETES_NAMESPACE_FIELD_NUMBER = 1; private volatile java.lang.Object kubernetesNamespace_; /** - * - * *
    * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
    * does not exist, it is created. If it exists, Dataproc
@@ -124,7 +98,6 @@ public ConfigCase getConfigCase() {
    * 
* * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The kubernetesNamespace. */ @java.lang.Override @@ -133,15 +106,14 @@ public java.lang.String getKubernetesNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kubernetesNamespace_ = s; return s; } } /** - * - * *
    * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
    * does not exist, it is created. If it exists, Dataproc
@@ -150,15 +122,16 @@ public java.lang.String getKubernetesNamespace() {
    * 
* * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for kubernetesNamespace. */ @java.lang.Override - public com.google.protobuf.ByteString getKubernetesNamespaceBytes() { + public com.google.protobuf.ByteString + getKubernetesNamespaceBytes() { java.lang.Object ref = kubernetesNamespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kubernetesNamespace_ = b; return b; } else { @@ -168,16 +141,11 @@ public com.google.protobuf.ByteString getKubernetesNamespaceBytes() { public static final int GKE_CLUSTER_CONFIG_FIELD_NUMBER = 2; /** - * - * *
    * Required. The configuration for running the Dataproc cluster on GKE.
    * 
* - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gkeClusterConfig field is set. */ @java.lang.Override @@ -185,40 +153,31 @@ public boolean hasGkeClusterConfig() { return configCase_ == 2; } /** - * - * *
    * Required. The configuration for running the Dataproc cluster on GKE.
    * 
* - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The gkeClusterConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.GkeClusterConfig getGkeClusterConfig() { if (configCase_ == 2) { - return (com.google.cloud.dataproc.v1.GkeClusterConfig) config_; + return (com.google.cloud.dataproc.v1.GkeClusterConfig) config_; } return com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); } /** - * - * *
    * Required. The configuration for running the Dataproc cluster on GKE.
    * 
* - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder() { if (configCase_ == 2) { - return (com.google.cloud.dataproc.v1.GkeClusterConfig) config_; + return (com.google.cloud.dataproc.v1.GkeClusterConfig) config_; } return com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); } @@ -226,16 +185,11 @@ public com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfi public static final int KUBERNETES_SOFTWARE_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetesSoftwareConfig_; /** - * - * *
    * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
    * 
* - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the kubernetesSoftwareConfig field is set. */ @java.lang.Override @@ -243,43 +197,30 @@ public boolean hasKubernetesSoftwareConfig() { return kubernetesSoftwareConfig_ != null; } /** - * - * *
    * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
    * 
* - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The kubernetesSoftwareConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getKubernetesSoftwareConfig() { - return kubernetesSoftwareConfig_ == null - ? com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance() - : kubernetesSoftwareConfig_; + return kubernetesSoftwareConfig_ == null ? com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance() : kubernetesSoftwareConfig_; } /** - * - * *
    * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
    * 
* - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder - getKubernetesSoftwareConfigOrBuilder() { + public com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder getKubernetesSoftwareConfigOrBuilder() { return getKubernetesSoftwareConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -291,7 +232,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(kubernetesNamespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kubernetesNamespace_); } @@ -314,14 +256,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kubernetesNamespace_); } if (configCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1.GkeClusterConfig) config_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.dataproc.v1.GkeClusterConfig) config_); } if (kubernetesSoftwareConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, getKubernetesSoftwareConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getKubernetesSoftwareConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -331,23 +271,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.KubernetesClusterConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.KubernetesClusterConfig other = - (com.google.cloud.dataproc.v1.KubernetesClusterConfig) obj; + com.google.cloud.dataproc.v1.KubernetesClusterConfig other = (com.google.cloud.dataproc.v1.KubernetesClusterConfig) obj; - if (!getKubernetesNamespace().equals(other.getKubernetesNamespace())) return false; + if (!getKubernetesNamespace() + .equals(other.getKubernetesNamespace())) return false; if (hasKubernetesSoftwareConfig() != other.hasKubernetesSoftwareConfig()) return false; if (hasKubernetesSoftwareConfig()) { - if (!getKubernetesSoftwareConfig().equals(other.getKubernetesSoftwareConfig())) return false; + if (!getKubernetesSoftwareConfig() + .equals(other.getKubernetesSoftwareConfig())) return false; } if (!getConfigCase().equals(other.getConfigCase())) return false; switch (configCase_) { case 2: - if (!getGkeClusterConfig().equals(other.getGkeClusterConfig())) return false; + if (!getGkeClusterConfig() + .equals(other.getGkeClusterConfig())) return false; break; case 0: default: @@ -383,135 +325,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.KubernetesClusterConfig 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.dataproc.v1.KubernetesClusterConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.KubernetesClusterConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 configuration for running the Dataproc cluster on Kubernetes.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.KubernetesClusterConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.KubernetesClusterConfig) com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.KubernetesClusterConfig.class, - com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder.class); + com.google.cloud.dataproc.v1.KubernetesClusterConfig.class, com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.KubernetesClusterConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -532,9 +468,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; } @java.lang.Override @@ -553,8 +489,7 @@ public com.google.cloud.dataproc.v1.KubernetesClusterConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.KubernetesClusterConfig buildPartial() { - com.google.cloud.dataproc.v1.KubernetesClusterConfig result = - new com.google.cloud.dataproc.v1.KubernetesClusterConfig(this); + com.google.cloud.dataproc.v1.KubernetesClusterConfig result = new com.google.cloud.dataproc.v1.KubernetesClusterConfig(this); result.kubernetesNamespace_ = kubernetesNamespace_; if (configCase_ == 2) { if (gkeClusterConfigBuilder_ == null) { @@ -577,39 +512,38 @@ public com.google.cloud.dataproc.v1.KubernetesClusterConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.KubernetesClusterConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.KubernetesClusterConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.KubernetesClusterConfig)other); } else { super.mergeFrom(other); return this; @@ -617,8 +551,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.KubernetesClusterConfig other) { - if (other == com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance()) return this; if (!other.getKubernetesNamespace().isEmpty()) { kubernetesNamespace_ = other.kubernetesNamespace_; onChanged(); @@ -627,15 +560,13 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.KubernetesClusterConfig ot mergeKubernetesSoftwareConfig(other.getKubernetesSoftwareConfig()); } switch (other.getConfigCase()) { - case GKE_CLUSTER_CONFIG: - { - mergeGkeClusterConfig(other.getGkeClusterConfig()); - break; - } - case CONFIG_NOT_SET: - { - break; - } + case GKE_CLUSTER_CONFIG: { + mergeGkeClusterConfig(other.getGkeClusterConfig()); + break; + } + case CONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -663,33 +594,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - kubernetesNamespace_ = input.readStringRequireUtf8(); + case 10: { + kubernetesNamespace_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage( - getGkeClusterConfigFieldBuilder().getBuilder(), extensionRegistry); - configCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage( - getKubernetesSoftwareConfigFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getGkeClusterConfigFieldBuilder().getBuilder(), + extensionRegistry); + configCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getKubernetesSoftwareConfigFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -699,12 +628,12 @@ public Builder mergeFrom( } // finally return this; } - private int configCase_ = 0; private java.lang.Object config_; - - public ConfigCase getConfigCase() { - return ConfigCase.forNumber(configCase_); + public ConfigCase + getConfigCase() { + return ConfigCase.forNumber( + configCase_); } public Builder clearConfig() { @@ -714,10 +643,9 @@ public Builder clearConfig() { return this; } + private java.lang.Object kubernetesNamespace_ = ""; /** - * - * *
      * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
      * does not exist, it is created. If it exists, Dataproc
@@ -726,13 +654,13 @@ public Builder clearConfig() {
      * 
* * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The kubernetesNamespace. */ public java.lang.String getKubernetesNamespace() { java.lang.Object ref = kubernetesNamespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kubernetesNamespace_ = s; return s; @@ -741,8 +669,6 @@ public java.lang.String getKubernetesNamespace() { } } /** - * - * *
      * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
      * does not exist, it is created. If it exists, Dataproc
@@ -751,14 +677,15 @@ public java.lang.String getKubernetesNamespace() {
      * 
* * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for kubernetesNamespace. */ - public com.google.protobuf.ByteString getKubernetesNamespaceBytes() { + public com.google.protobuf.ByteString + getKubernetesNamespaceBytes() { java.lang.Object ref = kubernetesNamespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kubernetesNamespace_ = b; return b; } else { @@ -766,8 +693,6 @@ public com.google.protobuf.ByteString getKubernetesNamespaceBytes() { } } /** - * - * *
      * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
      * does not exist, it is created. If it exists, Dataproc
@@ -776,22 +701,20 @@ public com.google.protobuf.ByteString getKubernetesNamespaceBytes() {
      * 
* * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The kubernetesNamespace to set. * @return This builder for chaining. */ - public Builder setKubernetesNamespace(java.lang.String value) { + public Builder setKubernetesNamespace( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kubernetesNamespace_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
      * does not exist, it is created. If it exists, Dataproc
@@ -800,18 +723,15 @@ public Builder setKubernetesNamespace(java.lang.String value) {
      * 
* * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearKubernetesNamespace() { - + kubernetesNamespace_ = getDefaultInstance().getKubernetesNamespace(); onChanged(); return this; } /** - * - * *
      * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
      * does not exist, it is created. If it exists, Dataproc
@@ -820,37 +740,29 @@ public Builder clearKubernetesNamespace() {
      * 
* * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for kubernetesNamespace to set. * @return This builder for chaining. */ - public Builder setKubernetesNamespaceBytes(com.google.protobuf.ByteString value) { + public Builder setKubernetesNamespaceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kubernetesNamespace_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeClusterConfig, - com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, - com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder> - gkeClusterConfigBuilder_; + com.google.cloud.dataproc.v1.GkeClusterConfig, com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder> gkeClusterConfigBuilder_; /** - * - * *
      * Required. The configuration for running the Dataproc cluster on GKE.
      * 
* - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gkeClusterConfig field is set. */ @java.lang.Override @@ -858,16 +770,11 @@ public boolean hasGkeClusterConfig() { return configCase_ == 2; } /** - * - * *
      * Required. The configuration for running the Dataproc cluster on GKE.
      * 
* - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The gkeClusterConfig. */ @java.lang.Override @@ -885,15 +792,11 @@ public com.google.cloud.dataproc.v1.GkeClusterConfig getGkeClusterConfig() { } } /** - * - * *
      * Required. The configuration for running the Dataproc cluster on GKE.
      * 
* - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGkeClusterConfig(com.google.cloud.dataproc.v1.GkeClusterConfig value) { if (gkeClusterConfigBuilder_ == null) { @@ -909,15 +812,11 @@ public Builder setGkeClusterConfig(com.google.cloud.dataproc.v1.GkeClusterConfig return this; } /** - * - * *
      * Required. The configuration for running the Dataproc cluster on GKE.
      * 
* - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGkeClusterConfig( com.google.cloud.dataproc.v1.GkeClusterConfig.Builder builderForValue) { @@ -931,25 +830,18 @@ public Builder setGkeClusterConfig( return this; } /** - * - * *
      * Required. The configuration for running the Dataproc cluster on GKE.
      * 
* - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeGkeClusterConfig(com.google.cloud.dataproc.v1.GkeClusterConfig value) { if (gkeClusterConfigBuilder_ == null) { - if (configCase_ == 2 - && config_ != com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance()) { - config_ = - com.google.cloud.dataproc.v1.GkeClusterConfig.newBuilder( - (com.google.cloud.dataproc.v1.GkeClusterConfig) config_) - .mergeFrom(value) - .buildPartial(); + if (configCase_ == 2 && + config_ != com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance()) { + config_ = com.google.cloud.dataproc.v1.GkeClusterConfig.newBuilder((com.google.cloud.dataproc.v1.GkeClusterConfig) config_) + .mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -965,15 +857,11 @@ public Builder mergeGkeClusterConfig(com.google.cloud.dataproc.v1.GkeClusterConf return this; } /** - * - * *
      * Required. The configuration for running the Dataproc cluster on GKE.
      * 
* - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearGkeClusterConfig() { if (gkeClusterConfigBuilder_ == null) { @@ -992,29 +880,21 @@ public Builder clearGkeClusterConfig() { return this; } /** - * - * *
      * Required. The configuration for running the Dataproc cluster on GKE.
      * 
* - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.GkeClusterConfig.Builder getGkeClusterConfigBuilder() { return getGkeClusterConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The configuration for running the Dataproc cluster on GKE.
      * 
* - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder() { @@ -1028,98 +908,68 @@ public com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfi } } /** - * - * *
      * Required. The configuration for running the Dataproc cluster on GKE.
      * 
* - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeClusterConfig, - com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, - com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder> + com.google.cloud.dataproc.v1.GkeClusterConfig, com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder> getGkeClusterConfigFieldBuilder() { if (gkeClusterConfigBuilder_ == null) { if (!(configCase_ == 2)) { config_ = com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); } - gkeClusterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeClusterConfig, - com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, - com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder>( + gkeClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeClusterConfig, com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder>( (com.google.cloud.dataproc.v1.GkeClusterConfig) config_, getParentForChildren(), isClean()); config_ = null; } configCase_ = 2; - onChanged(); - ; + onChanged();; return gkeClusterConfigBuilder_; } private com.google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetesSoftwareConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig, - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder, - com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder> - kubernetesSoftwareConfigBuilder_; + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig, com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder, com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder> kubernetesSoftwareConfigBuilder_; /** - * - * *
      * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
      * 
* - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the kubernetesSoftwareConfig field is set. */ public boolean hasKubernetesSoftwareConfig() { return kubernetesSoftwareConfigBuilder_ != null || kubernetesSoftwareConfig_ != null; } /** - * - * *
      * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
      * 
* - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The kubernetesSoftwareConfig. */ public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getKubernetesSoftwareConfig() { if (kubernetesSoftwareConfigBuilder_ == null) { - return kubernetesSoftwareConfig_ == null - ? com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance() - : kubernetesSoftwareConfig_; + return kubernetesSoftwareConfig_ == null ? com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance() : kubernetesSoftwareConfig_; } else { return kubernetesSoftwareConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
      * 
* - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setKubernetesSoftwareConfig( - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig value) { + public Builder setKubernetesSoftwareConfig(com.google.cloud.dataproc.v1.KubernetesSoftwareConfig value) { if (kubernetesSoftwareConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1133,15 +983,11 @@ public Builder setKubernetesSoftwareConfig( return this; } /** - * - * *
      * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
      * 
* - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setKubernetesSoftwareConfig( com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder builderForValue) { @@ -1155,25 +1001,17 @@ public Builder setKubernetesSoftwareConfig( return this; } /** - * - * *
      * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
      * 
* - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeKubernetesSoftwareConfig( - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig value) { + public Builder mergeKubernetesSoftwareConfig(com.google.cloud.dataproc.v1.KubernetesSoftwareConfig value) { if (kubernetesSoftwareConfigBuilder_ == null) { if (kubernetesSoftwareConfig_ != null) { kubernetesSoftwareConfig_ = - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.newBuilder( - kubernetesSoftwareConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.newBuilder(kubernetesSoftwareConfig_).mergeFrom(value).buildPartial(); } else { kubernetesSoftwareConfig_ = value; } @@ -1185,15 +1023,11 @@ public Builder mergeKubernetesSoftwareConfig( return this; } /** - * - * *
      * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
      * 
* - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearKubernetesSoftwareConfig() { if (kubernetesSoftwareConfigBuilder_ == null) { @@ -1207,73 +1041,55 @@ public Builder clearKubernetesSoftwareConfig() { return this; } /** - * - * *
      * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
      * 
* - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder - getKubernetesSoftwareConfigBuilder() { - + public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder getKubernetesSoftwareConfigBuilder() { + onChanged(); return getKubernetesSoftwareConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
      * 
* - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder - getKubernetesSoftwareConfigOrBuilder() { + public com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder getKubernetesSoftwareConfigOrBuilder() { if (kubernetesSoftwareConfigBuilder_ != null) { return kubernetesSoftwareConfigBuilder_.getMessageOrBuilder(); } else { - return kubernetesSoftwareConfig_ == null - ? com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance() - : kubernetesSoftwareConfig_; + return kubernetesSoftwareConfig_ == null ? + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance() : kubernetesSoftwareConfig_; } } /** - * - * *
      * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
      * 
* - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig, - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder, - com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder> + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig, com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder, com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder> getKubernetesSoftwareConfigFieldBuilder() { if (kubernetesSoftwareConfigBuilder_ == null) { - kubernetesSoftwareConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig, - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder, - com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder>( - getKubernetesSoftwareConfig(), getParentForChildren(), isClean()); + kubernetesSoftwareConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig, com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder, com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder>( + getKubernetesSoftwareConfig(), + getParentForChildren(), + isClean()); kubernetesSoftwareConfig_ = null; } return kubernetesSoftwareConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1283,12 +1099,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.KubernetesClusterConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.KubernetesClusterConfig) private static final com.google.cloud.dataproc.v1.KubernetesClusterConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.KubernetesClusterConfig(); } @@ -1297,27 +1113,27 @@ public static com.google.cloud.dataproc.v1.KubernetesClusterConfig getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KubernetesClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1332,4 +1148,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.KubernetesClusterConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java similarity index 60% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java index ab45cd883279..4053341c279d 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.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/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; -public interface KubernetesClusterConfigOrBuilder - extends +public interface KubernetesClusterConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.KubernetesClusterConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
    * does not exist, it is created. If it exists, Dataproc
@@ -34,13 +16,10 @@ public interface KubernetesClusterConfigOrBuilder
    * 
* * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The kubernetesNamespace. */ java.lang.String getKubernetesNamespace(); /** - * - * *
    * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
    * does not exist, it is created. If it exists, Dataproc
@@ -49,93 +28,64 @@ public interface KubernetesClusterConfigOrBuilder
    * 
* * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for kubernetesNamespace. */ - com.google.protobuf.ByteString getKubernetesNamespaceBytes(); + com.google.protobuf.ByteString + getKubernetesNamespaceBytes(); /** - * - * *
    * Required. The configuration for running the Dataproc cluster on GKE.
    * 
* - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gkeClusterConfig field is set. */ boolean hasGkeClusterConfig(); /** - * - * *
    * Required. The configuration for running the Dataproc cluster on GKE.
    * 
* - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The gkeClusterConfig. */ com.google.cloud.dataproc.v1.GkeClusterConfig getGkeClusterConfig(); /** - * - * *
    * Required. The configuration for running the Dataproc cluster on GKE.
    * 
* - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder(); /** - * - * *
    * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
    * 
* - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the kubernetesSoftwareConfig field is set. */ boolean hasKubernetesSoftwareConfig(); /** - * - * *
    * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
    * 
* - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The kubernetesSoftwareConfig. */ com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getKubernetesSoftwareConfig(); /** - * - * *
    * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
    * 
* - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder - getKubernetesSoftwareConfigOrBuilder(); + com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder getKubernetesSoftwareConfigOrBuilder(); public com.google.cloud.dataproc.v1.KubernetesClusterConfig.ConfigCase getConfigCase(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java similarity index 63% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java index 2309d02b95c1..567ad7ef7fca 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java @@ -1,100 +1,82 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * The software configuration for this Dataproc cluster running on Kubernetes.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.KubernetesSoftwareConfig} */ -public final class KubernetesSoftwareConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class KubernetesSoftwareConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.KubernetesSoftwareConfig) KubernetesSoftwareConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use KubernetesSoftwareConfig.newBuilder() to construct. private KubernetesSoftwareConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private KubernetesSoftwareConfig() {} + private KubernetesSoftwareConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new KubernetesSoftwareConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_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 internalGetComponentVersion(); case 2: return internalGetProperties(); 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.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.class, - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder.class); + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.class, com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder.class); } public static final int COMPONENT_VERSION_FIELD_NUMBER = 1; - private static final class ComponentVersionDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_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.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField componentVersion_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> componentVersion_; private com.google.protobuf.MapField - internalGetComponentVersion() { + internalGetComponentVersion() { if (componentVersion_ == null) { return com.google.protobuf.MapField.emptyMapField( ComponentVersionDefaultEntryHolder.defaultEntry); @@ -106,8 +88,6 @@ public int getComponentVersionCount() { return internalGetComponentVersion().getMap().size(); } /** - * - * *
    * The components that should be installed in this Dataproc cluster. The key
    * must be a string from the KubernetesComponent enumeration. The value is
@@ -117,22 +97,22 @@ public int getComponentVersionCount() {
    *
    * map<string, string> component_version = 1;
    */
+
   @java.lang.Override
-  public boolean containsComponentVersion(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsComponentVersion(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetComponentVersion().getMap().containsKey(key);
   }
-  /** Use {@link #getComponentVersionMap()} instead. */
+  /**
+   * Use {@link #getComponentVersionMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getComponentVersion() {
     return getComponentVersionMap();
   }
   /**
-   *
-   *
    * 
    * The components that should be installed in this Dataproc cluster. The key
    * must be a string from the KubernetesComponent enumeration. The value is
@@ -143,12 +123,11 @@ public java.util.Map getComponentVersion() {
    * map<string, string> component_version = 1;
    */
   @java.lang.Override
+
   public java.util.Map getComponentVersionMap() {
     return internalGetComponentVersion().getMap();
   }
   /**
-   *
-   *
    * 
    * The components that should be installed in this Dataproc cluster. The key
    * must be a string from the KubernetesComponent enumeration. The value is
@@ -159,17 +138,16 @@ public java.util.Map getComponentVersionMap(
    * map<string, string> component_version = 1;
    */
   @java.lang.Override
+
   public java.lang.String getComponentVersionOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetComponentVersion().getMap();
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetComponentVersion().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * The components that should be installed in this Dataproc cluster. The key
    * must be a string from the KubernetesComponent enumeration. The value is
@@ -180,11 +158,12 @@ public java.lang.String getComponentVersionOrDefault(
    * map<string, string> component_version = 1;
    */
   @java.lang.Override
-  public java.lang.String getComponentVersionOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetComponentVersion().getMap();
+
+  public java.lang.String getComponentVersionOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetComponentVersion().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -192,23 +171,24 @@ public java.lang.String getComponentVersionOrThrow(java.lang.String key) {
   }
 
   public static final int PROPERTIES_FIELD_NUMBER = 2;
-
   private static final class PropertiesDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.cloud.dataproc.v1.SharedProto
-                .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_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.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "");
   }
-
-  private com.google.protobuf.MapField properties_;
-
-  private com.google.protobuf.MapField internalGetProperties() {
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> properties_;
+  private com.google.protobuf.MapField
+  internalGetProperties() {
     if (properties_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          PropertiesDefaultEntryHolder.defaultEntry);
     }
     return properties_;
   }
@@ -217,8 +197,6 @@ public int getPropertiesCount() {
     return internalGetProperties().getMap().size();
   }
   /**
-   *
-   *
    * 
    * The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -231,22 +209,22 @@ public int getPropertiesCount() {
    *
    * map<string, string> properties = 2;
    */
+
   @java.lang.Override
-  public boolean containsProperties(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsProperties(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetProperties().getMap().containsKey(key);
   }
-  /** Use {@link #getPropertiesMap()} instead. */
+  /**
+   * Use {@link #getPropertiesMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getProperties() {
     return getPropertiesMap();
   }
   /**
-   *
-   *
    * 
    * The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -260,12 +238,11 @@ public java.util.Map getProperties() {
    * map<string, string> properties = 2;
    */
   @java.lang.Override
+
   public java.util.Map getPropertiesMap() {
     return internalGetProperties().getMap();
   }
   /**
-   *
-   *
    * 
    * The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -279,17 +256,16 @@ public java.util.Map getPropertiesMap() {
    * map<string, string> properties = 2;
    */
   @java.lang.Override
+
   public java.lang.String getPropertiesOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetProperties().getMap();
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -303,11 +279,12 @@ public java.lang.String getPropertiesOrDefault(
    * map<string, string> properties = 2;
    */
   @java.lang.Override
-  public java.lang.String getPropertiesOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetProperties().getMap();
+
+  public java.lang.String getPropertiesOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetProperties().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -315,7 +292,6 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -327,11 +303,20 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetComponentVersion(), ComponentVersionDefaultEntryHolder.defaultEntry, 1);
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 2);
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetComponentVersion(),
+        ComponentVersionDefaultEntryHolder.defaultEntry,
+        1);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetProperties(),
+        PropertiesDefaultEntryHolder.defaultEntry,
+        2);
     getUnknownFields().writeTo(output);
   }
 
@@ -341,25 +326,25 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry :
-        internalGetComponentVersion().getMap().entrySet()) {
-      com.google.protobuf.MapEntry componentVersion__ =
-          ComponentVersionDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, componentVersion__);
-    }
-    for (java.util.Map.Entry entry :
-        internalGetProperties().getMap().entrySet()) {
-      com.google.protobuf.MapEntry properties__ =
-          PropertiesDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, properties__);
+    for (java.util.Map.Entry entry
+         : internalGetComponentVersion().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      componentVersion__ = ComponentVersionDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, componentVersion__);
+    }
+    for (java.util.Map.Entry entry
+         : internalGetProperties().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, properties__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -369,16 +354,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.dataproc.v1.KubernetesSoftwareConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.dataproc.v1.KubernetesSoftwareConfig other =
-        (com.google.cloud.dataproc.v1.KubernetesSoftwareConfig) obj;
+    com.google.cloud.dataproc.v1.KubernetesSoftwareConfig other = (com.google.cloud.dataproc.v1.KubernetesSoftwareConfig) obj;
 
-    if (!internalGetComponentVersion().equals(other.internalGetComponentVersion())) return false;
-    if (!internalGetProperties().equals(other.internalGetProperties())) return false;
+    if (!internalGetComponentVersion().equals(
+        other.internalGetComponentVersion())) return false;
+    if (!internalGetProperties().equals(
+        other.internalGetProperties())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -404,160 +390,155 @@ public int hashCode() {
   }
 
   public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig 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.dataproc.v1.KubernetesSoftwareConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.dataproc.v1.KubernetesSoftwareConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.dataproc.v1.KubernetesSoftwareConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 software configuration for this Dataproc cluster running on Kubernetes.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.KubernetesSoftwareConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.KubernetesSoftwareConfig) com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetComponentVersion(); case 2: return internalGetProperties(); 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 internalGetMutableComponentVersion(); case 2: return internalGetMutableProperties(); 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.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.class, - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder.class); + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.class, com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -567,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; } @java.lang.Override @@ -588,8 +569,7 @@ public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig buildPartial() { - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig result = - new com.google.cloud.dataproc.v1.KubernetesSoftwareConfig(this); + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig result = new com.google.cloud.dataproc.v1.KubernetesSoftwareConfig(this); int from_bitField0_ = bitField0_; result.componentVersion_ = internalGetComponentVersion(); result.componentVersion_.makeImmutable(); @@ -603,39 +583,38 @@ public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.KubernetesSoftwareConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.KubernetesSoftwareConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.KubernetesSoftwareConfig)other); } else { super.mergeFrom(other); return this; @@ -643,10 +622,11 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.KubernetesSoftwareConfig other) { - if (other == com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance()) - return this; - internalGetMutableComponentVersion().mergeFrom(other.internalGetComponentVersion()); - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); + if (other == com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance()) return this; + internalGetMutableComponentVersion().mergeFrom( + other.internalGetComponentVersion()); + internalGetMutableProperties().mergeFrom( + other.internalGetProperties()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -673,36 +653,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.MapEntry - componentVersion__ = - input.readMessage( - ComponentVersionDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableComponentVersion() - .getMutableMap() - .put(componentVersion__.getKey(), componentVersion__.getValue()); - break; - } // case 10 - case 18: - { - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableProperties() - .getMutableMap() - .put(properties__.getKey(), properties__.getValue()); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.protobuf.MapEntry + componentVersion__ = input.readMessage( + ComponentVersionDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableComponentVersion().getMutableMap().put( + componentVersion__.getKey(), componentVersion__.getValue()); + break; + } // case 10 + case 18: { + com.google.protobuf.MapEntry + properties__ = input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableProperties().getMutableMap().put( + properties__.getKey(), properties__.getValue()); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -712,28 +684,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.MapField componentVersion_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> componentVersion_; private com.google.protobuf.MapField - internalGetComponentVersion() { + internalGetComponentVersion() { if (componentVersion_ == null) { return com.google.protobuf.MapField.emptyMapField( ComponentVersionDefaultEntryHolder.defaultEntry); } return componentVersion_; } - private com.google.protobuf.MapField - internalGetMutableComponentVersion() { - onChanged(); - ; + internalGetMutableComponentVersion() { + onChanged();; if (componentVersion_ == null) { - componentVersion_ = - com.google.protobuf.MapField.newMapField( - ComponentVersionDefaultEntryHolder.defaultEntry); + componentVersion_ = com.google.protobuf.MapField.newMapField( + ComponentVersionDefaultEntryHolder.defaultEntry); } if (!componentVersion_.isMutable()) { componentVersion_ = componentVersion_.copy(); @@ -745,8 +713,6 @@ public int getComponentVersionCount() { return internalGetComponentVersion().getMap().size(); } /** - * - * *
      * The components that should be installed in this Dataproc cluster. The key
      * must be a string from the KubernetesComponent enumeration. The value is
@@ -756,22 +722,22 @@ public int getComponentVersionCount() {
      *
      * map<string, string> component_version = 1;
      */
+
     @java.lang.Override
-    public boolean containsComponentVersion(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsComponentVersion(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetComponentVersion().getMap().containsKey(key);
     }
-    /** Use {@link #getComponentVersionMap()} instead. */
+    /**
+     * Use {@link #getComponentVersionMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getComponentVersion() {
       return getComponentVersionMap();
     }
     /**
-     *
-     *
      * 
      * The components that should be installed in this Dataproc cluster. The key
      * must be a string from the KubernetesComponent enumeration. The value is
@@ -782,12 +748,11 @@ public java.util.Map getComponentVersion() {
      * map<string, string> component_version = 1;
      */
     @java.lang.Override
+
     public java.util.Map getComponentVersionMap() {
       return internalGetComponentVersion().getMap();
     }
     /**
-     *
-     *
      * 
      * The components that should be installed in this Dataproc cluster. The key
      * must be a string from the KubernetesComponent enumeration. The value is
@@ -798,18 +763,16 @@ public java.util.Map getComponentVersionMap(
      * map<string, string> component_version = 1;
      */
     @java.lang.Override
+
     public java.lang.String getComponentVersionOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetComponentVersion().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * The components that should be installed in this Dataproc cluster. The key
      * must be a string from the KubernetesComponent enumeration. The value is
@@ -820,10 +783,10 @@ public java.lang.String getComponentVersionOrDefault(
      * map<string, string> component_version = 1;
      */
     @java.lang.Override
-    public java.lang.String getComponentVersionOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+
+    public java.lang.String getComponentVersionOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetComponentVersion().getMap();
       if (!map.containsKey(key)) {
@@ -833,12 +796,11 @@ public java.lang.String getComponentVersionOrThrow(java.lang.String key) {
     }
 
     public Builder clearComponentVersion() {
-      internalGetMutableComponentVersion().getMutableMap().clear();
+      internalGetMutableComponentVersion().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * The components that should be installed in this Dataproc cluster. The key
      * must be a string from the KubernetesComponent enumeration. The value is
@@ -848,21 +810,23 @@ public Builder clearComponentVersion() {
      *
      * map<string, string> component_version = 1;
      */
-    public Builder removeComponentVersion(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableComponentVersion().getMutableMap().remove(key);
+
+    public Builder removeComponentVersion(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableComponentVersion().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableComponentVersion() {
+    public java.util.Map
+    getMutableComponentVersion() {
       return internalGetMutableComponentVersion().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * The components that should be installed in this Dataproc cluster. The key
      * must be a string from the KubernetesComponent enumeration. The value is
@@ -872,20 +836,19 @@ public java.util.Map getMutableComponentVers
      *
      * map<string, string> component_version = 1;
      */
-    public Builder putComponentVersion(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putComponentVersion(
+        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");
+}
 
-      internalGetMutableComponentVersion().getMutableMap().put(key, value);
+      internalGetMutableComponentVersion().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * The components that should be installed in this Dataproc cluster. The key
      * must be a string from the KubernetesComponent enumeration. The value is
@@ -895,30 +858,30 @@ public Builder putComponentVersion(java.lang.String key, java.lang.String value)
      *
      * map<string, string> component_version = 1;
      */
+
     public Builder putAllComponentVersion(
         java.util.Map values) {
-      internalGetMutableComponentVersion().getMutableMap().putAll(values);
+      internalGetMutableComponentVersion().getMutableMap()
+          .putAll(values);
       return this;
     }
 
-    private com.google.protobuf.MapField properties_;
-
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> properties_;
     private com.google.protobuf.MapField
-        internalGetProperties() {
+    internalGetProperties() {
       if (properties_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             PropertiesDefaultEntryHolder.defaultEntry);
       }
       return properties_;
     }
-
     private com.google.protobuf.MapField
-        internalGetMutableProperties() {
-      onChanged();
-      ;
+    internalGetMutableProperties() {
+      onChanged();;
       if (properties_ == null) {
-        properties_ =
-            com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry);
+        properties_ = com.google.protobuf.MapField.newMapField(
+            PropertiesDefaultEntryHolder.defaultEntry);
       }
       if (!properties_.isMutable()) {
         properties_ = properties_.copy();
@@ -930,8 +893,6 @@ public int getPropertiesCount() {
       return internalGetProperties().getMap().size();
     }
     /**
-     *
-     *
      * 
      * The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -944,22 +905,22 @@ public int getPropertiesCount() {
      *
      * map<string, string> properties = 2;
      */
+
     @java.lang.Override
-    public boolean containsProperties(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsProperties(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetProperties().getMap().containsKey(key);
     }
-    /** Use {@link #getPropertiesMap()} instead. */
+    /**
+     * Use {@link #getPropertiesMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getProperties() {
       return getPropertiesMap();
     }
     /**
-     *
-     *
      * 
      * The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -973,12 +934,11 @@ public java.util.Map getProperties() {
      * map<string, string> properties = 2;
      */
     @java.lang.Override
+
     public java.util.Map getPropertiesMap() {
       return internalGetProperties().getMap();
     }
     /**
-     *
-     *
      * 
      * The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -992,17 +952,16 @@ public java.util.Map getPropertiesMap() {
      * map<string, string> properties = 2;
      */
     @java.lang.Override
+
     public java.lang.String getPropertiesOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetProperties().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1016,11 +975,12 @@ public java.lang.String getPropertiesOrDefault(
      * map<string, string> properties = 2;
      */
     @java.lang.Override
-    public java.lang.String getPropertiesOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetProperties().getMap();
+
+    public java.lang.String getPropertiesOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetProperties().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1028,12 +988,11 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) {
     }
 
     public Builder clearProperties() {
-      internalGetMutableProperties().getMutableMap().clear();
+      internalGetMutableProperties().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1046,21 +1005,23 @@ public Builder clearProperties() {
      *
      * map<string, string> properties = 2;
      */
-    public Builder removeProperties(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableProperties().getMutableMap().remove(key);
+
+    public Builder removeProperties(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableProperties().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableProperties() {
+    public java.util.Map
+    getMutableProperties() {
       return internalGetMutableProperties().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1073,20 +1034,19 @@ public java.util.Map getMutableProperties()
      *
      * map<string, string> properties = 2;
      */
-    public Builder putProperties(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putProperties(
+        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");
+}
 
-      internalGetMutableProperties().getMutableMap().put(key, value);
+      internalGetMutableProperties().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1099,13 +1059,16 @@ public Builder putProperties(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> properties = 2;
      */
-    public Builder putAllProperties(java.util.Map values) {
-      internalGetMutableProperties().getMutableMap().putAll(values);
+
+    public Builder putAllProperties(
+        java.util.Map values) {
+      internalGetMutableProperties().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);
     }
 
@@ -1115,12 +1078,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.KubernetesSoftwareConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.KubernetesSoftwareConfig)
   private static final com.google.cloud.dataproc.v1.KubernetesSoftwareConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.KubernetesSoftwareConfig();
   }
@@ -1129,27 +1092,27 @@ public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public KubernetesSoftwareConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public KubernetesSoftwareConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1164,4 +1127,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java
similarity index 75%
rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java
rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java
index e6db7aaf3c12..684e53d99f15 100644
--- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java
+++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.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/dataproc/v1/shared.proto
 
 package com.google.cloud.dataproc.v1;
 
-public interface KubernetesSoftwareConfigOrBuilder
-    extends
+public interface KubernetesSoftwareConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.KubernetesSoftwareConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The components that should be installed in this Dataproc cluster. The key
    * must be a string from the KubernetesComponent enumeration. The value is
@@ -37,8 +19,6 @@ public interface KubernetesSoftwareConfigOrBuilder
    */
   int getComponentVersionCount();
   /**
-   *
-   *
    * 
    * The components that should be installed in this Dataproc cluster. The key
    * must be a string from the KubernetesComponent enumeration. The value is
@@ -48,13 +28,15 @@ public interface KubernetesSoftwareConfigOrBuilder
    *
    * map<string, string> component_version = 1;
    */
-  boolean containsComponentVersion(java.lang.String key);
-  /** Use {@link #getComponentVersionMap()} instead. */
+  boolean containsComponentVersion(
+      java.lang.String key);
+  /**
+   * Use {@link #getComponentVersionMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getComponentVersion();
+  java.util.Map
+  getComponentVersion();
   /**
-   *
-   *
    * 
    * The components that should be installed in this Dataproc cluster. The key
    * must be a string from the KubernetesComponent enumeration. The value is
@@ -64,10 +46,9 @@ public interface KubernetesSoftwareConfigOrBuilder
    *
    * map<string, string> component_version = 1;
    */
-  java.util.Map getComponentVersionMap();
+  java.util.Map
+  getComponentVersionMap();
   /**
-   *
-   *
    * 
    * The components that should be installed in this Dataproc cluster. The key
    * must be a string from the KubernetesComponent enumeration. The value is
@@ -79,13 +60,11 @@ public interface KubernetesSoftwareConfigOrBuilder
    */
 
   /* nullable */
-  java.lang.String getComponentVersionOrDefault(
+java.lang.String getComponentVersionOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * The components that should be installed in this Dataproc cluster. The key
    * must be a string from the KubernetesComponent enumeration. The value is
@@ -95,11 +74,11 @@ java.lang.String getComponentVersionOrDefault(
    *
    * map<string, string> component_version = 1;
    */
-  java.lang.String getComponentVersionOrThrow(java.lang.String key);
+
+  java.lang.String getComponentVersionOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -114,8 +93,6 @@ java.lang.String getComponentVersionOrDefault(
    */
   int getPropertiesCount();
   /**
-   *
-   *
    * 
    * The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -128,13 +105,15 @@ java.lang.String getComponentVersionOrDefault(
    *
    * map<string, string> properties = 2;
    */
-  boolean containsProperties(java.lang.String key);
-  /** Use {@link #getPropertiesMap()} instead. */
+  boolean containsProperties(
+      java.lang.String key);
+  /**
+   * Use {@link #getPropertiesMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getProperties();
+  java.util.Map
+  getProperties();
   /**
-   *
-   *
    * 
    * The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -147,10 +126,9 @@ java.lang.String getComponentVersionOrDefault(
    *
    * map<string, string> properties = 2;
    */
-  java.util.Map getPropertiesMap();
+  java.util.Map
+  getPropertiesMap();
   /**
-   *
-   *
    * 
    * The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -165,13 +143,11 @@ java.lang.String getComponentVersionOrDefault(
    */
 
   /* nullable */
-  java.lang.String getPropertiesOrDefault(
+java.lang.String getPropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -184,5 +160,7 @@ java.lang.String getPropertiesOrDefault(
    *
    * map<string, string> properties = 2;
    */
-  java.lang.String getPropertiesOrThrow(java.lang.String key);
+
+  java.lang.String getPropertiesOrThrow(
+      java.lang.String key);
 }
diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java
similarity index 68%
rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java
rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java
index da3161162c80..ad3cb96054ac 100644
--- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java
+++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java
@@ -1,82 +1,61 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/dataproc/v1/clusters.proto
 
 package com.google.cloud.dataproc.v1;
 
 /**
- *
- *
  * 
  * Specifies the cluster auto-delete schedule configuration.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.LifecycleConfig} */ -public final class LifecycleConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LifecycleConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.LifecycleConfig) LifecycleConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LifecycleConfig.newBuilder() to construct. private LifecycleConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LifecycleConfig() {} + private LifecycleConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LifecycleConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.LifecycleConfig.class, - com.google.cloud.dataproc.v1.LifecycleConfig.Builder.class); + com.google.cloud.dataproc.v1.LifecycleConfig.class, com.google.cloud.dataproc.v1.LifecycleConfig.Builder.class); } private int ttlCase_ = 0; private java.lang.Object ttl_; - public enum TtlCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AUTO_DELETE_TIME(2), AUTO_DELETE_TTL(3), TTL_NOT_SET(0); private final int value; - private TtlCase(int value) { this.value = value; } @@ -92,31 +71,26 @@ public static TtlCase valueOf(int value) { public static TtlCase forNumber(int value) { switch (value) { - case 2: - return AUTO_DELETE_TIME; - case 3: - return AUTO_DELETE_TTL; - case 0: - return TTL_NOT_SET; - default: - return null; + case 2: return AUTO_DELETE_TIME; + case 3: return AUTO_DELETE_TTL; + case 0: return TTL_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public TtlCase getTtlCase() { - return TtlCase.forNumber(ttlCase_); + public TtlCase + getTtlCase() { + return TtlCase.forNumber( + ttlCase_); } public static final int IDLE_DELETE_TTL_FIELD_NUMBER = 1; private com.google.protobuf.Duration idleDeleteTtl_; /** - * - * *
    * Optional. The duration to keep the cluster alive while idling (when no jobs
    * are running). Passing this threshold will cause the cluster to be
@@ -125,9 +99,7 @@ public TtlCase getTtlCase() {
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the idleDeleteTtl field is set. */ @java.lang.Override @@ -135,8 +107,6 @@ public boolean hasIdleDeleteTtl() { return idleDeleteTtl_ != null; } /** - * - * *
    * Optional. The duration to keep the cluster alive while idling (when no jobs
    * are running). Passing this threshold will cause the cluster to be
@@ -145,20 +115,14 @@ public boolean hasIdleDeleteTtl() {
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The idleDeleteTtl. */ @java.lang.Override public com.google.protobuf.Duration getIdleDeleteTtl() { - return idleDeleteTtl_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : idleDeleteTtl_; + return idleDeleteTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleDeleteTtl_; } /** - * - * *
    * Optional. The duration to keep the cluster alive while idling (when no jobs
    * are running). Passing this threshold will cause the cluster to be
@@ -167,8 +131,7 @@ public com.google.protobuf.Duration getIdleDeleteTtl() {
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder() { @@ -177,17 +140,13 @@ public com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder() { public static final int AUTO_DELETE_TIME_FIELD_NUMBER = 2; /** - * - * *
-   * Optional. The time when cluster will be auto-deleted (see JSON representation of
+   * Optional. The time when cluster will be auto-deleted (see JSON
+   * representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the autoDeleteTime field is set. */ @java.lang.Override @@ -195,50 +154,41 @@ public boolean hasAutoDeleteTime() { return ttlCase_ == 2; } /** - * - * *
-   * Optional. The time when cluster will be auto-deleted (see JSON representation of
+   * Optional. The time when cluster will be auto-deleted (see JSON
+   * representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The autoDeleteTime. */ @java.lang.Override public com.google.protobuf.Timestamp getAutoDeleteTime() { if (ttlCase_ == 2) { - return (com.google.protobuf.Timestamp) ttl_; + return (com.google.protobuf.Timestamp) ttl_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * *
-   * Optional. The time when cluster will be auto-deleted (see JSON representation of
+   * Optional. The time when cluster will be auto-deleted (see JSON
+   * representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder() { if (ttlCase_ == 2) { - return (com.google.protobuf.Timestamp) ttl_; + return (com.google.protobuf.Timestamp) ttl_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } public static final int AUTO_DELETE_TTL_FIELD_NUMBER = 3; /** - * - * *
    * Optional. The lifetime duration of cluster. The cluster will be
    * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -246,9 +196,7 @@ public com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder() {
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the autoDeleteTtl field is set. */ @java.lang.Override @@ -256,8 +204,6 @@ public boolean hasAutoDeleteTtl() { return ttlCase_ == 3; } /** - * - * *
    * Optional. The lifetime duration of cluster. The cluster will be
    * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -265,21 +211,17 @@ public boolean hasAutoDeleteTtl() {
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The autoDeleteTtl. */ @java.lang.Override public com.google.protobuf.Duration getAutoDeleteTtl() { if (ttlCase_ == 3) { - return (com.google.protobuf.Duration) ttl_; + return (com.google.protobuf.Duration) ttl_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** - * - * *
    * Optional. The lifetime duration of cluster. The cluster will be
    * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -287,13 +229,12 @@ public com.google.protobuf.Duration getAutoDeleteTtl() {
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() { if (ttlCase_ == 3) { - return (com.google.protobuf.Duration) ttl_; + return (com.google.protobuf.Duration) ttl_; } return com.google.protobuf.Duration.getDefaultInstance(); } @@ -301,8 +242,6 @@ public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() { public static final int IDLE_START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp idleStartTime_; /** - * - * *
    * Output only. The time when cluster became idle (most recent job finished)
    * and became eligible for deletion due to idleness (see JSON representation
@@ -310,10 +249,7 @@ public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() {
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the idleStartTime field is set. */ @java.lang.Override @@ -321,8 +257,6 @@ public boolean hasIdleStartTime() { return idleStartTime_ != null; } /** - * - * *
    * Output only. The time when cluster became idle (most recent job finished)
    * and became eligible for deletion due to idleness (see JSON representation
@@ -330,21 +264,14 @@ public boolean hasIdleStartTime() {
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The idleStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getIdleStartTime() { - return idleStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : idleStartTime_; + return idleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : idleStartTime_; } /** - * - * *
    * Output only. The time when cluster became idle (most recent job finished)
    * and became eligible for deletion due to idleness (see JSON representation
@@ -352,9 +279,7 @@ public com.google.protobuf.Timestamp getIdleStartTime() {
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder() { @@ -362,7 +287,6 @@ public com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -374,7 +298,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 (idleDeleteTtl_ != null) { output.writeMessage(1, getIdleDeleteTtl()); } @@ -397,20 +322,20 @@ public int getSerializedSize() { size = 0; if (idleDeleteTtl_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIdleDeleteTtl()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getIdleDeleteTtl()); } if (ttlCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.protobuf.Timestamp) ttl_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.protobuf.Timestamp) ttl_); } if (ttlCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.protobuf.Duration) ttl_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.protobuf.Duration) ttl_); } if (idleStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIdleStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getIdleStartTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -420,29 +345,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.LifecycleConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.LifecycleConfig other = - (com.google.cloud.dataproc.v1.LifecycleConfig) obj; + com.google.cloud.dataproc.v1.LifecycleConfig other = (com.google.cloud.dataproc.v1.LifecycleConfig) obj; if (hasIdleDeleteTtl() != other.hasIdleDeleteTtl()) return false; if (hasIdleDeleteTtl()) { - if (!getIdleDeleteTtl().equals(other.getIdleDeleteTtl())) return false; + if (!getIdleDeleteTtl() + .equals(other.getIdleDeleteTtl())) return false; } if (hasIdleStartTime() != other.hasIdleStartTime()) return false; if (hasIdleStartTime()) { - if (!getIdleStartTime().equals(other.getIdleStartTime())) return false; + if (!getIdleStartTime() + .equals(other.getIdleStartTime())) return false; } if (!getTtlCase().equals(other.getTtlCase())) return false; switch (ttlCase_) { case 2: - if (!getAutoDeleteTime().equals(other.getAutoDeleteTime())) return false; + if (!getAutoDeleteTime() + .equals(other.getAutoDeleteTime())) return false; break; case 3: - if (!getAutoDeleteTtl().equals(other.getAutoDeleteTtl())) return false; + if (!getAutoDeleteTtl() + .equals(other.getAutoDeleteTtl())) return false; break; case 0: default: @@ -483,136 +411,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.LifecycleConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.LifecycleConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.LifecycleConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.LifecycleConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specifies the cluster auto-delete schedule configuration.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.LifecycleConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.LifecycleConfig) com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.LifecycleConfig.class, - com.google.cloud.dataproc.v1.LifecycleConfig.Builder.class); + com.google.cloud.dataproc.v1.LifecycleConfig.class, com.google.cloud.dataproc.v1.LifecycleConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.LifecycleConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -640,9 +562,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; } @java.lang.Override @@ -661,8 +583,7 @@ public com.google.cloud.dataproc.v1.LifecycleConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.LifecycleConfig buildPartial() { - com.google.cloud.dataproc.v1.LifecycleConfig result = - new com.google.cloud.dataproc.v1.LifecycleConfig(this); + com.google.cloud.dataproc.v1.LifecycleConfig result = new com.google.cloud.dataproc.v1.LifecycleConfig(this); if (idleDeleteTtlBuilder_ == null) { result.idleDeleteTtl_ = idleDeleteTtl_; } else { @@ -696,39 +617,38 @@ public com.google.cloud.dataproc.v1.LifecycleConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.LifecycleConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.LifecycleConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.LifecycleConfig)other); } else { super.mergeFrom(other); return this; @@ -744,20 +664,17 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.LifecycleConfig other) { mergeIdleStartTime(other.getIdleStartTime()); } switch (other.getTtlCase()) { - case AUTO_DELETE_TIME: - { - mergeAutoDeleteTime(other.getAutoDeleteTime()); - break; - } - case AUTO_DELETE_TTL: - { - mergeAutoDeleteTtl(other.getAutoDeleteTtl()); - break; - } - case TTL_NOT_SET: - { - break; - } + case AUTO_DELETE_TIME: { + mergeAutoDeleteTime(other.getAutoDeleteTime()); + break; + } + case AUTO_DELETE_TTL: { + mergeAutoDeleteTtl(other.getAutoDeleteTtl()); + break; + } + case TTL_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -785,37 +702,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getIdleDeleteTtlFieldBuilder().getBuilder(), extensionRegistry); + case 10: { + input.readMessage( + getIdleDeleteTtlFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 10 - case 18: - { - input.readMessage(getAutoDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - ttlCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getAutoDeleteTtlFieldBuilder().getBuilder(), extensionRegistry); - ttlCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getIdleStartTimeFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getAutoDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + ttlCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getAutoDeleteTtlFieldBuilder().getBuilder(), + extensionRegistry); + ttlCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getIdleStartTimeFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -825,12 +745,12 @@ public Builder mergeFrom( } // finally return this; } - private int ttlCase_ = 0; private java.lang.Object ttl_; - - public TtlCase getTtlCase() { - return TtlCase.forNumber(ttlCase_); + public TtlCase + getTtlCase() { + return TtlCase.forNumber( + ttlCase_); } public Builder clearTtl() { @@ -840,15 +760,11 @@ public Builder clearTtl() { return this; } + private com.google.protobuf.Duration idleDeleteTtl_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - idleDeleteTtlBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> idleDeleteTtlBuilder_; /** - * - * *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
@@ -857,18 +773,13 @@ public Builder clearTtl() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the idleDeleteTtl field is set. */ public boolean hasIdleDeleteTtl() { return idleDeleteTtlBuilder_ != null || idleDeleteTtl_ != null; } /** - * - * *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
@@ -877,24 +788,17 @@ public boolean hasIdleDeleteTtl() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The idleDeleteTtl. */ public com.google.protobuf.Duration getIdleDeleteTtl() { if (idleDeleteTtlBuilder_ == null) { - return idleDeleteTtl_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : idleDeleteTtl_; + return idleDeleteTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleDeleteTtl_; } else { return idleDeleteTtlBuilder_.getMessage(); } } /** - * - * *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
@@ -903,9 +807,7 @@ public com.google.protobuf.Duration getIdleDeleteTtl() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setIdleDeleteTtl(com.google.protobuf.Duration value) { if (idleDeleteTtlBuilder_ == null) { @@ -921,8 +823,6 @@ public Builder setIdleDeleteTtl(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
@@ -931,11 +831,10 @@ public Builder setIdleDeleteTtl(com.google.protobuf.Duration value) {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setIdleDeleteTtl(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setIdleDeleteTtl( + com.google.protobuf.Duration.Builder builderForValue) { if (idleDeleteTtlBuilder_ == null) { idleDeleteTtl_ = builderForValue.build(); onChanged(); @@ -946,8 +845,6 @@ public Builder setIdleDeleteTtl(com.google.protobuf.Duration.Builder builderForV return this; } /** - * - * *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
@@ -956,17 +853,13 @@ public Builder setIdleDeleteTtl(com.google.protobuf.Duration.Builder builderForV
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeIdleDeleteTtl(com.google.protobuf.Duration value) { if (idleDeleteTtlBuilder_ == null) { if (idleDeleteTtl_ != null) { idleDeleteTtl_ = - com.google.protobuf.Duration.newBuilder(idleDeleteTtl_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(idleDeleteTtl_).mergeFrom(value).buildPartial(); } else { idleDeleteTtl_ = value; } @@ -978,8 +871,6 @@ public Builder mergeIdleDeleteTtl(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
@@ -988,9 +879,7 @@ public Builder mergeIdleDeleteTtl(com.google.protobuf.Duration value) {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearIdleDeleteTtl() { if (idleDeleteTtlBuilder_ == null) { @@ -1004,8 +893,6 @@ public Builder clearIdleDeleteTtl() { return this; } /** - * - * *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
@@ -1014,18 +901,14 @@ public Builder clearIdleDeleteTtl() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getIdleDeleteTtlBuilder() { - + onChanged(); return getIdleDeleteTtlFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
@@ -1034,22 +917,17 @@ public com.google.protobuf.Duration.Builder getIdleDeleteTtlBuilder() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder() { if (idleDeleteTtlBuilder_ != null) { return idleDeleteTtlBuilder_.getMessageOrBuilder(); } else { - return idleDeleteTtl_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : idleDeleteTtl_; + return idleDeleteTtl_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : idleDeleteTtl_; } } /** - * - * *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
@@ -1058,44 +936,32 @@ public com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ 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> getIdleDeleteTtlFieldBuilder() { if (idleDeleteTtlBuilder_ == null) { - idleDeleteTtlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getIdleDeleteTtl(), getParentForChildren(), isClean()); + idleDeleteTtlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getIdleDeleteTtl(), + getParentForChildren(), + isClean()); idleDeleteTtl_ = null; } return idleDeleteTtlBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - autoDeleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> autoDeleteTimeBuilder_; /** - * - * *
-     * Optional. The time when cluster will be auto-deleted (see JSON representation of
+     * Optional. The time when cluster will be auto-deleted (see JSON
+     * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the autoDeleteTime field is set. */ @java.lang.Override @@ -1103,17 +969,13 @@ public boolean hasAutoDeleteTime() { return ttlCase_ == 2; } /** - * - * *
-     * Optional. The time when cluster will be auto-deleted (see JSON representation of
+     * Optional. The time when cluster will be auto-deleted (see JSON
+     * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The autoDeleteTime. */ @java.lang.Override @@ -1131,16 +993,13 @@ public com.google.protobuf.Timestamp getAutoDeleteTime() { } } /** - * - * *
-     * Optional. The time when cluster will be auto-deleted (see JSON representation of
+     * Optional. The time when cluster will be auto-deleted (see JSON
+     * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAutoDeleteTime(com.google.protobuf.Timestamp value) { if (autoDeleteTimeBuilder_ == null) { @@ -1156,18 +1015,16 @@ public Builder setAutoDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
-     * Optional. The time when cluster will be auto-deleted (see JSON representation of
+     * Optional. The time when cluster will be auto-deleted (see JSON
+     * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setAutoDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setAutoDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (autoDeleteTimeBuilder_ == null) { ttl_ = builderForValue.build(); onChanged(); @@ -1178,24 +1035,20 @@ public Builder setAutoDeleteTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
-     * Optional. The time when cluster will be auto-deleted (see JSON representation of
+     * Optional. The time when cluster will be auto-deleted (see JSON
+     * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeAutoDeleteTime(com.google.protobuf.Timestamp value) { if (autoDeleteTimeBuilder_ == null) { - if (ttlCase_ == 2 && ttl_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - ttl_ = - com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) ttl_) - .mergeFrom(value) - .buildPartial(); + if (ttlCase_ == 2 && + ttl_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + ttl_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) ttl_) + .mergeFrom(value).buildPartial(); } else { ttl_ = value; } @@ -1211,16 +1064,13 @@ public Builder mergeAutoDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
-     * Optional. The time when cluster will be auto-deleted (see JSON representation of
+     * Optional. The time when cluster will be auto-deleted (see JSON
+     * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAutoDeleteTime() { if (autoDeleteTimeBuilder_ == null) { @@ -1239,31 +1089,25 @@ public Builder clearAutoDeleteTime() { return this; } /** - * - * *
-     * Optional. The time when cluster will be auto-deleted (see JSON representation of
+     * Optional. The time when cluster will be auto-deleted (see JSON
+     * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Timestamp.Builder getAutoDeleteTimeBuilder() { return getAutoDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
-     * Optional. The time when cluster will be auto-deleted (see JSON representation of
+     * Optional. The time when cluster will be auto-deleted (see JSON
+     * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder() { @@ -1277,48 +1121,36 @@ public com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder() { } } /** - * - * *
-     * Optional. The time when cluster will be auto-deleted (see JSON representation of
+     * Optional. The time when cluster will be auto-deleted (see JSON
+     * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ 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> getAutoDeleteTimeFieldBuilder() { if (autoDeleteTimeBuilder_ == null) { if (!(ttlCase_ == 2)) { ttl_ = com.google.protobuf.Timestamp.getDefaultInstance(); } - autoDeleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) ttl_, getParentForChildren(), isClean()); + autoDeleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) ttl_, + getParentForChildren(), + isClean()); ttl_ = null; } ttlCase_ = 2; - onChanged(); - ; + onChanged();; return autoDeleteTimeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - autoDeleteTtlBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> autoDeleteTtlBuilder_; /** - * - * *
      * Optional. The lifetime duration of cluster. The cluster will be
      * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -1326,10 +1158,7 @@ public com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the autoDeleteTtl field is set. */ @java.lang.Override @@ -1337,8 +1166,6 @@ public boolean hasAutoDeleteTtl() { return ttlCase_ == 3; } /** - * - * *
      * Optional. The lifetime duration of cluster. The cluster will be
      * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -1346,10 +1173,7 @@ public boolean hasAutoDeleteTtl() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The autoDeleteTtl. */ @java.lang.Override @@ -1367,8 +1191,6 @@ public com.google.protobuf.Duration getAutoDeleteTtl() { } } /** - * - * *
      * Optional. The lifetime duration of cluster. The cluster will be
      * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -1376,9 +1198,7 @@ public com.google.protobuf.Duration getAutoDeleteTtl() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAutoDeleteTtl(com.google.protobuf.Duration value) { if (autoDeleteTtlBuilder_ == null) { @@ -1394,8 +1214,6 @@ public Builder setAutoDeleteTtl(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. The lifetime duration of cluster. The cluster will be
      * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -1403,11 +1221,10 @@ public Builder setAutoDeleteTtl(com.google.protobuf.Duration value) {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setAutoDeleteTtl(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setAutoDeleteTtl( + com.google.protobuf.Duration.Builder builderForValue) { if (autoDeleteTtlBuilder_ == null) { ttl_ = builderForValue.build(); onChanged(); @@ -1418,8 +1235,6 @@ public Builder setAutoDeleteTtl(com.google.protobuf.Duration.Builder builderForV return this; } /** - * - * *
      * Optional. The lifetime duration of cluster. The cluster will be
      * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -1427,17 +1242,14 @@ public Builder setAutoDeleteTtl(com.google.protobuf.Duration.Builder builderForV
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeAutoDeleteTtl(com.google.protobuf.Duration value) { if (autoDeleteTtlBuilder_ == null) { - if (ttlCase_ == 3 && ttl_ != com.google.protobuf.Duration.getDefaultInstance()) { - ttl_ = - com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) ttl_) - .mergeFrom(value) - .buildPartial(); + if (ttlCase_ == 3 && + ttl_ != com.google.protobuf.Duration.getDefaultInstance()) { + ttl_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) ttl_) + .mergeFrom(value).buildPartial(); } else { ttl_ = value; } @@ -1453,8 +1265,6 @@ public Builder mergeAutoDeleteTtl(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. The lifetime duration of cluster. The cluster will be
      * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -1462,9 +1272,7 @@ public Builder mergeAutoDeleteTtl(com.google.protobuf.Duration value) {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAutoDeleteTtl() { if (autoDeleteTtlBuilder_ == null) { @@ -1483,8 +1291,6 @@ public Builder clearAutoDeleteTtl() { return this; } /** - * - * *
      * Optional. The lifetime duration of cluster. The cluster will be
      * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -1492,16 +1298,12 @@ public Builder clearAutoDeleteTtl() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getAutoDeleteTtlBuilder() { return getAutoDeleteTtlFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The lifetime duration of cluster. The cluster will be
      * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -1509,9 +1311,7 @@ public com.google.protobuf.Duration.Builder getAutoDeleteTtlBuilder() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() { @@ -1525,8 +1325,6 @@ public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() { } } /** - * - * *
      * Optional. The lifetime duration of cluster. The cluster will be
      * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -1534,42 +1332,31 @@ public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; */ 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> getAutoDeleteTtlFieldBuilder() { if (autoDeleteTtlBuilder_ == null) { if (!(ttlCase_ == 3)) { ttl_ = com.google.protobuf.Duration.getDefaultInstance(); } - autoDeleteTtlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - (com.google.protobuf.Duration) ttl_, getParentForChildren(), isClean()); + autoDeleteTtlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) ttl_, + getParentForChildren(), + isClean()); ttl_ = null; } ttlCase_ = 3; - onChanged(); - ; + onChanged();; return autoDeleteTtlBuilder_; } private com.google.protobuf.Timestamp idleStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - idleStartTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> idleStartTimeBuilder_; /** - * - * *
      * Output only. The time when cluster became idle (most recent job finished)
      * and became eligible for deletion due to idleness (see JSON representation
@@ -1577,18 +1364,13 @@ public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() {
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the idleStartTime field is set. */ public boolean hasIdleStartTime() { return idleStartTimeBuilder_ != null || idleStartTime_ != null; } /** - * - * *
      * Output only. The time when cluster became idle (most recent job finished)
      * and became eligible for deletion due to idleness (see JSON representation
@@ -1596,24 +1378,17 @@ public boolean hasIdleStartTime() {
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The idleStartTime. */ public com.google.protobuf.Timestamp getIdleStartTime() { if (idleStartTimeBuilder_ == null) { - return idleStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : idleStartTime_; + return idleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : idleStartTime_; } else { return idleStartTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when cluster became idle (most recent job finished)
      * and became eligible for deletion due to idleness (see JSON representation
@@ -1621,9 +1396,7 @@ public com.google.protobuf.Timestamp getIdleStartTime() {
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setIdleStartTime(com.google.protobuf.Timestamp value) { if (idleStartTimeBuilder_ == null) { @@ -1639,8 +1412,6 @@ public Builder setIdleStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when cluster became idle (most recent job finished)
      * and became eligible for deletion due to idleness (see JSON representation
@@ -1648,11 +1419,10 @@ public Builder setIdleStartTime(com.google.protobuf.Timestamp value) {
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setIdleStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setIdleStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (idleStartTimeBuilder_ == null) { idleStartTime_ = builderForValue.build(); onChanged(); @@ -1663,8 +1433,6 @@ public Builder setIdleStartTime(com.google.protobuf.Timestamp.Builder builderFor return this; } /** - * - * *
      * Output only. The time when cluster became idle (most recent job finished)
      * and became eligible for deletion due to idleness (see JSON representation
@@ -1672,17 +1440,13 @@ public Builder setIdleStartTime(com.google.protobuf.Timestamp.Builder builderFor
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeIdleStartTime(com.google.protobuf.Timestamp value) { if (idleStartTimeBuilder_ == null) { if (idleStartTime_ != null) { idleStartTime_ = - com.google.protobuf.Timestamp.newBuilder(idleStartTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(idleStartTime_).mergeFrom(value).buildPartial(); } else { idleStartTime_ = value; } @@ -1694,8 +1458,6 @@ public Builder mergeIdleStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when cluster became idle (most recent job finished)
      * and became eligible for deletion due to idleness (see JSON representation
@@ -1703,9 +1465,7 @@ public Builder mergeIdleStartTime(com.google.protobuf.Timestamp value) {
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearIdleStartTime() { if (idleStartTimeBuilder_ == null) { @@ -1719,8 +1479,6 @@ public Builder clearIdleStartTime() { return this; } /** - * - * *
      * Output only. The time when cluster became idle (most recent job finished)
      * and became eligible for deletion due to idleness (see JSON representation
@@ -1728,18 +1486,14 @@ public Builder clearIdleStartTime() {
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getIdleStartTimeBuilder() { - + onChanged(); return getIdleStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when cluster became idle (most recent job finished)
      * and became eligible for deletion due to idleness (see JSON representation
@@ -1747,22 +1501,17 @@ public com.google.protobuf.Timestamp.Builder getIdleStartTimeBuilder() {
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder() { if (idleStartTimeBuilder_ != null) { return idleStartTimeBuilder_.getMessageOrBuilder(); } else { - return idleStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : idleStartTime_; + return idleStartTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : idleStartTime_; } } /** - * - * *
      * Output only. The time when cluster became idle (most recent job finished)
      * and became eligible for deletion due to idleness (see JSON representation
@@ -1770,29 +1519,24 @@ public com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder() {
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp idle_start_time = 4 [(.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> getIdleStartTimeFieldBuilder() { if (idleStartTimeBuilder_ == null) { - idleStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getIdleStartTime(), getParentForChildren(), isClean()); + idleStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getIdleStartTime(), + getParentForChildren(), + isClean()); idleStartTime_ = null; } return idleStartTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1802,12 +1546,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.LifecycleConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.LifecycleConfig) private static final com.google.cloud.dataproc.v1.LifecycleConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.LifecycleConfig(); } @@ -1816,27 +1560,27 @@ public static com.google.cloud.dataproc.v1.LifecycleConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LifecycleConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LifecycleConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1851,4 +1595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.LifecycleConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java similarity index 73% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java index 3f94c68eca7d..d30ef39c0fb0 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface LifecycleConfigOrBuilder - extends +public interface LifecycleConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.LifecycleConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The duration to keep the cluster alive while idling (when no jobs
    * are running). Passing this threshold will cause the cluster to be
@@ -34,15 +16,11 @@ public interface LifecycleConfigOrBuilder
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the idleDeleteTtl field is set. */ boolean hasIdleDeleteTtl(); /** - * - * *
    * Optional. The duration to keep the cluster alive while idling (when no jobs
    * are running). Passing this threshold will cause the cluster to be
@@ -51,15 +29,11 @@ public interface LifecycleConfigOrBuilder
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The idleDeleteTtl. */ com.google.protobuf.Duration getIdleDeleteTtl(); /** - * - * *
    * Optional. The duration to keep the cluster alive while idling (when no jobs
    * are running). Passing this threshold will cause the cluster to be
@@ -68,58 +42,44 @@ public interface LifecycleConfigOrBuilder
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder(); /** - * - * *
-   * Optional. The time when cluster will be auto-deleted (see JSON representation of
+   * Optional. The time when cluster will be auto-deleted (see JSON
+   * representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the autoDeleteTime field is set. */ boolean hasAutoDeleteTime(); /** - * - * *
-   * Optional. The time when cluster will be auto-deleted (see JSON representation of
+   * Optional. The time when cluster will be auto-deleted (see JSON
+   * representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The autoDeleteTime. */ com.google.protobuf.Timestamp getAutoDeleteTime(); /** - * - * *
-   * Optional. The time when cluster will be auto-deleted (see JSON representation of
+   * Optional. The time when cluster will be auto-deleted (see JSON
+   * representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder(); /** - * - * *
    * Optional. The lifetime duration of cluster. The cluster will be
    * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -127,15 +87,11 @@ public interface LifecycleConfigOrBuilder
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the autoDeleteTtl field is set. */ boolean hasAutoDeleteTtl(); /** - * - * *
    * Optional. The lifetime duration of cluster. The cluster will be
    * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -143,15 +99,11 @@ public interface LifecycleConfigOrBuilder
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The autoDeleteTtl. */ com.google.protobuf.Duration getAutoDeleteTtl(); /** - * - * *
    * Optional. The lifetime duration of cluster. The cluster will be
    * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -159,14 +111,11 @@ public interface LifecycleConfigOrBuilder
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder(); /** - * - * *
    * Output only. The time when cluster became idle (most recent job finished)
    * and became eligible for deletion due to idleness (see JSON representation
@@ -174,16 +123,11 @@ public interface LifecycleConfigOrBuilder
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the idleStartTime field is set. */ boolean hasIdleStartTime(); /** - * - * *
    * Output only. The time when cluster became idle (most recent job finished)
    * and became eligible for deletion due to idleness (see JSON representation
@@ -191,16 +135,11 @@ public interface LifecycleConfigOrBuilder
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The idleStartTime. */ com.google.protobuf.Timestamp getIdleStartTime(); /** - * - * *
    * Output only. The time when cluster became idle (most recent job finished)
    * and became eligible for deletion due to idleness (see JSON representation
@@ -208,9 +147,7 @@ public interface LifecycleConfigOrBuilder
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder(); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java similarity index 70% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java index 6ef5e8e97528..128630994726 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java @@ -1,43 +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/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to list autoscaling policies in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest} */ -public final class ListAutoscalingPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAutoscalingPoliciesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) ListAutoscalingPoliciesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAutoscalingPoliciesRequest.newBuilder() to construct. - private ListAutoscalingPoliciesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListAutoscalingPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAutoscalingPoliciesRequest() { parent_ = ""; pageToken_ = ""; @@ -45,35 +26,32 @@ private ListAutoscalingPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAutoscalingPoliciesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.class, - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.Builder.class); + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.class, com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The "resource name" of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -85,10 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `projects/{project_id}/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 @@ -97,15 +72,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The "resource name" of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -117,18 +91,17 @@ public java.lang.String getParent() {
    *   `projects/{project_id}/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 { @@ -139,15 +112,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. The maximum number of results to return in each response.
    * Must be less than or equal to 1000. Defaults to 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -158,15 +128,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -175,30 +142,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -207,7 +174,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,7 +185,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_); } @@ -242,7 +209,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_); @@ -255,17 +223,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.dataproc.v1.ListAutoscalingPoliciesRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest other = - (com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) obj; + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest other = (com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -289,136 +259,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest 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.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to list autoscaling policies in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.class, - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.Builder.class); + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.class, com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -432,9 +395,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; } @java.lang.Override @@ -453,8 +416,7 @@ public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest buildPartial() { - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest result = - new com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest(this); + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest result = new com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -466,39 +428,38 @@ public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest)other); } else { super.mergeFrom(other); return this; @@ -506,8 +467,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest other) { - if (other == com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -545,31 +505,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -582,8 +538,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -595,16 +549,14 @@ public Builder mergeFrom(
      *   `projects/{project_id}/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; @@ -613,8 +565,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -626,17 +576,16 @@ public java.lang.String getParent() {
      *   `projects/{project_id}/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 { @@ -644,8 +593,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -657,25 +604,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      *   `projects/{project_id}/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 "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -687,21 +630,16 @@ public Builder setParent(java.lang.String value) {
      *   `projects/{project_id}/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 "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -713,35 +651,30 @@ public Builder clearParent() {
      *   `projects/{project_id}/locations/{location}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to return in each response.
      * Must be less than or equal to 1000. Defaults to 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -749,38 +682,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return in each response.
      * Must be less than or equal to 1000. Defaults to 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The maximum number of results to return in each response.
      * Must be less than or equal to 1000. Defaults to 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -788,21 +715,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -811,22 +736,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -834,71 +758,64 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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); } @@ -908,12 +825,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) private static final com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest(); } @@ -922,27 +839,27 @@ public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAutoscalingPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAutoscalingPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -957,4 +874,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.java similarity index 67% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.java index ae28d7ceff1c..8509d116fcfb 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.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/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; -public interface ListAutoscalingPoliciesRequestOrBuilder - extends +public interface ListAutoscalingPoliciesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The "resource name" of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -37,16 +19,11 @@ public interface ListAutoscalingPoliciesRequestOrBuilder
    *   `projects/{project_id}/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 "resource name" of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -58,52 +35,42 @@ public interface ListAutoscalingPoliciesRequestOrBuilder
    *   `projects/{project_id}/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(); /** - * - * *
    * Optional. The maximum number of results to return in each response.
    * Must be less than or equal to 1000. Defaults to 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java similarity index 63% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java index e15564de7c81..96bf948e9897 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java @@ -1,43 +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/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A response to a request to list autoscaling policies in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse} */ -public final class ListAutoscalingPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAutoscalingPoliciesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) ListAutoscalingPoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAutoscalingPoliciesResponse.newBuilder() to construct. - private ListAutoscalingPoliciesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListAutoscalingPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAutoscalingPoliciesResponse() { policies_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,121 +26,98 @@ private ListAutoscalingPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAutoscalingPoliciesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.class, - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.Builder.class); + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.class, com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.Builder.class); } public static final int POLICIES_FIELD_NUMBER = 1; private java.util.List policies_; /** - * - * *
    * Output only. Autoscaling policies list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getPoliciesList() { return policies_; } /** - * - * *
    * Output only. Autoscaling policies list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getPoliciesOrBuilderList() { return policies_; } /** - * - * *
    * Output only. Autoscaling policies list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getPoliciesCount() { return policies_.size(); } /** - * - * *
    * Output only. Autoscaling policies list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicies(int index) { return policies_.get(index); } /** - * - * *
    * Output only. Autoscaling policies list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPoliciesOrBuilder(int index) { + public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPoliciesOrBuilder( + int index) { return policies_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Output only. This token is included in the response if there are more
    * results to fetch.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ @java.lang.Override @@ -168,30 +126,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Output only. This token is included in the response if there are more
    * results to fetch.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -200,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < policies_.size(); i++) { output.writeMessage(1, policies_.get(i)); } @@ -229,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < policies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, policies_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, policies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -242,16 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse other = - (com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) obj; + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse other = (com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) obj; - if (!getPoliciesList().equals(other.getPoliciesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getPoliciesList() + .equals(other.getPoliciesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,136 +235,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse 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.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 response to a request to list autoscaling policies in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.class, - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.Builder.class); + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.class, com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -421,14 +374,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; } @java.lang.Override - public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse - getDefaultInstanceForType() { + public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse getDefaultInstanceForType() { return com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.getDefaultInstance(); } @@ -443,8 +395,7 @@ public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse buildPartial() { - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse result = - new com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse(this); + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse result = new com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse(this); int from_bitField0_ = bitField0_; if (policiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -464,39 +415,38 @@ public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) { - return mergeFrom((com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) other); + return mergeFrom((com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse)other); } else { super.mergeFrom(other); return this; @@ -504,9 +454,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse other) { - if (other - == com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.getDefaultInstance()) return this; if (policiesBuilder_ == null) { if (!other.policies_.isEmpty()) { if (policies_.isEmpty()) { @@ -525,10 +473,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRes policiesBuilder_ = null; policies_ = other.policies_; bitField0_ = (bitField0_ & ~0x00000001); - policiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPoliciesFieldBuilder() - : null; + policiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPoliciesFieldBuilder() : null; } else { policiesBuilder_.addAllMessages(other.policies_); } @@ -564,32 +511,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.dataproc.v1.AutoscalingPolicy m = - input.readMessage( - com.google.cloud.dataproc.v1.AutoscalingPolicy.parser(), extensionRegistry); - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.add(m); - } else { - policiesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.dataproc.v1.AutoscalingPolicy m = + input.readMessage( + com.google.cloud.dataproc.v1.AutoscalingPolicy.parser(), + extensionRegistry); + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.add(m); + } else { + policiesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -599,36 +544,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List policies_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - policies_ = - new java.util.ArrayList(policies_); + policies_ = new java.util.ArrayList(policies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> - policiesBuilder_; + com.google.cloud.dataproc.v1.AutoscalingPolicy, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> policiesBuilder_; /** - * - * *
      * Output only. Autoscaling policies list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getPoliciesList() { if (policiesBuilder_ == null) { @@ -638,15 +573,11 @@ public java.util.List getPolicie } } /** - * - * *
      * Output only. Autoscaling policies list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getPoliciesCount() { if (policiesBuilder_ == null) { @@ -656,15 +587,11 @@ public int getPoliciesCount() { } } /** - * - * *
      * Output only. Autoscaling policies list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicies(int index) { if (policiesBuilder_ == null) { @@ -674,17 +601,14 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicies(int index) { } } /** - * - * *
      * Output only. Autoscaling policies list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setPolicies(int index, com.google.cloud.dataproc.v1.AutoscalingPolicy value) { + public Builder setPolicies( + int index, com.google.cloud.dataproc.v1.AutoscalingPolicy value) { if (policiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -698,15 +622,11 @@ public Builder setPolicies(int index, com.google.cloud.dataproc.v1.AutoscalingPo return this; } /** - * - * *
      * Output only. Autoscaling policies list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPolicies( int index, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder builderForValue) { @@ -720,15 +640,11 @@ public Builder setPolicies( return this; } /** - * - * *
      * Output only. Autoscaling policies list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addPolicies(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { if (policiesBuilder_ == null) { @@ -744,17 +660,14 @@ public Builder addPolicies(com.google.cloud.dataproc.v1.AutoscalingPolicy value) return this; } /** - * - * *
      * Output only. Autoscaling policies list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addPolicies(int index, com.google.cloud.dataproc.v1.AutoscalingPolicy value) { + public Builder addPolicies( + int index, com.google.cloud.dataproc.v1.AutoscalingPolicy value) { if (policiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -768,15 +681,11 @@ public Builder addPolicies(int index, com.google.cloud.dataproc.v1.AutoscalingPo return this; } /** - * - * *
      * Output only. Autoscaling policies list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addPolicies( com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder builderForValue) { @@ -790,15 +699,11 @@ public Builder addPolicies( return this; } /** - * - * *
      * Output only. Autoscaling policies list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addPolicies( int index, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder builderForValue) { @@ -812,21 +717,18 @@ public Builder addPolicies( return this; } /** - * - * *
      * Output only. Autoscaling policies list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllPolicies( java.lang.Iterable values) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, policies_); onChanged(); } else { policiesBuilder_.addAllMessages(values); @@ -834,15 +736,11 @@ public Builder addAllPolicies( return this; } /** - * - * *
      * Output only. Autoscaling policies list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearPolicies() { if (policiesBuilder_ == null) { @@ -855,15 +753,11 @@ public Builder clearPolicies() { return this; } /** - * - * *
      * Output only. Autoscaling policies list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removePolicies(int index) { if (policiesBuilder_ == null) { @@ -876,50 +770,39 @@ public Builder removePolicies(int index) { return this; } /** - * - * *
      * Output only. Autoscaling policies list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder getPoliciesBuilder(int index) { + public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder getPoliciesBuilder( + int index) { return getPoliciesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Autoscaling policies list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPoliciesOrBuilder(int index) { + public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPoliciesOrBuilder( + int index) { if (policiesBuilder_ == null) { - return policies_.get(index); - } else { + return policies_.get(index); } else { return policiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Autoscaling policies list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getPoliciesOrBuilderList() { + public java.util.List + getPoliciesOrBuilderList() { if (policiesBuilder_ != null) { return policiesBuilder_.getMessageOrBuilderList(); } else { @@ -927,63 +810,49 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPoliciesOrBuil } } /** - * - * *
      * Output only. Autoscaling policies list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder addPoliciesBuilder() { - return getPoliciesFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance()); + return getPoliciesFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance()); } /** - * - * *
      * Output only. Autoscaling policies list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder addPoliciesBuilder(int index) { - return getPoliciesFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance()); + public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder addPoliciesBuilder( + int index) { + return getPoliciesFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance()); } /** - * - * *
      * Output only. Autoscaling policies list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getPoliciesBuilderList() { + public java.util.List + getPoliciesBuilderList() { return getPoliciesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> + com.google.cloud.dataproc.v1.AutoscalingPolicy, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> getPoliciesFieldBuilder() { if (policiesBuilder_ == null) { - policiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder>( - policies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + policiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.AutoscalingPolicy, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder>( + policies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); policies_ = null; } return policiesBuilder_; @@ -991,21 +860,19 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder addPoliciesBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Output only. This token is included in the response if there are more
      * results to fetch.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1014,22 +881,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Output only. This token is included in the response if there are more
      * results to fetch.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1037,71 +903,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Output only. This token is included in the response if there are more
      * results to fetch.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; } /** - * - * *
      * Output only. This token is included in the response if there are more
      * results to fetch.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Output only. This token is included in the response if there are more
      * results to fetch.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1111,13 +970,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) - private static final com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse(); } @@ -1126,27 +984,27 @@ public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAutoscalingPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAutoscalingPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1161,4 +1019,6 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java similarity index 50% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java index c95513f98b1b..d462279c81b5 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java @@ -1,114 +1,75 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; -public interface ListAutoscalingPoliciesResponseOrBuilder - extends +public interface ListAutoscalingPoliciesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Autoscaling policies list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getPoliciesList(); + java.util.List + getPoliciesList(); /** - * - * *
    * Output only. Autoscaling policies list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicies(int index); /** - * - * *
    * Output only. Autoscaling policies list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getPoliciesCount(); /** - * - * *
    * Output only. Autoscaling policies list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getPoliciesOrBuilderList(); /** - * - * *
    * Output only. Autoscaling policies list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPoliciesOrBuilder(int index); + com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPoliciesOrBuilder( + int index); /** - * - * *
    * Output only. This token is included in the response if there are more
    * results to fetch.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Output only. This token is included in the response if there are more
    * results to fetch.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java similarity index 67% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java index b767ab90c144..cc6ce3967438 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.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/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to list batch workloads in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListBatchesRequest} */ -public final class ListBatchesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBatchesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListBatchesRequest) ListBatchesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBatchesRequest.newBuilder() to construct. private ListBatchesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBatchesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,43 +26,37 @@ private ListBatchesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBatchesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListBatchesRequest.class, - com.google.cloud.dataproc.v1.ListBatchesRequest.Builder.class); + com.google.cloud.dataproc.v1.ListBatchesRequest.class, com.google.cloud.dataproc.v1.ListBatchesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent, which owns this collection of batches.
    * 
* - * - * 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 @@ -89,31 +65,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; } } /** - * - * *
    * Required. The parent, which owns this collection of batches.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -124,8 +98,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. The maximum number of batches to return in each response.
    * The service may return fewer than this value.
@@ -133,7 +105,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -144,15 +115,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. A page token received from a previous `ListBatches` call.
    * Provide this token to retrieve the subsequent page.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -161,30 +129,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. A page token received from a previous `ListBatches` call.
    * Provide this token to retrieve the subsequent page.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -193,7 +161,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -228,7 +196,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_); @@ -241,17 +210,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.dataproc.v1.ListBatchesRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListBatchesRequest other = - (com.google.cloud.dataproc.v1.ListBatchesRequest) obj; + com.google.cloud.dataproc.v1.ListBatchesRequest other = (com.google.cloud.dataproc.v1.ListBatchesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -274,136 +245,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ListBatchesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to list batch workloads in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListBatchesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListBatchesRequest) com.google.cloud.dataproc.v1.ListBatchesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListBatchesRequest.class, - com.google.cloud.dataproc.v1.ListBatchesRequest.Builder.class); + com.google.cloud.dataproc.v1.ListBatchesRequest.class, com.google.cloud.dataproc.v1.ListBatchesRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListBatchesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -417,9 +382,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; } @java.lang.Override @@ -438,8 +403,7 @@ public com.google.cloud.dataproc.v1.ListBatchesRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListBatchesRequest buildPartial() { - com.google.cloud.dataproc.v1.ListBatchesRequest result = - new com.google.cloud.dataproc.v1.ListBatchesRequest(this); + com.google.cloud.dataproc.v1.ListBatchesRequest result = new com.google.cloud.dataproc.v1.ListBatchesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -451,39 +415,38 @@ public com.google.cloud.dataproc.v1.ListBatchesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ListBatchesRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.ListBatchesRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.ListBatchesRequest)other); } else { super.mergeFrom(other); return this; @@ -491,8 +454,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ListBatchesRequest other) { - if (other == com.google.cloud.dataproc.v1.ListBatchesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.ListBatchesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -530,31 +492,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -567,22 +525,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of batches.
      * 
* - * - * 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; @@ -591,23 +545,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of batches.
      * 
* - * - * 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 { @@ -615,76 +566,61 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of batches.
      * 
* - * - * 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, which owns this collection of batches.
      * 
* - * - * 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, which owns this collection of batches.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of batches to return in each response.
      * The service may return fewer than this value.
@@ -692,7 +628,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -700,8 +635,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of batches to return in each response.
      * The service may return fewer than this value.
@@ -709,19 +642,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The maximum number of batches to return in each response.
      * The service may return fewer than this value.
@@ -729,11 +659,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -741,21 +670,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A page token received from a previous `ListBatches` call.
      * Provide this token to retrieve the subsequent page.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -764,22 +691,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A page token received from a previous `ListBatches` call.
      * Provide this token to retrieve the subsequent page.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -787,71 +713,64 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A page token received from a previous `ListBatches` call.
      * Provide this token to retrieve the subsequent page.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. A page token received from a previous `ListBatches` call.
      * Provide this token to retrieve the subsequent page.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. A page token received from a previous `ListBatches` call.
      * Provide this token to retrieve the subsequent page.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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); } @@ -861,12 +780,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListBatchesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListBatchesRequest) private static final com.google.cloud.dataproc.v1.ListBatchesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListBatchesRequest(); } @@ -875,27 +794,27 @@ public static com.google.cloud.dataproc.v1.ListBatchesRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBatchesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBatchesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -910,4 +829,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ListBatchesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java similarity index 58% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java index 3f4c4c332849..1b2774c9a45f 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; -public interface ListBatchesRequestOrBuilder - extends +public interface ListBatchesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListBatchesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent, which owns this collection of batches.
    * 
* - * - * 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, which owns this collection of batches.
    * 
* - * - * 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(); /** - * - * *
    * Optional. The maximum number of batches to return in each response.
    * The service may return fewer than this value.
@@ -62,35 +35,29 @@ public interface ListBatchesRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A page token received from a previous `ListBatches` call.
    * Provide this token to retrieve the subsequent page.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A page token received from a previous `ListBatches` call.
    * Provide this token to retrieve the subsequent page.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java similarity index 71% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java index 9d9c9fc7a060..5f5817edc713 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.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/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A list of batch workloads.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListBatchesResponse} */ -public final class ListBatchesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBatchesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListBatchesResponse) ListBatchesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBatchesResponse.newBuilder() to construct. private ListBatchesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBatchesResponse() { batches_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,35 +26,32 @@ private ListBatchesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBatchesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListBatchesResponse.class, - com.google.cloud.dataproc.v1.ListBatchesResponse.Builder.class); + com.google.cloud.dataproc.v1.ListBatchesResponse.class, com.google.cloud.dataproc.v1.ListBatchesResponse.Builder.class); } public static final int BATCHES_FIELD_NUMBER = 1; private java.util.List batches_; /** - * - * *
    * The batches from the specified collection.
    * 
@@ -84,8 +63,6 @@ public java.util.List getBatchesList() { return batches_; } /** - * - * *
    * The batches from the specified collection.
    * 
@@ -93,13 +70,11 @@ public java.util.List getBatchesList() { * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBatchesOrBuilderList() { return batches_; } /** - * - * *
    * The batches from the specified collection.
    * 
@@ -111,8 +86,6 @@ public int getBatchesCount() { return batches_.size(); } /** - * - * *
    * The batches from the specified collection.
    * 
@@ -124,8 +97,6 @@ public com.google.cloud.dataproc.v1.Batch getBatches(int index) { return batches_.get(index); } /** - * - * *
    * The batches from the specified collection.
    * 
@@ -133,22 +104,20 @@ public com.google.cloud.dataproc.v1.Batch getBatches(int index) { * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ @java.lang.Override - public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder(int index) { + public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder( + int index) { return batches_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,30 +126,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -189,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < batches_.size(); i++) { output.writeMessage(1, batches_.get(i)); } @@ -218,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < batches_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, batches_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, batches_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -231,16 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ListBatchesResponse)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListBatchesResponse other = - (com.google.cloud.dataproc.v1.ListBatchesResponse) obj; + com.google.cloud.dataproc.v1.ListBatchesResponse other = (com.google.cloud.dataproc.v1.ListBatchesResponse) obj; - if (!getBatchesList().equals(other.getBatchesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getBatchesList() + .equals(other.getBatchesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,136 +234,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ListBatchesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 list of batch workloads.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListBatchesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListBatchesResponse) com.google.cloud.dataproc.v1.ListBatchesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListBatchesResponse.class, - com.google.cloud.dataproc.v1.ListBatchesResponse.Builder.class); + com.google.cloud.dataproc.v1.ListBatchesResponse.class, com.google.cloud.dataproc.v1.ListBatchesResponse.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListBatchesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; } @java.lang.Override @@ -430,8 +395,7 @@ public com.google.cloud.dataproc.v1.ListBatchesResponse build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListBatchesResponse buildPartial() { - com.google.cloud.dataproc.v1.ListBatchesResponse result = - new com.google.cloud.dataproc.v1.ListBatchesResponse(this); + com.google.cloud.dataproc.v1.ListBatchesResponse result = new com.google.cloud.dataproc.v1.ListBatchesResponse(this); int from_bitField0_ = bitField0_; if (batchesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -451,39 +415,38 @@ public com.google.cloud.dataproc.v1.ListBatchesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ListBatchesResponse) { - return mergeFrom((com.google.cloud.dataproc.v1.ListBatchesResponse) other); + return mergeFrom((com.google.cloud.dataproc.v1.ListBatchesResponse)other); } else { super.mergeFrom(other); return this; @@ -491,8 +454,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ListBatchesResponse other) { - if (other == com.google.cloud.dataproc.v1.ListBatchesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.ListBatchesResponse.getDefaultInstance()) return this; if (batchesBuilder_ == null) { if (!other.batches_.isEmpty()) { if (batches_.isEmpty()) { @@ -511,10 +473,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ListBatchesResponse other) batchesBuilder_ = null; batches_ = other.batches_; bitField0_ = (bitField0_ & ~0x00000001); - batchesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBatchesFieldBuilder() - : null; + batchesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBatchesFieldBuilder() : null; } else { batchesBuilder_.addAllMessages(other.batches_); } @@ -550,32 +511,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.dataproc.v1.Batch m = - input.readMessage( - com.google.cloud.dataproc.v1.Batch.parser(), extensionRegistry); - if (batchesBuilder_ == null) { - ensureBatchesIsMutable(); - batches_.add(m); - } else { - batchesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.dataproc.v1.Batch m = + input.readMessage( + com.google.cloud.dataproc.v1.Batch.parser(), + extensionRegistry); + if (batchesBuilder_ == null) { + ensureBatchesIsMutable(); + batches_.add(m); + } else { + batchesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -585,28 +544,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List batches_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBatchesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { batches_ = new java.util.ArrayList(batches_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch, - com.google.cloud.dataproc.v1.Batch.Builder, - com.google.cloud.dataproc.v1.BatchOrBuilder> - batchesBuilder_; + com.google.cloud.dataproc.v1.Batch, com.google.cloud.dataproc.v1.Batch.Builder, com.google.cloud.dataproc.v1.BatchOrBuilder> batchesBuilder_; /** - * - * *
      * The batches from the specified collection.
      * 
@@ -621,8 +573,6 @@ public java.util.List getBatchesList() { } } /** - * - * *
      * The batches from the specified collection.
      * 
@@ -637,8 +587,6 @@ public int getBatchesCount() { } } /** - * - * *
      * The batches from the specified collection.
      * 
@@ -653,15 +601,14 @@ public com.google.cloud.dataproc.v1.Batch getBatches(int index) { } } /** - * - * *
      * The batches from the specified collection.
      * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - public Builder setBatches(int index, com.google.cloud.dataproc.v1.Batch value) { + public Builder setBatches( + int index, com.google.cloud.dataproc.v1.Batch value) { if (batchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -675,8 +622,6 @@ public Builder setBatches(int index, com.google.cloud.dataproc.v1.Batch value) { return this; } /** - * - * *
      * The batches from the specified collection.
      * 
@@ -695,8 +640,6 @@ public Builder setBatches( return this; } /** - * - * *
      * The batches from the specified collection.
      * 
@@ -717,15 +660,14 @@ public Builder addBatches(com.google.cloud.dataproc.v1.Batch value) { return this; } /** - * - * *
      * The batches from the specified collection.
      * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - public Builder addBatches(int index, com.google.cloud.dataproc.v1.Batch value) { + public Builder addBatches( + int index, com.google.cloud.dataproc.v1.Batch value) { if (batchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -739,15 +681,14 @@ public Builder addBatches(int index, com.google.cloud.dataproc.v1.Batch value) { return this; } /** - * - * *
      * The batches from the specified collection.
      * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - public Builder addBatches(com.google.cloud.dataproc.v1.Batch.Builder builderForValue) { + public Builder addBatches( + com.google.cloud.dataproc.v1.Batch.Builder builderForValue) { if (batchesBuilder_ == null) { ensureBatchesIsMutable(); batches_.add(builderForValue.build()); @@ -758,8 +699,6 @@ public Builder addBatches(com.google.cloud.dataproc.v1.Batch.Builder builderForV return this; } /** - * - * *
      * The batches from the specified collection.
      * 
@@ -778,8 +717,6 @@ public Builder addBatches( return this; } /** - * - * *
      * The batches from the specified collection.
      * 
@@ -790,7 +727,8 @@ public Builder addAllBatches( java.lang.Iterable values) { if (batchesBuilder_ == null) { ensureBatchesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, batches_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, batches_); onChanged(); } else { batchesBuilder_.addAllMessages(values); @@ -798,8 +736,6 @@ public Builder addAllBatches( return this; } /** - * - * *
      * The batches from the specified collection.
      * 
@@ -817,8 +753,6 @@ public Builder clearBatches() { return this; } /** - * - * *
      * The batches from the specified collection.
      * 
@@ -836,44 +770,39 @@ public Builder removeBatches(int index) { return this; } /** - * - * *
      * The batches from the specified collection.
      * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - public com.google.cloud.dataproc.v1.Batch.Builder getBatchesBuilder(int index) { + public com.google.cloud.dataproc.v1.Batch.Builder getBatchesBuilder( + int index) { return getBatchesFieldBuilder().getBuilder(index); } /** - * - * *
      * The batches from the specified collection.
      * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder(int index) { + public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder( + int index) { if (batchesBuilder_ == null) { - return batches_.get(index); - } else { + return batches_.get(index); } else { return batchesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The batches from the specified collection.
      * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - public java.util.List - getBatchesOrBuilderList() { + public java.util.List + getBatchesOrBuilderList() { if (batchesBuilder_ != null) { return batchesBuilder_.getMessageOrBuilderList(); } else { @@ -881,8 +810,6 @@ public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder(int index } } /** - * - * *
      * The batches from the specified collection.
      * 
@@ -890,47 +817,42 @@ public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder(int index * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ public com.google.cloud.dataproc.v1.Batch.Builder addBatchesBuilder() { - return getBatchesFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.Batch.getDefaultInstance()); + return getBatchesFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.Batch.getDefaultInstance()); } /** - * - * *
      * The batches from the specified collection.
      * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - public com.google.cloud.dataproc.v1.Batch.Builder addBatchesBuilder(int index) { - return getBatchesFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.Batch.getDefaultInstance()); + public com.google.cloud.dataproc.v1.Batch.Builder addBatchesBuilder( + int index) { + return getBatchesFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.Batch.getDefaultInstance()); } /** - * - * *
      * The batches from the specified collection.
      * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - public java.util.List getBatchesBuilderList() { + public java.util.List + getBatchesBuilderList() { return getBatchesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch, - com.google.cloud.dataproc.v1.Batch.Builder, - com.google.cloud.dataproc.v1.BatchOrBuilder> + com.google.cloud.dataproc.v1.Batch, com.google.cloud.dataproc.v1.Batch.Builder, com.google.cloud.dataproc.v1.BatchOrBuilder> getBatchesFieldBuilder() { if (batchesBuilder_ == null) { - batchesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch, - com.google.cloud.dataproc.v1.Batch.Builder, - com.google.cloud.dataproc.v1.BatchOrBuilder>( - batches_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + batchesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.Batch, com.google.cloud.dataproc.v1.Batch.Builder, com.google.cloud.dataproc.v1.BatchOrBuilder>( + batches_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); batches_ = null; } return batchesBuilder_; @@ -938,21 +860,19 @@ public java.util.List getBatchesBuil private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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; @@ -961,22 +881,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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 { @@ -984,71 +903,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1058,12 +970,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListBatchesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListBatchesResponse) private static final com.google.cloud.dataproc.v1.ListBatchesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListBatchesResponse(); } @@ -1072,27 +984,27 @@ public static com.google.cloud.dataproc.v1.ListBatchesResponse getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBatchesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBatchesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1107,4 +1019,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ListBatchesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java similarity index 67% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java index bc8cc88367b2..9ff04500f122 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.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/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; -public interface ListBatchesResponseOrBuilder - extends +public interface ListBatchesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListBatchesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The batches from the specified collection.
    * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - java.util.List getBatchesList(); + java.util.List + getBatchesList(); /** - * - * *
    * The batches from the specified collection.
    * 
@@ -44,8 +25,6 @@ public interface ListBatchesResponseOrBuilder */ com.google.cloud.dataproc.v1.Batch getBatches(int index); /** - * - * *
    * The batches from the specified collection.
    * 
@@ -54,50 +33,43 @@ public interface ListBatchesResponseOrBuilder */ int getBatchesCount(); /** - * - * *
    * The batches from the specified collection.
    * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - java.util.List getBatchesOrBuilderList(); + java.util.List + getBatchesOrBuilderList(); /** - * - * *
    * The batches from the specified collection.
    * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder(int index); + com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java similarity index 75% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java index 584057526155..d3c74ace636e 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to list the clusters in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListClustersRequest} */ -public final class ListClustersRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListClustersRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListClustersRequest) ListClustersRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListClustersRequest.newBuilder() to construct. private ListClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListClustersRequest() { projectId_ = ""; region_ = ""; @@ -46,42 +28,38 @@ private ListClustersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListClustersRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListClustersRequest.class, - com.google.cloud.dataproc.v1.ListClustersRequest.Builder.class); + com.google.cloud.dataproc.v1.ListClustersRequest.class, com.google.cloud.dataproc.v1.ListClustersRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -90,30 +68,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -124,14 +102,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int REGION_FIELD_NUMBER = 4; private volatile java.lang.Object region_; /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ @java.lang.Override @@ -140,29 +115,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -173,8 +148,6 @@ public com.google.protobuf.ByteString getRegionBytes() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. A filter constraining the clusters to list. Filters are
    * case-sensitive and have the following syntax:
@@ -194,7 +167,6 @@ public com.google.protobuf.ByteString getRegionBytes() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -203,15 +175,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; } } /** - * - * *
    * Optional. A filter constraining the clusters to list. Filters are
    * case-sensitive and have the following syntax:
@@ -231,15 +202,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -250,14 +222,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. The standard List page size.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -268,14 +237,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. The standard List page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -284,29 +250,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; } } /** - * - * *
    * Optional. The standard List page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -315,7 +281,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,7 +292,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -356,7 +322,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } 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_); @@ -375,19 +342,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ListClustersRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListClustersRequest other = - (com.google.cloud.dataproc.v1.ListClustersRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) 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.dataproc.v1.ListClustersRequest other = (com.google.cloud.dataproc.v1.ListClustersRequest) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getRegion() + .equals(other.getRegion())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -414,136 +385,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ListClustersRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ListClustersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListClustersRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ListClustersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to list the clusters in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListClustersRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListClustersRequest) com.google.cloud.dataproc.v1.ListClustersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListClustersRequest.class, - com.google.cloud.dataproc.v1.ListClustersRequest.Builder.class); + com.google.cloud.dataproc.v1.ListClustersRequest.class, com.google.cloud.dataproc.v1.ListClustersRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListClustersRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -561,9 +526,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; } @java.lang.Override @@ -582,8 +547,7 @@ public com.google.cloud.dataproc.v1.ListClustersRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListClustersRequest buildPartial() { - com.google.cloud.dataproc.v1.ListClustersRequest result = - new com.google.cloud.dataproc.v1.ListClustersRequest(this); + com.google.cloud.dataproc.v1.ListClustersRequest result = new com.google.cloud.dataproc.v1.ListClustersRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.filter_ = filter_; @@ -597,39 +561,38 @@ public com.google.cloud.dataproc.v1.ListClustersRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ListClustersRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.ListClustersRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.ListClustersRequest)other); } else { super.mergeFrom(other); return this; @@ -637,8 +600,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ListClustersRequest other) { - if (other == com.google.cloud.dataproc.v1.ListClustersRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.ListClustersRequest.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -684,43 +646,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); + case 10: { + projectId_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - region_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + region_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: - { - filter_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -733,21 +689,19 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -756,22 +710,21 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -779,64 +732,57 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -844,20 +790,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object region_ = ""; /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -866,21 +810,20 @@ public java.lang.String getRegion() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -888,61 +831,54 @@ public com.google.protobuf.ByteString getRegionBytes() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion(java.lang.String value) { + public Builder setRegion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -950,8 +886,6 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. A filter constraining the clusters to list. Filters are
      * case-sensitive and have the following syntax:
@@ -971,13 +905,13 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -986,8 +920,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. A filter constraining the clusters to list. Filters are
      * case-sensitive and have the following syntax:
@@ -1007,14 +939,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1022,8 +955,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. A filter constraining the clusters to list. Filters are
      * case-sensitive and have the following syntax:
@@ -1043,22 +974,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. A filter constraining the clusters to list. Filters are
      * case-sensitive and have the following syntax:
@@ -1078,18 +1007,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. A filter constraining the clusters to list. Filters are
      * case-sensitive and have the following syntax:
@@ -1109,31 +1035,28 @@ public Builder clearFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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_ ; /** - * - * *
      * Optional. The standard List page size.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -1141,36 +1064,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The standard List page size.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The standard List page size.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1178,20 +1095,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. The standard List page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1200,21 +1115,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. The standard List page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1222,68 +1136,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. The standard List page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. The standard List page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. The standard List page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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); } @@ -1293,12 +1200,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListClustersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListClustersRequest) private static final com.google.cloud.dataproc.v1.ListClustersRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListClustersRequest(); } @@ -1307,27 +1214,27 @@ public static com.google.cloud.dataproc.v1.ListClustersRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListClustersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClustersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1342,4 +1249,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ListClustersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java similarity index 80% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java index 312d3b7c7647..5cc5dbf75769 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java @@ -1,83 +1,55 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface ListClustersRequestOrBuilder - extends +public interface ListClustersRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListClustersRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ java.lang.String getRegion(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - com.google.protobuf.ByteString getRegionBytes(); + com.google.protobuf.ByteString + getRegionBytes(); /** - * - * *
    * Optional. A filter constraining the clusters to list. Filters are
    * case-sensitive and have the following syntax:
@@ -97,13 +69,10 @@ public interface ListClustersRequestOrBuilder
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. A filter constraining the clusters to list. Filters are
    * case-sensitive and have the following syntax:
@@ -123,46 +92,38 @@ public interface ListClustersRequestOrBuilder
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. The standard List page size.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. The standard List page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. The standard List page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java index 1e7dc980e5fe..08417768e075 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * The list of all clusters in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListClustersResponse} */ -public final class ListClustersResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListClustersResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListClustersResponse) ListClustersResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListClustersResponse.newBuilder() to construct. private ListClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListClustersResponse() { clusters_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,114 +26,92 @@ private ListClustersResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListClustersResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListClustersResponse.class, - com.google.cloud.dataproc.v1.ListClustersResponse.Builder.class); + com.google.cloud.dataproc.v1.ListClustersResponse.class, com.google.cloud.dataproc.v1.ListClustersResponse.Builder.class); } public static final int CLUSTERS_FIELD_NUMBER = 1; private java.util.List clusters_; /** - * - * *
    * Output only. The clusters in the project.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getClustersList() { return clusters_; } /** - * - * *
    * Output only. The clusters in the project.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getClustersOrBuilderList() { return clusters_; } /** - * - * *
    * Output only. The clusters in the project.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getClustersCount() { return clusters_.size(); } /** - * - * *
    * Output only. The clusters in the project.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.Cluster getClusters(int index) { return clusters_.get(index); } /** - * - * *
    * Output only. The clusters in the project.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder(int index) { + public com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder( + int index) { return clusters_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Output only. This token is included in the response if there are more
    * results to fetch. To fetch additional results, provide this value as the
@@ -159,7 +119,6 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder(int in
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ @java.lang.Override @@ -168,15 +127,14 @@ 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; } } /** - * - * *
    * Output only. This token is included in the response if there are more
    * results to fetch. To fetch additional results, provide this value as the
@@ -184,15 +142,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -201,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,7 +171,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 < clusters_.size(); i++) { output.writeMessage(1, clusters_.get(i)); } @@ -230,7 +189,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < clusters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, clusters_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, clusters_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -243,16 +203,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.dataproc.v1.ListClustersResponse)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListClustersResponse other = - (com.google.cloud.dataproc.v1.ListClustersResponse) obj; + com.google.cloud.dataproc.v1.ListClustersResponse other = (com.google.cloud.dataproc.v1.ListClustersResponse) obj; - if (!getClustersList().equals(other.getClustersList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getClustersList() + .equals(other.getClustersList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -276,135 +237,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.ListClustersResponse 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.dataproc.v1.ListClustersResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ListClustersResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ListClustersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListClustersResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ListClustersResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 list of all clusters in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListClustersResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListClustersResponse) com.google.cloud.dataproc.v1.ListClustersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListClustersResponse.class, - com.google.cloud.dataproc.v1.ListClustersResponse.Builder.class); + com.google.cloud.dataproc.v1.ListClustersResponse.class, com.google.cloud.dataproc.v1.ListClustersResponse.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListClustersResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -421,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; } @java.lang.Override @@ -442,8 +397,7 @@ public com.google.cloud.dataproc.v1.ListClustersResponse build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListClustersResponse buildPartial() { - com.google.cloud.dataproc.v1.ListClustersResponse result = - new com.google.cloud.dataproc.v1.ListClustersResponse(this); + com.google.cloud.dataproc.v1.ListClustersResponse result = new com.google.cloud.dataproc.v1.ListClustersResponse(this); int from_bitField0_ = bitField0_; if (clustersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -463,39 +417,38 @@ public com.google.cloud.dataproc.v1.ListClustersResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ListClustersResponse) { - return mergeFrom((com.google.cloud.dataproc.v1.ListClustersResponse) other); + return mergeFrom((com.google.cloud.dataproc.v1.ListClustersResponse)other); } else { super.mergeFrom(other); return this; @@ -503,8 +456,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ListClustersResponse other) { - if (other == com.google.cloud.dataproc.v1.ListClustersResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.ListClustersResponse.getDefaultInstance()) return this; if (clustersBuilder_ == null) { if (!other.clusters_.isEmpty()) { if (clusters_.isEmpty()) { @@ -523,10 +475,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ListClustersResponse other clustersBuilder_ = null; clusters_ = other.clusters_; bitField0_ = (bitField0_ & ~0x00000001); - clustersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getClustersFieldBuilder() - : null; + clustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getClustersFieldBuilder() : null; } else { clustersBuilder_.addAllMessages(other.clusters_); } @@ -562,32 +513,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.dataproc.v1.Cluster m = - input.readMessage( - com.google.cloud.dataproc.v1.Cluster.parser(), extensionRegistry); - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.add(m); - } else { - clustersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.dataproc.v1.Cluster m = + input.readMessage( + com.google.cloud.dataproc.v1.Cluster.parser(), + extensionRegistry); + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.add(m); + } else { + clustersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -597,35 +546,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List clusters_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureClustersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { clusters_ = new java.util.ArrayList(clusters_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, - com.google.cloud.dataproc.v1.Cluster.Builder, - com.google.cloud.dataproc.v1.ClusterOrBuilder> - clustersBuilder_; + com.google.cloud.dataproc.v1.Cluster, com.google.cloud.dataproc.v1.Cluster.Builder, com.google.cloud.dataproc.v1.ClusterOrBuilder> clustersBuilder_; /** - * - * *
      * Output only. The clusters in the project.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getClustersList() { if (clustersBuilder_ == null) { @@ -635,15 +575,11 @@ public java.util.List getClustersList() { } } /** - * - * *
      * Output only. The clusters in the project.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getClustersCount() { if (clustersBuilder_ == null) { @@ -653,15 +589,11 @@ public int getClustersCount() { } } /** - * - * *
      * Output only. The clusters in the project.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.Cluster getClusters(int index) { if (clustersBuilder_ == null) { @@ -671,17 +603,14 @@ public com.google.cloud.dataproc.v1.Cluster getClusters(int index) { } } /** - * - * *
      * Output only. The clusters in the project.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setClusters(int index, com.google.cloud.dataproc.v1.Cluster value) { + public Builder setClusters( + int index, com.google.cloud.dataproc.v1.Cluster value) { if (clustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -695,15 +624,11 @@ public Builder setClusters(int index, com.google.cloud.dataproc.v1.Cluster value return this; } /** - * - * *
      * Output only. The clusters in the project.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setClusters( int index, com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { @@ -717,15 +642,11 @@ public Builder setClusters( return this; } /** - * - * *
      * Output only. The clusters in the project.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addClusters(com.google.cloud.dataproc.v1.Cluster value) { if (clustersBuilder_ == null) { @@ -741,17 +662,14 @@ public Builder addClusters(com.google.cloud.dataproc.v1.Cluster value) { return this; } /** - * - * *
      * Output only. The clusters in the project.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addClusters(int index, com.google.cloud.dataproc.v1.Cluster value) { + public Builder addClusters( + int index, com.google.cloud.dataproc.v1.Cluster value) { if (clustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -765,17 +683,14 @@ public Builder addClusters(int index, com.google.cloud.dataproc.v1.Cluster value return this; } /** - * - * *
      * Output only. The clusters in the project.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addClusters(com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { + public Builder addClusters( + com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); clusters_.add(builderForValue.build()); @@ -786,15 +701,11 @@ public Builder addClusters(com.google.cloud.dataproc.v1.Cluster.Builder builderF return this; } /** - * - * *
      * Output only. The clusters in the project.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addClusters( int index, com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { @@ -808,21 +719,18 @@ public Builder addClusters( return this; } /** - * - * *
      * Output only. The clusters in the project.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllClusters( java.lang.Iterable values) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, clusters_); onChanged(); } else { clustersBuilder_.addAllMessages(values); @@ -830,15 +738,11 @@ public Builder addAllClusters( return this; } /** - * - * *
      * Output only. The clusters in the project.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearClusters() { if (clustersBuilder_ == null) { @@ -851,15 +755,11 @@ public Builder clearClusters() { return this; } /** - * - * *
      * Output only. The clusters in the project.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeClusters(int index) { if (clustersBuilder_ == null) { @@ -872,50 +772,39 @@ public Builder removeClusters(int index) { return this; } /** - * - * *
      * Output only. The clusters in the project.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.Cluster.Builder getClustersBuilder(int index) { + public com.google.cloud.dataproc.v1.Cluster.Builder getClustersBuilder( + int index) { return getClustersFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. The clusters in the project.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder(int index) { + public com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder( + int index) { if (clustersBuilder_ == null) { - return clusters_.get(index); - } else { + return clusters_.get(index); } else { return clustersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. The clusters in the project.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getClustersOrBuilderList() { + public java.util.List + getClustersOrBuilderList() { if (clustersBuilder_ != null) { return clustersBuilder_.getMessageOrBuilderList(); } else { @@ -923,62 +812,49 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder(int in } } /** - * - * *
      * Output only. The clusters in the project.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.Cluster.Builder addClustersBuilder() { - return getClustersFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.Cluster.getDefaultInstance()); + return getClustersFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.Cluster.getDefaultInstance()); } /** - * - * *
      * Output only. The clusters in the project.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.Cluster.Builder addClustersBuilder(int index) { - return getClustersFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.Cluster.getDefaultInstance()); + public com.google.cloud.dataproc.v1.Cluster.Builder addClustersBuilder( + int index) { + return getClustersFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.Cluster.getDefaultInstance()); } /** - * - * *
      * Output only. The clusters in the project.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getClustersBuilderList() { + public java.util.List + getClustersBuilderList() { return getClustersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, - com.google.cloud.dataproc.v1.Cluster.Builder, - com.google.cloud.dataproc.v1.ClusterOrBuilder> + com.google.cloud.dataproc.v1.Cluster, com.google.cloud.dataproc.v1.Cluster.Builder, com.google.cloud.dataproc.v1.ClusterOrBuilder> getClustersFieldBuilder() { if (clustersBuilder_ == null) { - clustersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, - com.google.cloud.dataproc.v1.Cluster.Builder, - com.google.cloud.dataproc.v1.ClusterOrBuilder>( - clusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + clustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.Cluster, com.google.cloud.dataproc.v1.Cluster.Builder, com.google.cloud.dataproc.v1.ClusterOrBuilder>( + clusters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); clusters_ = null; } return clustersBuilder_; @@ -986,8 +862,6 @@ public java.util.List getClustersB private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -995,13 +869,13 @@ public java.util.List getClustersB
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1010,8 +884,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -1019,14 +891,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1034,8 +907,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -1043,22 +914,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; } /** - * - * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -1066,18 +935,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -1085,23 +951,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1111,12 +977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListClustersResponse) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListClustersResponse) private static final com.google.cloud.dataproc.v1.ListClustersResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListClustersResponse(); } @@ -1125,27 +991,27 @@ public static com.google.cloud.dataproc.v1.ListClustersResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListClustersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClustersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1160,4 +1026,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ListClustersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java similarity index 53% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java index d3593d13021c..7f991d460622 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java @@ -1,93 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface ListClustersResponseOrBuilder - extends +public interface ListClustersResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListClustersResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The clusters in the project.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getClustersList(); + java.util.List + getClustersList(); /** - * - * *
    * Output only. The clusters in the project.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.Cluster getClusters(int index); /** - * - * *
    * Output only. The clusters in the project.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getClustersCount(); /** - * - * *
    * Output only. The clusters in the project.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getClustersOrBuilderList(); /** - * - * *
    * Output only. The clusters in the project.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder(int index); + com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder( + int index); /** - * - * *
    * Output only. This token is included in the response if there are more
    * results to fetch. To fetch additional results, provide this value as the
@@ -95,13 +59,10 @@ public interface ListClustersResponseOrBuilder
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Output only. This token is included in the response if there are more
    * results to fetch. To fetch additional results, provide this value as the
@@ -109,8 +70,8 @@ public interface ListClustersResponseOrBuilder
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java similarity index 73% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java index 340a4ecc3189..43a5c2e85e85 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to list jobs in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.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() { projectId_ = ""; region_ = ""; @@ -48,43 +30,39 @@ private ListJobsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListJobsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListJobsRequest.class, - com.google.cloud.dataproc.v1.ListJobsRequest.Builder.class); + com.google.cloud.dataproc.v1.ListJobsRequest.class, com.google.cloud.dataproc.v1.ListJobsRequest.Builder.class); } /** - * - * *
    * A matcher that specifies categories of job states.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher} */ - public enum JobStateMatcher implements com.google.protobuf.ProtocolMessageEnum { + public enum JobStateMatcher + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Match all jobs, regardless of state.
      * 
@@ -93,8 +71,6 @@ public enum JobStateMatcher implements com.google.protobuf.ProtocolMessageEnum { */ ALL(0), /** - * - * *
      * Only match jobs in non-terminal states: PENDING, RUNNING, or
      * CANCEL_PENDING.
@@ -104,8 +80,6 @@ public enum JobStateMatcher implements com.google.protobuf.ProtocolMessageEnum {
      */
     ACTIVE(1),
     /**
-     *
-     *
      * 
      * Only match jobs in terminal states: CANCELLED, DONE, or ERROR.
      * 
@@ -117,8 +91,6 @@ public enum JobStateMatcher implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Match all jobs, regardless of state.
      * 
@@ -127,8 +99,6 @@ public enum JobStateMatcher implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALL_VALUE = 0; /** - * - * *
      * Only match jobs in non-terminal states: PENDING, RUNNING, or
      * CANCEL_PENDING.
@@ -138,8 +108,6 @@ public enum JobStateMatcher implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ACTIVE_VALUE = 1;
     /**
-     *
-     *
      * 
      * Only match jobs in terminal states: CANCELLED, DONE, or ERROR.
      * 
@@ -148,6 +116,7 @@ public enum JobStateMatcher implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NON_ACTIVE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -172,42 +141,39 @@ public static JobStateMatcher valueOf(int value) { */ public static JobStateMatcher forNumber(int value) { switch (value) { - case 0: - return ALL; - case 1: - return ACTIVE; - case 2: - return NON_ACTIVE; - default: - return null; + case 0: return ALL; + case 1: return ACTIVE; + case 2: return NON_ACTIVE; + 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< + JobStateMatcher> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobStateMatcher findValueByNumber(int number) { + return JobStateMatcher.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public JobStateMatcher findValueByNumber(int number) { - return JobStateMatcher.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.dataproc.v1.ListJobsRequest.getDescriptor().getEnumTypes().get(0); } @@ -216,7 +182,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static JobStateMatcher 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; @@ -236,15 +203,12 @@ private JobStateMatcher(int value) { public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -253,30 +217,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -287,14 +251,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int REGION_FIELD_NUMBER = 6; private volatile java.lang.Object region_; /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ @java.lang.Override @@ -303,29 +264,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -336,14 +297,11 @@ public com.google.protobuf.ByteString getRegionBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. The number of results to return in each response.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -354,15 +312,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -371,30 +326,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -405,15 +360,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int CLUSTER_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object clusterName_; /** - * - * *
    * Optional. If set, the returned jobs list includes only jobs that were
    * submitted to the named cluster.
    * 
* * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The clusterName. */ @java.lang.Override @@ -422,30 +374,30 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** - * - * *
    * Optional. If set, the returned jobs list includes only jobs that were
    * submitted to the named cluster.
    * 
* * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -456,54 +408,37 @@ public com.google.protobuf.ByteString getClusterNameBytes() { public static final int JOB_STATE_MATCHER_FIELD_NUMBER = 5; private int jobStateMatcher_; /** - * - * *
    * Optional. Specifies enumerated categories of jobs to list.
    * (default = match ALL jobs).
    * If `filter` is provided, `jobStateMatcher` will be ignored.
    * 
* - * - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for jobStateMatcher. */ - @java.lang.Override - public int getJobStateMatcherValue() { + @java.lang.Override public int getJobStateMatcherValue() { return jobStateMatcher_; } /** - * - * *
    * Optional. Specifies enumerated categories of jobs to list.
    * (default = match ALL jobs).
    * If `filter` is provided, `jobStateMatcher` will be ignored.
    * 
* - * - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The jobStateMatcher. */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher getJobStateMatcher() { + @java.lang.Override public com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher getJobStateMatcher() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher result = - com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.valueOf(jobStateMatcher_); - return result == null - ? com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher result = com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.valueOf(jobStateMatcher_); + return result == null ? com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.UNRECOGNIZED : result; } public static final int FILTER_FIELD_NUMBER = 7; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. A filter constraining the jobs to list. Filters are
    * case-sensitive and have the following syntax:
@@ -518,7 +453,6 @@ public com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher getJobStateM
    * 
* * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -527,15 +461,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; } } /** - * - * *
    * Optional. A filter constraining the jobs to list. Filters are
    * case-sensitive and have the following syntax:
@@ -550,15 +483,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -567,7 +501,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -579,7 +512,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -592,8 +526,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterName_); } - if (jobStateMatcher_ - != com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.ALL.getNumber()) { + if (jobStateMatcher_ != com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.ALL.getNumber()) { output.writeEnum(5, jobStateMatcher_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { @@ -615,7 +548,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } 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_); @@ -623,9 +557,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterName_); } - if (jobStateMatcher_ - != com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.ALL.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, jobStateMatcher_); + if (jobStateMatcher_ != com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.ALL.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, jobStateMatcher_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, region_); @@ -641,21 +575,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.dataproc.v1.ListJobsRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListJobsRequest other = - (com.google.cloud.dataproc.v1.ListJobsRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; + com.google.cloud.dataproc.v1.ListJobsRequest other = (com.google.cloud.dataproc.v1.ListJobsRequest) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getRegion() + .equals(other.getRegion())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getClusterName() + .equals(other.getClusterName())) return false; if (jobStateMatcher_ != other.jobStateMatcher_) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -686,136 +625,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ListJobsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ListJobsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.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.dataproc.v1.ListJobsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.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.dataproc.v1.ListJobsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.v1.ListJobsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ListJobsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.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; } /** - * - * *
    * A request to list jobs in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.v1.ListJobsRequest) com.google.cloud.dataproc.v1.ListJobsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListJobsRequest.class, - com.google.cloud.dataproc.v1.ListJobsRequest.Builder.class); + com.google.cloud.dataproc.v1.ListJobsRequest.class, com.google.cloud.dataproc.v1.ListJobsRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListJobsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -837,9 +770,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; } @java.lang.Override @@ -858,8 +791,7 @@ public com.google.cloud.dataproc.v1.ListJobsRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListJobsRequest buildPartial() { - com.google.cloud.dataproc.v1.ListJobsRequest result = - new com.google.cloud.dataproc.v1.ListJobsRequest(this); + com.google.cloud.dataproc.v1.ListJobsRequest result = new com.google.cloud.dataproc.v1.ListJobsRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.pageSize_ = pageSize_; @@ -875,39 +807,38 @@ public com.google.cloud.dataproc.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.dataproc.v1.ListJobsRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.ListJobsRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.ListJobsRequest)other); } else { super.mergeFrom(other); return this; @@ -968,55 +899,47 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 40: - { - jobStateMatcher_ = input.readEnum(); - - break; - } // case 40 - case 50: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: - { - filter_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: { + jobStateMatcher_ = input.readEnum(); + + break; + } // case 40 + case 50: { + region_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1029,21 +952,19 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1052,22 +973,21 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -1075,64 +995,57 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1140,20 +1053,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object region_ = ""; /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -1162,21 +1073,20 @@ public java.lang.String getRegion() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -1184,76 +1094,66 @@ public com.google.protobuf.ByteString getRegionBytes() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion(java.lang.String value) { + public Builder setRegion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The number of results to return in each response.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -1261,36 +1161,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The number of results to return in each response.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The number of results to return in each response.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1298,21 +1192,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1321,22 +1213,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1344,64 +1235,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1409,21 +1293,19 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object clusterName_ = ""; /** - * - * *
      * Optional. If set, the returned jobs list includes only jobs that were
      * submitted to the named cluster.
      * 
* * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -1432,22 +1314,21 @@ public java.lang.String getClusterName() { } } /** - * - * *
      * Optional. If set, the returned jobs list includes only jobs that were
      * submitted to the named cluster.
      * 
* * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -1455,64 +1336,57 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } } /** - * - * *
      * Optional. If set, the returned jobs list includes only jobs that were
      * submitted to the named cluster.
      * 
* * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName(java.lang.String value) { + public Builder setClusterName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** - * - * *
      * Optional. If set, the returned jobs list includes only jobs that were
      * submitted to the named cluster.
      * 
* * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** - * - * *
      * Optional. If set, the returned jobs list includes only jobs that were
      * submitted to the named cluster.
      * 
* * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1520,113 +1394,83 @@ public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { private int jobStateMatcher_ = 0; /** - * - * *
      * Optional. Specifies enumerated categories of jobs to list.
      * (default = match ALL jobs).
      * If `filter` is provided, `jobStateMatcher` will be ignored.
      * 
* - * - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for jobStateMatcher. */ - @java.lang.Override - public int getJobStateMatcherValue() { + @java.lang.Override public int getJobStateMatcherValue() { return jobStateMatcher_; } /** - * - * *
      * Optional. Specifies enumerated categories of jobs to list.
      * (default = match ALL jobs).
      * If `filter` is provided, `jobStateMatcher` will be ignored.
      * 
* - * - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for jobStateMatcher to set. * @return This builder for chaining. */ public Builder setJobStateMatcherValue(int value) { - + jobStateMatcher_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Specifies enumerated categories of jobs to list.
      * (default = match ALL jobs).
      * If `filter` is provided, `jobStateMatcher` will be ignored.
      * 
* - * - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The jobStateMatcher. */ @java.lang.Override public com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher getJobStateMatcher() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher result = - com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.valueOf(jobStateMatcher_); - return result == null - ? com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher result = com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.valueOf(jobStateMatcher_); + return result == null ? com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Specifies enumerated categories of jobs to list.
      * (default = match ALL jobs).
      * If `filter` is provided, `jobStateMatcher` will be ignored.
      * 
* - * - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param value The jobStateMatcher to set. * @return This builder for chaining. */ - public Builder setJobStateMatcher( - com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher value) { + public Builder setJobStateMatcher(com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher value) { if (value == null) { throw new NullPointerException(); } - + jobStateMatcher_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. Specifies enumerated categories of jobs to list.
      * (default = match ALL jobs).
      * If `filter` is provided, `jobStateMatcher` will be ignored.
      * 
* - * - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearJobStateMatcher() { - + jobStateMatcher_ = 0; onChanged(); return this; @@ -1634,8 +1478,6 @@ public Builder clearJobStateMatcher() { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. A filter constraining the jobs to list. Filters are
      * case-sensitive and have the following syntax:
@@ -1650,13 +1492,13 @@ public Builder clearJobStateMatcher() {
      * 
* * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1665,8 +1507,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. A filter constraining the jobs to list. Filters are
      * case-sensitive and have the following syntax:
@@ -1681,14 +1521,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1696,8 +1537,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. A filter constraining the jobs to list. Filters are
      * case-sensitive and have the following syntax:
@@ -1712,22 +1551,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. A filter constraining the jobs to list. Filters are
      * case-sensitive and have the following syntax:
@@ -1742,18 +1579,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. A filter constraining the jobs to list. Filters are
      * case-sensitive and have the following syntax:
@@ -1768,23 +1602,23 @@ public Builder clearFilter() {
      * 
* * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1794,12 +1628,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListJobsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListJobsRequest) private static final com.google.cloud.dataproc.v1.ListJobsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListJobsRequest(); } @@ -1808,27 +1642,27 @@ public static com.google.cloud.dataproc.v1.ListJobsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListJobsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1843,4 +1677,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ListJobsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java similarity index 77% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java index f2f3c5f006ff..9551c3257945 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java @@ -1,183 +1,132 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface ListJobsRequestOrBuilder - extends +public interface ListJobsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListJobsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ java.lang.String getRegion(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - com.google.protobuf.ByteString getRegionBytes(); + com.google.protobuf.ByteString + getRegionBytes(); /** - * - * *
    * Optional. The number of results to return in each response.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. If set, the returned jobs list includes only jobs that were
    * submitted to the named cluster.
    * 
* * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The clusterName. */ java.lang.String getClusterName(); /** - * - * *
    * Optional. If set, the returned jobs list includes only jobs that were
    * submitted to the named cluster.
    * 
* * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString getClusterNameBytes(); + com.google.protobuf.ByteString + getClusterNameBytes(); /** - * - * *
    * Optional. Specifies enumerated categories of jobs to list.
    * (default = match ALL jobs).
    * If `filter` is provided, `jobStateMatcher` will be ignored.
    * 
* - * - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for jobStateMatcher. */ int getJobStateMatcherValue(); /** - * - * *
    * Optional. Specifies enumerated categories of jobs to list.
    * (default = match ALL jobs).
    * If `filter` is provided, `jobStateMatcher` will be ignored.
    * 
* - * - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The jobStateMatcher. */ com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher getJobStateMatcher(); /** - * - * *
    * Optional. A filter constraining the jobs to list. Filters are
    * case-sensitive and have the following syntax:
@@ -192,13 +141,10 @@ public interface ListJobsRequestOrBuilder
    * 
* * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. A filter constraining the jobs to list. Filters are
    * case-sensitive and have the following syntax:
@@ -213,8 +159,8 @@ public interface ListJobsRequestOrBuilder
    * 
* * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java similarity index 64% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java index 9705d25e5402..4a3717504438 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A list of jobs in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.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_ = ""; @@ -44,114 +26,92 @@ private ListJobsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListJobsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListJobsResponse.class, - com.google.cloud.dataproc.v1.ListJobsResponse.Builder.class); + com.google.cloud.dataproc.v1.ListJobsResponse.class, com.google.cloud.dataproc.v1.ListJobsResponse.Builder.class); } public static final int JOBS_FIELD_NUMBER = 1; private java.util.List jobs_; /** - * - * *
    * Output only. Jobs list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getJobsList() { return jobs_; } /** - * - * *
    * Output only. Jobs list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getJobsOrBuilderList() { return jobs_; } /** - * - * *
    * Output only. Jobs list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getJobsCount() { return jobs_.size(); } /** - * - * *
    * Output only. Jobs list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.Job getJobs(int index) { return jobs_.get(index); } /** - * - * *
    * Output only. Jobs list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder(int index) { + public com.google.cloud.dataproc.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_; /** - * - * *
    * Optional. This token is included in the response if there are more results
    * to fetch. To fetch additional results, provide this value as the
@@ -159,7 +119,6 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder(int index) {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The nextPageToken. */ @java.lang.Override @@ -168,15 +127,14 @@ 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; } } /** - * - * *
    * Optional. This token is included in the response if there are more results
    * to fetch. To fetch additional results, provide this value as the
@@ -184,15 +142,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -201,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,7 +171,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)); } @@ -230,7 +189,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_); @@ -243,16 +203,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.dataproc.v1.ListJobsResponse)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListJobsResponse other = - (com.google.cloud.dataproc.v1.ListJobsResponse) obj; + com.google.cloud.dataproc.v1.ListJobsResponse other = (com.google.cloud.dataproc.v1.ListJobsResponse) obj; - if (!getJobsList().equals(other.getJobsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getJobsList() + .equals(other.getJobsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,136 +236,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ListJobsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ListJobsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.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.dataproc.v1.ListJobsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.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.dataproc.v1.ListJobsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.v1.ListJobsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ListJobsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.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; } /** - * - * *
    * A list of jobs in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.v1.ListJobsResponse) com.google.cloud.dataproc.v1.ListJobsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListJobsResponse.class, - com.google.cloud.dataproc.v1.ListJobsResponse.Builder.class); + com.google.cloud.dataproc.v1.ListJobsResponse.class, com.google.cloud.dataproc.v1.ListJobsResponse.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListJobsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -421,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; } @java.lang.Override @@ -442,8 +397,7 @@ public com.google.cloud.dataproc.v1.ListJobsResponse build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListJobsResponse buildPartial() { - com.google.cloud.dataproc.v1.ListJobsResponse result = - new com.google.cloud.dataproc.v1.ListJobsResponse(this); + com.google.cloud.dataproc.v1.ListJobsResponse result = new com.google.cloud.dataproc.v1.ListJobsResponse(this); int from_bitField0_ = bitField0_; if (jobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -463,39 +417,38 @@ public com.google.cloud.dataproc.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.dataproc.v1.ListJobsResponse) { - return mergeFrom((com.google.cloud.dataproc.v1.ListJobsResponse) other); + return mergeFrom((com.google.cloud.dataproc.v1.ListJobsResponse)other); } else { super.mergeFrom(other); return this; @@ -522,10 +475,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.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_); } @@ -561,31 +513,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.dataproc.v1.Job m = - input.readMessage(com.google.cloud.dataproc.v1.Job.parser(), extensionRegistry); - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.add(m); - } else { - jobsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.dataproc.v1.Job m = + input.readMessage( + com.google.cloud.dataproc.v1.Job.parser(), + extensionRegistry); + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(m); + } else { + jobsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -595,35 +546,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List jobs_ = - java.util.Collections.emptyList(); - + 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.dataproc.v1.Job, - com.google.cloud.dataproc.v1.Job.Builder, - com.google.cloud.dataproc.v1.JobOrBuilder> - jobsBuilder_; + com.google.cloud.dataproc.v1.Job, com.google.cloud.dataproc.v1.Job.Builder, com.google.cloud.dataproc.v1.JobOrBuilder> jobsBuilder_; /** - * - * *
      * Output only. Jobs list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getJobsList() { if (jobsBuilder_ == null) { @@ -633,15 +575,11 @@ public java.util.List getJobsList() { } } /** - * - * *
      * Output only. Jobs list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getJobsCount() { if (jobsBuilder_ == null) { @@ -651,15 +589,11 @@ public int getJobsCount() { } } /** - * - * *
      * Output only. Jobs list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.Job getJobs(int index) { if (jobsBuilder_ == null) { @@ -669,17 +603,14 @@ public com.google.cloud.dataproc.v1.Job getJobs(int index) { } } /** - * - * *
      * Output only. Jobs list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setJobs(int index, com.google.cloud.dataproc.v1.Job value) { + public Builder setJobs( + int index, com.google.cloud.dataproc.v1.Job value) { if (jobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -693,17 +624,14 @@ public Builder setJobs(int index, com.google.cloud.dataproc.v1.Job value) { return this; } /** - * - * *
      * Output only. Jobs list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setJobs(int index, com.google.cloud.dataproc.v1.Job.Builder builderForValue) { + public Builder setJobs( + int index, com.google.cloud.dataproc.v1.Job.Builder builderForValue) { if (jobsBuilder_ == null) { ensureJobsIsMutable(); jobs_.set(index, builderForValue.build()); @@ -714,15 +642,11 @@ public Builder setJobs(int index, com.google.cloud.dataproc.v1.Job.Builder build return this; } /** - * - * *
      * Output only. Jobs list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addJobs(com.google.cloud.dataproc.v1.Job value) { if (jobsBuilder_ == null) { @@ -738,17 +662,14 @@ public Builder addJobs(com.google.cloud.dataproc.v1.Job value) { return this; } /** - * - * *
      * Output only. Jobs list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addJobs(int index, com.google.cloud.dataproc.v1.Job value) { + public Builder addJobs( + int index, com.google.cloud.dataproc.v1.Job value) { if (jobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -762,17 +683,14 @@ public Builder addJobs(int index, com.google.cloud.dataproc.v1.Job value) { return this; } /** - * - * *
      * Output only. Jobs list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addJobs(com.google.cloud.dataproc.v1.Job.Builder builderForValue) { + public Builder addJobs( + com.google.cloud.dataproc.v1.Job.Builder builderForValue) { if (jobsBuilder_ == null) { ensureJobsIsMutable(); jobs_.add(builderForValue.build()); @@ -783,17 +701,14 @@ public Builder addJobs(com.google.cloud.dataproc.v1.Job.Builder builderForValue) return this; } /** - * - * *
      * Output only. Jobs list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addJobs(int index, com.google.cloud.dataproc.v1.Job.Builder builderForValue) { + public Builder addJobs( + int index, com.google.cloud.dataproc.v1.Job.Builder builderForValue) { if (jobsBuilder_ == null) { ensureJobsIsMutable(); jobs_.add(index, builderForValue.build()); @@ -804,21 +719,18 @@ public Builder addJobs(int index, com.google.cloud.dataproc.v1.Job.Builder build return this; } /** - * - * *
      * Output only. Jobs list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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); @@ -826,15 +738,11 @@ public Builder addAllJobs( return this; } /** - * - * *
      * Output only. Jobs list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearJobs() { if (jobsBuilder_ == null) { @@ -847,15 +755,11 @@ public Builder clearJobs() { return this; } /** - * - * *
      * Output only. Jobs list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeJobs(int index) { if (jobsBuilder_ == null) { @@ -868,50 +772,39 @@ public Builder removeJobs(int index) { return this; } /** - * - * *
      * Output only. Jobs list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.Job.Builder getJobsBuilder(int index) { + public com.google.cloud.dataproc.v1.Job.Builder getJobsBuilder( + int index) { return getJobsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Jobs list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder(int index) { + public com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder( + int index) { if (jobsBuilder_ == null) { - return jobs_.get(index); - } else { + return jobs_.get(index); } else { return jobsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Jobs list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getJobsOrBuilderList() { + public java.util.List + getJobsOrBuilderList() { if (jobsBuilder_ != null) { return jobsBuilder_.getMessageOrBuilderList(); } else { @@ -919,62 +812,49 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder(int index) { } } /** - * - * *
      * Output only. Jobs list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.Job.Builder addJobsBuilder() { - return getJobsFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.Job.getDefaultInstance()); + return getJobsFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.Job.getDefaultInstance()); } /** - * - * *
      * Output only. Jobs list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.Job.Builder addJobsBuilder(int index) { - return getJobsFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.Job.getDefaultInstance()); + public com.google.cloud.dataproc.v1.Job.Builder addJobsBuilder( + int index) { + return getJobsFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.Job.getDefaultInstance()); } /** - * - * *
      * Output only. Jobs list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getJobsBuilderList() { + public java.util.List + getJobsBuilderList() { return getJobsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, - com.google.cloud.dataproc.v1.Job.Builder, - com.google.cloud.dataproc.v1.JobOrBuilder> + com.google.cloud.dataproc.v1.Job, com.google.cloud.dataproc.v1.Job.Builder, com.google.cloud.dataproc.v1.JobOrBuilder> getJobsFieldBuilder() { if (jobsBuilder_ == null) { - jobsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, - com.google.cloud.dataproc.v1.Job.Builder, - com.google.cloud.dataproc.v1.JobOrBuilder>( - jobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + jobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.Job, com.google.cloud.dataproc.v1.Job.Builder, com.google.cloud.dataproc.v1.JobOrBuilder>( + jobs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); jobs_ = null; } return jobsBuilder_; @@ -982,8 +862,6 @@ public java.util.List getJobsBuilderLi private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Optional. This token is included in the response if there are more results
      * to fetch. To fetch additional results, provide this value as the
@@ -991,13 +869,13 @@ public java.util.List getJobsBuilderLi
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1006,8 +884,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Optional. This token is included in the response if there are more results
      * to fetch. To fetch additional results, provide this value as the
@@ -1015,14 +891,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1030,8 +907,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Optional. This token is included in the response if there are more results
      * to fetch. To fetch additional results, provide this value as the
@@ -1039,22 +914,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. This token is included in the response if there are more results
      * to fetch. To fetch additional results, provide this value as the
@@ -1062,18 +935,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. This token is included in the response if there are more results
      * to fetch. To fetch additional results, provide this value as the
@@ -1081,23 +951,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1107,12 +977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListJobsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListJobsResponse) private static final com.google.cloud.dataproc.v1.ListJobsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListJobsResponse(); } @@ -1121,27 +991,27 @@ public static com.google.cloud.dataproc.v1.ListJobsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListJobsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1156,4 +1026,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ListJobsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java similarity index 50% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java index 4da048ec6846..896937b805e9 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java @@ -1,92 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface ListJobsResponseOrBuilder - extends +public interface ListJobsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListJobsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Jobs list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getJobsList(); + java.util.List + getJobsList(); /** - * - * *
    * Output only. Jobs list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.Job getJobs(int index); /** - * - * *
    * Output only. Jobs list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getJobsCount(); /** - * - * *
    * Output only. Jobs list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getJobsOrBuilderList(); + java.util.List + getJobsOrBuilderList(); /** - * - * *
    * Output only. Jobs list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder(int index); + com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder( + int index); /** - * - * *
    * Optional. This token is included in the response if there are more results
    * to fetch. To fetch additional results, provide this value as the
@@ -94,13 +59,10 @@ public interface ListJobsResponseOrBuilder
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Optional. This token is included in the response if there are more results
    * to fetch. To fetch additional results, provide this value as the
@@ -108,8 +70,8 @@ public interface ListJobsResponseOrBuilder
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java index 3faf421b58b5..f84efbc9020e 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to list workflow templates in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListWorkflowTemplatesRequest} */ -public final class ListWorkflowTemplatesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkflowTemplatesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) ListWorkflowTemplatesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkflowTemplatesRequest.newBuilder() to construct. private ListWorkflowTemplatesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkflowTemplatesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,35 +26,32 @@ private ListWorkflowTemplatesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkflowTemplatesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.class, - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.Builder.class); + com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.class, com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -84,10 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `projects/{project_id}/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 @@ -96,15 +72,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -116,18 +91,17 @@ public java.lang.String getParent() {
    *   `projects/{project_id}/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 { @@ -138,14 +112,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. The maximum number of results to return in each response.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -156,15 +127,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -173,30 +141,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -205,7 +173,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,7 +184,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_); } @@ -240,7 +208,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_); @@ -253,17 +222,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.dataproc.v1.ListWorkflowTemplatesRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest other = - (com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) obj; + com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest other = (com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -287,136 +258,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest 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.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to list workflow templates in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListWorkflowTemplatesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.class, - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.Builder.class); + com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.class, com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -430,9 +394,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; } @java.lang.Override @@ -451,8 +415,7 @@ public com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest buildPartial() { - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest result = - new com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest(this); + com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest result = new com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -464,39 +427,38 @@ public com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest)other); } else { super.mergeFrom(other); return this; @@ -504,8 +466,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest other) { - if (other == com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -543,31 +504,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -580,8 +537,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -593,16 +548,14 @@ public Builder mergeFrom(
      *   `projects/{project_id}/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; @@ -611,8 +564,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -624,17 +575,16 @@ public java.lang.String getParent() {
      *   `projects/{project_id}/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 { @@ -642,8 +592,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -655,25 +603,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      *   `projects/{project_id}/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 resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -685,21 +629,16 @@ public Builder setParent(java.lang.String value) {
      *   `projects/{project_id}/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 resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -711,34 +650,29 @@ public Builder clearParent() {
      *   `projects/{project_id}/locations/{location}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to return in each response.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -746,36 +680,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return in each response.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The maximum number of results to return in each response.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -783,21 +711,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -806,22 +732,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -829,71 +754,64 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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); } @@ -903,12 +821,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) private static final com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest(); } @@ -917,27 +835,27 @@ public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkflowTemplatesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkflowTemplatesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -952,4 +870,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.java similarity index 66% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.java index 91656df417ed..342476b790ee 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface ListWorkflowTemplatesRequestOrBuilder - extends +public interface ListWorkflowTemplatesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -37,16 +19,11 @@ public interface ListWorkflowTemplatesRequestOrBuilder
    *   `projects/{project_id}/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 resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -58,51 +35,41 @@ public interface ListWorkflowTemplatesRequestOrBuilder
    *   `projects/{project_id}/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(); /** - * - * *
    * Optional. The maximum number of results to return in each response.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java index cc8f1dbf23ee..2154feb1ce99 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A response to a request to list workflow templates in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListWorkflowTemplatesResponse} */ -public final class ListWorkflowTemplatesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkflowTemplatesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) ListWorkflowTemplatesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkflowTemplatesResponse.newBuilder() to construct. private ListWorkflowTemplatesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkflowTemplatesResponse() { templates_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,114 +26,92 @@ private ListWorkflowTemplatesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkflowTemplatesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.class, - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.Builder.class); + com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.class, com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.Builder.class); } public static final int TEMPLATES_FIELD_NUMBER = 1; private java.util.List templates_; /** - * - * *
    * Output only. WorkflowTemplates list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getTemplatesList() { return templates_; } /** - * - * *
    * Output only. WorkflowTemplates list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getTemplatesOrBuilderList() { return templates_; } /** - * - * *
    * Output only. WorkflowTemplates list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getTemplatesCount() { return templates_.size(); } /** - * - * *
    * Output only. WorkflowTemplates list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplates(int index) { return templates_.get(index); } /** - * - * *
    * Output only. WorkflowTemplates list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuilder(int index) { + public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuilder( + int index) { return templates_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Output only. This token is included in the response if there are more
    * results to fetch. To fetch additional results, provide this value as the
@@ -159,7 +119,6 @@ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuil
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ @java.lang.Override @@ -168,15 +127,14 @@ 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; } } /** - * - * *
    * Output only. This token is included in the response if there are more
    * results to fetch. To fetch additional results, provide this value as the
@@ -184,15 +142,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -201,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,7 +171,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 < templates_.size(); i++) { output.writeMessage(1, templates_.get(i)); } @@ -230,7 +189,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < templates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, templates_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, templates_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -243,16 +203,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.dataproc.v1.ListWorkflowTemplatesResponse)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse other = - (com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) obj; + com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse other = (com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) obj; - if (!getTemplatesList().equals(other.getTemplatesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getTemplatesList() + .equals(other.getTemplatesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -276,136 +237,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse 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.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 response to a request to list workflow templates in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListWorkflowTemplatesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.class, - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.Builder.class); + com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.class, com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; } @java.lang.Override @@ -443,8 +397,7 @@ public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse buildPartial() { - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse result = - new com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse(this); + com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse result = new com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse(this); int from_bitField0_ = bitField0_; if (templatesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -464,39 +417,38 @@ public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) { - return mergeFrom((com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) other); + return mergeFrom((com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse)other); } else { super.mergeFrom(other); return this; @@ -504,8 +456,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse other) { - if (other == com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.getDefaultInstance()) return this; if (templatesBuilder_ == null) { if (!other.templates_.isEmpty()) { if (templates_.isEmpty()) { @@ -524,10 +475,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ListWorkflowTemplatesRespo templatesBuilder_ = null; templates_ = other.templates_; bitField0_ = (bitField0_ & ~0x00000001); - templatesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTemplatesFieldBuilder() - : null; + templatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTemplatesFieldBuilder() : null; } else { templatesBuilder_.addAllMessages(other.templates_); } @@ -563,32 +513,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.dataproc.v1.WorkflowTemplate m = - input.readMessage( - com.google.cloud.dataproc.v1.WorkflowTemplate.parser(), extensionRegistry); - if (templatesBuilder_ == null) { - ensureTemplatesIsMutable(); - templates_.add(m); - } else { - templatesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.dataproc.v1.WorkflowTemplate m = + input.readMessage( + com.google.cloud.dataproc.v1.WorkflowTemplate.parser(), + extensionRegistry); + if (templatesBuilder_ == null) { + ensureTemplatesIsMutable(); + templates_.add(m); + } else { + templatesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -598,36 +546,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List templates_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTemplatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - templates_ = - new java.util.ArrayList(templates_); + templates_ = new java.util.ArrayList(templates_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> - templatesBuilder_; + com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> templatesBuilder_; /** - * - * *
      * Output only. WorkflowTemplates list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getTemplatesList() { if (templatesBuilder_ == null) { @@ -637,15 +575,11 @@ public java.util.List getTemplate } } /** - * - * *
      * Output only. WorkflowTemplates list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getTemplatesCount() { if (templatesBuilder_ == null) { @@ -655,15 +589,11 @@ public int getTemplatesCount() { } } /** - * - * *
      * Output only. WorkflowTemplates list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplates(int index) { if (templatesBuilder_ == null) { @@ -673,17 +603,14 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplates(int index) { } } /** - * - * *
      * Output only. WorkflowTemplates list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setTemplates(int index, com.google.cloud.dataproc.v1.WorkflowTemplate value) { + public Builder setTemplates( + int index, com.google.cloud.dataproc.v1.WorkflowTemplate value) { if (templatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -697,15 +624,11 @@ public Builder setTemplates(int index, com.google.cloud.dataproc.v1.WorkflowTemp return this; } /** - * - * *
      * Output only. WorkflowTemplates list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTemplates( int index, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder builderForValue) { @@ -719,15 +642,11 @@ public Builder setTemplates( return this; } /** - * - * *
      * Output only. WorkflowTemplates list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTemplates(com.google.cloud.dataproc.v1.WorkflowTemplate value) { if (templatesBuilder_ == null) { @@ -743,17 +662,14 @@ public Builder addTemplates(com.google.cloud.dataproc.v1.WorkflowTemplate value) return this; } /** - * - * *
      * Output only. WorkflowTemplates list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addTemplates(int index, com.google.cloud.dataproc.v1.WorkflowTemplate value) { + public Builder addTemplates( + int index, com.google.cloud.dataproc.v1.WorkflowTemplate value) { if (templatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -767,15 +683,11 @@ public Builder addTemplates(int index, com.google.cloud.dataproc.v1.WorkflowTemp return this; } /** - * - * *
      * Output only. WorkflowTemplates list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTemplates( com.google.cloud.dataproc.v1.WorkflowTemplate.Builder builderForValue) { @@ -789,15 +701,11 @@ public Builder addTemplates( return this; } /** - * - * *
      * Output only. WorkflowTemplates list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTemplates( int index, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder builderForValue) { @@ -811,21 +719,18 @@ public Builder addTemplates( return this; } /** - * - * *
      * Output only. WorkflowTemplates list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllTemplates( java.lang.Iterable values) { if (templatesBuilder_ == null) { ensureTemplatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, templates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, templates_); onChanged(); } else { templatesBuilder_.addAllMessages(values); @@ -833,15 +738,11 @@ public Builder addAllTemplates( return this; } /** - * - * *
      * Output only. WorkflowTemplates list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTemplates() { if (templatesBuilder_ == null) { @@ -854,15 +755,11 @@ public Builder clearTemplates() { return this; } /** - * - * *
      * Output only. WorkflowTemplates list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeTemplates(int index) { if (templatesBuilder_ == null) { @@ -875,50 +772,39 @@ public Builder removeTemplates(int index) { return this; } /** - * - * *
      * Output only. WorkflowTemplates list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder getTemplatesBuilder(int index) { + public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder getTemplatesBuilder( + int index) { return getTemplatesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. WorkflowTemplates list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuilder(int index) { + public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuilder( + int index) { if (templatesBuilder_ == null) { - return templates_.get(index); - } else { + return templates_.get(index); } else { return templatesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. WorkflowTemplates list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getTemplatesOrBuilderList() { + public java.util.List + getTemplatesOrBuilderList() { if (templatesBuilder_ != null) { return templatesBuilder_.getMessageOrBuilderList(); } else { @@ -926,63 +812,49 @@ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuil } } /** - * - * *
      * Output only. WorkflowTemplates list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder addTemplatesBuilder() { - return getTemplatesFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()); + return getTemplatesFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()); } /** - * - * *
      * Output only. WorkflowTemplates list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder addTemplatesBuilder(int index) { - return getTemplatesFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()); + public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder addTemplatesBuilder( + int index) { + return getTemplatesFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()); } /** - * - * *
      * Output only. WorkflowTemplates list.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getTemplatesBuilderList() { + public java.util.List + getTemplatesBuilderList() { return getTemplatesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> + com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> getTemplatesFieldBuilder() { if (templatesBuilder_ == null) { - templatesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( - templates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + templatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( + templates_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); templates_ = null; } return templatesBuilder_; @@ -990,8 +862,6 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder addTemplatesBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -999,13 +869,13 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder addTemplatesBuilder
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1014,8 +884,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -1023,14 +891,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1038,8 +907,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -1047,22 +914,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; } /** - * - * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -1070,18 +935,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -1089,23 +951,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1115,12 +977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) private static final com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse(); } @@ -1129,27 +991,27 @@ public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkflowTemplatesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkflowTemplatesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1164,4 +1026,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java similarity index 54% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java index bc48c332194f..07a67a8b06c8 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java @@ -1,93 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface ListWorkflowTemplatesResponseOrBuilder - extends +public interface ListWorkflowTemplatesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. WorkflowTemplates list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getTemplatesList(); + java.util.List + getTemplatesList(); /** - * - * *
    * Output only. WorkflowTemplates list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.WorkflowTemplate getTemplates(int index); /** - * - * *
    * Output only. WorkflowTemplates list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getTemplatesCount(); /** - * - * *
    * Output only. WorkflowTemplates list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getTemplatesOrBuilderList(); /** - * - * *
    * Output only. WorkflowTemplates list.
    * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuilder(int index); + com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuilder( + int index); /** - * - * *
    * Output only. This token is included in the response if there are more
    * results to fetch. To fetch additional results, provide this value as the
@@ -95,13 +59,10 @@ public interface ListWorkflowTemplatesResponseOrBuilder
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Output only. This token is included in the response if there are more
    * results to fetch. To fetch additional results, provide this value as the
@@ -109,8 +70,8 @@ public interface ListWorkflowTemplatesResponseOrBuilder
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java similarity index 100% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java similarity index 62% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java index ab4acd1295d7..3889cfbb119b 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java @@ -1,84 +1,65 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * The runtime logging config of the job.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.LoggingConfig} */ -public final class LoggingConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LoggingConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.LoggingConfig) LoggingConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LoggingConfig.newBuilder() to construct. private LoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LoggingConfig() {} + private LoggingConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LoggingConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetDriverLogLevels(); 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.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.LoggingConfig.class, - com.google.cloud.dataproc.v1.LoggingConfig.Builder.class); + com.google.cloud.dataproc.v1.LoggingConfig.class, com.google.cloud.dataproc.v1.LoggingConfig.Builder.class); } /** - * - * *
    * The Log4j level for job execution. When running an
    * [Apache Hive](https://hive.apache.org/) job, Cloud
@@ -87,10 +68,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * Protobuf enum {@code google.cloud.dataproc.v1.LoggingConfig.Level}
    */
-  public enum Level implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Level
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Level is unspecified. Use default level for log4j.
      * 
@@ -99,8 +79,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ LEVEL_UNSPECIFIED(0), /** - * - * *
      * Use ALL level for log4j.
      * 
@@ -109,8 +87,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ ALL(1), /** - * - * *
      * Use TRACE level for log4j.
      * 
@@ -119,8 +95,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ TRACE(2), /** - * - * *
      * Use DEBUG level for log4j.
      * 
@@ -129,8 +103,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ DEBUG(3), /** - * - * *
      * Use INFO level for log4j.
      * 
@@ -139,8 +111,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ INFO(4), /** - * - * *
      * Use WARN level for log4j.
      * 
@@ -149,8 +119,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ WARN(5), /** - * - * *
      * Use ERROR level for log4j.
      * 
@@ -159,8 +127,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(6), /** - * - * *
      * Use FATAL level for log4j.
      * 
@@ -169,8 +135,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ FATAL(7), /** - * - * *
      * Turn off log4j.
      * 
@@ -182,8 +146,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Level is unspecified. Use default level for log4j.
      * 
@@ -192,8 +154,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEVEL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Use ALL level for log4j.
      * 
@@ -202,8 +162,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALL_VALUE = 1; /** - * - * *
      * Use TRACE level for log4j.
      * 
@@ -212,8 +170,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TRACE_VALUE = 2; /** - * - * *
      * Use DEBUG level for log4j.
      * 
@@ -222,8 +178,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEBUG_VALUE = 3; /** - * - * *
      * Use INFO level for log4j.
      * 
@@ -232,8 +186,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INFO_VALUE = 4; /** - * - * *
      * Use WARN level for log4j.
      * 
@@ -242,8 +194,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WARN_VALUE = 5; /** - * - * *
      * Use ERROR level for log4j.
      * 
@@ -252,8 +202,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 6; /** - * - * *
      * Use FATAL level for log4j.
      * 
@@ -262,8 +210,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FATAL_VALUE = 7; /** - * - * *
      * Turn off log4j.
      * 
@@ -272,6 +218,7 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OFF_VALUE = 8; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -296,61 +243,55 @@ public static Level valueOf(int value) { */ public static Level forNumber(int value) { switch (value) { - case 0: - return LEVEL_UNSPECIFIED; - case 1: - return ALL; - case 2: - return TRACE; - case 3: - return DEBUG; - case 4: - return INFO; - case 5: - return WARN; - case 6: - return ERROR; - case 7: - return FATAL; - case 8: - return OFF; - default: - return null; + case 0: return LEVEL_UNSPECIFIED; + case 1: return ALL; + case 2: return TRACE; + case 3: return DEBUG; + case 4: return INFO; + case 5: return WARN; + case 6: return ERROR; + case 7: return FATAL; + case 8: return OFF; + 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< + Level> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Level findValueByNumber(int number) { + return Level.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Level findValueByNumber(int number) { - return Level.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.dataproc.v1.LoggingConfig.getDescriptor().getEnumTypes().get(0); } private static final Level[] VALUES = values(); - public static Level valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Level 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; @@ -368,50 +309,45 @@ private Level(int value) { } public static final int DRIVER_LOG_LEVELS_FIELD_NUMBER = 2; - private static final class DriverLogLevelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.ENUM, - com.google.cloud.dataproc.v1.LoggingConfig.Level.LEVEL_UNSPECIFIED.getNumber()); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.Integer> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.ENUM, + com.google.cloud.dataproc.v1.LoggingConfig.Level.LEVEL_UNSPECIFIED.getNumber()); } - - private com.google.protobuf.MapField driverLogLevels_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.Integer> driverLogLevels_; private com.google.protobuf.MapField - internalGetDriverLogLevels() { + internalGetDriverLogLevels() { if (driverLogLevels_ == null) { return com.google.protobuf.MapField.emptyMapField( DriverLogLevelsDefaultEntryHolder.defaultEntry); } return driverLogLevels_; } - - private static final com.google.protobuf.Internal.MapAdapter.Converter< - java.lang.Integer, com.google.cloud.dataproc.v1.LoggingConfig.Level> - driverLogLevelsValueConverter = + private static final + com.google.protobuf.Internal.MapAdapter.Converter< + java.lang.Integer, com.google.cloud.dataproc.v1.LoggingConfig.Level> driverLogLevelsValueConverter = com.google.protobuf.Internal.MapAdapter.newEnumConverter( com.google.cloud.dataproc.v1.LoggingConfig.Level.internalGetValueMap(), com.google.cloud.dataproc.v1.LoggingConfig.Level.UNRECOGNIZED); - - private static final java.util.Map< - java.lang.String, com.google.cloud.dataproc.v1.LoggingConfig.Level> - internalGetAdaptedDriverLogLevelsMap(java.util.Map map) { + private static final java.util.Map + internalGetAdaptedDriverLogLevelsMap( + java.util.Map map) { return new com.google.protobuf.Internal.MapAdapter< java.lang.String, com.google.cloud.dataproc.v1.LoggingConfig.Level, java.lang.Integer>( - map, driverLogLevelsValueConverter); + map, driverLogLevelsValueConverter); } public int getDriverLogLevelsCount() { return internalGetDriverLogLevels().getMap().size(); } /** - * - * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -419,26 +355,25 @@ public int getDriverLogLevelsCount() {
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ + @java.lang.Override - public boolean containsDriverLogLevels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsDriverLogLevels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetDriverLogLevels().getMap().containsKey(key); } - /** Use {@link #getDriverLogLevelsMap()} instead. */ + /** + * Use {@link #getDriverLogLevelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map - getDriverLogLevels() { + getDriverLogLevels() { return getDriverLogLevelsMap(); } /** - * - * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -446,17 +381,15 @@ public boolean containsDriverLogLevels(java.lang.String key) {
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ @java.lang.Override + public java.util.Map - getDriverLogLevelsMap() { - return internalGetAdaptedDriverLogLevelsMap(internalGetDriverLogLevels().getMap()); - } + getDriverLogLevelsMap() { + return internalGetAdaptedDriverLogLevelsMap( + internalGetDriverLogLevels().getMap());} /** - * - * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -464,26 +397,23 @@ public boolean containsDriverLogLevels(java.lang.String key) {
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ @java.lang.Override - public /* nullable */ com.google.cloud.dataproc.v1.LoggingConfig.Level - getDriverLogLevelsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetDriverLogLevels().getMap(); + + public /* nullable */ +com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDriverLogLevels().getMap(); return map.containsKey(key) - ? driverLogLevelsValueConverter.doForward(map.get(key)) - : defaultValue; + ? driverLogLevelsValueConverter.doForward(map.get(key)) + : defaultValue; } /** - * - * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -491,30 +421,30 @@ public boolean containsDriverLogLevels(java.lang.String key) {
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ @java.lang.Override + public com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetDriverLogLevels().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDriverLogLevels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return driverLogLevelsValueConverter.doForward(map.get(key)); } - /** Use {@link #getDriverLogLevelsValueMap()} instead. */ + /** + * Use {@link #getDriverLogLevelsValueMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getDriverLogLevelsValue() { + public java.util.Map + getDriverLogLevelsValue() { return getDriverLogLevelsValueMap(); } /** - * - * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -522,16 +452,15 @@ public java.util.Map getDriverLogLevelsValu
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ @java.lang.Override - public java.util.Map getDriverLogLevelsValueMap() { + + public java.util.Map + getDriverLogLevelsValueMap() { return internalGetDriverLogLevels().getMap(); } /** - * - * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -539,20 +468,19 @@ public java.util.Map getDriverLogLevelsValu
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ @java.lang.Override - public int getDriverLogLevelsValueOrDefault(java.lang.String key, int defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetDriverLogLevels().getMap(); + + public int getDriverLogLevelsValueOrDefault( + java.lang.String key, + int defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDriverLogLevels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -560,15 +488,15 @@ public int getDriverLogLevelsValueOrDefault(java.lang.String key, int defaultVal
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ @java.lang.Override - public int getDriverLogLevelsValueOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetDriverLogLevels().getMap(); + + public int getDriverLogLevelsValueOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDriverLogLevels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -576,7 +504,6 @@ public int getDriverLogLevelsValueOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -588,9 +515,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, internalGetDriverLogLevels(), DriverLogLevelsDefaultEntryHolder.defaultEntry, 2); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetDriverLogLevels(), + DriverLogLevelsDefaultEntryHolder.defaultEntry, + 2); getUnknownFields().writeTo(output); } @@ -600,15 +532,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry : - internalGetDriverLogLevels().getMap().entrySet()) { - com.google.protobuf.MapEntry driverLogLevels__ = - DriverLogLevelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, driverLogLevels__); + for (java.util.Map.Entry entry + : internalGetDriverLogLevels().getMap().entrySet()) { + com.google.protobuf.MapEntry + driverLogLevels__ = DriverLogLevelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, driverLogLevels__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -618,15 +550,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.dataproc.v1.LoggingConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.LoggingConfig other = - (com.google.cloud.dataproc.v1.LoggingConfig) obj; + com.google.cloud.dataproc.v1.LoggingConfig other = (com.google.cloud.dataproc.v1.LoggingConfig) obj; - if (!internalGetDriverLogLevels().equals(other.internalGetDriverLogLevels())) return false; + if (!internalGetDriverLogLevels().equals( + other.internalGetDriverLogLevels())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -647,156 +579,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.LoggingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.LoggingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.LoggingConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.LoggingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 runtime logging config of the job.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.LoggingConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.LoggingConfig) com.google.cloud.dataproc.v1.LoggingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetDriverLogLevels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: return internalGetMutableDriverLogLevels(); 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.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.LoggingConfig.class, - com.google.cloud.dataproc.v1.LoggingConfig.Builder.class); + com.google.cloud.dataproc.v1.LoggingConfig.class, com.google.cloud.dataproc.v1.LoggingConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.LoggingConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -805,9 +733,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor; } @java.lang.Override @@ -826,8 +754,7 @@ public com.google.cloud.dataproc.v1.LoggingConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfig buildPartial() { - com.google.cloud.dataproc.v1.LoggingConfig result = - new com.google.cloud.dataproc.v1.LoggingConfig(this); + com.google.cloud.dataproc.v1.LoggingConfig result = new com.google.cloud.dataproc.v1.LoggingConfig(this); int from_bitField0_ = bitField0_; result.driverLogLevels_ = internalGetDriverLogLevels(); result.driverLogLevels_.makeImmutable(); @@ -839,39 +766,38 @@ public com.google.cloud.dataproc.v1.LoggingConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.LoggingConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.LoggingConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.LoggingConfig)other); } else { super.mergeFrom(other); return this; @@ -880,7 +806,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.dataproc.v1.LoggingConfig other) { if (other == com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance()) return this; - internalGetMutableDriverLogLevels().mergeFrom(other.internalGetDriverLogLevels()); + internalGetMutableDriverLogLevels().mergeFrom( + other.internalGetDriverLogLevels()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -907,25 +834,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - com.google.protobuf.MapEntry - driverLogLevels__ = - input.readMessage( - DriverLogLevelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableDriverLogLevels() - .getMutableMap() - .put(driverLogLevels__.getKey(), driverLogLevels__.getValue()); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + com.google.protobuf.MapEntry + driverLogLevels__ = input.readMessage( + DriverLogLevelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableDriverLogLevels().getMutableMap().put( + driverLogLevels__.getKey(), driverLogLevels__.getValue()); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -935,28 +857,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.MapField driverLogLevels_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.Integer> driverLogLevels_; private com.google.protobuf.MapField - internalGetDriverLogLevels() { + internalGetDriverLogLevels() { if (driverLogLevels_ == null) { return com.google.protobuf.MapField.emptyMapField( DriverLogLevelsDefaultEntryHolder.defaultEntry); } return driverLogLevels_; } - private com.google.protobuf.MapField - internalGetMutableDriverLogLevels() { - onChanged(); - ; + internalGetMutableDriverLogLevels() { + onChanged();; if (driverLogLevels_ == null) { - driverLogLevels_ = - com.google.protobuf.MapField.newMapField( - DriverLogLevelsDefaultEntryHolder.defaultEntry); + driverLogLevels_ = com.google.protobuf.MapField.newMapField( + DriverLogLevelsDefaultEntryHolder.defaultEntry); } if (!driverLogLevels_.isMutable()) { driverLogLevels_ = driverLogLevels_.copy(); @@ -968,8 +886,6 @@ public int getDriverLogLevelsCount() { return internalGetDriverLogLevels().getMap().size(); } /** - * - * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -977,26 +893,25 @@ public int getDriverLogLevelsCount() {
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ + @java.lang.Override - public boolean containsDriverLogLevels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsDriverLogLevels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetDriverLogLevels().getMap().containsKey(key); } - /** Use {@link #getDriverLogLevelsMap()} instead. */ + /** + * Use {@link #getDriverLogLevelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map - getDriverLogLevels() { + getDriverLogLevels() { return getDriverLogLevelsMap(); } /** - * - * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -1004,17 +919,15 @@ public boolean containsDriverLogLevels(java.lang.String key) {
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ @java.lang.Override + public java.util.Map - getDriverLogLevelsMap() { - return internalGetAdaptedDriverLogLevelsMap(internalGetDriverLogLevels().getMap()); - } + getDriverLogLevelsMap() { + return internalGetAdaptedDriverLogLevelsMap( + internalGetDriverLogLevels().getMap());} /** - * - * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -1022,27 +935,23 @@ public boolean containsDriverLogLevels(java.lang.String key) {
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ @java.lang.Override - public /* nullable */ com.google.cloud.dataproc.v1.LoggingConfig.Level - getDriverLogLevelsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public /* nullable */ +com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetDriverLogLevels().getMap(); return map.containsKey(key) - ? driverLogLevelsValueConverter.doForward(map.get(key)) - : defaultValue; + ? driverLogLevelsValueConverter.doForward(map.get(key)) + : defaultValue; } /** - * - * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -1050,15 +959,13 @@ public boolean containsDriverLogLevels(java.lang.String key) {
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ @java.lang.Override + public com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetDriverLogLevels().getMap(); if (!map.containsKey(key)) { @@ -1066,15 +973,16 @@ public com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThro } return driverLogLevelsValueConverter.doForward(map.get(key)); } - /** Use {@link #getDriverLogLevelsValueMap()} instead. */ + /** + * Use {@link #getDriverLogLevelsValueMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getDriverLogLevelsValue() { + public java.util.Map + getDriverLogLevelsValue() { return getDriverLogLevelsValueMap(); } /** - * - * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -1082,16 +990,15 @@ public java.util.Map getDriverLogLevelsValu
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ @java.lang.Override - public java.util.Map getDriverLogLevelsValueMap() { + + public java.util.Map + getDriverLogLevelsValueMap() { return internalGetDriverLogLevels().getMap(); } /** - * - * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -1099,21 +1006,19 @@ public java.util.Map getDriverLogLevelsValu
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ @java.lang.Override - public int getDriverLogLevelsValueOrDefault(java.lang.String key, int defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public int getDriverLogLevelsValueOrDefault( + java.lang.String key, + int defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetDriverLogLevels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -1121,14 +1026,13 @@ public int getDriverLogLevelsValueOrDefault(java.lang.String key, int defaultVal
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ @java.lang.Override - public int getDriverLogLevelsValueOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public int getDriverLogLevelsValueOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetDriverLogLevels().getMap(); if (!map.containsKey(key)) { @@ -1138,12 +1042,11 @@ public int getDriverLogLevelsValueOrThrow(java.lang.String key) { } public Builder clearDriverLogLevels() { - internalGetMutableDriverLogLevels().getMutableMap().clear(); + internalGetMutableDriverLogLevels().getMutableMap() + .clear(); return this; } /** - * - * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -1151,26 +1054,26 @@ public Builder clearDriverLogLevels() {
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ - public Builder removeDriverLogLevels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableDriverLogLevels().getMutableMap().remove(key); + + public Builder removeDriverLogLevels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableDriverLogLevels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map - getMutableDriverLogLevels() { + getMutableDriverLogLevels() { return internalGetAdaptedDriverLogLevelsMap( - internalGetMutableDriverLogLevels().getMutableMap()); + internalGetMutableDriverLogLevels().getMutableMap()); } /** - * - * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -1178,23 +1081,18 @@ public Builder removeDriverLogLevels(java.lang.String key) {
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ public Builder putDriverLogLevels( - java.lang.String key, com.google.cloud.dataproc.v1.LoggingConfig.Level value) { - if (key == null) { - throw new NullPointerException("map key"); - } - - internalGetMutableDriverLogLevels() - .getMutableMap() + java.lang.String key, + com.google.cloud.dataproc.v1.LoggingConfig.Level value) { + if (key == null) { throw new NullPointerException("map key"); } + + internalGetMutableDriverLogLevels().getMutableMap() .put(key, driverLogLevelsValueConverter.doBackward(value)); return this; } /** - * - * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -1202,23 +1100,24 @@ public Builder putDriverLogLevels(
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ public Builder putAllDriverLogLevels( java.util.Map values) { - internalGetAdaptedDriverLogLevelsMap(internalGetMutableDriverLogLevels().getMutableMap()) - .putAll(values); + internalGetAdaptedDriverLogLevelsMap( + internalGetMutableDriverLogLevels().getMutableMap()) + .putAll(values); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableDriverLogLevelsValue() { + public java.util.Map + getMutableDriverLogLevelsValue() { return internalGetMutableDriverLogLevels().getMutableMap(); } /** - * - * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -1226,20 +1125,18 @@ public java.util.Map getMutableDriverLogLev
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ - public Builder putDriverLogLevelsValue(java.lang.String key, int value) { - if (key == null) { - throw new NullPointerException("map key"); - } - - internalGetMutableDriverLogLevels().getMutableMap().put(key, value); + public Builder putDriverLogLevelsValue( + java.lang.String key, + int value) { + if (key == null) { throw new NullPointerException("map key"); } + + internalGetMutableDriverLogLevels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -1247,17 +1144,17 @@ public Builder putDriverLogLevelsValue(java.lang.String key, int value) {
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ public Builder putAllDriverLogLevelsValue( java.util.Map values) { - internalGetMutableDriverLogLevels().getMutableMap().putAll(values); + internalGetMutableDriverLogLevels().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); } @@ -1267,12 +1164,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.LoggingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.LoggingConfig) private static final com.google.cloud.dataproc.v1.LoggingConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.LoggingConfig(); } @@ -1281,27 +1178,27 @@ public static com.google.cloud.dataproc.v1.LoggingConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoggingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoggingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1316,4 +1213,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.LoggingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java similarity index 62% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java index 334f67210d74..98afe177f949 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface LoggingConfigOrBuilder - extends +public interface LoggingConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.LoggingConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -33,13 +15,10 @@ public interface LoggingConfigOrBuilder
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ int getDriverLogLevelsCount(); /** - * - * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -47,17 +26,17 @@ public interface LoggingConfigOrBuilder
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + */ + boolean containsDriverLogLevels( + java.lang.String key); + /** + * Use {@link #getDriverLogLevelsMap()} instead. */ - boolean containsDriverLogLevels(java.lang.String key); - /** Use {@link #getDriverLogLevelsMap()} instead. */ @java.lang.Deprecated java.util.Map - getDriverLogLevels(); + getDriverLogLevels(); /** - * - * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -65,14 +44,11 @@ public interface LoggingConfigOrBuilder
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ java.util.Map - getDriverLogLevelsMap(); + getDriverLogLevelsMap(); /** - * - * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -80,17 +56,14 @@ public interface LoggingConfigOrBuilder
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ /* nullable */ - com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault( +com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue); +com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue); /** - * - * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -98,16 +71,17 @@ com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault(
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + */ + com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThrow( + java.lang.String key); + /** + * Use {@link #getDriverLogLevelsValueMap()} instead. */ - com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThrow(java.lang.String key); - /** Use {@link #getDriverLogLevelsValueMap()} instead. */ @java.lang.Deprecated - java.util.Map getDriverLogLevelsValue(); + java.util.Map + getDriverLogLevelsValue(); /** - * - * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -115,13 +89,11 @@ com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault(
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ - java.util.Map getDriverLogLevelsValueMap(); + java.util.Map + getDriverLogLevelsValueMap(); /** - * - * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -129,13 +101,13 @@ com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault(
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ - int getDriverLogLevelsValueOrDefault(java.lang.String key, int defaultValue); + + int getDriverLogLevelsValueOrDefault( + java.lang.String key, + int defaultValue); /** - * - * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -143,8 +115,9 @@ com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault(
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; */ - int getDriverLogLevelsValueOrThrow(java.lang.String key); + + int getDriverLogLevelsValueOrThrow( + java.lang.String key); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java similarity index 66% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java index 87e3064b1286..5f625755dd66 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java @@ -1,88 +1,68 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Cluster that is managed by the workflow.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ManagedCluster} */ -public final class ManagedCluster extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ManagedCluster extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ManagedCluster) ManagedClusterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ManagedCluster.newBuilder() to construct. private ManagedCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ManagedCluster() { clusterName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ManagedCluster(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); 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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ManagedCluster_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ManagedCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ManagedCluster.class, - com.google.cloud.dataproc.v1.ManagedCluster.Builder.class); + com.google.cloud.dataproc.v1.ManagedCluster.class, com.google.cloud.dataproc.v1.ManagedCluster.Builder.class); } public static final int CLUSTER_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object clusterName_; /** - * - * *
    * Required. The cluster name prefix. A unique cluster name will be formed by
    * appending a random suffix.
@@ -92,7 +72,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ @java.lang.Override @@ -101,15 +80,14 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** - * - * *
    * Required. The cluster name prefix. A unique cluster name will be formed by
    * appending a random suffix.
@@ -119,15 +97,16 @@ public java.lang.String getClusterName() {
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -138,16 +117,11 @@ public com.google.protobuf.ByteString getClusterNameBytes() { public static final int CONFIG_FIELD_NUMBER = 3; private com.google.cloud.dataproc.v1.ClusterConfig config_; /** - * - * *
    * Required. The cluster configuration.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ @java.lang.Override @@ -155,34 +129,23 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. The cluster configuration.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterConfig getConfig() { - return config_ == null - ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() : config_; } /** - * - * *
    * Required. The cluster configuration.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() { @@ -190,23 +153,24 @@ public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ManagedCluster_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.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ManagedCluster_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_; } @@ -215,8 +179,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels to associate with this cluster.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -229,22 +191,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @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();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -258,12 +220,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -277,16 +238,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -300,11 +261,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -312,7 +274,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -324,15 +285,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_);
     }
     if (config_ != null) {
       output.writeMessage(3, getConfig());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        4);
     getUnknownFields().writeTo(output);
   }
 
@@ -346,17 +312,18 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_);
     }
     if (config_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConfig());
-    }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getConfig());
+    }
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(4, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -366,20 +333,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.dataproc.v1.ManagedCluster)) {
       return super.equals(obj);
     }
-    com.google.cloud.dataproc.v1.ManagedCluster other =
-        (com.google.cloud.dataproc.v1.ManagedCluster) obj;
+    com.google.cloud.dataproc.v1.ManagedCluster other = (com.google.cloud.dataproc.v1.ManagedCluster) obj;
 
-    if (!getClusterName().equals(other.getClusterName())) return false;
+    if (!getClusterName()
+        .equals(other.getClusterName())) return false;
     if (hasConfig() != other.hasConfig()) return false;
     if (hasConfig()) {
-      if (!getConfig().equals(other.getConfig())) return false;
+      if (!getConfig()
+          .equals(other.getConfig())) return false;
     }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -406,156 +375,152 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.dataproc.v1.ManagedCluster parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.dataproc.v1.ManagedCluster parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dataproc.v1.ManagedCluster parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.dataproc.v1.ManagedCluster prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Cluster that is managed by the workflow.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ManagedCluster} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ManagedCluster) com.google.cloud.dataproc.v1.ManagedClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 4: return internalGetMutableLabels(); 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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ManagedCluster_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ManagedCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ManagedCluster.class, - com.google.cloud.dataproc.v1.ManagedCluster.Builder.class); + com.google.cloud.dataproc.v1.ManagedCluster.class, com.google.cloud.dataproc.v1.ManagedCluster.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ManagedCluster.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -572,9 +537,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; } @java.lang.Override @@ -593,8 +558,7 @@ public com.google.cloud.dataproc.v1.ManagedCluster build() { @java.lang.Override public com.google.cloud.dataproc.v1.ManagedCluster buildPartial() { - com.google.cloud.dataproc.v1.ManagedCluster result = - new com.google.cloud.dataproc.v1.ManagedCluster(this); + com.google.cloud.dataproc.v1.ManagedCluster result = new com.google.cloud.dataproc.v1.ManagedCluster(this); int from_bitField0_ = bitField0_; result.clusterName_ = clusterName_; if (configBuilder_ == null) { @@ -612,39 +576,38 @@ public com.google.cloud.dataproc.v1.ManagedCluster buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ManagedCluster) { - return mergeFrom((com.google.cloud.dataproc.v1.ManagedCluster) other); + return mergeFrom((com.google.cloud.dataproc.v1.ManagedCluster)other); } else { super.mergeFrom(other); return this; @@ -660,7 +623,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ManagedCluster other) { if (other.hasConfig()) { mergeConfig(other.getConfig()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -687,36 +651,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -726,13 +686,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object clusterName_ = ""; /** - * - * *
      * Required. The cluster name prefix. A unique cluster name will be formed by
      * appending a random suffix.
@@ -742,13 +699,13 @@ public Builder mergeFrom(
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -757,8 +714,6 @@ public java.lang.String getClusterName() { } } /** - * - * *
      * Required. The cluster name prefix. A unique cluster name will be formed by
      * appending a random suffix.
@@ -768,14 +723,15 @@ public java.lang.String getClusterName() {
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -783,8 +739,6 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } } /** - * - * *
      * Required. The cluster name prefix. A unique cluster name will be formed by
      * appending a random suffix.
@@ -794,22 +748,20 @@ public com.google.protobuf.ByteString getClusterNameBytes() {
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName(java.lang.String value) { + public Builder setClusterName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The cluster name prefix. A unique cluster name will be formed by
      * appending a random suffix.
@@ -819,18 +771,15 @@ public Builder setClusterName(java.lang.String value) {
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** - * - * *
      * Required. The cluster name prefix. A unique cluster name will be formed by
      * appending a random suffix.
@@ -840,16 +789,16 @@ public Builder clearClusterName() {
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -857,58 +806,39 @@ public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.ClusterConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterConfig, - com.google.cloud.dataproc.v1.ClusterConfig.Builder, - com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> - configBuilder_; + com.google.cloud.dataproc.v1.ClusterConfig, com.google.cloud.dataproc.v1.ClusterConfig.Builder, com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> configBuilder_; /** - * - * *
      * Required. The cluster configuration.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * Required. The cluster configuration.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ public com.google.cloud.dataproc.v1.ClusterConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Required. The cluster configuration.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { if (configBuilder_ == null) { @@ -924,17 +854,14 @@ public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { return this; } /** - * - * *
      * Required. The cluster configuration.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig.Builder builderForValue) { + public Builder setConfig( + com.google.cloud.dataproc.v1.ClusterConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -945,23 +872,17 @@ public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig.Builder buil return this; } /** - * - * *
      * Required. The cluster configuration.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.dataproc.v1.ClusterConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.ClusterConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -973,15 +894,11 @@ public Builder mergeConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { return this; } /** - * - * *
      * Required. The cluster configuration.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -995,84 +912,69 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. The cluster configuration.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.ClusterConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The cluster configuration.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Required. The cluster configuration.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterConfig, - com.google.cloud.dataproc.v1.ClusterConfig.Builder, - com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> + com.google.cloud.dataproc.v1.ClusterConfig, com.google.cloud.dataproc.v1.ClusterConfig.Builder, com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterConfig, - com.google.cloud.dataproc.v1.ClusterConfig.Builder, - com.google.cloud.dataproc.v1.ClusterConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterConfig, com.google.cloud.dataproc.v1.ClusterConfig.Builder, com.google.cloud.dataproc.v1.ClusterConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; } - 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(); @@ -1084,8 +986,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels to associate with this cluster.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -1098,22 +998,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @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();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -1127,12 +1027,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -1146,17 +1045,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -1170,11 +1068,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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();
       }
@@ -1182,12 +1081,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -1200,21 +1098,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -1227,20 +1127,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -1253,13 +1152,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().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);
     }
 
@@ -1269,12 +1171,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ManagedCluster)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ManagedCluster)
   private static final com.google.cloud.dataproc.v1.ManagedCluster DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ManagedCluster();
   }
@@ -1283,27 +1185,27 @@ public static com.google.cloud.dataproc.v1.ManagedCluster getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ManagedCluster parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ManagedCluster parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1318,4 +1220,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.dataproc.v1.ManagedCluster getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java
similarity index 76%
rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java
rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java
index 056f92053092..55bf188a9b7c 100644
--- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java
+++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.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/dataproc/v1/workflow_templates.proto
 
 package com.google.cloud.dataproc.v1;
 
-public interface ManagedClusterOrBuilder
-    extends
+public interface ManagedClusterOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ManagedCluster)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The cluster name prefix. A unique cluster name will be formed by
    * appending a random suffix.
@@ -35,13 +17,10 @@ public interface ManagedClusterOrBuilder
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ java.lang.String getClusterName(); /** - * - * *
    * Required. The cluster name prefix. A unique cluster name will be formed by
    * appending a random suffix.
@@ -51,55 +30,39 @@ public interface ManagedClusterOrBuilder
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString getClusterNameBytes(); + com.google.protobuf.ByteString + getClusterNameBytes(); /** - * - * *
    * Required. The cluster configuration.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Required. The cluster configuration.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ com.google.cloud.dataproc.v1.ClusterConfig getConfig(); /** - * - * *
    * Required. The cluster configuration.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder(); /** - * - * *
    * Optional. The labels to associate with this cluster.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -114,8 +77,6 @@ public interface ManagedClusterOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -128,13 +89,15 @@ public interface ManagedClusterOrBuilder
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  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();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -147,10 +110,9 @@ public interface ManagedClusterOrBuilder
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -165,13 +127,11 @@ public interface ManagedClusterOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -184,5 +144,7 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java
similarity index 67%
rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java
rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java
index b38f4a947c5b..90dfe99d82db 100644
--- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java
+++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.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/dataproc/v1/clusters.proto
 
 package com.google.cloud.dataproc.v1;
 
 /**
- *
- *
  * 
  * Specifies the resources used to actively manage an instance group.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ManagedGroupConfig} */ -public final class ManagedGroupConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ManagedGroupConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ManagedGroupConfig) ManagedGroupConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ManagedGroupConfig.newBuilder() to construct. private ManagedGroupConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ManagedGroupConfig() { instanceTemplateName_ = ""; instanceGroupManagerName_ = ""; @@ -44,42 +26,38 @@ private ManagedGroupConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ManagedGroupConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ManagedGroupConfig.class, - com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder.class); + com.google.cloud.dataproc.v1.ManagedGroupConfig.class, com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder.class); } public static final int INSTANCE_TEMPLATE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object instanceTemplateName_; /** - * - * *
    * Output only. The name of the Instance Template used for the Managed
    * Instance Group.
    * 
* * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The instanceTemplateName. */ @java.lang.Override @@ -88,30 +66,30 @@ public java.lang.String getInstanceTemplateName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceTemplateName_ = s; return s; } } /** - * - * *
    * Output only. The name of the Instance Template used for the Managed
    * Instance Group.
    * 
* * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for instanceTemplateName. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceTemplateNameBytes() { + public com.google.protobuf.ByteString + getInstanceTemplateNameBytes() { java.lang.Object ref = instanceTemplateName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceTemplateName_ = b; return b; } else { @@ -122,15 +100,11 @@ public com.google.protobuf.ByteString getInstanceTemplateNameBytes() { public static final int INSTANCE_GROUP_MANAGER_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object instanceGroupManagerName_; /** - * - * *
    * Output only. The name of the Instance Group Manager for this group.
    * 
* - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The instanceGroupManagerName. */ @java.lang.Override @@ -139,30 +113,29 @@ public java.lang.String getInstanceGroupManagerName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupManagerName_ = s; return s; } } /** - * - * *
    * Output only. The name of the Instance Group Manager for this group.
    * 
* - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for instanceGroupManagerName. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceGroupManagerNameBytes() { + public com.google.protobuf.ByteString + getInstanceGroupManagerNameBytes() { java.lang.Object ref = instanceGroupManagerName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceGroupManagerName_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getInstanceGroupManagerNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceTemplateName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceTemplateName_); } @@ -203,8 +176,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceTemplateName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManagerName_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceGroupManagerName_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceGroupManagerName_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -214,16 +186,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.dataproc.v1.ManagedGroupConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ManagedGroupConfig other = - (com.google.cloud.dataproc.v1.ManagedGroupConfig) obj; + com.google.cloud.dataproc.v1.ManagedGroupConfig other = (com.google.cloud.dataproc.v1.ManagedGroupConfig) obj; - if (!getInstanceTemplateName().equals(other.getInstanceTemplateName())) return false; - if (!getInstanceGroupManagerName().equals(other.getInstanceGroupManagerName())) return false; + if (!getInstanceTemplateName() + .equals(other.getInstanceTemplateName())) return false; + if (!getInstanceGroupManagerName() + .equals(other.getInstanceGroupManagerName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,136 +217,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ManagedGroupConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specifies the resources used to actively manage an instance group.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ManagedGroupConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ManagedGroupConfig) com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ManagedGroupConfig.class, - com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder.class); + com.google.cloud.dataproc.v1.ManagedGroupConfig.class, com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ManagedGroupConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -385,9 +352,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; } @java.lang.Override @@ -406,8 +373,7 @@ public com.google.cloud.dataproc.v1.ManagedGroupConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.ManagedGroupConfig buildPartial() { - com.google.cloud.dataproc.v1.ManagedGroupConfig result = - new com.google.cloud.dataproc.v1.ManagedGroupConfig(this); + com.google.cloud.dataproc.v1.ManagedGroupConfig result = new com.google.cloud.dataproc.v1.ManagedGroupConfig(this); result.instanceTemplateName_ = instanceTemplateName_; result.instanceGroupManagerName_ = instanceGroupManagerName_; onBuilt(); @@ -418,39 +384,38 @@ public com.google.cloud.dataproc.v1.ManagedGroupConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ManagedGroupConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.ManagedGroupConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.ManagedGroupConfig)other); } else { super.mergeFrom(other); return this; @@ -458,8 +423,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ManagedGroupConfig other) { - if (other == com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance()) return this; if (!other.getInstanceTemplateName().isEmpty()) { instanceTemplateName_ = other.instanceTemplateName_; onChanged(); @@ -494,25 +458,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - instanceTemplateName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - instanceGroupManagerName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + instanceTemplateName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + instanceGroupManagerName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -525,21 +486,19 @@ public Builder mergeFrom( private java.lang.Object instanceTemplateName_ = ""; /** - * - * *
      * Output only. The name of the Instance Template used for the Managed
      * Instance Group.
      * 
* * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The instanceTemplateName. */ public java.lang.String getInstanceTemplateName() { java.lang.Object ref = instanceTemplateName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceTemplateName_ = s; return s; @@ -548,22 +507,21 @@ public java.lang.String getInstanceTemplateName() { } } /** - * - * *
      * Output only. The name of the Instance Template used for the Managed
      * Instance Group.
      * 
* * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for instanceTemplateName. */ - public com.google.protobuf.ByteString getInstanceTemplateNameBytes() { + public com.google.protobuf.ByteString + getInstanceTemplateNameBytes() { java.lang.Object ref = instanceTemplateName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceTemplateName_ = b; return b; } else { @@ -571,64 +529,57 @@ public com.google.protobuf.ByteString getInstanceTemplateNameBytes() { } } /** - * - * *
      * Output only. The name of the Instance Template used for the Managed
      * Instance Group.
      * 
* * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The instanceTemplateName to set. * @return This builder for chaining. */ - public Builder setInstanceTemplateName(java.lang.String value) { + public Builder setInstanceTemplateName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceTemplateName_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The name of the Instance Template used for the Managed
      * Instance Group.
      * 
* * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearInstanceTemplateName() { - + instanceTemplateName_ = getDefaultInstance().getInstanceTemplateName(); onChanged(); return this; } /** - * - * *
      * Output only. The name of the Instance Template used for the Managed
      * Instance Group.
      * 
* * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for instanceTemplateName to set. * @return This builder for chaining. */ - public Builder setInstanceTemplateNameBytes(com.google.protobuf.ByteString value) { + public Builder setInstanceTemplateNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceTemplateName_ = value; onChanged(); return this; @@ -636,21 +587,18 @@ public Builder setInstanceTemplateNameBytes(com.google.protobuf.ByteString value private java.lang.Object instanceGroupManagerName_ = ""; /** - * - * *
      * Output only. The name of the Instance Group Manager for this group.
      * 
* - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The instanceGroupManagerName. */ public java.lang.String getInstanceGroupManagerName() { java.lang.Object ref = instanceGroupManagerName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupManagerName_ = s; return s; @@ -659,22 +607,20 @@ public java.lang.String getInstanceGroupManagerName() { } } /** - * - * *
      * Output only. The name of the Instance Group Manager for this group.
      * 
* - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for instanceGroupManagerName. */ - public com.google.protobuf.ByteString getInstanceGroupManagerNameBytes() { + public com.google.protobuf.ByteString + getInstanceGroupManagerNameBytes() { java.lang.Object ref = instanceGroupManagerName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceGroupManagerName_ = b; return b; } else { @@ -682,71 +628,61 @@ public com.google.protobuf.ByteString getInstanceGroupManagerNameBytes() { } } /** - * - * *
      * Output only. The name of the Instance Group Manager for this group.
      * 
* - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The instanceGroupManagerName to set. * @return This builder for chaining. */ - public Builder setInstanceGroupManagerName(java.lang.String value) { + public Builder setInstanceGroupManagerName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceGroupManagerName_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The name of the Instance Group Manager for this group.
      * 
* - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearInstanceGroupManagerName() { - + instanceGroupManagerName_ = getDefaultInstance().getInstanceGroupManagerName(); onChanged(); return this; } /** - * - * *
      * Output only. The name of the Instance Group Manager for this group.
      * 
* - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for instanceGroupManagerName to set. * @return This builder for chaining. */ - public Builder setInstanceGroupManagerNameBytes(com.google.protobuf.ByteString value) { + public Builder setInstanceGroupManagerNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceGroupManagerName_ = 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); } @@ -756,12 +692,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ManagedGroupConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ManagedGroupConfig) private static final com.google.cloud.dataproc.v1.ManagedGroupConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ManagedGroupConfig(); } @@ -770,27 +706,27 @@ public static com.google.cloud.dataproc.v1.ManagedGroupConfig getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ManagedGroupConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagedGroupConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -805,4 +741,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ManagedGroupConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java similarity index 59% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java index d27f6e638be5..c3c62fe88813 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java @@ -1,79 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface ManagedGroupConfigOrBuilder - extends +public interface ManagedGroupConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ManagedGroupConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The name of the Instance Template used for the Managed
    * Instance Group.
    * 
* * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The instanceTemplateName. */ java.lang.String getInstanceTemplateName(); /** - * - * *
    * Output only. The name of the Instance Template used for the Managed
    * Instance Group.
    * 
* * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for instanceTemplateName. */ - com.google.protobuf.ByteString getInstanceTemplateNameBytes(); + com.google.protobuf.ByteString + getInstanceTemplateNameBytes(); /** - * - * *
    * Output only. The name of the Instance Group Manager for this group.
    * 
* - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The instanceGroupManagerName. */ java.lang.String getInstanceGroupManagerName(); /** - * - * *
    * Output only. The name of the Instance Group Manager for this group.
    * 
* - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for instanceGroupManagerName. */ - com.google.protobuf.ByteString getInstanceGroupManagerNameBytes(); + com.google.protobuf.ByteString + getInstanceGroupManagerNameBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java similarity index 62% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java index c4cc9ad98220..c20c8c10af79 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java @@ -1,87 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Specifies a Metastore configuration.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.MetastoreConfig} */ -public final class MetastoreConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MetastoreConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.MetastoreConfig) MetastoreConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MetastoreConfig.newBuilder() to construct. private MetastoreConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MetastoreConfig() { dataprocMetastoreService_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MetastoreConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.MetastoreConfig.class, - com.google.cloud.dataproc.v1.MetastoreConfig.Builder.class); + com.google.cloud.dataproc.v1.MetastoreConfig.class, com.google.cloud.dataproc.v1.MetastoreConfig.Builder.class); } public static final int DATAPROC_METASTORE_SERVICE_FIELD_NUMBER = 1; private volatile java.lang.Object dataprocMetastoreService_; /** - * - * *
    * Required. Resource name of an existing Dataproc Metastore service.
    * Example:
    * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
    * 
* - * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The dataprocMetastoreService. */ @java.lang.Override @@ -90,33 +66,31 @@ public java.lang.String getDataprocMetastoreService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataprocMetastoreService_ = s; return s; } } /** - * - * *
    * Required. Resource name of an existing Dataproc Metastore service.
    * Example:
    * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
    * 
* - * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for dataprocMetastoreService. */ @java.lang.Override - public com.google.protobuf.ByteString getDataprocMetastoreServiceBytes() { + public com.google.protobuf.ByteString + getDataprocMetastoreServiceBytes() { java.lang.Object ref = dataprocMetastoreService_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataprocMetastoreService_ = b; return b; } else { @@ -125,7 +99,6 @@ public com.google.protobuf.ByteString getDataprocMetastoreServiceBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataprocMetastoreService_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataprocMetastoreService_); } @@ -151,8 +125,7 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataprocMetastoreService_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataprocMetastoreService_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataprocMetastoreService_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -162,15 +135,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.MetastoreConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.MetastoreConfig other = - (com.google.cloud.dataproc.v1.MetastoreConfig) obj; + com.google.cloud.dataproc.v1.MetastoreConfig other = (com.google.cloud.dataproc.v1.MetastoreConfig) obj; - if (!getDataprocMetastoreService().equals(other.getDataprocMetastoreService())) return false; + if (!getDataprocMetastoreService() + .equals(other.getDataprocMetastoreService())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,136 +162,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.MetastoreConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.MetastoreConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.MetastoreConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.MetastoreConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specifies a Metastore configuration.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.MetastoreConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.MetastoreConfig) com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.MetastoreConfig.class, - com.google.cloud.dataproc.v1.MetastoreConfig.Builder.class); + com.google.cloud.dataproc.v1.MetastoreConfig.class, com.google.cloud.dataproc.v1.MetastoreConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.MetastoreConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,9 +295,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; } @java.lang.Override @@ -349,8 +316,7 @@ public com.google.cloud.dataproc.v1.MetastoreConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.MetastoreConfig buildPartial() { - com.google.cloud.dataproc.v1.MetastoreConfig result = - new com.google.cloud.dataproc.v1.MetastoreConfig(this); + com.google.cloud.dataproc.v1.MetastoreConfig result = new com.google.cloud.dataproc.v1.MetastoreConfig(this); result.dataprocMetastoreService_ = dataprocMetastoreService_; onBuilt(); return result; @@ -360,39 +326,38 @@ public com.google.cloud.dataproc.v1.MetastoreConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.MetastoreConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.MetastoreConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.MetastoreConfig)other); } else { super.mergeFrom(other); return this; @@ -431,19 +396,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - dataprocMetastoreService_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + dataprocMetastoreService_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -456,24 +419,20 @@ public Builder mergeFrom( private java.lang.Object dataprocMetastoreService_ = ""; /** - * - * *
      * Required. Resource name of an existing Dataproc Metastore service.
      * Example:
      * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
      * 
* - * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The dataprocMetastoreService. */ public java.lang.String getDataprocMetastoreService() { java.lang.Object ref = dataprocMetastoreService_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataprocMetastoreService_ = s; return s; @@ -482,25 +441,22 @@ public java.lang.String getDataprocMetastoreService() { } } /** - * - * *
      * Required. Resource name of an existing Dataproc Metastore service.
      * Example:
      * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
      * 
* - * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for dataprocMetastoreService. */ - public com.google.protobuf.ByteString getDataprocMetastoreServiceBytes() { + public com.google.protobuf.ByteString + getDataprocMetastoreServiceBytes() { java.lang.Object ref = dataprocMetastoreService_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataprocMetastoreService_ = b; return b; } else { @@ -508,80 +464,67 @@ public com.google.protobuf.ByteString getDataprocMetastoreServiceBytes() { } } /** - * - * *
      * Required. Resource name of an existing Dataproc Metastore service.
      * Example:
      * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
      * 
* - * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The dataprocMetastoreService to set. * @return This builder for chaining. */ - public Builder setDataprocMetastoreService(java.lang.String value) { + public Builder setDataprocMetastoreService( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataprocMetastoreService_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of an existing Dataproc Metastore service.
      * Example:
      * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
      * 
* - * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearDataprocMetastoreService() { - + dataprocMetastoreService_ = getDefaultInstance().getDataprocMetastoreService(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of an existing Dataproc Metastore service.
      * Example:
      * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
      * 
* - * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for dataprocMetastoreService to set. * @return This builder for chaining. */ - public Builder setDataprocMetastoreServiceBytes(com.google.protobuf.ByteString value) { + public Builder setDataprocMetastoreServiceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataprocMetastoreService_ = 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); } @@ -591,12 +534,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.MetastoreConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.MetastoreConfig) private static final com.google.cloud.dataproc.v1.MetastoreConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.MetastoreConfig(); } @@ -605,27 +548,27 @@ public static com.google.cloud.dataproc.v1.MetastoreConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetastoreConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetastoreConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,4 +583,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.MetastoreConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java new file mode 100644 index 000000000000..1ee2f98e7c83 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface MetastoreConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.MetastoreConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of an existing Dataproc Metastore service.
+   * Example:
+   * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
+   * 
+ * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The dataprocMetastoreService. + */ + java.lang.String getDataprocMetastoreService(); + /** + *
+   * Required. Resource name of an existing Dataproc Metastore service.
+   * Example:
+   * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
+   * 
+ * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for dataprocMetastoreService. + */ + com.google.protobuf.ByteString + getDataprocMetastoreServiceBytes(); +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroup.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroup.java new file mode 100644 index 000000000000..169426737810 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroup.java @@ -0,0 +1,1657 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +/** + *
+ * Dataproc Node Group.
+ * **The Dataproc `NodeGroup` resource is not related to the
+ * Dataproc [NodeGroupAffinity][google.cloud.dataproc.v1.NodeGroupAffinity]
+ * resource.**
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.NodeGroup} + */ +public final class NodeGroup extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.NodeGroup) + NodeGroupOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodeGroup.newBuilder() to construct. + private NodeGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeGroup() { + name_ = ""; + roles_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodeGroup(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.NodeGroup.class, com.google.cloud.dataproc.v1.NodeGroup.Builder.class); + } + + /** + *
+   * Node group roles.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataproc.v1.NodeGroup.Role} + */ + public enum Role + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Required unspecified role.
+     * 
+ * + * ROLE_UNSPECIFIED = 0; + */ + ROLE_UNSPECIFIED(0), + /** + *
+     * Job drivers run on the node group.
+     * 
+ * + * DRIVER = 1; + */ + DRIVER(1), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Required unspecified role.
+     * 
+ * + * ROLE_UNSPECIFIED = 0; + */ + public static final int ROLE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Job drivers run on the node group.
+     * 
+ * + * DRIVER = 1; + */ + public static final int DRIVER_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Role valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Role forNumber(int value) { + switch (value) { + case 0: return ROLE_UNSPECIFIED; + case 1: return DRIVER; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Role> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Role findValueByNumber(int number) { + return Role.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.NodeGroup.getDescriptor().getEnumTypes().get(0); + } + + private static final Role[] VALUES = values(); + + public static Role valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Role(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.NodeGroup.Role) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The Node group [resource name](https://aip.dev/122).
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The Node group [resource name](https://aip.dev/122).
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLES_FIELD_NUMBER = 2; + private java.util.List roles_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.dataproc.v1.NodeGroup.Role> roles_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.dataproc.v1.NodeGroup.Role>() { + public com.google.cloud.dataproc.v1.NodeGroup.Role convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.dataproc.v1.NodeGroup.Role result = com.google.cloud.dataproc.v1.NodeGroup.Role.valueOf(from); + return result == null ? com.google.cloud.dataproc.v1.NodeGroup.Role.UNRECOGNIZED : result; + } + }; + /** + *
+   * Required. Node group roles.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return A list containing the roles. + */ + @java.lang.Override + public java.util.List getRolesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.dataproc.v1.NodeGroup.Role>(roles_, roles_converter_); + } + /** + *
+   * Required. Node group roles.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The count of roles. + */ + @java.lang.Override + public int getRolesCount() { + return roles_.size(); + } + /** + *
+   * Required. Node group roles.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the element to return. + * @return The roles at the given index. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroup.Role getRoles(int index) { + return roles_converter_.convert(roles_.get(index)); + } + /** + *
+   * Required. Node group roles.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return A list containing the enum numeric values on the wire for roles. + */ + @java.lang.Override + public java.util.List + getRolesValueList() { + return roles_; + } + /** + *
+   * Required. Node group roles.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of roles at the given index. + */ + @java.lang.Override + public int getRolesValue(int index) { + return roles_.get(index); + } + private int rolesMemoizedSerializedSize; + + public static final int NODE_GROUP_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.dataproc.v1.InstanceGroupConfig nodeGroupConfig_; + /** + *
+   * Optional. The node group instance group configuration.
+   * 
+ * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the nodeGroupConfig field is set. + */ + @java.lang.Override + public boolean hasNodeGroupConfig() { + return nodeGroupConfig_ != null; + } + /** + *
+   * Optional. The node group instance group configuration.
+   * 
+ * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The nodeGroupConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.InstanceGroupConfig getNodeGroupConfig() { + return nodeGroupConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : nodeGroupConfig_; + } + /** + *
+   * Optional. The node group instance group configuration.
+   * 
+ * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getNodeGroupConfigOrBuilder() { + return getNodeGroupConfig(); + } + + public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroup_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * Optional. Node group labels.
+   * * Label **keys** must consist of from 1 to 63 characters and conform to
+   *   [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * * Label **values** can be empty. If specified, they must consist of from
+   *   1 to 63 characters and conform to [RFC 1035]
+   *   (https://www.ietf.org/rfc/rfc1035.txt).
+   * * The node group must have no more than 32 labels.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Optional. Node group labels.
+   * * Label **keys** must consist of from 1 to 63 characters and conform to
+   *   [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * * Label **values** can be empty. If specified, they must consist of from
+   *   1 to 63 characters and conform to [RFC 1035]
+   *   (https://www.ietf.org/rfc/rfc1035.txt).
+   * * The node group must have no more than 32 labels.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Optional. Node group labels.
+   * * Label **keys** must consist of from 1 to 63 characters and conform to
+   *   [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * * Label **values** can be empty. If specified, they must consist of from
+   *   1 to 63 characters and conform to [RFC 1035]
+   *   (https://www.ietf.org/rfc/rfc1035.txt).
+   * * The node group must have no more than 32 labels.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Optional. Node group labels.
+   * * Label **keys** must consist of from 1 to 63 characters and conform to
+   *   [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * * Label **values** can be empty. If specified, they must consist of from
+   *   1 to 63 characters and conform to [RFC 1035]
+   *   (https://www.ietf.org/rfc/rfc1035.txt).
+   * * The node group must have no more than 32 labels.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (getRolesList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(rolesMemoizedSerializedSize); + } + for (int i = 0; i < roles_.size(); i++) { + output.writeEnumNoTag(roles_.get(i)); + } + if (nodeGroupConfig_ != null) { + output.writeMessage(3, getNodeGroupConfig()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < roles_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(roles_.get(i)); + } + size += dataSize; + if (!getRolesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }rolesMemoizedSerializedSize = dataSize; + } + if (nodeGroupConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getNodeGroupConfig()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataproc.v1.NodeGroup)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.NodeGroup other = (com.google.cloud.dataproc.v1.NodeGroup) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!roles_.equals(other.roles_)) return false; + if (hasNodeGroupConfig() != other.hasNodeGroupConfig()) return false; + if (hasNodeGroupConfig()) { + if (!getNodeGroupConfig() + .equals(other.getNodeGroupConfig())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getRolesCount() > 0) { + hash = (37 * hash) + ROLES_FIELD_NUMBER; + hash = (53 * hash) + roles_.hashCode(); + } + if (hasNodeGroupConfig()) { + hash = (37 * hash) + NODE_GROUP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNodeGroupConfig().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.NodeGroup parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.NodeGroup parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.NodeGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.NodeGroup parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.NodeGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.NodeGroup parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.NodeGroup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.NodeGroup parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.NodeGroup parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.NodeGroup 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.dataproc.v1.NodeGroup parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.NodeGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.dataproc.v1.NodeGroup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Dataproc Node Group.
+   * **The Dataproc `NodeGroup` resource is not related to the
+   * Dataproc [NodeGroupAffinity][google.cloud.dataproc.v1.NodeGroupAffinity]
+   * resource.**
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.NodeGroup} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.NodeGroup) + com.google.cloud.dataproc.v1.NodeGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.NodeGroup.class, com.google.cloud.dataproc.v1.NodeGroup.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.NodeGroup.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + roles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + if (nodeGroupConfigBuilder_ == null) { + nodeGroupConfig_ = null; + } else { + nodeGroupConfig_ = null; + nodeGroupConfigBuilder_ = null; + } + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroup getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroup build() { + com.google.cloud.dataproc.v1.NodeGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroup buildPartial() { + com.google.cloud.dataproc.v1.NodeGroup result = new com.google.cloud.dataproc.v1.NodeGroup(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (((bitField0_ & 0x00000001) != 0)) { + roles_ = java.util.Collections.unmodifiableList(roles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.roles_ = roles_; + if (nodeGroupConfigBuilder_ == null) { + result.nodeGroupConfig_ = nodeGroupConfig_; + } else { + result.nodeGroupConfig_ = nodeGroupConfigBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataproc.v1.NodeGroup) { + return mergeFrom((com.google.cloud.dataproc.v1.NodeGroup)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.NodeGroup other) { + if (other == com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.roles_.isEmpty()) { + if (roles_.isEmpty()) { + roles_ = other.roles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRolesIsMutable(); + roles_.addAll(other.roles_); + } + onChanged(); + } + if (other.hasNodeGroupConfig()) { + mergeNodeGroupConfig(other.getNodeGroupConfig()); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + int tmpRaw = input.readEnum(); + ensureRolesIsMutable(); + roles_.add(tmpRaw); + break; + } // case 16 + case 18: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureRolesIsMutable(); + roles_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 18 + case 26: { + input.readMessage( + getNodeGroupConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The Node group [resource name](https://aip.dev/122).
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The Node group [resource name](https://aip.dev/122).
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The Node group [resource name](https://aip.dev/122).
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The Node group [resource name](https://aip.dev/122).
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The Node group [resource name](https://aip.dev/122).
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.util.List roles_ = + java.util.Collections.emptyList(); + private void ensureRolesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + roles_ = new java.util.ArrayList(roles_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * Required. Node group roles.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return A list containing the roles. + */ + public java.util.List getRolesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.dataproc.v1.NodeGroup.Role>(roles_, roles_converter_); + } + /** + *
+     * Required. Node group roles.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + /** + *
+     * Required. Node group roles.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public com.google.cloud.dataproc.v1.NodeGroup.Role getRoles(int index) { + return roles_converter_.convert(roles_.get(index)); + } + /** + *
+     * Required. Node group roles.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index to set the value at. + * @param value The roles to set. + * @return This builder for chaining. + */ + public Builder setRoles( + int index, com.google.cloud.dataproc.v1.NodeGroup.Role value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * Required. Node group roles.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The roles to add. + * @return This builder for chaining. + */ + public Builder addRoles(com.google.cloud.dataproc.v1.NodeGroup.Role value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * Required. Node group roles.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param values The roles to add. + * @return This builder for chaining. + */ + public Builder addAllRoles( + java.lang.Iterable values) { + ensureRolesIsMutable(); + for (com.google.cloud.dataproc.v1.NodeGroup.Role value : values) { + roles_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+     * Required. Node group roles.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearRoles() { + roles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Node group roles.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return A list containing the enum numeric values on the wire for roles. + */ + public java.util.List + getRolesValueList() { + return java.util.Collections.unmodifiableList(roles_); + } + /** + *
+     * Required. Node group roles.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of roles at the given index. + */ + public int getRolesValue(int index) { + return roles_.get(index); + } + /** + *
+     * Required. Node group roles.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for roles to set. + * @return This builder for chaining. + */ + public Builder setRolesValue( + int index, int value) { + ensureRolesIsMutable(); + roles_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Required. Node group roles.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The enum numeric value on the wire for roles to add. + * @return This builder for chaining. + */ + public Builder addRolesValue(int value) { + ensureRolesIsMutable(); + roles_.add(value); + onChanged(); + return this; + } + /** + *
+     * Required. Node group roles.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param values The enum numeric values on the wire for roles to add. + * @return This builder for chaining. + */ + public Builder addAllRolesValue( + java.lang.Iterable values) { + ensureRolesIsMutable(); + for (int value : values) { + roles_.add(value); + } + onChanged(); + return this; + } + + private com.google.cloud.dataproc.v1.InstanceGroupConfig nodeGroupConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> nodeGroupConfigBuilder_; + /** + *
+     * Optional. The node group instance group configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the nodeGroupConfig field is set. + */ + public boolean hasNodeGroupConfig() { + return nodeGroupConfigBuilder_ != null || nodeGroupConfig_ != null; + } + /** + *
+     * Optional. The node group instance group configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The nodeGroupConfig. + */ + public com.google.cloud.dataproc.v1.InstanceGroupConfig getNodeGroupConfig() { + if (nodeGroupConfigBuilder_ == null) { + return nodeGroupConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : nodeGroupConfig_; + } else { + return nodeGroupConfigBuilder_.getMessage(); + } + } + /** + *
+     * Optional. The node group instance group configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setNodeGroupConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { + if (nodeGroupConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeGroupConfig_ = value; + onChanged(); + } else { + nodeGroupConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Optional. The node group instance group configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setNodeGroupConfig( + com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder builderForValue) { + if (nodeGroupConfigBuilder_ == null) { + nodeGroupConfig_ = builderForValue.build(); + onChanged(); + } else { + nodeGroupConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Optional. The node group instance group configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeNodeGroupConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { + if (nodeGroupConfigBuilder_ == null) { + if (nodeGroupConfig_ != null) { + nodeGroupConfig_ = + com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder(nodeGroupConfig_).mergeFrom(value).buildPartial(); + } else { + nodeGroupConfig_ = value; + } + onChanged(); + } else { + nodeGroupConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Optional. The node group instance group configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearNodeGroupConfig() { + if (nodeGroupConfigBuilder_ == null) { + nodeGroupConfig_ = null; + onChanged(); + } else { + nodeGroupConfig_ = null; + nodeGroupConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Optional. The node group instance group configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getNodeGroupConfigBuilder() { + + onChanged(); + return getNodeGroupConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. The node group instance group configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getNodeGroupConfigOrBuilder() { + if (nodeGroupConfigBuilder_ != null) { + return nodeGroupConfigBuilder_.getMessageOrBuilder(); + } else { + return nodeGroupConfig_ == null ? + com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : nodeGroupConfig_; + } + } + /** + *
+     * Optional. The node group instance group configuration.
+     * 
+ * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> + getNodeGroupConfigFieldBuilder() { + if (nodeGroupConfigBuilder_ == null) { + nodeGroupConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>( + getNodeGroupConfig(), + getParentForChildren(), + isClean()); + nodeGroupConfig_ = null; + } + return nodeGroupConfigBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * Optional. Node group labels.
+     * * Label **keys** must consist of from 1 to 63 characters and conform to
+     *   [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * * Label **values** can be empty. If specified, they must consist of from
+     *   1 to 63 characters and conform to [RFC 1035]
+     *   (https://www.ietf.org/rfc/rfc1035.txt).
+     * * The node group must have no more than 32 labels.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Optional. Node group labels.
+     * * Label **keys** must consist of from 1 to 63 characters and conform to
+     *   [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * * Label **values** can be empty. If specified, they must consist of from
+     *   1 to 63 characters and conform to [RFC 1035]
+     *   (https://www.ietf.org/rfc/rfc1035.txt).
+     * * The node group must have no more than 32 labels.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Optional. Node group labels.
+     * * Label **keys** must consist of from 1 to 63 characters and conform to
+     *   [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * * Label **values** can be empty. If specified, they must consist of from
+     *   1 to 63 characters and conform to [RFC 1035]
+     *   (https://www.ietf.org/rfc/rfc1035.txt).
+     * * The node group must have no more than 32 labels.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Optional. Node group labels.
+     * * Label **keys** must consist of from 1 to 63 characters and conform to
+     *   [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * * Label **values** can be empty. If specified, they must consist of from
+     *   1 to 63 characters and conform to [RFC 1035]
+     *   (https://www.ietf.org/rfc/rfc1035.txt).
+     * * The node group must have no more than 32 labels.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Optional. Node group labels.
+     * * Label **keys** must consist of from 1 to 63 characters and conform to
+     *   [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * * Label **values** can be empty. If specified, they must consist of from
+     *   1 to 63 characters and conform to [RFC 1035]
+     *   (https://www.ietf.org/rfc/rfc1035.txt).
+     * * The node group must have no more than 32 labels.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * Optional. Node group labels.
+     * * Label **keys** must consist of from 1 to 63 characters and conform to
+     *   [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * * Label **values** can be empty. If specified, they must consist of from
+     *   1 to 63 characters and conform to [RFC 1035]
+     *   (https://www.ietf.org/rfc/rfc1035.txt).
+     * * The node group must have no more than 32 labels.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Optional. Node group labels.
+     * * Label **keys** must consist of from 1 to 63 characters and conform to
+     *   [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * * Label **values** can be empty. If specified, they must consist of from
+     *   1 to 63 characters and conform to [RFC 1035]
+     *   (https://www.ietf.org/rfc/rfc1035.txt).
+     * * The node group must have no more than 32 labels.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.NodeGroup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.NodeGroup) + private static final com.google.cloud.dataproc.v1.NodeGroup DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.NodeGroup(); + } + + public static com.google.cloud.dataproc.v1.NodeGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java similarity index 70% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java index a503ed138011..ae39e507149d 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java @@ -1,77 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Node Group Affinity for clusters using sole-tenant node groups.
+ * **The Dataproc `NodeGroupAffinity` resource is not related to the
+ * Dataproc [NodeGroup][google.cloud.dataproc.v1.NodeGroup] resource.**
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.NodeGroupAffinity} */ -public final class NodeGroupAffinity extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NodeGroupAffinity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.NodeGroupAffinity) NodeGroupAffinityOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NodeGroupAffinity.newBuilder() to construct. private NodeGroupAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NodeGroupAffinity() { nodeGroupUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NodeGroupAffinity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.NodeGroupAffinity.class, - com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder.class); + com.google.cloud.dataproc.v1.NodeGroupAffinity.class, com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder.class); } public static final int NODE_GROUP_URI_FIELD_NUMBER = 1; private volatile java.lang.Object nodeGroupUri_; /** - * - * *
    * Required. The URI of a
    * sole-tenant [node group
@@ -84,7 +65,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The nodeGroupUri. */ @java.lang.Override @@ -93,15 +73,14 @@ public java.lang.String getNodeGroupUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeGroupUri_ = s; return s; } } /** - * - * *
    * Required. The URI of a
    * sole-tenant [node group
@@ -114,15 +93,16 @@ public java.lang.String getNodeGroupUri() {
    * 
* * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for nodeGroupUri. */ @java.lang.Override - public com.google.protobuf.ByteString getNodeGroupUriBytes() { + public com.google.protobuf.ByteString + getNodeGroupUriBytes() { java.lang.Object ref = nodeGroupUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nodeGroupUri_ = b; return b; } else { @@ -131,7 +111,6 @@ public com.google.protobuf.ByteString getNodeGroupUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,7 +122,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(nodeGroupUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeGroupUri_); } @@ -167,15 +147,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.dataproc.v1.NodeGroupAffinity)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.NodeGroupAffinity other = - (com.google.cloud.dataproc.v1.NodeGroupAffinity) obj; + com.google.cloud.dataproc.v1.NodeGroupAffinity other = (com.google.cloud.dataproc.v1.NodeGroupAffinity) obj; - if (!getNodeGroupUri().equals(other.getNodeGroupUri())) return false; + if (!getNodeGroupUri() + .equals(other.getNodeGroupUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -194,136 +174,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.NodeGroupAffinity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Node Group Affinity for clusters using sole-tenant node groups.
+   * **The Dataproc `NodeGroupAffinity` resource is not related to the
+   * Dataproc [NodeGroup][google.cloud.dataproc.v1.NodeGroup] resource.**
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.NodeGroupAffinity} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.NodeGroupAffinity) com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.NodeGroupAffinity.class, - com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder.class); + com.google.cloud.dataproc.v1.NodeGroupAffinity.class, com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder.class); } // Construct using com.google.cloud.dataproc.v1.NodeGroupAffinity.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -333,9 +309,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; } @java.lang.Override @@ -354,8 +330,7 @@ public com.google.cloud.dataproc.v1.NodeGroupAffinity build() { @java.lang.Override public com.google.cloud.dataproc.v1.NodeGroupAffinity buildPartial() { - com.google.cloud.dataproc.v1.NodeGroupAffinity result = - new com.google.cloud.dataproc.v1.NodeGroupAffinity(this); + com.google.cloud.dataproc.v1.NodeGroupAffinity result = new com.google.cloud.dataproc.v1.NodeGroupAffinity(this); result.nodeGroupUri_ = nodeGroupUri_; onBuilt(); return result; @@ -365,39 +340,38 @@ public com.google.cloud.dataproc.v1.NodeGroupAffinity buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.NodeGroupAffinity) { - return mergeFrom((com.google.cloud.dataproc.v1.NodeGroupAffinity) other); + return mergeFrom((com.google.cloud.dataproc.v1.NodeGroupAffinity)other); } else { super.mergeFrom(other); return this; @@ -436,19 +410,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - nodeGroupUri_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + nodeGroupUri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -461,8 +433,6 @@ public Builder mergeFrom( private java.lang.Object nodeGroupUri_ = ""; /** - * - * *
      * Required. The URI of a
      * sole-tenant [node group
@@ -475,13 +445,13 @@ public Builder mergeFrom(
      * 
* * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The nodeGroupUri. */ public java.lang.String getNodeGroupUri() { java.lang.Object ref = nodeGroupUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeGroupUri_ = s; return s; @@ -490,8 +460,6 @@ public java.lang.String getNodeGroupUri() { } } /** - * - * *
      * Required. The URI of a
      * sole-tenant [node group
@@ -504,14 +472,15 @@ public java.lang.String getNodeGroupUri() {
      * 
* * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for nodeGroupUri. */ - public com.google.protobuf.ByteString getNodeGroupUriBytes() { + public com.google.protobuf.ByteString + getNodeGroupUriBytes() { java.lang.Object ref = nodeGroupUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nodeGroupUri_ = b; return b; } else { @@ -519,8 +488,6 @@ public com.google.protobuf.ByteString getNodeGroupUriBytes() { } } /** - * - * *
      * Required. The URI of a
      * sole-tenant [node group
@@ -533,22 +500,20 @@ public com.google.protobuf.ByteString getNodeGroupUriBytes() {
      * 
* * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The nodeGroupUri to set. * @return This builder for chaining. */ - public Builder setNodeGroupUri(java.lang.String value) { + public Builder setNodeGroupUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeGroupUri_ = value; onChanged(); return this; } /** - * - * *
      * Required. The URI of a
      * sole-tenant [node group
@@ -561,18 +526,15 @@ public Builder setNodeGroupUri(java.lang.String value) {
      * 
* * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearNodeGroupUri() { - + nodeGroupUri_ = getDefaultInstance().getNodeGroupUri(); onChanged(); return this; } /** - * - * *
      * Required. The URI of a
      * sole-tenant [node group
@@ -585,23 +547,23 @@ public Builder clearNodeGroupUri() {
      * 
* * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for nodeGroupUri to set. * @return This builder for chaining. */ - public Builder setNodeGroupUriBytes(com.google.protobuf.ByteString value) { + public Builder setNodeGroupUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeGroupUri_ = 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); } @@ -611,12 +573,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.NodeGroupAffinity) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.NodeGroupAffinity) private static final com.google.cloud.dataproc.v1.NodeGroupAffinity DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.NodeGroupAffinity(); } @@ -625,27 +587,27 @@ public static com.google.cloud.dataproc.v1.NodeGroupAffinity getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeGroupAffinity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeGroupAffinity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,4 +622,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.NodeGroupAffinity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java similarity index 68% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java index 5ec586551371..ad0184ef279f 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface NodeGroupAffinityOrBuilder - extends +public interface NodeGroupAffinityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.NodeGroupAffinity) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The URI of a
    * sole-tenant [node group
@@ -38,13 +20,10 @@ public interface NodeGroupAffinityOrBuilder
    * 
* * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The nodeGroupUri. */ java.lang.String getNodeGroupUri(); /** - * - * *
    * Required. The URI of a
    * sole-tenant [node group
@@ -57,8 +36,8 @@ public interface NodeGroupAffinityOrBuilder
    * 
* * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for nodeGroupUri. */ - com.google.protobuf.ByteString getNodeGroupUriBytes(); + com.google.protobuf.ByteString + getNodeGroupUriBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupName.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupName.java new file mode 100644 index 000000000000..24daa0f3255d --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class NodeGroupName implements ResourceName { + private static final PathTemplate PROJECT_REGION_CLUSTER_NODE_GROUP = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}"); + private volatile Map fieldValuesMap; + private final String project; + private final String region; + private final String cluster; + private final String nodeGroup; + + @Deprecated + protected NodeGroupName() { + project = null; + region = null; + cluster = null; + nodeGroup = null; + } + + private NodeGroupName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + region = Preconditions.checkNotNull(builder.getRegion()); + cluster = Preconditions.checkNotNull(builder.getCluster()); + nodeGroup = Preconditions.checkNotNull(builder.getNodeGroup()); + } + + public String getProject() { + return project; + } + + public String getRegion() { + return region; + } + + public String getCluster() { + return cluster; + } + + public String getNodeGroup() { + return nodeGroup; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static NodeGroupName of(String project, String region, String cluster, String nodeGroup) { + return newBuilder() + .setProject(project) + .setRegion(region) + .setCluster(cluster) + .setNodeGroup(nodeGroup) + .build(); + } + + public static String format(String project, String region, String cluster, String nodeGroup) { + return newBuilder() + .setProject(project) + .setRegion(region) + .setCluster(cluster) + .setNodeGroup(nodeGroup) + .build() + .toString(); + } + + public static NodeGroupName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_REGION_CLUSTER_NODE_GROUP.validatedMatch( + formattedString, "NodeGroupName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("region"), + matchMap.get("cluster"), + matchMap.get("node_group")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (NodeGroupName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_REGION_CLUSTER_NODE_GROUP.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (region != null) { + fieldMapBuilder.put("region", region); + } + if (cluster != null) { + fieldMapBuilder.put("cluster", cluster); + } + if (nodeGroup != null) { + fieldMapBuilder.put("node_group", nodeGroup); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_REGION_CLUSTER_NODE_GROUP.instantiate( + "project", project, "region", region, "cluster", cluster, "node_group", nodeGroup); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + NodeGroupName that = ((NodeGroupName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.region, that.region) + && Objects.equals(this.cluster, that.cluster) + && Objects.equals(this.nodeGroup, that.nodeGroup); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(region); + h *= 1000003; + h ^= Objects.hashCode(cluster); + h *= 1000003; + h ^= Objects.hashCode(nodeGroup); + return h; + } + + /** Builder for projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}. */ + public static class Builder { + private String project; + private String region; + private String cluster; + private String nodeGroup; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getRegion() { + return region; + } + + public String getCluster() { + return cluster; + } + + public String getNodeGroup() { + return nodeGroup; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setRegion(String region) { + this.region = region; + return this; + } + + public Builder setCluster(String cluster) { + this.cluster = cluster; + return this; + } + + public Builder setNodeGroup(String nodeGroup) { + this.nodeGroup = nodeGroup; + return this; + } + + private Builder(NodeGroupName nodeGroupName) { + this.project = nodeGroupName.project; + this.region = nodeGroupName.region; + this.cluster = nodeGroupName.cluster; + this.nodeGroup = nodeGroupName.nodeGroup; + } + + public NodeGroupName build() { + return new NodeGroupName(this); + } + } +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadata.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadata.java new file mode 100644 index 000000000000..18b83f9aa8ec --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadata.java @@ -0,0 +1,2442 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/operations.proto + +package com.google.cloud.dataproc.v1; + +/** + *
+ * Metadata describing the node group operation.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.NodeGroupOperationMetadata} + */ +public final class NodeGroupOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.NodeGroupOperationMetadata) + NodeGroupOperationMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodeGroupOperationMetadata.newBuilder() to construct. + private NodeGroupOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeGroupOperationMetadata() { + nodeGroupId_ = ""; + clusterUuid_ = ""; + statusHistory_ = java.util.Collections.emptyList(); + operationType_ = 0; + description_ = ""; + warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodeGroupOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.class, com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.Builder.class); + } + + /** + *
+   * Operation type for node group resources.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType} + */ + public enum NodeGroupOperationType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Node group operation type is unknown.
+     * 
+ * + * NODE_GROUP_OPERATION_TYPE_UNSPECIFIED = 0; + */ + NODE_GROUP_OPERATION_TYPE_UNSPECIFIED(0), + /** + *
+     * Create node group operation type.
+     * 
+ * + * CREATE = 1; + */ + CREATE(1), + /** + *
+     * Update node group operation type.
+     * 
+ * + * UPDATE = 2; + */ + UPDATE(2), + /** + *
+     * Delete node group operation type.
+     * 
+ * + * DELETE = 3; + */ + DELETE(3), + /** + *
+     * Resize node group operation type.
+     * 
+ * + * RESIZE = 4; + */ + RESIZE(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Node group operation type is unknown.
+     * 
+ * + * NODE_GROUP_OPERATION_TYPE_UNSPECIFIED = 0; + */ + public static final int NODE_GROUP_OPERATION_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Create node group operation type.
+     * 
+ * + * CREATE = 1; + */ + public static final int CREATE_VALUE = 1; + /** + *
+     * Update node group operation type.
+     * 
+ * + * UPDATE = 2; + */ + public static final int UPDATE_VALUE = 2; + /** + *
+     * Delete node group operation type.
+     * 
+ * + * DELETE = 3; + */ + public static final int DELETE_VALUE = 3; + /** + *
+     * Resize node group operation type.
+     * 
+ * + * RESIZE = 4; + */ + public static final int RESIZE_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NodeGroupOperationType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static NodeGroupOperationType forNumber(int value) { + switch (value) { + case 0: return NODE_GROUP_OPERATION_TYPE_UNSPECIFIED; + case 1: return CREATE; + case 2: return UPDATE; + case 3: return DELETE; + case 4: return RESIZE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + NodeGroupOperationType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NodeGroupOperationType findValueByNumber(int number) { + return NodeGroupOperationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final NodeGroupOperationType[] VALUES = values(); + + public static NodeGroupOperationType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private NodeGroupOperationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType) + } + + public static final int NODE_GROUP_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object nodeGroupId_; + /** + *
+   * Output only. Node group ID for the operation.
+   * 
+ * + * string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The nodeGroupId. + */ + @java.lang.Override + public java.lang.String getNodeGroupId() { + java.lang.Object ref = nodeGroupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeGroupId_ = s; + return s; + } + } + /** + *
+   * Output only. Node group ID for the operation.
+   * 
+ * + * string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for nodeGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNodeGroupIdBytes() { + java.lang.Object ref = nodeGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_UUID_FIELD_NUMBER = 2; + private volatile java.lang.Object clusterUuid_; + /** + *
+   * Output only. Cluster UUID associated with the node group operation.
+   * 
+ * + * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The clusterUuid. + */ + @java.lang.Override + public java.lang.String getClusterUuid() { + java.lang.Object ref = clusterUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterUuid_ = s; + return s; + } + } + /** + *
+   * Output only. Cluster UUID associated with the node group operation.
+   * 
+ * + * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for clusterUuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getClusterUuidBytes() { + java.lang.Object ref = clusterUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 3; + private com.google.cloud.dataproc.v1.ClusterOperationStatus status_; + /** + *
+   * Output only. Current operation status.
+   * 
+ * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return status_ != null; + } + /** + *
+   * Output only. Current operation status.
+   * 
+ * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The status. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatus() { + return status_ == null ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() : status_; + } + /** + *
+   * Output only. Current operation status.
+   * 
+ * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusOrBuilder() { + return getStatus(); + } + + public static final int STATUS_HISTORY_FIELD_NUMBER = 4; + private java.util.List statusHistory_; + /** + *
+   * Output only. The previous operation status.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List getStatusHistoryList() { + return statusHistory_; + } + /** + *
+   * Output only. The previous operation status.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List + getStatusHistoryOrBuilderList() { + return statusHistory_; + } + /** + *
+   * Output only. The previous operation status.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public int getStatusHistoryCount() { + return statusHistory_.size(); + } + /** + *
+   * Output only. The previous operation status.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatusHistory(int index) { + return statusHistory_.get(index); + } + /** + *
+   * Output only. The previous operation status.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder( + int index) { + return statusHistory_.get(index); + } + + public static final int OPERATION_TYPE_FIELD_NUMBER = 5; + private int operationType_; + /** + *
+   * The operation type.
+   * 
+ * + * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * @return The enum numeric value on the wire for operationType. + */ + @java.lang.Override public int getOperationTypeValue() { + return operationType_; + } + /** + *
+   * The operation type.
+   * 
+ * + * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * @return The operationType. + */ + @java.lang.Override public com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType getOperationType() { + @SuppressWarnings("deprecation") + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType result = com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType.valueOf(operationType_); + return result == null ? com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType.UNRECOGNIZED : result; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 6; + private volatile java.lang.Object description_; + /** + *
+   * Output only. Short description of operation.
+   * 
+ * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+   * Output only. Short description of operation.
+   * 
+ * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 7; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * Output only. Labels associated with the operation.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Output only. Labels associated with the operation.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Output only. Labels associated with the operation.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Output only. Labels associated with the operation.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int WARNINGS_FIELD_NUMBER = 8; + private com.google.protobuf.LazyStringList warnings_; + /** + *
+   * Output only. Errors encountered during operation execution.
+   * 
+ * + * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return A list containing the warnings. + */ + public com.google.protobuf.ProtocolStringList + getWarningsList() { + return warnings_; + } + /** + *
+   * Output only. Errors encountered during operation execution.
+   * 
+ * + * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The count of warnings. + */ + public int getWarningsCount() { + return warnings_.size(); + } + /** + *
+   * Output only. Errors encountered during operation execution.
+   * 
+ * + * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the element to return. + * @return The warnings at the given index. + */ + public java.lang.String getWarnings(int index) { + return warnings_.get(index); + } + /** + *
+   * Output only. Errors encountered during operation execution.
+   * 
+ * + * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the value to return. + * @return The bytes of the warnings at the given index. + */ + public com.google.protobuf.ByteString + getWarningsBytes(int index) { + return warnings_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroupId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeGroupId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterUuid_); + } + if (status_ != null) { + output.writeMessage(3, getStatus()); + } + for (int i = 0; i < statusHistory_.size(); i++) { + output.writeMessage(4, statusHistory_.get(i)); + } + if (operationType_ != com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType.NODE_GROUP_OPERATION_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, operationType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 7); + for (int i = 0; i < warnings_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, warnings_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroupId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeGroupId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterUuid_); + } + if (status_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStatus()); + } + for (int i = 0; i < statusHistory_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, statusHistory_.get(i)); + } + if (operationType_ != com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType.NODE_GROUP_OPERATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, operationType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); + } + 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(7, labels__); + } + { + int dataSize = 0; + for (int i = 0; i < warnings_.size(); i++) { + dataSize += computeStringSizeNoTag(warnings_.getRaw(i)); + } + size += dataSize; + size += 1 * getWarningsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataproc.v1.NodeGroupOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata other = (com.google.cloud.dataproc.v1.NodeGroupOperationMetadata) obj; + + if (!getNodeGroupId() + .equals(other.getNodeGroupId())) return false; + if (!getClusterUuid() + .equals(other.getClusterUuid())) return false; + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!getStatusHistoryList() + .equals(other.getStatusHistoryList())) return false; + if (operationType_ != other.operationType_) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getWarningsList() + .equals(other.getWarningsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NODE_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeGroupId().hashCode(); + hash = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER; + hash = (53 * hash) + getClusterUuid().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (getStatusHistoryCount() > 0) { + hash = (37 * hash) + STATUS_HISTORY_FIELD_NUMBER; + hash = (53 * hash) + getStatusHistoryList().hashCode(); + } + hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + operationType_; + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (getWarningsCount() > 0) { + hash = (37 * hash) + WARNINGS_FIELD_NUMBER; + hash = (53 * hash) + getWarningsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata 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.dataproc.v1.NodeGroupOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.dataproc.v1.NodeGroupOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Metadata describing the node group operation.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.NodeGroupOperationMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.NodeGroupOperationMetadata) + com.google.cloud.dataproc.v1.NodeGroupOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 7: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.class, com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + nodeGroupId_ = ""; + + clusterUuid_ = ""; + + if (statusBuilder_ == null) { + status_ = null; + } else { + status_ = null; + statusBuilder_ = null; + } + if (statusHistoryBuilder_ == null) { + statusHistory_ = java.util.Collections.emptyList(); + } else { + statusHistory_ = null; + statusHistoryBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + operationType_ = 0; + + description_ = ""; + + internalGetMutableLabels().clear(); + warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroupOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroupOperationMetadata build() { + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroupOperationMetadata buildPartial() { + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata result = new com.google.cloud.dataproc.v1.NodeGroupOperationMetadata(this); + int from_bitField0_ = bitField0_; + result.nodeGroupId_ = nodeGroupId_; + result.clusterUuid_ = clusterUuid_; + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + if (statusHistoryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + statusHistory_ = java.util.Collections.unmodifiableList(statusHistory_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.statusHistory_ = statusHistory_; + } else { + result.statusHistory_ = statusHistoryBuilder_.build(); + } + result.operationType_ = operationType_; + result.description_ = description_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + if (((bitField0_ & 0x00000004) != 0)) { + warnings_ = warnings_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.warnings_ = warnings_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataproc.v1.NodeGroupOperationMetadata) { + return mergeFrom((com.google.cloud.dataproc.v1.NodeGroupOperationMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.NodeGroupOperationMetadata other) { + if (other == com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.getDefaultInstance()) return this; + if (!other.getNodeGroupId().isEmpty()) { + nodeGroupId_ = other.nodeGroupId_; + onChanged(); + } + if (!other.getClusterUuid().isEmpty()) { + clusterUuid_ = other.clusterUuid_; + onChanged(); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (statusHistoryBuilder_ == null) { + if (!other.statusHistory_.isEmpty()) { + if (statusHistory_.isEmpty()) { + statusHistory_ = other.statusHistory_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStatusHistoryIsMutable(); + statusHistory_.addAll(other.statusHistory_); + } + onChanged(); + } + } else { + if (!other.statusHistory_.isEmpty()) { + if (statusHistoryBuilder_.isEmpty()) { + statusHistoryBuilder_.dispose(); + statusHistoryBuilder_ = null; + statusHistory_ = other.statusHistory_; + bitField0_ = (bitField0_ & ~0x00000001); + statusHistoryBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStatusHistoryFieldBuilder() : null; + } else { + statusHistoryBuilder_.addAllMessages(other.statusHistory_); + } + } + } + if (other.operationType_ != 0) { + setOperationTypeValue(other.getOperationTypeValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + if (!other.warnings_.isEmpty()) { + if (warnings_.isEmpty()) { + warnings_ = other.warnings_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureWarningsIsMutable(); + warnings_.addAll(other.warnings_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + nodeGroupId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + clusterUuid_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + com.google.cloud.dataproc.v1.ClusterOperationStatus m = + input.readMessage( + com.google.cloud.dataproc.v1.ClusterOperationStatus.parser(), + extensionRegistry); + if (statusHistoryBuilder_ == null) { + ensureStatusHistoryIsMutable(); + statusHistory_.add(m); + } else { + statusHistoryBuilder_.addMessage(m); + } + break; + } // case 34 + case 40: { + operationType_ = input.readEnum(); + + break; + } // case 40 + case 50: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 58 + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + ensureWarningsIsMutable(); + warnings_.add(s); + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object nodeGroupId_ = ""; + /** + *
+     * Output only. Node group ID for the operation.
+     * 
+ * + * string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The nodeGroupId. + */ + public java.lang.String getNodeGroupId() { + java.lang.Object ref = nodeGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Node group ID for the operation.
+     * 
+ * + * string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for nodeGroupId. + */ + public com.google.protobuf.ByteString + getNodeGroupIdBytes() { + java.lang.Object ref = nodeGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Node group ID for the operation.
+     * 
+ * + * string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The nodeGroupId to set. + * @return This builder for chaining. + */ + public Builder setNodeGroupId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeGroupId_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. Node group ID for the operation.
+     * 
+ * + * string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearNodeGroupId() { + + nodeGroupId_ = getDefaultInstance().getNodeGroupId(); + onChanged(); + return this; + } + /** + *
+     * Output only. Node group ID for the operation.
+     * 
+ * + * string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for nodeGroupId to set. + * @return This builder for chaining. + */ + public Builder setNodeGroupIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeGroupId_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterUuid_ = ""; + /** + *
+     * Output only. Cluster UUID associated with the node group operation.
+     * 
+ * + * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The clusterUuid. + */ + public java.lang.String getClusterUuid() { + java.lang.Object ref = clusterUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Cluster UUID associated with the node group operation.
+     * 
+ * + * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for clusterUuid. + */ + public com.google.protobuf.ByteString + getClusterUuidBytes() { + java.lang.Object ref = clusterUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Cluster UUID associated with the node group operation.
+     * 
+ * + * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The clusterUuid to set. + * @return This builder for chaining. + */ + public Builder setClusterUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterUuid_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. Cluster UUID associated with the node group operation.
+     * 
+ * + * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearClusterUuid() { + + clusterUuid_ = getDefaultInstance().getClusterUuid(); + onChanged(); + return this; + } + /** + *
+     * Output only. Cluster UUID associated with the node group operation.
+     * 
+ * + * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for clusterUuid to set. + * @return This builder for chaining. + */ + public Builder setClusterUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterUuid_ = value; + onChanged(); + return this; + } + + private com.google.cloud.dataproc.v1.ClusterOperationStatus status_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> statusBuilder_; + /** + *
+     * Output only. Current operation status.
+     * 
+ * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return statusBuilder_ != null || status_ != null; + } + /** + *
+     * Output only. Current operation status.
+     * 
+ * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The status. + */ + public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Current operation status.
+     * 
+ * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setStatus(com.google.cloud.dataproc.v1.ClusterOperationStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. Current operation status.
+     * 
+ * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setStatus( + com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. Current operation status.
+     * 
+ * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeStatus(com.google.cloud.dataproc.v1.ClusterOperationStatus value) { + if (statusBuilder_ == null) { + if (status_ != null) { + status_ = + com.google.cloud.dataproc.v1.ClusterOperationStatus.newBuilder(status_).mergeFrom(value).buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. Current operation status.
+     * 
+ * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + status_ = null; + statusBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. Current operation status.
+     * 
+ * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder getStatusBuilder() { + + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Current operation status.
+     * 
+ * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() : status_; + } + } + /** + *
+     * Output only. Current operation status.
+     * 
+ * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private java.util.List statusHistory_ = + java.util.Collections.emptyList(); + private void ensureStatusHistoryIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + statusHistory_ = new java.util.ArrayList(statusHistory_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> statusHistoryBuilder_; + + /** + *
+     * Output only. The previous operation status.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List getStatusHistoryList() { + if (statusHistoryBuilder_ == null) { + return java.util.Collections.unmodifiableList(statusHistory_); + } else { + return statusHistoryBuilder_.getMessageList(); + } + } + /** + *
+     * Output only. The previous operation status.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public int getStatusHistoryCount() { + if (statusHistoryBuilder_ == null) { + return statusHistory_.size(); + } else { + return statusHistoryBuilder_.getCount(); + } + } + /** + *
+     * Output only. The previous operation status.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatusHistory(int index) { + if (statusHistoryBuilder_ == null) { + return statusHistory_.get(index); + } else { + return statusHistoryBuilder_.getMessage(index); + } + } + /** + *
+     * Output only. The previous operation status.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setStatusHistory( + int index, com.google.cloud.dataproc.v1.ClusterOperationStatus value) { + if (statusHistoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatusHistoryIsMutable(); + statusHistory_.set(index, value); + onChanged(); + } else { + statusHistoryBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Output only. The previous operation status.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setStatusHistory( + int index, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { + if (statusHistoryBuilder_ == null) { + ensureStatusHistoryIsMutable(); + statusHistory_.set(index, builderForValue.build()); + onChanged(); + } else { + statusHistoryBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. The previous operation status.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addStatusHistory(com.google.cloud.dataproc.v1.ClusterOperationStatus value) { + if (statusHistoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatusHistoryIsMutable(); + statusHistory_.add(value); + onChanged(); + } else { + statusHistoryBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Output only. The previous operation status.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addStatusHistory( + int index, com.google.cloud.dataproc.v1.ClusterOperationStatus value) { + if (statusHistoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatusHistoryIsMutable(); + statusHistory_.add(index, value); + onChanged(); + } else { + statusHistoryBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Output only. The previous operation status.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addStatusHistory( + com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { + if (statusHistoryBuilder_ == null) { + ensureStatusHistoryIsMutable(); + statusHistory_.add(builderForValue.build()); + onChanged(); + } else { + statusHistoryBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. The previous operation status.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addStatusHistory( + int index, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { + if (statusHistoryBuilder_ == null) { + ensureStatusHistoryIsMutable(); + statusHistory_.add(index, builderForValue.build()); + onChanged(); + } else { + statusHistoryBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. The previous operation status.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addAllStatusHistory( + java.lang.Iterable values) { + if (statusHistoryBuilder_ == null) { + ensureStatusHistoryIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, statusHistory_); + onChanged(); + } else { + statusHistoryBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Output only. The previous operation status.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearStatusHistory() { + if (statusHistoryBuilder_ == null) { + statusHistory_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + statusHistoryBuilder_.clear(); + } + return this; + } + /** + *
+     * Output only. The previous operation status.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder removeStatusHistory(int index) { + if (statusHistoryBuilder_ == null) { + ensureStatusHistoryIsMutable(); + statusHistory_.remove(index); + onChanged(); + } else { + statusHistoryBuilder_.remove(index); + } + return this; + } + /** + *
+     * Output only. The previous operation status.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder getStatusHistoryBuilder( + int index) { + return getStatusHistoryFieldBuilder().getBuilder(index); + } + /** + *
+     * Output only. The previous operation status.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder( + int index) { + if (statusHistoryBuilder_ == null) { + return statusHistory_.get(index); } else { + return statusHistoryBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Output only. The previous operation status.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getStatusHistoryOrBuilderList() { + if (statusHistoryBuilder_ != null) { + return statusHistoryBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(statusHistory_); + } + } + /** + *
+     * Output only. The previous operation status.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder addStatusHistoryBuilder() { + return getStatusHistoryFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()); + } + /** + *
+     * Output only. The previous operation status.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder addStatusHistoryBuilder( + int index) { + return getStatusHistoryFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()); + } + /** + *
+     * Output only. The previous operation status.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getStatusHistoryBuilderList() { + return getStatusHistoryFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> + getStatusHistoryFieldBuilder() { + if (statusHistoryBuilder_ == null) { + statusHistoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder>( + statusHistory_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + statusHistory_ = null; + } + return statusHistoryBuilder_; + } + + private int operationType_ = 0; + /** + *
+     * The operation type.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * @return The enum numeric value on the wire for operationType. + */ + @java.lang.Override public int getOperationTypeValue() { + return operationType_; + } + /** + *
+     * The operation type.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * @param value The enum numeric value on the wire for operationType to set. + * @return This builder for chaining. + */ + public Builder setOperationTypeValue(int value) { + + operationType_ = value; + onChanged(); + return this; + } + /** + *
+     * The operation type.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * @return The operationType. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType getOperationType() { + @SuppressWarnings("deprecation") + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType result = com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType.valueOf(operationType_); + return result == null ? com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType.UNRECOGNIZED : result; + } + /** + *
+     * The operation type.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * @param value The operationType to set. + * @return This builder for chaining. + */ + public Builder setOperationType(com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType value) { + if (value == null) { + throw new NullPointerException(); + } + + operationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The operation type.
+     * 
+ * + * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * @return This builder for chaining. + */ + public Builder clearOperationType() { + + operationType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+     * Output only. Short description of operation.
+     * 
+ * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Short description of operation.
+     * 
+ * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Short description of operation.
+     * 
+ * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. Short description of operation.
+     * 
+ * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+     * Output only. Short description of operation.
+     * 
+ * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * Output only. Labels associated with the operation.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Output only. Labels associated with the operation.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Output only. Labels associated with the operation.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Output only. Labels associated with the operation.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Output only. Labels associated with the operation.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * Output only. Labels associated with the operation.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Output only. Labels associated with the operation.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.LazyStringList warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureWarningsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); + bitField0_ |= 0x00000004; + } + } + /** + *
+     * Output only. Errors encountered during operation execution.
+     * 
+ * + * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return A list containing the warnings. + */ + public com.google.protobuf.ProtocolStringList + getWarningsList() { + return warnings_.getUnmodifiableView(); + } + /** + *
+     * Output only. Errors encountered during operation execution.
+     * 
+ * + * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The count of warnings. + */ + public int getWarningsCount() { + return warnings_.size(); + } + /** + *
+     * Output only. Errors encountered during operation execution.
+     * 
+ * + * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the element to return. + * @return The warnings at the given index. + */ + public java.lang.String getWarnings(int index) { + return warnings_.get(index); + } + /** + *
+     * Output only. Errors encountered during operation execution.
+     * 
+ * + * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the value to return. + * @return The bytes of the warnings at the given index. + */ + public com.google.protobuf.ByteString + getWarningsBytes(int index) { + return warnings_.getByteString(index); + } + /** + *
+     * Output only. Errors encountered during operation execution.
+     * 
+ * + * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index to set the value at. + * @param value The warnings to set. + * @return This builder for chaining. + */ + public Builder setWarnings( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Output only. Errors encountered during operation execution.
+     * 
+ * + * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The warnings to add. + * @return This builder for chaining. + */ + public Builder addWarnings( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.add(value); + onChanged(); + return this; + } + /** + *
+     * Output only. Errors encountered during operation execution.
+     * 
+ * + * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param values The warnings to add. + * @return This builder for chaining. + */ + public Builder addAllWarnings( + java.lang.Iterable values) { + ensureWarningsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, warnings_); + onChanged(); + return this; + } + /** + *
+     * Output only. Errors encountered during operation execution.
+     * 
+ * + * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearWarnings() { + warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Output only. Errors encountered during operation execution.
+     * 
+ * + * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes of the warnings to add. + * @return This builder for chaining. + */ + public Builder addWarningsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureWarningsIsMutable(); + warnings_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.NodeGroupOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.NodeGroupOperationMetadata) + private static final com.google.cloud.dataproc.v1.NodeGroupOperationMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.NodeGroupOperationMetadata(); + } + + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeGroupOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroupOperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadataOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..6eca5704ae78 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadataOrBuilder.java @@ -0,0 +1,256 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/operations.proto + +package com.google.cloud.dataproc.v1; + +public interface NodeGroupOperationMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.NodeGroupOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. Node group ID for the operation.
+   * 
+ * + * string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The nodeGroupId. + */ + java.lang.String getNodeGroupId(); + /** + *
+   * Output only. Node group ID for the operation.
+   * 
+ * + * string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for nodeGroupId. + */ + com.google.protobuf.ByteString + getNodeGroupIdBytes(); + + /** + *
+   * Output only. Cluster UUID associated with the node group operation.
+   * 
+ * + * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The clusterUuid. + */ + java.lang.String getClusterUuid(); + /** + *
+   * Output only. Cluster UUID associated with the node group operation.
+   * 
+ * + * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for clusterUuid. + */ + com.google.protobuf.ByteString + getClusterUuidBytes(); + + /** + *
+   * Output only. Current operation status.
+   * 
+ * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + *
+   * Output only. Current operation status.
+   * 
+ * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The status. + */ + com.google.cloud.dataproc.v1.ClusterOperationStatus getStatus(); + /** + *
+   * Output only. Current operation status.
+   * 
+ * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusOrBuilder(); + + /** + *
+   * Output only. The previous operation status.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getStatusHistoryList(); + /** + *
+   * Output only. The previous operation status.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.dataproc.v1.ClusterOperationStatus getStatusHistory(int index); + /** + *
+   * Output only. The previous operation status.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + int getStatusHistoryCount(); + /** + *
+   * Output only. The previous operation status.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getStatusHistoryOrBuilderList(); + /** + *
+   * Output only. The previous operation status.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder( + int index); + + /** + *
+   * The operation type.
+   * 
+ * + * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * @return The enum numeric value on the wire for operationType. + */ + int getOperationTypeValue(); + /** + *
+   * The operation type.
+   * 
+ * + * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * @return The operationType. + */ + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType getOperationType(); + + /** + *
+   * Output only. Short description of operation.
+   * 
+ * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+   * Output only. Short description of operation.
+   * 
+ * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+   * Output only. Labels associated with the operation.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + int getLabelsCount(); + /** + *
+   * Output only. Labels associated with the operation.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * Output only. Labels associated with the operation.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Output only. Labels associated with the operation.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Output only. Labels associated with the operation.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); + + /** + *
+   * Output only. Errors encountered during operation execution.
+   * 
+ * + * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return A list containing the warnings. + */ + java.util.List + getWarningsList(); + /** + *
+   * Output only. Errors encountered during operation execution.
+   * 
+ * + * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The count of warnings. + */ + int getWarningsCount(); + /** + *
+   * Output only. Errors encountered during operation execution.
+   * 
+ * + * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the element to return. + * @return The warnings at the given index. + */ + java.lang.String getWarnings(int index); + /** + *
+   * Output only. Errors encountered during operation execution.
+   * 
+ * + * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the value to return. + * @return The bytes of the warnings at the given index. + */ + com.google.protobuf.ByteString + getWarningsBytes(int index); +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOrBuilder.java new file mode 100644 index 000000000000..d7659662e59a --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOrBuilder.java @@ -0,0 +1,191 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface NodeGroupOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.NodeGroup) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The Node group [resource name](https://aip.dev/122).
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The Node group [resource name](https://aip.dev/122).
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. Node group roles.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return A list containing the roles. + */ + java.util.List getRolesList(); + /** + *
+   * Required. Node group roles.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The count of roles. + */ + int getRolesCount(); + /** + *
+   * Required. Node group roles.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the element to return. + * @return The roles at the given index. + */ + com.google.cloud.dataproc.v1.NodeGroup.Role getRoles(int index); + /** + *
+   * Required. Node group roles.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return A list containing the enum numeric values on the wire for roles. + */ + java.util.List + getRolesValueList(); + /** + *
+   * Required. Node group roles.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of roles at the given index. + */ + int getRolesValue(int index); + + /** + *
+   * Optional. The node group instance group configuration.
+   * 
+ * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the nodeGroupConfig field is set. + */ + boolean hasNodeGroupConfig(); + /** + *
+   * Optional. The node group instance group configuration.
+   * 
+ * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The nodeGroupConfig. + */ + com.google.cloud.dataproc.v1.InstanceGroupConfig getNodeGroupConfig(); + /** + *
+   * Optional. The node group instance group configuration.
+   * 
+ * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getNodeGroupConfigOrBuilder(); + + /** + *
+   * Optional. Node group labels.
+   * * Label **keys** must consist of from 1 to 63 characters and conform to
+   *   [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * * Label **values** can be empty. If specified, they must consist of from
+   *   1 to 63 characters and conform to [RFC 1035]
+   *   (https://www.ietf.org/rfc/rfc1035.txt).
+   * * The node group must have no more than 32 labels.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + *
+   * Optional. Node group labels.
+   * * Label **keys** must consist of from 1 to 63 characters and conform to
+   *   [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * * Label **values** can be empty. If specified, they must consist of from
+   *   1 to 63 characters and conform to [RFC 1035]
+   *   (https://www.ietf.org/rfc/rfc1035.txt).
+   * * The node group must have no more than 32 labels.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * Optional. Node group labels.
+   * * Label **keys** must consist of from 1 to 63 characters and conform to
+   *   [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * * Label **values** can be empty. If specified, they must consist of from
+   *   1 to 63 characters and conform to [RFC 1035]
+   *   (https://www.ietf.org/rfc/rfc1035.txt).
+   * * The node group must have no more than 32 labels.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Optional. Node group labels.
+   * * Label **keys** must consist of from 1 to 63 characters and conform to
+   *   [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * * Label **values** can be empty. If specified, they must consist of from
+   *   1 to 63 characters and conform to [RFC 1035]
+   *   (https://www.ietf.org/rfc/rfc1035.txt).
+   * * The node group must have no more than 32 labels.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Optional. Node group labels.
+   * * Label **keys** must consist of from 1 to 63 characters and conform to
+   *   [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * * Label **values** can be empty. If specified, they must consist of from
+   *   1 to 63 characters and conform to [RFC 1035]
+   *   (https://www.ietf.org/rfc/rfc1035.txt).
+   * * The node group must have no more than 32 labels.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupsProto.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupsProto.java new file mode 100644 index 000000000000..b9159d16a5d2 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupsProto.java @@ -0,0 +1,138 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/node_groups.proto + +package com.google.cloud.dataproc.v1; + +public final class NodeGroupsProto { + private NodeGroupsProto() {} + 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_dataproc_v1_CreateNodeGroupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_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/dataproc/v1/node_groups.p" + + "roto\022\030google.cloud.dataproc.v1\032\034google/a" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032\'google/cloud/" + + "dataproc/v1/clusters.proto\032#google/longr" + + "unning/operations.proto\032\036google/protobuf" + + "/duration.proto\"\306\001\n\026CreateNodeGroupReque" + + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!dataproc.goo" + + "gleapis.com/NodeGroup\022<\n\nnode_group\030\002 \001(" + + "\0132#.google.cloud.dataproc.v1.NodeGroupB\003" + + "\340A\002\022\032\n\rnode_group_id\030\004 \001(\tB\003\340A\001\022\027\n\nreque" + + "st_id\030\003 \001(\tB\003\340A\001\"\236\001\n\026ResizeNodeGroupRequ" + + "est\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\021\n\004size\030\002 \001(\005B\003\340A" + + "\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022E\n\035graceful_d" + + "ecommission_timeout\030\004 \001(\0132\031.google.proto" + + "buf.DurationB\003\340A\001\"N\n\023GetNodeGroupRequest" + + "\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dataproc.googlea" + + "pis.com/NodeGroup2\247\006\n\023NodeGroupControlle" + + "r\022\225\002\n\017CreateNodeGroup\0220.google.cloud.dat" + + "aproc.v1.CreateNodeGroupRequest\032\035.google" + + ".longrunning.Operation\"\260\001\202\323\344\223\002E\"7/v1/{pa" + + "rent=projects/*/regions/*/clusters/*}/no" + + "deGroups:\nnode_group\332A\037parent,node_group" + + ",node_group_id\312A@\n\tNodeGroup\0223google.clo" + + "ud.dataproc.v1.NodeGroupOperationMetadat" + + "a\022\375\001\n\017ResizeNodeGroup\0220.google.cloud.dat" + + "aproc.v1.ResizeNodeGroupRequest\032\035.google" + + ".longrunning.Operation\"\230\001\202\323\344\223\002C\">/v1/{na" + + "me=projects/*/regions/*/clusters/*/nodeG" + + "roups/*}:resize:\001*\332A\tname,size\312A@\n\tNodeG" + + "roup\0223google.cloud.dataproc.v1.NodeGroup" + + "OperationMetadata\022\252\001\n\014GetNodeGroup\022-.goo" + + "gle.cloud.dataproc.v1.GetNodeGroupReques" + + "t\032#.google.cloud.dataproc.v1.NodeGroup\"F" + + "\202\323\344\223\0029\0227/v1/{name=projects/*/regions/*/c" + + "lusters/*/nodeGroups/*}\332A\004name\032K\312A\027datap" + + "roc.googleapis.com\322A.https://www.googlea" + + "pis.com/auth/cloud-platformB\325\001\n\034com.goog" + + "le.cloud.dataproc.v1B\017NodeGroupsProtoP\001Z" + + "@google.golang.org/genproto/googleapis/c" + + "loud/dataproc/v1;dataproc\352A_\n%dataproc.g" + + "oogleapis.com/ClusterRegion\0226projects/{p" + + "roject}/regions/{region}/clusters/{clust" + + "er}b\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.dataproc.v1.ClustersProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_descriptor, + new java.lang.String[] { "Parent", "NodeGroup", "NodeGroupId", "RequestId", }); + internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_descriptor, + new java.lang.String[] { "Name", "Size", "RequestId", "GracefulDecommissionTimeout", }); + internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_descriptor, + new java.lang.String[] { "Name", }); + 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.resourceDefinition); + 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.dataproc.v1.ClustersProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java similarity index 68% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java index 5817a83bc02f..1c7e46444590 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Specifies an executable to run on a fully configured node and a
  * timeout period for executable completion.
@@ -28,57 +11,52 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.NodeInitializationAction}
  */
-public final class NodeInitializationAction extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class NodeInitializationAction extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.NodeInitializationAction)
     NodeInitializationActionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use NodeInitializationAction.newBuilder() to construct.
   private NodeInitializationAction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private NodeInitializationAction() {
     executableFile_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new NodeInitializationAction();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto
-        .internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.ClustersProto
-        .internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.NodeInitializationAction.class,
-            com.google.cloud.dataproc.v1.NodeInitializationAction.Builder.class);
+            com.google.cloud.dataproc.v1.NodeInitializationAction.class, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder.class);
   }
 
   public static final int EXECUTABLE_FILE_FIELD_NUMBER = 1;
   private volatile java.lang.Object executableFile_;
   /**
-   *
-   *
    * 
    * Required. Cloud Storage URI of executable file.
    * 
* * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The executableFile. */ @java.lang.Override @@ -87,29 +65,29 @@ public java.lang.String getExecutableFile() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); executableFile_ = s; return s; } } /** - * - * *
    * Required. Cloud Storage URI of executable file.
    * 
* * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for executableFile. */ @java.lang.Override - public com.google.protobuf.ByteString getExecutableFileBytes() { + public com.google.protobuf.ByteString + getExecutableFileBytes() { java.lang.Object ref = executableFile_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); executableFile_ = b; return b; } else { @@ -120,8 +98,6 @@ public com.google.protobuf.ByteString getExecutableFileBytes() { public static final int EXECUTION_TIMEOUT_FIELD_NUMBER = 2; private com.google.protobuf.Duration executionTimeout_; /** - * - * *
    * Optional. Amount of time executable has to complete. Default is
    * 10 minutes (see JSON representation of
@@ -131,10 +107,7 @@ public com.google.protobuf.ByteString getExecutableFileBytes() {
    * period) if the executable is not completed at end of the timeout period.
    * 
* - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the executionTimeout field is set. */ @java.lang.Override @@ -142,8 +115,6 @@ public boolean hasExecutionTimeout() { return executionTimeout_ != null; } /** - * - * *
    * Optional. Amount of time executable has to complete. Default is
    * 10 minutes (see JSON representation of
@@ -153,21 +124,14 @@ public boolean hasExecutionTimeout() {
    * period) if the executable is not completed at end of the timeout period.
    * 
* - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The executionTimeout. */ @java.lang.Override public com.google.protobuf.Duration getExecutionTimeout() { - return executionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : executionTimeout_; + return executionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_; } /** - * - * *
    * Optional. Amount of time executable has to complete. Default is
    * 10 minutes (see JSON representation of
@@ -177,9 +141,7 @@ public com.google.protobuf.Duration getExecutionTimeout() {
    * period) if the executable is not completed at end of the timeout period.
    * 
* - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { @@ -187,7 +149,6 @@ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +160,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(executableFile_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, executableFile_); } @@ -219,7 +181,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, executableFile_); } if (executionTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExecutionTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExecutionTimeout()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -229,18 +192,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.dataproc.v1.NodeInitializationAction)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.NodeInitializationAction other = - (com.google.cloud.dataproc.v1.NodeInitializationAction) obj; + com.google.cloud.dataproc.v1.NodeInitializationAction other = (com.google.cloud.dataproc.v1.NodeInitializationAction) obj; - if (!getExecutableFile().equals(other.getExecutableFile())) return false; + if (!getExecutableFile() + .equals(other.getExecutableFile())) return false; if (hasExecutionTimeout() != other.hasExecutionTimeout()) return false; if (hasExecutionTimeout()) { - if (!getExecutionTimeout().equals(other.getExecutionTimeout())) return false; + if (!getExecutionTimeout() + .equals(other.getExecutionTimeout())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -265,104 +229,96 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.NodeInitializationAction 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.dataproc.v1.NodeInitializationAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.NodeInitializationAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.NodeInitializationAction prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.NodeInitializationAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specifies an executable to run on a fully configured node and a
    * timeout period for executable completion.
@@ -370,32 +326,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.NodeInitializationAction}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.NodeInitializationAction)
       com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.NodeInitializationAction.class,
-              com.google.cloud.dataproc.v1.NodeInitializationAction.Builder.class);
+              com.google.cloud.dataproc.v1.NodeInitializationAction.class, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.NodeInitializationAction.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -411,9 +368,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor;
     }
 
     @java.lang.Override
@@ -432,8 +389,7 @@ public com.google.cloud.dataproc.v1.NodeInitializationAction build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.NodeInitializationAction buildPartial() {
-      com.google.cloud.dataproc.v1.NodeInitializationAction result =
-          new com.google.cloud.dataproc.v1.NodeInitializationAction(this);
+      com.google.cloud.dataproc.v1.NodeInitializationAction result = new com.google.cloud.dataproc.v1.NodeInitializationAction(this);
       result.executableFile_ = executableFile_;
       if (executionTimeoutBuilder_ == null) {
         result.executionTimeout_ = executionTimeout_;
@@ -448,39 +404,38 @@ public com.google.cloud.dataproc.v1.NodeInitializationAction buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.NodeInitializationAction) {
-        return mergeFrom((com.google.cloud.dataproc.v1.NodeInitializationAction) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.NodeInitializationAction)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -488,8 +443,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.NodeInitializationAction other) {
-      if (other == com.google.cloud.dataproc.v1.NodeInitializationAction.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.dataproc.v1.NodeInitializationAction.getDefaultInstance()) return this;
       if (!other.getExecutableFile().isEmpty()) {
         executableFile_ = other.executableFile_;
         onChanged();
@@ -523,26 +477,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                executableFile_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(
-                    getExecutionTimeoutFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              executableFile_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getExecutionTimeoutFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -555,20 +507,18 @@ public Builder mergeFrom(
 
     private java.lang.Object executableFile_ = "";
     /**
-     *
-     *
      * 
      * Required. Cloud Storage URI of executable file.
      * 
* * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The executableFile. */ public java.lang.String getExecutableFile() { java.lang.Object ref = executableFile_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); executableFile_ = s; return s; @@ -577,21 +527,20 @@ public java.lang.String getExecutableFile() { } } /** - * - * *
      * Required. Cloud Storage URI of executable file.
      * 
* * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for executableFile. */ - public com.google.protobuf.ByteString getExecutableFileBytes() { + public com.google.protobuf.ByteString + getExecutableFileBytes() { java.lang.Object ref = executableFile_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); executableFile_ = b; return b; } else { @@ -599,61 +548,54 @@ public com.google.protobuf.ByteString getExecutableFileBytes() { } } /** - * - * *
      * Required. Cloud Storage URI of executable file.
      * 
* * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The executableFile to set. * @return This builder for chaining. */ - public Builder setExecutableFile(java.lang.String value) { + public Builder setExecutableFile( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + executableFile_ = value; onChanged(); return this; } /** - * - * *
      * Required. Cloud Storage URI of executable file.
      * 
* * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearExecutableFile() { - + executableFile_ = getDefaultInstance().getExecutableFile(); onChanged(); return this; } /** - * - * *
      * Required. Cloud Storage URI of executable file.
      * 
* * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for executableFile to set. * @return This builder for chaining. */ - public Builder setExecutableFileBytes(com.google.protobuf.ByteString value) { + public Builder setExecutableFileBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + executableFile_ = value; onChanged(); return this; @@ -661,13 +603,8 @@ public Builder setExecutableFileBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Duration executionTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - executionTimeoutBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> executionTimeoutBuilder_; /** - * - * *
      * Optional. Amount of time executable has to complete. Default is
      * 10 minutes (see JSON representation of
@@ -677,18 +614,13 @@ public Builder setExecutableFileBytes(com.google.protobuf.ByteString value) {
      * period) if the executable is not completed at end of the timeout period.
      * 
* - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the executionTimeout field is set. */ public boolean hasExecutionTimeout() { return executionTimeoutBuilder_ != null || executionTimeout_ != null; } /** - * - * *
      * Optional. Amount of time executable has to complete. Default is
      * 10 minutes (see JSON representation of
@@ -698,24 +630,17 @@ public boolean hasExecutionTimeout() {
      * period) if the executable is not completed at end of the timeout period.
      * 
* - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The executionTimeout. */ public com.google.protobuf.Duration getExecutionTimeout() { if (executionTimeoutBuilder_ == null) { - return executionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : executionTimeout_; + return executionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_; } else { return executionTimeoutBuilder_.getMessage(); } } /** - * - * *
      * Optional. Amount of time executable has to complete. Default is
      * 10 minutes (see JSON representation of
@@ -725,9 +650,7 @@ public com.google.protobuf.Duration getExecutionTimeout() {
      * period) if the executable is not completed at end of the timeout period.
      * 
* - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setExecutionTimeout(com.google.protobuf.Duration value) { if (executionTimeoutBuilder_ == null) { @@ -743,8 +666,6 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. Amount of time executable has to complete. Default is
      * 10 minutes (see JSON representation of
@@ -754,11 +675,10 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration value) {
      * period) if the executable is not completed at end of the timeout period.
      * 
* - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setExecutionTimeout( + com.google.protobuf.Duration.Builder builderForValue) { if (executionTimeoutBuilder_ == null) { executionTimeout_ = builderForValue.build(); onChanged(); @@ -769,8 +689,6 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderF return this; } /** - * - * *
      * Optional. Amount of time executable has to complete. Default is
      * 10 minutes (see JSON representation of
@@ -780,17 +698,13 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderF
      * period) if the executable is not completed at end of the timeout period.
      * 
* - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { if (executionTimeoutBuilder_ == null) { if (executionTimeout_ != null) { executionTimeout_ = - com.google.protobuf.Duration.newBuilder(executionTimeout_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(executionTimeout_).mergeFrom(value).buildPartial(); } else { executionTimeout_ = value; } @@ -802,8 +716,6 @@ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. Amount of time executable has to complete. Default is
      * 10 minutes (see JSON representation of
@@ -813,9 +725,7 @@ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) {
      * period) if the executable is not completed at end of the timeout period.
      * 
* - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearExecutionTimeout() { if (executionTimeoutBuilder_ == null) { @@ -829,8 +739,6 @@ public Builder clearExecutionTimeout() { return this; } /** - * - * *
      * Optional. Amount of time executable has to complete. Default is
      * 10 minutes (see JSON representation of
@@ -840,18 +748,14 @@ public Builder clearExecutionTimeout() {
      * period) if the executable is not completed at end of the timeout period.
      * 
* - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() { - + onChanged(); return getExecutionTimeoutFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Amount of time executable has to complete. Default is
      * 10 minutes (see JSON representation of
@@ -861,22 +765,17 @@ public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() {
      * period) if the executable is not completed at end of the timeout period.
      * 
* - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { if (executionTimeoutBuilder_ != null) { return executionTimeoutBuilder_.getMessageOrBuilder(); } else { - return executionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : executionTimeout_; + return executionTimeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_; } } /** - * - * *
      * Optional. Amount of time executable has to complete. Default is
      * 10 minutes (see JSON representation of
@@ -886,29 +785,24 @@ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() {
      * period) if the executable is not completed at end of the timeout period.
      * 
* - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; */ 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> getExecutionTimeoutFieldBuilder() { if (executionTimeoutBuilder_ == null) { - executionTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getExecutionTimeout(), getParentForChildren(), isClean()); + executionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getExecutionTimeout(), + getParentForChildren(), + isClean()); executionTimeout_ = null; } return executionTimeoutBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -918,12 +812,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.NodeInitializationAction) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.NodeInitializationAction) private static final com.google.cloud.dataproc.v1.NodeInitializationAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.NodeInitializationAction(); } @@ -932,27 +826,27 @@ public static com.google.cloud.dataproc.v1.NodeInitializationAction getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeInitializationAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeInitializationAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -967,4 +861,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.NodeInitializationAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java similarity index 67% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java index a16592c0ee71..51b576b7abed 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface NodeInitializationActionOrBuilder - extends +public interface NodeInitializationActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.NodeInitializationAction) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Cloud Storage URI of executable file.
    * 
* * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The executableFile. */ java.lang.String getExecutableFile(); /** - * - * *
    * Required. Cloud Storage URI of executable file.
    * 
* * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for executableFile. */ - com.google.protobuf.ByteString getExecutableFileBytes(); + com.google.protobuf.ByteString + getExecutableFileBytes(); /** - * - * *
    * Optional. Amount of time executable has to complete. Default is
    * 10 minutes (see JSON representation of
@@ -60,16 +37,11 @@ public interface NodeInitializationActionOrBuilder
    * period) if the executable is not completed at end of the timeout period.
    * 
* - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the executionTimeout field is set. */ boolean hasExecutionTimeout(); /** - * - * *
    * Optional. Amount of time executable has to complete. Default is
    * 10 minutes (see JSON representation of
@@ -79,16 +51,11 @@ public interface NodeInitializationActionOrBuilder
    * period) if the executable is not completed at end of the timeout period.
    * 
* - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The executionTimeout. */ com.google.protobuf.Duration getExecutionTimeout(); /** - * - * *
    * Optional. Amount of time executable has to complete. Default is
    * 10 minutes (see JSON representation of
@@ -98,9 +65,7 @@ public interface NodeInitializationActionOrBuilder
    * period) if the executable is not completed at end of the timeout period.
    * 
* - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java new file mode 100644 index 000000000000..3900311ef56c --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java @@ -0,0 +1,173 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/operations.proto + +package com.google.cloud.dataproc.v1; + +public final class OperationsProto { + private OperationsProto() {} + 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_dataproc_v1_BatchOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_LabelsEntry_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/dataproc/v1/operations.pr" + + "oto\022\030google.cloud.dataproc.v1\032\037google/ap" + + "i/field_behavior.proto\032\037google/protobuf/" + + "timestamp.proto\"\343\003\n\026BatchOperationMetada" + + "ta\022\r\n\005batch\030\001 \001(\t\022\022\n\nbatch_uuid\030\002 \001(\t\022/\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estamp\022-\n\tdone_time\030\004 \001(\0132\032.google.proto" + + "buf.Timestamp\022[\n\016operation_type\030\006 \001(\0162C." + + "google.cloud.dataproc.v1.BatchOperationM" + + "etadata.BatchOperationType\022\023\n\013descriptio" + + "n\030\007 \001(\t\022L\n\006labels\030\010 \003(\0132<.google.cloud.d" + + "ataproc.v1.BatchOperationMetadata.Labels" + + "Entry\022\020\n\010warnings\030\t \003(\t\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\022BatchO" + + "perationType\022$\n BATCH_OPERATION_TYPE_UNS" + + "PECIFIED\020\000\022\t\n\005BATCH\020\001\"\211\002\n\026ClusterOperati" + + "onStatus\022J\n\005state\030\001 \001(\01626.google.cloud.d" + + "ataproc.v1.ClusterOperationStatus.StateB" + + "\003\340A\003\022\030\n\013inner_state\030\002 \001(\tB\003\340A\003\022\024\n\007detail" + + "s\030\003 \001(\tB\003\340A\003\0229\n\020state_start_time\030\004 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\"8\n\005State" + + "\022\013\n\007UNKNOWN\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022" + + "\010\n\004DONE\020\003\"\270\003\n\030ClusterOperationMetadata\022\031" + + "\n\014cluster_name\030\007 \001(\tB\003\340A\003\022\031\n\014cluster_uui" + + "d\030\010 \001(\tB\003\340A\003\022E\n\006status\030\t \001(\01320.google.cl" + + "oud.dataproc.v1.ClusterOperationStatusB\003" + + "\340A\003\022M\n\016status_history\030\n \003(\01320.google.clo" + + "ud.dataproc.v1.ClusterOperationStatusB\003\340" + + "A\003\022\033\n\016operation_type\030\013 \001(\tB\003\340A\003\022\030\n\013descr" + + "iption\030\014 \001(\tB\003\340A\003\022S\n\006labels\030\r \003(\0132>.goog" + + "le.cloud.dataproc.v1.ClusterOperationMet" + + "adata.LabelsEntryB\003\340A\003\022\025\n\010warnings\030\016 \003(\t" + + "B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\"\372\004\n\032NodeGroupOperationMetad" + + "ata\022\032\n\rnode_group_id\030\001 \001(\tB\003\340A\003\022\031\n\014clust" + + "er_uuid\030\002 \001(\tB\003\340A\003\022E\n\006status\030\003 \001(\01320.goo" + + "gle.cloud.dataproc.v1.ClusterOperationSt" + + "atusB\003\340A\003\022M\n\016status_history\030\004 \003(\01320.goog" + + "le.cloud.dataproc.v1.ClusterOperationSta" + + "tusB\003\340A\003\022c\n\016operation_type\030\005 \001(\0162K.googl" + + "e.cloud.dataproc.v1.NodeGroupOperationMe" + + "tadata.NodeGroupOperationType\022\030\n\013descrip" + + "tion\030\006 \001(\tB\003\340A\003\022U\n\006labels\030\007 \003(\0132@.google" + + ".cloud.dataproc.v1.NodeGroupOperationMet" + + "adata.LabelsEntryB\003\340A\003\022\025\n\010warnings\030\010 \003(\t" + + "B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\"s\n\026NodeGroupOperationType\022)" + + "\n%NODE_GROUP_OPERATION_TYPE_UNSPECIFIED\020" + + "\000\022\n\n\006CREATE\020\001\022\n\n\006UPDATE\020\002\022\n\n\006DELETE\020\003\022\n\n" + + "\006RESIZE\020\004Bs\n\034com.google.cloud.dataproc.v" + + "1B\017OperationsProtoP\001Z@google.golang.org/" + + "genproto/googleapis/cloud/dataproc/v1;da" + + "taprocb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor, + new java.lang.String[] { "Batch", "BatchUuid", "CreateTime", "DoneTime", "OperationType", "Description", "Labels", "Warnings", }); + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor, + new java.lang.String[] { "State", "InnerState", "Details", "StateStartTime", }); + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor, + new java.lang.String[] { "ClusterName", "ClusterUuid", "Status", "StatusHistory", "OperationType", "Description", "Labels", "Warnings", }); + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor, + new java.lang.String[] { "NodeGroupId", "ClusterUuid", "Status", "StatusHistory", "OperationType", "Description", "Labels", "Warnings", }); + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_LabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java index d34cfb8571d5..f86ce0c8356c 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A job executed by the workflow.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.OrderedJob} */ -public final class OrderedJob extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OrderedJob extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.OrderedJob) OrderedJobOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OrderedJob.newBuilder() to construct. private OrderedJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OrderedJob() { stepId_ = ""; prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,47 +26,45 @@ private OrderedJob() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OrderedJob(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_OrderedJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_OrderedJob_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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_OrderedJob_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_OrderedJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.OrderedJob.class, - com.google.cloud.dataproc.v1.OrderedJob.Builder.class); + com.google.cloud.dataproc.v1.OrderedJob.class, com.google.cloud.dataproc.v1.OrderedJob.Builder.class); } private int jobTypeCase_ = 0; private java.lang.Object jobType_; - public enum JobTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { HADOOP_JOB(2), SPARK_JOB(3), @@ -96,7 +76,6 @@ public enum JobTypeCase PRESTO_JOB(12), JOBTYPE_NOT_SET(0); private final int value; - private JobTypeCase(int value) { this.value = value; } @@ -112,43 +91,32 @@ public static JobTypeCase valueOf(int value) { public static JobTypeCase forNumber(int value) { switch (value) { - case 2: - return HADOOP_JOB; - case 3: - return SPARK_JOB; - case 4: - return PYSPARK_JOB; - case 5: - return HIVE_JOB; - case 6: - return PIG_JOB; - case 11: - return SPARK_R_JOB; - case 7: - return SPARK_SQL_JOB; - case 12: - return PRESTO_JOB; - case 0: - return JOBTYPE_NOT_SET; - default: - return null; + case 2: return HADOOP_JOB; + case 3: return SPARK_JOB; + case 4: return PYSPARK_JOB; + case 5: return HIVE_JOB; + case 6: return PIG_JOB; + case 11: return SPARK_R_JOB; + case 7: return SPARK_SQL_JOB; + case 12: return PRESTO_JOB; + case 0: return JOBTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public JobTypeCase getJobTypeCase() { - return JobTypeCase.forNumber(jobTypeCase_); + public JobTypeCase + getJobTypeCase() { + return JobTypeCase.forNumber( + jobTypeCase_); } public static final int STEP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object stepId_; /** - * - * *
    * Required. The step id. The id must be unique among all jobs
    * within the template.
@@ -162,7 +130,6 @@ public JobTypeCase getJobTypeCase() {
    * 
* * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The stepId. */ @java.lang.Override @@ -171,15 +138,14 @@ public java.lang.String getStepId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stepId_ = s; return s; } } /** - * - * *
    * Required. The step id. The id must be unique among all jobs
    * within the template.
@@ -193,15 +159,16 @@ public java.lang.String getStepId() {
    * 
* * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for stepId. */ @java.lang.Override - public com.google.protobuf.ByteString getStepIdBytes() { + public com.google.protobuf.ByteString + getStepIdBytes() { java.lang.Object ref = stepId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stepId_ = b; return b; } else { @@ -211,16 +178,11 @@ public com.google.protobuf.ByteString getStepIdBytes() { public static final int HADOOP_JOB_FIELD_NUMBER = 2; /** - * - * *
    * Optional. Job is a Hadoop job.
    * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the hadoopJob field is set. */ @java.lang.Override @@ -228,56 +190,42 @@ public boolean hasHadoopJob() { return jobTypeCase_ == 2; } /** - * - * *
    * Optional. Job is a Hadoop job.
    * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The hadoopJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.HadoopJob getHadoopJob() { if (jobTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1.HadoopJob) jobType_; + return (com.google.cloud.dataproc.v1.HadoopJob) jobType_; } return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); } /** - * - * *
    * Optional. Job is a Hadoop job.
    * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder() { if (jobTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1.HadoopJob) jobType_; + return (com.google.cloud.dataproc.v1.HadoopJob) jobType_; } return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); } public static final int SPARK_JOB_FIELD_NUMBER = 3; /** - * - * *
    * Optional. Job is a Spark job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkJob field is set. */ @java.lang.Override @@ -285,56 +233,42 @@ public boolean hasSparkJob() { return jobTypeCase_ == 3; } /** - * - * *
    * Optional. Job is a Spark job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkJob getSparkJob() { if (jobTypeCase_ == 3) { - return (com.google.cloud.dataproc.v1.SparkJob) jobType_; + return (com.google.cloud.dataproc.v1.SparkJob) jobType_; } return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); } /** - * - * *
    * Optional. Job is a Spark job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder() { if (jobTypeCase_ == 3) { - return (com.google.cloud.dataproc.v1.SparkJob) jobType_; + return (com.google.cloud.dataproc.v1.SparkJob) jobType_; } return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); } public static final int PYSPARK_JOB_FIELD_NUMBER = 4; /** - * - * *
    * Optional. Job is a PySpark job.
    * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pysparkJob field is set. */ @java.lang.Override @@ -342,55 +276,42 @@ public boolean hasPysparkJob() { return jobTypeCase_ == 4; } /** - * - * *
    * Optional. Job is a PySpark job.
    * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The pysparkJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.PySparkJob getPysparkJob() { if (jobTypeCase_ == 4) { - return (com.google.cloud.dataproc.v1.PySparkJob) jobType_; + return (com.google.cloud.dataproc.v1.PySparkJob) jobType_; } return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); } /** - * - * *
    * Optional. Job is a PySpark job.
    * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder() { if (jobTypeCase_ == 4) { - return (com.google.cloud.dataproc.v1.PySparkJob) jobType_; + return (com.google.cloud.dataproc.v1.PySparkJob) jobType_; } return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); } public static final int HIVE_JOB_FIELD_NUMBER = 5; /** - * - * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the hiveJob field is set. */ @java.lang.Override @@ -398,53 +319,42 @@ public boolean hasHiveJob() { return jobTypeCase_ == 5; } /** - * - * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The hiveJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.HiveJob getHiveJob() { if (jobTypeCase_ == 5) { - return (com.google.cloud.dataproc.v1.HiveJob) jobType_; + return (com.google.cloud.dataproc.v1.HiveJob) jobType_; } return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); } /** - * - * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder() { if (jobTypeCase_ == 5) { - return (com.google.cloud.dataproc.v1.HiveJob) jobType_; + return (com.google.cloud.dataproc.v1.HiveJob) jobType_; } return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); } public static final int PIG_JOB_FIELD_NUMBER = 6; /** - * - * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pigJob field is set. */ @java.lang.Override @@ -452,54 +362,42 @@ public boolean hasPigJob() { return jobTypeCase_ == 6; } /** - * - * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The pigJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.PigJob getPigJob() { if (jobTypeCase_ == 6) { - return (com.google.cloud.dataproc.v1.PigJob) jobType_; + return (com.google.cloud.dataproc.v1.PigJob) jobType_; } return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); } /** - * - * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder() { if (jobTypeCase_ == 6) { - return (com.google.cloud.dataproc.v1.PigJob) jobType_; + return (com.google.cloud.dataproc.v1.PigJob) jobType_; } return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); } public static final int SPARK_R_JOB_FIELD_NUMBER = 11; /** - * - * *
    * Optional. Job is a SparkR job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkRJob field is set. */ @java.lang.Override @@ -507,56 +405,42 @@ public boolean hasSparkRJob() { return jobTypeCase_ == 11; } /** - * - * *
    * Optional. Job is a SparkR job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkRJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkRJob getSparkRJob() { if (jobTypeCase_ == 11) { - return (com.google.cloud.dataproc.v1.SparkRJob) jobType_; + return (com.google.cloud.dataproc.v1.SparkRJob) jobType_; } return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); } /** - * - * *
    * Optional. Job is a SparkR job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder() { if (jobTypeCase_ == 11) { - return (com.google.cloud.dataproc.v1.SparkRJob) jobType_; + return (com.google.cloud.dataproc.v1.SparkRJob) jobType_; } return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); } public static final int SPARK_SQL_JOB_FIELD_NUMBER = 7; /** - * - * *
    * Optional. Job is a SparkSql job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkSqlJob field is set. */ @java.lang.Override @@ -564,56 +448,42 @@ public boolean hasSparkSqlJob() { return jobTypeCase_ == 7; } /** - * - * *
    * Optional. Job is a SparkSql job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkSqlJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlJob getSparkSqlJob() { if (jobTypeCase_ == 7) { - return (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_; + return (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_; } return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); } /** - * - * *
    * Optional. Job is a SparkSql job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder() { if (jobTypeCase_ == 7) { - return (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_; + return (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_; } return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); } public static final int PRESTO_JOB_FIELD_NUMBER = 12; /** - * - * *
    * Optional. Job is a Presto job.
    * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the prestoJob field is set. */ @java.lang.Override @@ -621,62 +491,54 @@ public boolean hasPrestoJob() { return jobTypeCase_ == 12; } /** - * - * *
    * Optional. Job is a Presto job.
    * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The prestoJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.PrestoJob getPrestoJob() { if (jobTypeCase_ == 12) { - return (com.google.cloud.dataproc.v1.PrestoJob) jobType_; + return (com.google.cloud.dataproc.v1.PrestoJob) jobType_; } return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); } /** - * - * *
    * Optional. Job is a Presto job.
    * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder() { if (jobTypeCase_ == 12) { - return (com.google.cloud.dataproc.v1.PrestoJob) jobType_; + return (com.google.cloud.dataproc.v1.PrestoJob) jobType_; } return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); } 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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_OrderedJob_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.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_OrderedJob_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_; } @@ -685,8 +547,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels to associate with this job.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -699,22 +559,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @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();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this job.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -728,12 +588,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this job.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -747,16 +606,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this job.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -770,11 +629,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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();
     }
@@ -784,16 +644,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int SCHEDULING_FIELD_NUMBER = 9;
   private com.google.cloud.dataproc.v1.JobScheduling scheduling_;
   /**
-   *
-   *
    * 
    * Optional. Job scheduling configuration.
    * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the scheduling field is set. */ @java.lang.Override @@ -801,34 +656,23 @@ public boolean hasScheduling() { return scheduling_ != null; } /** - * - * *
    * Optional. Job scheduling configuration.
    * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The scheduling. */ @java.lang.Override public com.google.cloud.dataproc.v1.JobScheduling getScheduling() { - return scheduling_ == null - ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() - : scheduling_; + return scheduling_ == null ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() : scheduling_; } /** - * - * *
    * Optional. Job scheduling configuration.
    * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilder() { @@ -838,48 +682,37 @@ public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilde public static final int PREREQUISITE_STEP_IDS_FIELD_NUMBER = 10; private com.google.protobuf.LazyStringList prerequisiteStepIds_; /** - * - * *
    * Optional. The optional list of prerequisite job step_ids.
    * If not specified, the job will start at the beginning of workflow.
    * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the prerequisiteStepIds. */ - public com.google.protobuf.ProtocolStringList getPrerequisiteStepIdsList() { + public com.google.protobuf.ProtocolStringList + getPrerequisiteStepIdsList() { return prerequisiteStepIds_; } /** - * - * *
    * Optional. The optional list of prerequisite job step_ids.
    * If not specified, the job will start at the beginning of workflow.
    * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of prerequisiteStepIds. */ public int getPrerequisiteStepIdsCount() { return prerequisiteStepIds_.size(); } /** - * - * *
    * Optional. The optional list of prerequisite job step_ids.
    * If not specified, the job will start at the beginning of workflow.
    * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The prerequisiteStepIds at the given index. */ @@ -887,25 +720,21 @@ public java.lang.String getPrerequisiteStepIds(int index) { return prerequisiteStepIds_.get(index); } /** - * - * *
    * Optional. The optional list of prerequisite job step_ids.
    * If not specified, the job will start at the beginning of workflow.
    * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the prerequisiteStepIds at the given index. */ - public com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index) { + public com.google.protobuf.ByteString + getPrerequisiteStepIdsBytes(int index) { return prerequisiteStepIds_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -917,7 +746,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(stepId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stepId_); } @@ -939,14 +769,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (jobTypeCase_ == 7) { output.writeMessage(7, (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 8); if (scheduling_ != null) { output.writeMessage(9, getScheduling()); } for (int i = 0; i < prerequisiteStepIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 10, prerequisiteStepIds_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, prerequisiteStepIds_.getRaw(i)); } if (jobTypeCase_ == 11) { output.writeMessage(11, (com.google.cloud.dataproc.v1.SparkRJob) jobType_); @@ -967,47 +800,42 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stepId_); } if (jobTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1.HadoopJob) jobType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.dataproc.v1.HadoopJob) jobType_); } if (jobTypeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.dataproc.v1.SparkJob) jobType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.dataproc.v1.SparkJob) jobType_); } if (jobTypeCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.dataproc.v1.PySparkJob) jobType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.dataproc.v1.PySparkJob) jobType_); } if (jobTypeCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.dataproc.v1.HiveJob) jobType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.dataproc.v1.HiveJob) jobType_); } if (jobTypeCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.dataproc.v1.PigJob) jobType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.dataproc.v1.PigJob) jobType_); } if (jobTypeCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_); - } - 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, (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_); + } + 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 (scheduling_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getScheduling()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getScheduling()); } { int dataSize = 0; @@ -1018,14 +846,12 @@ public int getSerializedSize() { size += 1 * getPrerequisiteStepIdsList().size(); } if (jobTypeCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, (com.google.cloud.dataproc.v1.SparkRJob) jobType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (com.google.cloud.dataproc.v1.SparkRJob) jobType_); } if (jobTypeCase_ == 12) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, (com.google.cloud.dataproc.v1.PrestoJob) jobType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (com.google.cloud.dataproc.v1.PrestoJob) jobType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1035,45 +861,57 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.OrderedJob)) { return super.equals(obj); } com.google.cloud.dataproc.v1.OrderedJob other = (com.google.cloud.dataproc.v1.OrderedJob) obj; - if (!getStepId().equals(other.getStepId())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getStepId() + .equals(other.getStepId())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasScheduling() != other.hasScheduling()) return false; if (hasScheduling()) { - if (!getScheduling().equals(other.getScheduling())) return false; + if (!getScheduling() + .equals(other.getScheduling())) return false; } - if (!getPrerequisiteStepIdsList().equals(other.getPrerequisiteStepIdsList())) return false; + if (!getPrerequisiteStepIdsList() + .equals(other.getPrerequisiteStepIdsList())) return false; if (!getJobTypeCase().equals(other.getJobTypeCase())) return false; switch (jobTypeCase_) { case 2: - if (!getHadoopJob().equals(other.getHadoopJob())) return false; + if (!getHadoopJob() + .equals(other.getHadoopJob())) return false; break; case 3: - if (!getSparkJob().equals(other.getSparkJob())) return false; + if (!getSparkJob() + .equals(other.getSparkJob())) return false; break; case 4: - if (!getPysparkJob().equals(other.getPysparkJob())) return false; + if (!getPysparkJob() + .equals(other.getPysparkJob())) return false; break; case 5: - if (!getHiveJob().equals(other.getHiveJob())) return false; + if (!getHiveJob() + .equals(other.getHiveJob())) return false; break; case 6: - if (!getPigJob().equals(other.getPigJob())) return false; + if (!getPigJob() + .equals(other.getPigJob())) return false; break; case 11: - if (!getSparkRJob().equals(other.getSparkRJob())) return false; + if (!getSparkRJob() + .equals(other.getSparkRJob())) return false; break; case 7: - if (!getSparkSqlJob().equals(other.getSparkSqlJob())) return false; + if (!getSparkSqlJob() + .equals(other.getSparkSqlJob())) return false; break; case 12: - if (!getPrestoJob().equals(other.getPrestoJob())) return false; + if (!getPrestoJob() + .equals(other.getPrestoJob())) return false; break; case 0: default: @@ -1144,156 +982,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.OrderedJob parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.OrderedJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.OrderedJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.OrderedJob parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.OrderedJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.OrderedJob parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.OrderedJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 executed by the workflow.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.OrderedJob} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.OrderedJob) com.google.cloud.dataproc.v1.OrderedJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_OrderedJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_OrderedJob_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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_OrderedJob_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_OrderedJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.OrderedJob.class, - com.google.cloud.dataproc.v1.OrderedJob.Builder.class); + com.google.cloud.dataproc.v1.OrderedJob.class, com.google.cloud.dataproc.v1.OrderedJob.Builder.class); } // Construct using com.google.cloud.dataproc.v1.OrderedJob.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1338,9 +1172,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_OrderedJob_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_OrderedJob_descriptor; } @java.lang.Override @@ -1359,8 +1193,7 @@ public com.google.cloud.dataproc.v1.OrderedJob build() { @java.lang.Override public com.google.cloud.dataproc.v1.OrderedJob buildPartial() { - com.google.cloud.dataproc.v1.OrderedJob result = - new com.google.cloud.dataproc.v1.OrderedJob(this); + com.google.cloud.dataproc.v1.OrderedJob result = new com.google.cloud.dataproc.v1.OrderedJob(this); int from_bitField0_ = bitField0_; result.stepId_ = stepId_; if (jobTypeCase_ == 2) { @@ -1440,39 +1273,38 @@ public com.google.cloud.dataproc.v1.OrderedJob buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.OrderedJob) { - return mergeFrom((com.google.cloud.dataproc.v1.OrderedJob) other); + return mergeFrom((com.google.cloud.dataproc.v1.OrderedJob)other); } else { super.mergeFrom(other); return this; @@ -1485,7 +1317,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.OrderedJob other) { stepId_ = other.stepId_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.hasScheduling()) { mergeScheduling(other.getScheduling()); } @@ -1500,50 +1333,41 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.OrderedJob other) { onChanged(); } switch (other.getJobTypeCase()) { - case HADOOP_JOB: - { - mergeHadoopJob(other.getHadoopJob()); - break; - } - case SPARK_JOB: - { - mergeSparkJob(other.getSparkJob()); - break; - } - case PYSPARK_JOB: - { - mergePysparkJob(other.getPysparkJob()); - break; - } - case HIVE_JOB: - { - mergeHiveJob(other.getHiveJob()); - break; - } - case PIG_JOB: - { - mergePigJob(other.getPigJob()); - break; - } - case SPARK_R_JOB: - { - mergeSparkRJob(other.getSparkRJob()); - break; - } - case SPARK_SQL_JOB: - { - mergeSparkSqlJob(other.getSparkSqlJob()); - break; - } - case PRESTO_JOB: - { - mergePrestoJob(other.getPrestoJob()); - break; - } - case JOBTYPE_NOT_SET: - { - break; - } + case HADOOP_JOB: { + mergeHadoopJob(other.getHadoopJob()); + break; + } + case SPARK_JOB: { + mergeSparkJob(other.getSparkJob()); + break; + } + case PYSPARK_JOB: { + mergePysparkJob(other.getPysparkJob()); + break; + } + case HIVE_JOB: { + mergeHiveJob(other.getHiveJob()); + break; + } + case PIG_JOB: { + mergePigJob(other.getPigJob()); + break; + } + case SPARK_R_JOB: { + mergeSparkRJob(other.getSparkRJob()); + break; + } + case SPARK_SQL_JOB: { + mergeSparkSqlJob(other.getSparkSqlJob()); + break; + } + case PRESTO_JOB: { + mergePrestoJob(other.getPrestoJob()); + break; + } + case JOBTYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1571,91 +1395,94 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - stepId_ = input.readStringRequireUtf8(); + case 10: { + stepId_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getHadoopJobFieldBuilder().getBuilder(), extensionRegistry); - jobTypeCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getSparkJobFieldBuilder().getBuilder(), extensionRegistry); - jobTypeCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getPysparkJobFieldBuilder().getBuilder(), extensionRegistry); - jobTypeCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getHiveJobFieldBuilder().getBuilder(), extensionRegistry); - jobTypeCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getPigJobFieldBuilder().getBuilder(), extensionRegistry); - jobTypeCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage(getSparkSqlJobFieldBuilder().getBuilder(), extensionRegistry); - jobTypeCase_ = 7; - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 66 - case 74: - { - input.readMessage(getSchedulingFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getHadoopJobFieldBuilder().getBuilder(), + extensionRegistry); + jobTypeCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getSparkJobFieldBuilder().getBuilder(), + extensionRegistry); + jobTypeCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getPysparkJobFieldBuilder().getBuilder(), + extensionRegistry); + jobTypeCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getHiveJobFieldBuilder().getBuilder(), + extensionRegistry); + jobTypeCase_ = 5; + break; + } // case 42 + case 50: { + input.readMessage( + getPigJobFieldBuilder().getBuilder(), + extensionRegistry); + jobTypeCase_ = 6; + break; + } // case 50 + case 58: { + input.readMessage( + getSparkSqlJobFieldBuilder().getBuilder(), + extensionRegistry); + jobTypeCase_ = 7; + break; + } // case 58 + case 66: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 66 + case 74: { + input.readMessage( + getSchedulingFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 74 - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.add(s); - break; - } // case 82 - case 90: - { - input.readMessage(getSparkRJobFieldBuilder().getBuilder(), extensionRegistry); - jobTypeCase_ = 11; - break; - } // case 90 - case 98: - { - input.readMessage(getPrestoJobFieldBuilder().getBuilder(), extensionRegistry); - jobTypeCase_ = 12; - break; - } // case 98 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 74 + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePrerequisiteStepIdsIsMutable(); + prerequisiteStepIds_.add(s); + break; + } // case 82 + case 90: { + input.readMessage( + getSparkRJobFieldBuilder().getBuilder(), + extensionRegistry); + jobTypeCase_ = 11; + break; + } // case 90 + case 98: { + input.readMessage( + getPrestoJobFieldBuilder().getBuilder(), + extensionRegistry); + jobTypeCase_ = 12; + break; + } // case 98 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1665,12 +1492,12 @@ public Builder mergeFrom( } // finally return this; } - private int jobTypeCase_ = 0; private java.lang.Object jobType_; - - public JobTypeCase getJobTypeCase() { - return JobTypeCase.forNumber(jobTypeCase_); + public JobTypeCase + getJobTypeCase() { + return JobTypeCase.forNumber( + jobTypeCase_); } public Builder clearJobType() { @@ -1684,8 +1511,6 @@ public Builder clearJobType() { private java.lang.Object stepId_ = ""; /** - * - * *
      * Required. The step id. The id must be unique among all jobs
      * within the template.
@@ -1699,13 +1524,13 @@ public Builder clearJobType() {
      * 
* * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The stepId. */ public java.lang.String getStepId() { java.lang.Object ref = stepId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stepId_ = s; return s; @@ -1714,8 +1539,6 @@ public java.lang.String getStepId() { } } /** - * - * *
      * Required. The step id. The id must be unique among all jobs
      * within the template.
@@ -1729,14 +1552,15 @@ public java.lang.String getStepId() {
      * 
* * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for stepId. */ - public com.google.protobuf.ByteString getStepIdBytes() { + public com.google.protobuf.ByteString + getStepIdBytes() { java.lang.Object ref = stepId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stepId_ = b; return b; } else { @@ -1744,8 +1568,6 @@ public com.google.protobuf.ByteString getStepIdBytes() { } } /** - * - * *
      * Required. The step id. The id must be unique among all jobs
      * within the template.
@@ -1759,22 +1581,20 @@ public com.google.protobuf.ByteString getStepIdBytes() {
      * 
* * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The stepId to set. * @return This builder for chaining. */ - public Builder setStepId(java.lang.String value) { + public Builder setStepId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stepId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The step id. The id must be unique among all jobs
      * within the template.
@@ -1788,18 +1608,15 @@ public Builder setStepId(java.lang.String value) {
      * 
* * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearStepId() { - + stepId_ = getDefaultInstance().getStepId(); onChanged(); return this; } /** - * - * *
      * Required. The step id. The id must be unique among all jobs
      * within the template.
@@ -1813,37 +1630,29 @@ public Builder clearStepId() {
      * 
* * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for stepId to set. * @return This builder for chaining. */ - public Builder setStepIdBytes(com.google.protobuf.ByteString value) { + public Builder setStepIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stepId_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HadoopJob, - com.google.cloud.dataproc.v1.HadoopJob.Builder, - com.google.cloud.dataproc.v1.HadoopJobOrBuilder> - hadoopJobBuilder_; + com.google.cloud.dataproc.v1.HadoopJob, com.google.cloud.dataproc.v1.HadoopJob.Builder, com.google.cloud.dataproc.v1.HadoopJobOrBuilder> hadoopJobBuilder_; /** - * - * *
      * Optional. Job is a Hadoop job.
      * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the hadoopJob field is set. */ @java.lang.Override @@ -1851,16 +1660,11 @@ public boolean hasHadoopJob() { return jobTypeCase_ == 2; } /** - * - * *
      * Optional. Job is a Hadoop job.
      * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The hadoopJob. */ @java.lang.Override @@ -1878,15 +1682,11 @@ public com.google.cloud.dataproc.v1.HadoopJob getHadoopJob() { } } /** - * - * *
      * Optional. Job is a Hadoop job.
      * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { if (hadoopJobBuilder_ == null) { @@ -1902,17 +1702,14 @@ public Builder setHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { return this; } /** - * - * *
      * Optional. Job is a Hadoop job.
      * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setHadoopJob(com.google.cloud.dataproc.v1.HadoopJob.Builder builderForValue) { + public Builder setHadoopJob( + com.google.cloud.dataproc.v1.HadoopJob.Builder builderForValue) { if (hadoopJobBuilder_ == null) { jobType_ = builderForValue.build(); onChanged(); @@ -1923,25 +1720,18 @@ public Builder setHadoopJob(com.google.cloud.dataproc.v1.HadoopJob.Builder build return this; } /** - * - * *
      * Optional. Job is a Hadoop job.
      * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { if (hadoopJobBuilder_ == null) { - if (jobTypeCase_ == 2 - && jobType_ != com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1.HadoopJob.newBuilder( - (com.google.cloud.dataproc.v1.HadoopJob) jobType_) - .mergeFrom(value) - .buildPartial(); + if (jobTypeCase_ == 2 && + jobType_ != com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance()) { + jobType_ = com.google.cloud.dataproc.v1.HadoopJob.newBuilder((com.google.cloud.dataproc.v1.HadoopJob) jobType_) + .mergeFrom(value).buildPartial(); } else { jobType_ = value; } @@ -1957,15 +1747,11 @@ public Builder mergeHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { return this; } /** - * - * *
      * Optional. Job is a Hadoop job.
      * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearHadoopJob() { if (hadoopJobBuilder_ == null) { @@ -1984,29 +1770,21 @@ public Builder clearHadoopJob() { return this; } /** - * - * *
      * Optional. Job is a Hadoop job.
      * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.HadoopJob.Builder getHadoopJobBuilder() { return getHadoopJobFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Job is a Hadoop job.
      * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder() { @@ -2020,57 +1798,39 @@ public com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder() { } } /** - * - * *
      * Optional. Job is a Hadoop job.
      * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HadoopJob, - com.google.cloud.dataproc.v1.HadoopJob.Builder, - com.google.cloud.dataproc.v1.HadoopJobOrBuilder> + com.google.cloud.dataproc.v1.HadoopJob, com.google.cloud.dataproc.v1.HadoopJob.Builder, com.google.cloud.dataproc.v1.HadoopJobOrBuilder> getHadoopJobFieldBuilder() { if (hadoopJobBuilder_ == null) { if (!(jobTypeCase_ == 2)) { jobType_ = com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); } - hadoopJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HadoopJob, - com.google.cloud.dataproc.v1.HadoopJob.Builder, - com.google.cloud.dataproc.v1.HadoopJobOrBuilder>( + hadoopJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.HadoopJob, com.google.cloud.dataproc.v1.HadoopJob.Builder, com.google.cloud.dataproc.v1.HadoopJobOrBuilder>( (com.google.cloud.dataproc.v1.HadoopJob) jobType_, getParentForChildren(), isClean()); jobType_ = null; } jobTypeCase_ = 2; - onChanged(); - ; + onChanged();; return hadoopJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkJob, - com.google.cloud.dataproc.v1.SparkJob.Builder, - com.google.cloud.dataproc.v1.SparkJobOrBuilder> - sparkJobBuilder_; + com.google.cloud.dataproc.v1.SparkJob, com.google.cloud.dataproc.v1.SparkJob.Builder, com.google.cloud.dataproc.v1.SparkJobOrBuilder> sparkJobBuilder_; /** - * - * *
      * Optional. Job is a Spark job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkJob field is set. */ @java.lang.Override @@ -2078,16 +1838,11 @@ public boolean hasSparkJob() { return jobTypeCase_ == 3; } /** - * - * *
      * Optional. Job is a Spark job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkJob. */ @java.lang.Override @@ -2105,15 +1860,11 @@ public com.google.cloud.dataproc.v1.SparkJob getSparkJob() { } } /** - * - * *
      * Optional. Job is a Spark job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { if (sparkJobBuilder_ == null) { @@ -2129,17 +1880,14 @@ public Builder setSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { return this; } /** - * - * *
      * Optional. Job is a Spark job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setSparkJob(com.google.cloud.dataproc.v1.SparkJob.Builder builderForValue) { + public Builder setSparkJob( + com.google.cloud.dataproc.v1.SparkJob.Builder builderForValue) { if (sparkJobBuilder_ == null) { jobType_ = builderForValue.build(); onChanged(); @@ -2150,25 +1898,18 @@ public Builder setSparkJob(com.google.cloud.dataproc.v1.SparkJob.Builder builder return this; } /** - * - * *
      * Optional. Job is a Spark job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { if (sparkJobBuilder_ == null) { - if (jobTypeCase_ == 3 - && jobType_ != com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1.SparkJob.newBuilder( - (com.google.cloud.dataproc.v1.SparkJob) jobType_) - .mergeFrom(value) - .buildPartial(); + if (jobTypeCase_ == 3 && + jobType_ != com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance()) { + jobType_ = com.google.cloud.dataproc.v1.SparkJob.newBuilder((com.google.cloud.dataproc.v1.SparkJob) jobType_) + .mergeFrom(value).buildPartial(); } else { jobType_ = value; } @@ -2184,15 +1925,11 @@ public Builder mergeSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { return this; } /** - * - * *
      * Optional. Job is a Spark job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSparkJob() { if (sparkJobBuilder_ == null) { @@ -2211,29 +1948,21 @@ public Builder clearSparkJob() { return this; } /** - * - * *
      * Optional. Job is a Spark job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.SparkJob.Builder getSparkJobBuilder() { return getSparkJobFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Job is a Spark job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder() { @@ -2247,57 +1976,39 @@ public com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder() { } } /** - * - * *
      * Optional. Job is a Spark job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkJob, - com.google.cloud.dataproc.v1.SparkJob.Builder, - com.google.cloud.dataproc.v1.SparkJobOrBuilder> + com.google.cloud.dataproc.v1.SparkJob, com.google.cloud.dataproc.v1.SparkJob.Builder, com.google.cloud.dataproc.v1.SparkJobOrBuilder> getSparkJobFieldBuilder() { if (sparkJobBuilder_ == null) { if (!(jobTypeCase_ == 3)) { jobType_ = com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); } - sparkJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkJob, - com.google.cloud.dataproc.v1.SparkJob.Builder, - com.google.cloud.dataproc.v1.SparkJobOrBuilder>( + sparkJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkJob, com.google.cloud.dataproc.v1.SparkJob.Builder, com.google.cloud.dataproc.v1.SparkJobOrBuilder>( (com.google.cloud.dataproc.v1.SparkJob) jobType_, getParentForChildren(), isClean()); jobType_ = null; } jobTypeCase_ = 3; - onChanged(); - ; + onChanged();; return sparkJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkJob, - com.google.cloud.dataproc.v1.PySparkJob.Builder, - com.google.cloud.dataproc.v1.PySparkJobOrBuilder> - pysparkJobBuilder_; + com.google.cloud.dataproc.v1.PySparkJob, com.google.cloud.dataproc.v1.PySparkJob.Builder, com.google.cloud.dataproc.v1.PySparkJobOrBuilder> pysparkJobBuilder_; /** - * - * *
      * Optional. Job is a PySpark job.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pysparkJob field is set. */ @java.lang.Override @@ -2305,16 +2016,11 @@ public boolean hasPysparkJob() { return jobTypeCase_ == 4; } /** - * - * *
      * Optional. Job is a PySpark job.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The pysparkJob. */ @java.lang.Override @@ -2332,15 +2038,11 @@ public com.google.cloud.dataproc.v1.PySparkJob getPysparkJob() { } } /** - * - * *
      * Optional. Job is a PySpark job.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { if (pysparkJobBuilder_ == null) { @@ -2356,17 +2058,14 @@ public Builder setPysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { return this; } /** - * - * *
      * Optional. Job is a PySpark job.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPysparkJob(com.google.cloud.dataproc.v1.PySparkJob.Builder builderForValue) { + public Builder setPysparkJob( + com.google.cloud.dataproc.v1.PySparkJob.Builder builderForValue) { if (pysparkJobBuilder_ == null) { jobType_ = builderForValue.build(); onChanged(); @@ -2377,25 +2076,18 @@ public Builder setPysparkJob(com.google.cloud.dataproc.v1.PySparkJob.Builder bui return this; } /** - * - * *
      * Optional. Job is a PySpark job.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergePysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { if (pysparkJobBuilder_ == null) { - if (jobTypeCase_ == 4 - && jobType_ != com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1.PySparkJob.newBuilder( - (com.google.cloud.dataproc.v1.PySparkJob) jobType_) - .mergeFrom(value) - .buildPartial(); + if (jobTypeCase_ == 4 && + jobType_ != com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance()) { + jobType_ = com.google.cloud.dataproc.v1.PySparkJob.newBuilder((com.google.cloud.dataproc.v1.PySparkJob) jobType_) + .mergeFrom(value).buildPartial(); } else { jobType_ = value; } @@ -2411,15 +2103,11 @@ public Builder mergePysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { return this; } /** - * - * *
      * Optional. Job is a PySpark job.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPysparkJob() { if (pysparkJobBuilder_ == null) { @@ -2438,29 +2126,21 @@ public Builder clearPysparkJob() { return this; } /** - * - * *
      * Optional. Job is a PySpark job.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.PySparkJob.Builder getPysparkJobBuilder() { return getPysparkJobFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Job is a PySpark job.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder() { @@ -2474,57 +2154,39 @@ public com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder() } } /** - * - * *
      * Optional. Job is a PySpark job.
      * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkJob, - com.google.cloud.dataproc.v1.PySparkJob.Builder, - com.google.cloud.dataproc.v1.PySparkJobOrBuilder> + com.google.cloud.dataproc.v1.PySparkJob, com.google.cloud.dataproc.v1.PySparkJob.Builder, com.google.cloud.dataproc.v1.PySparkJobOrBuilder> getPysparkJobFieldBuilder() { if (pysparkJobBuilder_ == null) { if (!(jobTypeCase_ == 4)) { jobType_ = com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); } - pysparkJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkJob, - com.google.cloud.dataproc.v1.PySparkJob.Builder, - com.google.cloud.dataproc.v1.PySparkJobOrBuilder>( + pysparkJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PySparkJob, com.google.cloud.dataproc.v1.PySparkJob.Builder, com.google.cloud.dataproc.v1.PySparkJobOrBuilder>( (com.google.cloud.dataproc.v1.PySparkJob) jobType_, getParentForChildren(), isClean()); jobType_ = null; } jobTypeCase_ = 4; - onChanged(); - ; + onChanged();; return pysparkJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HiveJob, - com.google.cloud.dataproc.v1.HiveJob.Builder, - com.google.cloud.dataproc.v1.HiveJobOrBuilder> - hiveJobBuilder_; + com.google.cloud.dataproc.v1.HiveJob, com.google.cloud.dataproc.v1.HiveJob.Builder, com.google.cloud.dataproc.v1.HiveJobOrBuilder> hiveJobBuilder_; /** - * - * *
      * Optional. Job is a Hive job.
      * 
* - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the hiveJob field is set. */ @java.lang.Override @@ -2532,16 +2194,11 @@ public boolean hasHiveJob() { return jobTypeCase_ == 5; } /** - * - * *
      * Optional. Job is a Hive job.
      * 
* - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The hiveJob. */ @java.lang.Override @@ -2559,15 +2216,11 @@ public com.google.cloud.dataproc.v1.HiveJob getHiveJob() { } } /** - * - * *
      * Optional. Job is a Hive job.
      * 
* - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { if (hiveJobBuilder_ == null) { @@ -2583,17 +2236,14 @@ public Builder setHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { return this; } /** - * - * *
      * Optional. Job is a Hive job.
      * 
* - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setHiveJob(com.google.cloud.dataproc.v1.HiveJob.Builder builderForValue) { + public Builder setHiveJob( + com.google.cloud.dataproc.v1.HiveJob.Builder builderForValue) { if (hiveJobBuilder_ == null) { jobType_ = builderForValue.build(); onChanged(); @@ -2604,25 +2254,18 @@ public Builder setHiveJob(com.google.cloud.dataproc.v1.HiveJob.Builder builderFo return this; } /** - * - * *
      * Optional. Job is a Hive job.
      * 
* - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { if (hiveJobBuilder_ == null) { - if (jobTypeCase_ == 5 - && jobType_ != com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1.HiveJob.newBuilder( - (com.google.cloud.dataproc.v1.HiveJob) jobType_) - .mergeFrom(value) - .buildPartial(); + if (jobTypeCase_ == 5 && + jobType_ != com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance()) { + jobType_ = com.google.cloud.dataproc.v1.HiveJob.newBuilder((com.google.cloud.dataproc.v1.HiveJob) jobType_) + .mergeFrom(value).buildPartial(); } else { jobType_ = value; } @@ -2638,15 +2281,11 @@ public Builder mergeHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { return this; } /** - * - * *
      * Optional. Job is a Hive job.
      * 
* - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearHiveJob() { if (hiveJobBuilder_ == null) { @@ -2665,29 +2304,21 @@ public Builder clearHiveJob() { return this; } /** - * - * *
      * Optional. Job is a Hive job.
      * 
* - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.HiveJob.Builder getHiveJobBuilder() { return getHiveJobFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Job is a Hive job.
      * 
* - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder() { @@ -2701,54 +2332,39 @@ public com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder() { } } /** - * - * *
      * Optional. Job is a Hive job.
      * 
* - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HiveJob, - com.google.cloud.dataproc.v1.HiveJob.Builder, - com.google.cloud.dataproc.v1.HiveJobOrBuilder> + com.google.cloud.dataproc.v1.HiveJob, com.google.cloud.dataproc.v1.HiveJob.Builder, com.google.cloud.dataproc.v1.HiveJobOrBuilder> getHiveJobFieldBuilder() { if (hiveJobBuilder_ == null) { if (!(jobTypeCase_ == 5)) { jobType_ = com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); } - hiveJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HiveJob, - com.google.cloud.dataproc.v1.HiveJob.Builder, - com.google.cloud.dataproc.v1.HiveJobOrBuilder>( - (com.google.cloud.dataproc.v1.HiveJob) jobType_, getParentForChildren(), isClean()); + hiveJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.HiveJob, com.google.cloud.dataproc.v1.HiveJob.Builder, com.google.cloud.dataproc.v1.HiveJobOrBuilder>( + (com.google.cloud.dataproc.v1.HiveJob) jobType_, + getParentForChildren(), + isClean()); jobType_ = null; } jobTypeCase_ = 5; - onChanged(); - ; + onChanged();; return hiveJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PigJob, - com.google.cloud.dataproc.v1.PigJob.Builder, - com.google.cloud.dataproc.v1.PigJobOrBuilder> - pigJobBuilder_; + com.google.cloud.dataproc.v1.PigJob, com.google.cloud.dataproc.v1.PigJob.Builder, com.google.cloud.dataproc.v1.PigJobOrBuilder> pigJobBuilder_; /** - * - * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pigJob field is set. */ @java.lang.Override @@ -2756,15 +2372,11 @@ public boolean hasPigJob() { return jobTypeCase_ == 6; } /** - * - * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The pigJob. */ @java.lang.Override @@ -2782,14 +2394,11 @@ public com.google.cloud.dataproc.v1.PigJob getPigJob() { } } /** - * - * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPigJob(com.google.cloud.dataproc.v1.PigJob value) { if (pigJobBuilder_ == null) { @@ -2805,16 +2414,14 @@ public Builder setPigJob(com.google.cloud.dataproc.v1.PigJob value) { return this; } /** - * - * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPigJob(com.google.cloud.dataproc.v1.PigJob.Builder builderForValue) { + public Builder setPigJob( + com.google.cloud.dataproc.v1.PigJob.Builder builderForValue) { if (pigJobBuilder_ == null) { jobType_ = builderForValue.build(); onChanged(); @@ -2825,24 +2432,18 @@ public Builder setPigJob(com.google.cloud.dataproc.v1.PigJob.Builder builderForV return this; } /** - * - * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergePigJob(com.google.cloud.dataproc.v1.PigJob value) { if (pigJobBuilder_ == null) { - if (jobTypeCase_ == 6 - && jobType_ != com.google.cloud.dataproc.v1.PigJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1.PigJob.newBuilder( - (com.google.cloud.dataproc.v1.PigJob) jobType_) - .mergeFrom(value) - .buildPartial(); + if (jobTypeCase_ == 6 && + jobType_ != com.google.cloud.dataproc.v1.PigJob.getDefaultInstance()) { + jobType_ = com.google.cloud.dataproc.v1.PigJob.newBuilder((com.google.cloud.dataproc.v1.PigJob) jobType_) + .mergeFrom(value).buildPartial(); } else { jobType_ = value; } @@ -2858,14 +2459,11 @@ public Builder mergePigJob(com.google.cloud.dataproc.v1.PigJob value) { return this; } /** - * - * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPigJob() { if (pigJobBuilder_ == null) { @@ -2884,27 +2482,21 @@ public Builder clearPigJob() { return this; } /** - * - * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.PigJob.Builder getPigJobBuilder() { return getPigJobFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder() { @@ -2918,54 +2510,39 @@ public com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder() { } } /** - * - * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PigJob, - com.google.cloud.dataproc.v1.PigJob.Builder, - com.google.cloud.dataproc.v1.PigJobOrBuilder> + com.google.cloud.dataproc.v1.PigJob, com.google.cloud.dataproc.v1.PigJob.Builder, com.google.cloud.dataproc.v1.PigJobOrBuilder> getPigJobFieldBuilder() { if (pigJobBuilder_ == null) { if (!(jobTypeCase_ == 6)) { jobType_ = com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); } - pigJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PigJob, - com.google.cloud.dataproc.v1.PigJob.Builder, - com.google.cloud.dataproc.v1.PigJobOrBuilder>( - (com.google.cloud.dataproc.v1.PigJob) jobType_, getParentForChildren(), isClean()); + pigJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PigJob, com.google.cloud.dataproc.v1.PigJob.Builder, com.google.cloud.dataproc.v1.PigJobOrBuilder>( + (com.google.cloud.dataproc.v1.PigJob) jobType_, + getParentForChildren(), + isClean()); jobType_ = null; } jobTypeCase_ = 6; - onChanged(); - ; + onChanged();; return pigJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRJob, - com.google.cloud.dataproc.v1.SparkRJob.Builder, - com.google.cloud.dataproc.v1.SparkRJobOrBuilder> - sparkRJobBuilder_; + com.google.cloud.dataproc.v1.SparkRJob, com.google.cloud.dataproc.v1.SparkRJob.Builder, com.google.cloud.dataproc.v1.SparkRJobOrBuilder> sparkRJobBuilder_; /** - * - * *
      * Optional. Job is a SparkR job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkRJob field is set. */ @java.lang.Override @@ -2973,16 +2550,11 @@ public boolean hasSparkRJob() { return jobTypeCase_ == 11; } /** - * - * *
      * Optional. Job is a SparkR job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkRJob. */ @java.lang.Override @@ -3000,15 +2572,11 @@ public com.google.cloud.dataproc.v1.SparkRJob getSparkRJob() { } } /** - * - * *
      * Optional. Job is a SparkR job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { if (sparkRJobBuilder_ == null) { @@ -3024,17 +2592,14 @@ public Builder setSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { return this; } /** - * - * *
      * Optional. Job is a SparkR job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setSparkRJob(com.google.cloud.dataproc.v1.SparkRJob.Builder builderForValue) { + public Builder setSparkRJob( + com.google.cloud.dataproc.v1.SparkRJob.Builder builderForValue) { if (sparkRJobBuilder_ == null) { jobType_ = builderForValue.build(); onChanged(); @@ -3045,25 +2610,18 @@ public Builder setSparkRJob(com.google.cloud.dataproc.v1.SparkRJob.Builder build return this; } /** - * - * *
      * Optional. Job is a SparkR job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { if (sparkRJobBuilder_ == null) { - if (jobTypeCase_ == 11 - && jobType_ != com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1.SparkRJob.newBuilder( - (com.google.cloud.dataproc.v1.SparkRJob) jobType_) - .mergeFrom(value) - .buildPartial(); + if (jobTypeCase_ == 11 && + jobType_ != com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance()) { + jobType_ = com.google.cloud.dataproc.v1.SparkRJob.newBuilder((com.google.cloud.dataproc.v1.SparkRJob) jobType_) + .mergeFrom(value).buildPartial(); } else { jobType_ = value; } @@ -3079,15 +2637,11 @@ public Builder mergeSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { return this; } /** - * - * *
      * Optional. Job is a SparkR job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSparkRJob() { if (sparkRJobBuilder_ == null) { @@ -3106,29 +2660,21 @@ public Builder clearSparkRJob() { return this; } /** - * - * *
      * Optional. Job is a SparkR job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.SparkRJob.Builder getSparkRJobBuilder() { return getSparkRJobFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Job is a SparkR job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder() { @@ -3142,57 +2688,39 @@ public com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder() { } } /** - * - * *
      * Optional. Job is a SparkR job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRJob, - com.google.cloud.dataproc.v1.SparkRJob.Builder, - com.google.cloud.dataproc.v1.SparkRJobOrBuilder> + com.google.cloud.dataproc.v1.SparkRJob, com.google.cloud.dataproc.v1.SparkRJob.Builder, com.google.cloud.dataproc.v1.SparkRJobOrBuilder> getSparkRJobFieldBuilder() { if (sparkRJobBuilder_ == null) { if (!(jobTypeCase_ == 11)) { jobType_ = com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); } - sparkRJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRJob, - com.google.cloud.dataproc.v1.SparkRJob.Builder, - com.google.cloud.dataproc.v1.SparkRJobOrBuilder>( + sparkRJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkRJob, com.google.cloud.dataproc.v1.SparkRJob.Builder, com.google.cloud.dataproc.v1.SparkRJobOrBuilder>( (com.google.cloud.dataproc.v1.SparkRJob) jobType_, getParentForChildren(), isClean()); jobType_ = null; } jobTypeCase_ = 11; - onChanged(); - ; + onChanged();; return sparkRJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlJob, - com.google.cloud.dataproc.v1.SparkSqlJob.Builder, - com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> - sparkSqlJobBuilder_; + com.google.cloud.dataproc.v1.SparkSqlJob, com.google.cloud.dataproc.v1.SparkSqlJob.Builder, com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> sparkSqlJobBuilder_; /** - * - * *
      * Optional. Job is a SparkSql job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkSqlJob field is set. */ @java.lang.Override @@ -3200,16 +2728,11 @@ public boolean hasSparkSqlJob() { return jobTypeCase_ == 7; } /** - * - * *
      * Optional. Job is a SparkSql job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkSqlJob. */ @java.lang.Override @@ -3227,15 +2750,11 @@ public com.google.cloud.dataproc.v1.SparkSqlJob getSparkSqlJob() { } } /** - * - * *
      * Optional. Job is a SparkSql job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) { if (sparkSqlJobBuilder_ == null) { @@ -3251,15 +2770,11 @@ public Builder setSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) { return this; } /** - * - * *
      * Optional. Job is a SparkSql job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSparkSqlJob( com.google.cloud.dataproc.v1.SparkSqlJob.Builder builderForValue) { @@ -3273,25 +2788,18 @@ public Builder setSparkSqlJob( return this; } /** - * - * *
      * Optional. Job is a SparkSql job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) { if (sparkSqlJobBuilder_ == null) { - if (jobTypeCase_ == 7 - && jobType_ != com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1.SparkSqlJob.newBuilder( - (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_) - .mergeFrom(value) - .buildPartial(); + if (jobTypeCase_ == 7 && + jobType_ != com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance()) { + jobType_ = com.google.cloud.dataproc.v1.SparkSqlJob.newBuilder((com.google.cloud.dataproc.v1.SparkSqlJob) jobType_) + .mergeFrom(value).buildPartial(); } else { jobType_ = value; } @@ -3307,15 +2815,11 @@ public Builder mergeSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) return this; } /** - * - * *
      * Optional. Job is a SparkSql job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSparkSqlJob() { if (sparkSqlJobBuilder_ == null) { @@ -3334,29 +2838,21 @@ public Builder clearSparkSqlJob() { return this; } /** - * - * *
      * Optional. Job is a SparkSql job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.SparkSqlJob.Builder getSparkSqlJobBuilder() { return getSparkSqlJobFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Job is a SparkSql job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder() { @@ -3370,57 +2866,39 @@ public com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder } } /** - * - * *
      * Optional. Job is a SparkSql job.
      * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlJob, - com.google.cloud.dataproc.v1.SparkSqlJob.Builder, - com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> + com.google.cloud.dataproc.v1.SparkSqlJob, com.google.cloud.dataproc.v1.SparkSqlJob.Builder, com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> getSparkSqlJobFieldBuilder() { if (sparkSqlJobBuilder_ == null) { if (!(jobTypeCase_ == 7)) { jobType_ = com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); } - sparkSqlJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlJob, - com.google.cloud.dataproc.v1.SparkSqlJob.Builder, - com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder>( + sparkSqlJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkSqlJob, com.google.cloud.dataproc.v1.SparkSqlJob.Builder, com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder>( (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_, getParentForChildren(), isClean()); jobType_ = null; } jobTypeCase_ = 7; - onChanged(); - ; + onChanged();; return sparkSqlJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PrestoJob, - com.google.cloud.dataproc.v1.PrestoJob.Builder, - com.google.cloud.dataproc.v1.PrestoJobOrBuilder> - prestoJobBuilder_; + com.google.cloud.dataproc.v1.PrestoJob, com.google.cloud.dataproc.v1.PrestoJob.Builder, com.google.cloud.dataproc.v1.PrestoJobOrBuilder> prestoJobBuilder_; /** - * - * *
      * Optional. Job is a Presto job.
      * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the prestoJob field is set. */ @java.lang.Override @@ -3428,16 +2906,11 @@ public boolean hasPrestoJob() { return jobTypeCase_ == 12; } /** - * - * *
      * Optional. Job is a Presto job.
      * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The prestoJob. */ @java.lang.Override @@ -3455,15 +2928,11 @@ public com.google.cloud.dataproc.v1.PrestoJob getPrestoJob() { } } /** - * - * *
      * Optional. Job is a Presto job.
      * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { if (prestoJobBuilder_ == null) { @@ -3479,17 +2948,14 @@ public Builder setPrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { return this; } /** - * - * *
      * Optional. Job is a Presto job.
      * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPrestoJob(com.google.cloud.dataproc.v1.PrestoJob.Builder builderForValue) { + public Builder setPrestoJob( + com.google.cloud.dataproc.v1.PrestoJob.Builder builderForValue) { if (prestoJobBuilder_ == null) { jobType_ = builderForValue.build(); onChanged(); @@ -3500,25 +2966,18 @@ public Builder setPrestoJob(com.google.cloud.dataproc.v1.PrestoJob.Builder build return this; } /** - * - * *
      * Optional. Job is a Presto job.
      * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergePrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { if (prestoJobBuilder_ == null) { - if (jobTypeCase_ == 12 - && jobType_ != com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1.PrestoJob.newBuilder( - (com.google.cloud.dataproc.v1.PrestoJob) jobType_) - .mergeFrom(value) - .buildPartial(); + if (jobTypeCase_ == 12 && + jobType_ != com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance()) { + jobType_ = com.google.cloud.dataproc.v1.PrestoJob.newBuilder((com.google.cloud.dataproc.v1.PrestoJob) jobType_) + .mergeFrom(value).buildPartial(); } else { jobType_ = value; } @@ -3534,15 +2993,11 @@ public Builder mergePrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { return this; } /** - * - * *
      * Optional. Job is a Presto job.
      * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPrestoJob() { if (prestoJobBuilder_ == null) { @@ -3561,29 +3016,21 @@ public Builder clearPrestoJob() { return this; } /** - * - * *
      * Optional. Job is a Presto job.
      * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.PrestoJob.Builder getPrestoJobBuilder() { return getPrestoJobFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Job is a Presto job.
      * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder() { @@ -3597,56 +3044,47 @@ public com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder() { } } /** - * - * *
      * Optional. Job is a Presto job.
      * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PrestoJob, - com.google.cloud.dataproc.v1.PrestoJob.Builder, - com.google.cloud.dataproc.v1.PrestoJobOrBuilder> + com.google.cloud.dataproc.v1.PrestoJob, com.google.cloud.dataproc.v1.PrestoJob.Builder, com.google.cloud.dataproc.v1.PrestoJobOrBuilder> getPrestoJobFieldBuilder() { if (prestoJobBuilder_ == null) { if (!(jobTypeCase_ == 12)) { jobType_ = com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); } - prestoJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PrestoJob, - com.google.cloud.dataproc.v1.PrestoJob.Builder, - com.google.cloud.dataproc.v1.PrestoJobOrBuilder>( + prestoJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PrestoJob, com.google.cloud.dataproc.v1.PrestoJob.Builder, com.google.cloud.dataproc.v1.PrestoJobOrBuilder>( (com.google.cloud.dataproc.v1.PrestoJob) jobType_, getParentForChildren(), isClean()); jobType_ = null; } jobTypeCase_ = 12; - onChanged(); - ; + onChanged();; return prestoJobBuilder_; } - 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(); @@ -3658,8 +3096,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels to associate with this job.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -3672,22 +3108,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @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();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this job.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -3701,12 +3137,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this job.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -3720,17 +3155,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this job.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -3744,11 +3178,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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();
       }
@@ -3756,12 +3191,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this job.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -3774,21 +3208,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this job.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -3801,20 +3237,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this job.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -3827,65 +3262,49 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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.dataproc.v1.JobScheduling scheduling_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dataproc.v1.JobScheduling,
-            com.google.cloud.dataproc.v1.JobScheduling.Builder,
-            com.google.cloud.dataproc.v1.JobSchedulingOrBuilder>
-        schedulingBuilder_;
+        com.google.cloud.dataproc.v1.JobScheduling, com.google.cloud.dataproc.v1.JobScheduling.Builder, com.google.cloud.dataproc.v1.JobSchedulingOrBuilder> schedulingBuilder_;
     /**
-     *
-     *
      * 
      * Optional. Job scheduling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the scheduling field is set. */ public boolean hasScheduling() { return schedulingBuilder_ != null || scheduling_ != null; } /** - * - * *
      * Optional. Job scheduling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The scheduling. */ public com.google.cloud.dataproc.v1.JobScheduling getScheduling() { if (schedulingBuilder_ == null) { - return scheduling_ == null - ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() - : scheduling_; + return scheduling_ == null ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() : scheduling_; } else { return schedulingBuilder_.getMessage(); } } /** - * - * *
      * Optional. Job scheduling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setScheduling(com.google.cloud.dataproc.v1.JobScheduling value) { if (schedulingBuilder_ == null) { @@ -3901,15 +3320,11 @@ public Builder setScheduling(com.google.cloud.dataproc.v1.JobScheduling value) { return this; } /** - * - * *
      * Optional. Job scheduling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setScheduling( com.google.cloud.dataproc.v1.JobScheduling.Builder builderForValue) { @@ -3923,23 +3338,17 @@ public Builder setScheduling( return this; } /** - * - * *
      * Optional. Job scheduling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeScheduling(com.google.cloud.dataproc.v1.JobScheduling value) { if (schedulingBuilder_ == null) { if (scheduling_ != null) { scheduling_ = - com.google.cloud.dataproc.v1.JobScheduling.newBuilder(scheduling_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.JobScheduling.newBuilder(scheduling_).mergeFrom(value).buildPartial(); } else { scheduling_ = value; } @@ -3951,15 +3360,11 @@ public Builder mergeScheduling(com.google.cloud.dataproc.v1.JobScheduling value) return this; } /** - * - * *
      * Optional. Job scheduling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearScheduling() { if (schedulingBuilder_ == null) { @@ -3973,121 +3378,92 @@ public Builder clearScheduling() { return this; } /** - * - * *
      * Optional. Job scheduling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.JobScheduling.Builder getSchedulingBuilder() { - + onChanged(); return getSchedulingFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Job scheduling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilder() { if (schedulingBuilder_ != null) { return schedulingBuilder_.getMessageOrBuilder(); } else { - return scheduling_ == null - ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() - : scheduling_; + return scheduling_ == null ? + com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() : scheduling_; } } /** - * - * *
      * Optional. Job scheduling configuration.
      * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobScheduling, - com.google.cloud.dataproc.v1.JobScheduling.Builder, - com.google.cloud.dataproc.v1.JobSchedulingOrBuilder> + com.google.cloud.dataproc.v1.JobScheduling, com.google.cloud.dataproc.v1.JobScheduling.Builder, com.google.cloud.dataproc.v1.JobSchedulingOrBuilder> getSchedulingFieldBuilder() { if (schedulingBuilder_ == null) { - schedulingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobScheduling, - com.google.cloud.dataproc.v1.JobScheduling.Builder, - com.google.cloud.dataproc.v1.JobSchedulingOrBuilder>( - getScheduling(), getParentForChildren(), isClean()); + schedulingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.JobScheduling, com.google.cloud.dataproc.v1.JobScheduling.Builder, com.google.cloud.dataproc.v1.JobSchedulingOrBuilder>( + getScheduling(), + getParentForChildren(), + isClean()); scheduling_ = null; } return schedulingBuilder_; } - private com.google.protobuf.LazyStringList prerequisiteStepIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePrerequisiteStepIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { prerequisiteStepIds_ = new com.google.protobuf.LazyStringArrayList(prerequisiteStepIds_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Optional. The optional list of prerequisite job step_ids.
      * If not specified, the job will start at the beginning of workflow.
      * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the prerequisiteStepIds. */ - public com.google.protobuf.ProtocolStringList getPrerequisiteStepIdsList() { + public com.google.protobuf.ProtocolStringList + getPrerequisiteStepIdsList() { return prerequisiteStepIds_.getUnmodifiableView(); } /** - * - * *
      * Optional. The optional list of prerequisite job step_ids.
      * If not specified, the job will start at the beginning of workflow.
      * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of prerequisiteStepIds. */ public int getPrerequisiteStepIdsCount() { return prerequisiteStepIds_.size(); } /** - * - * *
      * Optional. The optional list of prerequisite job step_ids.
      * If not specified, the job will start at the beginning of workflow.
      * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The prerequisiteStepIds at the given index. */ @@ -4095,100 +3471,85 @@ public java.lang.String getPrerequisiteStepIds(int index) { return prerequisiteStepIds_.get(index); } /** - * - * *
      * Optional. The optional list of prerequisite job step_ids.
      * If not specified, the job will start at the beginning of workflow.
      * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the prerequisiteStepIds at the given index. */ - public com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index) { + public com.google.protobuf.ByteString + getPrerequisiteStepIdsBytes(int index) { return prerequisiteStepIds_.getByteString(index); } /** - * - * *
      * Optional. The optional list of prerequisite job step_ids.
      * If not specified, the job will start at the beginning of workflow.
      * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The prerequisiteStepIds to set. * @return This builder for chaining. */ - public Builder setPrerequisiteStepIds(int index, java.lang.String value) { + public Builder setPrerequisiteStepIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePrerequisiteStepIdsIsMutable(); + throw new NullPointerException(); + } + ensurePrerequisiteStepIdsIsMutable(); prerequisiteStepIds_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. The optional list of prerequisite job step_ids.
      * If not specified, the job will start at the beginning of workflow.
      * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param value The prerequisiteStepIds to add. * @return This builder for chaining. */ - public Builder addPrerequisiteStepIds(java.lang.String value) { + public Builder addPrerequisiteStepIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePrerequisiteStepIdsIsMutable(); + throw new NullPointerException(); + } + ensurePrerequisiteStepIdsIsMutable(); prerequisiteStepIds_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. The optional list of prerequisite job step_ids.
      * If not specified, the job will start at the beginning of workflow.
      * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param values The prerequisiteStepIds to add. * @return This builder for chaining. */ - public Builder addAllPrerequisiteStepIds(java.lang.Iterable values) { + public Builder addAllPrerequisiteStepIds( + java.lang.Iterable values) { ensurePrerequisiteStepIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prerequisiteStepIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, prerequisiteStepIds_); onChanged(); return this; } /** - * - * *
      * Optional. The optional list of prerequisite job step_ids.
      * If not specified, the job will start at the beginning of workflow.
      * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearPrerequisiteStepIds() { @@ -4198,32 +3559,29 @@ public Builder clearPrerequisiteStepIds() { return this; } /** - * - * *
      * Optional. The optional list of prerequisite job step_ids.
      * If not specified, the job will start at the beginning of workflow.
      * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the prerequisiteStepIds to add. * @return This builder for chaining. */ - public Builder addPrerequisiteStepIdsBytes(com.google.protobuf.ByteString value) { + public Builder addPrerequisiteStepIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePrerequisiteStepIdsIsMutable(); prerequisiteStepIds_.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); } @@ -4233,12 +3591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.OrderedJob) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.OrderedJob) private static final com.google.cloud.dataproc.v1.OrderedJob DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.OrderedJob(); } @@ -4247,27 +3605,27 @@ public static com.google.cloud.dataproc.v1.OrderedJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrderedJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrderedJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4282,4 +3640,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.OrderedJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java index d810593c65a0..d261c86d52c9 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface OrderedJobOrBuilder - extends +public interface OrderedJobOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.OrderedJob) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The step id. The id must be unique among all jobs
    * within the template.
@@ -39,13 +21,10 @@ public interface OrderedJobOrBuilder
    * 
* * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The stepId. */ java.lang.String getStepId(); /** - * - * *
    * Required. The step id. The id must be unique among all jobs
    * within the template.
@@ -59,336 +38,228 @@ public interface OrderedJobOrBuilder
    * 
* * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for stepId. */ - com.google.protobuf.ByteString getStepIdBytes(); + com.google.protobuf.ByteString + getStepIdBytes(); /** - * - * *
    * Optional. Job is a Hadoop job.
    * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the hadoopJob field is set. */ boolean hasHadoopJob(); /** - * - * *
    * Optional. Job is a Hadoop job.
    * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The hadoopJob. */ com.google.cloud.dataproc.v1.HadoopJob getHadoopJob(); /** - * - * *
    * Optional. Job is a Hadoop job.
    * 
* - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder(); /** - * - * *
    * Optional. Job is a Spark job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkJob field is set. */ boolean hasSparkJob(); /** - * - * *
    * Optional. Job is a Spark job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkJob. */ com.google.cloud.dataproc.v1.SparkJob getSparkJob(); /** - * - * *
    * Optional. Job is a Spark job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder(); /** - * - * *
    * Optional. Job is a PySpark job.
    * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pysparkJob field is set. */ boolean hasPysparkJob(); /** - * - * *
    * Optional. Job is a PySpark job.
    * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The pysparkJob. */ com.google.cloud.dataproc.v1.PySparkJob getPysparkJob(); /** - * - * *
    * Optional. Job is a PySpark job.
    * 
* - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder(); /** - * - * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the hiveJob field is set. */ boolean hasHiveJob(); /** - * - * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The hiveJob. */ com.google.cloud.dataproc.v1.HiveJob getHiveJob(); /** - * - * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder(); /** - * - * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the pigJob field is set. */ boolean hasPigJob(); /** - * - * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The pigJob. */ com.google.cloud.dataproc.v1.PigJob getPigJob(); /** - * - * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder(); /** - * - * *
    * Optional. Job is a SparkR job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkRJob field is set. */ boolean hasSparkRJob(); /** - * - * *
    * Optional. Job is a SparkR job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkRJob. */ com.google.cloud.dataproc.v1.SparkRJob getSparkRJob(); /** - * - * *
    * Optional. Job is a SparkR job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder(); /** - * - * *
    * Optional. Job is a SparkSql job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkSqlJob field is set. */ boolean hasSparkSqlJob(); /** - * - * *
    * Optional. Job is a SparkSql job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkSqlJob. */ com.google.cloud.dataproc.v1.SparkSqlJob getSparkSqlJob(); /** - * - * *
    * Optional. Job is a SparkSql job.
    * 
* - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder(); /** - * - * *
    * Optional. Job is a Presto job.
    * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the prestoJob field is set. */ boolean hasPrestoJob(); /** - * - * *
    * Optional. Job is a Presto job.
    * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The prestoJob. */ com.google.cloud.dataproc.v1.PrestoJob getPrestoJob(); /** - * - * *
    * Optional. Job is a Presto job.
    * 
* - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder(); /** - * - * *
    * Optional. The labels to associate with this job.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -403,8 +274,6 @@ public interface OrderedJobOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this job.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -417,13 +286,15 @@ public interface OrderedJobOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  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();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this job.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -436,10 +307,9 @@ public interface OrderedJobOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this job.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -454,13 +324,11 @@ public interface OrderedJobOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this job.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -473,107 +341,81 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Optional. Job scheduling configuration.
    * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the scheduling field is set. */ boolean hasScheduling(); /** - * - * *
    * Optional. Job scheduling configuration.
    * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The scheduling. */ com.google.cloud.dataproc.v1.JobScheduling getScheduling(); /** - * - * *
    * Optional. Job scheduling configuration.
    * 
* - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilder(); /** - * - * *
    * Optional. The optional list of prerequisite job step_ids.
    * If not specified, the job will start at the beginning of workflow.
    * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the prerequisiteStepIds. */ - java.util.List getPrerequisiteStepIdsList(); + java.util.List + getPrerequisiteStepIdsList(); /** - * - * *
    * Optional. The optional list of prerequisite job step_ids.
    * If not specified, the job will start at the beginning of workflow.
    * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of prerequisiteStepIds. */ int getPrerequisiteStepIdsCount(); /** - * - * *
    * Optional. The optional list of prerequisite job step_ids.
    * If not specified, the job will start at the beginning of workflow.
    * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The prerequisiteStepIds at the given index. */ java.lang.String getPrerequisiteStepIds(int index); /** - * - * *
    * Optional. The optional list of prerequisite job step_ids.
    * If not specified, the job will start at the beginning of workflow.
    * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the prerequisiteStepIds at the given index. */ - com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index); + com.google.protobuf.ByteString + getPrerequisiteStepIdsBytes(int index); public com.google.cloud.dataproc.v1.OrderedJob.JobTypeCase getJobTypeCase(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java similarity index 70% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java index 8575719d77d1..896c75528aee 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java @@ -1,82 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Configuration for parameter validation.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ParameterValidation} */ -public final class ParameterValidation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ParameterValidation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ParameterValidation) ParameterValidationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ParameterValidation.newBuilder() to construct. private ParameterValidation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ParameterValidation() {} + private ParameterValidation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ParameterValidation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ParameterValidation_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ParameterValidation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ParameterValidation.class, - com.google.cloud.dataproc.v1.ParameterValidation.Builder.class); + com.google.cloud.dataproc.v1.ParameterValidation.class, com.google.cloud.dataproc.v1.ParameterValidation.Builder.class); } private int validationTypeCase_ = 0; private java.lang.Object validationType_; - public enum ValidationTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { REGEX(1), VALUES(2), VALIDATIONTYPE_NOT_SET(0); private final int value; - private ValidationTypeCase(int value) { this.value = value; } @@ -92,36 +71,30 @@ public static ValidationTypeCase valueOf(int value) { public static ValidationTypeCase forNumber(int value) { switch (value) { - case 1: - return REGEX; - case 2: - return VALUES; - case 0: - return VALIDATIONTYPE_NOT_SET; - default: - return null; + case 1: return REGEX; + case 2: return VALUES; + case 0: return VALIDATIONTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ValidationTypeCase getValidationTypeCase() { - return ValidationTypeCase.forNumber(validationTypeCase_); + public ValidationTypeCase + getValidationTypeCase() { + return ValidationTypeCase.forNumber( + validationTypeCase_); } public static final int REGEX_FIELD_NUMBER = 1; /** - * - * *
    * Validation based on regular expressions.
    * 
* * .google.cloud.dataproc.v1.RegexValidation regex = 1; - * * @return Whether the regex field is set. */ @java.lang.Override @@ -129,26 +102,21 @@ public boolean hasRegex() { return validationTypeCase_ == 1; } /** - * - * *
    * Validation based on regular expressions.
    * 
* * .google.cloud.dataproc.v1.RegexValidation regex = 1; - * * @return The regex. */ @java.lang.Override public com.google.cloud.dataproc.v1.RegexValidation getRegex() { if (validationTypeCase_ == 1) { - return (com.google.cloud.dataproc.v1.RegexValidation) validationType_; + return (com.google.cloud.dataproc.v1.RegexValidation) validationType_; } return com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance(); } /** - * - * *
    * Validation based on regular expressions.
    * 
@@ -158,21 +126,18 @@ public com.google.cloud.dataproc.v1.RegexValidation getRegex() { @java.lang.Override public com.google.cloud.dataproc.v1.RegexValidationOrBuilder getRegexOrBuilder() { if (validationTypeCase_ == 1) { - return (com.google.cloud.dataproc.v1.RegexValidation) validationType_; + return (com.google.cloud.dataproc.v1.RegexValidation) validationType_; } return com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance(); } public static final int VALUES_FIELD_NUMBER = 2; /** - * - * *
    * Validation based on a list of allowed values.
    * 
* * .google.cloud.dataproc.v1.ValueValidation values = 2; - * * @return Whether the values field is set. */ @java.lang.Override @@ -180,26 +145,21 @@ public boolean hasValues() { return validationTypeCase_ == 2; } /** - * - * *
    * Validation based on a list of allowed values.
    * 
* * .google.cloud.dataproc.v1.ValueValidation values = 2; - * * @return The values. */ @java.lang.Override public com.google.cloud.dataproc.v1.ValueValidation getValues() { if (validationTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1.ValueValidation) validationType_; + return (com.google.cloud.dataproc.v1.ValueValidation) validationType_; } return com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance(); } /** - * - * *
    * Validation based on a list of allowed values.
    * 
@@ -209,13 +169,12 @@ public com.google.cloud.dataproc.v1.ValueValidation getValues() { @java.lang.Override public com.google.cloud.dataproc.v1.ValueValidationOrBuilder getValuesOrBuilder() { if (validationTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1.ValueValidation) validationType_; + return (com.google.cloud.dataproc.v1.ValueValidation) validationType_; } return com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,7 +186,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 (validationTypeCase_ == 1) { output.writeMessage(1, (com.google.cloud.dataproc.v1.RegexValidation) validationType_); } @@ -244,14 +204,12 @@ public int getSerializedSize() { size = 0; if (validationTypeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.dataproc.v1.RegexValidation) validationType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.dataproc.v1.RegexValidation) validationType_); } if (validationTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1.ValueValidation) validationType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.dataproc.v1.ValueValidation) validationType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -261,21 +219,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.dataproc.v1.ParameterValidation)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ParameterValidation other = - (com.google.cloud.dataproc.v1.ParameterValidation) obj; + com.google.cloud.dataproc.v1.ParameterValidation other = (com.google.cloud.dataproc.v1.ParameterValidation) obj; if (!getValidationTypeCase().equals(other.getValidationTypeCase())) return false; switch (validationTypeCase_) { case 1: - if (!getRegex().equals(other.getRegex())) return false; + if (!getRegex() + .equals(other.getRegex())) return false; break; case 2: - if (!getValues().equals(other.getValues())) return false; + if (!getValues() + .equals(other.getValues())) return false; break; case 0: default: @@ -308,136 +267,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ParameterValidation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ParameterValidation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ParameterValidation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ParameterValidation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration for parameter validation.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ParameterValidation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ParameterValidation) com.google.cloud.dataproc.v1.ParameterValidationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ParameterValidation_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ParameterValidation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ParameterValidation.class, - com.google.cloud.dataproc.v1.ParameterValidation.Builder.class); + com.google.cloud.dataproc.v1.ParameterValidation.class, com.google.cloud.dataproc.v1.ParameterValidation.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ParameterValidation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -453,9 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; } @java.lang.Override @@ -474,8 +427,7 @@ public com.google.cloud.dataproc.v1.ParameterValidation build() { @java.lang.Override public com.google.cloud.dataproc.v1.ParameterValidation buildPartial() { - com.google.cloud.dataproc.v1.ParameterValidation result = - new com.google.cloud.dataproc.v1.ParameterValidation(this); + com.google.cloud.dataproc.v1.ParameterValidation result = new com.google.cloud.dataproc.v1.ParameterValidation(this); if (validationTypeCase_ == 1) { if (regexBuilder_ == null) { result.validationType_ = validationType_; @@ -499,39 +451,38 @@ public com.google.cloud.dataproc.v1.ParameterValidation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ParameterValidation) { - return mergeFrom((com.google.cloud.dataproc.v1.ParameterValidation) other); + return mergeFrom((com.google.cloud.dataproc.v1.ParameterValidation)other); } else { super.mergeFrom(other); return this; @@ -539,23 +490,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ParameterValidation other) { - if (other == com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance()) return this; switch (other.getValidationTypeCase()) { - case REGEX: - { - mergeRegex(other.getRegex()); - break; - } - case VALUES: - { - mergeValues(other.getValues()); - break; - } - case VALIDATIONTYPE_NOT_SET: - { - break; - } + case REGEX: { + mergeRegex(other.getRegex()); + break; + } + case VALUES: { + mergeValues(other.getValues()); + break; + } + case VALIDATIONTYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -583,25 +530,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getRegexFieldBuilder().getBuilder(), extensionRegistry); - validationTypeCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getValuesFieldBuilder().getBuilder(), extensionRegistry); - validationTypeCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getRegexFieldBuilder().getBuilder(), + extensionRegistry); + validationTypeCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getValuesFieldBuilder().getBuilder(), + extensionRegistry); + validationTypeCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -611,12 +559,12 @@ public Builder mergeFrom( } // finally return this; } - private int validationTypeCase_ = 0; private java.lang.Object validationType_; - - public ValidationTypeCase getValidationTypeCase() { - return ValidationTypeCase.forNumber(validationTypeCase_); + public ValidationTypeCase + getValidationTypeCase() { + return ValidationTypeCase.forNumber( + validationTypeCase_); } public Builder clearValidationType() { @@ -626,20 +574,15 @@ public Builder clearValidationType() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RegexValidation, - com.google.cloud.dataproc.v1.RegexValidation.Builder, - com.google.cloud.dataproc.v1.RegexValidationOrBuilder> - regexBuilder_; + com.google.cloud.dataproc.v1.RegexValidation, com.google.cloud.dataproc.v1.RegexValidation.Builder, com.google.cloud.dataproc.v1.RegexValidationOrBuilder> regexBuilder_; /** - * - * *
      * Validation based on regular expressions.
      * 
* * .google.cloud.dataproc.v1.RegexValidation regex = 1; - * * @return Whether the regex field is set. */ @java.lang.Override @@ -647,14 +590,11 @@ public boolean hasRegex() { return validationTypeCase_ == 1; } /** - * - * *
      * Validation based on regular expressions.
      * 
* * .google.cloud.dataproc.v1.RegexValidation regex = 1; - * * @return The regex. */ @java.lang.Override @@ -672,8 +612,6 @@ public com.google.cloud.dataproc.v1.RegexValidation getRegex() { } } /** - * - * *
      * Validation based on regular expressions.
      * 
@@ -694,15 +632,14 @@ public Builder setRegex(com.google.cloud.dataproc.v1.RegexValidation value) { return this; } /** - * - * *
      * Validation based on regular expressions.
      * 
* * .google.cloud.dataproc.v1.RegexValidation regex = 1; */ - public Builder setRegex(com.google.cloud.dataproc.v1.RegexValidation.Builder builderForValue) { + public Builder setRegex( + com.google.cloud.dataproc.v1.RegexValidation.Builder builderForValue) { if (regexBuilder_ == null) { validationType_ = builderForValue.build(); onChanged(); @@ -713,8 +650,6 @@ public Builder setRegex(com.google.cloud.dataproc.v1.RegexValidation.Builder bui return this; } /** - * - * *
      * Validation based on regular expressions.
      * 
@@ -723,14 +658,10 @@ public Builder setRegex(com.google.cloud.dataproc.v1.RegexValidation.Builder bui */ public Builder mergeRegex(com.google.cloud.dataproc.v1.RegexValidation value) { if (regexBuilder_ == null) { - if (validationTypeCase_ == 1 - && validationType_ - != com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance()) { - validationType_ = - com.google.cloud.dataproc.v1.RegexValidation.newBuilder( - (com.google.cloud.dataproc.v1.RegexValidation) validationType_) - .mergeFrom(value) - .buildPartial(); + if (validationTypeCase_ == 1 && + validationType_ != com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance()) { + validationType_ = com.google.cloud.dataproc.v1.RegexValidation.newBuilder((com.google.cloud.dataproc.v1.RegexValidation) validationType_) + .mergeFrom(value).buildPartial(); } else { validationType_ = value; } @@ -746,8 +677,6 @@ public Builder mergeRegex(com.google.cloud.dataproc.v1.RegexValidation value) { return this; } /** - * - * *
      * Validation based on regular expressions.
      * 
@@ -771,8 +700,6 @@ public Builder clearRegex() { return this; } /** - * - * *
      * Validation based on regular expressions.
      * 
@@ -783,8 +710,6 @@ public com.google.cloud.dataproc.v1.RegexValidation.Builder getRegexBuilder() { return getRegexFieldBuilder().getBuilder(); } /** - * - * *
      * Validation based on regular expressions.
      * 
@@ -803,8 +728,6 @@ public com.google.cloud.dataproc.v1.RegexValidationOrBuilder getRegexOrBuilder() } } /** - * - * *
      * Validation based on regular expressions.
      * 
@@ -812,44 +735,32 @@ public com.google.cloud.dataproc.v1.RegexValidationOrBuilder getRegexOrBuilder() * .google.cloud.dataproc.v1.RegexValidation regex = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RegexValidation, - com.google.cloud.dataproc.v1.RegexValidation.Builder, - com.google.cloud.dataproc.v1.RegexValidationOrBuilder> + com.google.cloud.dataproc.v1.RegexValidation, com.google.cloud.dataproc.v1.RegexValidation.Builder, com.google.cloud.dataproc.v1.RegexValidationOrBuilder> getRegexFieldBuilder() { if (regexBuilder_ == null) { if (!(validationTypeCase_ == 1)) { validationType_ = com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance(); } - regexBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RegexValidation, - com.google.cloud.dataproc.v1.RegexValidation.Builder, - com.google.cloud.dataproc.v1.RegexValidationOrBuilder>( + regexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.RegexValidation, com.google.cloud.dataproc.v1.RegexValidation.Builder, com.google.cloud.dataproc.v1.RegexValidationOrBuilder>( (com.google.cloud.dataproc.v1.RegexValidation) validationType_, getParentForChildren(), isClean()); validationType_ = null; } validationTypeCase_ = 1; - onChanged(); - ; + onChanged();; return regexBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ValueValidation, - com.google.cloud.dataproc.v1.ValueValidation.Builder, - com.google.cloud.dataproc.v1.ValueValidationOrBuilder> - valuesBuilder_; + com.google.cloud.dataproc.v1.ValueValidation, com.google.cloud.dataproc.v1.ValueValidation.Builder, com.google.cloud.dataproc.v1.ValueValidationOrBuilder> valuesBuilder_; /** - * - * *
      * Validation based on a list of allowed values.
      * 
* * .google.cloud.dataproc.v1.ValueValidation values = 2; - * * @return Whether the values field is set. */ @java.lang.Override @@ -857,14 +768,11 @@ public boolean hasValues() { return validationTypeCase_ == 2; } /** - * - * *
      * Validation based on a list of allowed values.
      * 
* * .google.cloud.dataproc.v1.ValueValidation values = 2; - * * @return The values. */ @java.lang.Override @@ -882,8 +790,6 @@ public com.google.cloud.dataproc.v1.ValueValidation getValues() { } } /** - * - * *
      * Validation based on a list of allowed values.
      * 
@@ -904,15 +810,14 @@ public Builder setValues(com.google.cloud.dataproc.v1.ValueValidation value) { return this; } /** - * - * *
      * Validation based on a list of allowed values.
      * 
* * .google.cloud.dataproc.v1.ValueValidation values = 2; */ - public Builder setValues(com.google.cloud.dataproc.v1.ValueValidation.Builder builderForValue) { + public Builder setValues( + com.google.cloud.dataproc.v1.ValueValidation.Builder builderForValue) { if (valuesBuilder_ == null) { validationType_ = builderForValue.build(); onChanged(); @@ -923,8 +828,6 @@ public Builder setValues(com.google.cloud.dataproc.v1.ValueValidation.Builder bu return this; } /** - * - * *
      * Validation based on a list of allowed values.
      * 
@@ -933,14 +836,10 @@ public Builder setValues(com.google.cloud.dataproc.v1.ValueValidation.Builder bu */ public Builder mergeValues(com.google.cloud.dataproc.v1.ValueValidation value) { if (valuesBuilder_ == null) { - if (validationTypeCase_ == 2 - && validationType_ - != com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance()) { - validationType_ = - com.google.cloud.dataproc.v1.ValueValidation.newBuilder( - (com.google.cloud.dataproc.v1.ValueValidation) validationType_) - .mergeFrom(value) - .buildPartial(); + if (validationTypeCase_ == 2 && + validationType_ != com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance()) { + validationType_ = com.google.cloud.dataproc.v1.ValueValidation.newBuilder((com.google.cloud.dataproc.v1.ValueValidation) validationType_) + .mergeFrom(value).buildPartial(); } else { validationType_ = value; } @@ -956,8 +855,6 @@ public Builder mergeValues(com.google.cloud.dataproc.v1.ValueValidation value) { return this; } /** - * - * *
      * Validation based on a list of allowed values.
      * 
@@ -981,8 +878,6 @@ public Builder clearValues() { return this; } /** - * - * *
      * Validation based on a list of allowed values.
      * 
@@ -993,8 +888,6 @@ public com.google.cloud.dataproc.v1.ValueValidation.Builder getValuesBuilder() { return getValuesFieldBuilder().getBuilder(); } /** - * - * *
      * Validation based on a list of allowed values.
      * 
@@ -1013,8 +906,6 @@ public com.google.cloud.dataproc.v1.ValueValidationOrBuilder getValuesOrBuilder( } } /** - * - * *
      * Validation based on a list of allowed values.
      * 
@@ -1022,32 +913,26 @@ public com.google.cloud.dataproc.v1.ValueValidationOrBuilder getValuesOrBuilder( * .google.cloud.dataproc.v1.ValueValidation values = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ValueValidation, - com.google.cloud.dataproc.v1.ValueValidation.Builder, - com.google.cloud.dataproc.v1.ValueValidationOrBuilder> + com.google.cloud.dataproc.v1.ValueValidation, com.google.cloud.dataproc.v1.ValueValidation.Builder, com.google.cloud.dataproc.v1.ValueValidationOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { if (!(validationTypeCase_ == 2)) { validationType_ = com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance(); } - valuesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ValueValidation, - com.google.cloud.dataproc.v1.ValueValidation.Builder, - com.google.cloud.dataproc.v1.ValueValidationOrBuilder>( + valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ValueValidation, com.google.cloud.dataproc.v1.ValueValidation.Builder, com.google.cloud.dataproc.v1.ValueValidationOrBuilder>( (com.google.cloud.dataproc.v1.ValueValidation) validationType_, getParentForChildren(), isClean()); validationType_ = null; } validationTypeCase_ = 2; - onChanged(); - ; + onChanged();; return valuesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1057,12 +942,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ParameterValidation) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ParameterValidation) private static final com.google.cloud.dataproc.v1.ParameterValidation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ParameterValidation(); } @@ -1071,27 +956,27 @@ public static com.google.cloud.dataproc.v1.ParameterValidation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParameterValidation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParameterValidation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1106,4 +991,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ParameterValidation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.java index 5528b51ccdd8..12740ef14bb5 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface ParameterValidationOrBuilder - extends +public interface ParameterValidationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ParameterValidation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Validation based on regular expressions.
    * 
* * .google.cloud.dataproc.v1.RegexValidation regex = 1; - * * @return Whether the regex field is set. */ boolean hasRegex(); /** - * - * *
    * Validation based on regular expressions.
    * 
* * .google.cloud.dataproc.v1.RegexValidation regex = 1; - * * @return The regex. */ com.google.cloud.dataproc.v1.RegexValidation getRegex(); /** - * - * *
    * Validation based on regular expressions.
    * 
@@ -59,32 +35,24 @@ public interface ParameterValidationOrBuilder com.google.cloud.dataproc.v1.RegexValidationOrBuilder getRegexOrBuilder(); /** - * - * *
    * Validation based on a list of allowed values.
    * 
* * .google.cloud.dataproc.v1.ValueValidation values = 2; - * * @return Whether the values field is set. */ boolean hasValues(); /** - * - * *
    * Validation based on a list of allowed values.
    * 
* * .google.cloud.dataproc.v1.ValueValidation values = 2; - * * @return The values. */ com.google.cloud.dataproc.v1.ValueValidation getValues(); /** - * - * *
    * Validation based on a list of allowed values.
    * 
@@ -93,6 +61,5 @@ public interface ParameterValidationOrBuilder */ com.google.cloud.dataproc.v1.ValueValidationOrBuilder getValuesOrBuilder(); - public com.google.cloud.dataproc.v1.ParameterValidation.ValidationTypeCase - getValidationTypeCase(); + public com.google.cloud.dataproc.v1.ParameterValidation.ValidationTypeCase getValidationTypeCase(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java similarity index 64% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java index f49d93b1accf..4a3085327b46 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java @@ -1,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Auxiliary services configuration for a workload.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.PeripheralsConfig} */ -public final class PeripheralsConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PeripheralsConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.PeripheralsConfig) PeripheralsConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PeripheralsConfig.newBuilder() to construct. private PeripheralsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PeripheralsConfig() { metastoreService_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PeripheralsConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.PeripheralsConfig.class, - com.google.cloud.dataproc.v1.PeripheralsConfig.Builder.class); + com.google.cloud.dataproc.v1.PeripheralsConfig.class, com.google.cloud.dataproc.v1.PeripheralsConfig.Builder.class); } public static final int METASTORE_SERVICE_FIELD_NUMBER = 1; private volatile java.lang.Object metastoreService_; /** - * - * *
    * Optional. Resource name of an existing Dataproc Metastore service.
    * Example:
@@ -79,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The metastoreService. */ @java.lang.Override @@ -88,15 +66,14 @@ public java.lang.String getMetastoreService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metastoreService_ = s; return s; } } /** - * - * *
    * Optional. Resource name of an existing Dataproc Metastore service.
    * Example:
@@ -104,15 +81,16 @@ public java.lang.String getMetastoreService() {
    * 
* * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for metastoreService. */ @java.lang.Override - public com.google.protobuf.ByteString getMetastoreServiceBytes() { + public com.google.protobuf.ByteString + getMetastoreServiceBytes() { java.lang.Object ref = metastoreService_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); metastoreService_ = b; return b; } else { @@ -123,16 +101,11 @@ public com.google.protobuf.ByteString getMetastoreServiceBytes() { public static final int SPARK_HISTORY_SERVER_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; /** - * - * *
    * Optional. The Spark History Server configuration for the workload.
    * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkHistoryServerConfig field is set. */ @java.lang.Override @@ -140,43 +113,30 @@ public boolean hasSparkHistoryServerConfig() { return sparkHistoryServerConfig_ != null; } /** - * - * *
    * Optional. The Spark History Server configuration for the workload.
    * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkHistoryServerConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { - return sparkHistoryServerConfig_ == null - ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() - : sparkHistoryServerConfig_; + return sparkHistoryServerConfig_ == null ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; } /** - * - * *
    * Optional. The Spark History Server configuration for the workload.
    * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder - getSparkHistoryServerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder() { return getSparkHistoryServerConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +148,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(metastoreService_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metastoreService_); } @@ -208,9 +169,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metastoreService_); } if (sparkHistoryServerConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getSparkHistoryServerConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSparkHistoryServerConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -220,18 +180,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.dataproc.v1.PeripheralsConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.PeripheralsConfig other = - (com.google.cloud.dataproc.v1.PeripheralsConfig) obj; + com.google.cloud.dataproc.v1.PeripheralsConfig other = (com.google.cloud.dataproc.v1.PeripheralsConfig) obj; - if (!getMetastoreService().equals(other.getMetastoreService())) return false; + if (!getMetastoreService() + .equals(other.getMetastoreService())) return false; if (hasSparkHistoryServerConfig() != other.hasSparkHistoryServerConfig()) return false; if (hasSparkHistoryServerConfig()) { - if (!getSparkHistoryServerConfig().equals(other.getSparkHistoryServerConfig())) return false; + if (!getSparkHistoryServerConfig() + .equals(other.getSparkHistoryServerConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -255,136 +216,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.PeripheralsConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Auxiliary services configuration for a workload.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.PeripheralsConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.PeripheralsConfig) com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.PeripheralsConfig.class, - com.google.cloud.dataproc.v1.PeripheralsConfig.Builder.class); + com.google.cloud.dataproc.v1.PeripheralsConfig.class, com.google.cloud.dataproc.v1.PeripheralsConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.PeripheralsConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -400,9 +355,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; } @java.lang.Override @@ -421,8 +376,7 @@ public com.google.cloud.dataproc.v1.PeripheralsConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.PeripheralsConfig buildPartial() { - com.google.cloud.dataproc.v1.PeripheralsConfig result = - new com.google.cloud.dataproc.v1.PeripheralsConfig(this); + com.google.cloud.dataproc.v1.PeripheralsConfig result = new com.google.cloud.dataproc.v1.PeripheralsConfig(this); result.metastoreService_ = metastoreService_; if (sparkHistoryServerConfigBuilder_ == null) { result.sparkHistoryServerConfig_ = sparkHistoryServerConfig_; @@ -437,39 +391,38 @@ public com.google.cloud.dataproc.v1.PeripheralsConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.PeripheralsConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.PeripheralsConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.PeripheralsConfig)other); } else { super.mergeFrom(other); return this; @@ -511,26 +464,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - metastoreService_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getSparkHistoryServerConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + metastoreService_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getSparkHistoryServerConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -543,8 +494,6 @@ public Builder mergeFrom( private java.lang.Object metastoreService_ = ""; /** - * - * *
      * Optional. Resource name of an existing Dataproc Metastore service.
      * Example:
@@ -552,13 +501,13 @@ public Builder mergeFrom(
      * 
* * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The metastoreService. */ public java.lang.String getMetastoreService() { java.lang.Object ref = metastoreService_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metastoreService_ = s; return s; @@ -567,8 +516,6 @@ public java.lang.String getMetastoreService() { } } /** - * - * *
      * Optional. Resource name of an existing Dataproc Metastore service.
      * Example:
@@ -576,14 +523,15 @@ public java.lang.String getMetastoreService() {
      * 
* * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for metastoreService. */ - public com.google.protobuf.ByteString getMetastoreServiceBytes() { + public com.google.protobuf.ByteString + getMetastoreServiceBytes() { java.lang.Object ref = metastoreService_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); metastoreService_ = b; return b; } else { @@ -591,8 +539,6 @@ public com.google.protobuf.ByteString getMetastoreServiceBytes() { } } /** - * - * *
      * Optional. Resource name of an existing Dataproc Metastore service.
      * Example:
@@ -600,22 +546,20 @@ public com.google.protobuf.ByteString getMetastoreServiceBytes() {
      * 
* * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The metastoreService to set. * @return This builder for chaining. */ - public Builder setMetastoreService(java.lang.String value) { + public Builder setMetastoreService( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + metastoreService_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Resource name of an existing Dataproc Metastore service.
      * Example:
@@ -623,18 +567,15 @@ public Builder setMetastoreService(java.lang.String value) {
      * 
* * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMetastoreService() { - + metastoreService_ = getDefaultInstance().getMetastoreService(); onChanged(); return this; } /** - * - * *
      * Optional. Resource name of an existing Dataproc Metastore service.
      * Example:
@@ -642,16 +583,16 @@ public Builder clearMetastoreService() {
      * 
* * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for metastoreService to set. * @return This builder for chaining. */ - public Builder setMetastoreServiceBytes(com.google.protobuf.ByteString value) { + public Builder setMetastoreServiceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metastoreService_ = value; onChanged(); return this; @@ -659,61 +600,41 @@ public Builder setMetastoreServiceBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkHistoryServerConfig, - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> - sparkHistoryServerConfigBuilder_; + com.google.cloud.dataproc.v1.SparkHistoryServerConfig, com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> sparkHistoryServerConfigBuilder_; /** - * - * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkHistoryServerConfig field is set. */ public boolean hasSparkHistoryServerConfig() { return sparkHistoryServerConfigBuilder_ != null || sparkHistoryServerConfig_ != null; } /** - * - * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkHistoryServerConfig. */ public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { if (sparkHistoryServerConfigBuilder_ == null) { - return sparkHistoryServerConfig_ == null - ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() - : sparkHistoryServerConfig_; + return sparkHistoryServerConfig_ == null ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; } else { return sparkHistoryServerConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setSparkHistoryServerConfig( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { + public Builder setSparkHistoryServerConfig(com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { if (sparkHistoryServerConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -727,15 +648,11 @@ public Builder setSparkHistoryServerConfig( return this; } /** - * - * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSparkHistoryServerConfig( com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder builderForValue) { @@ -749,25 +666,17 @@ public Builder setSparkHistoryServerConfig( return this; } /** - * - * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeSparkHistoryServerConfig( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { + public Builder mergeSparkHistoryServerConfig(com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { if (sparkHistoryServerConfigBuilder_ == null) { if (sparkHistoryServerConfig_ != null) { sparkHistoryServerConfig_ = - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.newBuilder( - sparkHistoryServerConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.newBuilder(sparkHistoryServerConfig_).mergeFrom(value).buildPartial(); } else { sparkHistoryServerConfig_ = value; } @@ -779,15 +688,11 @@ public Builder mergeSparkHistoryServerConfig( return this; } /** - * - * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSparkHistoryServerConfig() { if (sparkHistoryServerConfigBuilder_ == null) { @@ -801,73 +706,55 @@ public Builder clearSparkHistoryServerConfig() { return this; } /** - * - * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder - getSparkHistoryServerConfigBuilder() { - + public com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder getSparkHistoryServerConfigBuilder() { + onChanged(); return getSparkHistoryServerConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder - getSparkHistoryServerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder() { if (sparkHistoryServerConfigBuilder_ != null) { return sparkHistoryServerConfigBuilder_.getMessageOrBuilder(); } else { - return sparkHistoryServerConfig_ == null - ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() - : sparkHistoryServerConfig_; + return sparkHistoryServerConfig_ == null ? + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; } } /** - * - * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkHistoryServerConfig, - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> + com.google.cloud.dataproc.v1.SparkHistoryServerConfig, com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> getSparkHistoryServerConfigFieldBuilder() { if (sparkHistoryServerConfigBuilder_ == null) { - sparkHistoryServerConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkHistoryServerConfig, - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder>( - getSparkHistoryServerConfig(), getParentForChildren(), isClean()); + sparkHistoryServerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkHistoryServerConfig, com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder>( + getSparkHistoryServerConfig(), + getParentForChildren(), + isClean()); sparkHistoryServerConfig_ = null; } return sparkHistoryServerConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -877,12 +764,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.PeripheralsConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PeripheralsConfig) private static final com.google.cloud.dataproc.v1.PeripheralsConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.PeripheralsConfig(); } @@ -891,27 +778,27 @@ public static com.google.cloud.dataproc.v1.PeripheralsConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PeripheralsConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PeripheralsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -926,4 +813,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.PeripheralsConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java similarity index 55% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java index 9797286cbb5d..0d76f2eec314 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.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/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; -public interface PeripheralsConfigOrBuilder - extends +public interface PeripheralsConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PeripheralsConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Resource name of an existing Dataproc Metastore service.
    * Example:
@@ -33,13 +15,10 @@ public interface PeripheralsConfigOrBuilder
    * 
* * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The metastoreService. */ java.lang.String getMetastoreService(); /** - * - * *
    * Optional. Resource name of an existing Dataproc Metastore service.
    * Example:
@@ -47,50 +26,35 @@ public interface PeripheralsConfigOrBuilder
    * 
* * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for metastoreService. */ - com.google.protobuf.ByteString getMetastoreServiceBytes(); + com.google.protobuf.ByteString + getMetastoreServiceBytes(); /** - * - * *
    * Optional. The Spark History Server configuration for the workload.
    * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sparkHistoryServerConfig field is set. */ boolean hasSparkHistoryServerConfig(); /** - * - * *
    * Optional. The Spark History Server configuration for the workload.
    * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The sparkHistoryServerConfig. */ com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig(); /** - * - * *
    * Optional. The Spark History Server configuration for the workload.
    * 
* - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder - getSparkHistoryServerConfigOrBuilder(); + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java index 6a0d2ba89970..ee796a14b502 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A Dataproc job for running [Apache Pig](https://pig.apache.org/)
  * queries on YARN.
@@ -28,71 +11,67 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.PigJob}
  */
-public final class PigJob extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PigJob extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.PigJob)
     PigJobOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PigJob.newBuilder() to construct.
   private PigJob(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PigJob() {
     jarFileUris_ = 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 PigJob();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.JobsProto
-        .internal_static_google_cloud_dataproc_v1_PigJob_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PigJob_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 internalGetScriptVariables();
       case 5:
         return internalGetProperties();
       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.dataproc.v1.JobsProto
-        .internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.PigJob.class,
-            com.google.cloud.dataproc.v1.PigJob.Builder.class);
+            com.google.cloud.dataproc.v1.PigJob.class, com.google.cloud.dataproc.v1.PigJob.Builder.class);
   }
 
   private int queriesCase_ = 0;
   private java.lang.Object queries_;
-
   public enum QueriesCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     QUERY_FILE_URI(1),
     QUERY_LIST(2),
     QUERIES_NOT_SET(0);
     private final int value;
-
     private QueriesCase(int value) {
       this.value = value;
     }
@@ -108,50 +87,41 @@ public static QueriesCase valueOf(int value) {
 
     public static QueriesCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return QUERY_FILE_URI;
-        case 2:
-          return QUERY_LIST;
-        case 0:
-          return QUERIES_NOT_SET;
-        default:
-          return null;
+        case 1: return QUERY_FILE_URI;
+        case 2: return QUERY_LIST;
+        case 0: return QUERIES_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public QueriesCase getQueriesCase() {
-    return QueriesCase.forNumber(queriesCase_);
+  public QueriesCase
+  getQueriesCase() {
+    return QueriesCase.forNumber(
+        queriesCase_);
   }
 
   public static final int QUERY_FILE_URI_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * The HCFS URI of the script that contains the Pig queries.
    * 
* * string query_file_uri = 1; - * * @return Whether the queryFileUri field is set. */ public boolean hasQueryFileUri() { return queriesCase_ == 1; } /** - * - * *
    * The HCFS URI of the script that contains the Pig queries.
    * 
* * string query_file_uri = 1; - * * @return The queryFileUri. */ public java.lang.String getQueryFileUri() { @@ -162,7 +132,8 @@ public java.lang.String getQueryFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (queriesCase_ == 1) { queries_ = s; @@ -171,24 +142,23 @@ public java.lang.String getQueryFileUri() { } } /** - * - * *
    * The HCFS URI of the script that contains the Pig queries.
    * 
* * string query_file_uri = 1; - * * @return The bytes for queryFileUri. */ - public com.google.protobuf.ByteString getQueryFileUriBytes() { + public com.google.protobuf.ByteString + getQueryFileUriBytes() { java.lang.Object ref = ""; if (queriesCase_ == 1) { ref = queries_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (queriesCase_ == 1) { queries_ = b; } @@ -200,14 +170,11 @@ public com.google.protobuf.ByteString getQueryFileUriBytes() { public static final int QUERY_LIST_FIELD_NUMBER = 2; /** - * - * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return Whether the queryList field is set. */ @java.lang.Override @@ -215,26 +182,21 @@ public boolean hasQueryList() { return queriesCase_ == 2; } /** - * - * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return The queryList. */ @java.lang.Override public com.google.cloud.dataproc.v1.QueryList getQueryList() { if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; + return (com.google.cloud.dataproc.v1.QueryList) queries_; } return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } /** - * - * *
    * A list of queries.
    * 
@@ -244,7 +206,7 @@ public com.google.cloud.dataproc.v1.QueryList getQueryList() { @java.lang.Override public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; + return (com.google.cloud.dataproc.v1.QueryList) queries_; } return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } @@ -252,8 +214,6 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER = 3; private boolean continueOnFailure_; /** - * - * *
    * Optional. Whether to continue executing queries if a query fails.
    * The default value is `false`. Setting to `true` can be useful when
@@ -261,7 +221,6 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() {
    * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The continueOnFailure. */ @java.lang.Override @@ -270,22 +229,21 @@ public boolean getContinueOnFailure() { } public static final int SCRIPT_VARIABLES_FIELD_NUMBER = 4; - private static final class ScriptVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField scriptVariables_; - + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> scriptVariables_; private com.google.protobuf.MapField - internalGetScriptVariables() { + internalGetScriptVariables() { if (scriptVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( ScriptVariablesDefaultEntryHolder.defaultEntry); @@ -297,81 +255,74 @@ public int getScriptVariablesCount() { return internalGetScriptVariables().getMap().size(); } /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the Pig
    * command: `name=[value]`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsScriptVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsScriptVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetScriptVariables().getMap().containsKey(key); } - /** Use {@link #getScriptVariablesMap()} instead. */ + /** + * Use {@link #getScriptVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getScriptVariables() { return getScriptVariablesMap(); } /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the Pig
    * command: `name=[value]`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getScriptVariablesMap() { return internalGetScriptVariables().getMap(); } /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the Pig
    * command: `name=[value]`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetScriptVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the Pig
    * command: `name=[value]`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); + + public java.lang.String getScriptVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetScriptVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -379,23 +330,24 @@ public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { } public static final int PROPERTIES_FIELD_NUMBER = 5; - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField + internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -404,8 +356,6 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
    * Optional. A mapping of property names to values, used to configure Pig.
    * Properties that conflict with values set by the Dataproc API may be
@@ -413,25 +363,24 @@ public int getPropertiesCount() {
    * /etc/pig/conf/pig.properties, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
    * Optional. A mapping of property names to values, used to configure Pig.
    * Properties that conflict with values set by the Dataproc API may be
@@ -439,16 +388,14 @@ public java.util.Map getProperties() {
    * /etc/pig/conf/pig.properties, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
    * Optional. A mapping of property names to values, used to configure Pig.
    * Properties that conflict with values set by the Dataproc API may be
@@ -456,21 +403,19 @@ public java.util.Map getPropertiesMap() {
    * /etc/pig/conf/pig.properties, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. A mapping of property names to values, used to configure Pig.
    * Properties that conflict with values set by the Dataproc API may be
@@ -478,15 +423,15 @@ public java.lang.String getPropertiesOrDefault(
    * /etc/pig/conf/pig.properties, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -496,45 +441,37 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { public static final int JAR_FILE_URIS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList jarFileUris_; /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of
    * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList + getJarFileUrisList() { return jarFileUris_; } /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of
    * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of
    * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -542,35 +479,28 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of
    * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } public static final int LOGGING_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ @java.lang.Override @@ -578,34 +508,23 @@ public boolean hasLoggingConfig() { return loggingConfig_ != null; } /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { @@ -613,7 +532,6 @@ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBui } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -625,7 +543,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 (queriesCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_); } @@ -635,10 +554,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (continueOnFailure_ != false) { output.writeBool(3, continueOnFailure_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetScriptVariables(), ScriptVariablesDefaultEntryHolder.defaultEntry, 4); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetScriptVariables(), + ScriptVariablesDefaultEntryHolder.defaultEntry, + 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetProperties(), + PropertiesDefaultEntryHolder.defaultEntry, + 5); for (int i = 0; i < jarFileUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jarFileUris_.getRaw(i)); } @@ -658,32 +585,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queries_); } if (queriesCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1.QueryList) queries_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.dataproc.v1.QueryList) queries_); } if (continueOnFailure_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, continueOnFailure_); - } - for (java.util.Map.Entry entry : - internalGetScriptVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry scriptVariables__ = - ScriptVariablesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, scriptVariables__); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, properties__); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, continueOnFailure_); + } + for (java.util.Map.Entry entry + : internalGetScriptVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry + scriptVariables__ = ScriptVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, scriptVariables__); + } + for (java.util.Map.Entry entry + : internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, properties__); } { int dataSize = 0; @@ -694,7 +621,8 @@ public int getSerializedSize() { size += 1 * getJarFileUrisList().size(); } if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLoggingConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getLoggingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -704,28 +632,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.PigJob)) { return super.equals(obj); } com.google.cloud.dataproc.v1.PigJob other = (com.google.cloud.dataproc.v1.PigJob) obj; - if (getContinueOnFailure() != other.getContinueOnFailure()) return false; - if (!internalGetScriptVariables().equals(other.internalGetScriptVariables())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; + if (getContinueOnFailure() + != other.getContinueOnFailure()) return false; + if (!internalGetScriptVariables().equals( + other.internalGetScriptVariables())) return false; + if (!internalGetProperties().equals( + other.internalGetProperties())) return false; + if (!getJarFileUrisList() + .equals(other.getJarFileUrisList())) return false; if (hasLoggingConfig() != other.hasLoggingConfig()) return false; if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; + if (!getLoggingConfig() + .equals(other.getLoggingConfig())) return false; } if (!getQueriesCase().equals(other.getQueriesCase())) return false; switch (queriesCase_) { case 1: - if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; + if (!getQueryFileUri() + .equals(other.getQueryFileUri())) return false; break; case 2: - if (!getQueryList().equals(other.getQueryList())) return false; + if (!getQueryList() + .equals(other.getQueryList())) return false; break; case 0: default: @@ -742,7 +677,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONTINUE_ON_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContinueOnFailure()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getContinueOnFailure()); if (!internalGetScriptVariables().getMap().isEmpty()) { hash = (37 * hash) + SCRIPT_VARIABLES_FIELD_NUMBER; hash = (53 * hash) + internalGetScriptVariables().hashCode(); @@ -776,103 +712,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.PigJob parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.PigJob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.PigJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.PigJob parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.dataproc.v1.PigJob parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.PigJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PigJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.PigJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PigJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.PigJob parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PigJob 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.dataproc.v1.PigJob parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PigJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.PigJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.PigJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc job for running [Apache Pig](https://pig.apache.org/)
    * queries on YARN.
@@ -880,56 +810,59 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.PigJob}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.PigJob)
       com.google.cloud.dataproc.v1.PigJobOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_PigJob_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PigJob_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetScriptVariables();
         case 5:
           return internalGetProperties();
         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 internalGetMutableScriptVariables();
         case 5:
           return internalGetMutableProperties();
         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.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.PigJob.class,
-              com.google.cloud.dataproc.v1.PigJob.Builder.class);
+              com.google.cloud.dataproc.v1.PigJob.class, com.google.cloud.dataproc.v1.PigJob.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.PigJob.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -954,9 +887,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_PigJob_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PigJob_descriptor;
     }
 
     @java.lang.Override
@@ -1011,39 +944,38 @@ public com.google.cloud.dataproc.v1.PigJob buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.PigJob) {
-        return mergeFrom((com.google.cloud.dataproc.v1.PigJob) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.PigJob)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1055,8 +987,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.PigJob other) {
       if (other.getContinueOnFailure() != false) {
         setContinueOnFailure(other.getContinueOnFailure());
       }
-      internalGetMutableScriptVariables().mergeFrom(other.internalGetScriptVariables());
-      internalGetMutableProperties().mergeFrom(other.internalGetProperties());
+      internalGetMutableScriptVariables().mergeFrom(
+          other.internalGetScriptVariables());
+      internalGetMutableProperties().mergeFrom(
+          other.internalGetProperties());
       if (!other.jarFileUris_.isEmpty()) {
         if (jarFileUris_.isEmpty()) {
           jarFileUris_ = other.jarFileUris_;
@@ -1071,22 +1005,19 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.PigJob other) {
         mergeLoggingConfig(other.getLoggingConfig());
       }
       switch (other.getQueriesCase()) {
-        case QUERY_FILE_URI:
-          {
-            queriesCase_ = 1;
-            queries_ = other.queries_;
-            onChanged();
-            break;
-          }
-        case QUERY_LIST:
-          {
-            mergeQueryList(other.getQueryList());
-            break;
-          }
-        case QUERIES_NOT_SET:
-          {
-            break;
-          }
+        case QUERY_FILE_URI: {
+          queriesCase_ = 1;
+          queries_ = other.queries_;
+          onChanged();
+          break;
+        }
+        case QUERY_LIST: {
+          mergeQueryList(other.getQueryList());
+          break;
+        }
+        case QUERIES_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1114,67 +1045,59 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                queriesCase_ = 1;
-                queries_ = s;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getQueryListFieldBuilder().getBuilder(), extensionRegistry);
-                queriesCase_ = 2;
-                break;
-              } // case 18
-            case 24:
-              {
-                continueOnFailure_ = input.readBool();
-
-                break;
-              } // case 24
-            case 34:
-              {
-                com.google.protobuf.MapEntry scriptVariables__ =
-                    input.readMessage(
-                        ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableScriptVariables()
-                    .getMutableMap()
-                    .put(scriptVariables__.getKey(), scriptVariables__.getValue());
-                break;
-              } // case 34
-            case 42:
-              {
-                com.google.protobuf.MapEntry properties__ =
-                    input.readMessage(
-                        PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableProperties()
-                    .getMutableMap()
-                    .put(properties__.getKey(), properties__.getValue());
-                break;
-              } // case 42
-            case 50:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureJarFileUrisIsMutable();
-                jarFileUris_.add(s);
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 58
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              queriesCase_ = 1;
+              queries_ = s;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getQueryListFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              queriesCase_ = 2;
+              break;
+            } // case 18
+            case 24: {
+              continueOnFailure_ = input.readBool();
+
+              break;
+            } // case 24
+            case 34: {
+              com.google.protobuf.MapEntry
+              scriptVariables__ = input.readMessage(
+                  ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableScriptVariables().getMutableMap().put(
+                  scriptVariables__.getKey(), scriptVariables__.getValue());
+              break;
+            } // case 34
+            case 42: {
+              com.google.protobuf.MapEntry
+              properties__ = input.readMessage(
+                  PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableProperties().getMutableMap().put(
+                  properties__.getKey(), properties__.getValue());
+              break;
+            } // case 42
+            case 50: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureJarFileUrisIsMutable();
+              jarFileUris_.add(s);
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getLoggingConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 58
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1184,12 +1107,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int queriesCase_ = 0;
     private java.lang.Object queries_;
-
-    public QueriesCase getQueriesCase() {
-      return QueriesCase.forNumber(queriesCase_);
+    public QueriesCase
+        getQueriesCase() {
+      return QueriesCase.forNumber(
+          queriesCase_);
     }
 
     public Builder clearQueries() {
@@ -1202,14 +1125,11 @@ public Builder clearQueries() {
     private int bitField0_;
 
     /**
-     *
-     *
      * 
      * The HCFS URI of the script that contains the Pig queries.
      * 
* * string query_file_uri = 1; - * * @return Whether the queryFileUri field is set. */ @java.lang.Override @@ -1217,14 +1137,11 @@ public boolean hasQueryFileUri() { return queriesCase_ == 1; } /** - * - * *
      * The HCFS URI of the script that contains the Pig queries.
      * 
* * string query_file_uri = 1; - * * @return The queryFileUri. */ @java.lang.Override @@ -1234,7 +1151,8 @@ public java.lang.String getQueryFileUri() { ref = queries_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (queriesCase_ == 1) { queries_ = s; @@ -1245,25 +1163,24 @@ public java.lang.String getQueryFileUri() { } } /** - * - * *
      * The HCFS URI of the script that contains the Pig queries.
      * 
* * string query_file_uri = 1; - * * @return The bytes for queryFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString getQueryFileUriBytes() { + public com.google.protobuf.ByteString + getQueryFileUriBytes() { java.lang.Object ref = ""; if (queriesCase_ == 1) { ref = queries_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (queriesCase_ == 1) { queries_ = b; } @@ -1273,35 +1190,30 @@ public com.google.protobuf.ByteString getQueryFileUriBytes() { } } /** - * - * *
      * The HCFS URI of the script that contains the Pig queries.
      * 
* * string query_file_uri = 1; - * * @param value The queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUri(java.lang.String value) { + public Builder setQueryFileUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - queriesCase_ = 1; + throw new NullPointerException(); + } + queriesCase_ = 1; queries_ = value; onChanged(); return this; } /** - * - * *
      * The HCFS URI of the script that contains the Pig queries.
      * 
* * string query_file_uri = 1; - * * @return This builder for chaining. */ public Builder clearQueryFileUri() { @@ -1313,22 +1225,20 @@ public Builder clearQueryFileUri() { return this; } /** - * - * *
      * The HCFS URI of the script that contains the Pig queries.
      * 
* * string query_file_uri = 1; - * * @param value The bytes for queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { + public Builder setQueryFileUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); queriesCase_ = 1; queries_ = value; onChanged(); @@ -1336,19 +1246,13 @@ public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder> - queryListBuilder_; + com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder> queryListBuilder_; /** - * - * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return Whether the queryList field is set. */ @java.lang.Override @@ -1356,14 +1260,11 @@ public boolean hasQueryList() { return queriesCase_ == 2; } /** - * - * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return The queryList. */ @java.lang.Override @@ -1381,8 +1282,6 @@ public com.google.cloud.dataproc.v1.QueryList getQueryList() { } } /** - * - * *
      * A list of queries.
      * 
@@ -1403,15 +1302,14 @@ public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList value) { return this; } /** - * - * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; */ - public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { + public Builder setQueryList( + com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { if (queryListBuilder_ == null) { queries_ = builderForValue.build(); onChanged(); @@ -1422,8 +1320,6 @@ public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder build return this; } /** - * - * *
      * A list of queries.
      * 
@@ -1432,13 +1328,10 @@ public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder build */ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { if (queryListBuilder_ == null) { - if (queriesCase_ == 2 - && queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { - queries_ = - com.google.cloud.dataproc.v1.QueryList.newBuilder( - (com.google.cloud.dataproc.v1.QueryList) queries_) - .mergeFrom(value) - .buildPartial(); + if (queriesCase_ == 2 && + queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { + queries_ = com.google.cloud.dataproc.v1.QueryList.newBuilder((com.google.cloud.dataproc.v1.QueryList) queries_) + .mergeFrom(value).buildPartial(); } else { queries_ = value; } @@ -1454,8 +1347,6 @@ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { return this; } /** - * - * *
      * A list of queries.
      * 
@@ -1479,8 +1370,6 @@ public Builder clearQueryList() { return this; } /** - * - * *
      * A list of queries.
      * 
@@ -1491,8 +1380,6 @@ public com.google.cloud.dataproc.v1.QueryList.Builder getQueryListBuilder() { return getQueryListFieldBuilder().getBuilder(); } /** - * - * *
      * A list of queries.
      * 
@@ -1511,8 +1398,6 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { } } /** - * - * *
      * A list of queries.
      * 
@@ -1520,34 +1405,26 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { * .google.cloud.dataproc.v1.QueryList query_list = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder> + com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder> getQueryListFieldBuilder() { if (queryListBuilder_ == null) { if (!(queriesCase_ == 2)) { queries_ = com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } - queryListBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder>( + queryListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder>( (com.google.cloud.dataproc.v1.QueryList) queries_, getParentForChildren(), isClean()); queries_ = null; } queriesCase_ = 2; - onChanged(); - ; + onChanged();; return queryListBuilder_; } - private boolean continueOnFailure_; + private boolean continueOnFailure_ ; /** - * - * *
      * Optional. Whether to continue executing queries if a query fails.
      * The default value is `false`. Setting to `true` can be useful when
@@ -1555,7 +1432,6 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() {
      * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The continueOnFailure. */ @java.lang.Override @@ -1563,8 +1439,6 @@ public boolean getContinueOnFailure() { return continueOnFailure_; } /** - * - * *
      * Optional. Whether to continue executing queries if a query fails.
      * The default value is `false`. Setting to `true` can be useful when
@@ -1572,19 +1446,16 @@ public boolean getContinueOnFailure() {
      * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The continueOnFailure to set. * @return This builder for chaining. */ public Builder setContinueOnFailure(boolean value) { - + continueOnFailure_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Whether to continue executing queries if a query fails.
      * The default value is `false`. Setting to `true` can be useful when
@@ -1592,35 +1463,31 @@ public Builder setContinueOnFailure(boolean value) {
      * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearContinueOnFailure() { - + continueOnFailure_ = false; onChanged(); return this; } - private com.google.protobuf.MapField scriptVariables_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> scriptVariables_; private com.google.protobuf.MapField - internalGetScriptVariables() { + internalGetScriptVariables() { if (scriptVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( ScriptVariablesDefaultEntryHolder.defaultEntry); } return scriptVariables_; } - private com.google.protobuf.MapField - internalGetMutableScriptVariables() { - onChanged(); - ; + internalGetMutableScriptVariables() { + onChanged();; if (scriptVariables_ == null) { - scriptVariables_ = - com.google.protobuf.MapField.newMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); + scriptVariables_ = com.google.protobuf.MapField.newMapField( + ScriptVariablesDefaultEntryHolder.defaultEntry); } if (!scriptVariables_.isMutable()) { scriptVariables_ = scriptVariables_.copy(); @@ -1632,85 +1499,74 @@ public int getScriptVariablesCount() { return internalGetScriptVariables().getMap().size(); } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the Pig
      * command: `name=[value]`).
      * 
* - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsScriptVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsScriptVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetScriptVariables().getMap().containsKey(key); } - /** Use {@link #getScriptVariablesMap()} instead. */ + /** + * Use {@link #getScriptVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getScriptVariables() { return getScriptVariablesMap(); } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the Pig
      * command: `name=[value]`).
      * 
* - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getScriptVariablesMap() { return internalGetScriptVariables().getMap(); } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the Pig
      * command: `name=[value]`).
      * 
* - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetScriptVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the Pig
      * command: `name=[value]`).
      * 
* - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); + + public java.lang.String getScriptVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetScriptVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1718,91 +1574,86 @@ public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { } public Builder clearScriptVariables() { - internalGetMutableScriptVariables().getMutableMap().clear(); + internalGetMutableScriptVariables().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the Pig
      * command: `name=[value]`).
      * 
* - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeScriptVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableScriptVariables().getMutableMap().remove(key); + + public Builder removeScriptVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableScriptVariables().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableScriptVariables() { + public java.util.Map + getMutableScriptVariables() { return internalGetMutableScriptVariables().getMutableMap(); } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the Pig
      * command: `name=[value]`).
      * 
* - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putScriptVariables(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putScriptVariables( + 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"); +} - internalGetMutableScriptVariables().getMutableMap().put(key, value); + internalGetMutableScriptVariables().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the Pig
      * command: `name=[value]`).
      * 
* - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllScriptVariables(java.util.Map values) { - internalGetMutableScriptVariables().getMutableMap().putAll(values); + + public Builder putAllScriptVariables( + java.util.Map values) { + internalGetMutableScriptVariables().getMutableMap() + .putAll(values); return this; } - private com.google.protobuf.MapField properties_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; + internalGetMutableProperties() { + onChanged();; if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); + properties_ = com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -1814,8 +1665,6 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Pig.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1823,25 +1672,24 @@ public int getPropertiesCount() {
      * /etc/pig/conf/pig.properties, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Pig.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1849,16 +1697,14 @@ public java.util.Map getProperties() {
      * /etc/pig/conf/pig.properties, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Pig.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1866,21 +1712,19 @@ public java.util.Map getPropertiesMap() {
      * /etc/pig/conf/pig.properties, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Pig.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1888,15 +1732,15 @@ public java.lang.String getPropertiesOrDefault(
      * /etc/pig/conf/pig.properties, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1904,12 +1748,11 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); + internalGetMutableProperties().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Pig.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1917,24 +1760,25 @@ public Builder clearProperties() {
      * /etc/pig/conf/pig.properties, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); + + public Builder removeProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableProperties().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableProperties() { + public java.util.Map + getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Pig.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1942,23 +1786,21 @@ public java.util.Map getMutableProperties()
      * /etc/pig/conf/pig.properties, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putProperties( + 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"); +} - internalGetMutableProperties().getMutableMap().put(key, value); + internalGetMutableProperties().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Pig.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1966,63 +1808,55 @@ public Builder putProperties(java.lang.String key, java.lang.String value) {
      * /etc/pig/conf/pig.properties, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); + + public Builder putAllProperties( + java.util.Map values) { + internalGetMutableProperties().getMutableMap() + .putAll(values); return this; } - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureJarFileUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of
      * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList + getJarFileUrisList() { return jarFileUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of
      * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of
      * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -2030,95 +1864,85 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of
      * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of
      * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The jarFileUris to set. * @return This builder for chaining. */ - public Builder setJarFileUris(int index, java.lang.String value) { + public Builder setJarFileUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of
      * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUris(java.lang.String value) { + public Builder addJarFileUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of
      * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The jarFileUris to add. * @return This builder for chaining. */ - public Builder addAllJarFileUris(java.lang.Iterable values) { + public Builder addAllJarFileUris( + java.lang.Iterable values) { ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, jarFileUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of
      * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearJarFileUris() { @@ -2128,23 +1952,21 @@ public Builder clearJarFileUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of
      * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { + public Builder addJarFileUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); @@ -2153,58 +1975,39 @@ public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - loggingConfigBuilder_; + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> loggingConfigBuilder_; /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ public boolean hasLoggingConfig() { return loggingConfigBuilder_ != null || loggingConfig_ != null; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } else { return loggingConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { @@ -2220,15 +2023,11 @@ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLoggingConfig( com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { @@ -2242,23 +2041,17 @@ public Builder setLoggingConfig( return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { if (loggingConfig_ != null) { loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); } else { loggingConfig_ = value; } @@ -2270,15 +2063,11 @@ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig val return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearLoggingConfig() { if (loggingConfigBuilder_ == null) { @@ -2292,71 +2081,55 @@ public Builder clearLoggingConfig() { return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - + onChanged(); return getLoggingConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { if (loggingConfigBuilder_ != null) { return loggingConfigBuilder_.getMessageOrBuilder(); } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? + com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> getLoggingConfigFieldBuilder() { if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); + loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( + getLoggingConfig(), + getParentForChildren(), + isClean()); loggingConfig_ = null; } return loggingConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2366,12 +2139,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.PigJob) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PigJob) private static final com.google.cloud.dataproc.v1.PigJob DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.PigJob(); } @@ -2380,27 +2153,27 @@ public static com.google.cloud.dataproc.v1.PigJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PigJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PigJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2415,4 +2188,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.PigJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java similarity index 72% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java index 6c621befbb71..403a56dc26eb 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java @@ -1,92 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface PigJobOrBuilder - extends +public interface PigJobOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PigJob) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The HCFS URI of the script that contains the Pig queries.
    * 
* * string query_file_uri = 1; - * * @return Whether the queryFileUri field is set. */ boolean hasQueryFileUri(); /** - * - * *
    * The HCFS URI of the script that contains the Pig queries.
    * 
* * string query_file_uri = 1; - * * @return The queryFileUri. */ java.lang.String getQueryFileUri(); /** - * - * *
    * The HCFS URI of the script that contains the Pig queries.
    * 
* * string query_file_uri = 1; - * * @return The bytes for queryFileUri. */ - com.google.protobuf.ByteString getQueryFileUriBytes(); + com.google.protobuf.ByteString + getQueryFileUriBytes(); /** - * - * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return Whether the queryList field is set. */ boolean hasQueryList(); /** - * - * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return The queryList. */ com.google.cloud.dataproc.v1.QueryList getQueryList(); /** - * - * *
    * A list of queries.
    * 
@@ -96,8 +64,6 @@ public interface PigJobOrBuilder com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder(); /** - * - * *
    * Optional. Whether to continue executing queries if a query fails.
    * The default value is `false`. Setting to `true` can be useful when
@@ -105,83 +71,72 @@ public interface PigJobOrBuilder
    * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The continueOnFailure. */ boolean getContinueOnFailure(); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the Pig
    * command: `name=[value]`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ int getScriptVariablesCount(); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the Pig
    * command: `name=[value]`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsScriptVariables( + java.lang.String key); + /** + * Use {@link #getScriptVariablesMap()} instead. */ - boolean containsScriptVariables(java.lang.String key); - /** Use {@link #getScriptVariablesMap()} instead. */ @java.lang.Deprecated - java.util.Map getScriptVariables(); + java.util.Map + getScriptVariables(); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the Pig
    * command: `name=[value]`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getScriptVariablesMap(); + java.util.Map + getScriptVariablesMap(); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the Pig
    * command: `name=[value]`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getScriptVariablesOrDefault( +java.lang.String getScriptVariablesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the Pig
    * command: `name=[value]`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getScriptVariablesOrThrow(java.lang.String key); + + java.lang.String getScriptVariablesOrThrow( + java.lang.String key); /** - * - * *
    * Optional. A mapping of property names to values, used to configure Pig.
    * Properties that conflict with values set by the Dataproc API may be
@@ -189,13 +144,10 @@ java.lang.String getScriptVariablesOrDefault(
    * /etc/pig/conf/pig.properties, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getPropertiesCount(); /** - * - * *
    * Optional. A mapping of property names to values, used to configure Pig.
    * Properties that conflict with values set by the Dataproc API may be
@@ -203,16 +155,17 @@ java.lang.String getScriptVariablesOrDefault(
    * /etc/pig/conf/pig.properties, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsProperties( + java.lang.String key); + /** + * Use {@link #getPropertiesMap()} instead. */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map getProperties(); + java.util.Map + getProperties(); /** - * - * *
    * Optional. A mapping of property names to values, used to configure Pig.
    * Properties that conflict with values set by the Dataproc API may be
@@ -220,13 +173,11 @@ java.lang.String getScriptVariablesOrDefault(
    * /etc/pig/conf/pig.properties, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getPropertiesMap(); + java.util.Map + getPropertiesMap(); /** - * - * *
    * Optional. A mapping of property names to values, used to configure Pig.
    * Properties that conflict with values set by the Dataproc API may be
@@ -234,18 +185,15 @@ java.lang.String getScriptVariablesOrDefault(
    * /etc/pig/conf/pig.properties, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getPropertiesOrDefault( +java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. A mapping of property names to values, used to configure Pig.
    * Properties that conflict with values set by the Dataproc API may be
@@ -253,104 +201,81 @@ java.lang.String getPropertiesOrDefault(
    * /etc/pig/conf/pig.properties, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getPropertiesOrThrow(java.lang.String key); + + java.lang.String getPropertiesOrThrow( + java.lang.String key); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of
    * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - java.util.List getJarFileUrisList(); + java.util.List + getJarFileUrisList(); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of
    * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ int getJarFileUrisCount(); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of
    * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ java.lang.String getJarFileUris(int index); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of
    * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); + com.google.protobuf.ByteString + getJarFileUrisBytes(int index); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ boolean hasLoggingConfig(); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java similarity index 68% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java index 05d899d3b67d..eaaa6b566828 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A Dataproc job for running [Presto](https://prestosql.io/) queries.
  * **IMPORTANT**: The [Dataproc Presto Optional
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.PrestoJob}
  */
-public final class PrestoJob extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PrestoJob extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.PrestoJob)
     PrestoJobOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PrestoJob.newBuilder() to construct.
   private PrestoJob(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PrestoJob() {
     outputFormat_ = "";
     clientTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -48,53 +30,50 @@ private PrestoJob() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PrestoJob();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.JobsProto
-        .internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PrestoJob_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 internalGetProperties();
       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.dataproc.v1.JobsProto
-        .internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.PrestoJob.class,
-            com.google.cloud.dataproc.v1.PrestoJob.Builder.class);
+            com.google.cloud.dataproc.v1.PrestoJob.class, com.google.cloud.dataproc.v1.PrestoJob.Builder.class);
   }
 
   private int queriesCase_ = 0;
   private java.lang.Object queries_;
-
   public enum QueriesCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     QUERY_FILE_URI(1),
     QUERY_LIST(2),
     QUERIES_NOT_SET(0);
     private final int value;
-
     private QueriesCase(int value) {
       this.value = value;
     }
@@ -110,50 +89,41 @@ public static QueriesCase valueOf(int value) {
 
     public static QueriesCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return QUERY_FILE_URI;
-        case 2:
-          return QUERY_LIST;
-        case 0:
-          return QUERIES_NOT_SET;
-        default:
-          return null;
+        case 1: return QUERY_FILE_URI;
+        case 2: return QUERY_LIST;
+        case 0: return QUERIES_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public QueriesCase getQueriesCase() {
-    return QueriesCase.forNumber(queriesCase_);
+  public QueriesCase
+  getQueriesCase() {
+    return QueriesCase.forNumber(
+        queriesCase_);
   }
 
   public static final int QUERY_FILE_URI_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; - * * @return Whether the queryFileUri field is set. */ public boolean hasQueryFileUri() { return queriesCase_ == 1; } /** - * - * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; - * * @return The queryFileUri. */ public java.lang.String getQueryFileUri() { @@ -164,7 +134,8 @@ public java.lang.String getQueryFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (queriesCase_ == 1) { queries_ = s; @@ -173,24 +144,23 @@ public java.lang.String getQueryFileUri() { } } /** - * - * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; - * * @return The bytes for queryFileUri. */ - public com.google.protobuf.ByteString getQueryFileUriBytes() { + public com.google.protobuf.ByteString + getQueryFileUriBytes() { java.lang.Object ref = ""; if (queriesCase_ == 1) { ref = queries_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (queriesCase_ == 1) { queries_ = b; } @@ -202,14 +172,11 @@ public com.google.protobuf.ByteString getQueryFileUriBytes() { public static final int QUERY_LIST_FIELD_NUMBER = 2; /** - * - * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return Whether the queryList field is set. */ @java.lang.Override @@ -217,26 +184,21 @@ public boolean hasQueryList() { return queriesCase_ == 2; } /** - * - * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return The queryList. */ @java.lang.Override public com.google.cloud.dataproc.v1.QueryList getQueryList() { if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; + return (com.google.cloud.dataproc.v1.QueryList) queries_; } return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } /** - * - * *
    * A list of queries.
    * 
@@ -246,7 +208,7 @@ public com.google.cloud.dataproc.v1.QueryList getQueryList() { @java.lang.Override public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; + return (com.google.cloud.dataproc.v1.QueryList) queries_; } return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } @@ -254,8 +216,6 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER = 3; private boolean continueOnFailure_; /** - * - * *
    * Optional. Whether to continue executing queries if a query fails.
    * The default value is `false`. Setting to `true` can be useful when
@@ -263,7 +223,6 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() {
    * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The continueOnFailure. */ @java.lang.Override @@ -274,15 +233,12 @@ public boolean getContinueOnFailure() { public static final int OUTPUT_FORMAT_FIELD_NUMBER = 4; private volatile java.lang.Object outputFormat_; /** - * - * *
    * Optional. The format in which query output will be displayed. See the
    * Presto documentation for supported output formats
    * 
* * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The outputFormat. */ @java.lang.Override @@ -291,30 +247,30 @@ public java.lang.String getOutputFormat() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputFormat_ = s; return s; } } /** - * - * *
    * Optional. The format in which query output will be displayed. See the
    * Presto documentation for supported output formats
    * 
* * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for outputFormat. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputFormatBytes() { + public com.google.protobuf.ByteString + getOutputFormatBytes() { java.lang.Object ref = outputFormat_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputFormat_ = b; return b; } else { @@ -325,42 +281,34 @@ public com.google.protobuf.ByteString getOutputFormatBytes() { public static final int CLIENT_TAGS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList clientTags_; /** - * - * *
    * Optional. Presto client tags to attach to this query
    * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the clientTags. */ - public com.google.protobuf.ProtocolStringList getClientTagsList() { + public com.google.protobuf.ProtocolStringList + getClientTagsList() { return clientTags_; } /** - * - * *
    * Optional. Presto client tags to attach to this query
    * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of clientTags. */ public int getClientTagsCount() { return clientTags_.size(); } /** - * - * *
    * Optional. Presto client tags to attach to this query
    * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The clientTags at the given index. */ @@ -368,39 +316,38 @@ public java.lang.String getClientTags(int index) { return clientTags_.get(index); } /** - * - * *
    * Optional. Presto client tags to attach to this query
    * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the clientTags at the given index. */ - public com.google.protobuf.ByteString getClientTagsBytes(int index) { + public com.google.protobuf.ByteString + getClientTagsBytes(int index) { return clientTags_.getByteString(index); } public static final int PROPERTIES_FIELD_NUMBER = 6; - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField + internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -409,85 +356,78 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
    * Optional. A mapping of property names to values. Used to set Presto
    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
    * Equivalent to using the --session flag in the Presto CLI
    * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
    * Optional. A mapping of property names to values. Used to set Presto
    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
    * Equivalent to using the --session flag in the Presto CLI
    * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
    * Optional. A mapping of property names to values. Used to set Presto
    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
    * Equivalent to using the --session flag in the Presto CLI
    * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. A mapping of property names to values. Used to set Presto
    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
    * Equivalent to using the --session flag in the Presto CLI
    * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -497,16 +437,11 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { public static final int LOGGING_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ @java.lang.Override @@ -514,34 +449,23 @@ public boolean hasLoggingConfig() { return loggingConfig_ != null; } /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { @@ -549,7 +473,6 @@ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBui } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -561,7 +484,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 (queriesCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_); } @@ -577,8 +501,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < clientTags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, clientTags_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetProperties(), + PropertiesDefaultEntryHolder.defaultEntry, + 6); if (loggingConfig_ != null) { output.writeMessage(7, getLoggingConfig()); } @@ -595,12 +523,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queries_); } if (queriesCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1.QueryList) queries_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.dataproc.v1.QueryList) queries_); } if (continueOnFailure_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, continueOnFailure_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, continueOnFailure_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputFormat_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, outputFormat_); @@ -613,18 +541,19 @@ public int getSerializedSize() { size += dataSize; size += 1 * getClientTagsList().size(); } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, properties__); + for (java.util.Map.Entry entry + : internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, properties__); } if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLoggingConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getLoggingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -634,28 +563,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.PrestoJob)) { return super.equals(obj); } com.google.cloud.dataproc.v1.PrestoJob other = (com.google.cloud.dataproc.v1.PrestoJob) obj; - if (getContinueOnFailure() != other.getContinueOnFailure()) return false; - if (!getOutputFormat().equals(other.getOutputFormat())) return false; - if (!getClientTagsList().equals(other.getClientTagsList())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; + if (getContinueOnFailure() + != other.getContinueOnFailure()) return false; + if (!getOutputFormat() + .equals(other.getOutputFormat())) return false; + if (!getClientTagsList() + .equals(other.getClientTagsList())) return false; + if (!internalGetProperties().equals( + other.internalGetProperties())) return false; if (hasLoggingConfig() != other.hasLoggingConfig()) return false; if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; + if (!getLoggingConfig() + .equals(other.getLoggingConfig())) return false; } if (!getQueriesCase().equals(other.getQueriesCase())) return false; switch (queriesCase_) { case 1: - if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; + if (!getQueryFileUri() + .equals(other.getQueryFileUri())) return false; break; case 2: - if (!getQueryList().equals(other.getQueryList())) return false; + if (!getQueryList() + .equals(other.getQueryList())) return false; break; case 0: default: @@ -672,7 +608,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONTINUE_ON_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContinueOnFailure()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getContinueOnFailure()); hash = (37 * hash) + OUTPUT_FORMAT_FIELD_NUMBER; hash = (53 * hash) + getOutputFormat().hashCode(); if (getClientTagsCount() > 0) { @@ -704,104 +641,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.PrestoJob parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PrestoJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PrestoJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PrestoJob 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.dataproc.v1.PrestoJob parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.PrestoJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc job for running [Presto](https://prestosql.io/) queries.
    * **IMPORTANT**: The [Dataproc Presto Optional
@@ -812,52 +742,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.PrestoJob}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.PrestoJob)
       com.google.cloud.dataproc.v1.PrestoJobOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 6:
           return internalGetProperties();
         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 internalGetMutableProperties();
         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.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.PrestoJob.class,
-              com.google.cloud.dataproc.v1.PrestoJob.Builder.class);
+              com.google.cloud.dataproc.v1.PrestoJob.class, com.google.cloud.dataproc.v1.PrestoJob.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.PrestoJob.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -883,9 +816,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor;
     }
 
     @java.lang.Override
@@ -904,8 +837,7 @@ public com.google.cloud.dataproc.v1.PrestoJob build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.PrestoJob buildPartial() {
-      com.google.cloud.dataproc.v1.PrestoJob result =
-          new com.google.cloud.dataproc.v1.PrestoJob(this);
+      com.google.cloud.dataproc.v1.PrestoJob result = new com.google.cloud.dataproc.v1.PrestoJob(this);
       int from_bitField0_ = bitField0_;
       if (queriesCase_ == 1) {
         result.queries_ = queries_;
@@ -940,39 +872,38 @@ public com.google.cloud.dataproc.v1.PrestoJob buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.PrestoJob) {
-        return mergeFrom((com.google.cloud.dataproc.v1.PrestoJob) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.PrestoJob)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -998,27 +929,25 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.PrestoJob other) {
         }
         onChanged();
       }
-      internalGetMutableProperties().mergeFrom(other.internalGetProperties());
+      internalGetMutableProperties().mergeFrom(
+          other.internalGetProperties());
       if (other.hasLoggingConfig()) {
         mergeLoggingConfig(other.getLoggingConfig());
       }
       switch (other.getQueriesCase()) {
-        case QUERY_FILE_URI:
-          {
-            queriesCase_ = 1;
-            queries_ = other.queries_;
-            onChanged();
-            break;
-          }
-        case QUERY_LIST:
-          {
-            mergeQueryList(other.getQueryList());
-            break;
-          }
-        case QUERIES_NOT_SET:
-          {
-            break;
-          }
+        case QUERY_FILE_URI: {
+          queriesCase_ = 1;
+          queries_ = other.queries_;
+          onChanged();
+          break;
+        }
+        case QUERY_LIST: {
+          mergeQueryList(other.getQueryList());
+          break;
+        }
+        case QUERIES_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1046,62 +975,56 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                queriesCase_ = 1;
-                queries_ = s;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getQueryListFieldBuilder().getBuilder(), extensionRegistry);
-                queriesCase_ = 2;
-                break;
-              } // case 18
-            case 24:
-              {
-                continueOnFailure_ = input.readBool();
-
-                break;
-              } // case 24
-            case 34:
-              {
-                outputFormat_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 34
-            case 42:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureClientTagsIsMutable();
-                clientTags_.add(s);
-                break;
-              } // case 42
-            case 50:
-              {
-                com.google.protobuf.MapEntry properties__ =
-                    input.readMessage(
-                        PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableProperties()
-                    .getMutableMap()
-                    .put(properties__.getKey(), properties__.getValue());
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 58
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              queriesCase_ = 1;
+              queries_ = s;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getQueryListFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              queriesCase_ = 2;
+              break;
+            } // case 18
+            case 24: {
+              continueOnFailure_ = input.readBool();
+
+              break;
+            } // case 24
+            case 34: {
+              outputFormat_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 34
+            case 42: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureClientTagsIsMutable();
+              clientTags_.add(s);
+              break;
+            } // case 42
+            case 50: {
+              com.google.protobuf.MapEntry
+              properties__ = input.readMessage(
+                  PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableProperties().getMutableMap().put(
+                  properties__.getKey(), properties__.getValue());
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getLoggingConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 58
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1111,12 +1034,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int queriesCase_ = 0;
     private java.lang.Object queries_;
-
-    public QueriesCase getQueriesCase() {
-      return QueriesCase.forNumber(queriesCase_);
+    public QueriesCase
+        getQueriesCase() {
+      return QueriesCase.forNumber(
+          queriesCase_);
     }
 
     public Builder clearQueries() {
@@ -1129,14 +1052,11 @@ public Builder clearQueries() {
     private int bitField0_;
 
     /**
-     *
-     *
      * 
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; - * * @return Whether the queryFileUri field is set. */ @java.lang.Override @@ -1144,14 +1064,11 @@ public boolean hasQueryFileUri() { return queriesCase_ == 1; } /** - * - * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; - * * @return The queryFileUri. */ @java.lang.Override @@ -1161,7 +1078,8 @@ public java.lang.String getQueryFileUri() { ref = queries_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (queriesCase_ == 1) { queries_ = s; @@ -1172,25 +1090,24 @@ public java.lang.String getQueryFileUri() { } } /** - * - * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; - * * @return The bytes for queryFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString getQueryFileUriBytes() { + public com.google.protobuf.ByteString + getQueryFileUriBytes() { java.lang.Object ref = ""; if (queriesCase_ == 1) { ref = queries_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (queriesCase_ == 1) { queries_ = b; } @@ -1200,35 +1117,30 @@ public com.google.protobuf.ByteString getQueryFileUriBytes() { } } /** - * - * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; - * * @param value The queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUri(java.lang.String value) { + public Builder setQueryFileUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - queriesCase_ = 1; + throw new NullPointerException(); + } + queriesCase_ = 1; queries_ = value; onChanged(); return this; } /** - * - * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; - * * @return This builder for chaining. */ public Builder clearQueryFileUri() { @@ -1240,22 +1152,20 @@ public Builder clearQueryFileUri() { return this; } /** - * - * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; - * * @param value The bytes for queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { + public Builder setQueryFileUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); queriesCase_ = 1; queries_ = value; onChanged(); @@ -1263,19 +1173,13 @@ public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder> - queryListBuilder_; + com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder> queryListBuilder_; /** - * - * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return Whether the queryList field is set. */ @java.lang.Override @@ -1283,14 +1187,11 @@ public boolean hasQueryList() { return queriesCase_ == 2; } /** - * - * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return The queryList. */ @java.lang.Override @@ -1308,8 +1209,6 @@ public com.google.cloud.dataproc.v1.QueryList getQueryList() { } } /** - * - * *
      * A list of queries.
      * 
@@ -1330,15 +1229,14 @@ public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList value) { return this; } /** - * - * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; */ - public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { + public Builder setQueryList( + com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { if (queryListBuilder_ == null) { queries_ = builderForValue.build(); onChanged(); @@ -1349,8 +1247,6 @@ public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder build return this; } /** - * - * *
      * A list of queries.
      * 
@@ -1359,13 +1255,10 @@ public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder build */ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { if (queryListBuilder_ == null) { - if (queriesCase_ == 2 - && queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { - queries_ = - com.google.cloud.dataproc.v1.QueryList.newBuilder( - (com.google.cloud.dataproc.v1.QueryList) queries_) - .mergeFrom(value) - .buildPartial(); + if (queriesCase_ == 2 && + queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { + queries_ = com.google.cloud.dataproc.v1.QueryList.newBuilder((com.google.cloud.dataproc.v1.QueryList) queries_) + .mergeFrom(value).buildPartial(); } else { queries_ = value; } @@ -1381,8 +1274,6 @@ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { return this; } /** - * - * *
      * A list of queries.
      * 
@@ -1406,8 +1297,6 @@ public Builder clearQueryList() { return this; } /** - * - * *
      * A list of queries.
      * 
@@ -1418,8 +1307,6 @@ public com.google.cloud.dataproc.v1.QueryList.Builder getQueryListBuilder() { return getQueryListFieldBuilder().getBuilder(); } /** - * - * *
      * A list of queries.
      * 
@@ -1438,8 +1325,6 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { } } /** - * - * *
      * A list of queries.
      * 
@@ -1447,34 +1332,26 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { * .google.cloud.dataproc.v1.QueryList query_list = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder> + com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder> getQueryListFieldBuilder() { if (queryListBuilder_ == null) { if (!(queriesCase_ == 2)) { queries_ = com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } - queryListBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder>( + queryListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder>( (com.google.cloud.dataproc.v1.QueryList) queries_, getParentForChildren(), isClean()); queries_ = null; } queriesCase_ = 2; - onChanged(); - ; + onChanged();; return queryListBuilder_; } - private boolean continueOnFailure_; + private boolean continueOnFailure_ ; /** - * - * *
      * Optional. Whether to continue executing queries if a query fails.
      * The default value is `false`. Setting to `true` can be useful when
@@ -1482,7 +1359,6 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() {
      * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The continueOnFailure. */ @java.lang.Override @@ -1490,8 +1366,6 @@ public boolean getContinueOnFailure() { return continueOnFailure_; } /** - * - * *
      * Optional. Whether to continue executing queries if a query fails.
      * The default value is `false`. Setting to `true` can be useful when
@@ -1499,19 +1373,16 @@ public boolean getContinueOnFailure() {
      * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The continueOnFailure to set. * @return This builder for chaining. */ public Builder setContinueOnFailure(boolean value) { - + continueOnFailure_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Whether to continue executing queries if a query fails.
      * The default value is `false`. Setting to `true` can be useful when
@@ -1519,11 +1390,10 @@ public Builder setContinueOnFailure(boolean value) {
      * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearContinueOnFailure() { - + continueOnFailure_ = false; onChanged(); return this; @@ -1531,21 +1401,19 @@ public Builder clearContinueOnFailure() { private java.lang.Object outputFormat_ = ""; /** - * - * *
      * Optional. The format in which query output will be displayed. See the
      * Presto documentation for supported output formats
      * 
* * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The outputFormat. */ public java.lang.String getOutputFormat() { java.lang.Object ref = outputFormat_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputFormat_ = s; return s; @@ -1554,22 +1422,21 @@ public java.lang.String getOutputFormat() { } } /** - * - * *
      * Optional. The format in which query output will be displayed. See the
      * Presto documentation for supported output formats
      * 
* * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for outputFormat. */ - public com.google.protobuf.ByteString getOutputFormatBytes() { + public com.google.protobuf.ByteString + getOutputFormatBytes() { java.lang.Object ref = outputFormat_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputFormat_ = b; return b; } else { @@ -1577,115 +1444,98 @@ public com.google.protobuf.ByteString getOutputFormatBytes() { } } /** - * - * *
      * Optional. The format in which query output will be displayed. See the
      * Presto documentation for supported output formats
      * 
* * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The outputFormat to set. * @return This builder for chaining. */ - public Builder setOutputFormat(java.lang.String value) { + public Builder setOutputFormat( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputFormat_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The format in which query output will be displayed. See the
      * Presto documentation for supported output formats
      * 
* * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOutputFormat() { - + outputFormat_ = getDefaultInstance().getOutputFormat(); onChanged(); return this; } /** - * - * *
      * Optional. The format in which query output will be displayed. See the
      * Presto documentation for supported output formats
      * 
* * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for outputFormat to set. * @return This builder for chaining. */ - public Builder setOutputFormatBytes(com.google.protobuf.ByteString value) { + public Builder setOutputFormatBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputFormat_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList clientTags_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList clientTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureClientTagsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { clientTags_ = new com.google.protobuf.LazyStringArrayList(clientTags_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Optional. Presto client tags to attach to this query
      * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the clientTags. */ - public com.google.protobuf.ProtocolStringList getClientTagsList() { + public com.google.protobuf.ProtocolStringList + getClientTagsList() { return clientTags_.getUnmodifiableView(); } /** - * - * *
      * Optional. Presto client tags to attach to this query
      * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of clientTags. */ public int getClientTagsCount() { return clientTags_.size(); } /** - * - * *
      * Optional. Presto client tags to attach to this query
      * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The clientTags at the given index. */ @@ -1693,90 +1543,80 @@ public java.lang.String getClientTags(int index) { return clientTags_.get(index); } /** - * - * *
      * Optional. Presto client tags to attach to this query
      * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the clientTags at the given index. */ - public com.google.protobuf.ByteString getClientTagsBytes(int index) { + public com.google.protobuf.ByteString + getClientTagsBytes(int index) { return clientTags_.getByteString(index); } /** - * - * *
      * Optional. Presto client tags to attach to this query
      * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The clientTags to set. * @return This builder for chaining. */ - public Builder setClientTags(int index, java.lang.String value) { + public Builder setClientTags( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureClientTagsIsMutable(); + throw new NullPointerException(); + } + ensureClientTagsIsMutable(); clientTags_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. Presto client tags to attach to this query
      * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The clientTags to add. * @return This builder for chaining. */ - public Builder addClientTags(java.lang.String value) { + public Builder addClientTags( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureClientTagsIsMutable(); + throw new NullPointerException(); + } + ensureClientTagsIsMutable(); clientTags_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. Presto client tags to attach to this query
      * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The clientTags to add. * @return This builder for chaining. */ - public Builder addAllClientTags(java.lang.Iterable values) { + public Builder addAllClientTags( + java.lang.Iterable values) { ensureClientTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clientTags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, clientTags_); onChanged(); return this; } /** - * - * *
      * Optional. Presto client tags to attach to this query
      * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearClientTags() { @@ -1786,46 +1626,42 @@ public Builder clearClientTags() { return this; } /** - * - * *
      * Optional. Presto client tags to attach to this query
      * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the clientTags to add. * @return This builder for chaining. */ - public Builder addClientTagsBytes(com.google.protobuf.ByteString value) { + public Builder addClientTagsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureClientTagsIsMutable(); clientTags_.add(value); onChanged(); return this; } - private com.google.protobuf.MapField properties_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; + internalGetMutableProperties() { + onChanged();; if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); + properties_ = com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -1837,85 +1673,78 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
      * Optional. A mapping of property names to values. Used to set Presto
      * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
      * Equivalent to using the --session flag in the Presto CLI
      * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
      * Optional. A mapping of property names to values. Used to set Presto
      * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
      * Equivalent to using the --session flag in the Presto CLI
      * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
      * Optional. A mapping of property names to values. Used to set Presto
      * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
      * Equivalent to using the --session flag in the Presto CLI
      * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. A mapping of property names to values. Used to set Presto
      * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
      * Equivalent to using the --session flag in the Presto CLI
      * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1923,127 +1752,108 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); + internalGetMutableProperties().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. A mapping of property names to values. Used to set Presto
      * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
      * Equivalent to using the --session flag in the Presto CLI
      * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); + + public Builder removeProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableProperties().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableProperties() { + public java.util.Map + getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** - * - * *
      * Optional. A mapping of property names to values. Used to set Presto
      * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
      * Equivalent to using the --session flag in the Presto CLI
      * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putProperties( + 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"); +} - internalGetMutableProperties().getMutableMap().put(key, value); + internalGetMutableProperties().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. A mapping of property names to values. Used to set Presto
      * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
      * Equivalent to using the --session flag in the Presto CLI
      * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); + + public Builder putAllProperties( + java.util.Map values) { + internalGetMutableProperties().getMutableMap() + .putAll(values); return this; } private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - loggingConfigBuilder_; + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> loggingConfigBuilder_; /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ public boolean hasLoggingConfig() { return loggingConfigBuilder_ != null || loggingConfig_ != null; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } else { return loggingConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { @@ -2059,15 +1869,11 @@ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLoggingConfig( com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { @@ -2081,23 +1887,17 @@ public Builder setLoggingConfig( return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { if (loggingConfig_ != null) { loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); } else { loggingConfig_ = value; } @@ -2109,15 +1909,11 @@ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig val return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearLoggingConfig() { if (loggingConfigBuilder_ == null) { @@ -2131,71 +1927,55 @@ public Builder clearLoggingConfig() { return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - + onChanged(); return getLoggingConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { if (loggingConfigBuilder_ != null) { return loggingConfigBuilder_.getMessageOrBuilder(); } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? + com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> getLoggingConfigFieldBuilder() { if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); + loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( + getLoggingConfig(), + getParentForChildren(), + isClean()); loggingConfig_ = null; } return loggingConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2205,12 +1985,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.PrestoJob) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PrestoJob) private static final com.google.cloud.dataproc.v1.PrestoJob DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.PrestoJob(); } @@ -2219,27 +1999,27 @@ public static com.google.cloud.dataproc.v1.PrestoJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrestoJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrestoJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2254,4 +2034,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.PrestoJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java similarity index 73% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java index c1ad6cdade13..ef9e120cb4ad 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java @@ -1,92 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface PrestoJobOrBuilder - extends +public interface PrestoJobOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PrestoJob) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; - * * @return Whether the queryFileUri field is set. */ boolean hasQueryFileUri(); /** - * - * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; - * * @return The queryFileUri. */ java.lang.String getQueryFileUri(); /** - * - * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; - * * @return The bytes for queryFileUri. */ - com.google.protobuf.ByteString getQueryFileUriBytes(); + com.google.protobuf.ByteString + getQueryFileUriBytes(); /** - * - * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return Whether the queryList field is set. */ boolean hasQueryList(); /** - * - * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return The queryList. */ com.google.cloud.dataproc.v1.QueryList getQueryList(); /** - * - * *
    * A list of queries.
    * 
@@ -96,8 +64,6 @@ public interface PrestoJobOrBuilder com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder(); /** - * - * *
    * Optional. Whether to continue executing queries if a query fails.
    * The default value is `false`. Setting to `true` can be useful when
@@ -105,201 +71,163 @@ public interface PrestoJobOrBuilder
    * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The continueOnFailure. */ boolean getContinueOnFailure(); /** - * - * *
    * Optional. The format in which query output will be displayed. See the
    * Presto documentation for supported output formats
    * 
* * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The outputFormat. */ java.lang.String getOutputFormat(); /** - * - * *
    * Optional. The format in which query output will be displayed. See the
    * Presto documentation for supported output formats
    * 
* * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for outputFormat. */ - com.google.protobuf.ByteString getOutputFormatBytes(); + com.google.protobuf.ByteString + getOutputFormatBytes(); /** - * - * *
    * Optional. Presto client tags to attach to this query
    * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the clientTags. */ - java.util.List getClientTagsList(); + java.util.List + getClientTagsList(); /** - * - * *
    * Optional. Presto client tags to attach to this query
    * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of clientTags. */ int getClientTagsCount(); /** - * - * *
    * Optional. Presto client tags to attach to this query
    * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The clientTags at the given index. */ java.lang.String getClientTags(int index); /** - * - * *
    * Optional. Presto client tags to attach to this query
    * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the clientTags at the given index. */ - com.google.protobuf.ByteString getClientTagsBytes(int index); + com.google.protobuf.ByteString + getClientTagsBytes(int index); /** - * - * *
    * Optional. A mapping of property names to values. Used to set Presto
    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
    * Equivalent to using the --session flag in the Presto CLI
    * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; */ int getPropertiesCount(); /** - * - * *
    * Optional. A mapping of property names to values. Used to set Presto
    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
    * Equivalent to using the --session flag in the Presto CLI
    * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsProperties( + java.lang.String key); + /** + * Use {@link #getPropertiesMap()} instead. */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map getProperties(); + java.util.Map + getProperties(); /** - * - * *
    * Optional. A mapping of property names to values. Used to set Presto
    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
    * Equivalent to using the --session flag in the Presto CLI
    * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getPropertiesMap(); + java.util.Map + getPropertiesMap(); /** - * - * *
    * Optional. A mapping of property names to values. Used to set Presto
    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
    * Equivalent to using the --session flag in the Presto CLI
    * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getPropertiesOrDefault( +java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. A mapping of property names to values. Used to set Presto
    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
    * Equivalent to using the --session flag in the Presto CLI
    * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getPropertiesOrThrow(java.lang.String key); + + java.lang.String getPropertiesOrThrow( + java.lang.String key); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ boolean hasLoggingConfig(); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java similarity index 77% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java index a5dd15868a23..f038943c4f8f 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.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/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A configuration for running an
  * [Apache
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.PySparkBatch}
  */
-public final class PySparkBatch extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PySparkBatch extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.PySparkBatch)
     PySparkBatchOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PySparkBatch.newBuilder() to construct.
   private PySparkBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PySparkBatch() {
     mainPythonFileUri_ = "";
     args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -51,42 +33,38 @@ private PySparkBatch() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PySparkBatch();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.BatchesProto
-        .internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.BatchesProto
-        .internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.PySparkBatch.class,
-            com.google.cloud.dataproc.v1.PySparkBatch.Builder.class);
+            com.google.cloud.dataproc.v1.PySparkBatch.class, com.google.cloud.dataproc.v1.PySparkBatch.Builder.class);
   }
 
   public static final int MAIN_PYTHON_FILE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object mainPythonFileUri_;
   /**
-   *
-   *
    * 
    * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
    * be a .py file.
    * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mainPythonFileUri. */ @java.lang.Override @@ -95,30 +73,30 @@ public java.lang.String getMainPythonFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mainPythonFileUri_ = s; return s; } } /** - * - * *
    * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
    * be a .py file.
    * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mainPythonFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString getMainPythonFileUriBytes() { + public com.google.protobuf.ByteString + getMainPythonFileUriBytes() { java.lang.Object ref = mainPythonFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mainPythonFileUri_ = b; return b; } else { @@ -129,8 +107,6 @@ public com.google.protobuf.ByteString getMainPythonFileUriBytes() { public static final int ARGS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList args_; /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -138,15 +114,13 @@ public com.google.protobuf.ByteString getMainPythonFileUriBytes() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_; } /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -154,15 +128,12 @@ public com.google.protobuf.ProtocolStringList getArgsList() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -170,7 +141,6 @@ public int getArgsCount() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -178,8 +148,6 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -187,56 +155,48 @@ public java.lang.String getArgs(int index) {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } public static final int PYTHON_FILE_URIS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList pythonFileUris_; /** - * - * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: `.py`, `.egg`, and `.zip`.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the pythonFileUris. */ - public com.google.protobuf.ProtocolStringList getPythonFileUrisList() { + public com.google.protobuf.ProtocolStringList + getPythonFileUrisList() { return pythonFileUris_; } /** - * - * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: `.py`, `.egg`, and `.zip`.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of pythonFileUris. */ public int getPythonFileUrisCount() { return pythonFileUris_.size(); } /** - * - * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: `.py`, `.egg`, and `.zip`.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The pythonFileUris at the given index. */ @@ -244,64 +204,54 @@ public java.lang.String getPythonFileUris(int index) { return pythonFileUris_.get(index); } /** - * - * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: `.py`, `.egg`, and `.zip`.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the pythonFileUris at the given index. */ - public com.google.protobuf.ByteString getPythonFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getPythonFileUrisBytes(int index) { return pythonFileUris_.getByteString(index); } public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList jarFileUris_; /** - * - * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList + getJarFileUrisList() { return jarFileUris_; } /** - * - * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -309,64 +259,54 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } public static final int FILE_URIS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList fileUris_; /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { + public com.google.protobuf.ProtocolStringList + getFileUrisList() { return fileUris_; } /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -374,27 +314,23 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getFileUrisBytes(int index) { return fileUris_.getByteString(index); } public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList archiveUris_; /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -402,15 +338,13 @@ public com.google.protobuf.ByteString getFileUrisBytes(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList + getArchiveUrisList() { return archiveUris_; } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -418,15 +352,12 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -434,7 +365,6 @@ public int getArchiveUrisCount() {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -442,8 +372,6 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -451,16 +379,15 @@ public java.lang.String getArchiveUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString + getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -472,7 +399,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(mainPythonFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainPythonFileUri_); } @@ -551,20 +479,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.PySparkBatch)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.PySparkBatch other = - (com.google.cloud.dataproc.v1.PySparkBatch) obj; - - if (!getMainPythonFileUri().equals(other.getMainPythonFileUri())) return false; - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getPythonFileUrisList().equals(other.getPythonFileUrisList())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (!getFileUrisList().equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; + com.google.cloud.dataproc.v1.PySparkBatch other = (com.google.cloud.dataproc.v1.PySparkBatch) obj; + + if (!getMainPythonFileUri() + .equals(other.getMainPythonFileUri())) return false; + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (!getPythonFileUrisList() + .equals(other.getPythonFileUrisList())) return false; + if (!getJarFileUrisList() + .equals(other.getJarFileUrisList())) return false; + if (!getFileUrisList() + .equals(other.getFileUrisList())) return false; + if (!getArchiveUrisList() + .equals(other.getArchiveUrisList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -603,104 +536,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.PySparkBatch parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.PySparkBatch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.PySparkBatch parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.PySparkBatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 configuration for running an
    * [Apache
@@ -710,32 +636,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.PySparkBatch}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.PySparkBatch)
       com.google.cloud.dataproc.v1.PySparkBatchOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.BatchesProto
-          .internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.BatchesProto
-          .internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.PySparkBatch.class,
-              com.google.cloud.dataproc.v1.PySparkBatch.Builder.class);
+              com.google.cloud.dataproc.v1.PySparkBatch.class, com.google.cloud.dataproc.v1.PySparkBatch.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.PySparkBatch.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -755,9 +682,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.BatchesProto
-          .internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor;
     }
 
     @java.lang.Override
@@ -776,8 +703,7 @@ public com.google.cloud.dataproc.v1.PySparkBatch build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.PySparkBatch buildPartial() {
-      com.google.cloud.dataproc.v1.PySparkBatch result =
-          new com.google.cloud.dataproc.v1.PySparkBatch(this);
+      com.google.cloud.dataproc.v1.PySparkBatch result = new com.google.cloud.dataproc.v1.PySparkBatch(this);
       int from_bitField0_ = bitField0_;
       result.mainPythonFileUri_ = mainPythonFileUri_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -813,39 +739,38 @@ public com.google.cloud.dataproc.v1.PySparkBatch buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.PySparkBatch) {
-        return mergeFrom((com.google.cloud.dataproc.v1.PySparkBatch) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.PySparkBatch)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -934,54 +859,47 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                mainPythonFileUri_ = input.readStringRequireUtf8();
+            case 10: {
+              mainPythonFileUri_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureArgsIsMutable();
-                args_.add(s);
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensurePythonFileUrisIsMutable();
-                pythonFileUris_.add(s);
-                break;
-              } // case 26
-            case 34:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureJarFileUrisIsMutable();
-                jarFileUris_.add(s);
-                break;
-              } // case 34
-            case 42:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureFileUrisIsMutable();
-                fileUris_.add(s);
-                break;
-              } // case 42
-            case 50:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureArchiveUrisIsMutable();
-                archiveUris_.add(s);
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 10
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureArgsIsMutable();
+              args_.add(s);
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensurePythonFileUrisIsMutable();
+              pythonFileUris_.add(s);
+              break;
+            } // case 26
+            case 34: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureJarFileUrisIsMutable();
+              jarFileUris_.add(s);
+              break;
+            } // case 34
+            case 42: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureFileUrisIsMutable();
+              fileUris_.add(s);
+              break;
+            } // case 42
+            case 50: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureArchiveUrisIsMutable();
+              archiveUris_.add(s);
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -991,26 +909,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object mainPythonFileUri_ = "";
     /**
-     *
-     *
      * 
      * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mainPythonFileUri. */ public java.lang.String getMainPythonFileUri() { java.lang.Object ref = mainPythonFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mainPythonFileUri_ = s; return s; @@ -1019,22 +934,21 @@ public java.lang.String getMainPythonFileUri() { } } /** - * - * *
      * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mainPythonFileUri. */ - public com.google.protobuf.ByteString getMainPythonFileUriBytes() { + public com.google.protobuf.ByteString + getMainPythonFileUriBytes() { java.lang.Object ref = mainPythonFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mainPythonFileUri_ = b; return b; } else { @@ -1042,81 +956,70 @@ public com.google.protobuf.ByteString getMainPythonFileUriBytes() { } } /** - * - * *
      * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The mainPythonFileUri to set. * @return This builder for chaining. */ - public Builder setMainPythonFileUri(java.lang.String value) { + public Builder setMainPythonFileUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mainPythonFileUri_ = value; onChanged(); return this; } /** - * - * *
      * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMainPythonFileUri() { - + mainPythonFileUri_ = getDefaultInstance().getMainPythonFileUri(); onChanged(); return this; } /** - * - * *
      * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for mainPythonFileUri to set. * @return This builder for chaining. */ - public Builder setMainPythonFileUriBytes(com.google.protobuf.ByteString value) { + public Builder setMainPythonFileUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mainPythonFileUri_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1124,15 +1027,13 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_.getUnmodifiableView(); } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1140,15 +1041,12 @@ public com.google.protobuf.ProtocolStringList getArgsList() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1156,7 +1054,6 @@ public int getArgsCount() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1164,8 +1061,6 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1173,16 +1068,14 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1190,23 +1083,21 @@ public com.google.protobuf.ByteString getArgsBytes(int index) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs(int index, java.lang.String value) { + public Builder setArgs( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1214,22 +1105,20 @@ public Builder setArgs(int index, java.lang.String value) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs(java.lang.String value) { + public Builder addArgs( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1237,19 +1126,18 @@ public Builder addArgs(java.lang.String value) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs(java.lang.Iterable values) { + public Builder addAllArgs( + java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1257,7 +1145,6 @@ public Builder addAllArgs(java.lang.Iterable values) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearArgs() { @@ -1267,8 +1154,6 @@ public Builder clearArgs() { return this; } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1276,70 +1161,60 @@ public Builder clearArgs() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList pythonFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePythonFileUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { pythonFileUris_ = new com.google.protobuf.LazyStringArrayList(pythonFileUris_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: `.py`, `.egg`, and `.zip`.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the pythonFileUris. */ - public com.google.protobuf.ProtocolStringList getPythonFileUrisList() { + public com.google.protobuf.ProtocolStringList + getPythonFileUrisList() { return pythonFileUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: `.py`, `.egg`, and `.zip`.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of pythonFileUris. */ public int getPythonFileUrisCount() { return pythonFileUris_.size(); } /** - * - * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: `.py`, `.egg`, and `.zip`.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The pythonFileUris at the given index. */ @@ -1347,95 +1222,85 @@ public java.lang.String getPythonFileUris(int index) { return pythonFileUris_.get(index); } /** - * - * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: `.py`, `.egg`, and `.zip`.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the pythonFileUris at the given index. */ - public com.google.protobuf.ByteString getPythonFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getPythonFileUrisBytes(int index) { return pythonFileUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: `.py`, `.egg`, and `.zip`.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The pythonFileUris to set. * @return This builder for chaining. */ - public Builder setPythonFileUris(int index, java.lang.String value) { + public Builder setPythonFileUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePythonFileUrisIsMutable(); + throw new NullPointerException(); + } + ensurePythonFileUrisIsMutable(); pythonFileUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: `.py`, `.egg`, and `.zip`.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pythonFileUris to add. * @return This builder for chaining. */ - public Builder addPythonFileUris(java.lang.String value) { + public Builder addPythonFileUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePythonFileUrisIsMutable(); + throw new NullPointerException(); + } + ensurePythonFileUrisIsMutable(); pythonFileUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: `.py`, `.egg`, and `.zip`.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The pythonFileUris to add. * @return This builder for chaining. */ - public Builder addAllPythonFileUris(java.lang.Iterable values) { + public Builder addAllPythonFileUris( + java.lang.Iterable values) { ensurePythonFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pythonFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pythonFileUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: `.py`, `.egg`, and `.zip`.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPythonFileUris() { @@ -1445,78 +1310,66 @@ public Builder clearPythonFileUris() { return this; } /** - * - * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: `.py`, `.egg`, and `.zip`.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the pythonFileUris to add. * @return This builder for chaining. */ - public Builder addPythonFileUrisBytes(com.google.protobuf.ByteString value) { + public Builder addPythonFileUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePythonFileUrisIsMutable(); pythonFileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureJarFileUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList + getJarFileUrisList() { return jarFileUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -1524,95 +1377,85 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The jarFileUris to set. * @return This builder for chaining. */ - public Builder setJarFileUris(int index, java.lang.String value) { + public Builder setJarFileUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUris(java.lang.String value) { + public Builder addJarFileUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The jarFileUris to add. * @return This builder for chaining. */ - public Builder addAllJarFileUris(java.lang.Iterable values) { + public Builder addAllJarFileUris( + java.lang.Iterable values) { ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, jarFileUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearJarFileUris() { @@ -1622,78 +1465,66 @@ public Builder clearJarFileUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { + public Builder addJarFileUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList fileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFileUrisIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); bitField0_ |= 0x00000008; - } + } } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { + public com.google.protobuf.ProtocolStringList + getFileUrisList() { return fileUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -1701,95 +1532,85 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getFileUrisBytes(int index) { return fileUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The fileUris to set. * @return This builder for chaining. */ - public Builder setFileUris(int index, java.lang.String value) { + public Builder setFileUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The fileUris to add. * @return This builder for chaining. */ - public Builder addFileUris(java.lang.String value) { + public Builder addFileUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The fileUris to add. * @return This builder for chaining. */ - public Builder addAllFileUris(java.lang.Iterable values) { + public Builder addAllFileUris( + java.lang.Iterable values) { ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fileUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFileUris() { @@ -1799,41 +1620,35 @@ public Builder clearFileUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the fileUris to add. * @return This builder for chaining. */ - public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { + public Builder addFileUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList archiveUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArchiveUrisIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); bitField0_ |= 0x00000010; - } + } } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1841,15 +1656,13 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList + getArchiveUrisList() { return archiveUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1857,15 +1670,12 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1873,7 +1683,6 @@ public int getArchiveUrisCount() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -1881,8 +1690,6 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1890,16 +1697,14 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString + getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1907,23 +1712,21 @@ public com.google.protobuf.ByteString getArchiveUrisBytes(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The archiveUris to set. * @return This builder for chaining. */ - public Builder setArchiveUris(int index, java.lang.String value) { + public Builder setArchiveUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1931,22 +1734,20 @@ public Builder setArchiveUris(int index, java.lang.String value) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUris(java.lang.String value) { + public Builder addArchiveUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1954,19 +1755,18 @@ public Builder addArchiveUris(java.lang.String value) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The archiveUris to add. * @return This builder for chaining. */ - public Builder addAllArchiveUris(java.lang.Iterable values) { + public Builder addAllArchiveUris( + java.lang.Iterable values) { ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, archiveUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1974,7 +1774,6 @@ public Builder addAllArchiveUris(java.lang.Iterable values) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearArchiveUris() { @@ -1984,8 +1783,6 @@ public Builder clearArchiveUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1993,23 +1790,23 @@ public Builder clearArchiveUris() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { + public Builder addArchiveUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArchiveUrisIsMutable(); archiveUris_.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); } @@ -2019,12 +1816,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.PySparkBatch) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PySparkBatch) private static final com.google.cloud.dataproc.v1.PySparkBatch DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.PySparkBatch(); } @@ -2033,27 +1830,27 @@ public static com.google.cloud.dataproc.v1.PySparkBatch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PySparkBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PySparkBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2068,4 +1865,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.PySparkBatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java similarity index 83% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java index b65ba0cbc373..57490bcd5095 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; -public interface PySparkBatchOrBuilder - extends +public interface PySparkBatchOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PySparkBatch) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
    * be a .py file.
    * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mainPythonFileUri. */ java.lang.String getMainPythonFileUri(); /** - * - * *
    * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
    * be a .py file.
    * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mainPythonFileUri. */ - com.google.protobuf.ByteString getMainPythonFileUriBytes(); + com.google.protobuf.ByteString + getMainPythonFileUriBytes(); /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -60,13 +37,11 @@ public interface PySparkBatchOrBuilder
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - java.util.List getArgsList(); + java.util.List + getArgsList(); /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -74,13 +49,10 @@ public interface PySparkBatchOrBuilder
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ int getArgsCount(); /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -88,14 +60,11 @@ public interface PySparkBatchOrBuilder
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -103,180 +72,148 @@ public interface PySparkBatchOrBuilder
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString getArgsBytes(int index); + com.google.protobuf.ByteString + getArgsBytes(int index); /** - * - * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: `.py`, `.egg`, and `.zip`.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the pythonFileUris. */ - java.util.List getPythonFileUrisList(); + java.util.List + getPythonFileUrisList(); /** - * - * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: `.py`, `.egg`, and `.zip`.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of pythonFileUris. */ int getPythonFileUrisCount(); /** - * - * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: `.py`, `.egg`, and `.zip`.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The pythonFileUris at the given index. */ java.lang.String getPythonFileUris(int index); /** - * - * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: `.py`, `.egg`, and `.zip`.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the pythonFileUris at the given index. */ - com.google.protobuf.ByteString getPythonFileUrisBytes(int index); + com.google.protobuf.ByteString + getPythonFileUrisBytes(int index); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - java.util.List getJarFileUrisList(); + java.util.List + getJarFileUrisList(); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ int getJarFileUrisCount(); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ java.lang.String getJarFileUris(int index); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); + com.google.protobuf.ByteString + getJarFileUrisBytes(int index); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - java.util.List getFileUrisList(); + java.util.List + getFileUrisList(); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ int getFileUrisCount(); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ java.lang.String getFileUris(int index); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - com.google.protobuf.ByteString getFileUrisBytes(int index); + com.google.protobuf.ByteString + getFileUrisBytes(int index); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -284,13 +221,11 @@ public interface PySparkBatchOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - java.util.List getArchiveUrisList(); + java.util.List + getArchiveUrisList(); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -298,13 +233,10 @@ public interface PySparkBatchOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ int getArchiveUrisCount(); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -312,14 +244,11 @@ public interface PySparkBatchOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ java.lang.String getArchiveUris(int index); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -327,9 +256,9 @@ public interface PySparkBatchOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - com.google.protobuf.ByteString getArchiveUrisBytes(int index); + com.google.protobuf.ByteString + getArchiveUrisBytes(int index); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java similarity index 73% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java index dcdfa8b1a146..de0b11200de3 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A Dataproc job for running
  * [Apache
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.PySparkJob}
  */
-public final class PySparkJob extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PySparkJob extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.PySparkJob)
     PySparkJobOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PySparkJob.newBuilder() to construct.
   private PySparkJob(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PySparkJob() {
     mainPythonFileUri_ = "";
     args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -51,53 +33,50 @@ private PySparkJob() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PySparkJob();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.JobsProto
-        .internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PySparkJob_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 7:
         return internalGetProperties();
       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.dataproc.v1.JobsProto
-        .internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.PySparkJob.class,
-            com.google.cloud.dataproc.v1.PySparkJob.Builder.class);
+            com.google.cloud.dataproc.v1.PySparkJob.class, com.google.cloud.dataproc.v1.PySparkJob.Builder.class);
   }
 
   public static final int MAIN_PYTHON_FILE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object mainPythonFileUri_;
   /**
-   *
-   *
    * 
    * Required. The HCFS URI of the main Python file to use as the driver. Must
    * be a .py file.
    * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mainPythonFileUri. */ @java.lang.Override @@ -106,30 +85,30 @@ public java.lang.String getMainPythonFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mainPythonFileUri_ = s; return s; } } /** - * - * *
    * Required. The HCFS URI of the main Python file to use as the driver. Must
    * be a .py file.
    * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mainPythonFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString getMainPythonFileUriBytes() { + public com.google.protobuf.ByteString + getMainPythonFileUriBytes() { java.lang.Object ref = mainPythonFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mainPythonFileUri_ = b; return b; } else { @@ -140,8 +119,6 @@ public com.google.protobuf.ByteString getMainPythonFileUriBytes() { public static final int ARGS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList args_; /** - * - * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -149,15 +126,13 @@ public com.google.protobuf.ByteString getMainPythonFileUriBytes() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_; } /** - * - * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -165,15 +140,12 @@ public com.google.protobuf.ProtocolStringList getArgsList() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -181,7 +153,6 @@ public int getArgsCount() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -189,8 +160,6 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -198,56 +167,48 @@ public java.lang.String getArgs(int index) {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } public static final int PYTHON_FILE_URIS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList pythonFileUris_; /** - * - * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: .py, .egg, and .zip.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the pythonFileUris. */ - public com.google.protobuf.ProtocolStringList getPythonFileUrisList() { + public com.google.protobuf.ProtocolStringList + getPythonFileUrisList() { return pythonFileUris_; } /** - * - * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: .py, .egg, and .zip.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of pythonFileUris. */ public int getPythonFileUrisCount() { return pythonFileUris_.size(); } /** - * - * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: .py, .egg, and .zip.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The pythonFileUris at the given index. */ @@ -255,64 +216,54 @@ public java.lang.String getPythonFileUris(int index) { return pythonFileUris_.get(index); } /** - * - * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: .py, .egg, and .zip.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the pythonFileUris at the given index. */ - public com.google.protobuf.ByteString getPythonFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getPythonFileUrisBytes(int index) { return pythonFileUris_.getByteString(index); } public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList jarFileUris_; /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Python driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList + getJarFileUrisList() { return jarFileUris_; } /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Python driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Python driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -320,64 +271,54 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Python driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } public static final int FILE_URIS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList fileUris_; /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { + public com.google.protobuf.ProtocolStringList + getFileUrisList() { return fileUris_; } /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -385,27 +326,23 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getFileUrisBytes(int index) { return fileUris_.getByteString(index); } public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList archiveUris_; /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -413,15 +350,13 @@ public com.google.protobuf.ByteString getFileUrisBytes(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList + getArchiveUrisList() { return archiveUris_; } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -429,15 +364,12 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -445,7 +377,6 @@ public int getArchiveUrisCount() {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -453,8 +384,6 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -462,32 +391,33 @@ public java.lang.String getArchiveUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString + getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } public static final int PROPERTIES_FIELD_NUMBER = 7; - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField + internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -496,8 +426,6 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
    * Optional. A mapping of property names to values, used to configure PySpark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -505,25 +433,24 @@ public int getPropertiesCount() {
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
    * Optional. A mapping of property names to values, used to configure PySpark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -531,16 +458,14 @@ public java.util.Map getProperties() {
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
    * Optional. A mapping of property names to values, used to configure PySpark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -548,21 +473,19 @@ public java.util.Map getPropertiesMap() {
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. A mapping of property names to values, used to configure PySpark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -570,15 +493,15 @@ public java.lang.String getPropertiesOrDefault(
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -588,16 +511,11 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { public static final int LOGGING_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ @java.lang.Override @@ -605,34 +523,23 @@ public boolean hasLoggingConfig() { return loggingConfig_ != null; } /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { @@ -640,7 +547,6 @@ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBui } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -652,7 +558,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(mainPythonFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainPythonFileUri_); } @@ -671,8 +578,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < archiveUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetProperties(), + PropertiesDefaultEntryHolder.defaultEntry, + 7); if (loggingConfig_ != null) { output.writeMessage(8, getLoggingConfig()); } @@ -728,18 +639,19 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArchiveUrisList().size(); } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, properties__); + for (java.util.Map.Entry entry + : internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, properties__); } if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLoggingConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getLoggingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -749,23 +661,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.PySparkJob)) { return super.equals(obj); } com.google.cloud.dataproc.v1.PySparkJob other = (com.google.cloud.dataproc.v1.PySparkJob) obj; - if (!getMainPythonFileUri().equals(other.getMainPythonFileUri())) return false; - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getPythonFileUrisList().equals(other.getPythonFileUrisList())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (!getFileUrisList().equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; + if (!getMainPythonFileUri() + .equals(other.getMainPythonFileUri())) return false; + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (!getPythonFileUrisList() + .equals(other.getPythonFileUrisList())) return false; + if (!getJarFileUrisList() + .equals(other.getJarFileUrisList())) return false; + if (!getFileUrisList() + .equals(other.getFileUrisList())) return false; + if (!getArchiveUrisList() + .equals(other.getArchiveUrisList())) return false; + if (!internalGetProperties().equals( + other.internalGetProperties())) return false; if (hasLoggingConfig() != other.hasLoggingConfig()) return false; if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; + if (!getLoggingConfig() + .equals(other.getLoggingConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -813,104 +733,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.PySparkJob parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PySparkJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PySparkJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.PySparkJob parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.PySparkJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.PySparkJob parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.PySparkJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc job for running
    * [Apache
@@ -920,52 +833,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.PySparkJob}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.PySparkJob)
       com.google.cloud.dataproc.v1.PySparkJobOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetProperties();
         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 7:
           return internalGetMutableProperties();
         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.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.PySparkJob.class,
-              com.google.cloud.dataproc.v1.PySparkJob.Builder.class);
+              com.google.cloud.dataproc.v1.PySparkJob.class, com.google.cloud.dataproc.v1.PySparkJob.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.PySparkJob.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -992,9 +908,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor;
     }
 
     @java.lang.Override
@@ -1013,8 +929,7 @@ public com.google.cloud.dataproc.v1.PySparkJob build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.PySparkJob buildPartial() {
-      com.google.cloud.dataproc.v1.PySparkJob result =
-          new com.google.cloud.dataproc.v1.PySparkJob(this);
+      com.google.cloud.dataproc.v1.PySparkJob result = new com.google.cloud.dataproc.v1.PySparkJob(this);
       int from_bitField0_ = bitField0_;
       result.mainPythonFileUri_ = mainPythonFileUri_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -1057,39 +972,38 @@ public com.google.cloud.dataproc.v1.PySparkJob buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.PySparkJob) {
-        return mergeFrom((com.google.cloud.dataproc.v1.PySparkJob) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.PySparkJob)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1152,7 +1066,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.PySparkJob other) {
         }
         onChanged();
       }
-      internalGetMutableProperties().mergeFrom(other.internalGetProperties());
+      internalGetMutableProperties().mergeFrom(
+          other.internalGetProperties());
       if (other.hasLoggingConfig()) {
         mergeLoggingConfig(other.getLoggingConfig());
       }
@@ -1182,71 +1097,62 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                mainPythonFileUri_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureArgsIsMutable();
-                args_.add(s);
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensurePythonFileUrisIsMutable();
-                pythonFileUris_.add(s);
-                break;
-              } // case 26
-            case 34:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureJarFileUrisIsMutable();
-                jarFileUris_.add(s);
-                break;
-              } // case 34
-            case 42:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureFileUrisIsMutable();
-                fileUris_.add(s);
-                break;
-              } // case 42
-            case 50:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureArchiveUrisIsMutable();
-                archiveUris_.add(s);
-                break;
-              } // case 50
-            case 58:
-              {
-                com.google.protobuf.MapEntry properties__ =
-                    input.readMessage(
-                        PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableProperties()
-                    .getMutableMap()
-                    .put(properties__.getKey(), properties__.getValue());
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 66
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              mainPythonFileUri_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureArgsIsMutable();
+              args_.add(s);
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensurePythonFileUrisIsMutable();
+              pythonFileUris_.add(s);
+              break;
+            } // case 26
+            case 34: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureJarFileUrisIsMutable();
+              jarFileUris_.add(s);
+              break;
+            } // case 34
+            case 42: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureFileUrisIsMutable();
+              fileUris_.add(s);
+              break;
+            } // case 42
+            case 50: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureArchiveUrisIsMutable();
+              archiveUris_.add(s);
+              break;
+            } // case 50
+            case 58: {
+              com.google.protobuf.MapEntry
+              properties__ = input.readMessage(
+                  PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableProperties().getMutableMap().put(
+                  properties__.getKey(), properties__.getValue());
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getLoggingConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 66
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1256,26 +1162,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object mainPythonFileUri_ = "";
     /**
-     *
-     *
      * 
      * Required. The HCFS URI of the main Python file to use as the driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mainPythonFileUri. */ public java.lang.String getMainPythonFileUri() { java.lang.Object ref = mainPythonFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mainPythonFileUri_ = s; return s; @@ -1284,22 +1187,21 @@ public java.lang.String getMainPythonFileUri() { } } /** - * - * *
      * Required. The HCFS URI of the main Python file to use as the driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mainPythonFileUri. */ - public com.google.protobuf.ByteString getMainPythonFileUriBytes() { + public com.google.protobuf.ByteString + getMainPythonFileUriBytes() { java.lang.Object ref = mainPythonFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mainPythonFileUri_ = b; return b; } else { @@ -1307,81 +1209,70 @@ public com.google.protobuf.ByteString getMainPythonFileUriBytes() { } } /** - * - * *
      * Required. The HCFS URI of the main Python file to use as the driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The mainPythonFileUri to set. * @return This builder for chaining. */ - public Builder setMainPythonFileUri(java.lang.String value) { + public Builder setMainPythonFileUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mainPythonFileUri_ = value; onChanged(); return this; } /** - * - * *
      * Required. The HCFS URI of the main Python file to use as the driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMainPythonFileUri() { - + mainPythonFileUri_ = getDefaultInstance().getMainPythonFileUri(); onChanged(); return this; } /** - * - * *
      * Required. The HCFS URI of the main Python file to use as the driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for mainPythonFileUri to set. * @return This builder for chaining. */ - public Builder setMainPythonFileUriBytes(com.google.protobuf.ByteString value) { + public Builder setMainPythonFileUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mainPythonFileUri_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1389,15 +1280,13 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_.getUnmodifiableView(); } /** - * - * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1405,15 +1294,12 @@ public com.google.protobuf.ProtocolStringList getArgsList() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1421,7 +1307,6 @@ public int getArgsCount() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1429,8 +1314,6 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1438,16 +1321,14 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } /** - * - * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1455,23 +1336,21 @@ public com.google.protobuf.ByteString getArgsBytes(int index) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs(int index, java.lang.String value) { + public Builder setArgs( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1479,22 +1358,20 @@ public Builder setArgs(int index, java.lang.String value) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs(java.lang.String value) { + public Builder addArgs( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1502,19 +1379,18 @@ public Builder addArgs(java.lang.String value) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs(java.lang.Iterable values) { + public Builder addAllArgs( + java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1522,7 +1398,6 @@ public Builder addAllArgs(java.lang.Iterable values) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearArgs() { @@ -1532,8 +1407,6 @@ public Builder clearArgs() { return this; } /** - * - * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1541,70 +1414,60 @@ public Builder clearArgs() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList pythonFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePythonFileUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { pythonFileUris_ = new com.google.protobuf.LazyStringArrayList(pythonFileUris_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: .py, .egg, and .zip.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the pythonFileUris. */ - public com.google.protobuf.ProtocolStringList getPythonFileUrisList() { + public com.google.protobuf.ProtocolStringList + getPythonFileUrisList() { return pythonFileUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: .py, .egg, and .zip.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of pythonFileUris. */ public int getPythonFileUrisCount() { return pythonFileUris_.size(); } /** - * - * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: .py, .egg, and .zip.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The pythonFileUris at the given index. */ @@ -1612,95 +1475,85 @@ public java.lang.String getPythonFileUris(int index) { return pythonFileUris_.get(index); } /** - * - * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: .py, .egg, and .zip.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the pythonFileUris at the given index. */ - public com.google.protobuf.ByteString getPythonFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getPythonFileUrisBytes(int index) { return pythonFileUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: .py, .egg, and .zip.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The pythonFileUris to set. * @return This builder for chaining. */ - public Builder setPythonFileUris(int index, java.lang.String value) { + public Builder setPythonFileUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePythonFileUrisIsMutable(); + throw new NullPointerException(); + } + ensurePythonFileUrisIsMutable(); pythonFileUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: .py, .egg, and .zip.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pythonFileUris to add. * @return This builder for chaining. */ - public Builder addPythonFileUris(java.lang.String value) { + public Builder addPythonFileUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePythonFileUrisIsMutable(); + throw new NullPointerException(); + } + ensurePythonFileUrisIsMutable(); pythonFileUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: .py, .egg, and .zip.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The pythonFileUris to add. * @return This builder for chaining. */ - public Builder addAllPythonFileUris(java.lang.Iterable values) { + public Builder addAllPythonFileUris( + java.lang.Iterable values) { ensurePythonFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pythonFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pythonFileUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: .py, .egg, and .zip.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPythonFileUris() { @@ -1710,78 +1563,66 @@ public Builder clearPythonFileUris() { return this; } /** - * - * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: .py, .egg, and .zip.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the pythonFileUris to add. * @return This builder for chaining. */ - public Builder addPythonFileUrisBytes(com.google.protobuf.ByteString value) { + public Builder addPythonFileUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePythonFileUrisIsMutable(); pythonFileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureJarFileUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Python driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList + getJarFileUrisList() { return jarFileUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Python driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Python driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -1789,95 +1630,85 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Python driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Python driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The jarFileUris to set. * @return This builder for chaining. */ - public Builder setJarFileUris(int index, java.lang.String value) { + public Builder setJarFileUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Python driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUris(java.lang.String value) { + public Builder addJarFileUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Python driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The jarFileUris to add. * @return This builder for chaining. */ - public Builder addAllJarFileUris(java.lang.Iterable values) { + public Builder addAllJarFileUris( + java.lang.Iterable values) { ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, jarFileUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Python driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearJarFileUris() { @@ -1887,78 +1718,66 @@ public Builder clearJarFileUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Python driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { + public Builder addJarFileUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList fileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFileUrisIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); bitField0_ |= 0x00000008; - } + } } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { + public com.google.protobuf.ProtocolStringList + getFileUrisList() { return fileUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -1966,95 +1785,85 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getFileUrisBytes(int index) { return fileUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The fileUris to set. * @return This builder for chaining. */ - public Builder setFileUris(int index, java.lang.String value) { + public Builder setFileUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The fileUris to add. * @return This builder for chaining. */ - public Builder addFileUris(java.lang.String value) { + public Builder addFileUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The fileUris to add. * @return This builder for chaining. */ - public Builder addAllFileUris(java.lang.Iterable values) { + public Builder addAllFileUris( + java.lang.Iterable values) { ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fileUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFileUris() { @@ -2064,41 +1873,35 @@ public Builder clearFileUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the fileUris to add. * @return This builder for chaining. */ - public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { + public Builder addFileUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList archiveUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArchiveUrisIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); bitField0_ |= 0x00000010; - } + } } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2106,15 +1909,13 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList + getArchiveUrisList() { return archiveUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2122,15 +1923,12 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2138,7 +1936,6 @@ public int getArchiveUrisCount() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -2146,8 +1943,6 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2155,16 +1950,14 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString + getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2172,23 +1965,21 @@ public com.google.protobuf.ByteString getArchiveUrisBytes(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The archiveUris to set. * @return This builder for chaining. */ - public Builder setArchiveUris(int index, java.lang.String value) { + public Builder setArchiveUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2196,22 +1987,20 @@ public Builder setArchiveUris(int index, java.lang.String value) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUris(java.lang.String value) { + public Builder addArchiveUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2219,19 +2008,18 @@ public Builder addArchiveUris(java.lang.String value) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The archiveUris to add. * @return This builder for chaining. */ - public Builder addAllArchiveUris(java.lang.Iterable values) { + public Builder addAllArchiveUris( + java.lang.Iterable values) { ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, archiveUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2239,7 +2027,6 @@ public Builder addAllArchiveUris(java.lang.Iterable values) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearArchiveUris() { @@ -2249,8 +2036,6 @@ public Builder clearArchiveUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2258,39 +2043,37 @@ public Builder clearArchiveUris() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { + public Builder addArchiveUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } - private com.google.protobuf.MapField properties_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; + internalGetMutableProperties() { + onChanged();; if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); + properties_ = com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -2302,8 +2085,6 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure PySpark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2311,25 +2092,24 @@ public int getPropertiesCount() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure PySpark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2337,16 +2117,14 @@ public java.util.Map getProperties() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure PySpark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2354,21 +2132,19 @@ public java.util.Map getPropertiesMap() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. A mapping of property names to values, used to configure PySpark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2376,15 +2152,15 @@ public java.lang.String getPropertiesOrDefault(
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2392,12 +2168,11 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); + internalGetMutableProperties().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. A mapping of property names to values, used to configure PySpark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2405,24 +2180,25 @@ public Builder clearProperties() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); + + public Builder removeProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableProperties().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableProperties() { + public java.util.Map + getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure PySpark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2430,23 +2206,21 @@ public java.util.Map getMutableProperties()
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putProperties( + 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"); +} - internalGetMutableProperties().getMutableMap().put(key, value); + internalGetMutableProperties().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. A mapping of property names to values, used to configure PySpark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2454,68 +2228,51 @@ public Builder putProperties(java.lang.String key, java.lang.String value) {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); + + public Builder putAllProperties( + java.util.Map values) { + internalGetMutableProperties().getMutableMap() + .putAll(values); return this; } private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - loggingConfigBuilder_; + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> loggingConfigBuilder_; /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ public boolean hasLoggingConfig() { return loggingConfigBuilder_ != null || loggingConfig_ != null; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } else { return loggingConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { @@ -2531,15 +2288,11 @@ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLoggingConfig( com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { @@ -2553,23 +2306,17 @@ public Builder setLoggingConfig( return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { if (loggingConfig_ != null) { loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); } else { loggingConfig_ = value; } @@ -2581,15 +2328,11 @@ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig val return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearLoggingConfig() { if (loggingConfigBuilder_ == null) { @@ -2603,71 +2346,55 @@ public Builder clearLoggingConfig() { return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - + onChanged(); return getLoggingConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { if (loggingConfigBuilder_ != null) { return loggingConfigBuilder_.getMessageOrBuilder(); } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? + com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> getLoggingConfigFieldBuilder() { if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); + loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( + getLoggingConfig(), + getParentForChildren(), + isClean()); loggingConfig_ = null; } return loggingConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2677,12 +2404,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.PySparkJob) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PySparkJob) private static final com.google.cloud.dataproc.v1.PySparkJob DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.PySparkJob(); } @@ -2691,27 +2418,27 @@ public static com.google.cloud.dataproc.v1.PySparkJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PySparkJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PySparkJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2726,4 +2453,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.PySparkJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java similarity index 79% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java index 4542b0e722dc..fde6387aa1b2 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface PySparkJobOrBuilder - extends +public interface PySparkJobOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PySparkJob) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The HCFS URI of the main Python file to use as the driver. Must
    * be a .py file.
    * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mainPythonFileUri. */ java.lang.String getMainPythonFileUri(); /** - * - * *
    * Required. The HCFS URI of the main Python file to use as the driver. Must
    * be a .py file.
    * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mainPythonFileUri. */ - com.google.protobuf.ByteString getMainPythonFileUriBytes(); + com.google.protobuf.ByteString + getMainPythonFileUriBytes(); /** - * - * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -60,13 +37,11 @@ public interface PySparkJobOrBuilder
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - java.util.List getArgsList(); + java.util.List + getArgsList(); /** - * - * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -74,13 +49,10 @@ public interface PySparkJobOrBuilder
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ int getArgsCount(); /** - * - * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -88,14 +60,11 @@ public interface PySparkJobOrBuilder
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** - * - * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -103,180 +72,148 @@ public interface PySparkJobOrBuilder
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString getArgsBytes(int index); + com.google.protobuf.ByteString + getArgsBytes(int index); /** - * - * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: .py, .egg, and .zip.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the pythonFileUris. */ - java.util.List getPythonFileUrisList(); + java.util.List + getPythonFileUrisList(); /** - * - * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: .py, .egg, and .zip.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of pythonFileUris. */ int getPythonFileUrisCount(); /** - * - * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: .py, .egg, and .zip.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The pythonFileUris at the given index. */ java.lang.String getPythonFileUris(int index); /** - * - * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: .py, .egg, and .zip.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the pythonFileUris at the given index. */ - com.google.protobuf.ByteString getPythonFileUrisBytes(int index); + com.google.protobuf.ByteString + getPythonFileUrisBytes(int index); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Python driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - java.util.List getJarFileUrisList(); + java.util.List + getJarFileUrisList(); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Python driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ int getJarFileUrisCount(); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Python driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ java.lang.String getJarFileUris(int index); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Python driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); + com.google.protobuf.ByteString + getJarFileUrisBytes(int index); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - java.util.List getFileUrisList(); + java.util.List + getFileUrisList(); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ int getFileUrisCount(); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ java.lang.String getFileUris(int index); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - com.google.protobuf.ByteString getFileUrisBytes(int index); + com.google.protobuf.ByteString + getFileUrisBytes(int index); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -284,13 +221,11 @@ public interface PySparkJobOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - java.util.List getArchiveUrisList(); + java.util.List + getArchiveUrisList(); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -298,13 +233,10 @@ public interface PySparkJobOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ int getArchiveUrisCount(); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -312,14 +244,11 @@ public interface PySparkJobOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ java.lang.String getArchiveUris(int index); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -327,15 +256,13 @@ public interface PySparkJobOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - com.google.protobuf.ByteString getArchiveUrisBytes(int index); + com.google.protobuf.ByteString + getArchiveUrisBytes(int index); /** - * - * *
    * Optional. A mapping of property names to values, used to configure PySpark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -343,13 +270,10 @@ public interface PySparkJobOrBuilder
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getPropertiesCount(); /** - * - * *
    * Optional. A mapping of property names to values, used to configure PySpark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -357,16 +281,17 @@ public interface PySparkJobOrBuilder
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsProperties( + java.lang.String key); + /** + * Use {@link #getPropertiesMap()} instead. */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map getProperties(); + java.util.Map + getProperties(); /** - * - * *
    * Optional. A mapping of property names to values, used to configure PySpark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -374,13 +299,11 @@ public interface PySparkJobOrBuilder
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getPropertiesMap(); + java.util.Map + getPropertiesMap(); /** - * - * *
    * Optional. A mapping of property names to values, used to configure PySpark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -388,18 +311,15 @@ public interface PySparkJobOrBuilder
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getPropertiesOrDefault( +java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. A mapping of property names to values, used to configure PySpark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -407,49 +327,36 @@ java.lang.String getPropertiesOrDefault(
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getPropertiesOrThrow(java.lang.String key); + + java.lang.String getPropertiesOrThrow( + java.lang.String key); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ boolean hasLoggingConfig(); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java similarity index 74% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java index c38582d128d6..a887ae39e577 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java @@ -1,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A list of queries to run on a cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.QueryList} */ -public final class QueryList extends com.google.protobuf.GeneratedMessageV3 - implements +public final class QueryList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.QueryList) QueryListOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use QueryList.newBuilder() to construct. private QueryList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QueryList() { queries_ = 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 QueryList(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_QueryList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_QueryList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.QueryList.class, - com.google.cloud.dataproc.v1.QueryList.Builder.class); + com.google.cloud.dataproc.v1.QueryList.class, com.google.cloud.dataproc.v1.QueryList.Builder.class); } public static final int QUERIES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList queries_; /** - * - * *
    * Required. The queries to execute. You do not need to end a query expression
    * with a semicolon. Multiple queries can be specified in one
@@ -89,15 +68,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the queries. */ - public com.google.protobuf.ProtocolStringList getQueriesList() { + public com.google.protobuf.ProtocolStringList + getQueriesList() { return queries_; } /** - * - * *
    * Required. The queries to execute. You do not need to end a query expression
    * with a semicolon. Multiple queries can be specified in one
@@ -115,15 +92,12 @@ public com.google.protobuf.ProtocolStringList getQueriesList() {
    * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of queries. */ public int getQueriesCount() { return queries_.size(); } /** - * - * *
    * Required. The queries to execute. You do not need to end a query expression
    * with a semicolon. Multiple queries can be specified in one
@@ -141,7 +115,6 @@ public int getQueriesCount() {
    * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The queries at the given index. */ @@ -149,8 +122,6 @@ public java.lang.String getQueries(int index) { return queries_.get(index); } /** - * - * *
    * Required. The queries to execute. You do not need to end a query expression
    * with a semicolon. Multiple queries can be specified in one
@@ -168,16 +139,15 @@ public java.lang.String getQueries(int index) {
    * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the queries at the given index. */ - public com.google.protobuf.ByteString getQueriesBytes(int index) { + public com.google.protobuf.ByteString + getQueriesBytes(int index) { return queries_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,7 +159,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 < queries_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_.getRaw(i)); } @@ -218,14 +189,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.dataproc.v1.QueryList)) { return super.equals(obj); } com.google.cloud.dataproc.v1.QueryList other = (com.google.cloud.dataproc.v1.QueryList) obj; - if (!getQueriesList().equals(other.getQueriesList())) return false; + if (!getQueriesList() + .equals(other.getQueriesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -246,136 +218,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.QueryList parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.QueryList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.QueryList parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.QueryList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.QueryList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.QueryList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.QueryList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.QueryList parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.QueryList parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.QueryList 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.dataproc.v1.QueryList parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.QueryList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.QueryList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.QueryList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 list of queries to run on a cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.QueryList} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.QueryList) com.google.cloud.dataproc.v1.QueryListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_QueryList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_QueryList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.QueryList.class, - com.google.cloud.dataproc.v1.QueryList.Builder.class); + com.google.cloud.dataproc.v1.QueryList.class, com.google.cloud.dataproc.v1.QueryList.Builder.class); } // Construct using com.google.cloud.dataproc.v1.QueryList.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -385,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_QueryList_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_QueryList_descriptor; } @java.lang.Override @@ -406,8 +372,7 @@ public com.google.cloud.dataproc.v1.QueryList build() { @java.lang.Override public com.google.cloud.dataproc.v1.QueryList buildPartial() { - com.google.cloud.dataproc.v1.QueryList result = - new com.google.cloud.dataproc.v1.QueryList(this); + com.google.cloud.dataproc.v1.QueryList result = new com.google.cloud.dataproc.v1.QueryList(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { queries_ = queries_.getUnmodifiableView(); @@ -422,39 +387,38 @@ public com.google.cloud.dataproc.v1.QueryList buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.QueryList) { - return mergeFrom((com.google.cloud.dataproc.v1.QueryList) other); + return mergeFrom((com.google.cloud.dataproc.v1.QueryList)other); } else { super.mergeFrom(other); return this; @@ -499,20 +463,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureQueriesIsMutable(); - queries_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureQueriesIsMutable(); + queries_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -522,21 +484,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList queries_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList queries_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureQueriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { queries_ = new com.google.protobuf.LazyStringArrayList(queries_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. The queries to execute. You do not need to end a query expression
      * with a semicolon. Multiple queries can be specified in one
@@ -554,15 +511,13 @@ private void ensureQueriesIsMutable() {
      * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the queries. */ - public com.google.protobuf.ProtocolStringList getQueriesList() { + public com.google.protobuf.ProtocolStringList + getQueriesList() { return queries_.getUnmodifiableView(); } /** - * - * *
      * Required. The queries to execute. You do not need to end a query expression
      * with a semicolon. Multiple queries can be specified in one
@@ -580,15 +535,12 @@ public com.google.protobuf.ProtocolStringList getQueriesList() {
      * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of queries. */ public int getQueriesCount() { return queries_.size(); } /** - * - * *
      * Required. The queries to execute. You do not need to end a query expression
      * with a semicolon. Multiple queries can be specified in one
@@ -606,7 +558,6 @@ public int getQueriesCount() {
      * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The queries at the given index. */ @@ -614,8 +565,6 @@ public java.lang.String getQueries(int index) { return queries_.get(index); } /** - * - * *
      * Required. The queries to execute. You do not need to end a query expression
      * with a semicolon. Multiple queries can be specified in one
@@ -633,16 +582,14 @@ public java.lang.String getQueries(int index) {
      * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the queries at the given index. */ - public com.google.protobuf.ByteString getQueriesBytes(int index) { + public com.google.protobuf.ByteString + getQueriesBytes(int index) { return queries_.getByteString(index); } /** - * - * *
      * Required. The queries to execute. You do not need to end a query expression
      * with a semicolon. Multiple queries can be specified in one
@@ -660,23 +607,21 @@ public com.google.protobuf.ByteString getQueriesBytes(int index) {
      * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The queries to set. * @return This builder for chaining. */ - public Builder setQueries(int index, java.lang.String value) { + public Builder setQueries( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); + throw new NullPointerException(); + } + ensureQueriesIsMutable(); queries_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The queries to execute. You do not need to end a query expression
      * with a semicolon. Multiple queries can be specified in one
@@ -694,22 +639,20 @@ public Builder setQueries(int index, java.lang.String value) {
      * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The queries to add. * @return This builder for chaining. */ - public Builder addQueries(java.lang.String value) { + public Builder addQueries( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); + throw new NullPointerException(); + } + ensureQueriesIsMutable(); queries_.add(value); onChanged(); return this; } /** - * - * *
      * Required. The queries to execute. You do not need to end a query expression
      * with a semicolon. Multiple queries can be specified in one
@@ -727,19 +670,18 @@ public Builder addQueries(java.lang.String value) {
      * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The queries to add. * @return This builder for chaining. */ - public Builder addAllQueries(java.lang.Iterable values) { + public Builder addAllQueries( + java.lang.Iterable values) { ensureQueriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, queries_); onChanged(); return this; } /** - * - * *
      * Required. The queries to execute. You do not need to end a query expression
      * with a semicolon. Multiple queries can be specified in one
@@ -757,7 +699,6 @@ public Builder addAllQueries(java.lang.Iterable values) {
      * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearQueries() { @@ -767,8 +708,6 @@ public Builder clearQueries() { return this; } /** - * - * *
      * Required. The queries to execute. You do not need to end a query expression
      * with a semicolon. Multiple queries can be specified in one
@@ -786,23 +725,23 @@ public Builder clearQueries() {
      * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the queries to add. * @return This builder for chaining. */ - public Builder addQueriesBytes(com.google.protobuf.ByteString value) { + public Builder addQueriesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureQueriesIsMutable(); queries_.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); } @@ -812,12 +751,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.QueryList) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.QueryList) private static final com.google.cloud.dataproc.v1.QueryList DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.QueryList(); } @@ -826,27 +765,27 @@ public static com.google.cloud.dataproc.v1.QueryList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -861,4 +800,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.QueryList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java similarity index 79% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java index 05bb09a0a6dc..e5611a5d63bc 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface QueryListOrBuilder - extends +public interface QueryListOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.QueryList) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The queries to execute. You do not need to end a query expression
    * with a semicolon. Multiple queries can be specified in one
@@ -43,13 +25,11 @@ public interface QueryListOrBuilder
    * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the queries. */ - java.util.List getQueriesList(); + java.util.List + getQueriesList(); /** - * - * *
    * Required. The queries to execute. You do not need to end a query expression
    * with a semicolon. Multiple queries can be specified in one
@@ -67,13 +47,10 @@ public interface QueryListOrBuilder
    * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of queries. */ int getQueriesCount(); /** - * - * *
    * Required. The queries to execute. You do not need to end a query expression
    * with a semicolon. Multiple queries can be specified in one
@@ -91,14 +68,11 @@ public interface QueryListOrBuilder
    * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The queries at the given index. */ java.lang.String getQueries(int index); /** - * - * *
    * Required. The queries to execute. You do not need to end a query expression
    * with a semicolon. Multiple queries can be specified in one
@@ -116,9 +90,9 @@ public interface QueryListOrBuilder
    * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the queries at the given index. */ - com.google.protobuf.ByteString getQueriesBytes(int index); + com.google.protobuf.ByteString + getQueriesBytes(int index); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java similarity index 71% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java index 8246e4ed5746..973efba3ccb0 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java @@ -1,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Validation based on regular expressions.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.RegexValidation} */ -public final class RegexValidation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RegexValidation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.RegexValidation) RegexValidationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RegexValidation.newBuilder() to construct. private RegexValidation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RegexValidation() { regexes_ = 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 RegexValidation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_RegexValidation_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_RegexValidation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.RegexValidation.class, - com.google.cloud.dataproc.v1.RegexValidation.Builder.class); + com.google.cloud.dataproc.v1.RegexValidation.class, com.google.cloud.dataproc.v1.RegexValidation.Builder.class); } public static final int REGEXES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList regexes_; /** - * - * *
    * Required. RE2 regular expressions used to validate the parameter's value.
    * The value must match the regex in its entirety (substring
@@ -79,15 +58,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the regexes. */ - public com.google.protobuf.ProtocolStringList getRegexesList() { + public com.google.protobuf.ProtocolStringList + getRegexesList() { return regexes_; } /** - * - * *
    * Required. RE2 regular expressions used to validate the parameter's value.
    * The value must match the regex in its entirety (substring
@@ -95,15 +72,12 @@ public com.google.protobuf.ProtocolStringList getRegexesList() {
    * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of regexes. */ public int getRegexesCount() { return regexes_.size(); } /** - * - * *
    * Required. RE2 regular expressions used to validate the parameter's value.
    * The value must match the regex in its entirety (substring
@@ -111,7 +85,6 @@ public int getRegexesCount() {
    * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The regexes at the given index. */ @@ -119,8 +92,6 @@ public java.lang.String getRegexes(int index) { return regexes_.get(index); } /** - * - * *
    * Required. RE2 regular expressions used to validate the parameter's value.
    * The value must match the regex in its entirety (substring
@@ -128,16 +99,15 @@ public java.lang.String getRegexes(int index) {
    * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the regexes at the given index. */ - public com.google.protobuf.ByteString getRegexesBytes(int index) { + public com.google.protobuf.ByteString + getRegexesBytes(int index) { return regexes_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,7 +119,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 < regexes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, regexes_.getRaw(i)); } @@ -178,15 +149,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.dataproc.v1.RegexValidation)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.RegexValidation other = - (com.google.cloud.dataproc.v1.RegexValidation) obj; + com.google.cloud.dataproc.v1.RegexValidation other = (com.google.cloud.dataproc.v1.RegexValidation) obj; - if (!getRegexesList().equals(other.getRegexesList())) return false; + if (!getRegexesList() + .equals(other.getRegexesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -207,136 +178,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.RegexValidation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.RegexValidation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.RegexValidation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.RegexValidation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.RegexValidation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.RegexValidation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.RegexValidation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Validation based on regular expressions.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.RegexValidation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.RegexValidation) com.google.cloud.dataproc.v1.RegexValidationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_RegexValidation_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_RegexValidation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.RegexValidation.class, - com.google.cloud.dataproc.v1.RegexValidation.Builder.class); + com.google.cloud.dataproc.v1.RegexValidation.class, com.google.cloud.dataproc.v1.RegexValidation.Builder.class); } // Construct using com.google.cloud.dataproc.v1.RegexValidation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -346,9 +311,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; } @java.lang.Override @@ -367,8 +332,7 @@ public com.google.cloud.dataproc.v1.RegexValidation build() { @java.lang.Override public com.google.cloud.dataproc.v1.RegexValidation buildPartial() { - com.google.cloud.dataproc.v1.RegexValidation result = - new com.google.cloud.dataproc.v1.RegexValidation(this); + com.google.cloud.dataproc.v1.RegexValidation result = new com.google.cloud.dataproc.v1.RegexValidation(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { regexes_ = regexes_.getUnmodifiableView(); @@ -383,39 +347,38 @@ public com.google.cloud.dataproc.v1.RegexValidation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.RegexValidation) { - return mergeFrom((com.google.cloud.dataproc.v1.RegexValidation) other); + return mergeFrom((com.google.cloud.dataproc.v1.RegexValidation)other); } else { super.mergeFrom(other); return this; @@ -460,20 +423,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureRegexesIsMutable(); - regexes_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRegexesIsMutable(); + regexes_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -483,21 +444,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList regexes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList regexes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRegexesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { regexes_ = new com.google.protobuf.LazyStringArrayList(regexes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. RE2 regular expressions used to validate the parameter's value.
      * The value must match the regex in its entirety (substring
@@ -505,15 +461,13 @@ private void ensureRegexesIsMutable() {
      * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the regexes. */ - public com.google.protobuf.ProtocolStringList getRegexesList() { + public com.google.protobuf.ProtocolStringList + getRegexesList() { return regexes_.getUnmodifiableView(); } /** - * - * *
      * Required. RE2 regular expressions used to validate the parameter's value.
      * The value must match the regex in its entirety (substring
@@ -521,15 +475,12 @@ public com.google.protobuf.ProtocolStringList getRegexesList() {
      * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of regexes. */ public int getRegexesCount() { return regexes_.size(); } /** - * - * *
      * Required. RE2 regular expressions used to validate the parameter's value.
      * The value must match the regex in its entirety (substring
@@ -537,7 +488,6 @@ public int getRegexesCount() {
      * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The regexes at the given index. */ @@ -545,8 +495,6 @@ public java.lang.String getRegexes(int index) { return regexes_.get(index); } /** - * - * *
      * Required. RE2 regular expressions used to validate the parameter's value.
      * The value must match the regex in its entirety (substring
@@ -554,16 +502,14 @@ public java.lang.String getRegexes(int index) {
      * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the regexes at the given index. */ - public com.google.protobuf.ByteString getRegexesBytes(int index) { + public com.google.protobuf.ByteString + getRegexesBytes(int index) { return regexes_.getByteString(index); } /** - * - * *
      * Required. RE2 regular expressions used to validate the parameter's value.
      * The value must match the regex in its entirety (substring
@@ -571,23 +517,21 @@ public com.google.protobuf.ByteString getRegexesBytes(int index) {
      * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The regexes to set. * @return This builder for chaining. */ - public Builder setRegexes(int index, java.lang.String value) { + public Builder setRegexes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRegexesIsMutable(); + throw new NullPointerException(); + } + ensureRegexesIsMutable(); regexes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. RE2 regular expressions used to validate the parameter's value.
      * The value must match the regex in its entirety (substring
@@ -595,22 +539,20 @@ public Builder setRegexes(int index, java.lang.String value) {
      * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The regexes to add. * @return This builder for chaining. */ - public Builder addRegexes(java.lang.String value) { + public Builder addRegexes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRegexesIsMutable(); + throw new NullPointerException(); + } + ensureRegexesIsMutable(); regexes_.add(value); onChanged(); return this; } /** - * - * *
      * Required. RE2 regular expressions used to validate the parameter's value.
      * The value must match the regex in its entirety (substring
@@ -618,19 +560,18 @@ public Builder addRegexes(java.lang.String value) {
      * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The regexes to add. * @return This builder for chaining. */ - public Builder addAllRegexes(java.lang.Iterable values) { + public Builder addAllRegexes( + java.lang.Iterable values) { ensureRegexesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, regexes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, regexes_); onChanged(); return this; } /** - * - * *
      * Required. RE2 regular expressions used to validate the parameter's value.
      * The value must match the regex in its entirety (substring
@@ -638,7 +579,6 @@ public Builder addAllRegexes(java.lang.Iterable values) {
      * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRegexes() { @@ -648,8 +588,6 @@ public Builder clearRegexes() { return this; } /** - * - * *
      * Required. RE2 regular expressions used to validate the parameter's value.
      * The value must match the regex in its entirety (substring
@@ -657,23 +595,23 @@ public Builder clearRegexes() {
      * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the regexes to add. * @return This builder for chaining. */ - public Builder addRegexesBytes(com.google.protobuf.ByteString value) { + public Builder addRegexesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRegexesIsMutable(); regexes_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -683,12 +621,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.RegexValidation) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.RegexValidation) private static final com.google.cloud.dataproc.v1.RegexValidation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.RegexValidation(); } @@ -697,27 +635,27 @@ public static com.google.cloud.dataproc.v1.RegexValidation getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegexValidation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegexValidation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -732,4 +670,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.RegexValidation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.java index d1b982afc22f..44d9f9d60330 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface RegexValidationOrBuilder - extends +public interface RegexValidationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.RegexValidation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. RE2 regular expressions used to validate the parameter's value.
    * The value must match the regex in its entirety (substring
@@ -33,13 +15,11 @@ public interface RegexValidationOrBuilder
    * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the regexes. */ - java.util.List getRegexesList(); + java.util.List + getRegexesList(); /** - * - * *
    * Required. RE2 regular expressions used to validate the parameter's value.
    * The value must match the regex in its entirety (substring
@@ -47,13 +27,10 @@ public interface RegexValidationOrBuilder
    * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of regexes. */ int getRegexesCount(); /** - * - * *
    * Required. RE2 regular expressions used to validate the parameter's value.
    * The value must match the regex in its entirety (substring
@@ -61,14 +38,11 @@ public interface RegexValidationOrBuilder
    * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The regexes at the given index. */ java.lang.String getRegexes(int index); /** - * - * *
    * Required. RE2 regular expressions used to validate the parameter's value.
    * The value must match the regex in its entirety (substring
@@ -76,9 +50,9 @@ public interface RegexValidationOrBuilder
    * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the regexes at the given index. */ - com.google.protobuf.ByteString getRegexesBytes(int index); + com.google.protobuf.ByteString + getRegexesBytes(int index); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java similarity index 100% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java similarity index 67% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java index 3ce19c7be614..bbd762c20707 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Reservation Affinity for consuming Zonal reservation.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ReservationAffinity} */ -public final class ReservationAffinity extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ReservationAffinity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ReservationAffinity) ReservationAffinityOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ReservationAffinity.newBuilder() to construct. private ReservationAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReservationAffinity() { consumeReservationType_ = 0; key_ = ""; @@ -45,45 +27,43 @@ private ReservationAffinity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReservationAffinity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ReservationAffinity.class, - com.google.cloud.dataproc.v1.ReservationAffinity.Builder.class); + com.google.cloud.dataproc.v1.ReservationAffinity.class, com.google.cloud.dataproc.v1.ReservationAffinity.Builder.class); } /** - * - * *
    * Indicates whether to consume capacity from an reservation or not.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.ReservationAffinity.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { - /** TYPE_UNSPECIFIED = 0; */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * TYPE_UNSPECIFIED = 0; + */ TYPE_UNSPECIFIED(0), /** - * - * *
      * Do not consume from any allocated capacity.
      * 
@@ -92,8 +72,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NO_RESERVATION(1), /** - * - * *
      * Consume any reservation available.
      * 
@@ -102,8 +80,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ ANY_RESERVATION(2), /** - * - * *
      * Must consume from a specific reservation. Must specify key value fields
      * for specifying the reservations.
@@ -115,11 +91,11 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
     UNRECOGNIZED(-1),
     ;
 
-    /** TYPE_UNSPECIFIED = 0; */
+    /**
+     * TYPE_UNSPECIFIED = 0;
+     */
     public static final int TYPE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Do not consume from any allocated capacity.
      * 
@@ -128,8 +104,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NO_RESERVATION_VALUE = 1; /** - * - * *
      * Consume any reservation available.
      * 
@@ -138,8 +112,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ANY_RESERVATION_VALUE = 2; /** - * - * *
      * Must consume from a specific reservation. Must specify key value fields
      * for specifying the reservations.
@@ -149,6 +121,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SPECIFIC_RESERVATION_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -173,51 +146,50 @@ public static Type valueOf(int value) {
      */
     public static Type forNumber(int value) {
       switch (value) {
-        case 0:
-          return TYPE_UNSPECIFIED;
-        case 1:
-          return NO_RESERVATION;
-        case 2:
-          return ANY_RESERVATION;
-        case 3:
-          return SPECIFIC_RESERVATION;
-        default:
-          return null;
+        case 0: return TYPE_UNSPECIFIED;
+        case 1: return NO_RESERVATION;
+        case 2: return ANY_RESERVATION;
+        case 3: return SPECIFIC_RESERVATION;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
-
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Type findValueByNumber(int number) {
-            return Type.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    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);
+            }
+          };
+
+    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.dataproc.v1.ReservationAffinity.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;
@@ -237,56 +209,38 @@ private Type(int value) {
   public static final int CONSUME_RESERVATION_TYPE_FIELD_NUMBER = 1;
   private int consumeReservationType_;
   /**
-   *
-   *
    * 
    * Optional. Type of reservation to consume
    * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for consumeReservationType. */ - @java.lang.Override - public int getConsumeReservationTypeValue() { + @java.lang.Override public int getConsumeReservationTypeValue() { return consumeReservationType_; } /** - * - * *
    * Optional. Type of reservation to consume
    * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The consumeReservationType. */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ReservationAffinity.Type getConsumeReservationType() { + @java.lang.Override public com.google.cloud.dataproc.v1.ReservationAffinity.Type getConsumeReservationType() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ReservationAffinity.Type result = - com.google.cloud.dataproc.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); - return result == null - ? com.google.cloud.dataproc.v1.ReservationAffinity.Type.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.ReservationAffinity.Type result = com.google.cloud.dataproc.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); + return result == null ? com.google.cloud.dataproc.v1.ReservationAffinity.Type.UNRECOGNIZED : result; } public static final int KEY_FIELD_NUMBER = 2; private volatile java.lang.Object key_; /** - * - * *
    * Optional. Corresponds to the label key of reservation resource.
    * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The key. */ @java.lang.Override @@ -295,29 +249,29 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** - * - * *
    * Optional. Corresponds to the label key of reservation resource.
    * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -328,42 +282,34 @@ public com.google.protobuf.ByteString getKeyBytes() { public static final int VALUES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList values_; /** - * - * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList getValuesList() { + public com.google.protobuf.ProtocolStringList + getValuesList() { return values_; } /** - * - * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** - * - * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The values at the given index. */ @@ -371,23 +317,20 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** - * - * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString getValuesBytes(int index) { + public com.google.protobuf.ByteString + getValuesBytes(int index) { return values_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -399,9 +342,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (consumeReservationType_ - != com.google.cloud.dataproc.v1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (consumeReservationType_ != com.google.cloud.dataproc.v1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, consumeReservationType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { @@ -419,9 +362,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (consumeReservationType_ - != com.google.cloud.dataproc.v1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, consumeReservationType_); + if (consumeReservationType_ != com.google.cloud.dataproc.v1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, consumeReservationType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); @@ -442,17 +385,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.dataproc.v1.ReservationAffinity)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ReservationAffinity other = - (com.google.cloud.dataproc.v1.ReservationAffinity) obj; + com.google.cloud.dataproc.v1.ReservationAffinity other = (com.google.cloud.dataproc.v1.ReservationAffinity) obj; if (consumeReservationType_ != other.consumeReservationType_) return false; - if (!getKey().equals(other.getKey())) return false; - if (!getValuesList().equals(other.getValuesList())) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -477,136 +421,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ReservationAffinity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ReservationAffinity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ReservationAffinity parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ReservationAffinity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Reservation Affinity for consuming Zonal reservation.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ReservationAffinity} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ReservationAffinity) com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ReservationAffinity.class, - com.google.cloud.dataproc.v1.ReservationAffinity.Builder.class); + com.google.cloud.dataproc.v1.ReservationAffinity.class, com.google.cloud.dataproc.v1.ReservationAffinity.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ReservationAffinity.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -620,9 +558,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; } @java.lang.Override @@ -641,8 +579,7 @@ public com.google.cloud.dataproc.v1.ReservationAffinity build() { @java.lang.Override public com.google.cloud.dataproc.v1.ReservationAffinity buildPartial() { - com.google.cloud.dataproc.v1.ReservationAffinity result = - new com.google.cloud.dataproc.v1.ReservationAffinity(this); + com.google.cloud.dataproc.v1.ReservationAffinity result = new com.google.cloud.dataproc.v1.ReservationAffinity(this); int from_bitField0_ = bitField0_; result.consumeReservationType_ = consumeReservationType_; result.key_ = key_; @@ -659,39 +596,38 @@ public com.google.cloud.dataproc.v1.ReservationAffinity buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ReservationAffinity) { - return mergeFrom((com.google.cloud.dataproc.v1.ReservationAffinity) other); + return mergeFrom((com.google.cloud.dataproc.v1.ReservationAffinity)other); } else { super.mergeFrom(other); return this; @@ -699,8 +635,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ReservationAffinity other) { - if (other == com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance()) return this; if (other.consumeReservationType_ != 0) { setConsumeReservationTypeValue(other.getConsumeReservationTypeValue()); } @@ -744,32 +679,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - consumeReservationType_ = input.readEnum(); + case 8: { + consumeReservationType_ = input.readEnum(); - break; - } // case 8 - case 18: - { - key_ = input.readStringRequireUtf8(); + break; + } // case 8 + case 18: { + key_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -779,108 +710,77 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int consumeReservationType_ = 0; /** - * - * *
      * Optional. Type of reservation to consume
      * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for consumeReservationType. */ - @java.lang.Override - public int getConsumeReservationTypeValue() { + @java.lang.Override public int getConsumeReservationTypeValue() { return consumeReservationType_; } /** - * - * *
      * Optional. Type of reservation to consume
      * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for consumeReservationType to set. * @return This builder for chaining. */ public Builder setConsumeReservationTypeValue(int value) { - + consumeReservationType_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Type of reservation to consume
      * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The consumeReservationType. */ @java.lang.Override public com.google.cloud.dataproc.v1.ReservationAffinity.Type getConsumeReservationType() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ReservationAffinity.Type result = - com.google.cloud.dataproc.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); - return result == null - ? com.google.cloud.dataproc.v1.ReservationAffinity.Type.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.ReservationAffinity.Type result = com.google.cloud.dataproc.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); + return result == null ? com.google.cloud.dataproc.v1.ReservationAffinity.Type.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Type of reservation to consume
      * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The consumeReservationType to set. * @return This builder for chaining. */ - public Builder setConsumeReservationType( - com.google.cloud.dataproc.v1.ReservationAffinity.Type value) { + public Builder setConsumeReservationType(com.google.cloud.dataproc.v1.ReservationAffinity.Type value) { if (value == null) { throw new NullPointerException(); } - + consumeReservationType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. Type of reservation to consume
      * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearConsumeReservationType() { - + consumeReservationType_ = 0; onChanged(); return this; @@ -888,20 +788,18 @@ public Builder clearConsumeReservationType() { private java.lang.Object key_ = ""; /** - * - * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -910,21 +808,20 @@ public java.lang.String getKey() { } } /** - * - * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for key. */ - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -932,112 +829,95 @@ public com.google.protobuf.ByteString getKeyBytes() { } } /** - * - * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey(java.lang.String value) { + public Builder setKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** - * - * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList values_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList getValuesList() { + public com.google.protobuf.ProtocolStringList + getValuesList() { return values_.getUnmodifiableView(); } /** - * - * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** - * - * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The values at the given index. */ @@ -1045,90 +925,80 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** - * - * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString getValuesBytes(int index) { + public com.google.protobuf.ByteString + getValuesBytes(int index) { return values_.getByteString(index); } /** - * - * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ - public Builder setValues(int index, java.lang.String value) { + public Builder setValues( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The values to add. * @return This builder for chaining. */ - public Builder addValues(java.lang.String value) { + public Builder addValues( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The values to add. * @return This builder for chaining. */ - public Builder addAllValues(java.lang.Iterable values) { + public Builder addAllValues( + java.lang.Iterable values) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); onChanged(); return this; } /** - * - * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValues() { @@ -1138,30 +1008,28 @@ public Builder clearValues() { return this; } /** - * - * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the values to add. * @return This builder for chaining. */ - public Builder addValuesBytes(com.google.protobuf.ByteString value) { + public Builder addValuesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.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); } @@ -1171,12 +1039,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ReservationAffinity) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ReservationAffinity) private static final com.google.cloud.dataproc.v1.ReservationAffinity DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ReservationAffinity(); } @@ -1185,27 +1053,27 @@ public static com.google.cloud.dataproc.v1.ReservationAffinity getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReservationAffinity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReservationAffinity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1220,4 +1088,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ReservationAffinity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java index 21a9f1252a6c..cfde0d9e6c8e 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java @@ -1,130 +1,89 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface ReservationAffinityOrBuilder - extends +public interface ReservationAffinityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ReservationAffinity) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Type of reservation to consume
    * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for consumeReservationType. */ int getConsumeReservationTypeValue(); /** - * - * *
    * Optional. Type of reservation to consume
    * 
* - * - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The consumeReservationType. */ com.google.cloud.dataproc.v1.ReservationAffinity.Type getConsumeReservationType(); /** - * - * *
    * Optional. Corresponds to the label key of reservation resource.
    * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The key. */ java.lang.String getKey(); /** - * - * *
    * Optional. Corresponds to the label key of reservation resource.
    * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for key. */ - com.google.protobuf.ByteString getKeyBytes(); + com.google.protobuf.ByteString + getKeyBytes(); /** - * - * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the values. */ - java.util.List getValuesList(); + java.util.List + getValuesList(); /** - * - * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of values. */ int getValuesCount(); /** - * - * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** - * - * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - com.google.protobuf.ByteString getValuesBytes(int index); + com.google.protobuf.ByteString + getValuesBytes(int index); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequest.java new file mode 100644 index 000000000000..1d4468295004 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequest.java @@ -0,0 +1,1254 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/node_groups.proto + +package com.google.cloud.dataproc.v1; + +/** + *
+ * A request to resize a node group.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.ResizeNodeGroupRequest} + */ +public final class ResizeNodeGroupRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ResizeNodeGroupRequest) + ResizeNodeGroupRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ResizeNodeGroupRequest.newBuilder() to construct. + private ResizeNodeGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResizeNodeGroupRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ResizeNodeGroupRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.class, com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. The name of the node group to resize.
+   * Format:
+   * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The name of the node group to resize.
+   * Format:
+   * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SIZE_FIELD_NUMBER = 2; + private int size_; + /** + *
+   * Required. The number of running instances for the node group to maintain.
+   * The group adds or removes instances to maintain the number of instances
+   * specified by this parameter.
+   * 
+ * + * int32 size = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The size. + */ + @java.lang.Override + public int getSize() { + return size_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object requestId_; + /** + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two
+   * [ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)
+   * with the same ID, the second request is ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two
+   * [ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)
+   * with the same ID, the second request is ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + @java.lang.Override + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER = 4; + private com.google.protobuf.Duration gracefulDecommissionTimeout_; + /** + *
+   * Optional. Timeout for graceful YARN decommissioning. [Graceful
+   * decommissioning]
+   * (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
+   * allows the removal of nodes from the Compute Engine node group
+   * without interrupting jobs in progress. This timeout specifies how long to
+   * wait for jobs in progress to finish before forcefully removing nodes (and
+   * potentially interrupting jobs). Default timeout is 0 (for forceful
+   * decommission), and the maximum allowed timeout is 1 day. (see JSON
+   * representation of
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * Only supported on Dataproc image versions 1.2 and higher.
+   * 
+ * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the gracefulDecommissionTimeout field is set. + */ + @java.lang.Override + public boolean hasGracefulDecommissionTimeout() { + return gracefulDecommissionTimeout_ != null; + } + /** + *
+   * Optional. Timeout for graceful YARN decommissioning. [Graceful
+   * decommissioning]
+   * (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
+   * allows the removal of nodes from the Compute Engine node group
+   * without interrupting jobs in progress. This timeout specifies how long to
+   * wait for jobs in progress to finish before forcefully removing nodes (and
+   * potentially interrupting jobs). Default timeout is 0 (for forceful
+   * decommission), and the maximum allowed timeout is 1 day. (see JSON
+   * representation of
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * Only supported on Dataproc image versions 1.2 and higher.
+   * 
+ * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The gracefulDecommissionTimeout. + */ + @java.lang.Override + public com.google.protobuf.Duration getGracefulDecommissionTimeout() { + return gracefulDecommissionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : gracefulDecommissionTimeout_; + } + /** + *
+   * Optional. Timeout for graceful YARN decommissioning. [Graceful
+   * decommissioning]
+   * (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
+   * allows the removal of nodes from the Compute Engine node group
+   * without interrupting jobs in progress. This timeout specifies how long to
+   * wait for jobs in progress to finish before forcefully removing nodes (and
+   * potentially interrupting jobs). Default timeout is 0 (for forceful
+   * decommission), and the maximum allowed timeout is 1 day. (see JSON
+   * representation of
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * Only supported on Dataproc image versions 1.2 and higher.
+   * 
+ * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { + return getGracefulDecommissionTimeout(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (size_ != 0) { + output.writeInt32(2, size_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + if (gracefulDecommissionTimeout_ != null) { + output.writeMessage(4, getGracefulDecommissionTimeout()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (size_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, size_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + if (gracefulDecommissionTimeout_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getGracefulDecommissionTimeout()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataproc.v1.ResizeNodeGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest other = (com.google.cloud.dataproc.v1.ResizeNodeGroupRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getSize() + != other.getSize()) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (hasGracefulDecommissionTimeout() != other.hasGracefulDecommissionTimeout()) return false; + if (hasGracefulDecommissionTimeout()) { + if (!getGracefulDecommissionTimeout() + .equals(other.getGracefulDecommissionTimeout())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + getSize(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasGracefulDecommissionTimeout()) { + hash = (37 * hash) + GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getGracefulDecommissionTimeout().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest 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.dataproc.v1.ResizeNodeGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.dataproc.v1.ResizeNodeGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A request to resize a node group.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.ResizeNodeGroupRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ResizeNodeGroupRequest) + com.google.cloud.dataproc.v1.ResizeNodeGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.class, com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + size_ = 0; + + requestId_ = ""; + + if (gracefulDecommissionTimeoutBuilder_ == null) { + gracefulDecommissionTimeout_ = null; + } else { + gracefulDecommissionTimeout_ = null; + gracefulDecommissionTimeoutBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ResizeNodeGroupRequest getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ResizeNodeGroupRequest build() { + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ResizeNodeGroupRequest buildPartial() { + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest result = new com.google.cloud.dataproc.v1.ResizeNodeGroupRequest(this); + result.name_ = name_; + result.size_ = size_; + result.requestId_ = requestId_; + if (gracefulDecommissionTimeoutBuilder_ == null) { + result.gracefulDecommissionTimeout_ = gracefulDecommissionTimeout_; + } else { + result.gracefulDecommissionTimeout_ = gracefulDecommissionTimeoutBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataproc.v1.ResizeNodeGroupRequest) { + return mergeFrom((com.google.cloud.dataproc.v1.ResizeNodeGroupRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.ResizeNodeGroupRequest other) { + if (other == com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getSize() != 0) { + setSize(other.getSize()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.hasGracefulDecommissionTimeout()) { + mergeGracefulDecommissionTimeout(other.getGracefulDecommissionTimeout()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + size_ = input.readInt32(); + + break; + } // case 16 + case 26: { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + input.readMessage( + getGracefulDecommissionTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The name of the node group to resize.
+     * Format:
+     * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The name of the node group to resize.
+     * Format:
+     * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The name of the node group to resize.
+     * Format:
+     * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The name of the node group to resize.
+     * Format:
+     * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Required. The name of the node group to resize.
+     * Format:
+     * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int size_ ; + /** + *
+     * Required. The number of running instances for the node group to maintain.
+     * The group adds or removes instances to maintain the number of instances
+     * specified by this parameter.
+     * 
+ * + * int32 size = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The size. + */ + @java.lang.Override + public int getSize() { + return size_; + } + /** + *
+     * Required. The number of running instances for the node group to maintain.
+     * The group adds or removes instances to maintain the number of instances
+     * specified by this parameter.
+     * 
+ * + * int32 size = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The size to set. + * @return This builder for chaining. + */ + public Builder setSize(int value) { + + size_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The number of running instances for the node group to maintain.
+     * The group adds or removes instances to maintain the number of instances
+     * specified by this parameter.
+     * 
+ * + * int32 size = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearSize() { + + size_ = 0; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two
+     * [ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)
+     * with the same ID, the second request is ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 3 [(.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; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two
+     * [ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)
+     * with the same ID, the second request is ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two
+     * [ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)
+     * with the same ID, the second request is ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two
+     * [ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)
+     * with the same ID, the second request is ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two
+     * [ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)
+     * with the same ID, the second request is ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Duration gracefulDecommissionTimeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> gracefulDecommissionTimeoutBuilder_; + /** + *
+     * Optional. Timeout for graceful YARN decommissioning. [Graceful
+     * decommissioning]
+     * (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
+     * allows the removal of nodes from the Compute Engine node group
+     * without interrupting jobs in progress. This timeout specifies how long to
+     * wait for jobs in progress to finish before forcefully removing nodes (and
+     * potentially interrupting jobs). Default timeout is 0 (for forceful
+     * decommission), and the maximum allowed timeout is 1 day. (see JSON
+     * representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * Only supported on Dataproc image versions 1.2 and higher.
+     * 
+ * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the gracefulDecommissionTimeout field is set. + */ + public boolean hasGracefulDecommissionTimeout() { + return gracefulDecommissionTimeoutBuilder_ != null || gracefulDecommissionTimeout_ != null; + } + /** + *
+     * Optional. Timeout for graceful YARN decommissioning. [Graceful
+     * decommissioning]
+     * (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
+     * allows the removal of nodes from the Compute Engine node group
+     * without interrupting jobs in progress. This timeout specifies how long to
+     * wait for jobs in progress to finish before forcefully removing nodes (and
+     * potentially interrupting jobs). Default timeout is 0 (for forceful
+     * decommission), and the maximum allowed timeout is 1 day. (see JSON
+     * representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * Only supported on Dataproc image versions 1.2 and higher.
+     * 
+ * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The gracefulDecommissionTimeout. + */ + public com.google.protobuf.Duration getGracefulDecommissionTimeout() { + if (gracefulDecommissionTimeoutBuilder_ == null) { + return gracefulDecommissionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : gracefulDecommissionTimeout_; + } else { + return gracefulDecommissionTimeoutBuilder_.getMessage(); + } + } + /** + *
+     * Optional. Timeout for graceful YARN decommissioning. [Graceful
+     * decommissioning]
+     * (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
+     * allows the removal of nodes from the Compute Engine node group
+     * without interrupting jobs in progress. This timeout specifies how long to
+     * wait for jobs in progress to finish before forcefully removing nodes (and
+     * potentially interrupting jobs). Default timeout is 0 (for forceful
+     * decommission), and the maximum allowed timeout is 1 day. (see JSON
+     * representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * Only supported on Dataproc image versions 1.2 and higher.
+     * 
+ * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value) { + if (gracefulDecommissionTimeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gracefulDecommissionTimeout_ = value; + onChanged(); + } else { + gracefulDecommissionTimeoutBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Optional. Timeout for graceful YARN decommissioning. [Graceful
+     * decommissioning]
+     * (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
+     * allows the removal of nodes from the Compute Engine node group
+     * without interrupting jobs in progress. This timeout specifies how long to
+     * wait for jobs in progress to finish before forcefully removing nodes (and
+     * potentially interrupting jobs). Default timeout is 0 (for forceful
+     * decommission), and the maximum allowed timeout is 1 day. (see JSON
+     * representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * Only supported on Dataproc image versions 1.2 and higher.
+     * 
+ * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setGracefulDecommissionTimeout( + com.google.protobuf.Duration.Builder builderForValue) { + if (gracefulDecommissionTimeoutBuilder_ == null) { + gracefulDecommissionTimeout_ = builderForValue.build(); + onChanged(); + } else { + gracefulDecommissionTimeoutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Optional. Timeout for graceful YARN decommissioning. [Graceful
+     * decommissioning]
+     * (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
+     * allows the removal of nodes from the Compute Engine node group
+     * without interrupting jobs in progress. This timeout specifies how long to
+     * wait for jobs in progress to finish before forcefully removing nodes (and
+     * potentially interrupting jobs). Default timeout is 0 (for forceful
+     * decommission), and the maximum allowed timeout is 1 day. (see JSON
+     * representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * Only supported on Dataproc image versions 1.2 and higher.
+     * 
+ * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration value) { + if (gracefulDecommissionTimeoutBuilder_ == null) { + if (gracefulDecommissionTimeout_ != null) { + gracefulDecommissionTimeout_ = + com.google.protobuf.Duration.newBuilder(gracefulDecommissionTimeout_).mergeFrom(value).buildPartial(); + } else { + gracefulDecommissionTimeout_ = value; + } + onChanged(); + } else { + gracefulDecommissionTimeoutBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Optional. Timeout for graceful YARN decommissioning. [Graceful
+     * decommissioning]
+     * (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
+     * allows the removal of nodes from the Compute Engine node group
+     * without interrupting jobs in progress. This timeout specifies how long to
+     * wait for jobs in progress to finish before forcefully removing nodes (and
+     * potentially interrupting jobs). Default timeout is 0 (for forceful
+     * decommission), and the maximum allowed timeout is 1 day. (see JSON
+     * representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * Only supported on Dataproc image versions 1.2 and higher.
+     * 
+ * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearGracefulDecommissionTimeout() { + if (gracefulDecommissionTimeoutBuilder_ == null) { + gracefulDecommissionTimeout_ = null; + onChanged(); + } else { + gracefulDecommissionTimeout_ = null; + gracefulDecommissionTimeoutBuilder_ = null; + } + + return this; + } + /** + *
+     * Optional. Timeout for graceful YARN decommissioning. [Graceful
+     * decommissioning]
+     * (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
+     * allows the removal of nodes from the Compute Engine node group
+     * without interrupting jobs in progress. This timeout specifies how long to
+     * wait for jobs in progress to finish before forcefully removing nodes (and
+     * potentially interrupting jobs). Default timeout is 0 (for forceful
+     * decommission), and the maximum allowed timeout is 1 day. (see JSON
+     * representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * Only supported on Dataproc image versions 1.2 and higher.
+     * 
+ * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Duration.Builder getGracefulDecommissionTimeoutBuilder() { + + onChanged(); + return getGracefulDecommissionTimeoutFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. Timeout for graceful YARN decommissioning. [Graceful
+     * decommissioning]
+     * (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
+     * allows the removal of nodes from the Compute Engine node group
+     * without interrupting jobs in progress. This timeout specifies how long to
+     * wait for jobs in progress to finish before forcefully removing nodes (and
+     * potentially interrupting jobs). Default timeout is 0 (for forceful
+     * decommission), and the maximum allowed timeout is 1 day. (see JSON
+     * representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * Only supported on Dataproc image versions 1.2 and higher.
+     * 
+ * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { + if (gracefulDecommissionTimeoutBuilder_ != null) { + return gracefulDecommissionTimeoutBuilder_.getMessageOrBuilder(); + } else { + return gracefulDecommissionTimeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : gracefulDecommissionTimeout_; + } + } + /** + *
+     * Optional. Timeout for graceful YARN decommissioning. [Graceful
+     * decommissioning]
+     * (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
+     * allows the removal of nodes from the Compute Engine node group
+     * without interrupting jobs in progress. This timeout specifies how long to
+     * wait for jobs in progress to finish before forcefully removing nodes (and
+     * potentially interrupting jobs). Default timeout is 0 (for forceful
+     * decommission), and the maximum allowed timeout is 1 day. (see JSON
+     * representation of
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * Only supported on Dataproc image versions 1.2 and higher.
+     * 
+ * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getGracefulDecommissionTimeoutFieldBuilder() { + if (gracefulDecommissionTimeoutBuilder_ == null) { + gracefulDecommissionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getGracefulDecommissionTimeout(), + getParentForChildren(), + isClean()); + gracefulDecommissionTimeout_ = null; + } + return gracefulDecommissionTimeoutBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ResizeNodeGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ResizeNodeGroupRequest) + private static final com.google.cloud.dataproc.v1.ResizeNodeGroupRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ResizeNodeGroupRequest(); + } + + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResizeNodeGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ResizeNodeGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequestOrBuilder.java new file mode 100644 index 000000000000..e5156e1953fc --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequestOrBuilder.java @@ -0,0 +1,140 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/node_groups.proto + +package com.google.cloud.dataproc.v1; + +public interface ResizeNodeGroupRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ResizeNodeGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the node group to resize.
+   * Format:
+   * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the node group to resize.
+   * Format:
+   * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The number of running instances for the node group to maintain.
+   * The group adds or removes instances to maintain the number of instances
+   * specified by this parameter.
+   * 
+ * + * int32 size = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The size. + */ + int getSize(); + + /** + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two
+   * [ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)
+   * with the same ID, the second request is ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two
+   * [ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)
+   * with the same ID, the second request is ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString + getRequestIdBytes(); + + /** + *
+   * Optional. Timeout for graceful YARN decommissioning. [Graceful
+   * decommissioning]
+   * (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
+   * allows the removal of nodes from the Compute Engine node group
+   * without interrupting jobs in progress. This timeout specifies how long to
+   * wait for jobs in progress to finish before forcefully removing nodes (and
+   * potentially interrupting jobs). Default timeout is 0 (for forceful
+   * decommission), and the maximum allowed timeout is 1 day. (see JSON
+   * representation of
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * Only supported on Dataproc image versions 1.2 and higher.
+   * 
+ * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the gracefulDecommissionTimeout field is set. + */ + boolean hasGracefulDecommissionTimeout(); + /** + *
+   * Optional. Timeout for graceful YARN decommissioning. [Graceful
+   * decommissioning]
+   * (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
+   * allows the removal of nodes from the Compute Engine node group
+   * without interrupting jobs in progress. This timeout specifies how long to
+   * wait for jobs in progress to finish before forcefully removing nodes (and
+   * potentially interrupting jobs). Default timeout is 0 (for forceful
+   * decommission), and the maximum allowed timeout is 1 day. (see JSON
+   * representation of
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * Only supported on Dataproc image versions 1.2 and higher.
+   * 
+ * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The gracefulDecommissionTimeout. + */ + com.google.protobuf.Duration getGracefulDecommissionTimeout(); + /** + *
+   * Optional. Timeout for graceful YARN decommissioning. [Graceful
+   * decommissioning]
+   * (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
+   * allows the removal of nodes from the Compute Engine node group
+   * without interrupting jobs in progress. This timeout specifies how long to
+   * wait for jobs in progress to finish before forcefully removing nodes (and
+   * potentially interrupting jobs). Default timeout is 0 (for forceful
+   * decommission), and the maximum allowed timeout is 1 day. (see JSON
+   * representation of
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * Only supported on Dataproc image versions 1.2 and higher.
+   * 
+ * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder(); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java similarity index 63% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java index 6dc77af1a19f..7410cc65d567 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.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/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Runtime configuration for a workload.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.RuntimeConfig} */ -public final class RuntimeConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RuntimeConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.RuntimeConfig) RuntimeConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RuntimeConfig.newBuilder() to construct. private RuntimeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RuntimeConfig() { version_ = ""; containerImage_ = ""; @@ -44,52 +26,49 @@ private RuntimeConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RuntimeConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeConfig_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 3: return internalGetProperties(); 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.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.RuntimeConfig.class, - com.google.cloud.dataproc.v1.RuntimeConfig.Builder.class); + com.google.cloud.dataproc.v1.RuntimeConfig.class, com.google.cloud.dataproc.v1.RuntimeConfig.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** - * - * *
    * Optional. Version of the batch runtime.
    * 
* * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ @java.lang.Override @@ -98,29 +77,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * Optional. Version of the batch runtime.
    * 
* * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -131,15 +110,12 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int CONTAINER_IMAGE_FIELD_NUMBER = 2; private volatile java.lang.Object containerImage_; /** - * - * *
    * Optional. Optional custom container image for the job runtime environment. If
    * not specified, a default container image will be used.
    * 
* * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The containerImage. */ @java.lang.Override @@ -148,30 +124,30 @@ public java.lang.String getContainerImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); containerImage_ = s; return s; } } /** - * - * *
    * Optional. Optional custom container image for the job runtime environment. If
    * not specified, a default container image will be used.
    * 
* * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for containerImage. */ @java.lang.Override - public com.google.protobuf.ByteString getContainerImageBytes() { + public com.google.protobuf.ByteString + getContainerImageBytes() { java.lang.Object ref = containerImage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); containerImage_ = b; return b; } else { @@ -180,23 +156,24 @@ public com.google.protobuf.ByteString getContainerImageBytes() { } public static final int PROPERTIES_FIELD_NUMBER = 3; - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_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.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField + internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -205,81 +182,74 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
    * Optional. A mapping of property names to values, which are used to configure workload
    * execution.
    * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
    * Optional. A mapping of property names to values, which are used to configure workload
    * execution.
    * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
    * Optional. A mapping of property names to values, which are used to configure workload
    * execution.
    * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. A mapping of property names to values, which are used to configure workload
    * execution.
    * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -287,7 +257,6 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,15 +268,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerImage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, containerImage_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetProperties(), + PropertiesDefaultEntryHolder.defaultEntry, + 3); getUnknownFields().writeTo(output); } @@ -323,15 +297,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerImage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, containerImage_); } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, properties__); + for (java.util.Map.Entry entry + : internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, properties__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -341,17 +315,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.dataproc.v1.RuntimeConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.RuntimeConfig other = - (com.google.cloud.dataproc.v1.RuntimeConfig) obj; + com.google.cloud.dataproc.v1.RuntimeConfig other = (com.google.cloud.dataproc.v1.RuntimeConfig) obj; - if (!getVersion().equals(other.getVersion())) return false; - if (!getContainerImage().equals(other.getContainerImage())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getContainerImage() + .equals(other.getContainerImage())) return false; + if (!internalGetProperties().equals( + other.internalGetProperties())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -376,156 +352,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.RuntimeConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.RuntimeConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.RuntimeConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.RuntimeConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Runtime configuration for a workload.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.RuntimeConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.RuntimeConfig) com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetProperties(); 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 3: return internalGetMutableProperties(); 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.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.RuntimeConfig.class, - com.google.cloud.dataproc.v1.RuntimeConfig.Builder.class); + com.google.cloud.dataproc.v1.RuntimeConfig.class, com.google.cloud.dataproc.v1.RuntimeConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.RuntimeConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -538,9 +510,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor; } @java.lang.Override @@ -559,8 +531,7 @@ public com.google.cloud.dataproc.v1.RuntimeConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.RuntimeConfig buildPartial() { - com.google.cloud.dataproc.v1.RuntimeConfig result = - new com.google.cloud.dataproc.v1.RuntimeConfig(this); + com.google.cloud.dataproc.v1.RuntimeConfig result = new com.google.cloud.dataproc.v1.RuntimeConfig(this); int from_bitField0_ = bitField0_; result.version_ = version_; result.containerImage_ = containerImage_; @@ -574,39 +545,38 @@ public com.google.cloud.dataproc.v1.RuntimeConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.RuntimeConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.RuntimeConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.RuntimeConfig)other); } else { super.mergeFrom(other); return this; @@ -623,7 +593,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.RuntimeConfig other) { containerImage_ = other.containerImage_; onChanged(); } - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); + internalGetMutableProperties().mergeFrom( + other.internalGetProperties()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -650,36 +621,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - version_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - containerImage_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableProperties() - .getMutableMap() - .put(properties__.getKey(), properties__.getValue()); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + version_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + containerImage_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + com.google.protobuf.MapEntry + properties__ = input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableProperties().getMutableMap().put( + properties__.getKey(), properties__.getValue()); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -689,25 +654,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object version_ = ""; /** - * - * *
      * Optional. Version of the batch runtime.
      * 
* * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -716,21 +678,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * Optional. Version of the batch runtime.
      * 
* * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -738,61 +699,54 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * Optional. Version of the batch runtime.
      * 
* * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Version of the batch runtime.
      * 
* * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * Optional. Version of the batch runtime.
      * 
* * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -800,21 +754,19 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { private java.lang.Object containerImage_ = ""; /** - * - * *
      * Optional. Optional custom container image for the job runtime environment. If
      * not specified, a default container image will be used.
      * 
* * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The containerImage. */ public java.lang.String getContainerImage() { java.lang.Object ref = containerImage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); containerImage_ = s; return s; @@ -823,22 +775,21 @@ public java.lang.String getContainerImage() { } } /** - * - * *
      * Optional. Optional custom container image for the job runtime environment. If
      * not specified, a default container image will be used.
      * 
* * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for containerImage. */ - public com.google.protobuf.ByteString getContainerImageBytes() { + public com.google.protobuf.ByteString + getContainerImageBytes() { java.lang.Object ref = containerImage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); containerImage_ = b; return b; } else { @@ -846,87 +797,78 @@ public com.google.protobuf.ByteString getContainerImageBytes() { } } /** - * - * *
      * Optional. Optional custom container image for the job runtime environment. If
      * not specified, a default container image will be used.
      * 
* * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The containerImage to set. * @return This builder for chaining. */ - public Builder setContainerImage(java.lang.String value) { + public Builder setContainerImage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + containerImage_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Optional custom container image for the job runtime environment. If
      * not specified, a default container image will be used.
      * 
* * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearContainerImage() { - + containerImage_ = getDefaultInstance().getContainerImage(); onChanged(); return this; } /** - * - * *
      * Optional. Optional custom container image for the job runtime environment. If
      * not specified, a default container image will be used.
      * 
* * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for containerImage to set. * @return This builder for chaining. */ - public Builder setContainerImageBytes(com.google.protobuf.ByteString value) { + public Builder setContainerImageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + containerImage_ = value; onChanged(); return this; } - private com.google.protobuf.MapField properties_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; + internalGetMutableProperties() { + onChanged();; if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); + properties_ = com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -938,81 +880,74 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
      * Optional. A mapping of property names to values, which are used to configure workload
      * execution.
      * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
      * Optional. A mapping of property names to values, which are used to configure workload
      * execution.
      * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
      * Optional. A mapping of property names to values, which are used to configure workload
      * execution.
      * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. A mapping of property names to values, which are used to configure workload
      * execution.
      * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1020,72 +955,72 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); + internalGetMutableProperties().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. A mapping of property names to values, which are used to configure workload
      * execution.
      * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); + + public Builder removeProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableProperties().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableProperties() { + public java.util.Map + getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** - * - * *
      * Optional. A mapping of property names to values, which are used to configure workload
      * execution.
      * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putProperties( + 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"); +} - internalGetMutableProperties().getMutableMap().put(key, value); + internalGetMutableProperties().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. A mapping of property names to values, which are used to configure workload
      * execution.
      * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); + + public Builder putAllProperties( + java.util.Map values) { + internalGetMutableProperties().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); } @@ -1095,12 +1030,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.RuntimeConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.RuntimeConfig) private static final com.google.cloud.dataproc.v1.RuntimeConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.RuntimeConfig(); } @@ -1109,27 +1044,27 @@ public static com.google.cloud.dataproc.v1.RuntimeConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuntimeConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,4 +1079,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.RuntimeConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java similarity index 63% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java index f7a1a09d56e0..cc7c8a58cfa2 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java @@ -1,146 +1,112 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; -public interface RuntimeConfigOrBuilder - extends +public interface RuntimeConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.RuntimeConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Version of the batch runtime.
    * 
* * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * Optional. Version of the batch runtime.
    * 
* * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
    * Optional. Optional custom container image for the job runtime environment. If
    * not specified, a default container image will be used.
    * 
* * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The containerImage. */ java.lang.String getContainerImage(); /** - * - * *
    * Optional. Optional custom container image for the job runtime environment. If
    * not specified, a default container image will be used.
    * 
* * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for containerImage. */ - com.google.protobuf.ByteString getContainerImageBytes(); + com.google.protobuf.ByteString + getContainerImageBytes(); /** - * - * *
    * Optional. A mapping of property names to values, which are used to configure workload
    * execution.
    * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; */ int getPropertiesCount(); /** - * - * *
    * Optional. A mapping of property names to values, which are used to configure workload
    * execution.
    * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsProperties( + java.lang.String key); + /** + * Use {@link #getPropertiesMap()} instead. */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map getProperties(); + java.util.Map + getProperties(); /** - * - * *
    * Optional. A mapping of property names to values, which are used to configure workload
    * execution.
    * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getPropertiesMap(); + java.util.Map + getPropertiesMap(); /** - * - * *
    * Optional. A mapping of property names to values, which are used to configure workload
    * execution.
    * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getPropertiesOrDefault( +java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. A mapping of property names to values, which are used to configure workload
    * execution.
    * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getPropertiesOrThrow(java.lang.String key); + + java.lang.String getPropertiesOrThrow( + java.lang.String key); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java similarity index 63% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java index 10875f96ea5b..72a5e468fa88 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.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/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Runtime information about workload execution.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.RuntimeInfo} */ -public final class RuntimeInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RuntimeInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.RuntimeInfo) RuntimeInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RuntimeInfo.newBuilder() to construct. private RuntimeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RuntimeInfo() { outputUri_ = ""; diagnosticOutputUri_ = ""; @@ -44,59 +26,60 @@ private RuntimeInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RuntimeInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeInfo_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 internalGetEndpoints(); 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.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.RuntimeInfo.class, - com.google.cloud.dataproc.v1.RuntimeInfo.Builder.class); + com.google.cloud.dataproc.v1.RuntimeInfo.class, com.google.cloud.dataproc.v1.RuntimeInfo.Builder.class); } public static final int ENDPOINTS_FIELD_NUMBER = 1; - private static final class EndpointsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_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.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField endpoints_; - - private com.google.protobuf.MapField internalGetEndpoints() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> endpoints_; + private com.google.protobuf.MapField + internalGetEndpoints() { if (endpoints_ == null) { - return com.google.protobuf.MapField.emptyMapField(EndpointsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + EndpointsDefaultEntryHolder.defaultEntry); } return endpoints_; } @@ -105,81 +88,74 @@ public int getEndpointsCount() { return internalGetEndpoints().getMap().size(); } /** - * - * *
    * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
    * URIs.
    * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + @java.lang.Override - public boolean containsEndpoints(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsEndpoints( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetEndpoints().getMap().containsKey(key); } - /** Use {@link #getEndpointsMap()} instead. */ + /** + * Use {@link #getEndpointsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEndpoints() { return getEndpointsMap(); } /** - * - * *
    * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
    * URIs.
    * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public java.util.Map getEndpointsMap() { return internalGetEndpoints().getMap(); } /** - * - * *
    * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
    * URIs.
    * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public java.lang.String getEndpointsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEndpoints().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEndpoints().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
    * URIs.
    * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.lang.String getEndpointsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEndpoints().getMap(); + + public java.lang.String getEndpointsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEndpoints().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -189,14 +165,11 @@ public java.lang.String getEndpointsOrThrow(java.lang.String key) { public static final int OUTPUT_URI_FIELD_NUMBER = 2; private volatile java.lang.Object outputUri_; /** - * - * *
    * Output only. A URI pointing to the location of the stdout and stderr of the workload.
    * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The outputUri. */ @java.lang.Override @@ -205,29 +178,29 @@ public java.lang.String getOutputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUri_ = s; return s; } } /** - * - * *
    * Output only. A URI pointing to the location of the stdout and stderr of the workload.
    * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for outputUri. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputUriBytes() { + public com.google.protobuf.ByteString + getOutputUriBytes() { java.lang.Object ref = outputUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUri_ = b; return b; } else { @@ -238,14 +211,11 @@ public com.google.protobuf.ByteString getOutputUriBytes() { public static final int DIAGNOSTIC_OUTPUT_URI_FIELD_NUMBER = 3; private volatile java.lang.Object diagnosticOutputUri_; /** - * - * *
    * Output only. A URI pointing to the location of the diagnostics tarball.
    * 
* * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The diagnosticOutputUri. */ @java.lang.Override @@ -254,29 +224,29 @@ public java.lang.String getDiagnosticOutputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diagnosticOutputUri_ = s; return s; } } /** - * - * *
    * Output only. A URI pointing to the location of the diagnostics tarball.
    * 
* * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for diagnosticOutputUri. */ @java.lang.Override - public com.google.protobuf.ByteString getDiagnosticOutputUriBytes() { + public com.google.protobuf.ByteString + getDiagnosticOutputUriBytes() { java.lang.Object ref = diagnosticOutputUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); diagnosticOutputUri_ = b; return b; } else { @@ -285,7 +255,6 @@ public com.google.protobuf.ByteString getDiagnosticOutputUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -297,9 +266,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, internalGetEndpoints(), EndpointsDefaultEntryHolder.defaultEntry, 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetEndpoints(), + EndpointsDefaultEntryHolder.defaultEntry, + 1); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outputUri_); } @@ -315,15 +289,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry : - internalGetEndpoints().getMap().entrySet()) { - com.google.protobuf.MapEntry endpoints__ = - EndpointsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, endpoints__); + for (java.util.Map.Entry entry + : internalGetEndpoints().getMap().entrySet()) { + com.google.protobuf.MapEntry + endpoints__ = EndpointsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, endpoints__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outputUri_); @@ -339,16 +313,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.dataproc.v1.RuntimeInfo)) { return super.equals(obj); } com.google.cloud.dataproc.v1.RuntimeInfo other = (com.google.cloud.dataproc.v1.RuntimeInfo) obj; - if (!internalGetEndpoints().equals(other.internalGetEndpoints())) return false; - if (!getOutputUri().equals(other.getOutputUri())) return false; - if (!getDiagnosticOutputUri().equals(other.getDiagnosticOutputUri())) return false; + if (!internalGetEndpoints().equals( + other.internalGetEndpoints())) return false; + if (!getOutputUri() + .equals(other.getOutputUri())) return false; + if (!getDiagnosticOutputUri() + .equals(other.getDiagnosticOutputUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -373,156 +350,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.RuntimeInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.RuntimeInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.RuntimeInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.RuntimeInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Runtime information about workload execution.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.RuntimeInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.RuntimeInfo) com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetEndpoints(); 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 internalGetMutableEndpoints(); 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.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.RuntimeInfo.class, - com.google.cloud.dataproc.v1.RuntimeInfo.Builder.class); + com.google.cloud.dataproc.v1.RuntimeInfo.class, com.google.cloud.dataproc.v1.RuntimeInfo.Builder.class); } // Construct using com.google.cloud.dataproc.v1.RuntimeInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -535,9 +508,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; } @java.lang.Override @@ -556,8 +529,7 @@ public com.google.cloud.dataproc.v1.RuntimeInfo build() { @java.lang.Override public com.google.cloud.dataproc.v1.RuntimeInfo buildPartial() { - com.google.cloud.dataproc.v1.RuntimeInfo result = - new com.google.cloud.dataproc.v1.RuntimeInfo(this); + com.google.cloud.dataproc.v1.RuntimeInfo result = new com.google.cloud.dataproc.v1.RuntimeInfo(this); int from_bitField0_ = bitField0_; result.endpoints_ = internalGetEndpoints(); result.endpoints_.makeImmutable(); @@ -571,39 +543,38 @@ public com.google.cloud.dataproc.v1.RuntimeInfo buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.RuntimeInfo) { - return mergeFrom((com.google.cloud.dataproc.v1.RuntimeInfo) other); + return mergeFrom((com.google.cloud.dataproc.v1.RuntimeInfo)other); } else { super.mergeFrom(other); return this; @@ -612,7 +583,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.dataproc.v1.RuntimeInfo other) { if (other == com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance()) return this; - internalGetMutableEndpoints().mergeFrom(other.internalGetEndpoints()); + internalGetMutableEndpoints().mergeFrom( + other.internalGetEndpoints()); if (!other.getOutputUri().isEmpty()) { outputUri_ = other.outputUri_; onChanged(); @@ -647,36 +619,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.MapEntry endpoints__ = - input.readMessage( - EndpointsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableEndpoints() - .getMutableMap() - .put(endpoints__.getKey(), endpoints__.getValue()); - break; - } // case 10 - case 18: - { - outputUri_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - diagnosticOutputUri_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.protobuf.MapEntry + endpoints__ = input.readMessage( + EndpointsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableEndpoints().getMutableMap().put( + endpoints__.getKey(), endpoints__.getValue()); + break; + } // case 10 + case 18: { + outputUri_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + diagnosticOutputUri_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -686,26 +652,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.MapField endpoints_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> endpoints_; private com.google.protobuf.MapField - internalGetEndpoints() { + internalGetEndpoints() { if (endpoints_ == null) { - return com.google.protobuf.MapField.emptyMapField(EndpointsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + EndpointsDefaultEntryHolder.defaultEntry); } return endpoints_; } - private com.google.protobuf.MapField - internalGetMutableEndpoints() { - onChanged(); - ; + internalGetMutableEndpoints() { + onChanged();; if (endpoints_ == null) { - endpoints_ = - com.google.protobuf.MapField.newMapField(EndpointsDefaultEntryHolder.defaultEntry); + endpoints_ = com.google.protobuf.MapField.newMapField( + EndpointsDefaultEntryHolder.defaultEntry); } if (!endpoints_.isMutable()) { endpoints_ = endpoints_.copy(); @@ -717,81 +681,74 @@ public int getEndpointsCount() { return internalGetEndpoints().getMap().size(); } /** - * - * *
      * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
      * URIs.
      * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + @java.lang.Override - public boolean containsEndpoints(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsEndpoints( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetEndpoints().getMap().containsKey(key); } - /** Use {@link #getEndpointsMap()} instead. */ + /** + * Use {@link #getEndpointsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEndpoints() { return getEndpointsMap(); } /** - * - * *
      * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
      * URIs.
      * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public java.util.Map getEndpointsMap() { return internalGetEndpoints().getMap(); } /** - * - * *
      * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
      * URIs.
      * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public java.lang.String getEndpointsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEndpoints().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEndpoints().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
      * URIs.
      * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.lang.String getEndpointsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEndpoints().getMap(); + + public java.lang.String getEndpointsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEndpoints().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -799,86 +756,84 @@ public java.lang.String getEndpointsOrThrow(java.lang.String key) { } public Builder clearEndpoints() { - internalGetMutableEndpoints().getMutableMap().clear(); + internalGetMutableEndpoints().getMutableMap() + .clear(); return this; } /** - * - * *
      * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
      * URIs.
      * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder removeEndpoints(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableEndpoints().getMutableMap().remove(key); + + public Builder removeEndpoints( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableEndpoints().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableEndpoints() { + public java.util.Map + getMutableEndpoints() { return internalGetMutableEndpoints().getMutableMap(); } /** - * - * *
      * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
      * URIs.
      * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder putEndpoints(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putEndpoints( + 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"); +} - internalGetMutableEndpoints().getMutableMap().put(key, value); + internalGetMutableEndpoints().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
      * URIs.
      * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder putAllEndpoints(java.util.Map values) { - internalGetMutableEndpoints().getMutableMap().putAll(values); + + public Builder putAllEndpoints( + java.util.Map values) { + internalGetMutableEndpoints().getMutableMap() + .putAll(values); return this; } private java.lang.Object outputUri_ = ""; /** - * - * *
      * Output only. A URI pointing to the location of the stdout and stderr of the workload.
      * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The outputUri. */ public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUri_ = s; return s; @@ -887,21 +842,20 @@ public java.lang.String getOutputUri() { } } /** - * - * *
      * Output only. A URI pointing to the location of the stdout and stderr of the workload.
      * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for outputUri. */ - public com.google.protobuf.ByteString getOutputUriBytes() { + public com.google.protobuf.ByteString + getOutputUriBytes() { java.lang.Object ref = outputUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputUri_ = b; return b; } else { @@ -909,61 +863,54 @@ public com.google.protobuf.ByteString getOutputUriBytes() { } } /** - * - * *
      * Output only. A URI pointing to the location of the stdout and stderr of the workload.
      * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The outputUri to set. * @return This builder for chaining. */ - public Builder setOutputUri(java.lang.String value) { + public Builder setOutputUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUri_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A URI pointing to the location of the stdout and stderr of the workload.
      * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearOutputUri() { - + outputUri_ = getDefaultInstance().getOutputUri(); onChanged(); return this; } /** - * - * *
      * Output only. A URI pointing to the location of the stdout and stderr of the workload.
      * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for outputUri to set. * @return This builder for chaining. */ - public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUri_ = value; onChanged(); return this; @@ -971,20 +918,18 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object diagnosticOutputUri_ = ""; /** - * - * *
      * Output only. A URI pointing to the location of the diagnostics tarball.
      * 
* * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The diagnosticOutputUri. */ public java.lang.String getDiagnosticOutputUri() { java.lang.Object ref = diagnosticOutputUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diagnosticOutputUri_ = s; return s; @@ -993,21 +938,20 @@ public java.lang.String getDiagnosticOutputUri() { } } /** - * - * *
      * Output only. A URI pointing to the location of the diagnostics tarball.
      * 
* * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for diagnosticOutputUri. */ - public com.google.protobuf.ByteString getDiagnosticOutputUriBytes() { + public com.google.protobuf.ByteString + getDiagnosticOutputUriBytes() { java.lang.Object ref = diagnosticOutputUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); diagnosticOutputUri_ = b; return b; } else { @@ -1015,68 +959,61 @@ public com.google.protobuf.ByteString getDiagnosticOutputUriBytes() { } } /** - * - * *
      * Output only. A URI pointing to the location of the diagnostics tarball.
      * 
* * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The diagnosticOutputUri to set. * @return This builder for chaining. */ - public Builder setDiagnosticOutputUri(java.lang.String value) { + public Builder setDiagnosticOutputUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + diagnosticOutputUri_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A URI pointing to the location of the diagnostics tarball.
      * 
* * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDiagnosticOutputUri() { - + diagnosticOutputUri_ = getDefaultInstance().getDiagnosticOutputUri(); onChanged(); return this; } /** - * - * *
      * Output only. A URI pointing to the location of the diagnostics tarball.
      * 
* * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for diagnosticOutputUri to set. * @return This builder for chaining. */ - public Builder setDiagnosticOutputUriBytes(com.google.protobuf.ByteString value) { + public Builder setDiagnosticOutputUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + diagnosticOutputUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1086,12 +1023,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.RuntimeInfo) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.RuntimeInfo) private static final com.google.cloud.dataproc.v1.RuntimeInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.RuntimeInfo(); } @@ -1100,27 +1037,27 @@ public static com.google.cloud.dataproc.v1.RuntimeInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuntimeInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1135,4 +1072,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.RuntimeInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java similarity index 63% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java index 9d8377cbc96d..e865844a2c48 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java @@ -1,144 +1,110 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; -public interface RuntimeInfoOrBuilder - extends +public interface RuntimeInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.RuntimeInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
    * URIs.
    * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getEndpointsCount(); /** - * - * *
    * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
    * URIs.
    * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + boolean containsEndpoints( + java.lang.String key); + /** + * Use {@link #getEndpointsMap()} instead. */ - boolean containsEndpoints(java.lang.String key); - /** Use {@link #getEndpointsMap()} instead. */ @java.lang.Deprecated - java.util.Map getEndpoints(); + java.util.Map + getEndpoints(); /** - * - * *
    * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
    * URIs.
    * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.Map getEndpointsMap(); + java.util.Map + getEndpointsMap(); /** - * - * *
    * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
    * URIs.
    * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ /* nullable */ - java.lang.String getEndpointsOrDefault( +java.lang.String getEndpointsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
    * URIs.
    * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.lang.String getEndpointsOrThrow(java.lang.String key); + + java.lang.String getEndpointsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. A URI pointing to the location of the stdout and stderr of the workload.
    * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The outputUri. */ java.lang.String getOutputUri(); /** - * - * *
    * Output only. A URI pointing to the location of the stdout and stderr of the workload.
    * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for outputUri. */ - com.google.protobuf.ByteString getOutputUriBytes(); + com.google.protobuf.ByteString + getOutputUriBytes(); /** - * - * *
    * Output only. A URI pointing to the location of the diagnostics tarball.
    * 
* * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The diagnosticOutputUri. */ java.lang.String getDiagnosticOutputUri(); /** - * - * *
    * Output only. A URI pointing to the location of the diagnostics tarball.
    * 
* * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for diagnosticOutputUri. */ - com.google.protobuf.ByteString getDiagnosticOutputUriBytes(); + com.google.protobuf.ByteString + getDiagnosticOutputUriBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java similarity index 61% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java index 63b52a4890aa..032450cf6a02 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java @@ -1,83 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Security related configuration, including encryption, Kerberos, etc.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.SecurityConfig} */ -public final class SecurityConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SecurityConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SecurityConfig) SecurityConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SecurityConfig.newBuilder() to construct. private SecurityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SecurityConfig() {} + private SecurityConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SecurityConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SecurityConfig.class, - com.google.cloud.dataproc.v1.SecurityConfig.Builder.class); + com.google.cloud.dataproc.v1.SecurityConfig.class, com.google.cloud.dataproc.v1.SecurityConfig.Builder.class); } public static final int KERBEROS_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.dataproc.v1.KerberosConfig kerberosConfig_; /** - * - * *
    * Optional. Kerberos related configuration.
    * 
* - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the kerberosConfig field is set. */ @java.lang.Override @@ -85,34 +62,23 @@ public boolean hasKerberosConfig() { return kerberosConfig_ != null; } /** - * - * *
    * Optional. Kerberos related configuration.
    * 
* - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The kerberosConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.KerberosConfig getKerberosConfig() { - return kerberosConfig_ == null - ? com.google.cloud.dataproc.v1.KerberosConfig.getDefaultInstance() - : kerberosConfig_; + return kerberosConfig_ == null ? com.google.cloud.dataproc.v1.KerberosConfig.getDefaultInstance() : kerberosConfig_; } /** - * - * *
    * Optional. Kerberos related configuration.
    * 
* - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.KerberosConfigOrBuilder getKerberosConfigOrBuilder() { @@ -122,17 +88,12 @@ public com.google.cloud.dataproc.v1.KerberosConfigOrBuilder getKerberosConfigOrB public static final int IDENTITY_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.IdentityConfig identityConfig_; /** - * - * *
    * Optional. Identity related configuration, including service account based
    * secure multi-tenancy user mappings.
    * 
* - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the identityConfig field is set. */ @java.lang.Override @@ -140,36 +101,25 @@ public boolean hasIdentityConfig() { return identityConfig_ != null; } /** - * - * *
    * Optional. Identity related configuration, including service account based
    * secure multi-tenancy user mappings.
    * 
* - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The identityConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.IdentityConfig getIdentityConfig() { - return identityConfig_ == null - ? com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance() - : identityConfig_; + return identityConfig_ == null ? com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance() : identityConfig_; } /** - * - * *
    * Optional. Identity related configuration, including service account based
    * secure multi-tenancy user mappings.
    * 
* - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.IdentityConfigOrBuilder getIdentityConfigOrBuilder() { @@ -177,7 +127,6 @@ public com.google.cloud.dataproc.v1.IdentityConfigOrBuilder getIdentityConfigOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,7 +138,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (kerberosConfig_ != null) { output.writeMessage(1, getKerberosConfig()); } @@ -206,10 +156,12 @@ public int getSerializedSize() { size = 0; if (kerberosConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKerberosConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getKerberosConfig()); } if (identityConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIdentityConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getIdentityConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -219,21 +171,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.dataproc.v1.SecurityConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.SecurityConfig other = - (com.google.cloud.dataproc.v1.SecurityConfig) obj; + com.google.cloud.dataproc.v1.SecurityConfig other = (com.google.cloud.dataproc.v1.SecurityConfig) obj; if (hasKerberosConfig() != other.hasKerberosConfig()) return false; if (hasKerberosConfig()) { - if (!getKerberosConfig().equals(other.getKerberosConfig())) return false; + if (!getKerberosConfig() + .equals(other.getKerberosConfig())) return false; } if (hasIdentityConfig() != other.hasIdentityConfig()) return false; if (hasIdentityConfig()) { - if (!getIdentityConfig().equals(other.getIdentityConfig())) return false; + if (!getIdentityConfig() + .equals(other.getIdentityConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -259,136 +212,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.SecurityConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.SecurityConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SecurityConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.SecurityConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Security related configuration, including encryption, Kerberos, etc.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.SecurityConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SecurityConfig) com.google.cloud.dataproc.v1.SecurityConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SecurityConfig.class, - com.google.cloud.dataproc.v1.SecurityConfig.Builder.class); + com.google.cloud.dataproc.v1.SecurityConfig.class, com.google.cloud.dataproc.v1.SecurityConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.SecurityConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +355,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; } @java.lang.Override @@ -429,8 +376,7 @@ public com.google.cloud.dataproc.v1.SecurityConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.SecurityConfig buildPartial() { - com.google.cloud.dataproc.v1.SecurityConfig result = - new com.google.cloud.dataproc.v1.SecurityConfig(this); + com.google.cloud.dataproc.v1.SecurityConfig result = new com.google.cloud.dataproc.v1.SecurityConfig(this); if (kerberosConfigBuilder_ == null) { result.kerberosConfig_ = kerberosConfig_; } else { @@ -449,39 +395,38 @@ public com.google.cloud.dataproc.v1.SecurityConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.SecurityConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.SecurityConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.SecurityConfig)other); } else { super.mergeFrom(other); return this; @@ -522,25 +467,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getKerberosConfigFieldBuilder().getBuilder(), extensionRegistry); + case 10: { + input.readMessage( + getKerberosConfigFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 10 - case 18: - { - input.readMessage(getIdentityConfigFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getIdentityConfigFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -553,58 +499,39 @@ public Builder mergeFrom( private com.google.cloud.dataproc.v1.KerberosConfig kerberosConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KerberosConfig, - com.google.cloud.dataproc.v1.KerberosConfig.Builder, - com.google.cloud.dataproc.v1.KerberosConfigOrBuilder> - kerberosConfigBuilder_; + com.google.cloud.dataproc.v1.KerberosConfig, com.google.cloud.dataproc.v1.KerberosConfig.Builder, com.google.cloud.dataproc.v1.KerberosConfigOrBuilder> kerberosConfigBuilder_; /** - * - * *
      * Optional. Kerberos related configuration.
      * 
* - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the kerberosConfig field is set. */ public boolean hasKerberosConfig() { return kerberosConfigBuilder_ != null || kerberosConfig_ != null; } /** - * - * *
      * Optional. Kerberos related configuration.
      * 
* - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The kerberosConfig. */ public com.google.cloud.dataproc.v1.KerberosConfig getKerberosConfig() { if (kerberosConfigBuilder_ == null) { - return kerberosConfig_ == null - ? com.google.cloud.dataproc.v1.KerberosConfig.getDefaultInstance() - : kerberosConfig_; + return kerberosConfig_ == null ? com.google.cloud.dataproc.v1.KerberosConfig.getDefaultInstance() : kerberosConfig_; } else { return kerberosConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Kerberos related configuration.
      * 
* - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setKerberosConfig(com.google.cloud.dataproc.v1.KerberosConfig value) { if (kerberosConfigBuilder_ == null) { @@ -620,15 +547,11 @@ public Builder setKerberosConfig(com.google.cloud.dataproc.v1.KerberosConfig val return this; } /** - * - * *
      * Optional. Kerberos related configuration.
      * 
* - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setKerberosConfig( com.google.cloud.dataproc.v1.KerberosConfig.Builder builderForValue) { @@ -642,23 +565,17 @@ public Builder setKerberosConfig( return this; } /** - * - * *
      * Optional. Kerberos related configuration.
      * 
* - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeKerberosConfig(com.google.cloud.dataproc.v1.KerberosConfig value) { if (kerberosConfigBuilder_ == null) { if (kerberosConfig_ != null) { kerberosConfig_ = - com.google.cloud.dataproc.v1.KerberosConfig.newBuilder(kerberosConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.KerberosConfig.newBuilder(kerberosConfig_).mergeFrom(value).buildPartial(); } else { kerberosConfig_ = value; } @@ -670,15 +587,11 @@ public Builder mergeKerberosConfig(com.google.cloud.dataproc.v1.KerberosConfig v return this; } /** - * - * *
      * Optional. Kerberos related configuration.
      * 
* - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearKerberosConfig() { if (kerberosConfigBuilder_ == null) { @@ -692,64 +605,48 @@ public Builder clearKerberosConfig() { return this; } /** - * - * *
      * Optional. Kerberos related configuration.
      * 
* - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.KerberosConfig.Builder getKerberosConfigBuilder() { - + onChanged(); return getKerberosConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Kerberos related configuration.
      * 
* - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.KerberosConfigOrBuilder getKerberosConfigOrBuilder() { if (kerberosConfigBuilder_ != null) { return kerberosConfigBuilder_.getMessageOrBuilder(); } else { - return kerberosConfig_ == null - ? com.google.cloud.dataproc.v1.KerberosConfig.getDefaultInstance() - : kerberosConfig_; + return kerberosConfig_ == null ? + com.google.cloud.dataproc.v1.KerberosConfig.getDefaultInstance() : kerberosConfig_; } } /** - * - * *
      * Optional. Kerberos related configuration.
      * 
* - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KerberosConfig, - com.google.cloud.dataproc.v1.KerberosConfig.Builder, - com.google.cloud.dataproc.v1.KerberosConfigOrBuilder> + com.google.cloud.dataproc.v1.KerberosConfig, com.google.cloud.dataproc.v1.KerberosConfig.Builder, com.google.cloud.dataproc.v1.KerberosConfigOrBuilder> getKerberosConfigFieldBuilder() { if (kerberosConfigBuilder_ == null) { - kerberosConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KerberosConfig, - com.google.cloud.dataproc.v1.KerberosConfig.Builder, - com.google.cloud.dataproc.v1.KerberosConfigOrBuilder>( - getKerberosConfig(), getParentForChildren(), isClean()); + kerberosConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.KerberosConfig, com.google.cloud.dataproc.v1.KerberosConfig.Builder, com.google.cloud.dataproc.v1.KerberosConfigOrBuilder>( + getKerberosConfig(), + getParentForChildren(), + isClean()); kerberosConfig_ = null; } return kerberosConfigBuilder_; @@ -757,61 +654,42 @@ public com.google.cloud.dataproc.v1.KerberosConfigOrBuilder getKerberosConfigOrB private com.google.cloud.dataproc.v1.IdentityConfig identityConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.IdentityConfig, - com.google.cloud.dataproc.v1.IdentityConfig.Builder, - com.google.cloud.dataproc.v1.IdentityConfigOrBuilder> - identityConfigBuilder_; + com.google.cloud.dataproc.v1.IdentityConfig, com.google.cloud.dataproc.v1.IdentityConfig.Builder, com.google.cloud.dataproc.v1.IdentityConfigOrBuilder> identityConfigBuilder_; /** - * - * *
      * Optional. Identity related configuration, including service account based
      * secure multi-tenancy user mappings.
      * 
* - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the identityConfig field is set. */ public boolean hasIdentityConfig() { return identityConfigBuilder_ != null || identityConfig_ != null; } /** - * - * *
      * Optional. Identity related configuration, including service account based
      * secure multi-tenancy user mappings.
      * 
* - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The identityConfig. */ public com.google.cloud.dataproc.v1.IdentityConfig getIdentityConfig() { if (identityConfigBuilder_ == null) { - return identityConfig_ == null - ? com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance() - : identityConfig_; + return identityConfig_ == null ? com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance() : identityConfig_; } else { return identityConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Identity related configuration, including service account based
      * secure multi-tenancy user mappings.
      * 
* - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setIdentityConfig(com.google.cloud.dataproc.v1.IdentityConfig value) { if (identityConfigBuilder_ == null) { @@ -827,16 +705,12 @@ public Builder setIdentityConfig(com.google.cloud.dataproc.v1.IdentityConfig val return this; } /** - * - * *
      * Optional. Identity related configuration, including service account based
      * secure multi-tenancy user mappings.
      * 
* - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setIdentityConfig( com.google.cloud.dataproc.v1.IdentityConfig.Builder builderForValue) { @@ -850,24 +724,18 @@ public Builder setIdentityConfig( return this; } /** - * - * *
      * Optional. Identity related configuration, including service account based
      * secure multi-tenancy user mappings.
      * 
* - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeIdentityConfig(com.google.cloud.dataproc.v1.IdentityConfig value) { if (identityConfigBuilder_ == null) { if (identityConfig_ != null) { identityConfig_ = - com.google.cloud.dataproc.v1.IdentityConfig.newBuilder(identityConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.IdentityConfig.newBuilder(identityConfig_).mergeFrom(value).buildPartial(); } else { identityConfig_ = value; } @@ -879,16 +747,12 @@ public Builder mergeIdentityConfig(com.google.cloud.dataproc.v1.IdentityConfig v return this; } /** - * - * *
      * Optional. Identity related configuration, including service account based
      * secure multi-tenancy user mappings.
      * 
* - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearIdentityConfig() { if (identityConfigBuilder_ == null) { @@ -902,74 +766,58 @@ public Builder clearIdentityConfig() { return this; } /** - * - * *
      * Optional. Identity related configuration, including service account based
      * secure multi-tenancy user mappings.
      * 
* - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.IdentityConfig.Builder getIdentityConfigBuilder() { - + onChanged(); return getIdentityConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Identity related configuration, including service account based
      * secure multi-tenancy user mappings.
      * 
* - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.IdentityConfigOrBuilder getIdentityConfigOrBuilder() { if (identityConfigBuilder_ != null) { return identityConfigBuilder_.getMessageOrBuilder(); } else { - return identityConfig_ == null - ? com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance() - : identityConfig_; + return identityConfig_ == null ? + com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance() : identityConfig_; } } /** - * - * *
      * Optional. Identity related configuration, including service account based
      * secure multi-tenancy user mappings.
      * 
* - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.IdentityConfig, - com.google.cloud.dataproc.v1.IdentityConfig.Builder, - com.google.cloud.dataproc.v1.IdentityConfigOrBuilder> + com.google.cloud.dataproc.v1.IdentityConfig, com.google.cloud.dataproc.v1.IdentityConfig.Builder, com.google.cloud.dataproc.v1.IdentityConfigOrBuilder> getIdentityConfigFieldBuilder() { if (identityConfigBuilder_ == null) { - identityConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.IdentityConfig, - com.google.cloud.dataproc.v1.IdentityConfig.Builder, - com.google.cloud.dataproc.v1.IdentityConfigOrBuilder>( - getIdentityConfig(), getParentForChildren(), isClean()); + identityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.IdentityConfig, com.google.cloud.dataproc.v1.IdentityConfig.Builder, com.google.cloud.dataproc.v1.IdentityConfigOrBuilder>( + getIdentityConfig(), + getParentForChildren(), + isClean()); identityConfig_ = null; } return identityConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -979,12 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SecurityConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SecurityConfig) private static final com.google.cloud.dataproc.v1.SecurityConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SecurityConfig(); } @@ -993,27 +841,27 @@ public static com.google.cloud.dataproc.v1.SecurityConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1028,4 +876,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SecurityConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java similarity index 50% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java index 15cabbf99fe9..2b56c9ca829d 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java @@ -1,110 +1,66 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface SecurityConfigOrBuilder - extends +public interface SecurityConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SecurityConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Kerberos related configuration.
    * 
* - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the kerberosConfig field is set. */ boolean hasKerberosConfig(); /** - * - * *
    * Optional. Kerberos related configuration.
    * 
* - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The kerberosConfig. */ com.google.cloud.dataproc.v1.KerberosConfig getKerberosConfig(); /** - * - * *
    * Optional. Kerberos related configuration.
    * 
* - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.KerberosConfigOrBuilder getKerberosConfigOrBuilder(); /** - * - * *
    * Optional. Identity related configuration, including service account based
    * secure multi-tenancy user mappings.
    * 
* - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the identityConfig field is set. */ boolean hasIdentityConfig(); /** - * - * *
    * Optional. Identity related configuration, including service account based
    * secure multi-tenancy user mappings.
    * 
* - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The identityConfig. */ com.google.cloud.dataproc.v1.IdentityConfig getIdentityConfig(); /** - * - * *
    * Optional. Identity related configuration, including service account based
    * secure multi-tenancy user mappings.
    * 
* - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.IdentityConfigOrBuilder getIdentityConfigOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java new file mode 100644 index 000000000000..8728f3b2a2fa --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java @@ -0,0 +1,316 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +public final class SharedProto { + private SharedProto() {} + 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_dataproc_v1_RuntimeConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_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/dataproc/v1/shared.proto\022" + + "\030google.cloud.dataproc.v1\032\037google/api/fi" + + "eld_behavior.proto\"\310\001\n\rRuntimeConfig\022\024\n\007" + + "version\030\001 \001(\tB\003\340A\001\022\034\n\017container_image\030\002 " + + "\001(\tB\003\340A\001\022P\n\nproperties\030\003 \003(\01327.google.cl" + + "oud.dataproc.v1.RuntimeConfig.Properties" + + "EntryB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\253\001\n\021EnvironmentCon" + + "fig\022H\n\020execution_config\030\001 \001(\0132).google.c" + + "loud.dataproc.v1.ExecutionConfigB\003\340A\001\022L\n" + + "\022peripherals_config\030\002 \001(\0132+.google.cloud" + + ".dataproc.v1.PeripheralsConfigB\003\340A\001\"\246\001\n\017" + + "ExecutionConfig\022\034\n\017service_account\030\002 \001(\t" + + "B\003\340A\001\022\032\n\013network_uri\030\004 \001(\tB\003\340A\001H\000\022\035\n\016sub" + + "network_uri\030\005 \001(\tB\003\340A\001H\000\022\031\n\014network_tags" + + "\030\006 \003(\tB\003\340A\001\022\024\n\007kms_key\030\007 \001(\tB\003\340A\001B\t\n\007net" + + "work\"9\n\030SparkHistoryServerConfig\022\035\n\020data" + + "proc_cluster\030\001 \001(\tB\003\340A\001\"\221\001\n\021PeripheralsC" + + "onfig\022\036\n\021metastore_service\030\001 \001(\tB\003\340A\001\022\\\n" + + "\033spark_history_server_config\030\002 \001(\01322.goo" + + "gle.cloud.dataproc.v1.SparkHistoryServer" + + "ConfigB\003\340A\001\"\312\001\n\013RuntimeInfo\022L\n\tendpoints" + + "\030\001 \003(\01324.google.cloud.dataproc.v1.Runtim" + + "eInfo.EndpointsEntryB\003\340A\003\022\027\n\noutput_uri\030" + + "\002 \001(\tB\003\340A\003\022\"\n\025diagnostic_output_uri\030\003 \001(" + + "\tB\003\340A\003\0320\n\016EndpointsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\177\n\020GkeClusterConfig\022\037\n\022" + + "gke_cluster_target\030\002 \001(\tB\003\340A\001\022J\n\020node_po" + + "ol_target\030\003 \003(\0132+.google.cloud.dataproc." + + "v1.GkeNodePoolTargetB\003\340A\001\"\362\001\n\027Kubernetes" + + "ClusterConfig\022!\n\024kubernetes_namespace\030\001 " + + "\001(\tB\003\340A\001\022M\n\022gke_cluster_config\030\002 \001(\0132*.g" + + "oogle.cloud.dataproc.v1.GkeClusterConfig" + + "B\003\340A\002H\000\022[\n\032kubernetes_software_config\030\003 " + + "\001(\01322.google.cloud.dataproc.v1.Kubernete" + + "sSoftwareConfigB\003\340A\001B\010\n\006config\"\303\002\n\030Kuber" + + "netesSoftwareConfig\022c\n\021component_version" + + "\030\001 \003(\0132H.google.cloud.dataproc.v1.Kubern" + + "etesSoftwareConfig.ComponentVersionEntry" + + "\022V\n\nproperties\030\002 \003(\0132B.google.cloud.data" + + "proc.v1.KubernetesSoftwareConfig.Propert" + + "iesEntry\0327\n\025ComponentVersionEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017PropertiesE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\236\002\n" + + "\021GkeNodePoolTarget\022\026\n\tnode_pool\030\001 \001(\tB\003\340" + + "A\002\022D\n\005roles\030\002 \003(\01620.google.cloud.datapro" + + "c.v1.GkeNodePoolTarget.RoleB\003\340A\002\022J\n\020node" + + "_pool_config\030\003 \001(\0132+.google.cloud.datapr" + + "oc.v1.GkeNodePoolConfigB\003\340A\001\"_\n\004Role\022\024\n\020" + + "ROLE_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\016\n\nCONTR" + + "OLLER\020\002\022\020\n\014SPARK_DRIVER\020\003\022\022\n\016SPARK_EXECU" + + "TOR\020\004\"\355\004\n\021GkeNodePoolConfig\022N\n\006config\030\002 " + + "\001(\01329.google.cloud.dataproc.v1.GkeNodePo" + + "olConfig.GkeNodeConfigB\003\340A\001\022\026\n\tlocations" + + "\030\r \003(\tB\003\340A\001\022b\n\013autoscaling\030\004 \001(\0132H.googl" + + "e.cloud.dataproc.v1.GkeNodePoolConfig.Gk" + + "eNodePoolAutoscalingConfigB\003\340A\001\032\346\001\n\rGkeN" + + "odeConfig\022\031\n\014machine_type\030\001 \001(\tB\003\340A\001\022\030\n\013" + + "preemptible\030\n \001(\010B\003\340A\001\022\034\n\017local_ssd_coun" + + "t\030\007 \001(\005B\003\340A\001\022c\n\014accelerators\030\013 \003(\0132H.goo" + + "gle.cloud.dataproc.v1.GkeNodePoolConfig." + + "GkeNodePoolAcceleratorConfigB\003\340A\001\022\035\n\020min" + + "_cpu_platform\030\r \001(\tB\003\340A\001\032S\n\034GkeNodePoolA" + + "cceleratorConfig\022\031\n\021accelerator_count\030\001 " + + "\001(\003\022\030\n\020accelerator_type\030\002 \001(\t\032N\n\034GkeNode" + + "PoolAutoscalingConfig\022\026\n\016min_node_count\030" + + "\002 \001(\005\022\026\n\016max_node_count\030\003 \001(\005*\277\001\n\tCompon" + + "ent\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\014\n\010ANACON" + + "DA\020\005\022\n\n\006DOCKER\020\r\022\t\n\005DRUID\020\t\022\t\n\005FLINK\020\016\022\t" + + "\n\005HBASE\020\013\022\020\n\014HIVE_WEBHCAT\020\003\022\013\n\007JUPYTER\020\001" + + "\022\n\n\006PRESTO\020\006\022\n\n\006RANGER\020\014\022\010\n\004SOLR\020\n\022\014\n\010ZE" + + "PPELIN\020\004\022\r\n\tZOOKEEPER\020\010*J\n\rFailureAction" + + "\022\036\n\032FAILURE_ACTION_UNSPECIFIED\020\000\022\r\n\tNO_A" + + "CTION\020\001\022\n\n\006DELETE\020\002Bo\n\034com.google.cloud." + + "dataproc.v1B\013SharedProtoP\001Z@google.golan" + + "g.org/genproto/googleapis/cloud/dataproc" + + "/v1;dataprocb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor, + new java.lang.String[] { "Version", "ContainerImage", "Properties", }); + internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor, + new java.lang.String[] { "ExecutionConfig", "PeripheralsConfig", }); + internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor, + new java.lang.String[] { "ServiceAccount", "NetworkUri", "SubnetworkUri", "NetworkTags", "KmsKey", "Network", }); + internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor, + new java.lang.String[] { "DataprocCluster", }); + internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor, + new java.lang.String[] { "MetastoreService", "SparkHistoryServerConfig", }); + internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor, + new java.lang.String[] { "Endpoints", "OutputUri", "DiagnosticOutputUri", }); + internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor, + new java.lang.String[] { "GkeClusterTarget", "NodePoolTarget", }); + internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor, + new java.lang.String[] { "KubernetesNamespace", "GkeClusterConfig", "KubernetesSoftwareConfig", "Config", }); + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor, + new java.lang.String[] { "ComponentVersion", "Properties", }); + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor = + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor, + new java.lang.String[] { "NodePool", "Roles", "NodePoolConfig", }); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor, + new java.lang.String[] { "Config", "Locations", "Autoscaling", }); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor = + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor, + new java.lang.String[] { "MachineType", "Preemptible", "LocalSsdCount", "Accelerators", "MinCpuPlatform", }); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor = + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor, + new java.lang.String[] { "AcceleratorCount", "AcceleratorType", }); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor = + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor, + new java.lang.String[] { "MinNodeCount", "MaxNodeCount", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java similarity index 68% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java index dc124d9710ff..10379c9be0eb 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Shielded Instance Config for clusters using [Compute Engine Shielded
  * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
@@ -28,55 +11,51 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.ShieldedInstanceConfig}
  */
-public final class ShieldedInstanceConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ShieldedInstanceConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ShieldedInstanceConfig)
     ShieldedInstanceConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ShieldedInstanceConfig.newBuilder() to construct.
   private ShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ShieldedInstanceConfig() {}
+  private ShieldedInstanceConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ShieldedInstanceConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto
-        .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.ClustersProto
-        .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.ShieldedInstanceConfig.class,
-            com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder.class);
+            com.google.cloud.dataproc.v1.ShieldedInstanceConfig.class, com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder.class);
   }
 
   public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1;
   private boolean enableSecureBoot_;
   /**
-   *
-   *
    * 
    * Optional. Defines whether instances have Secure Boot enabled.
    * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableSecureBoot. */ @java.lang.Override @@ -87,14 +66,11 @@ public boolean getEnableSecureBoot() { public static final int ENABLE_VTPM_FIELD_NUMBER = 2; private boolean enableVtpm_; /** - * - * *
    * Optional. Defines whether instances have the vTPM enabled.
    * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableVtpm. */ @java.lang.Override @@ -105,14 +81,11 @@ public boolean getEnableVtpm() { public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 3; private boolean enableIntegrityMonitoring_; /** - * - * *
    * Optional. Defines whether instances have integrity monitoring enabled.
    * 
* * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -121,7 +94,6 @@ public boolean getEnableIntegrityMonitoring() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,7 +105,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enableSecureBoot_ != false) { output.writeBool(1, enableSecureBoot_); } @@ -153,13 +126,16 @@ public int getSerializedSize() { size = 0; if (enableSecureBoot_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSecureBoot_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableSecureBoot_); } if (enableVtpm_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableVtpm_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enableVtpm_); } if (enableIntegrityMonitoring_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableIntegrityMonitoring_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, enableIntegrityMonitoring_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -169,17 +145,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.dataproc.v1.ShieldedInstanceConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ShieldedInstanceConfig other = - (com.google.cloud.dataproc.v1.ShieldedInstanceConfig) obj; + com.google.cloud.dataproc.v1.ShieldedInstanceConfig other = (com.google.cloud.dataproc.v1.ShieldedInstanceConfig) obj; - if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; - if (getEnableVtpm() != other.getEnableVtpm()) return false; - if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; + if (getEnableSecureBoot() + != other.getEnableSecureBoot()) return false; + if (getEnableVtpm() + != other.getEnableVtpm()) return false; + if (getEnableIntegrityMonitoring() + != other.getEnableIntegrityMonitoring()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -192,114 +170,110 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_SECURE_BOOT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSecureBoot()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSecureBoot()); hash = (37 * hash) + ENABLE_VTPM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableVtpm()); hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableIntegrityMonitoring()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig 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.dataproc.v1.ShieldedInstanceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ShieldedInstanceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Shielded Instance Config for clusters using [Compute Engine Shielded
    * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
@@ -307,32 +281,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.ShieldedInstanceConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ShieldedInstanceConfig)
       com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.ShieldedInstanceConfig.class,
-              com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder.class);
+              com.google.cloud.dataproc.v1.ShieldedInstanceConfig.class, com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.ShieldedInstanceConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -346,9 +321,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto
-          .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor;
     }
 
     @java.lang.Override
@@ -367,8 +342,7 @@ public com.google.cloud.dataproc.v1.ShieldedInstanceConfig build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.ShieldedInstanceConfig buildPartial() {
-      com.google.cloud.dataproc.v1.ShieldedInstanceConfig result =
-          new com.google.cloud.dataproc.v1.ShieldedInstanceConfig(this);
+      com.google.cloud.dataproc.v1.ShieldedInstanceConfig result = new com.google.cloud.dataproc.v1.ShieldedInstanceConfig(this);
       result.enableSecureBoot_ = enableSecureBoot_;
       result.enableVtpm_ = enableVtpm_;
       result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_;
@@ -380,39 +354,38 @@ public com.google.cloud.dataproc.v1.ShieldedInstanceConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.ShieldedInstanceConfig) {
-        return mergeFrom((com.google.cloud.dataproc.v1.ShieldedInstanceConfig) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.ShieldedInstanceConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -420,8 +393,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.ShieldedInstanceConfig other) {
-      if (other == com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance()) return this;
       if (other.getEnableSecureBoot() != false) {
         setEnableSecureBoot(other.getEnableSecureBoot());
       }
@@ -457,31 +429,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                enableSecureBoot_ = input.readBool();
-
-                break;
-              } // case 8
-            case 16:
-              {
-                enableVtpm_ = input.readBool();
-
-                break;
-              } // case 16
-            case 24:
-              {
-                enableIntegrityMonitoring_ = input.readBool();
-
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              enableSecureBoot_ = input.readBool();
+
+              break;
+            } // case 8
+            case 16: {
+              enableVtpm_ = input.readBool();
+
+              break;
+            } // case 16
+            case 24: {
+              enableIntegrityMonitoring_ = input.readBool();
+
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -492,16 +460,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private boolean enableSecureBoot_;
+    private boolean enableSecureBoot_ ;
     /**
-     *
-     *
      * 
      * Optional. Defines whether instances have Secure Boot enabled.
      * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableSecureBoot. */ @java.lang.Override @@ -509,51 +474,42 @@ public boolean getEnableSecureBoot() { return enableSecureBoot_; } /** - * - * *
      * Optional. Defines whether instances have Secure Boot enabled.
      * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enableSecureBoot to set. * @return This builder for chaining. */ public Builder setEnableSecureBoot(boolean value) { - + enableSecureBoot_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Defines whether instances have Secure Boot enabled.
      * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnableSecureBoot() { - + enableSecureBoot_ = false; onChanged(); return this; } - private boolean enableVtpm_; + private boolean enableVtpm_ ; /** - * - * *
      * Optional. Defines whether instances have the vTPM enabled.
      * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableVtpm. */ @java.lang.Override @@ -561,51 +517,42 @@ public boolean getEnableVtpm() { return enableVtpm_; } /** - * - * *
      * Optional. Defines whether instances have the vTPM enabled.
      * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enableVtpm to set. * @return This builder for chaining. */ public Builder setEnableVtpm(boolean value) { - + enableVtpm_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Defines whether instances have the vTPM enabled.
      * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnableVtpm() { - + enableVtpm_ = false; onChanged(); return this; } - private boolean enableIntegrityMonitoring_; + private boolean enableIntegrityMonitoring_ ; /** - * - * *
      * Optional. Defines whether instances have integrity monitoring enabled.
      * 
* * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -613,43 +560,37 @@ public boolean getEnableIntegrityMonitoring() { return enableIntegrityMonitoring_; } /** - * - * *
      * Optional. Defines whether instances have integrity monitoring enabled.
      * 
* * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enableIntegrityMonitoring to set. * @return This builder for chaining. */ public Builder setEnableIntegrityMonitoring(boolean value) { - + enableIntegrityMonitoring_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Defines whether instances have integrity monitoring enabled.
      * 
* * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnableIntegrityMonitoring() { - + enableIntegrityMonitoring_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -659,12 +600,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ShieldedInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ShieldedInstanceConfig) private static final com.google.cloud.dataproc.v1.ShieldedInstanceConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ShieldedInstanceConfig(); } @@ -673,27 +614,27 @@ public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShieldedInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShieldedInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -708,4 +649,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ShieldedInstanceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java similarity index 61% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java index 26e0a1389fc8..478e24f93498 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface ShieldedInstanceConfigOrBuilder - extends +public interface ShieldedInstanceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ShieldedInstanceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Defines whether instances have Secure Boot enabled.
    * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableSecureBoot. */ boolean getEnableSecureBoot(); /** - * - * *
    * Optional. Defines whether instances have the vTPM enabled.
    * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableVtpm. */ boolean getEnableVtpm(); /** - * - * *
    * Optional. Defines whether instances have integrity monitoring enabled.
    * 
* * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableIntegrityMonitoring. */ boolean getEnableIntegrityMonitoring(); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java index 6441c29ca995..5f71f1dc11f3 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Specifies the selection and config of software inside the cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.SoftwareConfig} */ -public final class SoftwareConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SoftwareConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SoftwareConfig) SoftwareConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SoftwareConfig.newBuilder() to construct. private SoftwareConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SoftwareConfig() { imageVersion_ = ""; optionalComponents_ = java.util.Collections.emptyList(); @@ -44,46 +26,44 @@ private SoftwareConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SoftwareConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetProperties(); 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.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SoftwareConfig.class, - com.google.cloud.dataproc.v1.SoftwareConfig.Builder.class); + com.google.cloud.dataproc.v1.SoftwareConfig.class, com.google.cloud.dataproc.v1.SoftwareConfig.Builder.class); } public static final int IMAGE_VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object imageVersion_; /** - * - * *
    * Optional. The version of software inside the cluster. It must be one of the
    * supported [Dataproc
@@ -95,7 +75,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The imageVersion. */ @java.lang.Override @@ -104,15 +83,14 @@ public java.lang.String getImageVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageVersion_ = s; return s; } } /** - * - * *
    * Optional. The version of software inside the cluster. It must be one of the
    * supported [Dataproc
@@ -124,15 +102,16 @@ public java.lang.String getImageVersion() {
    * 
* * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for imageVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getImageVersionBytes() { + public com.google.protobuf.ByteString + getImageVersionBytes() { java.lang.Object ref = imageVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); imageVersion_ = b; return b; } else { @@ -141,23 +120,24 @@ public com.google.protobuf.ByteString getImageVersionBytes() { } public static final int PROPERTIES_FIELD_NUMBER = 2; - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_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.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField + internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -166,8 +146,6 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
    * Optional. The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -186,25 +164,24 @@ public int getPropertiesCount() {
    * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
    * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
    * Optional. The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -223,16 +200,14 @@ public java.util.Map getProperties() {
    * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
    * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
    * Optional. The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -251,21 +226,19 @@ public java.util.Map getPropertiesMap() {
    * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
    * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -284,15 +257,15 @@ public java.lang.String getPropertiesOrDefault(
    * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
    * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -302,47 +275,34 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { public static final int OPTIONAL_COMPONENTS_FIELD_NUMBER = 3; private java.util.List optionalComponents_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.dataproc.v1.Component> - optionalComponents_converter_ = + java.lang.Integer, com.google.cloud.dataproc.v1.Component> optionalComponents_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.dataproc.v1.Component>() { public com.google.cloud.dataproc.v1.Component convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.Component result = - com.google.cloud.dataproc.v1.Component.valueOf(from); + com.google.cloud.dataproc.v1.Component result = com.google.cloud.dataproc.v1.Component.valueOf(from); return result == null ? com.google.cloud.dataproc.v1.Component.UNRECOGNIZED : result; } }; /** - * - * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the optionalComponents. */ @java.lang.Override public java.util.List getOptionalComponentsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.dataproc.v1.Component>( - optionalComponents_, optionalComponents_converter_); + java.lang.Integer, com.google.cloud.dataproc.v1.Component>(optionalComponents_, optionalComponents_converter_); } /** - * - * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of optionalComponents. */ @java.lang.Override @@ -350,16 +310,11 @@ public int getOptionalComponentsCount() { return optionalComponents_.size(); } /** - * - * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The optionalComponents at the given index. */ @@ -368,33 +323,24 @@ public com.google.cloud.dataproc.v1.Component getOptionalComponents(int index) { return optionalComponents_converter_.convert(optionalComponents_.get(index)); } /** - * - * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for optionalComponents. */ @java.lang.Override - public java.util.List getOptionalComponentsValueList() { + public java.util.List + getOptionalComponentsValueList() { return optionalComponents_; } /** - * - * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of optionalComponents at the given index. */ @@ -402,11 +348,9 @@ public java.util.List getOptionalComponentsValueList() { public int getOptionalComponentsValue(int index) { return optionalComponents_.get(index); } - private int optionalComponentsMemoizedSerializedSize; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -418,13 +362,18 @@ public final boolean isInitialized() { } @java.lang.Override - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imageVersion_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 2); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetProperties(), + PropertiesDefaultEntryHolder.defaultEntry, + 2); if (getOptionalComponentsList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(optionalComponentsMemoizedSerializedSize); @@ -444,28 +393,27 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, imageVersion_); } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, properties__); + for (java.util.Map.Entry entry + : internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, properties__); } { int dataSize = 0; for (int i = 0; i < optionalComponents_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(optionalComponents_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(optionalComponents_.get(i)); } size += dataSize; - if (!getOptionalComponentsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - optionalComponentsMemoizedSerializedSize = dataSize; + if (!getOptionalComponentsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }optionalComponentsMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -475,16 +423,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.dataproc.v1.SoftwareConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.SoftwareConfig other = - (com.google.cloud.dataproc.v1.SoftwareConfig) obj; + com.google.cloud.dataproc.v1.SoftwareConfig other = (com.google.cloud.dataproc.v1.SoftwareConfig) obj; - if (!getImageVersion().equals(other.getImageVersion())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; + if (!getImageVersion() + .equals(other.getImageVersion())) return false; + if (!internalGetProperties().equals( + other.internalGetProperties())) return false; if (!optionalComponents_.equals(other.optionalComponents_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -512,156 +461,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.SoftwareConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.SoftwareConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SoftwareConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.SoftwareConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specifies the selection and config of software inside the cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.SoftwareConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SoftwareConfig) com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetProperties(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: return internalGetMutableProperties(); 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.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SoftwareConfig.class, - com.google.cloud.dataproc.v1.SoftwareConfig.Builder.class); + com.google.cloud.dataproc.v1.SoftwareConfig.class, com.google.cloud.dataproc.v1.SoftwareConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.SoftwareConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -674,9 +619,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; } @java.lang.Override @@ -695,8 +640,7 @@ public com.google.cloud.dataproc.v1.SoftwareConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.SoftwareConfig buildPartial() { - com.google.cloud.dataproc.v1.SoftwareConfig result = - new com.google.cloud.dataproc.v1.SoftwareConfig(this); + com.google.cloud.dataproc.v1.SoftwareConfig result = new com.google.cloud.dataproc.v1.SoftwareConfig(this); int from_bitField0_ = bitField0_; result.imageVersion_ = imageVersion_; result.properties_ = internalGetProperties(); @@ -714,39 +658,38 @@ public com.google.cloud.dataproc.v1.SoftwareConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.SoftwareConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.SoftwareConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.SoftwareConfig)other); } else { super.mergeFrom(other); return this; @@ -759,7 +702,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SoftwareConfig other) { imageVersion_ = other.imageVersion_; onChanged(); } - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); + internalGetMutableProperties().mergeFrom( + other.internalGetProperties()); if (!other.optionalComponents_.isEmpty()) { if (optionalComponents_.isEmpty()) { optionalComponents_ = other.optionalComponents_; @@ -796,49 +740,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - imageVersion_ = input.readStringRequireUtf8(); + case 10: { + imageVersion_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableProperties() - .getMutableMap() - .put(properties__.getKey(), properties__.getValue()); - break; - } // case 18 - case 24: - { + break; + } // case 10 + case 18: { + com.google.protobuf.MapEntry + properties__ = input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableProperties().getMutableMap().put( + properties__.getKey(), properties__.getValue()); + break; + } // case 18 + case 24: { + int tmpRaw = input.readEnum(); + ensureOptionalComponentsIsMutable(); + optionalComponents_.add(tmpRaw); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureOptionalComponentsIsMutable(); optionalComponents_.add(tmpRaw); - break; - } // case 24 - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureOptionalComponentsIsMutable(); - optionalComponents_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -848,13 +785,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object imageVersion_ = ""; /** - * - * *
      * Optional. The version of software inside the cluster. It must be one of the
      * supported [Dataproc
@@ -866,13 +800,13 @@ public Builder mergeFrom(
      * 
* * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The imageVersion. */ public java.lang.String getImageVersion() { java.lang.Object ref = imageVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageVersion_ = s; return s; @@ -881,8 +815,6 @@ public java.lang.String getImageVersion() { } } /** - * - * *
      * Optional. The version of software inside the cluster. It must be one of the
      * supported [Dataproc
@@ -894,14 +826,15 @@ public java.lang.String getImageVersion() {
      * 
* * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for imageVersion. */ - public com.google.protobuf.ByteString getImageVersionBytes() { + public com.google.protobuf.ByteString + getImageVersionBytes() { java.lang.Object ref = imageVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); imageVersion_ = b; return b; } else { @@ -909,8 +842,6 @@ public com.google.protobuf.ByteString getImageVersionBytes() { } } /** - * - * *
      * Optional. The version of software inside the cluster. It must be one of the
      * supported [Dataproc
@@ -922,22 +853,20 @@ public com.google.protobuf.ByteString getImageVersionBytes() {
      * 
* * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The imageVersion to set. * @return This builder for chaining. */ - public Builder setImageVersion(java.lang.String value) { + public Builder setImageVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imageVersion_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The version of software inside the cluster. It must be one of the
      * supported [Dataproc
@@ -949,18 +878,15 @@ public Builder setImageVersion(java.lang.String value) {
      * 
* * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearImageVersion() { - + imageVersion_ = getDefaultInstance().getImageVersion(); onChanged(); return this; } /** - * - * *
      * Optional. The version of software inside the cluster. It must be one of the
      * supported [Dataproc
@@ -972,39 +898,37 @@ public Builder clearImageVersion() {
      * 
* * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for imageVersion to set. * @return This builder for chaining. */ - public Builder setImageVersionBytes(com.google.protobuf.ByteString value) { + public Builder setImageVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageVersion_ = value; onChanged(); return this; } - private com.google.protobuf.MapField properties_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; + internalGetMutableProperties() { + onChanged();; if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); + properties_ = com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -1016,8 +940,6 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
      * Optional. The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1036,25 +958,24 @@ public int getPropertiesCount() {
      * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
      * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
      * Optional. The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1073,16 +994,14 @@ public java.util.Map getProperties() {
      * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
      * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
      * Optional. The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1101,21 +1020,19 @@ public java.util.Map getPropertiesMap() {
      * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
      * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1134,15 +1051,15 @@ public java.lang.String getPropertiesOrDefault(
      * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
      * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1150,12 +1067,11 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); + internalGetMutableProperties().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1174,24 +1090,25 @@ public Builder clearProperties() {
      * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
      * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); + + public Builder removeProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableProperties().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableProperties() { + public java.util.Map + getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** - * - * *
      * Optional. The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1210,23 +1127,21 @@ public java.util.Map getMutableProperties()
      * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
      * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putProperties( + 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"); +} - internalGetMutableProperties().getMutableMap().put(key, value); + internalGetMutableProperties().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1245,17 +1160,18 @@ public Builder putProperties(java.lang.String key, java.lang.String value) {
      * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
      * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); + + public Builder putAllProperties( + java.util.Map values) { + internalGetMutableProperties().getMutableMap() + .putAll(values); return this; } private java.util.List optionalComponents_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureOptionalComponentsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { optionalComponents_ = new java.util.ArrayList(optionalComponents_); @@ -1263,50 +1179,34 @@ private void ensureOptionalComponentsIsMutable() { } } /** - * - * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the optionalComponents. */ public java.util.List getOptionalComponentsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.dataproc.v1.Component>( - optionalComponents_, optionalComponents_converter_); + java.lang.Integer, com.google.cloud.dataproc.v1.Component>(optionalComponents_, optionalComponents_converter_); } /** - * - * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of optionalComponents. */ public int getOptionalComponentsCount() { return optionalComponents_.size(); } /** - * - * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The optionalComponents at the given index. */ @@ -1314,21 +1214,17 @@ public com.google.cloud.dataproc.v1.Component getOptionalComponents(int index) { return optionalComponents_converter_.convert(optionalComponents_.get(index)); } /** - * - * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The optionalComponents to set. * @return This builder for chaining. */ - public Builder setOptionalComponents(int index, com.google.cloud.dataproc.v1.Component value) { + public Builder setOptionalComponents( + int index, com.google.cloud.dataproc.v1.Component value) { if (value == null) { throw new NullPointerException(); } @@ -1338,16 +1234,11 @@ public Builder setOptionalComponents(int index, com.google.cloud.dataproc.v1.Com return this; } /** - * - * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The optionalComponents to add. * @return This builder for chaining. */ @@ -1361,16 +1252,11 @@ public Builder addOptionalComponents(com.google.cloud.dataproc.v1.Component valu return this; } /** - * - * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param values The optionalComponents to add. * @return This builder for chaining. */ @@ -1384,16 +1270,11 @@ public Builder addAllOptionalComponents( return this; } /** - * - * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearOptionalComponents() { @@ -1403,32 +1284,23 @@ public Builder clearOptionalComponents() { return this; } /** - * - * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for optionalComponents. */ - public java.util.List getOptionalComponentsValueList() { + public java.util.List + getOptionalComponentsValueList() { return java.util.Collections.unmodifiableList(optionalComponents_); } /** - * - * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of optionalComponents at the given index. */ @@ -1436,37 +1308,28 @@ public int getOptionalComponentsValue(int index) { return optionalComponents_.get(index); } /** - * - * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The enum numeric value on the wire for optionalComponents to set. * @return This builder for chaining. */ - public Builder setOptionalComponentsValue(int index, int value) { + public Builder setOptionalComponentsValue( + int index, int value) { ensureOptionalComponentsIsMutable(); optionalComponents_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for optionalComponents to add. * @return This builder for chaining. */ @@ -1477,20 +1340,16 @@ public Builder addOptionalComponentsValue(int value) { return this; } /** - * - * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param values The enum numeric values on the wire for optionalComponents to add. * @return This builder for chaining. */ - public Builder addAllOptionalComponentsValue(java.lang.Iterable values) { + public Builder addAllOptionalComponentsValue( + java.lang.Iterable values) { ensureOptionalComponentsIsMutable(); for (int value : values) { optionalComponents_.add(value); @@ -1498,9 +1357,9 @@ public Builder addAllOptionalComponentsValue(java.lang.Iterable PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SoftwareConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SoftwareConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1559,4 +1418,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SoftwareConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java similarity index 75% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java index f9f2c6d63004..feab656b0724 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface SoftwareConfigOrBuilder - extends +public interface SoftwareConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SoftwareConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The version of software inside the cluster. It must be one of the
    * supported [Dataproc
@@ -37,13 +19,10 @@ public interface SoftwareConfigOrBuilder
    * 
* * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The imageVersion. */ java.lang.String getImageVersion(); /** - * - * *
    * Optional. The version of software inside the cluster. It must be one of the
    * supported [Dataproc
@@ -55,14 +34,12 @@ public interface SoftwareConfigOrBuilder
    * 
* * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for imageVersion. */ - com.google.protobuf.ByteString getImageVersionBytes(); + com.google.protobuf.ByteString + getImageVersionBytes(); /** - * - * *
    * Optional. The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -81,13 +58,10 @@ public interface SoftwareConfigOrBuilder
    * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
    * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; */ int getPropertiesCount(); /** - * - * *
    * Optional. The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -106,16 +80,17 @@ public interface SoftwareConfigOrBuilder
    * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
    * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsProperties( + java.lang.String key); + /** + * Use {@link #getPropertiesMap()} instead. */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map getProperties(); + java.util.Map + getProperties(); /** - * - * *
    * Optional. The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -134,13 +109,11 @@ public interface SoftwareConfigOrBuilder
    * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
    * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getPropertiesMap(); + java.util.Map + getPropertiesMap(); /** - * - * *
    * Optional. The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -159,18 +132,15 @@ public interface SoftwareConfigOrBuilder
    * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
    * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getPropertiesOrDefault( +java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -189,79 +159,56 @@ java.lang.String getPropertiesOrDefault(
    * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
    * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getPropertiesOrThrow(java.lang.String key); + + java.lang.String getPropertiesOrThrow( + java.lang.String key); /** - * - * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the optionalComponents. */ java.util.List getOptionalComponentsList(); /** - * - * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of optionalComponents. */ int getOptionalComponentsCount(); /** - * - * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The optionalComponents at the given index. */ com.google.cloud.dataproc.v1.Component getOptionalComponents(int index); /** - * - * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for optionalComponents. */ - java.util.List getOptionalComponentsValueList(); + java.util.List + getOptionalComponentsValueList(); /** - * - * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of optionalComponents at the given index. */ diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java similarity index 76% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java index 0b801bc0cd95..4d4a629e663e 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.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/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A configuration for running an [Apache Spark](http://spark.apache.org/)
  * batch workload.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.SparkBatch}
  */
-public final class SparkBatch extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SparkBatch extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkBatch)
     SparkBatchOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SparkBatch.newBuilder() to construct.
   private SparkBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SparkBatch() {
     args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -47,42 +29,38 @@ private SparkBatch() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SparkBatch();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.BatchesProto
-        .internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.BatchesProto
-        .internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.SparkBatch.class,
-            com.google.cloud.dataproc.v1.SparkBatch.Builder.class);
+            com.google.cloud.dataproc.v1.SparkBatch.class, com.google.cloud.dataproc.v1.SparkBatch.Builder.class);
   }
 
   private int driverCase_ = 0;
   private java.lang.Object driver_;
-
   public enum DriverCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     MAIN_JAR_FILE_URI(1),
     MAIN_CLASS(2),
     DRIVER_NOT_SET(0);
     private final int value;
-
     private DriverCase(int value) {
       this.value = value;
     }
@@ -98,50 +76,41 @@ public static DriverCase valueOf(int value) {
 
     public static DriverCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return MAIN_JAR_FILE_URI;
-        case 2:
-          return MAIN_CLASS;
-        case 0:
-          return DRIVER_NOT_SET;
-        default:
-          return null;
+        case 1: return MAIN_JAR_FILE_URI;
+        case 2: return MAIN_CLASS;
+        case 0: return DRIVER_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DriverCase getDriverCase() {
-    return DriverCase.forNumber(driverCase_);
+  public DriverCase
+  getDriverCase() {
+    return DriverCase.forNumber(
+        driverCase_);
   }
 
   public static final int MAIN_JAR_FILE_URI_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * Optional. The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the mainJarFileUri field is set. */ public boolean hasMainJarFileUri() { return driverCase_ == 1; } /** - * - * *
    * Optional. The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mainJarFileUri. */ public java.lang.String getMainJarFileUri() { @@ -152,7 +121,8 @@ public java.lang.String getMainJarFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (driverCase_ == 1) { driver_ = s; @@ -161,24 +131,23 @@ public java.lang.String getMainJarFileUri() { } } /** - * - * *
    * Optional. The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mainJarFileUri. */ - public com.google.protobuf.ByteString getMainJarFileUriBytes() { + public com.google.protobuf.ByteString + getMainJarFileUriBytes() { java.lang.Object ref = ""; if (driverCase_ == 1) { ref = driver_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (driverCase_ == 1) { driver_ = b; } @@ -190,30 +159,24 @@ public com.google.protobuf.ByteString getMainJarFileUriBytes() { public static final int MAIN_CLASS_FIELD_NUMBER = 2; /** - * - * *
    * Optional. The name of the driver main class. The jar file that contains the class
    * must be in the classpath or specified in `jar_file_uris`.
    * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the mainClass field is set. */ public boolean hasMainClass() { return driverCase_ == 2; } /** - * - * *
    * Optional. The name of the driver main class. The jar file that contains the class
    * must be in the classpath or specified in `jar_file_uris`.
    * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mainClass. */ public java.lang.String getMainClass() { @@ -224,7 +187,8 @@ public java.lang.String getMainClass() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (driverCase_ == 2) { driver_ = s; @@ -233,25 +197,24 @@ public java.lang.String getMainClass() { } } /** - * - * *
    * Optional. The name of the driver main class. The jar file that contains the class
    * must be in the classpath or specified in `jar_file_uris`.
    * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mainClass. */ - public com.google.protobuf.ByteString getMainClassBytes() { + public com.google.protobuf.ByteString + getMainClassBytes() { java.lang.Object ref = ""; if (driverCase_ == 2) { ref = driver_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (driverCase_ == 2) { driver_ = b; } @@ -264,8 +227,6 @@ public com.google.protobuf.ByteString getMainClassBytes() { public static final int ARGS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList args_; /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -273,15 +234,13 @@ public com.google.protobuf.ByteString getMainClassBytes() {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_; } /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -289,15 +248,12 @@ public com.google.protobuf.ProtocolStringList getArgsList() {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -305,7 +261,6 @@ public int getArgsCount() {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -313,8 +268,6 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -322,56 +275,48 @@ public java.lang.String getArgs(int index) {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList jarFileUris_; /** - * - * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList + getJarFileUrisList() { return jarFileUris_; } /** - * - * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -379,64 +324,54 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } public static final int FILE_URIS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList fileUris_; /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { + public com.google.protobuf.ProtocolStringList + getFileUrisList() { return fileUris_; } /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -444,27 +379,23 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getFileUrisBytes(int index) { return fileUris_.getByteString(index); } public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList archiveUris_; /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -472,15 +403,13 @@ public com.google.protobuf.ByteString getFileUrisBytes(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList + getArchiveUrisList() { return archiveUris_; } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -488,15 +417,12 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -504,7 +430,6 @@ public int getArchiveUrisCount() {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -512,8 +437,6 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -521,16 +444,15 @@ public java.lang.String getArchiveUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString + getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -542,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 { if (driverCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); } @@ -616,24 +539,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.SparkBatch)) { return super.equals(obj); } com.google.cloud.dataproc.v1.SparkBatch other = (com.google.cloud.dataproc.v1.SparkBatch) obj; - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (!getFileUrisList().equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (!getJarFileUrisList() + .equals(other.getJarFileUrisList())) return false; + if (!getFileUrisList() + .equals(other.getFileUrisList())) return false; + if (!getArchiveUrisList() + .equals(other.getArchiveUrisList())) return false; if (!getDriverCase().equals(other.getDriverCase())) return false; switch (driverCase_) { case 1: - if (!getMainJarFileUri().equals(other.getMainJarFileUri())) return false; + if (!getMainJarFileUri() + .equals(other.getMainJarFileUri())) return false; break; case 2: - if (!getMainClass().equals(other.getMainClass())) return false; + if (!getMainClass() + .equals(other.getMainClass())) return false; break; case 0: default: @@ -682,104 +611,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.SparkBatch parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkBatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkBatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.SparkBatch parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.SparkBatch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkBatch parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.SparkBatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 configuration for running an [Apache Spark](http://spark.apache.org/)
    * batch workload.
@@ -787,32 +709,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.SparkBatch}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkBatch)
       com.google.cloud.dataproc.v1.SparkBatchOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.BatchesProto
-          .internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.BatchesProto
-          .internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.SparkBatch.class,
-              com.google.cloud.dataproc.v1.SparkBatch.Builder.class);
+              com.google.cloud.dataproc.v1.SparkBatch.class, com.google.cloud.dataproc.v1.SparkBatch.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.SparkBatch.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -830,9 +753,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.BatchesProto
-          .internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor;
     }
 
     @java.lang.Override
@@ -851,8 +774,7 @@ public com.google.cloud.dataproc.v1.SparkBatch build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.SparkBatch buildPartial() {
-      com.google.cloud.dataproc.v1.SparkBatch result =
-          new com.google.cloud.dataproc.v1.SparkBatch(this);
+      com.google.cloud.dataproc.v1.SparkBatch result = new com.google.cloud.dataproc.v1.SparkBatch(this);
       int from_bitField0_ = bitField0_;
       if (driverCase_ == 1) {
         result.driver_ = driver_;
@@ -889,39 +811,38 @@ public com.google.cloud.dataproc.v1.SparkBatch buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.SparkBatch) {
-        return mergeFrom((com.google.cloud.dataproc.v1.SparkBatch) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.SparkBatch)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -971,24 +892,21 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkBatch other) {
         onChanged();
       }
       switch (other.getDriverCase()) {
-        case MAIN_JAR_FILE_URI:
-          {
-            driverCase_ = 1;
-            driver_ = other.driver_;
-            onChanged();
-            break;
-          }
-        case MAIN_CLASS:
-          {
-            driverCase_ = 2;
-            driver_ = other.driver_;
-            onChanged();
-            break;
-          }
-        case DRIVER_NOT_SET:
-          {
-            break;
-          }
+        case MAIN_JAR_FILE_URI: {
+          driverCase_ = 1;
+          driver_ = other.driver_;
+          onChanged();
+          break;
+        }
+        case MAIN_CLASS: {
+          driverCase_ = 2;
+          driver_ = other.driver_;
+          onChanged();
+          break;
+        }
+        case DRIVER_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1016,55 +934,48 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                driverCase_ = 1;
-                driver_ = s;
-                break;
-              } // case 10
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                driverCase_ = 2;
-                driver_ = s;
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureArgsIsMutable();
-                args_.add(s);
-                break;
-              } // case 26
-            case 34:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureJarFileUrisIsMutable();
-                jarFileUris_.add(s);
-                break;
-              } // case 34
-            case 42:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureFileUrisIsMutable();
-                fileUris_.add(s);
-                break;
-              } // case 42
-            case 50:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureArchiveUrisIsMutable();
-                archiveUris_.add(s);
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              driverCase_ = 1;
+              driver_ = s;
+              break;
+            } // case 10
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              driverCase_ = 2;
+              driver_ = s;
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureArgsIsMutable();
+              args_.add(s);
+              break;
+            } // case 26
+            case 34: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureJarFileUrisIsMutable();
+              jarFileUris_.add(s);
+              break;
+            } // case 34
+            case 42: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureFileUrisIsMutable();
+              fileUris_.add(s);
+              break;
+            } // case 42
+            case 50: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureArchiveUrisIsMutable();
+              archiveUris_.add(s);
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1074,12 +985,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int driverCase_ = 0;
     private java.lang.Object driver_;
-
-    public DriverCase getDriverCase() {
-      return DriverCase.forNumber(driverCase_);
+    public DriverCase
+        getDriverCase() {
+      return DriverCase.forNumber(
+          driverCase_);
     }
 
     public Builder clearDriver() {
@@ -1092,14 +1003,11 @@ public Builder clearDriver() {
     private int bitField0_;
 
     /**
-     *
-     *
      * 
      * Optional. The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the mainJarFileUri field is set. */ @java.lang.Override @@ -1107,14 +1015,11 @@ public boolean hasMainJarFileUri() { return driverCase_ == 1; } /** - * - * *
      * Optional. The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mainJarFileUri. */ @java.lang.Override @@ -1124,7 +1029,8 @@ public java.lang.String getMainJarFileUri() { ref = driver_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (driverCase_ == 1) { driver_ = s; @@ -1135,25 +1041,24 @@ public java.lang.String getMainJarFileUri() { } } /** - * - * *
      * Optional. The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mainJarFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString getMainJarFileUriBytes() { + public com.google.protobuf.ByteString + getMainJarFileUriBytes() { java.lang.Object ref = ""; if (driverCase_ == 1) { ref = driver_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (driverCase_ == 1) { driver_ = b; } @@ -1163,35 +1068,30 @@ public com.google.protobuf.ByteString getMainJarFileUriBytes() { } } /** - * - * *
      * Optional. The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mainJarFileUri to set. * @return This builder for chaining. */ - public Builder setMainJarFileUri(java.lang.String value) { + public Builder setMainJarFileUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 1; + throw new NullPointerException(); + } + driverCase_ = 1; driver_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMainJarFileUri() { @@ -1203,22 +1103,20 @@ public Builder clearMainJarFileUri() { return this; } /** - * - * *
      * Optional. The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mainJarFileUri to set. * @return This builder for chaining. */ - public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { + public Builder setMainJarFileUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); driverCase_ = 1; driver_ = value; onChanged(); @@ -1226,15 +1124,12 @@ public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * Optional. The name of the driver main class. The jar file that contains the class
      * must be in the classpath or specified in `jar_file_uris`.
      * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the mainClass field is set. */ @java.lang.Override @@ -1242,15 +1137,12 @@ public boolean hasMainClass() { return driverCase_ == 2; } /** - * - * *
      * Optional. The name of the driver main class. The jar file that contains the class
      * must be in the classpath or specified in `jar_file_uris`.
      * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mainClass. */ @java.lang.Override @@ -1260,7 +1152,8 @@ public java.lang.String getMainClass() { ref = driver_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (driverCase_ == 2) { driver_ = s; @@ -1271,26 +1164,25 @@ public java.lang.String getMainClass() { } } /** - * - * *
      * Optional. The name of the driver main class. The jar file that contains the class
      * must be in the classpath or specified in `jar_file_uris`.
      * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mainClass. */ @java.lang.Override - public com.google.protobuf.ByteString getMainClassBytes() { + public com.google.protobuf.ByteString + getMainClassBytes() { java.lang.Object ref = ""; if (driverCase_ == 2) { ref = driver_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (driverCase_ == 2) { driver_ = b; } @@ -1300,37 +1192,32 @@ public com.google.protobuf.ByteString getMainClassBytes() { } } /** - * - * *
      * Optional. The name of the driver main class. The jar file that contains the class
      * must be in the classpath or specified in `jar_file_uris`.
      * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mainClass to set. * @return This builder for chaining. */ - public Builder setMainClass(java.lang.String value) { + public Builder setMainClass( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 2; + throw new NullPointerException(); + } + driverCase_ = 2; driver_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The name of the driver main class. The jar file that contains the class
      * must be in the classpath or specified in `jar_file_uris`.
      * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMainClass() { @@ -1342,41 +1229,35 @@ public Builder clearMainClass() { return this; } /** - * - * *
      * Optional. The name of the driver main class. The jar file that contains the class
      * must be in the classpath or specified in `jar_file_uris`.
      * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mainClass to set. * @return This builder for chaining. */ - public Builder setMainClassBytes(com.google.protobuf.ByteString value) { + public Builder setMainClassBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); driverCase_ = 2; driver_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1384,15 +1265,13 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_.getUnmodifiableView(); } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1400,15 +1279,12 @@ public com.google.protobuf.ProtocolStringList getArgsList() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1416,7 +1292,6 @@ public int getArgsCount() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1424,8 +1299,6 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1433,16 +1306,14 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1450,23 +1321,21 @@ public com.google.protobuf.ByteString getArgsBytes(int index) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs(int index, java.lang.String value) { + public Builder setArgs( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1474,22 +1343,20 @@ public Builder setArgs(int index, java.lang.String value) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs(java.lang.String value) { + public Builder addArgs( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1497,19 +1364,18 @@ public Builder addArgs(java.lang.String value) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs(java.lang.Iterable values) { + public Builder addAllArgs( + java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1517,7 +1383,6 @@ public Builder addAllArgs(java.lang.Iterable values) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearArgs() { @@ -1527,8 +1392,6 @@ public Builder clearArgs() { return this; } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1536,70 +1399,60 @@ public Builder clearArgs() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureJarFileUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList + getJarFileUrisList() { return jarFileUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -1607,95 +1460,85 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The jarFileUris to set. * @return This builder for chaining. */ - public Builder setJarFileUris(int index, java.lang.String value) { + public Builder setJarFileUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUris(java.lang.String value) { + public Builder addJarFileUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The jarFileUris to add. * @return This builder for chaining. */ - public Builder addAllJarFileUris(java.lang.Iterable values) { + public Builder addAllJarFileUris( + java.lang.Iterable values) { ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, jarFileUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearJarFileUris() { @@ -1705,78 +1548,66 @@ public Builder clearJarFileUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { + public Builder addJarFileUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList fileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFileUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { + public com.google.protobuf.ProtocolStringList + getFileUrisList() { return fileUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -1784,95 +1615,85 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getFileUrisBytes(int index) { return fileUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The fileUris to set. * @return This builder for chaining. */ - public Builder setFileUris(int index, java.lang.String value) { + public Builder setFileUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The fileUris to add. * @return This builder for chaining. */ - public Builder addFileUris(java.lang.String value) { + public Builder addFileUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The fileUris to add. * @return This builder for chaining. */ - public Builder addAllFileUris(java.lang.Iterable values) { + public Builder addAllFileUris( + java.lang.Iterable values) { ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fileUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFileUris() { @@ -1882,41 +1703,35 @@ public Builder clearFileUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the fileUris to add. * @return This builder for chaining. */ - public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { + public Builder addFileUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList archiveUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArchiveUrisIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); bitField0_ |= 0x00000008; - } + } } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1924,15 +1739,13 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList + getArchiveUrisList() { return archiveUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1940,15 +1753,12 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1956,7 +1766,6 @@ public int getArchiveUrisCount() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -1964,8 +1773,6 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1973,16 +1780,14 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString + getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1990,23 +1795,21 @@ public com.google.protobuf.ByteString getArchiveUrisBytes(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The archiveUris to set. * @return This builder for chaining. */ - public Builder setArchiveUris(int index, java.lang.String value) { + public Builder setArchiveUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2014,22 +1817,20 @@ public Builder setArchiveUris(int index, java.lang.String value) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUris(java.lang.String value) { + public Builder addArchiveUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2037,19 +1838,18 @@ public Builder addArchiveUris(java.lang.String value) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The archiveUris to add. * @return This builder for chaining. */ - public Builder addAllArchiveUris(java.lang.Iterable values) { + public Builder addAllArchiveUris( + java.lang.Iterable values) { ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, archiveUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2057,7 +1857,6 @@ public Builder addAllArchiveUris(java.lang.Iterable values) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearArchiveUris() { @@ -2067,8 +1866,6 @@ public Builder clearArchiveUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2076,23 +1873,23 @@ public Builder clearArchiveUris() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { + public Builder addArchiveUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArchiveUrisIsMutable(); archiveUris_.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); } @@ -2102,12 +1899,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SparkBatch) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkBatch) private static final com.google.cloud.dataproc.v1.SparkBatch DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkBatch(); } @@ -2116,27 +1913,27 @@ public static com.google.cloud.dataproc.v1.SparkBatch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2151,4 +1948,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SparkBatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java similarity index 83% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java index 8ce57703ec4d..b36a727fc34a 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java @@ -1,108 +1,74 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; -public interface SparkBatchOrBuilder - extends +public interface SparkBatchOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkBatch) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the mainJarFileUri field is set. */ boolean hasMainJarFileUri(); /** - * - * *
    * Optional. The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mainJarFileUri. */ java.lang.String getMainJarFileUri(); /** - * - * *
    * Optional. The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mainJarFileUri. */ - com.google.protobuf.ByteString getMainJarFileUriBytes(); + com.google.protobuf.ByteString + getMainJarFileUriBytes(); /** - * - * *
    * Optional. The name of the driver main class. The jar file that contains the class
    * must be in the classpath or specified in `jar_file_uris`.
    * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the mainClass field is set. */ boolean hasMainClass(); /** - * - * *
    * Optional. The name of the driver main class. The jar file that contains the class
    * must be in the classpath or specified in `jar_file_uris`.
    * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mainClass. */ java.lang.String getMainClass(); /** - * - * *
    * Optional. The name of the driver main class. The jar file that contains the class
    * must be in the classpath or specified in `jar_file_uris`.
    * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mainClass. */ - com.google.protobuf.ByteString getMainClassBytes(); + com.google.protobuf.ByteString + getMainClassBytes(); /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -110,13 +76,11 @@ public interface SparkBatchOrBuilder
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - java.util.List getArgsList(); + java.util.List + getArgsList(); /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -124,13 +88,10 @@ public interface SparkBatchOrBuilder
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ int getArgsCount(); /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -138,14 +99,11 @@ public interface SparkBatchOrBuilder
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -153,125 +111,103 @@ public interface SparkBatchOrBuilder
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString getArgsBytes(int index); + com.google.protobuf.ByteString + getArgsBytes(int index); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - java.util.List getJarFileUrisList(); + java.util.List + getJarFileUrisList(); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ int getJarFileUrisCount(); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ java.lang.String getJarFileUris(int index); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); + com.google.protobuf.ByteString + getJarFileUrisBytes(int index); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - java.util.List getFileUrisList(); + java.util.List + getFileUrisList(); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ int getFileUrisCount(); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ java.lang.String getFileUris(int index); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - com.google.protobuf.ByteString getFileUrisBytes(int index); + com.google.protobuf.ByteString + getFileUrisBytes(int index); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -279,13 +215,11 @@ public interface SparkBatchOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - java.util.List getArchiveUrisList(); + java.util.List + getArchiveUrisList(); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -293,13 +227,10 @@ public interface SparkBatchOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ int getArchiveUrisCount(); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -307,14 +238,11 @@ public interface SparkBatchOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ java.lang.String getArchiveUris(int index); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -322,11 +250,11 @@ public interface SparkBatchOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - com.google.protobuf.ByteString getArchiveUrisBytes(int index); + com.google.protobuf.ByteString + getArchiveUrisBytes(int index); public com.google.cloud.dataproc.v1.SparkBatch.DriverCase getDriverCase(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java similarity index 67% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java index 4b0482e82c98..694864de255b 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java @@ -1,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Spark History Server configuration for the workload.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.SparkHistoryServerConfig} */ -public final class SparkHistoryServerConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SparkHistoryServerConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkHistoryServerConfig) SparkHistoryServerConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SparkHistoryServerConfig.newBuilder() to construct. private SparkHistoryServerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SparkHistoryServerConfig() { dataprocCluster_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SparkHistoryServerConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.class, - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder.class); + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.class, com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder.class); } public static final int DATAPROC_CLUSTER_FIELD_NUMBER = 1; private volatile java.lang.Object dataprocCluster_; /** - * - * *
    * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
    * Server for the workload.
@@ -80,7 +59,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The dataprocCluster. */ @java.lang.Override @@ -89,15 +67,14 @@ public java.lang.String getDataprocCluster() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataprocCluster_ = s; return s; } } /** - * - * *
    * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
    * Server for the workload.
@@ -106,15 +83,16 @@ public java.lang.String getDataprocCluster() {
    * 
* * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for dataprocCluster. */ @java.lang.Override - public com.google.protobuf.ByteString getDataprocClusterBytes() { + public com.google.protobuf.ByteString + getDataprocClusterBytes() { java.lang.Object ref = dataprocCluster_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataprocCluster_ = b; return b; } else { @@ -123,7 +101,6 @@ public com.google.protobuf.ByteString getDataprocClusterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +112,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(dataprocCluster_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataprocCluster_); } @@ -159,15 +137,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.dataproc.v1.SparkHistoryServerConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.SparkHistoryServerConfig other = - (com.google.cloud.dataproc.v1.SparkHistoryServerConfig) obj; + com.google.cloud.dataproc.v1.SparkHistoryServerConfig other = (com.google.cloud.dataproc.v1.SparkHistoryServerConfig) obj; - if (!getDataprocCluster().equals(other.getDataprocCluster())) return false; + if (!getDataprocCluster() + .equals(other.getDataprocCluster())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +165,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig 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.dataproc.v1.SparkHistoryServerConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.SparkHistoryServerConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Spark History Server configuration for the workload.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.SparkHistoryServerConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkHistoryServerConfig) com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.class, - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder.class); + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.class, com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.SparkHistoryServerConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +297,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; } @java.lang.Override @@ -347,8 +318,7 @@ public com.google.cloud.dataproc.v1.SparkHistoryServerConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.SparkHistoryServerConfig buildPartial() { - com.google.cloud.dataproc.v1.SparkHistoryServerConfig result = - new com.google.cloud.dataproc.v1.SparkHistoryServerConfig(this); + com.google.cloud.dataproc.v1.SparkHistoryServerConfig result = new com.google.cloud.dataproc.v1.SparkHistoryServerConfig(this); result.dataprocCluster_ = dataprocCluster_; onBuilt(); return result; @@ -358,39 +328,38 @@ public com.google.cloud.dataproc.v1.SparkHistoryServerConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.SparkHistoryServerConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.SparkHistoryServerConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.SparkHistoryServerConfig)other); } else { super.mergeFrom(other); return this; @@ -398,8 +367,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkHistoryServerConfig other) { - if (other == com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance()) return this; if (!other.getDataprocCluster().isEmpty()) { dataprocCluster_ = other.dataprocCluster_; onChanged(); @@ -430,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - dataprocCluster_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + dataprocCluster_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,8 +421,6 @@ public Builder mergeFrom( private java.lang.Object dataprocCluster_ = ""; /** - * - * *
      * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
      * Server for the workload.
@@ -465,13 +429,13 @@ public Builder mergeFrom(
      * 
* * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The dataprocCluster. */ public java.lang.String getDataprocCluster() { java.lang.Object ref = dataprocCluster_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataprocCluster_ = s; return s; @@ -480,8 +444,6 @@ public java.lang.String getDataprocCluster() { } } /** - * - * *
      * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
      * Server for the workload.
@@ -490,14 +452,15 @@ public java.lang.String getDataprocCluster() {
      * 
* * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for dataprocCluster. */ - public com.google.protobuf.ByteString getDataprocClusterBytes() { + public com.google.protobuf.ByteString + getDataprocClusterBytes() { java.lang.Object ref = dataprocCluster_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataprocCluster_ = b; return b; } else { @@ -505,8 +468,6 @@ public com.google.protobuf.ByteString getDataprocClusterBytes() { } } /** - * - * *
      * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
      * Server for the workload.
@@ -515,22 +476,20 @@ public com.google.protobuf.ByteString getDataprocClusterBytes() {
      * 
* * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The dataprocCluster to set. * @return This builder for chaining. */ - public Builder setDataprocCluster(java.lang.String value) { + public Builder setDataprocCluster( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataprocCluster_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
      * Server for the workload.
@@ -539,18 +498,15 @@ public Builder setDataprocCluster(java.lang.String value) {
      * 
* * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDataprocCluster() { - + dataprocCluster_ = getDefaultInstance().getDataprocCluster(); onChanged(); return this; } /** - * - * *
      * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
      * Server for the workload.
@@ -559,23 +515,23 @@ public Builder clearDataprocCluster() {
      * 
* * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for dataprocCluster to set. * @return This builder for chaining. */ - public Builder setDataprocClusterBytes(com.google.protobuf.ByteString value) { + public Builder setDataprocClusterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataprocCluster_ = 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); } @@ -585,12 +541,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SparkHistoryServerConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkHistoryServerConfig) private static final com.google.cloud.dataproc.v1.SparkHistoryServerConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkHistoryServerConfig(); } @@ -599,27 +555,27 @@ public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkHistoryServerConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkHistoryServerConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java similarity index 59% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java index 80e164010494..96b452f7ff3d 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.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/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; -public interface SparkHistoryServerConfigOrBuilder - extends +public interface SparkHistoryServerConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkHistoryServerConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
    * Server for the workload.
@@ -34,13 +16,10 @@ public interface SparkHistoryServerConfigOrBuilder
    * 
* * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The dataprocCluster. */ java.lang.String getDataprocCluster(); /** - * - * *
    * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
    * Server for the workload.
@@ -49,8 +28,8 @@ public interface SparkHistoryServerConfigOrBuilder
    * 
* * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for dataprocCluster. */ - com.google.protobuf.ByteString getDataprocClusterBytes(); + com.google.protobuf.ByteString + getDataprocClusterBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java similarity index 72% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java index 1fda8ba56714..571f308695b3 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java @@ -1,43 +1,25 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
- * A Dataproc job for running [Apache Spark](http://spark.apache.org/)
+ * A Dataproc job for running [Apache Spark](https://spark.apache.org/)
  * applications on YARN.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.SparkJob} */ -public final class SparkJob extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SparkJob extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkJob) SparkJobOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SparkJob.newBuilder() to construct. private SparkJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SparkJob() { args_ = com.google.protobuf.LazyStringArrayList.EMPTY; jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -47,53 +29,50 @@ private SparkJob() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SparkJob(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkJob_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 7: return internalGetProperties(); 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.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkJob.class, - com.google.cloud.dataproc.v1.SparkJob.Builder.class); + com.google.cloud.dataproc.v1.SparkJob.class, com.google.cloud.dataproc.v1.SparkJob.Builder.class); } private int driverCase_ = 0; private java.lang.Object driver_; - public enum DriverCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MAIN_JAR_FILE_URI(1), MAIN_CLASS(2), DRIVER_NOT_SET(0); private final int value; - private DriverCase(int value) { this.value = value; } @@ -109,50 +88,41 @@ public static DriverCase valueOf(int value) { public static DriverCase forNumber(int value) { switch (value) { - case 1: - return MAIN_JAR_FILE_URI; - case 2: - return MAIN_CLASS; - case 0: - return DRIVER_NOT_SET; - default: - return null; + case 1: return MAIN_JAR_FILE_URI; + case 2: return MAIN_CLASS; + case 0: return DRIVER_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DriverCase getDriverCase() { - return DriverCase.forNumber(driverCase_); + public DriverCase + getDriverCase() { + return DriverCase.forNumber( + driverCase_); } public static final int MAIN_JAR_FILE_URI_FIELD_NUMBER = 1; /** - * - * *
    * The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1; - * * @return Whether the mainJarFileUri field is set. */ public boolean hasMainJarFileUri() { return driverCase_ == 1; } /** - * - * *
    * The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1; - * * @return The mainJarFileUri. */ public java.lang.String getMainJarFileUri() { @@ -163,7 +133,8 @@ public java.lang.String getMainJarFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (driverCase_ == 1) { driver_ = s; @@ -172,24 +143,23 @@ public java.lang.String getMainJarFileUri() { } } /** - * - * *
    * The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1; - * * @return The bytes for mainJarFileUri. */ - public com.google.protobuf.ByteString getMainJarFileUriBytes() { + public com.google.protobuf.ByteString + getMainJarFileUriBytes() { java.lang.Object ref = ""; if (driverCase_ == 1) { ref = driver_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (driverCase_ == 1) { driver_ = b; } @@ -201,30 +171,24 @@ public com.google.protobuf.ByteString getMainJarFileUriBytes() { public static final int MAIN_CLASS_FIELD_NUMBER = 2; /** - * - * *
    * The name of the driver's main class. The jar file that contains the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; - * * @return Whether the mainClass field is set. */ public boolean hasMainClass() { return driverCase_ == 2; } /** - * - * *
    * The name of the driver's main class. The jar file that contains the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; - * * @return The mainClass. */ public java.lang.String getMainClass() { @@ -235,7 +199,8 @@ public java.lang.String getMainClass() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (driverCase_ == 2) { driver_ = s; @@ -244,25 +209,24 @@ public java.lang.String getMainClass() { } } /** - * - * *
    * The name of the driver's main class. The jar file that contains the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; - * * @return The bytes for mainClass. */ - public com.google.protobuf.ByteString getMainClassBytes() { + public com.google.protobuf.ByteString + getMainClassBytes() { java.lang.Object ref = ""; if (driverCase_ == 2) { ref = driver_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (driverCase_ == 2) { driver_ = b; } @@ -275,8 +239,6 @@ public com.google.protobuf.ByteString getMainClassBytes() { public static final int ARGS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList args_; /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -284,15 +246,13 @@ public com.google.protobuf.ByteString getMainClassBytes() {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_; } /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -300,15 +260,12 @@ public com.google.protobuf.ProtocolStringList getArgsList() {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -316,7 +273,6 @@ public int getArgsCount() {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -324,8 +280,6 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -333,56 +287,48 @@ public java.lang.String getArgs(int index) {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList jarFileUris_; /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList + getJarFileUrisList() { return jarFileUris_; } /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -390,64 +336,54 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } public static final int FILE_URIS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList fileUris_; /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { + public com.google.protobuf.ProtocolStringList + getFileUrisList() { return fileUris_; } /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -455,27 +391,23 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getFileUrisBytes(int index) { return fileUris_.getByteString(index); } public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList archiveUris_; /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -483,15 +415,13 @@ public com.google.protobuf.ByteString getFileUrisBytes(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList + getArchiveUrisList() { return archiveUris_; } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -499,15 +429,12 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -515,7 +442,6 @@ public int getArchiveUrisCount() {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -523,8 +449,6 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -532,32 +456,33 @@ public java.lang.String getArchiveUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString + getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } public static final int PROPERTIES_FIELD_NUMBER = 7; - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField + internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -566,8 +491,6 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
    * Optional. A mapping of property names to values, used to configure Spark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -575,25 +498,24 @@ public int getPropertiesCount() {
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
    * Optional. A mapping of property names to values, used to configure Spark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -601,16 +523,14 @@ public java.util.Map getProperties() {
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
    * Optional. A mapping of property names to values, used to configure Spark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -618,21 +538,19 @@ public java.util.Map getPropertiesMap() {
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. A mapping of property names to values, used to configure Spark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -640,15 +558,15 @@ public java.lang.String getPropertiesOrDefault(
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -658,16 +576,11 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { public static final int LOGGING_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ @java.lang.Override @@ -675,34 +588,23 @@ public boolean hasLoggingConfig() { return loggingConfig_ != null; } /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { @@ -710,7 +612,6 @@ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBui } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -722,7 +623,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 (driverCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); } @@ -741,8 +643,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < archiveUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetProperties(), + PropertiesDefaultEntryHolder.defaultEntry, + 7); if (loggingConfig_ != null) { output.writeMessage(8, getLoggingConfig()); } @@ -793,18 +699,19 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArchiveUrisList().size(); } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, properties__); + for (java.util.Map.Entry entry + : internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, properties__); } if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLoggingConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getLoggingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -814,29 +721,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.SparkJob)) { return super.equals(obj); } com.google.cloud.dataproc.v1.SparkJob other = (com.google.cloud.dataproc.v1.SparkJob) obj; - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (!getFileUrisList().equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (!getJarFileUrisList() + .equals(other.getJarFileUrisList())) return false; + if (!getFileUrisList() + .equals(other.getFileUrisList())) return false; + if (!getArchiveUrisList() + .equals(other.getArchiveUrisList())) return false; + if (!internalGetProperties().equals( + other.internalGetProperties())) return false; if (hasLoggingConfig() != other.hasLoggingConfig()) return false; if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; + if (!getLoggingConfig() + .equals(other.getLoggingConfig())) return false; } if (!getDriverCase().equals(other.getDriverCase())) return false; switch (driverCase_) { case 1: - if (!getMainJarFileUri().equals(other.getMainJarFileUri())) return false; + if (!getMainJarFileUri() + .equals(other.getMainJarFileUri())) return false; break; case 2: - if (!getMainClass().equals(other.getMainClass())) return false; + if (!getMainClass() + .equals(other.getMainClass())) return false; break; case 0: default: @@ -893,156 +808,153 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.SparkJob parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.SparkJob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.SparkJob parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.dataproc.v1.SparkJob parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkJob parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkJob 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.dataproc.v1.SparkJob parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.SparkJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc job for running [Apache Spark](http://spark.apache.org/)
+   * A Dataproc job for running [Apache Spark](https://spark.apache.org/)
    * applications on YARN.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.SparkJob} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkJob) com.google.cloud.dataproc.v1.SparkJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkJob_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 7: return internalGetProperties(); 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 7: return internalGetMutableProperties(); 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.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkJob.class, - com.google.cloud.dataproc.v1.SparkJob.Builder.class); + com.google.cloud.dataproc.v1.SparkJob.class, com.google.cloud.dataproc.v1.SparkJob.Builder.class); } // Construct using com.google.cloud.dataproc.v1.SparkJob.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1067,9 +979,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkJob_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkJob_descriptor; } @java.lang.Override @@ -1088,8 +1000,7 @@ public com.google.cloud.dataproc.v1.SparkJob build() { @java.lang.Override public com.google.cloud.dataproc.v1.SparkJob buildPartial() { - com.google.cloud.dataproc.v1.SparkJob result = - new com.google.cloud.dataproc.v1.SparkJob(this); + com.google.cloud.dataproc.v1.SparkJob result = new com.google.cloud.dataproc.v1.SparkJob(this); int from_bitField0_ = bitField0_; if (driverCase_ == 1) { result.driver_ = driver_; @@ -1133,39 +1044,38 @@ public com.google.cloud.dataproc.v1.SparkJob buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.SparkJob) { - return mergeFrom((com.google.cloud.dataproc.v1.SparkJob) other); + return mergeFrom((com.google.cloud.dataproc.v1.SparkJob)other); } else { super.mergeFrom(other); return this; @@ -1214,29 +1124,27 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkJob other) { } onChanged(); } - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); + internalGetMutableProperties().mergeFrom( + other.internalGetProperties()); if (other.hasLoggingConfig()) { mergeLoggingConfig(other.getLoggingConfig()); } switch (other.getDriverCase()) { - case MAIN_JAR_FILE_URI: - { - driverCase_ = 1; - driver_ = other.driver_; - onChanged(); - break; - } - case MAIN_CLASS: - { - driverCase_ = 2; - driver_ = other.driver_; - onChanged(); - break; - } - case DRIVER_NOT_SET: - { - break; - } + case MAIN_JAR_FILE_URI: { + driverCase_ = 1; + driver_ = other.driver_; + onChanged(); + break; + } + case MAIN_CLASS: { + driverCase_ = 2; + driver_ = other.driver_; + onChanged(); + break; + } + case DRIVER_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1264,72 +1172,63 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - driverCase_ = 1; - driver_ = s; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - driverCase_ = 2; - driver_ = s; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArgsIsMutable(); - args_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(s); - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureFileUrisIsMutable(); - fileUris_.add(s); - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArchiveUrisIsMutable(); - archiveUris_.add(s); - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableProperties() - .getMutableMap() - .put(properties__.getKey(), properties__.getValue()); - break; - } // case 58 - case 66: - { - input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + driverCase_ = 1; + driver_ = s; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + driverCase_ = 2; + driver_ = s; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgsIsMutable(); + args_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureJarFileUrisIsMutable(); + jarFileUris_.add(s); + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureFileUrisIsMutable(); + fileUris_.add(s); + break; + } // case 42 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + ensureArchiveUrisIsMutable(); + archiveUris_.add(s); + break; + } // case 50 + case 58: { + com.google.protobuf.MapEntry + properties__ = input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableProperties().getMutableMap().put( + properties__.getKey(), properties__.getValue()); + break; + } // case 58 + case 66: { + input.readMessage( + getLoggingConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1339,12 +1238,12 @@ public Builder mergeFrom( } // finally return this; } - private int driverCase_ = 0; private java.lang.Object driver_; - - public DriverCase getDriverCase() { - return DriverCase.forNumber(driverCase_); + public DriverCase + getDriverCase() { + return DriverCase.forNumber( + driverCase_); } public Builder clearDriver() { @@ -1357,14 +1256,11 @@ public Builder clearDriver() { private int bitField0_; /** - * - * *
      * The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1; - * * @return Whether the mainJarFileUri field is set. */ @java.lang.Override @@ -1372,14 +1268,11 @@ public boolean hasMainJarFileUri() { return driverCase_ == 1; } /** - * - * *
      * The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1; - * * @return The mainJarFileUri. */ @java.lang.Override @@ -1389,7 +1282,8 @@ public java.lang.String getMainJarFileUri() { ref = driver_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (driverCase_ == 1) { driver_ = s; @@ -1400,25 +1294,24 @@ public java.lang.String getMainJarFileUri() { } } /** - * - * *
      * The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1; - * * @return The bytes for mainJarFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString getMainJarFileUriBytes() { + public com.google.protobuf.ByteString + getMainJarFileUriBytes() { java.lang.Object ref = ""; if (driverCase_ == 1) { ref = driver_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (driverCase_ == 1) { driver_ = b; } @@ -1428,35 +1321,30 @@ public com.google.protobuf.ByteString getMainJarFileUriBytes() { } } /** - * - * *
      * The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1; - * * @param value The mainJarFileUri to set. * @return This builder for chaining. */ - public Builder setMainJarFileUri(java.lang.String value) { + public Builder setMainJarFileUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 1; + throw new NullPointerException(); + } + driverCase_ = 1; driver_ = value; onChanged(); return this; } /** - * - * *
      * The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1; - * * @return This builder for chaining. */ public Builder clearMainJarFileUri() { @@ -1468,22 +1356,20 @@ public Builder clearMainJarFileUri() { return this; } /** - * - * *
      * The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1; - * * @param value The bytes for mainJarFileUri to set. * @return This builder for chaining. */ - public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { + public Builder setMainJarFileUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); driverCase_ = 1; driver_ = value; onChanged(); @@ -1491,15 +1377,12 @@ public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * The name of the driver's main class. The jar file that contains the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; - * * @return Whether the mainClass field is set. */ @java.lang.Override @@ -1507,15 +1390,12 @@ public boolean hasMainClass() { return driverCase_ == 2; } /** - * - * *
      * The name of the driver's main class. The jar file that contains the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; - * * @return The mainClass. */ @java.lang.Override @@ -1525,7 +1405,8 @@ public java.lang.String getMainClass() { ref = driver_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (driverCase_ == 2) { driver_ = s; @@ -1536,26 +1417,25 @@ public java.lang.String getMainClass() { } } /** - * - * *
      * The name of the driver's main class. The jar file that contains the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; - * * @return The bytes for mainClass. */ @java.lang.Override - public com.google.protobuf.ByteString getMainClassBytes() { + public com.google.protobuf.ByteString + getMainClassBytes() { java.lang.Object ref = ""; if (driverCase_ == 2) { ref = driver_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (driverCase_ == 2) { driver_ = b; } @@ -1565,37 +1445,32 @@ public com.google.protobuf.ByteString getMainClassBytes() { } } /** - * - * *
      * The name of the driver's main class. The jar file that contains the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; - * * @param value The mainClass to set. * @return This builder for chaining. */ - public Builder setMainClass(java.lang.String value) { + public Builder setMainClass( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 2; + throw new NullPointerException(); + } + driverCase_ = 2; driver_ = value; onChanged(); return this; } /** - * - * *
      * The name of the driver's main class. The jar file that contains the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; - * * @return This builder for chaining. */ public Builder clearMainClass() { @@ -1607,41 +1482,35 @@ public Builder clearMainClass() { return this; } /** - * - * *
      * The name of the driver's main class. The jar file that contains the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; - * * @param value The bytes for mainClass to set. * @return This builder for chaining. */ - public Builder setMainClassBytes(com.google.protobuf.ByteString value) { + public Builder setMainClassBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); driverCase_ = 2; driver_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1649,15 +1518,13 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_.getUnmodifiableView(); } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1665,15 +1532,12 @@ public com.google.protobuf.ProtocolStringList getArgsList() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1681,7 +1545,6 @@ public int getArgsCount() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1689,8 +1552,6 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1698,16 +1559,14 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1715,23 +1574,21 @@ public com.google.protobuf.ByteString getArgsBytes(int index) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs(int index, java.lang.String value) { + public Builder setArgs( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1739,22 +1596,20 @@ public Builder setArgs(int index, java.lang.String value) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs(java.lang.String value) { + public Builder addArgs( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1762,19 +1617,18 @@ public Builder addArgs(java.lang.String value) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs(java.lang.Iterable values) { + public Builder addAllArgs( + java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1782,7 +1636,6 @@ public Builder addAllArgs(java.lang.Iterable values) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearArgs() { @@ -1792,8 +1645,6 @@ public Builder clearArgs() { return this; } /** - * - * *
      * Optional. The arguments to pass to the driver. Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1801,70 +1652,60 @@ public Builder clearArgs() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureJarFileUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList + getJarFileUrisList() { return jarFileUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -1872,95 +1713,85 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The jarFileUris to set. * @return This builder for chaining. */ - public Builder setJarFileUris(int index, java.lang.String value) { + public Builder setJarFileUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUris(java.lang.String value) { + public Builder addJarFileUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The jarFileUris to add. * @return This builder for chaining. */ - public Builder addAllJarFileUris(java.lang.Iterable values) { + public Builder addAllJarFileUris( + java.lang.Iterable values) { ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, jarFileUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearJarFileUris() { @@ -1970,78 +1801,66 @@ public Builder clearJarFileUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { + public Builder addJarFileUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList fileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFileUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { + public com.google.protobuf.ProtocolStringList + getFileUrisList() { return fileUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -2049,95 +1868,85 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getFileUrisBytes(int index) { return fileUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The fileUris to set. * @return This builder for chaining. */ - public Builder setFileUris(int index, java.lang.String value) { + public Builder setFileUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The fileUris to add. * @return This builder for chaining. */ - public Builder addFileUris(java.lang.String value) { + public Builder addFileUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The fileUris to add. * @return This builder for chaining. */ - public Builder addAllFileUris(java.lang.Iterable values) { + public Builder addAllFileUris( + java.lang.Iterable values) { ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fileUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFileUris() { @@ -2147,41 +1956,35 @@ public Builder clearFileUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the fileUris to add. * @return This builder for chaining. */ - public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { + public Builder addFileUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList archiveUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArchiveUrisIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); bitField0_ |= 0x00000008; - } + } } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2189,15 +1992,13 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList + getArchiveUrisList() { return archiveUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2205,15 +2006,12 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2221,7 +2019,6 @@ public int getArchiveUrisCount() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -2229,8 +2026,6 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2238,16 +2033,14 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString + getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2255,23 +2048,21 @@ public com.google.protobuf.ByteString getArchiveUrisBytes(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The archiveUris to set. * @return This builder for chaining. */ - public Builder setArchiveUris(int index, java.lang.String value) { + public Builder setArchiveUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2279,22 +2070,20 @@ public Builder setArchiveUris(int index, java.lang.String value) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUris(java.lang.String value) { + public Builder addArchiveUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2302,19 +2091,18 @@ public Builder addArchiveUris(java.lang.String value) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The archiveUris to add. * @return This builder for chaining. */ - public Builder addAllArchiveUris(java.lang.Iterable values) { + public Builder addAllArchiveUris( + java.lang.Iterable values) { ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, archiveUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2322,7 +2110,6 @@ public Builder addAllArchiveUris(java.lang.Iterable values) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearArchiveUris() { @@ -2332,8 +2119,6 @@ public Builder clearArchiveUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2341,39 +2126,37 @@ public Builder clearArchiveUris() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { + public Builder addArchiveUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } - private com.google.protobuf.MapField properties_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; + internalGetMutableProperties() { + onChanged();; if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); + properties_ = com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -2385,8 +2168,6 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Spark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2394,25 +2175,24 @@ public int getPropertiesCount() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Spark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2420,16 +2200,14 @@ public java.util.Map getProperties() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Spark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2437,21 +2215,19 @@ public java.util.Map getPropertiesMap() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Spark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2459,15 +2235,15 @@ public java.lang.String getPropertiesOrDefault(
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2475,12 +2251,11 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); + internalGetMutableProperties().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Spark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2488,24 +2263,25 @@ public Builder clearProperties() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); + + public Builder removeProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableProperties().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableProperties() { + public java.util.Map + getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Spark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2513,23 +2289,21 @@ public java.util.Map getMutableProperties()
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putProperties( + 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"); +} - internalGetMutableProperties().getMutableMap().put(key, value); + internalGetMutableProperties().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. A mapping of property names to values, used to configure Spark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2537,68 +2311,51 @@ public Builder putProperties(java.lang.String key, java.lang.String value) {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); + + public Builder putAllProperties( + java.util.Map values) { + internalGetMutableProperties().getMutableMap() + .putAll(values); return this; } private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - loggingConfigBuilder_; + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> loggingConfigBuilder_; /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ public boolean hasLoggingConfig() { return loggingConfigBuilder_ != null || loggingConfig_ != null; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } else { return loggingConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { @@ -2614,15 +2371,11 @@ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLoggingConfig( com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { @@ -2636,23 +2389,17 @@ public Builder setLoggingConfig( return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { if (loggingConfig_ != null) { loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); } else { loggingConfig_ = value; } @@ -2664,15 +2411,11 @@ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig val return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearLoggingConfig() { if (loggingConfigBuilder_ == null) { @@ -2686,71 +2429,55 @@ public Builder clearLoggingConfig() { return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - + onChanged(); return getLoggingConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { if (loggingConfigBuilder_ != null) { return loggingConfigBuilder_.getMessageOrBuilder(); } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? + com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> getLoggingConfigFieldBuilder() { if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); + loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( + getLoggingConfig(), + getParentForChildren(), + isClean()); loggingConfig_ = null; } return loggingConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2760,12 +2487,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SparkJob) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkJob) private static final com.google.cloud.dataproc.v1.SparkJob DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkJob(); } @@ -2774,27 +2501,27 @@ public static com.google.cloud.dataproc.v1.SparkJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2809,4 +2536,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SparkJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java similarity index 79% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java index 0017ad02fa05..804085ac9b71 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java @@ -1,108 +1,74 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface SparkJobOrBuilder - extends +public interface SparkJobOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkJob) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1; - * * @return Whether the mainJarFileUri field is set. */ boolean hasMainJarFileUri(); /** - * - * *
    * The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1; - * * @return The mainJarFileUri. */ java.lang.String getMainJarFileUri(); /** - * - * *
    * The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1; - * * @return The bytes for mainJarFileUri. */ - com.google.protobuf.ByteString getMainJarFileUriBytes(); + com.google.protobuf.ByteString + getMainJarFileUriBytes(); /** - * - * *
    * The name of the driver's main class. The jar file that contains the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; - * * @return Whether the mainClass field is set. */ boolean hasMainClass(); /** - * - * *
    * The name of the driver's main class. The jar file that contains the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; - * * @return The mainClass. */ java.lang.String getMainClass(); /** - * - * *
    * The name of the driver's main class. The jar file that contains the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; - * * @return The bytes for mainClass. */ - com.google.protobuf.ByteString getMainClassBytes(); + com.google.protobuf.ByteString + getMainClassBytes(); /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -110,13 +76,11 @@ public interface SparkJobOrBuilder
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - java.util.List getArgsList(); + java.util.List + getArgsList(); /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -124,13 +88,10 @@ public interface SparkJobOrBuilder
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ int getArgsCount(); /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -138,14 +99,11 @@ public interface SparkJobOrBuilder
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** - * - * *
    * Optional. The arguments to pass to the driver. Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -153,125 +111,103 @@ public interface SparkJobOrBuilder
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString getArgsBytes(int index); + com.google.protobuf.ByteString + getArgsBytes(int index); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - java.util.List getJarFileUrisList(); + java.util.List + getJarFileUrisList(); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ int getJarFileUrisCount(); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ java.lang.String getJarFileUris(int index); /** - * - * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); + com.google.protobuf.ByteString + getJarFileUrisBytes(int index); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - java.util.List getFileUrisList(); + java.util.List + getFileUrisList(); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ int getFileUrisCount(); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ java.lang.String getFileUris(int index); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - com.google.protobuf.ByteString getFileUrisBytes(int index); + com.google.protobuf.ByteString + getFileUrisBytes(int index); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -279,13 +215,11 @@ public interface SparkJobOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - java.util.List getArchiveUrisList(); + java.util.List + getArchiveUrisList(); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -293,13 +227,10 @@ public interface SparkJobOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ int getArchiveUrisCount(); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -307,14 +238,11 @@ public interface SparkJobOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ java.lang.String getArchiveUris(int index); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -322,15 +250,13 @@ public interface SparkJobOrBuilder
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - com.google.protobuf.ByteString getArchiveUrisBytes(int index); + com.google.protobuf.ByteString + getArchiveUrisBytes(int index); /** - * - * *
    * Optional. A mapping of property names to values, used to configure Spark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -338,13 +264,10 @@ public interface SparkJobOrBuilder
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getPropertiesCount(); /** - * - * *
    * Optional. A mapping of property names to values, used to configure Spark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -352,16 +275,17 @@ public interface SparkJobOrBuilder
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsProperties( + java.lang.String key); + /** + * Use {@link #getPropertiesMap()} instead. */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map getProperties(); + java.util.Map + getProperties(); /** - * - * *
    * Optional. A mapping of property names to values, used to configure Spark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -369,13 +293,11 @@ public interface SparkJobOrBuilder
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getPropertiesMap(); + java.util.Map + getPropertiesMap(); /** - * - * *
    * Optional. A mapping of property names to values, used to configure Spark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -383,18 +305,15 @@ public interface SparkJobOrBuilder
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getPropertiesOrDefault( +java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. A mapping of property names to values, used to configure Spark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -402,49 +321,36 @@ java.lang.String getPropertiesOrDefault(
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getPropertiesOrThrow(java.lang.String key); + + java.lang.String getPropertiesOrThrow( + java.lang.String key); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ boolean hasLoggingConfig(); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java similarity index 76% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java index 255c7ba7b3cb..0c35c8002487 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.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/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A configuration for running an
  * [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.SparkRBatch}
  */
-public final class SparkRBatch extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SparkRBatch extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkRBatch)
     SparkRBatchOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SparkRBatch.newBuilder() to construct.
   private SparkRBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SparkRBatch() {
     mainRFileUri_ = "";
     args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -48,42 +30,38 @@ private SparkRBatch() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SparkRBatch();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.BatchesProto
-        .internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.BatchesProto
-        .internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.SparkRBatch.class,
-            com.google.cloud.dataproc.v1.SparkRBatch.Builder.class);
+            com.google.cloud.dataproc.v1.SparkRBatch.class, com.google.cloud.dataproc.v1.SparkRBatch.Builder.class);
   }
 
   public static final int MAIN_R_FILE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object mainRFileUri_;
   /**
-   *
-   *
    * 
    * Required. The HCFS URI of the main R file to use as the driver.
    * Must be a `.R` or `.r` file.
    * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mainRFileUri. */ @java.lang.Override @@ -92,30 +70,30 @@ public java.lang.String getMainRFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mainRFileUri_ = s; return s; } } /** - * - * *
    * Required. The HCFS URI of the main R file to use as the driver.
    * Must be a `.R` or `.r` file.
    * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mainRFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString getMainRFileUriBytes() { + public com.google.protobuf.ByteString + getMainRFileUriBytes() { java.lang.Object ref = mainRFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mainRFileUri_ = b; return b; } else { @@ -126,8 +104,6 @@ public com.google.protobuf.ByteString getMainRFileUriBytes() { public static final int ARGS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList args_; /** - * - * *
    * Optional. The arguments to pass to the Spark driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -135,15 +111,13 @@ public com.google.protobuf.ByteString getMainRFileUriBytes() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_; } /** - * - * *
    * Optional. The arguments to pass to the Spark driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -151,15 +125,12 @@ public com.google.protobuf.ProtocolStringList getArgsList() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
    * Optional. The arguments to pass to the Spark driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -167,7 +138,6 @@ public int getArgsCount() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -175,8 +145,6 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
    * Optional. The arguments to pass to the Spark driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -184,56 +152,48 @@ public java.lang.String getArgs(int index) {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } public static final int FILE_URIS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList fileUris_; /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { + public com.google.protobuf.ProtocolStringList + getFileUrisList() { return fileUris_; } /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -241,27 +201,23 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getFileUrisBytes(int index) { return fileUris_.getByteString(index); } public static final int ARCHIVE_URIS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList archiveUris_; /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -269,15 +225,13 @@ public com.google.protobuf.ByteString getFileUrisBytes(int index) {
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList + getArchiveUrisList() { return archiveUris_; } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -285,15 +239,12 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() {
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -301,7 +252,6 @@ public int getArchiveUrisCount() {
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -309,8 +259,6 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -318,16 +266,15 @@ public java.lang.String getArchiveUris(int index) {
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString + getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,7 +286,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainRFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainRFileUri_); } @@ -396,17 +344,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.dataproc.v1.SparkRBatch)) { return super.equals(obj); } com.google.cloud.dataproc.v1.SparkRBatch other = (com.google.cloud.dataproc.v1.SparkRBatch) obj; - if (!getMainRFileUri().equals(other.getMainRFileUri())) return false; - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getFileUrisList().equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; + if (!getMainRFileUri() + .equals(other.getMainRFileUri())) return false; + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (!getFileUrisList() + .equals(other.getFileUrisList())) return false; + if (!getArchiveUrisList() + .equals(other.getArchiveUrisList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -437,104 +389,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.SparkRBatch parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.SparkRBatch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkRBatch parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.SparkRBatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 configuration for running an
    * [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
@@ -543,32 +488,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.SparkRBatch}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkRBatch)
       com.google.cloud.dataproc.v1.SparkRBatchOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.BatchesProto
-          .internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.BatchesProto
-          .internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.SparkRBatch.class,
-              com.google.cloud.dataproc.v1.SparkRBatch.Builder.class);
+              com.google.cloud.dataproc.v1.SparkRBatch.class, com.google.cloud.dataproc.v1.SparkRBatch.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.SparkRBatch.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -584,9 +530,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.BatchesProto
-          .internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor;
     }
 
     @java.lang.Override
@@ -605,8 +551,7 @@ public com.google.cloud.dataproc.v1.SparkRBatch build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.SparkRBatch buildPartial() {
-      com.google.cloud.dataproc.v1.SparkRBatch result =
-          new com.google.cloud.dataproc.v1.SparkRBatch(this);
+      com.google.cloud.dataproc.v1.SparkRBatch result = new com.google.cloud.dataproc.v1.SparkRBatch(this);
       int from_bitField0_ = bitField0_;
       result.mainRFileUri_ = mainRFileUri_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -632,39 +577,38 @@ public com.google.cloud.dataproc.v1.SparkRBatch buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.SparkRBatch) {
-        return mergeFrom((com.google.cloud.dataproc.v1.SparkRBatch) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.SparkRBatch)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -733,40 +677,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                mainRFileUri_ = input.readStringRequireUtf8();
+            case 10: {
+              mainRFileUri_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureArgsIsMutable();
-                args_.add(s);
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureFileUrisIsMutable();
-                fileUris_.add(s);
-                break;
-              } // case 26
-            case 34:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureArchiveUrisIsMutable();
-                archiveUris_.add(s);
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 10
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureArgsIsMutable();
+              args_.add(s);
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureFileUrisIsMutable();
+              fileUris_.add(s);
+              break;
+            } // case 26
+            case 34: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureArchiveUrisIsMutable();
+              archiveUris_.add(s);
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -776,26 +715,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object mainRFileUri_ = "";
     /**
-     *
-     *
      * 
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a `.R` or `.r` file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mainRFileUri. */ public java.lang.String getMainRFileUri() { java.lang.Object ref = mainRFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mainRFileUri_ = s; return s; @@ -804,22 +740,21 @@ public java.lang.String getMainRFileUri() { } } /** - * - * *
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a `.R` or `.r` file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mainRFileUri. */ - public com.google.protobuf.ByteString getMainRFileUriBytes() { + public com.google.protobuf.ByteString + getMainRFileUriBytes() { java.lang.Object ref = mainRFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mainRFileUri_ = b; return b; } else { @@ -827,81 +762,70 @@ public com.google.protobuf.ByteString getMainRFileUriBytes() { } } /** - * - * *
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a `.R` or `.r` file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The mainRFileUri to set. * @return This builder for chaining. */ - public Builder setMainRFileUri(java.lang.String value) { + public Builder setMainRFileUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mainRFileUri_ = value; onChanged(); return this; } /** - * - * *
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a `.R` or `.r` file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMainRFileUri() { - + mainRFileUri_ = getDefaultInstance().getMainRFileUri(); onChanged(); return this; } /** - * - * *
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a `.R` or `.r` file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for mainRFileUri to set. * @return This builder for chaining. */ - public Builder setMainRFileUriBytes(com.google.protobuf.ByteString value) { + public Builder setMainRFileUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mainRFileUri_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Optional. The arguments to pass to the Spark driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -909,15 +833,13 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_.getUnmodifiableView(); } /** - * - * *
      * Optional. The arguments to pass to the Spark driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -925,15 +847,12 @@ public com.google.protobuf.ProtocolStringList getArgsList() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
      * Optional. The arguments to pass to the Spark driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -941,7 +860,6 @@ public int getArgsCount() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -949,8 +867,6 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
      * Optional. The arguments to pass to the Spark driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -958,16 +874,14 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } /** - * - * *
      * Optional. The arguments to pass to the Spark driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -975,23 +889,21 @@ public com.google.protobuf.ByteString getArgsBytes(int index) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs(int index, java.lang.String value) { + public Builder setArgs( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the Spark driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -999,22 +911,20 @@ public Builder setArgs(int index, java.lang.String value) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs(java.lang.String value) { + public Builder addArgs( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the Spark driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1022,19 +932,18 @@ public Builder addArgs(java.lang.String value) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs(java.lang.Iterable values) { + public Builder addAllArgs( + java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the Spark driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1042,7 +951,6 @@ public Builder addAllArgs(java.lang.Iterable values) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearArgs() { @@ -1052,8 +960,6 @@ public Builder clearArgs() { return this; } /** - * - * *
      * Optional. The arguments to pass to the Spark driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1061,70 +967,60 @@ public Builder clearArgs() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList fileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFileUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { + public com.google.protobuf.ProtocolStringList + getFileUrisList() { return fileUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -1132,95 +1028,85 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getFileUrisBytes(int index) { return fileUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The fileUris to set. * @return This builder for chaining. */ - public Builder setFileUris(int index, java.lang.String value) { + public Builder setFileUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The fileUris to add. * @return This builder for chaining. */ - public Builder addFileUris(java.lang.String value) { + public Builder addFileUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The fileUris to add. * @return This builder for chaining. */ - public Builder addAllFileUris(java.lang.Iterable values) { + public Builder addAllFileUris( + java.lang.Iterable values) { ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fileUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFileUris() { @@ -1230,41 +1116,35 @@ public Builder clearFileUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the fileUris to add. * @return This builder for chaining. */ - public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { + public Builder addFileUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList archiveUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArchiveUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1272,15 +1152,13 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList + getArchiveUrisList() { return archiveUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1288,15 +1166,12 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1304,7 +1179,6 @@ public int getArchiveUrisCount() {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -1312,8 +1186,6 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1321,16 +1193,14 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString + getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1338,23 +1208,21 @@ public com.google.protobuf.ByteString getArchiveUrisBytes(int index) {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The archiveUris to set. * @return This builder for chaining. */ - public Builder setArchiveUris(int index, java.lang.String value) { + public Builder setArchiveUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1362,22 +1230,20 @@ public Builder setArchiveUris(int index, java.lang.String value) {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUris(java.lang.String value) { + public Builder addArchiveUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1385,19 +1251,18 @@ public Builder addArchiveUris(java.lang.String value) {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The archiveUris to add. * @return This builder for chaining. */ - public Builder addAllArchiveUris(java.lang.Iterable values) { + public Builder addAllArchiveUris( + java.lang.Iterable values) { ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, archiveUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1405,7 +1270,6 @@ public Builder addAllArchiveUris(java.lang.Iterable values) {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearArchiveUris() { @@ -1415,8 +1279,6 @@ public Builder clearArchiveUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1424,23 +1286,23 @@ public Builder clearArchiveUris() {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { + public Builder addArchiveUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArchiveUrisIsMutable(); archiveUris_.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); } @@ -1450,12 +1312,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SparkRBatch) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkRBatch) private static final com.google.cloud.dataproc.v1.SparkRBatch DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkRBatch(); } @@ -1464,27 +1326,27 @@ public static com.google.cloud.dataproc.v1.SparkRBatch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkRBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkRBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1499,4 +1361,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SparkRBatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java similarity index 81% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java index 1083a66940e6..5445c5aebc12 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; -public interface SparkRBatchOrBuilder - extends +public interface SparkRBatchOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkRBatch) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The HCFS URI of the main R file to use as the driver.
    * Must be a `.R` or `.r` file.
    * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mainRFileUri. */ java.lang.String getMainRFileUri(); /** - * - * *
    * Required. The HCFS URI of the main R file to use as the driver.
    * Must be a `.R` or `.r` file.
    * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mainRFileUri. */ - com.google.protobuf.ByteString getMainRFileUriBytes(); + com.google.protobuf.ByteString + getMainRFileUriBytes(); /** - * - * *
    * Optional. The arguments to pass to the Spark driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -60,13 +37,11 @@ public interface SparkRBatchOrBuilder
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - java.util.List getArgsList(); + java.util.List + getArgsList(); /** - * - * *
    * Optional. The arguments to pass to the Spark driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -74,13 +49,10 @@ public interface SparkRBatchOrBuilder
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ int getArgsCount(); /** - * - * *
    * Optional. The arguments to pass to the Spark driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -88,14 +60,11 @@ public interface SparkRBatchOrBuilder
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** - * - * *
    * Optional. The arguments to pass to the Spark driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -103,70 +72,58 @@ public interface SparkRBatchOrBuilder
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString getArgsBytes(int index); + com.google.protobuf.ByteString + getArgsBytes(int index); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - java.util.List getFileUrisList(); + java.util.List + getFileUrisList(); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ int getFileUrisCount(); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ java.lang.String getFileUris(int index); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - com.google.protobuf.ByteString getFileUrisBytes(int index); + com.google.protobuf.ByteString + getFileUrisBytes(int index); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -174,13 +131,11 @@ public interface SparkRBatchOrBuilder
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - java.util.List getArchiveUrisList(); + java.util.List + getArchiveUrisList(); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -188,13 +143,10 @@ public interface SparkRBatchOrBuilder
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ int getArchiveUrisCount(); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -202,14 +154,11 @@ public interface SparkRBatchOrBuilder
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ java.lang.String getArchiveUris(int index); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -217,9 +166,9 @@ public interface SparkRBatchOrBuilder
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - com.google.protobuf.ByteString getArchiveUrisBytes(int index); + com.google.protobuf.ByteString + getArchiveUrisBytes(int index); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java similarity index 70% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java index 75d698ebd23c..74e94b12550d 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A Dataproc job for running
  * [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.SparkRJob}
  */
-public final class SparkRJob extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SparkRJob extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkRJob)
     SparkRJobOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SparkRJob.newBuilder() to construct.
   private SparkRJob(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SparkRJob() {
     mainRFileUri_ = "";
     args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -48,53 +30,50 @@ private SparkRJob() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SparkRJob();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.JobsProto
-        .internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 5:
         return internalGetProperties();
       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.dataproc.v1.JobsProto
-        .internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.SparkRJob.class,
-            com.google.cloud.dataproc.v1.SparkRJob.Builder.class);
+            com.google.cloud.dataproc.v1.SparkRJob.class, com.google.cloud.dataproc.v1.SparkRJob.Builder.class);
   }
 
   public static final int MAIN_R_FILE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object mainRFileUri_;
   /**
-   *
-   *
    * 
    * Required. The HCFS URI of the main R file to use as the driver.
    * Must be a .R file.
    * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mainRFileUri. */ @java.lang.Override @@ -103,30 +82,30 @@ public java.lang.String getMainRFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mainRFileUri_ = s; return s; } } /** - * - * *
    * Required. The HCFS URI of the main R file to use as the driver.
    * Must be a .R file.
    * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mainRFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString getMainRFileUriBytes() { + public com.google.protobuf.ByteString + getMainRFileUriBytes() { java.lang.Object ref = mainRFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mainRFileUri_ = b; return b; } else { @@ -137,8 +116,6 @@ public com.google.protobuf.ByteString getMainRFileUriBytes() { public static final int ARGS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList args_; /** - * - * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -146,15 +123,13 @@ public com.google.protobuf.ByteString getMainRFileUriBytes() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_; } /** - * - * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -162,15 +137,12 @@ public com.google.protobuf.ProtocolStringList getArgsList() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -178,7 +150,6 @@ public int getArgsCount() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -186,8 +157,6 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -195,56 +164,48 @@ public java.lang.String getArgs(int index) {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } public static final int FILE_URIS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList fileUris_; /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { + public com.google.protobuf.ProtocolStringList + getFileUrisList() { return fileUris_; } /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -252,27 +213,23 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getFileUrisBytes(int index) { return fileUris_.getByteString(index); } public static final int ARCHIVE_URIS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList archiveUris_; /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -280,15 +237,13 @@ public com.google.protobuf.ByteString getFileUrisBytes(int index) {
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList + getArchiveUrisList() { return archiveUris_; } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -296,15 +251,12 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() {
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -312,7 +264,6 @@ public int getArchiveUrisCount() {
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -320,8 +271,6 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -329,32 +278,33 @@ public java.lang.String getArchiveUris(int index) {
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString + getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } public static final int PROPERTIES_FIELD_NUMBER = 5; - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField + internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -363,8 +313,6 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
    * Optional. A mapping of property names to values, used to configure SparkR.
    * Properties that conflict with values set by the Dataproc API may be
@@ -372,25 +320,24 @@ public int getPropertiesCount() {
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
    * Optional. A mapping of property names to values, used to configure SparkR.
    * Properties that conflict with values set by the Dataproc API may be
@@ -398,16 +345,14 @@ public java.util.Map getProperties() {
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
    * Optional. A mapping of property names to values, used to configure SparkR.
    * Properties that conflict with values set by the Dataproc API may be
@@ -415,21 +360,19 @@ public java.util.Map getPropertiesMap() {
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. A mapping of property names to values, used to configure SparkR.
    * Properties that conflict with values set by the Dataproc API may be
@@ -437,15 +380,15 @@ public java.lang.String getPropertiesOrDefault(
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -455,16 +398,11 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { public static final int LOGGING_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ @java.lang.Override @@ -472,34 +410,23 @@ public boolean hasLoggingConfig() { return loggingConfig_ != null; } /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { @@ -507,7 +434,6 @@ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBui } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -519,7 +445,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(mainRFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainRFileUri_); } @@ -532,8 +459,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < archiveUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, archiveUris_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetProperties(), + PropertiesDefaultEntryHolder.defaultEntry, + 5); if (loggingConfig_ != null) { output.writeMessage(6, getLoggingConfig()); } @@ -573,18 +504,19 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArchiveUrisList().size(); } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, properties__); + for (java.util.Map.Entry entry + : internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, properties__); } if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLoggingConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getLoggingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -594,21 +526,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.SparkRJob)) { return super.equals(obj); } com.google.cloud.dataproc.v1.SparkRJob other = (com.google.cloud.dataproc.v1.SparkRJob) obj; - if (!getMainRFileUri().equals(other.getMainRFileUri())) return false; - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getFileUrisList().equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; + if (!getMainRFileUri() + .equals(other.getMainRFileUri())) return false; + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (!getFileUrisList() + .equals(other.getFileUrisList())) return false; + if (!getArchiveUrisList() + .equals(other.getArchiveUrisList())) return false; + if (!internalGetProperties().equals( + other.internalGetProperties())) return false; if (hasLoggingConfig() != other.hasLoggingConfig()) return false; if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; + if (!getLoggingConfig() + .equals(other.getLoggingConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -648,104 +586,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.SparkRJob parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkRJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkRJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkRJob 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.dataproc.v1.SparkRJob parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.SparkRJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc job for running
    * [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
@@ -754,52 +685,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.SparkRJob}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkRJob)
       com.google.cloud.dataproc.v1.SparkRJobOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetProperties();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetMutableProperties();
         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.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.SparkRJob.class,
-              com.google.cloud.dataproc.v1.SparkRJob.Builder.class);
+              com.google.cloud.dataproc.v1.SparkRJob.class, com.google.cloud.dataproc.v1.SparkRJob.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.SparkRJob.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -822,9 +756,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor;
     }
 
     @java.lang.Override
@@ -843,8 +777,7 @@ public com.google.cloud.dataproc.v1.SparkRJob build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.SparkRJob buildPartial() {
-      com.google.cloud.dataproc.v1.SparkRJob result =
-          new com.google.cloud.dataproc.v1.SparkRJob(this);
+      com.google.cloud.dataproc.v1.SparkRJob result = new com.google.cloud.dataproc.v1.SparkRJob(this);
       int from_bitField0_ = bitField0_;
       result.mainRFileUri_ = mainRFileUri_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -877,39 +810,38 @@ public com.google.cloud.dataproc.v1.SparkRJob buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.SparkRJob) {
-        return mergeFrom((com.google.cloud.dataproc.v1.SparkRJob) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.SparkRJob)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -952,7 +884,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkRJob other) {
         }
         onChanged();
       }
-      internalGetMutableProperties().mergeFrom(other.internalGetProperties());
+      internalGetMutableProperties().mergeFrom(
+          other.internalGetProperties());
       if (other.hasLoggingConfig()) {
         mergeLoggingConfig(other.getLoggingConfig());
       }
@@ -982,57 +915,50 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                mainRFileUri_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureArgsIsMutable();
-                args_.add(s);
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureFileUrisIsMutable();
-                fileUris_.add(s);
-                break;
-              } // case 26
-            case 34:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureArchiveUrisIsMutable();
-                archiveUris_.add(s);
-                break;
-              } // case 34
-            case 42:
-              {
-                com.google.protobuf.MapEntry properties__ =
-                    input.readMessage(
-                        PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableProperties()
-                    .getMutableMap()
-                    .put(properties__.getKey(), properties__.getValue());
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              mainRFileUri_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureArgsIsMutable();
+              args_.add(s);
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureFileUrisIsMutable();
+              fileUris_.add(s);
+              break;
+            } // case 26
+            case 34: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureArchiveUrisIsMutable();
+              archiveUris_.add(s);
+              break;
+            } // case 34
+            case 42: {
+              com.google.protobuf.MapEntry
+              properties__ = input.readMessage(
+                  PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableProperties().getMutableMap().put(
+                  properties__.getKey(), properties__.getValue());
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getLoggingConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1042,26 +968,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object mainRFileUri_ = "";
     /**
-     *
-     *
      * 
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a .R file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mainRFileUri. */ public java.lang.String getMainRFileUri() { java.lang.Object ref = mainRFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mainRFileUri_ = s; return s; @@ -1070,22 +993,21 @@ public java.lang.String getMainRFileUri() { } } /** - * - * *
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a .R file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mainRFileUri. */ - public com.google.protobuf.ByteString getMainRFileUriBytes() { + public com.google.protobuf.ByteString + getMainRFileUriBytes() { java.lang.Object ref = mainRFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mainRFileUri_ = b; return b; } else { @@ -1093,81 +1015,70 @@ public com.google.protobuf.ByteString getMainRFileUriBytes() { } } /** - * - * *
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a .R file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The mainRFileUri to set. * @return This builder for chaining. */ - public Builder setMainRFileUri(java.lang.String value) { + public Builder setMainRFileUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mainRFileUri_ = value; onChanged(); return this; } /** - * - * *
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a .R file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMainRFileUri() { - + mainRFileUri_ = getDefaultInstance().getMainRFileUri(); onChanged(); return this; } /** - * - * *
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a .R file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for mainRFileUri to set. * @return This builder for chaining. */ - public Builder setMainRFileUriBytes(com.google.protobuf.ByteString value) { + public Builder setMainRFileUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mainRFileUri_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1175,15 +1086,13 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_.getUnmodifiableView(); } /** - * - * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1191,15 +1100,12 @@ public com.google.protobuf.ProtocolStringList getArgsList() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1207,7 +1113,6 @@ public int getArgsCount() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1215,8 +1120,6 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1224,16 +1127,14 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } /** - * - * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1241,23 +1142,21 @@ public com.google.protobuf.ByteString getArgsBytes(int index) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs(int index, java.lang.String value) { + public Builder setArgs( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1265,22 +1164,20 @@ public Builder setArgs(int index, java.lang.String value) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs(java.lang.String value) { + public Builder addArgs( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1288,19 +1185,18 @@ public Builder addArgs(java.lang.String value) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs(java.lang.Iterable values) { + public Builder addAllArgs( + java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); onChanged(); return this; } /** - * - * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1308,7 +1204,6 @@ public Builder addAllArgs(java.lang.Iterable values) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearArgs() { @@ -1318,8 +1213,6 @@ public Builder clearArgs() { return this; } /** - * - * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1327,70 +1220,60 @@ public Builder clearArgs() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList fileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFileUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { + public com.google.protobuf.ProtocolStringList + getFileUrisList() { return fileUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -1398,95 +1281,85 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getFileUrisBytes(int index) { return fileUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The fileUris to set. * @return This builder for chaining. */ - public Builder setFileUris(int index, java.lang.String value) { + public Builder setFileUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The fileUris to add. * @return This builder for chaining. */ - public Builder addFileUris(java.lang.String value) { + public Builder addFileUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The fileUris to add. * @return This builder for chaining. */ - public Builder addAllFileUris(java.lang.Iterable values) { + public Builder addAllFileUris( + java.lang.Iterable values) { ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fileUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFileUris() { @@ -1496,41 +1369,35 @@ public Builder clearFileUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the fileUris to add. * @return This builder for chaining. */ - public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { + public Builder addFileUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList archiveUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArchiveUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1538,15 +1405,13 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList + getArchiveUrisList() { return archiveUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1554,15 +1419,12 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1570,7 +1432,6 @@ public int getArchiveUrisCount() {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -1578,8 +1439,6 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1587,16 +1446,14 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString + getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1604,23 +1461,21 @@ public com.google.protobuf.ByteString getArchiveUrisBytes(int index) {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The archiveUris to set. * @return This builder for chaining. */ - public Builder setArchiveUris(int index, java.lang.String value) { + public Builder setArchiveUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1628,22 +1483,20 @@ public Builder setArchiveUris(int index, java.lang.String value) {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUris(java.lang.String value) { + public Builder addArchiveUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1651,19 +1504,18 @@ public Builder addArchiveUris(java.lang.String value) {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The archiveUris to add. * @return This builder for chaining. */ - public Builder addAllArchiveUris(java.lang.Iterable values) { + public Builder addAllArchiveUris( + java.lang.Iterable values) { ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, archiveUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1671,7 +1523,6 @@ public Builder addAllArchiveUris(java.lang.Iterable values) {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearArchiveUris() { @@ -1681,8 +1532,6 @@ public Builder clearArchiveUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1690,39 +1539,37 @@ public Builder clearArchiveUris() {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { + public Builder addArchiveUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } - private com.google.protobuf.MapField properties_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; + internalGetMutableProperties() { + onChanged();; if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); + properties_ = com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -1734,8 +1581,6 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure SparkR.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1743,25 +1588,24 @@ public int getPropertiesCount() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure SparkR.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1769,16 +1613,14 @@ public java.util.Map getProperties() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure SparkR.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1786,21 +1628,19 @@ public java.util.Map getPropertiesMap() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. A mapping of property names to values, used to configure SparkR.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1808,15 +1648,15 @@ public java.lang.String getPropertiesOrDefault(
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1824,12 +1664,11 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); + internalGetMutableProperties().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. A mapping of property names to values, used to configure SparkR.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1837,24 +1676,25 @@ public Builder clearProperties() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); + + public Builder removeProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableProperties().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableProperties() { + public java.util.Map + getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure SparkR.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1862,23 +1702,21 @@ public java.util.Map getMutableProperties()
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putProperties( + 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"); +} - internalGetMutableProperties().getMutableMap().put(key, value); + internalGetMutableProperties().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. A mapping of property names to values, used to configure SparkR.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1886,68 +1724,51 @@ public Builder putProperties(java.lang.String key, java.lang.String value) {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); + + public Builder putAllProperties( + java.util.Map values) { + internalGetMutableProperties().getMutableMap() + .putAll(values); return this; } private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - loggingConfigBuilder_; + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> loggingConfigBuilder_; /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ public boolean hasLoggingConfig() { return loggingConfigBuilder_ != null || loggingConfig_ != null; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } else { return loggingConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { @@ -1963,15 +1784,11 @@ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLoggingConfig( com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { @@ -1985,23 +1802,17 @@ public Builder setLoggingConfig( return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { if (loggingConfig_ != null) { loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); } else { loggingConfig_ = value; } @@ -2013,15 +1824,11 @@ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig val return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearLoggingConfig() { if (loggingConfigBuilder_ == null) { @@ -2035,71 +1842,55 @@ public Builder clearLoggingConfig() { return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - + onChanged(); return getLoggingConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { if (loggingConfigBuilder_ != null) { return loggingConfigBuilder_.getMessageOrBuilder(); } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? + com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> getLoggingConfigFieldBuilder() { if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); + loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( + getLoggingConfig(), + getParentForChildren(), + isClean()); loggingConfig_ = null; } return loggingConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2109,12 +1900,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SparkRJob) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkRJob) private static final com.google.cloud.dataproc.v1.SparkRJob DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkRJob(); } @@ -2123,27 +1914,27 @@ public static com.google.cloud.dataproc.v1.SparkRJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkRJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkRJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2158,4 +1949,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SparkRJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java similarity index 77% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java index 63185648926c..98b4c1c64012 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface SparkRJobOrBuilder - extends +public interface SparkRJobOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkRJob) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The HCFS URI of the main R file to use as the driver.
    * Must be a .R file.
    * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mainRFileUri. */ java.lang.String getMainRFileUri(); /** - * - * *
    * Required. The HCFS URI of the main R file to use as the driver.
    * Must be a .R file.
    * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mainRFileUri. */ - com.google.protobuf.ByteString getMainRFileUriBytes(); + com.google.protobuf.ByteString + getMainRFileUriBytes(); /** - * - * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -60,13 +37,11 @@ public interface SparkRJobOrBuilder
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - java.util.List getArgsList(); + java.util.List + getArgsList(); /** - * - * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -74,13 +49,10 @@ public interface SparkRJobOrBuilder
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ int getArgsCount(); /** - * - * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -88,14 +60,11 @@ public interface SparkRJobOrBuilder
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** - * - * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -103,70 +72,58 @@ public interface SparkRJobOrBuilder
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString getArgsBytes(int index); + com.google.protobuf.ByteString + getArgsBytes(int index); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the fileUris. */ - java.util.List getFileUrisList(); + java.util.List + getFileUrisList(); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of fileUris. */ int getFileUrisCount(); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The fileUris at the given index. */ java.lang.String getFileUris(int index); /** - * - * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - com.google.protobuf.ByteString getFileUrisBytes(int index); + com.google.protobuf.ByteString + getFileUrisBytes(int index); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -174,13 +131,11 @@ public interface SparkRJobOrBuilder
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the archiveUris. */ - java.util.List getArchiveUrisList(); + java.util.List + getArchiveUrisList(); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -188,13 +143,10 @@ public interface SparkRJobOrBuilder
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of archiveUris. */ int getArchiveUrisCount(); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -202,14 +154,11 @@ public interface SparkRJobOrBuilder
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The archiveUris at the given index. */ java.lang.String getArchiveUris(int index); /** - * - * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -217,15 +166,13 @@ public interface SparkRJobOrBuilder
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - com.google.protobuf.ByteString getArchiveUrisBytes(int index); + com.google.protobuf.ByteString + getArchiveUrisBytes(int index); /** - * - * *
    * Optional. A mapping of property names to values, used to configure SparkR.
    * Properties that conflict with values set by the Dataproc API may be
@@ -233,13 +180,10 @@ public interface SparkRJobOrBuilder
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getPropertiesCount(); /** - * - * *
    * Optional. A mapping of property names to values, used to configure SparkR.
    * Properties that conflict with values set by the Dataproc API may be
@@ -247,16 +191,17 @@ public interface SparkRJobOrBuilder
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsProperties( + java.lang.String key); + /** + * Use {@link #getPropertiesMap()} instead. */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map getProperties(); + java.util.Map + getProperties(); /** - * - * *
    * Optional. A mapping of property names to values, used to configure SparkR.
    * Properties that conflict with values set by the Dataproc API may be
@@ -264,13 +209,11 @@ public interface SparkRJobOrBuilder
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getPropertiesMap(); + java.util.Map + getPropertiesMap(); /** - * - * *
    * Optional. A mapping of property names to values, used to configure SparkR.
    * Properties that conflict with values set by the Dataproc API may be
@@ -278,18 +221,15 @@ public interface SparkRJobOrBuilder
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getPropertiesOrDefault( +java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. A mapping of property names to values, used to configure SparkR.
    * Properties that conflict with values set by the Dataproc API may be
@@ -297,49 +237,36 @@ java.lang.String getPropertiesOrDefault(
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getPropertiesOrThrow(java.lang.String key); + + java.lang.String getPropertiesOrThrow( + java.lang.String key); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ boolean hasLoggingConfig(); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java similarity index 64% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java index 2f60b5de0dc9..28bf04869c59 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.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/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A configuration for running
  * [Apache Spark SQL](http://spark.apache.org/sql/) queries as a batch workload.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.SparkSqlBatch}
  */
-public final class SparkSqlBatch extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SparkSqlBatch extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkSqlBatch)
     SparkSqlBatchOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SparkSqlBatch.newBuilder() to construct.
   private SparkSqlBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SparkSqlBatch() {
     queryFileUri_ = "";
     jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -45,52 +27,49 @@ private SparkSqlBatch() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SparkSqlBatch();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.BatchesProto
-        .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 2:
         return internalGetQueryVariables();
       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.dataproc.v1.BatchesProto
-        .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.SparkSqlBatch.class,
-            com.google.cloud.dataproc.v1.SparkSqlBatch.Builder.class);
+            com.google.cloud.dataproc.v1.SparkSqlBatch.class, com.google.cloud.dataproc.v1.SparkSqlBatch.Builder.class);
   }
 
   public static final int QUERY_FILE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object queryFileUri_;
   /**
-   *
-   *
    * 
    * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
    * 
* * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The queryFileUri. */ @java.lang.Override @@ -99,29 +78,29 @@ public java.lang.String getQueryFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryFileUri_ = s; return s; } } /** - * - * *
    * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
    * 
* * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for queryFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString getQueryFileUriBytes() { + public com.google.protobuf.ByteString + getQueryFileUriBytes() { java.lang.Object ref = queryFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); queryFileUri_ = b; return b; } else { @@ -130,22 +109,21 @@ public com.google.protobuf.ByteString getQueryFileUriBytes() { } public static final int QUERY_VARIABLES_FIELD_NUMBER = 2; - private static final class QueryVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_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.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField queryVariables_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> queryVariables_; private com.google.protobuf.MapField - internalGetQueryVariables() { + internalGetQueryVariables() { if (queryVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( QueryVariablesDefaultEntryHolder.defaultEntry); @@ -157,81 +135,74 @@ public int getQueryVariablesCount() { return internalGetQueryVariables().getMap().size(); } /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: `SET name="value";`).
    * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsQueryVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsQueryVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetQueryVariables().getMap().containsKey(key); } - /** Use {@link #getQueryVariablesMap()} instead. */ + /** + * Use {@link #getQueryVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getQueryVariables() { return getQueryVariablesMap(); } /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: `SET name="value";`).
    * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getQueryVariablesMap() { return internalGetQueryVariables().getMap(); } /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: `SET name="value";`).
    * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getQueryVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetQueryVariables().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetQueryVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: `SET name="value";`).
    * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getQueryVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetQueryVariables().getMap(); + + public java.lang.String getQueryVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetQueryVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -241,42 +212,34 @@ public java.lang.String getQueryVariablesOrThrow(java.lang.String key) { public static final int JAR_FILE_URIS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList jarFileUris_; /** - * - * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList + getJarFileUrisList() { return jarFileUris_; } /** - * - * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -284,23 +247,20 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -312,12 +272,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryFileUri_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetQueryVariables(), QueryVariablesDefaultEntryHolder.defaultEntry, 2); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetQueryVariables(), + QueryVariablesDefaultEntryHolder.defaultEntry, + 2); for (int i = 0; i < jarFileUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jarFileUris_.getRaw(i)); } @@ -333,15 +298,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryFileUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queryFileUri_); } - for (java.util.Map.Entry entry : - internalGetQueryVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry queryVariables__ = - QueryVariablesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, queryVariables__); + for (java.util.Map.Entry entry + : internalGetQueryVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry + queryVariables__ = QueryVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, queryVariables__); } { int dataSize = 0; @@ -359,17 +324,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.SparkSqlBatch)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.SparkSqlBatch other = - (com.google.cloud.dataproc.v1.SparkSqlBatch) obj; + com.google.cloud.dataproc.v1.SparkSqlBatch other = (com.google.cloud.dataproc.v1.SparkSqlBatch) obj; - if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; - if (!internalGetQueryVariables().equals(other.internalGetQueryVariables())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; + if (!getQueryFileUri() + .equals(other.getQueryFileUri())) return false; + if (!internalGetQueryVariables().equals( + other.internalGetQueryVariables())) return false; + if (!getJarFileUrisList() + .equals(other.getJarFileUrisList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -396,104 +363,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.SparkSqlBatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 configuration for running
    * [Apache Spark SQL](http://spark.apache.org/sql/) queries as a batch workload.
@@ -501,52 +461,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.SparkSqlBatch}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkSqlBatch)
       com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.BatchesProto
-          .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetQueryVariables();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetMutableQueryVariables();
         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.dataproc.v1.BatchesProto
-          .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.SparkSqlBatch.class,
-              com.google.cloud.dataproc.v1.SparkSqlBatch.Builder.class);
+              com.google.cloud.dataproc.v1.SparkSqlBatch.class, com.google.cloud.dataproc.v1.SparkSqlBatch.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.SparkSqlBatch.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -559,9 +522,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.BatchesProto
-          .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor;
     }
 
     @java.lang.Override
@@ -580,8 +543,7 @@ public com.google.cloud.dataproc.v1.SparkSqlBatch build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.SparkSqlBatch buildPartial() {
-      com.google.cloud.dataproc.v1.SparkSqlBatch result =
-          new com.google.cloud.dataproc.v1.SparkSqlBatch(this);
+      com.google.cloud.dataproc.v1.SparkSqlBatch result = new com.google.cloud.dataproc.v1.SparkSqlBatch(this);
       int from_bitField0_ = bitField0_;
       result.queryFileUri_ = queryFileUri_;
       result.queryVariables_ = internalGetQueryVariables();
@@ -599,39 +561,38 @@ public com.google.cloud.dataproc.v1.SparkSqlBatch buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.SparkSqlBatch) {
-        return mergeFrom((com.google.cloud.dataproc.v1.SparkSqlBatch) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.SparkSqlBatch)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -644,7 +605,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkSqlBatch other) {
         queryFileUri_ = other.queryFileUri_;
         onChanged();
       }
-      internalGetMutableQueryVariables().mergeFrom(other.internalGetQueryVariables());
+      internalGetMutableQueryVariables().mergeFrom(
+          other.internalGetQueryVariables());
       if (!other.jarFileUris_.isEmpty()) {
         if (jarFileUris_.isEmpty()) {
           jarFileUris_ = other.jarFileUris_;
@@ -681,37 +643,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                queryFileUri_ = input.readStringRequireUtf8();
+            case 10: {
+              queryFileUri_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.protobuf.MapEntry queryVariables__ =
-                    input.readMessage(
-                        QueryVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableQueryVariables()
-                    .getMutableMap()
-                    .put(queryVariables__.getKey(), queryVariables__.getValue());
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureJarFileUrisIsMutable();
-                jarFileUris_.add(s);
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 10
+            case 18: {
+              com.google.protobuf.MapEntry
+              queryVariables__ = input.readMessage(
+                  QueryVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableQueryVariables().getMutableMap().put(
+                  queryVariables__.getKey(), queryVariables__.getValue());
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureJarFileUrisIsMutable();
+              jarFileUris_.add(s);
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -721,25 +677,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object queryFileUri_ = "";
     /**
-     *
-     *
      * 
      * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
      * 
* * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The queryFileUri. */ public java.lang.String getQueryFileUri() { java.lang.Object ref = queryFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryFileUri_ = s; return s; @@ -748,21 +701,20 @@ public java.lang.String getQueryFileUri() { } } /** - * - * *
      * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
      * 
* * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for queryFileUri. */ - public com.google.protobuf.ByteString getQueryFileUriBytes() { + public com.google.protobuf.ByteString + getQueryFileUriBytes() { java.lang.Object ref = queryFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); queryFileUri_ = b; return b; } else { @@ -770,84 +722,75 @@ public com.google.protobuf.ByteString getQueryFileUriBytes() { } } /** - * - * *
      * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
      * 
* * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUri(java.lang.String value) { + public Builder setQueryFileUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + queryFileUri_ = value; onChanged(); return this; } /** - * - * *
      * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
      * 
* * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearQueryFileUri() { - + queryFileUri_ = getDefaultInstance().getQueryFileUri(); onChanged(); return this; } /** - * - * *
      * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
      * 
* * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { + public Builder setQueryFileUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryFileUri_ = value; onChanged(); return this; } - private com.google.protobuf.MapField queryVariables_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> queryVariables_; private com.google.protobuf.MapField - internalGetQueryVariables() { + internalGetQueryVariables() { if (queryVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( QueryVariablesDefaultEntryHolder.defaultEntry); } return queryVariables_; } - private com.google.protobuf.MapField - internalGetMutableQueryVariables() { - onChanged(); - ; + internalGetMutableQueryVariables() { + onChanged();; if (queryVariables_ == null) { - queryVariables_ = - com.google.protobuf.MapField.newMapField(QueryVariablesDefaultEntryHolder.defaultEntry); + queryVariables_ = com.google.protobuf.MapField.newMapField( + QueryVariablesDefaultEntryHolder.defaultEntry); } if (!queryVariables_.isMutable()) { queryVariables_ = queryVariables_.copy(); @@ -859,85 +802,74 @@ public int getQueryVariablesCount() { return internalGetQueryVariables().getMap().size(); } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: `SET name="value";`).
      * 
* - * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsQueryVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsQueryVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetQueryVariables().getMap().containsKey(key); } - /** Use {@link #getQueryVariablesMap()} instead. */ + /** + * Use {@link #getQueryVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getQueryVariables() { return getQueryVariablesMap(); } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: `SET name="value";`).
      * 
* - * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getQueryVariablesMap() { return internalGetQueryVariables().getMap(); } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: `SET name="value";`).
      * 
* - * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getQueryVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetQueryVariables().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetQueryVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: `SET name="value";`).
      * 
* - * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getQueryVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetQueryVariables().getMap(); + + public java.lang.String getQueryVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetQueryVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -945,119 +877,106 @@ public java.lang.String getQueryVariablesOrThrow(java.lang.String key) { } public Builder clearQueryVariables() { - internalGetMutableQueryVariables().getMutableMap().clear(); + internalGetMutableQueryVariables().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: `SET name="value";`).
      * 
* - * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeQueryVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableQueryVariables().getMutableMap().remove(key); + + public Builder removeQueryVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableQueryVariables().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableQueryVariables() { + public java.util.Map + getMutableQueryVariables() { return internalGetMutableQueryVariables().getMutableMap(); } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: `SET name="value";`).
      * 
* - * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putQueryVariables(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putQueryVariables( + 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"); +} - internalGetMutableQueryVariables().getMutableMap().put(key, value); + internalGetMutableQueryVariables().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: `SET name="value";`).
      * 
* - * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllQueryVariables(java.util.Map values) { - internalGetMutableQueryVariables().getMutableMap().putAll(values); + + public Builder putAllQueryVariables( + java.util.Map values) { + internalGetMutableQueryVariables().getMutableMap() + .putAll(values); return this; } - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureJarFileUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList + getJarFileUrisList() { return jarFileUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -1065,90 +984,80 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The jarFileUris to set. * @return This builder for chaining. */ - public Builder setJarFileUris(int index, java.lang.String value) { + public Builder setJarFileUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUris(java.lang.String value) { + public Builder addJarFileUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The jarFileUris to add. * @return This builder for chaining. */ - public Builder addAllJarFileUris(java.lang.Iterable values) { + public Builder addAllJarFileUris( + java.lang.Iterable values) { ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, jarFileUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearJarFileUris() { @@ -1158,30 +1067,28 @@ public Builder clearJarFileUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { + public Builder addJarFileUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureJarFileUrisIsMutable(); jarFileUris_.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); } @@ -1191,12 +1098,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SparkSqlBatch) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkSqlBatch) private static final com.google.cloud.dataproc.v1.SparkSqlBatch DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkSqlBatch(); } @@ -1205,27 +1112,27 @@ public static com.google.cloud.dataproc.v1.SparkSqlBatch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkSqlBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkSqlBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1240,4 +1147,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SparkSqlBatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java similarity index 67% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java index 7d6a521457e3..8f8ba6cabc9a 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java @@ -1,170 +1,131 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; -public interface SparkSqlBatchOrBuilder - extends +public interface SparkSqlBatchOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkSqlBatch) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
    * 
* * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The queryFileUri. */ java.lang.String getQueryFileUri(); /** - * - * *
    * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
    * 
* * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for queryFileUri. */ - com.google.protobuf.ByteString getQueryFileUriBytes(); + com.google.protobuf.ByteString + getQueryFileUriBytes(); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: `SET name="value";`).
    * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; */ int getQueryVariablesCount(); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: `SET name="value";`).
    * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsQueryVariables( + java.lang.String key); + /** + * Use {@link #getQueryVariablesMap()} instead. */ - boolean containsQueryVariables(java.lang.String key); - /** Use {@link #getQueryVariablesMap()} instead. */ @java.lang.Deprecated - java.util.Map getQueryVariables(); + java.util.Map + getQueryVariables(); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: `SET name="value";`).
    * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getQueryVariablesMap(); + java.util.Map + getQueryVariablesMap(); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: `SET name="value";`).
    * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getQueryVariablesOrDefault( +java.lang.String getQueryVariablesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: `SET name="value";`).
    * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getQueryVariablesOrThrow(java.lang.String key); + + java.lang.String getQueryVariablesOrThrow( + java.lang.String key); /** - * - * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - java.util.List getJarFileUrisList(); + java.util.List + getJarFileUrisList(); /** - * - * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ int getJarFileUrisCount(); /** - * - * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ java.lang.String getJarFileUris(int index); /** - * - * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); + com.google.protobuf.ByteString + getJarFileUrisBytes(int index); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java similarity index 63% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java index 4946523c306e..ac43169e8c94 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java @@ -1,98 +1,77 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A Dataproc job for running [Apache Spark
- * SQL](http://spark.apache.org/sql/) queries.
+ * SQL](https://spark.apache.org/sql/) queries.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.SparkSqlJob} */ -public final class SparkSqlJob extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SparkSqlJob extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkSqlJob) SparkSqlJobOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SparkSqlJob.newBuilder() to construct. private SparkSqlJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SparkSqlJob() { jarFileUris_ = 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 SparkSqlJob(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkSqlJob_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 3: return internalGetScriptVariables(); case 4: return internalGetProperties(); 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.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkSqlJob.class, - com.google.cloud.dataproc.v1.SparkSqlJob.Builder.class); + com.google.cloud.dataproc.v1.SparkSqlJob.class, com.google.cloud.dataproc.v1.SparkSqlJob.Builder.class); } private int queriesCase_ = 0; private java.lang.Object queries_; - public enum QueriesCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { QUERY_FILE_URI(1), QUERY_LIST(2), QUERIES_NOT_SET(0); private final int value; - private QueriesCase(int value) { this.value = value; } @@ -108,50 +87,41 @@ public static QueriesCase valueOf(int value) { public static QueriesCase forNumber(int value) { switch (value) { - case 1: - return QUERY_FILE_URI; - case 2: - return QUERY_LIST; - case 0: - return QUERIES_NOT_SET; - default: - return null; + case 1: return QUERY_FILE_URI; + case 2: return QUERY_LIST; + case 0: return QUERIES_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public QueriesCase getQueriesCase() { - return QueriesCase.forNumber(queriesCase_); + public QueriesCase + getQueriesCase() { + return QueriesCase.forNumber( + queriesCase_); } public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; /** - * - * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; - * * @return Whether the queryFileUri field is set. */ public boolean hasQueryFileUri() { return queriesCase_ == 1; } /** - * - * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; - * * @return The queryFileUri. */ public java.lang.String getQueryFileUri() { @@ -162,7 +132,8 @@ public java.lang.String getQueryFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (queriesCase_ == 1) { queries_ = s; @@ -171,24 +142,23 @@ public java.lang.String getQueryFileUri() { } } /** - * - * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; - * * @return The bytes for queryFileUri. */ - public com.google.protobuf.ByteString getQueryFileUriBytes() { + public com.google.protobuf.ByteString + getQueryFileUriBytes() { java.lang.Object ref = ""; if (queriesCase_ == 1) { ref = queries_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (queriesCase_ == 1) { queries_ = b; } @@ -200,14 +170,11 @@ public com.google.protobuf.ByteString getQueryFileUriBytes() { public static final int QUERY_LIST_FIELD_NUMBER = 2; /** - * - * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return Whether the queryList field is set. */ @java.lang.Override @@ -215,26 +182,21 @@ public boolean hasQueryList() { return queriesCase_ == 2; } /** - * - * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return The queryList. */ @java.lang.Override public com.google.cloud.dataproc.v1.QueryList getQueryList() { if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; + return (com.google.cloud.dataproc.v1.QueryList) queries_; } return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } /** - * - * *
    * A list of queries.
    * 
@@ -244,28 +206,27 @@ public com.google.cloud.dataproc.v1.QueryList getQueryList() { @java.lang.Override public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; + return (com.google.cloud.dataproc.v1.QueryList) queries_; } return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } public static final int SCRIPT_VARIABLES_FIELD_NUMBER = 3; - private static final class ScriptVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField scriptVariables_; - + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> scriptVariables_; private com.google.protobuf.MapField - internalGetScriptVariables() { + internalGetScriptVariables() { if (scriptVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( ScriptVariablesDefaultEntryHolder.defaultEntry); @@ -277,81 +238,74 @@ public int getScriptVariablesCount() { return internalGetScriptVariables().getMap().size(); } /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: SET `name="value";`).
    * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsScriptVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsScriptVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetScriptVariables().getMap().containsKey(key); } - /** Use {@link #getScriptVariablesMap()} instead. */ + /** + * Use {@link #getScriptVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getScriptVariables() { return getScriptVariablesMap(); } /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: SET `name="value";`).
    * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getScriptVariablesMap() { return internalGetScriptVariables().getMap(); } /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: SET `name="value";`).
    * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetScriptVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: SET `name="value";`).
    * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); + + public java.lang.String getScriptVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetScriptVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -359,23 +313,24 @@ public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { } public static final int PROPERTIES_FIELD_NUMBER = 4; - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField + internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -384,85 +339,78 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
    * Optional. A mapping of property names to values, used to configure
    * Spark SQL's SparkConf. Properties that conflict with values set by the
    * Dataproc API may be overwritten.
    * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
    * Optional. A mapping of property names to values, used to configure
    * Spark SQL's SparkConf. Properties that conflict with values set by the
    * Dataproc API may be overwritten.
    * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
    * Optional. A mapping of property names to values, used to configure
    * Spark SQL's SparkConf. Properties that conflict with values set by the
    * Dataproc API may be overwritten.
    * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. A mapping of property names to values, used to configure
    * Spark SQL's SparkConf. Properties that conflict with values set by the
    * Dataproc API may be overwritten.
    * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -472,42 +420,34 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { public static final int JAR_FILE_URIS_FIELD_NUMBER = 56; private com.google.protobuf.LazyStringList jarFileUris_; /** - * - * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList + getJarFileUrisList() { return jarFileUris_; } /** - * - * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** - * - * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -515,34 +455,27 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** - * - * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } public static final int LOGGING_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ @java.lang.Override @@ -550,34 +483,23 @@ public boolean hasLoggingConfig() { return loggingConfig_ != null; } /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { @@ -585,7 +507,6 @@ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBui } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -597,17 +518,26 @@ public final boolean isInitialized() { } @java.lang.Override - 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 (queriesCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_); } if (queriesCase_ == 2) { output.writeMessage(2, (com.google.cloud.dataproc.v1.QueryList) queries_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetScriptVariables(), ScriptVariablesDefaultEntryHolder.defaultEntry, 3); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetScriptVariables(), + ScriptVariablesDefaultEntryHolder.defaultEntry, + 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetProperties(), + PropertiesDefaultEntryHolder.defaultEntry, + 4); if (loggingConfig_ != null) { output.writeMessage(6, getLoggingConfig()); } @@ -627,32 +557,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queries_); } if (queriesCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1.QueryList) queries_); - } - for (java.util.Map.Entry entry : - internalGetScriptVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry scriptVariables__ = - ScriptVariablesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, scriptVariables__); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, properties__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.dataproc.v1.QueryList) queries_); + } + for (java.util.Map.Entry entry + : internalGetScriptVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry + scriptVariables__ = ScriptVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, scriptVariables__); + } + for (java.util.Map.Entry entry + : internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, properties__); } if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLoggingConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getLoggingConfig()); } { int dataSize = 0; @@ -670,27 +600,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.dataproc.v1.SparkSqlJob)) { return super.equals(obj); } com.google.cloud.dataproc.v1.SparkSqlJob other = (com.google.cloud.dataproc.v1.SparkSqlJob) obj; - if (!internalGetScriptVariables().equals(other.internalGetScriptVariables())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; + if (!internalGetScriptVariables().equals( + other.internalGetScriptVariables())) return false; + if (!internalGetProperties().equals( + other.internalGetProperties())) return false; + if (!getJarFileUrisList() + .equals(other.getJarFileUrisList())) return false; if (hasLoggingConfig() != other.hasLoggingConfig()) return false; if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; + if (!getLoggingConfig() + .equals(other.getLoggingConfig())) return false; } if (!getQueriesCase().equals(other.getQueriesCase())) return false; switch (queriesCase_) { case 1: - if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; + if (!getQueryFileUri() + .equals(other.getQueryFileUri())) return false; break; case 2: - if (!getQueryList().equals(other.getQueryList())) return false; + if (!getQueryList() + .equals(other.getQueryList())) return false; break; case 0: default: @@ -739,161 +675,157 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.SparkSqlJob parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.SparkSqlJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkSqlJob parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.SparkSqlJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc job for running [Apache Spark
-   * SQL](http://spark.apache.org/sql/) queries.
+   * SQL](https://spark.apache.org/sql/) queries.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.SparkSqlJob} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkSqlJob) com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetScriptVariables(); case 4: return internalGetProperties(); 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 3: return internalGetMutableScriptVariables(); case 4: return internalGetMutableProperties(); 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.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkSqlJob.class, - com.google.cloud.dataproc.v1.SparkSqlJob.Builder.class); + com.google.cloud.dataproc.v1.SparkSqlJob.class, com.google.cloud.dataproc.v1.SparkSqlJob.Builder.class); } // Construct using com.google.cloud.dataproc.v1.SparkSqlJob.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -916,9 +848,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor; } @java.lang.Override @@ -937,8 +869,7 @@ public com.google.cloud.dataproc.v1.SparkSqlJob build() { @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlJob buildPartial() { - com.google.cloud.dataproc.v1.SparkSqlJob result = - new com.google.cloud.dataproc.v1.SparkSqlJob(this); + com.google.cloud.dataproc.v1.SparkSqlJob result = new com.google.cloud.dataproc.v1.SparkSqlJob(this); int from_bitField0_ = bitField0_; if (queriesCase_ == 1) { result.queries_ = queries_; @@ -973,39 +904,38 @@ public com.google.cloud.dataproc.v1.SparkSqlJob buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.SparkSqlJob) { - return mergeFrom((com.google.cloud.dataproc.v1.SparkSqlJob) other); + return mergeFrom((com.google.cloud.dataproc.v1.SparkSqlJob)other); } else { super.mergeFrom(other); return this; @@ -1014,8 +944,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkSqlJob other) { if (other == com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance()) return this; - internalGetMutableScriptVariables().mergeFrom(other.internalGetScriptVariables()); - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); + internalGetMutableScriptVariables().mergeFrom( + other.internalGetScriptVariables()); + internalGetMutableProperties().mergeFrom( + other.internalGetProperties()); if (!other.jarFileUris_.isEmpty()) { if (jarFileUris_.isEmpty()) { jarFileUris_ = other.jarFileUris_; @@ -1030,22 +962,19 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkSqlJob other) { mergeLoggingConfig(other.getLoggingConfig()); } switch (other.getQueriesCase()) { - case QUERY_FILE_URI: - { - queriesCase_ = 1; - queries_ = other.queries_; - onChanged(); - break; - } - case QUERY_LIST: - { - mergeQueryList(other.getQueryList()); - break; - } - case QUERIES_NOT_SET: - { - break; - } + case QUERY_FILE_URI: { + queriesCase_ = 1; + queries_ = other.queries_; + onChanged(); + break; + } + case QUERY_LIST: { + mergeQueryList(other.getQueryList()); + break; + } + case QUERIES_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1073,61 +1002,54 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - queriesCase_ = 1; - queries_ = s; - break; - } // case 10 - case 18: - { - input.readMessage(getQueryListFieldBuilder().getBuilder(), extensionRegistry); - queriesCase_ = 2; - break; - } // case 18 - case 26: - { - com.google.protobuf.MapEntry scriptVariables__ = - input.readMessage( - ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableScriptVariables() - .getMutableMap() - .put(scriptVariables__.getKey(), scriptVariables__.getValue()); - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableProperties() - .getMutableMap() - .put(properties__.getKey(), properties__.getValue()); - break; - } // case 34 - case 50: - { - input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 450: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(s); - break; - } // case 450 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + queriesCase_ = 1; + queries_ = s; + break; + } // case 10 + case 18: { + input.readMessage( + getQueryListFieldBuilder().getBuilder(), + extensionRegistry); + queriesCase_ = 2; + break; + } // case 18 + case 26: { + com.google.protobuf.MapEntry + scriptVariables__ = input.readMessage( + ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableScriptVariables().getMutableMap().put( + scriptVariables__.getKey(), scriptVariables__.getValue()); + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + properties__ = input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableProperties().getMutableMap().put( + properties__.getKey(), properties__.getValue()); + break; + } // case 34 + case 50: { + input.readMessage( + getLoggingConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + case 450: { + java.lang.String s = input.readStringRequireUtf8(); + ensureJarFileUrisIsMutable(); + jarFileUris_.add(s); + break; + } // case 450 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1137,12 +1059,12 @@ public Builder mergeFrom( } // finally return this; } - private int queriesCase_ = 0; private java.lang.Object queries_; - - public QueriesCase getQueriesCase() { - return QueriesCase.forNumber(queriesCase_); + public QueriesCase + getQueriesCase() { + return QueriesCase.forNumber( + queriesCase_); } public Builder clearQueries() { @@ -1155,14 +1077,11 @@ public Builder clearQueries() { private int bitField0_; /** - * - * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; - * * @return Whether the queryFileUri field is set. */ @java.lang.Override @@ -1170,14 +1089,11 @@ public boolean hasQueryFileUri() { return queriesCase_ == 1; } /** - * - * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; - * * @return The queryFileUri. */ @java.lang.Override @@ -1187,7 +1103,8 @@ public java.lang.String getQueryFileUri() { ref = queries_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (queriesCase_ == 1) { queries_ = s; @@ -1198,25 +1115,24 @@ public java.lang.String getQueryFileUri() { } } /** - * - * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; - * * @return The bytes for queryFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString getQueryFileUriBytes() { + public com.google.protobuf.ByteString + getQueryFileUriBytes() { java.lang.Object ref = ""; if (queriesCase_ == 1) { ref = queries_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (queriesCase_ == 1) { queries_ = b; } @@ -1226,35 +1142,30 @@ public com.google.protobuf.ByteString getQueryFileUriBytes() { } } /** - * - * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; - * * @param value The queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUri(java.lang.String value) { + public Builder setQueryFileUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - queriesCase_ = 1; + throw new NullPointerException(); + } + queriesCase_ = 1; queries_ = value; onChanged(); return this; } /** - * - * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; - * * @return This builder for chaining. */ public Builder clearQueryFileUri() { @@ -1266,22 +1177,20 @@ public Builder clearQueryFileUri() { return this; } /** - * - * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; - * * @param value The bytes for queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { + public Builder setQueryFileUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); queriesCase_ = 1; queries_ = value; onChanged(); @@ -1289,19 +1198,13 @@ public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder> - queryListBuilder_; + com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder> queryListBuilder_; /** - * - * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return Whether the queryList field is set. */ @java.lang.Override @@ -1309,14 +1212,11 @@ public boolean hasQueryList() { return queriesCase_ == 2; } /** - * - * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return The queryList. */ @java.lang.Override @@ -1334,8 +1234,6 @@ public com.google.cloud.dataproc.v1.QueryList getQueryList() { } } /** - * - * *
      * A list of queries.
      * 
@@ -1356,15 +1254,14 @@ public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList value) { return this; } /** - * - * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; */ - public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { + public Builder setQueryList( + com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { if (queryListBuilder_ == null) { queries_ = builderForValue.build(); onChanged(); @@ -1375,8 +1272,6 @@ public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder build return this; } /** - * - * *
      * A list of queries.
      * 
@@ -1385,13 +1280,10 @@ public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder build */ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { if (queryListBuilder_ == null) { - if (queriesCase_ == 2 - && queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { - queries_ = - com.google.cloud.dataproc.v1.QueryList.newBuilder( - (com.google.cloud.dataproc.v1.QueryList) queries_) - .mergeFrom(value) - .buildPartial(); + if (queriesCase_ == 2 && + queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { + queries_ = com.google.cloud.dataproc.v1.QueryList.newBuilder((com.google.cloud.dataproc.v1.QueryList) queries_) + .mergeFrom(value).buildPartial(); } else { queries_ = value; } @@ -1407,8 +1299,6 @@ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { return this; } /** - * - * *
      * A list of queries.
      * 
@@ -1432,8 +1322,6 @@ public Builder clearQueryList() { return this; } /** - * - * *
      * A list of queries.
      * 
@@ -1444,8 +1332,6 @@ public com.google.cloud.dataproc.v1.QueryList.Builder getQueryListBuilder() { return getQueryListFieldBuilder().getBuilder(); } /** - * - * *
      * A list of queries.
      * 
@@ -1464,8 +1350,6 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { } } /** - * - * *
      * A list of queries.
      * 
@@ -1473,49 +1357,40 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { * .google.cloud.dataproc.v1.QueryList query_list = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder> + com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder> getQueryListFieldBuilder() { if (queryListBuilder_ == null) { if (!(queriesCase_ == 2)) { queries_ = com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } - queryListBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder>( + queryListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder>( (com.google.cloud.dataproc.v1.QueryList) queries_, getParentForChildren(), isClean()); queries_ = null; } queriesCase_ = 2; - onChanged(); - ; + onChanged();; return queryListBuilder_; } - private com.google.protobuf.MapField scriptVariables_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> scriptVariables_; private com.google.protobuf.MapField - internalGetScriptVariables() { + internalGetScriptVariables() { if (scriptVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( ScriptVariablesDefaultEntryHolder.defaultEntry); } return scriptVariables_; } - private com.google.protobuf.MapField - internalGetMutableScriptVariables() { - onChanged(); - ; + internalGetMutableScriptVariables() { + onChanged();; if (scriptVariables_ == null) { - scriptVariables_ = - com.google.protobuf.MapField.newMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); + scriptVariables_ = com.google.protobuf.MapField.newMapField( + ScriptVariablesDefaultEntryHolder.defaultEntry); } if (!scriptVariables_.isMutable()) { scriptVariables_ = scriptVariables_.copy(); @@ -1527,85 +1402,74 @@ public int getScriptVariablesCount() { return internalGetScriptVariables().getMap().size(); } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: SET `name="value";`).
      * 
* - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsScriptVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsScriptVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetScriptVariables().getMap().containsKey(key); } - /** Use {@link #getScriptVariablesMap()} instead. */ + /** + * Use {@link #getScriptVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getScriptVariables() { return getScriptVariablesMap(); } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: SET `name="value";`).
      * 
* - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getScriptVariablesMap() { return internalGetScriptVariables().getMap(); } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: SET `name="value";`).
      * 
* - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetScriptVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: SET `name="value";`).
      * 
* - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); + + public java.lang.String getScriptVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetScriptVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1613,91 +1477,86 @@ public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { } public Builder clearScriptVariables() { - internalGetMutableScriptVariables().getMutableMap().clear(); + internalGetMutableScriptVariables().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: SET `name="value";`).
      * 
* - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeScriptVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableScriptVariables().getMutableMap().remove(key); + + public Builder removeScriptVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableScriptVariables().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableScriptVariables() { + public java.util.Map + getMutableScriptVariables() { return internalGetMutableScriptVariables().getMutableMap(); } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: SET `name="value";`).
      * 
* - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putScriptVariables(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putScriptVariables( + 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"); +} - internalGetMutableScriptVariables().getMutableMap().put(key, value); + internalGetMutableScriptVariables().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: SET `name="value";`).
      * 
* - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllScriptVariables(java.util.Map values) { - internalGetMutableScriptVariables().getMutableMap().putAll(values); + + public Builder putAllScriptVariables( + java.util.Map values) { + internalGetMutableScriptVariables().getMutableMap() + .putAll(values); return this; } - private com.google.protobuf.MapField properties_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; + internalGetMutableProperties() { + onChanged();; if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); + properties_ = com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -1709,85 +1568,78 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure
      * Spark SQL's SparkConf. Properties that conflict with values set by the
      * Dataproc API may be overwritten.
      * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure
      * Spark SQL's SparkConf. Properties that conflict with values set by the
      * Dataproc API may be overwritten.
      * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure
      * Spark SQL's SparkConf. Properties that conflict with values set by the
      * Dataproc API may be overwritten.
      * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. A mapping of property names to values, used to configure
      * Spark SQL's SparkConf. Properties that conflict with values set by the
      * Dataproc API may be overwritten.
      * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1795,119 +1647,109 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) { } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); + internalGetMutableProperties().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. A mapping of property names to values, used to configure
      * Spark SQL's SparkConf. Properties that conflict with values set by the
      * Dataproc API may be overwritten.
      * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); + + public Builder removeProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableProperties().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableProperties() { + public java.util.Map + getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** - * - * *
      * Optional. A mapping of property names to values, used to configure
      * Spark SQL's SparkConf. Properties that conflict with values set by the
      * Dataproc API may be overwritten.
      * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putProperties( + 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"); +} - internalGetMutableProperties().getMutableMap().put(key, value); + internalGetMutableProperties().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. A mapping of property names to values, used to configure
      * Spark SQL's SparkConf. Properties that conflict with values set by the
      * Dataproc API may be overwritten.
      * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); + + public Builder putAllProperties( + java.util.Map values) { + internalGetMutableProperties().getMutableMap() + .putAll(values); return this; } - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureJarFileUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList + getJarFileUrisList() { return jarFileUris_.getUnmodifiableView(); } /** - * - * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** - * - * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -1915,90 +1757,80 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** - * - * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString + getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } /** - * - * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The jarFileUris to set. * @return This builder for chaining. */ - public Builder setJarFileUris(int index, java.lang.String value) { + public Builder setJarFileUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUris(java.lang.String value) { + public Builder addJarFileUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The jarFileUris to add. * @return This builder for chaining. */ - public Builder addAllJarFileUris(java.lang.Iterable values) { + public Builder addAllJarFileUris( + java.lang.Iterable values) { ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, jarFileUris_); onChanged(); return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearJarFileUris() { @@ -2008,22 +1840,20 @@ public Builder clearJarFileUris() { return this; } /** - * - * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { + public Builder addJarFileUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); @@ -2032,58 +1862,39 @@ public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - loggingConfigBuilder_; + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> loggingConfigBuilder_; /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ public boolean hasLoggingConfig() { return loggingConfigBuilder_ != null || loggingConfig_ != null; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } else { return loggingConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { @@ -2099,15 +1910,11 @@ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLoggingConfig( com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { @@ -2121,23 +1928,17 @@ public Builder setLoggingConfig( return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { if (loggingConfig_ != null) { loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); } else { loggingConfig_ = value; } @@ -2149,15 +1950,11 @@ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig val return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearLoggingConfig() { if (loggingConfigBuilder_ == null) { @@ -2171,71 +1968,55 @@ public Builder clearLoggingConfig() { return this; } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - + onChanged(); return getLoggingConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { if (loggingConfigBuilder_ != null) { return loggingConfigBuilder_.getMessageOrBuilder(); } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? + com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; } } /** - * - * *
      * Optional. The runtime log config for job execution.
      * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> getLoggingConfigFieldBuilder() { if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); + loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( + getLoggingConfig(), + getParentForChildren(), + isClean()); loggingConfig_ = null; } return loggingConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2245,12 +2026,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SparkSqlJob) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkSqlJob) private static final com.google.cloud.dataproc.v1.SparkSqlJob DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkSqlJob(); } @@ -2259,27 +2040,27 @@ public static com.google.cloud.dataproc.v1.SparkSqlJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkSqlJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkSqlJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2294,4 +2075,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SparkSqlJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java index 5c89007c8880..8dfd6ba69b20 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java @@ -1,92 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface SparkSqlJobOrBuilder - extends +public interface SparkSqlJobOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkSqlJob) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; - * * @return Whether the queryFileUri field is set. */ boolean hasQueryFileUri(); /** - * - * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; - * * @return The queryFileUri. */ java.lang.String getQueryFileUri(); /** - * - * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; - * * @return The bytes for queryFileUri. */ - com.google.protobuf.ByteString getQueryFileUriBytes(); + com.google.protobuf.ByteString + getQueryFileUriBytes(); /** - * - * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return Whether the queryList field is set. */ boolean hasQueryList(); /** - * - * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; - * * @return The queryList. */ com.google.cloud.dataproc.v1.QueryList getQueryList(); /** - * - * *
    * A list of queries.
    * 
@@ -96,237 +64,197 @@ public interface SparkSqlJobOrBuilder com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder(); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: SET `name="value";`).
    * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; */ int getScriptVariablesCount(); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: SET `name="value";`).
    * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsScriptVariables( + java.lang.String key); + /** + * Use {@link #getScriptVariablesMap()} instead. */ - boolean containsScriptVariables(java.lang.String key); - /** Use {@link #getScriptVariablesMap()} instead. */ @java.lang.Deprecated - java.util.Map getScriptVariables(); + java.util.Map + getScriptVariables(); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: SET `name="value";`).
    * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getScriptVariablesMap(); + java.util.Map + getScriptVariablesMap(); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: SET `name="value";`).
    * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getScriptVariablesOrDefault( +java.lang.String getScriptVariablesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: SET `name="value";`).
    * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getScriptVariablesOrThrow(java.lang.String key); + + java.lang.String getScriptVariablesOrThrow( + java.lang.String key); /** - * - * *
    * Optional. A mapping of property names to values, used to configure
    * Spark SQL's SparkConf. Properties that conflict with values set by the
    * Dataproc API may be overwritten.
    * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; */ int getPropertiesCount(); /** - * - * *
    * Optional. A mapping of property names to values, used to configure
    * Spark SQL's SparkConf. Properties that conflict with values set by the
    * Dataproc API may be overwritten.
    * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsProperties( + java.lang.String key); + /** + * Use {@link #getPropertiesMap()} instead. */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map getProperties(); + java.util.Map + getProperties(); /** - * - * *
    * Optional. A mapping of property names to values, used to configure
    * Spark SQL's SparkConf. Properties that conflict with values set by the
    * Dataproc API may be overwritten.
    * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getPropertiesMap(); + java.util.Map + getPropertiesMap(); /** - * - * *
    * Optional. A mapping of property names to values, used to configure
    * Spark SQL's SparkConf. Properties that conflict with values set by the
    * Dataproc API may be overwritten.
    * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getPropertiesOrDefault( +java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. A mapping of property names to values, used to configure
    * Spark SQL's SparkConf. Properties that conflict with values set by the
    * Dataproc API may be overwritten.
    * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getPropertiesOrThrow(java.lang.String key); + + java.lang.String getPropertiesOrThrow( + java.lang.String key); /** - * - * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the jarFileUris. */ - java.util.List getJarFileUrisList(); + java.util.List + getJarFileUrisList(); /** - * - * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of jarFileUris. */ int getJarFileUrisCount(); /** - * - * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ java.lang.String getJarFileUris(int index); /** - * - * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); + com.google.protobuf.ByteString + getJarFileUrisBytes(int index); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the loggingConfig field is set. */ boolean hasLoggingConfig(); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The loggingConfig. */ com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); /** - * - * *
    * Optional. The runtime log config for job execution.
    * 
* - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java similarity index 73% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java index bce3949828bd..a99c7f435ed7 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to start a cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.StartClusterRequest} */ -public final class StartClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.StartClusterRequest) StartClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartClusterRequest.newBuilder() to construct. private StartClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartClusterRequest() { projectId_ = ""; region_ = ""; @@ -47,42 +29,38 @@ private StartClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.StartClusterRequest.class, - com.google.cloud.dataproc.v1.StartClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.StartClusterRequest.class, com.google.cloud.dataproc.v1.StartClusterRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -91,30 +69,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -125,14 +103,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int REGION_FIELD_NUMBER = 2; private volatile java.lang.Object region_; /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ @java.lang.Override @@ -141,29 +116,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -174,14 +149,11 @@ public com.google.protobuf.ByteString getRegionBytes() { public static final int CLUSTER_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object clusterName_; /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ @java.lang.Override @@ -190,29 +162,29 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -223,15 +195,12 @@ public com.google.protobuf.ByteString getClusterNameBytes() { public static final int CLUSTER_UUID_FIELD_NUMBER = 4; private volatile java.lang.Object clusterUuid_; /** - * - * *
    * Optional. Specifying the `cluster_uuid` means the RPC will fail
    * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The clusterUuid. */ @java.lang.Override @@ -240,30 +209,30 @@ public java.lang.String getClusterUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; } } /** - * - * *
    * Optional. Specifying the `cluster_uuid` means the RPC will fail
    * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for clusterUuid. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { + public com.google.protobuf.ByteString + getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -274,15 +243,13 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 5; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * Recommendation: Set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -290,7 +257,6 @@ public com.google.protobuf.ByteString getClusterUuidBytes() {
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -299,22 +265,21 @@ 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. A unique ID used to identify the request. If the server
    * receives two
    * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * Recommendation: Set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -322,15 +287,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 5 [(.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 { @@ -339,7 +305,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -351,7 +316,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -399,19 +365,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.StartClusterRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.StartClusterRequest other = - (com.google.cloud.dataproc.v1.StartClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (!getClusterUuid().equals(other.getClusterUuid())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + com.google.cloud.dataproc.v1.StartClusterRequest other = (com.google.cloud.dataproc.v1.StartClusterRequest) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getRegion() + .equals(other.getRegion())) return false; + if (!getClusterName() + .equals(other.getClusterName())) return false; + if (!getClusterUuid() + .equals(other.getClusterUuid())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -438,136 +408,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.StartClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.StartClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.StartClusterRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.StartClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to start a cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.StartClusterRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.StartClusterRequest) com.google.cloud.dataproc.v1.StartClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.StartClusterRequest.class, - com.google.cloud.dataproc.v1.StartClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.StartClusterRequest.class, com.google.cloud.dataproc.v1.StartClusterRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.StartClusterRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -585,9 +549,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; } @java.lang.Override @@ -606,8 +570,7 @@ public com.google.cloud.dataproc.v1.StartClusterRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.StartClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.StartClusterRequest result = - new com.google.cloud.dataproc.v1.StartClusterRequest(this); + com.google.cloud.dataproc.v1.StartClusterRequest result = new com.google.cloud.dataproc.v1.StartClusterRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.clusterName_ = clusterName_; @@ -621,39 +584,38 @@ public com.google.cloud.dataproc.v1.StartClusterRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.StartClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.StartClusterRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.StartClusterRequest)other); } else { super.mergeFrom(other); return this; @@ -661,8 +623,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.StartClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.StartClusterRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.StartClusterRequest.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -709,43 +670,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); + case 10: { + projectId_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - region_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + region_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - clusterName_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + clusterName_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - clusterUuid_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + clusterUuid_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: - { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -758,21 +713,19 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -781,22 +734,21 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -804,64 +756,57 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -869,20 +814,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object region_ = ""; /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -891,21 +834,20 @@ public java.lang.String getRegion() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -913,61 +855,54 @@ public com.google.protobuf.ByteString getRegionBytes() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion(java.lang.String value) { + public Builder setRegion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -975,20 +910,18 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { private java.lang.Object clusterName_ = ""; /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -997,21 +930,20 @@ public java.lang.String getClusterName() { } } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -1019,61 +951,54 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName(java.lang.String value) { + public Builder setClusterName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1081,21 +1006,19 @@ public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object clusterUuid_ = ""; /** - * - * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The clusterUuid. */ public java.lang.String getClusterUuid() { java.lang.Object ref = clusterUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; @@ -1104,22 +1027,21 @@ public java.lang.String getClusterUuid() { } } /** - * - * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for clusterUuid. */ - public com.google.protobuf.ByteString getClusterUuidBytes() { + public com.google.protobuf.ByteString + getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -1127,64 +1049,57 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { } } /** - * - * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuid(java.lang.String value) { + public Builder setClusterUuid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterUuid_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearClusterUuid() { - + clusterUuid_ = getDefaultInstance().getClusterUuid(); onChanged(); return this; } /** - * - * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { + public Builder setClusterUuidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUuid_ = value; onChanged(); return this; @@ -1192,15 +1107,13 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1208,13 +1121,13 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 5 [(.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; @@ -1223,15 +1136,13 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1239,14 +1150,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 5 [(.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 { @@ -1254,15 +1166,13 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1270,29 +1180,27 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 5 [(.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. A unique ID used to identify the request. If the server
      * receives two
      * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1300,25 +1208,22 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1326,23 +1231,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 5 [(.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 +1257,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.StartClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.StartClusterRequest) private static final com.google.cloud.dataproc.v1.StartClusterRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.StartClusterRequest(); } @@ -1366,27 +1271,27 @@ public static com.google.cloud.dataproc.v1.StartClusterRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1401,4 +1306,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.StartClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java similarity index 76% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java index 9a483467e5fd..35083974375b 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java @@ -1,142 +1,104 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface StartClusterRequestOrBuilder - extends +public interface StartClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.StartClusterRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ java.lang.String getRegion(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - com.google.protobuf.ByteString getRegionBytes(); + com.google.protobuf.ByteString + getRegionBytes(); /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ java.lang.String getClusterName(); /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString getClusterNameBytes(); + com.google.protobuf.ByteString + getClusterNameBytes(); /** - * - * *
    * Optional. Specifying the `cluster_uuid` means the RPC will fail
    * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The clusterUuid. */ java.lang.String getClusterUuid(); /** - * - * *
    * Optional. Specifying the `cluster_uuid` means the RPC will fail
    * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for clusterUuid. */ - com.google.protobuf.ByteString getClusterUuidBytes(); + com.google.protobuf.ByteString + getClusterUuidBytes(); /** - * - * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * Recommendation: Set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -144,20 +106,17 @@ public interface StartClusterRequestOrBuilder
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * Recommendation: Set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -165,8 +124,8 @@ public interface StartClusterRequestOrBuilder
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java similarity index 73% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java index 306a1a810e40..5ff18cf74c10 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to stop a cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.StopClusterRequest} */ -public final class StopClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StopClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.StopClusterRequest) StopClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StopClusterRequest.newBuilder() to construct. private StopClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StopClusterRequest() { projectId_ = ""; region_ = ""; @@ -47,42 +29,38 @@ private StopClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StopClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.StopClusterRequest.class, - com.google.cloud.dataproc.v1.StopClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.StopClusterRequest.class, com.google.cloud.dataproc.v1.StopClusterRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -91,30 +69,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -125,14 +103,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int REGION_FIELD_NUMBER = 2; private volatile java.lang.Object region_; /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ @java.lang.Override @@ -141,29 +116,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -174,14 +149,11 @@ public com.google.protobuf.ByteString getRegionBytes() { public static final int CLUSTER_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object clusterName_; /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ @java.lang.Override @@ -190,29 +162,29 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -223,15 +195,12 @@ public com.google.protobuf.ByteString getClusterNameBytes() { public static final int CLUSTER_UUID_FIELD_NUMBER = 4; private volatile java.lang.Object clusterUuid_; /** - * - * *
    * Optional. Specifying the `cluster_uuid` means the RPC will fail
    * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The clusterUuid. */ @java.lang.Override @@ -240,30 +209,30 @@ public java.lang.String getClusterUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; } } /** - * - * *
    * Optional. Specifying the `cluster_uuid` means the RPC will fail
    * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for clusterUuid. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { + public com.google.protobuf.ByteString + getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -274,15 +243,13 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 5; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * Recommendation: Set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -290,7 +257,6 @@ public com.google.protobuf.ByteString getClusterUuidBytes() {
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -299,22 +265,21 @@ 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. A unique ID used to identify the request. If the server
    * receives two
    * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * Recommendation: Set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -322,15 +287,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 5 [(.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 { @@ -339,7 +305,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -351,7 +316,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -399,19 +365,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.StopClusterRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.StopClusterRequest other = - (com.google.cloud.dataproc.v1.StopClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (!getClusterUuid().equals(other.getClusterUuid())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + com.google.cloud.dataproc.v1.StopClusterRequest other = (com.google.cloud.dataproc.v1.StopClusterRequest) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getRegion() + .equals(other.getRegion())) return false; + if (!getClusterName() + .equals(other.getClusterName())) return false; + if (!getClusterUuid() + .equals(other.getClusterUuid())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -438,136 +408,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.StopClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.StopClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.StopClusterRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.StopClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to stop a cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.StopClusterRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.StopClusterRequest) com.google.cloud.dataproc.v1.StopClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.StopClusterRequest.class, - com.google.cloud.dataproc.v1.StopClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.StopClusterRequest.class, com.google.cloud.dataproc.v1.StopClusterRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.StopClusterRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -585,9 +549,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; } @java.lang.Override @@ -606,8 +570,7 @@ public com.google.cloud.dataproc.v1.StopClusterRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.StopClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.StopClusterRequest result = - new com.google.cloud.dataproc.v1.StopClusterRequest(this); + com.google.cloud.dataproc.v1.StopClusterRequest result = new com.google.cloud.dataproc.v1.StopClusterRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.clusterName_ = clusterName_; @@ -621,39 +584,38 @@ public com.google.cloud.dataproc.v1.StopClusterRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.StopClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.StopClusterRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.StopClusterRequest)other); } else { super.mergeFrom(other); return this; @@ -661,8 +623,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.StopClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.StopClusterRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.StopClusterRequest.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -709,43 +670,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); + case 10: { + projectId_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - region_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + region_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - clusterName_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + clusterName_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - clusterUuid_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + clusterUuid_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: - { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -758,21 +713,19 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -781,22 +734,21 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -804,64 +756,57 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -869,20 +814,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object region_ = ""; /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -891,21 +834,20 @@ public java.lang.String getRegion() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -913,61 +855,54 @@ public com.google.protobuf.ByteString getRegionBytes() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion(java.lang.String value) { + public Builder setRegion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -975,20 +910,18 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { private java.lang.Object clusterName_ = ""; /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -997,21 +930,20 @@ public java.lang.String getClusterName() { } } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -1019,61 +951,54 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName(java.lang.String value) { + public Builder setClusterName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1081,21 +1006,19 @@ public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object clusterUuid_ = ""; /** - * - * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The clusterUuid. */ public java.lang.String getClusterUuid() { java.lang.Object ref = clusterUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; @@ -1104,22 +1027,21 @@ public java.lang.String getClusterUuid() { } } /** - * - * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for clusterUuid. */ - public com.google.protobuf.ByteString getClusterUuidBytes() { + public com.google.protobuf.ByteString + getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -1127,64 +1049,57 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { } } /** - * - * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuid(java.lang.String value) { + public Builder setClusterUuid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterUuid_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearClusterUuid() { - + clusterUuid_ = getDefaultInstance().getClusterUuid(); onChanged(); return this; } /** - * - * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { + public Builder setClusterUuidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUuid_ = value; onChanged(); return this; @@ -1192,15 +1107,13 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1208,13 +1121,13 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 5 [(.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; @@ -1223,15 +1136,13 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1239,14 +1150,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 5 [(.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 { @@ -1254,15 +1166,13 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1270,29 +1180,27 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 5 [(.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. A unique ID used to identify the request. If the server
      * receives two
      * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1300,25 +1208,22 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1326,23 +1231,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 5 [(.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 +1257,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.StopClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.StopClusterRequest) private static final com.google.cloud.dataproc.v1.StopClusterRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.StopClusterRequest(); } @@ -1366,27 +1271,27 @@ public static com.google.cloud.dataproc.v1.StopClusterRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1401,4 +1306,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.StopClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java similarity index 76% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java index 8b9a12970aef..26a85567e536 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java @@ -1,142 +1,104 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface StopClusterRequestOrBuilder - extends +public interface StopClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.StopClusterRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ java.lang.String getRegion(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - com.google.protobuf.ByteString getRegionBytes(); + com.google.protobuf.ByteString + getRegionBytes(); /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ java.lang.String getClusterName(); /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString getClusterNameBytes(); + com.google.protobuf.ByteString + getClusterNameBytes(); /** - * - * *
    * Optional. Specifying the `cluster_uuid` means the RPC will fail
    * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The clusterUuid. */ java.lang.String getClusterUuid(); /** - * - * *
    * Optional. Specifying the `cluster_uuid` means the RPC will fail
    * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for clusterUuid. */ - com.google.protobuf.ByteString getClusterUuidBytes(); + com.google.protobuf.ByteString + getClusterUuidBytes(); /** - * - * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * Recommendation: Set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -144,20 +106,17 @@ public interface StopClusterRequestOrBuilder
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * Recommendation: Set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -165,8 +124,8 @@ public interface StopClusterRequestOrBuilder
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java similarity index 74% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java index b57b71ff970a..82bc67eccc29 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to submit a job.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.SubmitJobRequest} */ -public final class SubmitJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SubmitJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SubmitJobRequest) SubmitJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SubmitJobRequest.newBuilder() to construct. private SubmitJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SubmitJobRequest() { projectId_ = ""; region_ = ""; @@ -45,42 +27,38 @@ private SubmitJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SubmitJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SubmitJobRequest.class, - com.google.cloud.dataproc.v1.SubmitJobRequest.Builder.class); + com.google.cloud.dataproc.v1.SubmitJobRequest.class, com.google.cloud.dataproc.v1.SubmitJobRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -89,30 +67,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -123,14 +101,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int REGION_FIELD_NUMBER = 3; private volatile java.lang.Object region_; /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ @java.lang.Override @@ -139,29 +114,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -172,14 +147,11 @@ public com.google.protobuf.ByteString getRegionBytes() { public static final int JOB_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.Job job_; /** - * - * *
    * Required. The job resource.
    * 
* * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the job field is set. */ @java.lang.Override @@ -187,14 +159,11 @@ public boolean hasJob() { return job_ != null; } /** - * - * *
    * Required. The job resource.
    * 
* * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The job. */ @java.lang.Override @@ -202,8 +171,6 @@ public com.google.cloud.dataproc.v1.Job getJob() { return job_ == null ? com.google.cloud.dataproc.v1.Job.getDefaultInstance() : job_; } /** - * - * *
    * Required. The job resource.
    * 
@@ -218,8 +185,6 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A unique id used to identify the request. If the server
    * receives two
@@ -234,7 +199,6 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -243,15 +207,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. A unique id used to identify the request. If the server
    * receives two
@@ -266,15 +229,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 { @@ -283,7 +247,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -295,7 +258,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -321,7 +285,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } if (job_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getJob()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getJob()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); @@ -337,21 +302,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.dataproc.v1.SubmitJobRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.SubmitJobRequest other = - (com.google.cloud.dataproc.v1.SubmitJobRequest) obj; + com.google.cloud.dataproc.v1.SubmitJobRequest other = (com.google.cloud.dataproc.v1.SubmitJobRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getRegion() + .equals(other.getRegion())) return false; if (hasJob() != other.hasJob()) return false; if (hasJob()) { - if (!getJob().equals(other.getJob())) return false; + if (!getJob() + .equals(other.getJob())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -378,136 +346,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.SubmitJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.SubmitJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to submit a job.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.SubmitJobRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SubmitJobRequest) com.google.cloud.dataproc.v1.SubmitJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SubmitJobRequest.class, - com.google.cloud.dataproc.v1.SubmitJobRequest.Builder.class); + com.google.cloud.dataproc.v1.SubmitJobRequest.class, com.google.cloud.dataproc.v1.SubmitJobRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.SubmitJobRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -527,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; } @java.lang.Override @@ -548,8 +510,7 @@ public com.google.cloud.dataproc.v1.SubmitJobRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.SubmitJobRequest buildPartial() { - com.google.cloud.dataproc.v1.SubmitJobRequest result = - new com.google.cloud.dataproc.v1.SubmitJobRequest(this); + com.google.cloud.dataproc.v1.SubmitJobRequest result = new com.google.cloud.dataproc.v1.SubmitJobRequest(this); result.projectId_ = projectId_; result.region_ = region_; if (jobBuilder_ == null) { @@ -566,39 +527,38 @@ public com.google.cloud.dataproc.v1.SubmitJobRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.SubmitJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.SubmitJobRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.SubmitJobRequest)other); } else { super.mergeFrom(other); return this; @@ -648,37 +608,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); + case 10: { + projectId_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getJobFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getJobFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - region_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + region_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -691,21 +648,19 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -714,22 +669,21 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -737,64 +691,57 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -802,20 +749,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object region_ = ""; /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -824,21 +769,20 @@ public java.lang.String getRegion() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -846,61 +790,54 @@ public com.google.protobuf.ByteString getRegionBytes() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion(java.lang.String value) { + public Builder setRegion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -908,33 +845,24 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.Job job_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, - com.google.cloud.dataproc.v1.Job.Builder, - com.google.cloud.dataproc.v1.JobOrBuilder> - jobBuilder_; + com.google.cloud.dataproc.v1.Job, com.google.cloud.dataproc.v1.Job.Builder, com.google.cloud.dataproc.v1.JobOrBuilder> jobBuilder_; /** - * - * *
      * Required. The job resource.
      * 
* * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the job field is set. */ public boolean hasJob() { return jobBuilder_ != null || job_ != null; } /** - * - * *
      * Required. The job resource.
      * 
* * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The job. */ public com.google.cloud.dataproc.v1.Job getJob() { @@ -945,8 +873,6 @@ public com.google.cloud.dataproc.v1.Job getJob() { } } /** - * - * *
      * Required. The job resource.
      * 
@@ -967,15 +893,14 @@ public Builder setJob(com.google.cloud.dataproc.v1.Job value) { return this; } /** - * - * *
      * Required. The job resource.
      * 
* * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setJob(com.google.cloud.dataproc.v1.Job.Builder builderForValue) { + public Builder setJob( + com.google.cloud.dataproc.v1.Job.Builder builderForValue) { if (jobBuilder_ == null) { job_ = builderForValue.build(); onChanged(); @@ -986,8 +911,6 @@ public Builder setJob(com.google.cloud.dataproc.v1.Job.Builder builderForValue) return this; } /** - * - * *
      * Required. The job resource.
      * 
@@ -997,7 +920,8 @@ public Builder setJob(com.google.cloud.dataproc.v1.Job.Builder builderForValue) public Builder mergeJob(com.google.cloud.dataproc.v1.Job value) { if (jobBuilder_ == null) { if (job_ != null) { - job_ = com.google.cloud.dataproc.v1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + job_ = + com.google.cloud.dataproc.v1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); } else { job_ = value; } @@ -1009,8 +933,6 @@ public Builder mergeJob(com.google.cloud.dataproc.v1.Job value) { return this; } /** - * - * *
      * Required. The job resource.
      * 
@@ -1029,8 +951,6 @@ public Builder clearJob() { return this; } /** - * - * *
      * Required. The job resource.
      * 
@@ -1038,13 +958,11 @@ public Builder clearJob() { * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.Job.Builder getJobBuilder() { - + onChanged(); return getJobFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The job resource.
      * 
@@ -1055,12 +973,11 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { if (jobBuilder_ != null) { return jobBuilder_.getMessageOrBuilder(); } else { - return job_ == null ? com.google.cloud.dataproc.v1.Job.getDefaultInstance() : job_; + return job_ == null ? + com.google.cloud.dataproc.v1.Job.getDefaultInstance() : job_; } } /** - * - * *
      * Required. The job resource.
      * 
@@ -1068,17 +985,14 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, - com.google.cloud.dataproc.v1.Job.Builder, - com.google.cloud.dataproc.v1.JobOrBuilder> + com.google.cloud.dataproc.v1.Job, com.google.cloud.dataproc.v1.Job.Builder, com.google.cloud.dataproc.v1.JobOrBuilder> getJobFieldBuilder() { if (jobBuilder_ == null) { - jobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, - com.google.cloud.dataproc.v1.Job.Builder, - com.google.cloud.dataproc.v1.JobOrBuilder>( - getJob(), getParentForChildren(), isClean()); + jobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.Job, com.google.cloud.dataproc.v1.Job.Builder, com.google.cloud.dataproc.v1.JobOrBuilder>( + getJob(), + getParentForChildren(), + isClean()); job_ = null; } return jobBuilder_; @@ -1086,8 +1000,6 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique id used to identify the request. If the server
      * receives two
@@ -1102,13 +1014,13 @@ public com.google.cloud.dataproc.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; @@ -1117,8 +1029,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique id used to identify the request. If the server
      * receives two
@@ -1133,14 +1043,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 { @@ -1148,8 +1059,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique id used to identify the request. If the server
      * receives two
@@ -1164,22 +1073,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. A unique id used to identify the request. If the server
      * receives two
@@ -1194,18 +1101,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. A unique id used to identify the request. If the server
      * receives two
@@ -1220,23 +1124,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); } @@ -1246,12 +1150,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SubmitJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SubmitJobRequest) private static final com.google.cloud.dataproc.v1.SubmitJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SubmitJobRequest(); } @@ -1260,27 +1164,27 @@ public static com.google.cloud.dataproc.v1.SubmitJobRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubmitJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubmitJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1295,4 +1199,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SubmitJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java similarity index 79% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java index cc9dcd7353aa..31f3a4f8ced9 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java @@ -1,107 +1,73 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface SubmitJobRequestOrBuilder - extends +public interface SubmitJobRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SubmitJobRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ java.lang.String getRegion(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - com.google.protobuf.ByteString getRegionBytes(); + com.google.protobuf.ByteString + getRegionBytes(); /** - * - * *
    * Required. The job resource.
    * 
* * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the job field is set. */ boolean hasJob(); /** - * - * *
    * Required. The job resource.
    * 
* * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The job. */ com.google.cloud.dataproc.v1.Job getJob(); /** - * - * *
    * Required. The job resource.
    * 
@@ -111,8 +77,6 @@ public interface SubmitJobRequestOrBuilder com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder(); /** - * - * *
    * Optional. A unique id used to identify the request. If the server
    * receives two
@@ -127,13 +91,10 @@ public interface SubmitJobRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A unique id used to identify the request. If the server
    * receives two
@@ -148,8 +109,8 @@ public interface SubmitJobRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java similarity index 81% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java index e40d43e99ad8..f98031f6b836 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A configurable parameter that replaces one or more fields in the template.
  * Parameterizable fields:
@@ -35,16 +18,15 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.TemplateParameter}
  */
-public final class TemplateParameter extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TemplateParameter extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.TemplateParameter)
     TemplateParameterOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TemplateParameter.newBuilder() to construct.
   private TemplateParameter(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TemplateParameter() {
     name_ = "";
     fields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -53,35 +35,32 @@ private TemplateParameter() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TemplateParameter();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
-        .internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
-        .internal_static_google_cloud_dataproc_v1_TemplateParameter_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_TemplateParameter_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.TemplateParameter.class,
-            com.google.cloud.dataproc.v1.TemplateParameter.Builder.class);
+            com.google.cloud.dataproc.v1.TemplateParameter.class, com.google.cloud.dataproc.v1.TemplateParameter.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. Parameter name.
    * The parameter name is used as the key, and paired with the
@@ -93,7 +72,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -102,15 +80,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Parameter name.
    * The parameter name is used as the key, and paired with the
@@ -122,15 +99,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -141,8 +119,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FIELDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList fields_; /** - * - * *
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
@@ -183,15 +159,13 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the fields. */ - public com.google.protobuf.ProtocolStringList getFieldsList() { + public com.google.protobuf.ProtocolStringList + getFieldsList() { return fields_; } /** - * - * *
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
@@ -232,15 +206,12 @@ public com.google.protobuf.ProtocolStringList getFieldsList() {
    * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of fields. */ public int getFieldsCount() { return fields_.size(); } /** - * - * *
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
@@ -281,7 +252,6 @@ public int getFieldsCount() {
    * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The fields at the given index. */ @@ -289,8 +259,6 @@ public java.lang.String getFields(int index) { return fields_.get(index); } /** - * - * *
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
@@ -331,26 +299,23 @@ public java.lang.String getFields(int index) {
    * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - public com.google.protobuf.ByteString getFieldsBytes(int index) { + public com.google.protobuf.ByteString + getFieldsBytes(int index) { return fields_.getByteString(index); } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * Optional. Brief description of the parameter.
    * Must not exceed 1024 characters.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -359,30 +324,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. Brief description of the parameter.
    * Must not exceed 1024 characters.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -393,16 +358,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int VALIDATION_FIELD_NUMBER = 4; private com.google.cloud.dataproc.v1.ParameterValidation validation_; /** - * - * *
    * Optional. Validation rules to be applied to this parameter's value.
    * 
* - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the validation field is set. */ @java.lang.Override @@ -410,34 +370,23 @@ public boolean hasValidation() { return validation_ != null; } /** - * - * *
    * Optional. Validation rules to be applied to this parameter's value.
    * 
* - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The validation. */ @java.lang.Override public com.google.cloud.dataproc.v1.ParameterValidation getValidation() { - return validation_ == null - ? com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance() - : validation_; + return validation_ == null ? com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance() : validation_; } /** - * - * *
    * Optional. Validation rules to be applied to this parameter's value.
    * 
* - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.ParameterValidationOrBuilder getValidationOrBuilder() { @@ -445,7 +394,6 @@ public com.google.cloud.dataproc.v1.ParameterValidationOrBuilder getValidationOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -457,7 +405,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_); } @@ -494,7 +443,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (validation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getValidation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getValidation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -504,20 +454,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.TemplateParameter)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.TemplateParameter other = - (com.google.cloud.dataproc.v1.TemplateParameter) obj; + com.google.cloud.dataproc.v1.TemplateParameter other = (com.google.cloud.dataproc.v1.TemplateParameter) obj; - if (!getName().equals(other.getName())) return false; - if (!getFieldsList().equals(other.getFieldsList())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getFieldsList() + .equals(other.getFieldsList())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasValidation() != other.hasValidation()) return false; if (hasValidation()) { - if (!getValidation().equals(other.getValidation())) return false; + if (!getValidation() + .equals(other.getValidation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -547,104 +500,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.TemplateParameter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.TemplateParameter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.TemplateParameter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.TemplateParameter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 configurable parameter that replaces one or more fields in the template.
    * Parameterizable fields:
@@ -659,32 +605,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.TemplateParameter}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.TemplateParameter)
       com.google.cloud.dataproc.v1.TemplateParameterOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
-          .internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
-          .internal_static_google_cloud_dataproc_v1_TemplateParameter_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_TemplateParameter_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.TemplateParameter.class,
-              com.google.cloud.dataproc.v1.TemplateParameter.Builder.class);
+              com.google.cloud.dataproc.v1.TemplateParameter.class, com.google.cloud.dataproc.v1.TemplateParameter.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.TemplateParameter.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -704,9 +651,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
-          .internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor;
     }
 
     @java.lang.Override
@@ -725,8 +672,7 @@ public com.google.cloud.dataproc.v1.TemplateParameter build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.TemplateParameter buildPartial() {
-      com.google.cloud.dataproc.v1.TemplateParameter result =
-          new com.google.cloud.dataproc.v1.TemplateParameter(this);
+      com.google.cloud.dataproc.v1.TemplateParameter result = new com.google.cloud.dataproc.v1.TemplateParameter(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -748,39 +694,38 @@ public com.google.cloud.dataproc.v1.TemplateParameter buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.TemplateParameter) {
-        return mergeFrom((com.google.cloud.dataproc.v1.TemplateParameter) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.TemplateParameter)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -836,38 +781,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
+            case 10: {
+              name_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureFieldsIsMutable();
-                fields_.add(s);
-                break;
-              } // case 18
-            case 26:
-              {
-                description_ = input.readStringRequireUtf8();
+              break;
+            } // case 10
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureFieldsIsMutable();
+              fields_.add(s);
+              break;
+            } // case 18
+            case 26: {
+              description_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getValidationFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getValidationFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -877,13 +819,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Parameter name.
      * The parameter name is used as the key, and paired with the
@@ -895,13 +834,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -910,8 +849,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Parameter name.
      * The parameter name is used as the key, and paired with the
@@ -923,14 +860,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -938,8 +876,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Parameter name.
      * The parameter name is used as the key, and paired with the
@@ -951,22 +887,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Parameter name.
      * The parameter name is used as the key, and paired with the
@@ -978,18 +912,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Parameter name.
      * The parameter name is used as the key, and paired with the
@@ -1001,33 +932,29 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList fields_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fields_ = new com.google.protobuf.LazyStringArrayList(fields_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
@@ -1068,15 +995,13 @@ private void ensureFieldsIsMutable() {
      * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the fields. */ - public com.google.protobuf.ProtocolStringList getFieldsList() { + public com.google.protobuf.ProtocolStringList + getFieldsList() { return fields_.getUnmodifiableView(); } /** - * - * *
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
@@ -1117,15 +1042,12 @@ public com.google.protobuf.ProtocolStringList getFieldsList() {
      * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of fields. */ public int getFieldsCount() { return fields_.size(); } /** - * - * *
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
@@ -1166,7 +1088,6 @@ public int getFieldsCount() {
      * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The fields at the given index. */ @@ -1174,8 +1095,6 @@ public java.lang.String getFields(int index) { return fields_.get(index); } /** - * - * *
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
@@ -1216,16 +1135,14 @@ public java.lang.String getFields(int index) {
      * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - public com.google.protobuf.ByteString getFieldsBytes(int index) { + public com.google.protobuf.ByteString + getFieldsBytes(int index) { return fields_.getByteString(index); } /** - * - * *
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
@@ -1266,23 +1183,21 @@ public com.google.protobuf.ByteString getFieldsBytes(int index) {
      * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The fields to set. * @return This builder for chaining. */ - public Builder setFields(int index, java.lang.String value) { + public Builder setFields( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); + throw new NullPointerException(); + } + ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
@@ -1323,22 +1238,20 @@ public Builder setFields(int index, java.lang.String value) {
      * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The fields to add. * @return This builder for chaining. */ - public Builder addFields(java.lang.String value) { + public Builder addFields( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); + throw new NullPointerException(); + } + ensureFieldsIsMutable(); fields_.add(value); onChanged(); return this; } /** - * - * *
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
@@ -1379,19 +1292,18 @@ public Builder addFields(java.lang.String value) {
      * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The fields to add. * @return This builder for chaining. */ - public Builder addAllFields(java.lang.Iterable values) { + public Builder addAllFields( + java.lang.Iterable values) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fields_); onChanged(); return this; } /** - * - * *
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
@@ -1432,7 +1344,6 @@ public Builder addAllFields(java.lang.Iterable values) {
      * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFields() { @@ -1442,8 +1353,6 @@ public Builder clearFields() { return this; } /** - * - * *
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
@@ -1484,15 +1393,15 @@ public Builder clearFields() {
      * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the fields to add. * @return This builder for chaining. */ - public Builder addFieldsBytes(com.google.protobuf.ByteString value) { + public Builder addFieldsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFieldsIsMutable(); fields_.add(value); onChanged(); @@ -1501,21 +1410,19 @@ public Builder addFieldsBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. Brief description of the parameter.
      * Must not exceed 1024 characters.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1524,22 +1431,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. Brief description of the parameter.
      * Must not exceed 1024 characters.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1547,64 +1453,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. Brief description of the parameter.
      * Must not exceed 1024 characters.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Brief description of the parameter.
      * Must not exceed 1024 characters.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. Brief description of the parameter.
      * Must not exceed 1024 characters.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1612,58 +1511,39 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.ParameterValidation validation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ParameterValidation, - com.google.cloud.dataproc.v1.ParameterValidation.Builder, - com.google.cloud.dataproc.v1.ParameterValidationOrBuilder> - validationBuilder_; + com.google.cloud.dataproc.v1.ParameterValidation, com.google.cloud.dataproc.v1.ParameterValidation.Builder, com.google.cloud.dataproc.v1.ParameterValidationOrBuilder> validationBuilder_; /** - * - * *
      * Optional. Validation rules to be applied to this parameter's value.
      * 
* - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the validation field is set. */ public boolean hasValidation() { return validationBuilder_ != null || validation_ != null; } /** - * - * *
      * Optional. Validation rules to be applied to this parameter's value.
      * 
* - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The validation. */ public com.google.cloud.dataproc.v1.ParameterValidation getValidation() { if (validationBuilder_ == null) { - return validation_ == null - ? com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance() - : validation_; + return validation_ == null ? com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance() : validation_; } else { return validationBuilder_.getMessage(); } } /** - * - * *
      * Optional. Validation rules to be applied to this parameter's value.
      * 
* - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setValidation(com.google.cloud.dataproc.v1.ParameterValidation value) { if (validationBuilder_ == null) { @@ -1679,15 +1559,11 @@ public Builder setValidation(com.google.cloud.dataproc.v1.ParameterValidation va return this; } /** - * - * *
      * Optional. Validation rules to be applied to this parameter's value.
      * 
* - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setValidation( com.google.cloud.dataproc.v1.ParameterValidation.Builder builderForValue) { @@ -1701,23 +1577,17 @@ public Builder setValidation( return this; } /** - * - * *
      * Optional. Validation rules to be applied to this parameter's value.
      * 
* - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeValidation(com.google.cloud.dataproc.v1.ParameterValidation value) { if (validationBuilder_ == null) { if (validation_ != null) { validation_ = - com.google.cloud.dataproc.v1.ParameterValidation.newBuilder(validation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.ParameterValidation.newBuilder(validation_).mergeFrom(value).buildPartial(); } else { validation_ = value; } @@ -1729,15 +1599,11 @@ public Builder mergeValidation(com.google.cloud.dataproc.v1.ParameterValidation return this; } /** - * - * *
      * Optional. Validation rules to be applied to this parameter's value.
      * 
* - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearValidation() { if (validationBuilder_ == null) { @@ -1751,71 +1617,55 @@ public Builder clearValidation() { return this; } /** - * - * *
      * Optional. Validation rules to be applied to this parameter's value.
      * 
* - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.ParameterValidation.Builder getValidationBuilder() { - + onChanged(); return getValidationFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Validation rules to be applied to this parameter's value.
      * 
* - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.ParameterValidationOrBuilder getValidationOrBuilder() { if (validationBuilder_ != null) { return validationBuilder_.getMessageOrBuilder(); } else { - return validation_ == null - ? com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance() - : validation_; + return validation_ == null ? + com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance() : validation_; } } /** - * - * *
      * Optional. Validation rules to be applied to this parameter's value.
      * 
* - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ParameterValidation, - com.google.cloud.dataproc.v1.ParameterValidation.Builder, - com.google.cloud.dataproc.v1.ParameterValidationOrBuilder> + com.google.cloud.dataproc.v1.ParameterValidation, com.google.cloud.dataproc.v1.ParameterValidation.Builder, com.google.cloud.dataproc.v1.ParameterValidationOrBuilder> getValidationFieldBuilder() { if (validationBuilder_ == null) { - validationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ParameterValidation, - com.google.cloud.dataproc.v1.ParameterValidation.Builder, - com.google.cloud.dataproc.v1.ParameterValidationOrBuilder>( - getValidation(), getParentForChildren(), isClean()); + validationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ParameterValidation, com.google.cloud.dataproc.v1.ParameterValidation.Builder, com.google.cloud.dataproc.v1.ParameterValidationOrBuilder>( + getValidation(), + getParentForChildren(), + isClean()); validation_ = null; } return validationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1825,12 +1675,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.TemplateParameter) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.TemplateParameter) private static final com.google.cloud.dataproc.v1.TemplateParameter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.TemplateParameter(); } @@ -1839,27 +1689,27 @@ public static com.google.cloud.dataproc.v1.TemplateParameter getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TemplateParameter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TemplateParameter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1874,4 +1724,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.TemplateParameter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java similarity index 88% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java index 5625583f17f1..0720978109f7 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface TemplateParameterOrBuilder - extends +public interface TemplateParameterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.TemplateParameter) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parameter name.
    * The parameter name is used as the key, and paired with the
@@ -37,13 +19,10 @@ public interface TemplateParameterOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Parameter name.
    * The parameter name is used as the key, and paired with the
@@ -55,14 +34,12 @@ public interface TemplateParameterOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
@@ -103,13 +80,11 @@ public interface TemplateParameterOrBuilder
    * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the fields. */ - java.util.List getFieldsList(); + java.util.List + getFieldsList(); /** - * - * *
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
@@ -150,13 +125,10 @@ public interface TemplateParameterOrBuilder
    * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of fields. */ int getFieldsCount(); /** - * - * *
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
@@ -197,14 +169,11 @@ public interface TemplateParameterOrBuilder
    * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The fields at the given index. */ java.lang.String getFields(int index); /** - * - * *
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
@@ -245,77 +214,58 @@ public interface TemplateParameterOrBuilder
    * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - com.google.protobuf.ByteString getFieldsBytes(int index); + com.google.protobuf.ByteString + getFieldsBytes(int index); /** - * - * *
    * Optional. Brief description of the parameter.
    * Must not exceed 1024 characters.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. Brief description of the parameter.
    * Must not exceed 1024 characters.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Optional. Validation rules to be applied to this parameter's value.
    * 
* - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the validation field is set. */ boolean hasValidation(); /** - * - * *
    * Optional. Validation rules to be applied to this parameter's value.
    * 
* - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The validation. */ com.google.cloud.dataproc.v1.ParameterValidation getValidation(); /** - * - * *
    * Optional. Validation rules to be applied to this parameter's value.
    * 
* - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.ParameterValidationOrBuilder getValidationOrBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java similarity index 61% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java index cfdd01c01189..5e192e7cdc99 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java @@ -1,84 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to update an autoscaling policy.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest} */ -public final class UpdateAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateAutoscalingPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) UpdateAutoscalingPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateAutoscalingPolicyRequest.newBuilder() to construct. - private UpdateAutoscalingPolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateAutoscalingPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateAutoscalingPolicyRequest() {} + private UpdateAutoscalingPolicyRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateAutoscalingPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.Builder.class); + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.class, com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.Builder.class); } public static final int POLICY_FIELD_NUMBER = 1; private com.google.cloud.dataproc.v1.AutoscalingPolicy policy_; /** - * - * *
    * Required. The updated autoscaling policy.
    * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the policy field is set. */ @java.lang.Override @@ -86,34 +62,23 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
    * Required. The updated autoscaling policy.
    * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The policy. */ @java.lang.Override public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy() { - return policy_ == null - ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() - : policy_; + return policy_ == null ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() : policy_; } /** - * - * *
    * Required. The updated autoscaling policy.
    * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder() { @@ -121,7 +86,6 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilde } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,7 +97,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (policy_ != null) { output.writeMessage(1, getPolicy()); } @@ -147,7 +112,8 @@ public int getSerializedSize() { size = 0; if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPolicy()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -157,17 +123,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.dataproc.v1.UpdateAutoscalingPolicyRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest other = - (com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) obj; + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest other = (com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) obj; if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { - if (!getPolicy().equals(other.getPolicy())) return false; + if (!getPolicy() + .equals(other.getPolicy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -190,136 +156,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest 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.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to update an autoscaling policy.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.Builder.class); + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.class, com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -333,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; } @java.lang.Override @@ -354,8 +313,7 @@ public com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest buildPartial() { - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest result = - new com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest(this); + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest result = new com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest(this); if (policyBuilder_ == null) { result.policy_ = policy_; } else { @@ -369,39 +327,38 @@ public com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -409,8 +366,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest other) { - if (other == com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.getDefaultInstance()) return this; if (other.hasPolicy()) { mergePolicy(other.getPolicy()); } @@ -440,19 +396,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getPolicyFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -465,58 +421,39 @@ public Builder mergeFrom( private com.google.cloud.dataproc.v1.AutoscalingPolicy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> - policyBuilder_; + com.google.cloud.dataproc.v1.AutoscalingPolicy, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> policyBuilder_; /** - * - * *
      * Required. The updated autoscaling policy.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** - * - * *
      * Required. The updated autoscaling policy.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The policy. */ public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy() { if (policyBuilder_ == null) { - return policy_ == null - ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() - : policy_; + return policy_ == null ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() : policy_; } else { return policyBuilder_.getMessage(); } } /** - * - * *
      * Required. The updated autoscaling policy.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { if (policyBuilder_ == null) { @@ -532,15 +469,11 @@ public Builder setPolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { return this; } /** - * - * *
      * Required. The updated autoscaling policy.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPolicy( com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder builderForValue) { @@ -554,23 +487,17 @@ public Builder setPolicy( return this; } /** - * - * *
      * Required. The updated autoscaling policy.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { if (policyBuilder_ == null) { if (policy_ != null) { policy_ = - com.google.cloud.dataproc.v1.AutoscalingPolicy.newBuilder(policy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.AutoscalingPolicy.newBuilder(policy_).mergeFrom(value).buildPartial(); } else { policy_ = value; } @@ -582,15 +509,11 @@ public Builder mergePolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) return this; } /** - * - * *
      * Required. The updated autoscaling policy.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPolicy() { if (policyBuilder_ == null) { @@ -604,71 +527,55 @@ public Builder clearPolicy() { return this; } /** - * - * *
      * Required. The updated autoscaling policy.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder getPolicyBuilder() { - + onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The updated autoscaling policy.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { - return policy_ == null - ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() - : policy_; + return policy_ == null ? + com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() : policy_; } } /** - * - * *
      * Required. The updated autoscaling policy.
      * 
* - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> + com.google.cloud.dataproc.v1.AutoscalingPolicy, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { - policyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder>( - getPolicy(), getParentForChildren(), isClean()); + policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.AutoscalingPolicy, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder>( + getPolicy(), + getParentForChildren(), + isClean()); policy_ = null; } return policyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -678,12 +585,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) private static final com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest(); } @@ -692,27 +599,27 @@ public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateAutoscalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAutoscalingPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -727,4 +634,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..eb8948771a90 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/autoscaling_policies.proto + +package com.google.cloud.dataproc.v1; + +public interface UpdateAutoscalingPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The updated autoscaling policy.
+   * 
+ * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the policy field is set. + */ + boolean hasPolicy(); + /** + *
+   * Required. The updated autoscaling policy.
+   * 
+ * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The policy. + */ + com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy(); + /** + *
+   * Required. The updated autoscaling policy.
+   * 
+ * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder(); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java similarity index 79% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java index ac73fe75a626..31f5b360e3e4 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to update a cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.UpdateClusterRequest} */ -public final class UpdateClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.UpdateClusterRequest) UpdateClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateClusterRequest.newBuilder() to construct. private UpdateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateClusterRequest() { projectId_ = ""; region_ = ""; @@ -46,42 +28,38 @@ private UpdateClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateClusterRequest.class, - com.google.cloud.dataproc.v1.UpdateClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.UpdateClusterRequest.class, com.google.cloud.dataproc.v1.UpdateClusterRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -90,30 +68,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -124,14 +102,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int REGION_FIELD_NUMBER = 5; private volatile java.lang.Object region_; /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ @java.lang.Override @@ -140,29 +115,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -173,14 +148,11 @@ public com.google.protobuf.ByteString getRegionBytes() { public static final int CLUSTER_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object clusterName_; /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ @java.lang.Override @@ -189,29 +161,29 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -222,15 +194,11 @@ public com.google.protobuf.ByteString getClusterNameBytes() { public static final int CLUSTER_FIELD_NUMBER = 3; private com.google.cloud.dataproc.v1.Cluster cluster_; /** - * - * *
    * Required. The changes to the cluster.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cluster field is set. */ @java.lang.Override @@ -238,15 +206,11 @@ public boolean hasCluster() { return cluster_ != null; } /** - * - * *
    * Required. The changes to the cluster.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The cluster. */ @java.lang.Override @@ -254,14 +218,11 @@ public com.google.cloud.dataproc.v1.Cluster getCluster() { return cluster_ == null ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() : cluster_; } /** - * - * *
    * Required. The changes to the cluster.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { @@ -271,8 +232,6 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { public static final int GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER = 6; private com.google.protobuf.Duration gracefulDecommissionTimeout_; /** - * - * *
    * Optional. Timeout for graceful YARN decomissioning. Graceful
    * decommissioning allows removing nodes from the cluster without
@@ -284,10 +243,7 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() {
    * Only supported on Dataproc image versions 1.2 and higher.
    * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gracefulDecommissionTimeout field is set. */ @java.lang.Override @@ -295,8 +251,6 @@ public boolean hasGracefulDecommissionTimeout() { return gracefulDecommissionTimeout_ != null; } /** - * - * *
    * Optional. Timeout for graceful YARN decomissioning. Graceful
    * decommissioning allows removing nodes from the cluster without
@@ -308,21 +262,14 @@ public boolean hasGracefulDecommissionTimeout() {
    * Only supported on Dataproc image versions 1.2 and higher.
    * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The gracefulDecommissionTimeout. */ @java.lang.Override public com.google.protobuf.Duration getGracefulDecommissionTimeout() { - return gracefulDecommissionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : gracefulDecommissionTimeout_; + return gracefulDecommissionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : gracefulDecommissionTimeout_; } /** - * - * *
    * Optional. Timeout for graceful YARN decomissioning. Graceful
    * decommissioning allows removing nodes from the cluster without
@@ -334,9 +281,7 @@ public com.google.protobuf.Duration getGracefulDecommissionTimeout() {
    * Only supported on Dataproc image versions 1.2 and higher.
    * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { @@ -346,8 +291,6 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui public static final int UPDATE_MASK_FIELD_NUMBER = 4; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Specifies the path, relative to `Cluster`, of
    * the field to update. For example, to change the number of workers
@@ -399,9 +342,7 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui
    *  </table>
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -409,8 +350,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Specifies the path, relative to `Cluster`, of
    * the field to update. For example, to change the number of workers
@@ -462,9 +401,7 @@ public boolean hasUpdateMask() {
    *  </table>
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -472,8 +409,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Specifies the path, relative to `Cluster`, of
    * the field to update. For example, to change the number of workers
@@ -525,8 +460,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *  </table>
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -536,15 +470,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 7; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -552,7 +484,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -561,22 +492,21 @@ 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. A unique ID used to identify the request. If the server
    * receives two
    * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -584,15 +514,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 7 [(.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 { @@ -601,7 +532,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -613,7 +543,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -651,18 +582,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); } if (cluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCluster()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCluster()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, region_); } if (gracefulDecommissionTimeout_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, getGracefulDecommissionTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getGracefulDecommissionTimeout()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, requestId_); @@ -675,31 +607,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.UpdateClusterRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.UpdateClusterRequest other = - (com.google.cloud.dataproc.v1.UpdateClusterRequest) obj; + com.google.cloud.dataproc.v1.UpdateClusterRequest other = (com.google.cloud.dataproc.v1.UpdateClusterRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getRegion() + .equals(other.getRegion())) return false; + if (!getClusterName() + .equals(other.getClusterName())) return false; if (hasCluster() != other.hasCluster()) return false; if (hasCluster()) { - if (!getCluster().equals(other.getCluster())) return false; + if (!getCluster() + .equals(other.getCluster())) return false; } if (hasGracefulDecommissionTimeout() != other.hasGracefulDecommissionTimeout()) return false; if (hasGracefulDecommissionTimeout()) { - if (!getGracefulDecommissionTimeout().equals(other.getGracefulDecommissionTimeout())) - return false; + if (!getGracefulDecommissionTimeout() + .equals(other.getGracefulDecommissionTimeout())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -737,135 +674,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.UpdateClusterRequest 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.dataproc.v1.UpdateClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.UpdateClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to update a cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.UpdateClusterRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.UpdateClusterRequest) com.google.cloud.dataproc.v1.UpdateClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateClusterRequest.class, - com.google.cloud.dataproc.v1.UpdateClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.UpdateClusterRequest.class, com.google.cloud.dataproc.v1.UpdateClusterRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.UpdateClusterRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -899,9 +830,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; } @java.lang.Override @@ -920,8 +851,7 @@ public com.google.cloud.dataproc.v1.UpdateClusterRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.UpdateClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.UpdateClusterRequest result = - new com.google.cloud.dataproc.v1.UpdateClusterRequest(this); + com.google.cloud.dataproc.v1.UpdateClusterRequest result = new com.google.cloud.dataproc.v1.UpdateClusterRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.clusterName_ = clusterName_; @@ -949,39 +879,38 @@ public com.google.cloud.dataproc.v1.UpdateClusterRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.UpdateClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.UpdateClusterRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.UpdateClusterRequest)other); } else { super.mergeFrom(other); return this; @@ -989,8 +918,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.UpdateClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.UpdateClusterRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.UpdateClusterRequest.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -1042,56 +970,53 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getClusterFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: - { - input.readMessage( - getGracefulDecommissionTimeoutFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 58: - { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getClusterFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + region_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + input.readMessage( + getGracefulDecommissionTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + case 58: { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1104,21 +1029,19 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1127,22 +1050,21 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -1150,64 +1072,57 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1215,20 +1130,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object region_ = ""; /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -1237,21 +1150,20 @@ public java.lang.String getRegion() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -1259,61 +1171,54 @@ public com.google.protobuf.ByteString getRegionBytes() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion(java.lang.String value) { + public Builder setRegion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -1321,20 +1226,18 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { private java.lang.Object clusterName_ = ""; /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -1343,21 +1246,20 @@ public java.lang.String getClusterName() { } } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -1365,61 +1267,54 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName(java.lang.String value) { + public Builder setClusterName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** - * - * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1427,58 +1322,39 @@ public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.Cluster cluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, - com.google.cloud.dataproc.v1.Cluster.Builder, - com.google.cloud.dataproc.v1.ClusterOrBuilder> - clusterBuilder_; + com.google.cloud.dataproc.v1.Cluster, com.google.cloud.dataproc.v1.Cluster.Builder, com.google.cloud.dataproc.v1.ClusterOrBuilder> clusterBuilder_; /** - * - * *
      * Required. The changes to the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cluster field is set. */ public boolean hasCluster() { return clusterBuilder_ != null || cluster_ != null; } /** - * - * *
      * Required. The changes to the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The cluster. */ public com.google.cloud.dataproc.v1.Cluster getCluster() { if (clusterBuilder_ == null) { - return cluster_ == null - ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() - : cluster_; + return cluster_ == null ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() : cluster_; } else { return clusterBuilder_.getMessage(); } } /** - * - * *
      * Required. The changes to the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCluster(com.google.cloud.dataproc.v1.Cluster value) { if (clusterBuilder_ == null) { @@ -1494,17 +1370,14 @@ public Builder setCluster(com.google.cloud.dataproc.v1.Cluster value) { return this; } /** - * - * *
      * Required. The changes to the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCluster(com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { + public Builder setCluster( + com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { if (clusterBuilder_ == null) { cluster_ = builderForValue.build(); onChanged(); @@ -1515,23 +1388,17 @@ public Builder setCluster(com.google.cloud.dataproc.v1.Cluster.Builder builderFo return this; } /** - * - * *
      * Required. The changes to the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCluster(com.google.cloud.dataproc.v1.Cluster value) { if (clusterBuilder_ == null) { if (cluster_ != null) { cluster_ = - com.google.cloud.dataproc.v1.Cluster.newBuilder(cluster_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.Cluster.newBuilder(cluster_).mergeFrom(value).buildPartial(); } else { cluster_ = value; } @@ -1543,15 +1410,11 @@ public Builder mergeCluster(com.google.cloud.dataproc.v1.Cluster value) { return this; } /** - * - * *
      * Required. The changes to the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCluster() { if (clusterBuilder_ == null) { @@ -1565,64 +1428,48 @@ public Builder clearCluster() { return this; } /** - * - * *
      * Required. The changes to the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.Cluster.Builder getClusterBuilder() { - + onChanged(); return getClusterFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The changes to the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { if (clusterBuilder_ != null) { return clusterBuilder_.getMessageOrBuilder(); } else { - return cluster_ == null - ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() - : cluster_; + return cluster_ == null ? + com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() : cluster_; } } /** - * - * *
      * Required. The changes to the cluster.
      * 
* - * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, - com.google.cloud.dataproc.v1.Cluster.Builder, - com.google.cloud.dataproc.v1.ClusterOrBuilder> + com.google.cloud.dataproc.v1.Cluster, com.google.cloud.dataproc.v1.Cluster.Builder, com.google.cloud.dataproc.v1.ClusterOrBuilder> getClusterFieldBuilder() { if (clusterBuilder_ == null) { - clusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, - com.google.cloud.dataproc.v1.Cluster.Builder, - com.google.cloud.dataproc.v1.ClusterOrBuilder>( - getCluster(), getParentForChildren(), isClean()); + clusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.Cluster, com.google.cloud.dataproc.v1.Cluster.Builder, com.google.cloud.dataproc.v1.ClusterOrBuilder>( + getCluster(), + getParentForChildren(), + isClean()); cluster_ = null; } return clusterBuilder_; @@ -1630,13 +1477,8 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { private com.google.protobuf.Duration gracefulDecommissionTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - gracefulDecommissionTimeoutBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> gracefulDecommissionTimeoutBuilder_; /** - * - * *
      * Optional. Timeout for graceful YARN decomissioning. Graceful
      * decommissioning allows removing nodes from the cluster without
@@ -1648,18 +1490,13 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() {
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gracefulDecommissionTimeout field is set. */ public boolean hasGracefulDecommissionTimeout() { return gracefulDecommissionTimeoutBuilder_ != null || gracefulDecommissionTimeout_ != null; } /** - * - * *
      * Optional. Timeout for graceful YARN decomissioning. Graceful
      * decommissioning allows removing nodes from the cluster without
@@ -1671,24 +1508,17 @@ public boolean hasGracefulDecommissionTimeout() {
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The gracefulDecommissionTimeout. */ public com.google.protobuf.Duration getGracefulDecommissionTimeout() { if (gracefulDecommissionTimeoutBuilder_ == null) { - return gracefulDecommissionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : gracefulDecommissionTimeout_; + return gracefulDecommissionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : gracefulDecommissionTimeout_; } else { return gracefulDecommissionTimeoutBuilder_.getMessage(); } } /** - * - * *
      * Optional. Timeout for graceful YARN decomissioning. Graceful
      * decommissioning allows removing nodes from the cluster without
@@ -1700,9 +1530,7 @@ public com.google.protobuf.Duration getGracefulDecommissionTimeout() {
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value) { if (gracefulDecommissionTimeoutBuilder_ == null) { @@ -1718,8 +1546,6 @@ public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value return this; } /** - * - * *
      * Optional. Timeout for graceful YARN decomissioning. Graceful
      * decommissioning allows removing nodes from the cluster without
@@ -1731,9 +1557,7 @@ public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGracefulDecommissionTimeout( com.google.protobuf.Duration.Builder builderForValue) { @@ -1747,8 +1571,6 @@ public Builder setGracefulDecommissionTimeout( return this; } /** - * - * *
      * Optional. Timeout for graceful YARN decomissioning. Graceful
      * decommissioning allows removing nodes from the cluster without
@@ -1760,17 +1582,13 @@ public Builder setGracefulDecommissionTimeout(
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration value) { if (gracefulDecommissionTimeoutBuilder_ == null) { if (gracefulDecommissionTimeout_ != null) { gracefulDecommissionTimeout_ = - com.google.protobuf.Duration.newBuilder(gracefulDecommissionTimeout_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(gracefulDecommissionTimeout_).mergeFrom(value).buildPartial(); } else { gracefulDecommissionTimeout_ = value; } @@ -1782,8 +1600,6 @@ public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration val return this; } /** - * - * *
      * Optional. Timeout for graceful YARN decomissioning. Graceful
      * decommissioning allows removing nodes from the cluster without
@@ -1795,9 +1611,7 @@ public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration val
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGracefulDecommissionTimeout() { if (gracefulDecommissionTimeoutBuilder_ == null) { @@ -1811,8 +1625,6 @@ public Builder clearGracefulDecommissionTimeout() { return this; } /** - * - * *
      * Optional. Timeout for graceful YARN decomissioning. Graceful
      * decommissioning allows removing nodes from the cluster without
@@ -1824,18 +1636,14 @@ public Builder clearGracefulDecommissionTimeout() {
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getGracefulDecommissionTimeoutBuilder() { - + onChanged(); return getGracefulDecommissionTimeoutFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Timeout for graceful YARN decomissioning. Graceful
      * decommissioning allows removing nodes from the cluster without
@@ -1847,22 +1655,17 @@ public com.google.protobuf.Duration.Builder getGracefulDecommissionTimeoutBuilde
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { if (gracefulDecommissionTimeoutBuilder_ != null) { return gracefulDecommissionTimeoutBuilder_.getMessageOrBuilder(); } else { - return gracefulDecommissionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : gracefulDecommissionTimeout_; + return gracefulDecommissionTimeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : gracefulDecommissionTimeout_; } } /** - * - * *
      * Optional. Timeout for graceful YARN decomissioning. Graceful
      * decommissioning allows removing nodes from the cluster without
@@ -1874,22 +1677,17 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; */ 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> getGracefulDecommissionTimeoutFieldBuilder() { if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getGracefulDecommissionTimeout(), getParentForChildren(), isClean()); + gracefulDecommissionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getGracefulDecommissionTimeout(), + getParentForChildren(), + isClean()); gracefulDecommissionTimeout_ = null; } return gracefulDecommissionTimeoutBuilder_; @@ -1897,13 +1695,8 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. Specifies the path, relative to `Cluster`, of
      * the field to update. For example, to change the number of workers
@@ -1955,17 +1748,13 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui
      *  </table>
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Specifies the path, relative to `Cluster`, of
      * the field to update. For example, to change the number of workers
@@ -2017,23 +1806,17 @@ public boolean hasUpdateMask() {
      *  </table>
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. Specifies the path, relative to `Cluster`, of
      * the field to update. For example, to change the number of workers
@@ -2085,8 +1868,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      *  </table>
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -2102,8 +1884,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Specifies the path, relative to `Cluster`, of
      * the field to update. For example, to change the number of workers
@@ -2155,10 +1935,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *  </table>
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -2169,8 +1949,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Specifies the path, relative to `Cluster`, of
      * the field to update. For example, to change the number of workers
@@ -2222,14 +2000,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      *  </table>
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -2241,8 +2018,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Specifies the path, relative to `Cluster`, of
      * the field to update. For example, to change the number of workers
@@ -2294,8 +2069,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      *  </table>
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -2309,8 +2083,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Specifies the path, relative to `Cluster`, of
      * the field to update. For example, to change the number of workers
@@ -2362,17 +2134,14 @@ public Builder clearUpdateMask() {
      *  </table>
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Specifies the path, relative to `Cluster`, of
      * the field to update. For example, to change the number of workers
@@ -2424,21 +2193,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      *  </table>
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. Specifies the path, relative to `Cluster`, of
      * the field to update. For example, to change the number of workers
@@ -2490,21 +2255,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      *  </table>
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -2512,15 +2273,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -2528,13 +2287,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string request_id = 7 [(.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; @@ -2543,15 +2302,13 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -2559,14 +2316,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 7 [(.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 { @@ -2574,15 +2332,13 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -2590,29 +2346,27 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 7 [(.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. A unique ID used to identify the request. If the server
      * receives two
      * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -2620,25 +2374,22 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
      * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -2646,23 +2397,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 7 [(.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); } @@ -2672,12 +2423,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.UpdateClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.UpdateClusterRequest) private static final com.google.cloud.dataproc.v1.UpdateClusterRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.UpdateClusterRequest(); } @@ -2686,27 +2437,27 @@ public static com.google.cloud.dataproc.v1.UpdateClusterRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2721,4 +2472,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.UpdateClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java similarity index 86% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java index fb1ecbc5f5be..33a370d47669 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java @@ -1,146 +1,102 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface UpdateClusterRequestOrBuilder - extends +public interface UpdateClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.UpdateClusterRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ java.lang.String getRegion(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - com.google.protobuf.ByteString getRegionBytes(); + com.google.protobuf.ByteString + getRegionBytes(); /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The clusterName. */ java.lang.String getClusterName(); /** - * - * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString getClusterNameBytes(); + com.google.protobuf.ByteString + getClusterNameBytes(); /** - * - * *
    * Required. The changes to the cluster.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cluster field is set. */ boolean hasCluster(); /** - * - * *
    * Required. The changes to the cluster.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The cluster. */ com.google.cloud.dataproc.v1.Cluster getCluster(); /** - * - * *
    * Required. The changes to the cluster.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder(); /** - * - * *
    * Optional. Timeout for graceful YARN decomissioning. Graceful
    * decommissioning allows removing nodes from the cluster without
@@ -152,16 +108,11 @@ public interface UpdateClusterRequestOrBuilder
    * Only supported on Dataproc image versions 1.2 and higher.
    * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gracefulDecommissionTimeout field is set. */ boolean hasGracefulDecommissionTimeout(); /** - * - * *
    * Optional. Timeout for graceful YARN decomissioning. Graceful
    * decommissioning allows removing nodes from the cluster without
@@ -173,16 +124,11 @@ public interface UpdateClusterRequestOrBuilder
    * Only supported on Dataproc image versions 1.2 and higher.
    * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The gracefulDecommissionTimeout. */ com.google.protobuf.Duration getGracefulDecommissionTimeout(); /** - * - * *
    * Optional. Timeout for graceful YARN decomissioning. Graceful
    * decommissioning allows removing nodes from the cluster without
@@ -194,15 +140,11 @@ public interface UpdateClusterRequestOrBuilder
    * Only supported on Dataproc image versions 1.2 and higher.
    * 
* - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder(); /** - * - * *
    * Required. Specifies the path, relative to `Cluster`, of
    * the field to update. For example, to change the number of workers
@@ -254,15 +196,11 @@ public interface UpdateClusterRequestOrBuilder
    *  </table>
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Specifies the path, relative to `Cluster`, of
    * the field to update. For example, to change the number of workers
@@ -314,15 +252,11 @@ public interface UpdateClusterRequestOrBuilder
    *  </table>
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Specifies the path, relative to `Cluster`, of
    * the field to update. For example, to change the number of workers
@@ -374,21 +308,18 @@ public interface UpdateClusterRequestOrBuilder
    *  </table>
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -396,20 +327,17 @@ public interface UpdateClusterRequestOrBuilder
    * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
    * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -417,8 +345,8 @@ public interface UpdateClusterRequestOrBuilder
    * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java similarity index 74% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java index f13425dd7d51..f477d5cff8e6 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.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/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to update a job.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.UpdateJobRequest} */ -public final class UpdateJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.UpdateJobRequest) UpdateJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateJobRequest.newBuilder() to construct. private UpdateJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateJobRequest() { projectId_ = ""; region_ = ""; @@ -45,42 +27,38 @@ private UpdateJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateJobRequest.class, - com.google.cloud.dataproc.v1.UpdateJobRequest.Builder.class); + com.google.cloud.dataproc.v1.UpdateJobRequest.class, com.google.cloud.dataproc.v1.UpdateJobRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -89,30 +67,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -123,14 +101,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int REGION_FIELD_NUMBER = 2; private volatile java.lang.Object region_; /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ @java.lang.Override @@ -139,29 +114,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -172,14 +147,11 @@ public com.google.protobuf.ByteString getRegionBytes() { public static final int JOB_ID_FIELD_NUMBER = 3; private volatile java.lang.Object jobId_; /** - * - * *
    * Required. The job ID.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The jobId. */ @java.lang.Override @@ -188,29 +160,29 @@ public java.lang.String getJobId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; } } /** - * - * *
    * Required. The job ID.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for jobId. */ @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { + public com.google.protobuf.ByteString + getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); jobId_ = b; return b; } else { @@ -221,14 +193,11 @@ public com.google.protobuf.ByteString getJobIdBytes() { public static final int JOB_FIELD_NUMBER = 4; private com.google.cloud.dataproc.v1.Job job_; /** - * - * *
    * Required. The changes to the job.
    * 
* * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the job field is set. */ @java.lang.Override @@ -236,14 +205,11 @@ public boolean hasJob() { return job_ != null; } /** - * - * *
    * Required. The changes to the job.
    * 
* * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The job. */ @java.lang.Override @@ -251,8 +217,6 @@ public com.google.cloud.dataproc.v1.Job getJob() { return job_ == null ? com.google.cloud.dataproc.v1.Job.getDefaultInstance() : job_; } /** - * - * *
    * Required. The changes to the job.
    * 
@@ -267,8 +231,6 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 5; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Specifies the path, relative to <code>Job</code>, of
    * the field to update. For example, to update the labels of a Job the
@@ -278,9 +240,7 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() {
    * field that can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -288,8 +248,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Specifies the path, relative to <code>Job</code>, of
    * the field to update. For example, to update the labels of a Job the
@@ -299,9 +257,7 @@ public boolean hasUpdateMask() {
    * field that can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -309,8 +265,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Specifies the path, relative to <code>Job</code>, of
    * the field to update. For example, to update the labels of a Job the
@@ -320,8 +274,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * field that can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -329,7 +282,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,7 +293,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -376,10 +329,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobId_); } if (job_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getJob()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getJob()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -389,24 +344,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.UpdateJobRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.UpdateJobRequest other = - (com.google.cloud.dataproc.v1.UpdateJobRequest) obj; + com.google.cloud.dataproc.v1.UpdateJobRequest other = (com.google.cloud.dataproc.v1.UpdateJobRequest) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getJobId().equals(other.getJobId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getRegion() + .equals(other.getRegion())) 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 (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -438,136 +397,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.UpdateJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.UpdateJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A request to update a job.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.UpdateJobRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.UpdateJobRequest) com.google.cloud.dataproc.v1.UpdateJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateJobRequest.class, - com.google.cloud.dataproc.v1.UpdateJobRequest.Builder.class); + com.google.cloud.dataproc.v1.UpdateJobRequest.class, com.google.cloud.dataproc.v1.UpdateJobRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.UpdateJobRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +546,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; } @java.lang.Override @@ -614,8 +567,7 @@ public com.google.cloud.dataproc.v1.UpdateJobRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.UpdateJobRequest buildPartial() { - com.google.cloud.dataproc.v1.UpdateJobRequest result = - new com.google.cloud.dataproc.v1.UpdateJobRequest(this); + com.google.cloud.dataproc.v1.UpdateJobRequest result = new com.google.cloud.dataproc.v1.UpdateJobRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.jobId_ = jobId_; @@ -637,39 +589,38 @@ public com.google.cloud.dataproc.v1.UpdateJobRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.UpdateJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.UpdateJobRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.UpdateJobRequest)other); } else { super.mergeFrom(other); return this; @@ -722,43 +673,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - input.readMessage(getJobFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + region_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + input.readMessage( + getJobFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -771,21 +720,19 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -794,22 +741,21 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -817,64 +763,57 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -882,20 +821,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object region_ = ""; /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -904,21 +841,20 @@ public java.lang.String getRegion() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); region_ = b; return b; } else { @@ -926,61 +862,54 @@ public com.google.protobuf.ByteString getRegionBytes() { } } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion(java.lang.String value) { + public Builder setRegion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** - * - * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -988,20 +917,18 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { private java.lang.Object jobId_ = ""; /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The jobId. */ public java.lang.String getJobId() { java.lang.Object ref = jobId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; @@ -1010,21 +937,20 @@ public java.lang.String getJobId() { } } /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for jobId. */ - public com.google.protobuf.ByteString getJobIdBytes() { + public com.google.protobuf.ByteString + getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); jobId_ = b; return b; } else { @@ -1032,61 +958,54 @@ public com.google.protobuf.ByteString getJobIdBytes() { } } /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The jobId to set. * @return This builder for chaining. */ - public Builder setJobId(java.lang.String value) { + public Builder setJobId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearJobId() { - + jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** - * - * *
      * Required. The job ID.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for jobId to set. * @return This builder for chaining. */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { + public Builder setJobIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobId_ = value; onChanged(); return this; @@ -1094,33 +1013,24 @@ public Builder setJobIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dataproc.v1.Job job_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, - com.google.cloud.dataproc.v1.Job.Builder, - com.google.cloud.dataproc.v1.JobOrBuilder> - jobBuilder_; + com.google.cloud.dataproc.v1.Job, com.google.cloud.dataproc.v1.Job.Builder, com.google.cloud.dataproc.v1.JobOrBuilder> jobBuilder_; /** - * - * *
      * Required. The changes to the job.
      * 
* * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the job field is set. */ public boolean hasJob() { return jobBuilder_ != null || job_ != null; } /** - * - * *
      * Required. The changes to the job.
      * 
* * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The job. */ public com.google.cloud.dataproc.v1.Job getJob() { @@ -1131,8 +1041,6 @@ public com.google.cloud.dataproc.v1.Job getJob() { } } /** - * - * *
      * Required. The changes to the job.
      * 
@@ -1153,15 +1061,14 @@ public Builder setJob(com.google.cloud.dataproc.v1.Job value) { return this; } /** - * - * *
      * Required. The changes to the job.
      * 
* * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setJob(com.google.cloud.dataproc.v1.Job.Builder builderForValue) { + public Builder setJob( + com.google.cloud.dataproc.v1.Job.Builder builderForValue) { if (jobBuilder_ == null) { job_ = builderForValue.build(); onChanged(); @@ -1172,8 +1079,6 @@ public Builder setJob(com.google.cloud.dataproc.v1.Job.Builder builderForValue) return this; } /** - * - * *
      * Required. The changes to the job.
      * 
@@ -1183,7 +1088,8 @@ public Builder setJob(com.google.cloud.dataproc.v1.Job.Builder builderForValue) public Builder mergeJob(com.google.cloud.dataproc.v1.Job value) { if (jobBuilder_ == null) { if (job_ != null) { - job_ = com.google.cloud.dataproc.v1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + job_ = + com.google.cloud.dataproc.v1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); } else { job_ = value; } @@ -1195,8 +1101,6 @@ public Builder mergeJob(com.google.cloud.dataproc.v1.Job value) { return this; } /** - * - * *
      * Required. The changes to the job.
      * 
@@ -1215,8 +1119,6 @@ public Builder clearJob() { return this; } /** - * - * *
      * Required. The changes to the job.
      * 
@@ -1224,13 +1126,11 @@ public Builder clearJob() { * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.Job.Builder getJobBuilder() { - + onChanged(); return getJobFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The changes to the job.
      * 
@@ -1241,12 +1141,11 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { if (jobBuilder_ != null) { return jobBuilder_.getMessageOrBuilder(); } else { - return job_ == null ? com.google.cloud.dataproc.v1.Job.getDefaultInstance() : job_; + return job_ == null ? + com.google.cloud.dataproc.v1.Job.getDefaultInstance() : job_; } } /** - * - * *
      * Required. The changes to the job.
      * 
@@ -1254,17 +1153,14 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, - com.google.cloud.dataproc.v1.Job.Builder, - com.google.cloud.dataproc.v1.JobOrBuilder> + com.google.cloud.dataproc.v1.Job, com.google.cloud.dataproc.v1.Job.Builder, com.google.cloud.dataproc.v1.JobOrBuilder> getJobFieldBuilder() { if (jobBuilder_ == null) { - jobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, - com.google.cloud.dataproc.v1.Job.Builder, - com.google.cloud.dataproc.v1.JobOrBuilder>( - getJob(), getParentForChildren(), isClean()); + jobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.Job, com.google.cloud.dataproc.v1.Job.Builder, com.google.cloud.dataproc.v1.JobOrBuilder>( + getJob(), + getParentForChildren(), + isClean()); job_ = null; } return jobBuilder_; @@ -1272,13 +1168,8 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. Specifies the path, relative to <code>Job</code>, of
      * the field to update. For example, to update the labels of a Job the
@@ -1288,17 +1179,13 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() {
      * field that can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Specifies the path, relative to <code>Job</code>, of
      * the field to update. For example, to update the labels of a Job the
@@ -1308,23 +1195,17 @@ public boolean hasUpdateMask() {
      * field that can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. Specifies the path, relative to <code>Job</code>, of
      * the field to update. For example, to update the labels of a Job the
@@ -1334,8 +1215,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * field that can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1351,8 +1231,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Specifies the path, relative to <code>Job</code>, of
      * the field to update. For example, to update the labels of a Job the
@@ -1362,10 +1240,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * field that can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -1376,8 +1254,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Specifies the path, relative to <code>Job</code>, of
      * the field to update. For example, to update the labels of a Job the
@@ -1387,14 +1263,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * field that can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1406,8 +1281,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Specifies the path, relative to <code>Job</code>, of
      * the field to update. For example, to update the labels of a Job the
@@ -1417,8 +1290,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * field that can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -1432,8 +1304,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Specifies the path, relative to <code>Job</code>, of
      * the field to update. For example, to update the labels of a Job the
@@ -1443,17 +1313,14 @@ public Builder clearUpdateMask() {
      * field that can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Specifies the path, relative to <code>Job</code>, of
      * the field to update. For example, to update the labels of a Job the
@@ -1463,21 +1330,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * field that can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. Specifies the path, relative to <code>Job</code>, of
      * the field to update. For example, to update the labels of a Job the
@@ -1487,28 +1350,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * field that can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1518,12 +1377,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.UpdateJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.UpdateJobRequest) private static final com.google.cloud.dataproc.v1.UpdateJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.UpdateJobRequest(); } @@ -1532,27 +1391,27 @@ public static com.google.cloud.dataproc.v1.UpdateJobRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1567,4 +1426,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.UpdateJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java similarity index 79% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java index b4d66081e4ac..8ffa1051874a 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java @@ -1,132 +1,93 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface UpdateJobRequestOrBuilder - extends +public interface UpdateJobRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.UpdateJobRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The region. */ java.lang.String getRegion(); /** - * - * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for region. */ - com.google.protobuf.ByteString getRegionBytes(); + com.google.protobuf.ByteString + getRegionBytes(); /** - * - * *
    * Required. The job ID.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The jobId. */ java.lang.String getJobId(); /** - * - * *
    * Required. The job ID.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for jobId. */ - com.google.protobuf.ByteString getJobIdBytes(); + com.google.protobuf.ByteString + getJobIdBytes(); /** - * - * *
    * Required. The changes to the job.
    * 
* * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the job field is set. */ boolean hasJob(); /** - * - * *
    * Required. The changes to the job.
    * 
* * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The job. */ com.google.cloud.dataproc.v1.Job getJob(); /** - * - * *
    * Required. The changes to the job.
    * 
@@ -136,8 +97,6 @@ public interface UpdateJobRequestOrBuilder com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder(); /** - * - * *
    * Required. Specifies the path, relative to <code>Job</code>, of
    * the field to update. For example, to update the labels of a Job the
@@ -147,15 +106,11 @@ public interface UpdateJobRequestOrBuilder
    * field that can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Specifies the path, relative to <code>Job</code>, of
    * the field to update. For example, to update the labels of a Job the
@@ -165,15 +120,11 @@ public interface UpdateJobRequestOrBuilder
    * field that can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Specifies the path, relative to <code>Job</code>, of
    * the field to update. For example, to update the labels of a Job the
@@ -183,8 +134,7 @@ public interface UpdateJobRequestOrBuilder
    * field that can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java similarity index 62% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java index 3feffb7f46ec..93beaf840317 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java @@ -1,84 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A request to update a workflow template.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest} */ -public final class UpdateWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateWorkflowTemplateRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) UpdateWorkflowTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateWorkflowTemplateRequest.newBuilder() to construct. private UpdateWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateWorkflowTemplateRequest() {} + private UpdateWorkflowTemplateRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateWorkflowTemplateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.Builder.class); } public static final int TEMPLATE_FIELD_NUMBER = 1; private com.google.cloud.dataproc.v1.WorkflowTemplate template_; /** - * - * *
    * Required. The updated workflow template.
    * The `template.version` field must match the current version.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the template field is set. */ @java.lang.Override @@ -86,36 +63,25 @@ public boolean hasTemplate() { return template_ != null; } /** - * - * *
    * Required. The updated workflow template.
    * The `template.version` field must match the current version.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The template. */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate() { - return template_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() - : template_; + return template_ == null ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() : template_; } /** - * - * *
    * Required. The updated workflow template.
    * The `template.version` field must match the current version.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder() { @@ -123,7 +89,6 @@ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuild } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +100,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 (template_ != null) { output.writeMessage(1, getTemplate()); } @@ -149,7 +115,8 @@ public int getSerializedSize() { size = 0; if (template_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTemplate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTemplate()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -159,17 +126,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.dataproc.v1.UpdateWorkflowTemplateRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest other = - (com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) obj; + com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest other = (com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) obj; if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { - if (!getTemplate().equals(other.getTemplate())) return false; + if (!getTemplate() + .equals(other.getTemplate())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -192,136 +159,129 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest 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.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest prototype) { + public static Builder newBuilder(com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to update a workflow template.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -335,9 +295,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; } @java.lang.Override @@ -356,8 +316,7 @@ public com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest result = - new com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest(this); + com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest result = new com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest(this); if (templateBuilder_ == null) { result.template_ = template_; } else { @@ -371,39 +330,38 @@ public com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) other); + return mergeFrom((com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest)other); } else { super.mergeFrom(other); return this; @@ -411,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest other) { - if (other == com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.getDefaultInstance()) return this; if (other.hasTemplate()) { mergeTemplate(other.getTemplate()); } @@ -442,19 +399,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getTemplateFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getTemplateFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -467,61 +424,42 @@ public Builder mergeFrom( private com.google.cloud.dataproc.v1.WorkflowTemplate template_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> - templateBuilder_; + com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> templateBuilder_; /** - * - * *
      * Required. The updated workflow template.
      * The `template.version` field must match the current version.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the template field is set. */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** - * - * *
      * Required. The updated workflow template.
      * The `template.version` field must match the current version.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The template. */ public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate() { if (templateBuilder_ == null) { - return template_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() - : template_; + return template_ == null ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** - * - * *
      * Required. The updated workflow template.
      * The `template.version` field must match the current version.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) { if (templateBuilder_ == null) { @@ -537,16 +475,12 @@ public Builder setTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) return this; } /** - * - * *
      * Required. The updated workflow template.
      * The `template.version` field must match the current version.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTemplate( com.google.cloud.dataproc.v1.WorkflowTemplate.Builder builderForValue) { @@ -560,24 +494,18 @@ public Builder setTemplate( return this; } /** - * - * *
      * Required. The updated workflow template.
      * The `template.version` field must match the current version.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = - com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder(template_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); } else { template_ = value; } @@ -589,16 +517,12 @@ public Builder mergeTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value return this; } /** - * - * *
      * Required. The updated workflow template.
      * The `template.version` field must match the current version.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTemplate() { if (templateBuilder_ == null) { @@ -612,74 +536,58 @@ public Builder clearTemplate() { return this; } /** - * - * *
      * Required. The updated workflow template.
      * The `template.version` field must match the current version.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder getTemplateBuilder() { - + onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The updated workflow template.
      * The `template.version` field must match the current version.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { - return template_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() - : template_; + return template_ == null ? + com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() : template_; } } /** - * - * *
      * Required. The updated workflow template.
      * The `template.version` field must match the current version.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> + com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { - templateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( - getTemplate(), getParentForChildren(), isClean()); + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); template_ = null; } return templateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -689,12 +597,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) private static final com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest(); } @@ -703,27 +611,27 @@ public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkflowTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -738,4 +646,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..862109929e8c --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/workflow_templates.proto + +package com.google.cloud.dataproc.v1; + +public interface UpdateWorkflowTemplateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The updated workflow template.
+   * The `template.version` field must match the current version.
+   * 
+ * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the template field is set. + */ + boolean hasTemplate(); + /** + *
+   * Required. The updated workflow template.
+   * The `template.version` field must match the current version.
+   * 
+ * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The template. + */ + com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate(); + /** + *
+   * Required. The updated workflow template.
+   * The `template.version` field must match the current version.
+   * 
+ * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder(); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java similarity index 68% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java index 38fc0bcc5356..6a6cd874f1cd 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java @@ -1,111 +1,84 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Validation based on a list of allowed values.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ValueValidation} */ -public final class ValueValidation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ValueValidation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ValueValidation) ValueValidationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ValueValidation.newBuilder() to construct. private ValueValidation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ValueValidation() { values_ = 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 ValueValidation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ValueValidation_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ValueValidation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ValueValidation.class, - com.google.cloud.dataproc.v1.ValueValidation.Builder.class); + com.google.cloud.dataproc.v1.ValueValidation.class, com.google.cloud.dataproc.v1.ValueValidation.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList values_; /** - * - * *
    * Required. List of allowed values for the parameter.
    * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList getValuesList() { + public com.google.protobuf.ProtocolStringList + getValuesList() { return values_; } /** - * - * *
    * Required. List of allowed values for the parameter.
    * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** - * - * *
    * Required. List of allowed values for the parameter.
    * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The values at the given index. */ @@ -113,23 +86,20 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** - * - * *
    * Required. List of allowed values for the parameter.
    * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString getValuesBytes(int index) { + public com.google.protobuf.ByteString + getValuesBytes(int index) { return values_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,7 +111,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 < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); } @@ -170,15 +141,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.dataproc.v1.ValueValidation)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ValueValidation other = - (com.google.cloud.dataproc.v1.ValueValidation) obj; + com.google.cloud.dataproc.v1.ValueValidation other = (com.google.cloud.dataproc.v1.ValueValidation) obj; - if (!getValuesList().equals(other.getValuesList())) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,136 +170,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.ValueValidation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.ValueValidation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ValueValidation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ValueValidation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Validation based on a list of allowed values.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ValueValidation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ValueValidation) com.google.cloud.dataproc.v1.ValueValidationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ValueValidation_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ValueValidation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ValueValidation.class, - com.google.cloud.dataproc.v1.ValueValidation.Builder.class); + com.google.cloud.dataproc.v1.ValueValidation.class, com.google.cloud.dataproc.v1.ValueValidation.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ValueValidation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -338,9 +303,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; } @java.lang.Override @@ -359,8 +324,7 @@ public com.google.cloud.dataproc.v1.ValueValidation build() { @java.lang.Override public com.google.cloud.dataproc.v1.ValueValidation buildPartial() { - com.google.cloud.dataproc.v1.ValueValidation result = - new com.google.cloud.dataproc.v1.ValueValidation(this); + com.google.cloud.dataproc.v1.ValueValidation result = new com.google.cloud.dataproc.v1.ValueValidation(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); @@ -375,39 +339,38 @@ public com.google.cloud.dataproc.v1.ValueValidation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ValueValidation) { - return mergeFrom((com.google.cloud.dataproc.v1.ValueValidation) other); + return mergeFrom((com.google.cloud.dataproc.v1.ValueValidation)other); } else { super.mergeFrom(other); return this; @@ -452,20 +415,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -475,55 +436,44 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList values_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. List of allowed values for the parameter.
      * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList getValuesList() { + public com.google.protobuf.ProtocolStringList + getValuesList() { return values_.getUnmodifiableView(); } /** - * - * *
      * Required. List of allowed values for the parameter.
      * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** - * - * *
      * Required. List of allowed values for the parameter.
      * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The values at the given index. */ @@ -531,90 +481,80 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** - * - * *
      * Required. List of allowed values for the parameter.
      * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString getValuesBytes(int index) { + public com.google.protobuf.ByteString + getValuesBytes(int index) { return values_.getByteString(index); } /** - * - * *
      * Required. List of allowed values for the parameter.
      * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ - public Builder setValues(int index, java.lang.String value) { + public Builder setValues( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. List of allowed values for the parameter.
      * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The values to add. * @return This builder for chaining. */ - public Builder addValues(java.lang.String value) { + public Builder addValues( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** - * - * *
      * Required. List of allowed values for the parameter.
      * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The values to add. * @return This builder for chaining. */ - public Builder addAllValues(java.lang.Iterable values) { + public Builder addAllValues( + java.lang.Iterable values) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); onChanged(); return this; } /** - * - * *
      * Required. List of allowed values for the parameter.
      * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearValues() { @@ -624,30 +564,28 @@ public Builder clearValues() { return this; } /** - * - * *
      * Required. List of allowed values for the parameter.
      * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the values to add. * @return This builder for chaining. */ - public Builder addValuesBytes(com.google.protobuf.ByteString value) { + public Builder addValuesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.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); } @@ -657,12 +595,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ValueValidation) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ValueValidation) private static final com.google.cloud.dataproc.v1.ValueValidation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ValueValidation(); } @@ -671,27 +609,27 @@ public static com.google.cloud.dataproc.v1.ValueValidation getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValueValidation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValueValidation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -706,4 +644,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ValueValidation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java similarity index 62% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java index 213558389ef2..79cf41968dd6 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java @@ -1,76 +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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface ValueValidationOrBuilder - extends +public interface ValueValidationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ValueValidation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. List of allowed values for the parameter.
    * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the values. */ - java.util.List getValuesList(); + java.util.List + getValuesList(); /** - * - * *
    * Required. List of allowed values for the parameter.
    * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of values. */ int getValuesCount(); /** - * - * *
    * Required. List of allowed values for the parameter.
    * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** - * - * *
    * Required. List of allowed values for the parameter.
    * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - com.google.protobuf.ByteString getValuesBytes(int index); + com.google.protobuf.ByteString + getValuesBytes(int index); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java similarity index 64% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java index f6dfead332fc..77e4d5a0f8f2 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java @@ -1,85 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** - * - * *
- * Dataproc cluster config for a cluster that does not directly control the
+ * The Dataproc cluster config for a cluster that does not directly control the
  * underlying compute resources, such as a [Dataproc-on-GKE
- * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+ * cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke).
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.VirtualClusterConfig} */ -public final class VirtualClusterConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VirtualClusterConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.VirtualClusterConfig) VirtualClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VirtualClusterConfig.newBuilder() to construct. private VirtualClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VirtualClusterConfig() { stagingBucket_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VirtualClusterConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.VirtualClusterConfig.class, - com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder.class); + com.google.cloud.dataproc.v1.VirtualClusterConfig.class, com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder.class); } private int infrastructureConfigCase_ = 0; private java.lang.Object infrastructureConfig_; - public enum InfrastructureConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { KUBERNETES_CLUSTER_CONFIG(6), INFRASTRUCTURECONFIG_NOT_SET(0); private final int value; - private InfrastructureConfigCase(int value) { this.value = value; } @@ -95,31 +73,27 @@ public static InfrastructureConfigCase valueOf(int value) { public static InfrastructureConfigCase forNumber(int value) { switch (value) { - case 6: - return KUBERNETES_CLUSTER_CONFIG; - case 0: - return INFRASTRUCTURECONFIG_NOT_SET; - default: - return null; + case 6: return KUBERNETES_CLUSTER_CONFIG; + case 0: return INFRASTRUCTURECONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public InfrastructureConfigCase getInfrastructureConfigCase() { - return InfrastructureConfigCase.forNumber(infrastructureConfigCase_); + public InfrastructureConfigCase + getInfrastructureConfigCase() { + return InfrastructureConfigCase.forNumber( + infrastructureConfigCase_); } public static final int STAGING_BUCKET_FIELD_NUMBER = 1; private volatile java.lang.Object stagingBucket_; /** - * - * *
-   * Optional. A Storage bucket used to stage job
+   * Optional. A Cloud Storage bucket used to stage job
    * dependencies, config files, and job driver console output.
    * If you do not specify a staging bucket, Cloud
    * Dataproc will determine a Cloud Storage location (US,
@@ -133,7 +107,6 @@ public InfrastructureConfigCase getInfrastructureConfigCase() {
    * 
* * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The stagingBucket. */ @java.lang.Override @@ -142,17 +115,16 @@ public java.lang.String getStagingBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stagingBucket_ = s; return s; } } /** - * - * *
-   * Optional. A Storage bucket used to stage job
+   * Optional. A Cloud Storage bucket used to stage job
    * dependencies, config files, and job driver console output.
    * If you do not specify a staging bucket, Cloud
    * Dataproc will determine a Cloud Storage location (US,
@@ -166,15 +138,16 @@ public java.lang.String getStagingBucket() {
    * 
* * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for stagingBucket. */ @java.lang.Override - public com.google.protobuf.ByteString getStagingBucketBytes() { + public com.google.protobuf.ByteString + getStagingBucketBytes() { java.lang.Object ref = stagingBucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stagingBucket_ = b; return b; } else { @@ -184,16 +157,12 @@ public com.google.protobuf.ByteString getStagingBucketBytes() { public static final int KUBERNETES_CLUSTER_CONFIG_FIELD_NUMBER = 6; /** - * - * *
-   * Required. The configuration for running the Dataproc cluster on Kubernetes.
+   * Required. The configuration for running the Dataproc cluster on
+   * Kubernetes.
    * 
* - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the kubernetesClusterConfig field is set. */ @java.lang.Override @@ -201,41 +170,33 @@ public boolean hasKubernetesClusterConfig() { return infrastructureConfigCase_ == 6; } /** - * - * *
-   * Required. The configuration for running the Dataproc cluster on Kubernetes.
+   * Required. The configuration for running the Dataproc cluster on
+   * Kubernetes.
    * 
* - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The kubernetesClusterConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.KubernetesClusterConfig getKubernetesClusterConfig() { if (infrastructureConfigCase_ == 6) { - return (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_; + return (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_; } return com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); } /** - * - * *
-   * Required. The configuration for running the Dataproc cluster on Kubernetes.
+   * Required. The configuration for running the Dataproc cluster on
+   * Kubernetes.
    * 
* - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder - getKubernetesClusterConfigOrBuilder() { + public com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder getKubernetesClusterConfigOrBuilder() { if (infrastructureConfigCase_ == 6) { - return (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_; + return (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_; } return com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); } @@ -243,16 +204,11 @@ public com.google.cloud.dataproc.v1.KubernetesClusterConfig getKubernetesCluster public static final int AUXILIARY_SERVICES_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliaryServicesConfig_; /** - * - * *
    * Optional. Configuration of auxiliary services used by this cluster.
    * 
* - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the auxiliaryServicesConfig field is set. */ @java.lang.Override @@ -260,43 +216,30 @@ public boolean hasAuxiliaryServicesConfig() { return auxiliaryServicesConfig_ != null; } /** - * - * *
    * Optional. Configuration of auxiliary services used by this cluster.
    * 
* - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The auxiliaryServicesConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getAuxiliaryServicesConfig() { - return auxiliaryServicesConfig_ == null - ? com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance() - : auxiliaryServicesConfig_; + return auxiliaryServicesConfig_ == null ? com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance() : auxiliaryServicesConfig_; } /** - * - * *
    * Optional. Configuration of auxiliary services used by this cluster.
    * 
* - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder - getAuxiliaryServicesConfigOrBuilder() { + public com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder getAuxiliaryServicesConfigOrBuilder() { return getAuxiliaryServicesConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,13 +251,13 @@ public final boolean isInitialized() { } @java.lang.Override - 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(stagingBucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stagingBucket_); } if (infrastructureConfigCase_ == 6) { - output.writeMessage( - 6, (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_); + output.writeMessage(6, (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_); } if (auxiliaryServicesConfig_ != null) { output.writeMessage(7, getAuxiliaryServicesConfig()); @@ -332,13 +275,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stagingBucket_); } if (infrastructureConfigCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_); } if (auxiliaryServicesConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAuxiliaryServicesConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getAuxiliaryServicesConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -348,23 +290,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.VirtualClusterConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.VirtualClusterConfig other = - (com.google.cloud.dataproc.v1.VirtualClusterConfig) obj; + com.google.cloud.dataproc.v1.VirtualClusterConfig other = (com.google.cloud.dataproc.v1.VirtualClusterConfig) obj; - if (!getStagingBucket().equals(other.getStagingBucket())) return false; + if (!getStagingBucket() + .equals(other.getStagingBucket())) return false; if (hasAuxiliaryServicesConfig() != other.hasAuxiliaryServicesConfig()) return false; if (hasAuxiliaryServicesConfig()) { - if (!getAuxiliaryServicesConfig().equals(other.getAuxiliaryServicesConfig())) return false; + if (!getAuxiliaryServicesConfig() + .equals(other.getAuxiliaryServicesConfig())) return false; } if (!getInfrastructureConfigCase().equals(other.getInfrastructureConfigCase())) return false; switch (infrastructureConfigCase_) { case 6: - if (!getKubernetesClusterConfig().equals(other.getKubernetesClusterConfig())) return false; + if (!getKubernetesClusterConfig() + .equals(other.getKubernetesClusterConfig())) return false; break; case 0: default: @@ -400,137 +344,131 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.VirtualClusterConfig 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.dataproc.v1.VirtualClusterConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.VirtualClusterConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * Dataproc cluster config for a cluster that does not directly control the
+   * The Dataproc cluster config for a cluster that does not directly control the
    * underlying compute resources, such as a [Dataproc-on-GKE
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+   * cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke).
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.VirtualClusterConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.VirtualClusterConfig) com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.VirtualClusterConfig.class, - com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder.class); + com.google.cloud.dataproc.v1.VirtualClusterConfig.class, com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.VirtualClusterConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -551,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; } @java.lang.Override @@ -572,8 +510,7 @@ public com.google.cloud.dataproc.v1.VirtualClusterConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.VirtualClusterConfig buildPartial() { - com.google.cloud.dataproc.v1.VirtualClusterConfig result = - new com.google.cloud.dataproc.v1.VirtualClusterConfig(this); + com.google.cloud.dataproc.v1.VirtualClusterConfig result = new com.google.cloud.dataproc.v1.VirtualClusterConfig(this); result.stagingBucket_ = stagingBucket_; if (infrastructureConfigCase_ == 6) { if (kubernetesClusterConfigBuilder_ == null) { @@ -596,39 +533,38 @@ public com.google.cloud.dataproc.v1.VirtualClusterConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.VirtualClusterConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.VirtualClusterConfig) other); + return mergeFrom((com.google.cloud.dataproc.v1.VirtualClusterConfig)other); } else { super.mergeFrom(other); return this; @@ -636,8 +572,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.VirtualClusterConfig other) { - if (other == com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance()) return this; if (!other.getStagingBucket().isEmpty()) { stagingBucket_ = other.stagingBucket_; onChanged(); @@ -646,15 +581,13 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.VirtualClusterConfig other mergeAuxiliaryServicesConfig(other.getAuxiliaryServicesConfig()); } switch (other.getInfrastructureConfigCase()) { - case KUBERNETES_CLUSTER_CONFIG: - { - mergeKubernetesClusterConfig(other.getKubernetesClusterConfig()); - break; - } - case INFRASTRUCTURECONFIG_NOT_SET: - { - break; - } + case KUBERNETES_CLUSTER_CONFIG: { + mergeKubernetesClusterConfig(other.getKubernetesClusterConfig()); + break; + } + case INFRASTRUCTURECONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -682,33 +615,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - stagingBucket_ = input.readStringRequireUtf8(); + case 10: { + stagingBucket_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 50: - { - input.readMessage( - getKubernetesClusterConfigFieldBuilder().getBuilder(), extensionRegistry); - infrastructureConfigCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage( - getAuxiliaryServicesConfigFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 50: { + input.readMessage( + getKubernetesClusterConfigFieldBuilder().getBuilder(), + extensionRegistry); + infrastructureConfigCase_ = 6; + break; + } // case 50 + case 58: { + input.readMessage( + getAuxiliaryServicesConfigFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -718,12 +649,12 @@ public Builder mergeFrom( } // finally return this; } - private int infrastructureConfigCase_ = 0; private java.lang.Object infrastructureConfig_; - - public InfrastructureConfigCase getInfrastructureConfigCase() { - return InfrastructureConfigCase.forNumber(infrastructureConfigCase_); + public InfrastructureConfigCase + getInfrastructureConfigCase() { + return InfrastructureConfigCase.forNumber( + infrastructureConfigCase_); } public Builder clearInfrastructureConfig() { @@ -733,12 +664,11 @@ public Builder clearInfrastructureConfig() { return this; } + private java.lang.Object stagingBucket_ = ""; /** - * - * *
-     * Optional. A Storage bucket used to stage job
+     * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
      * If you do not specify a staging bucket, Cloud
      * Dataproc will determine a Cloud Storage location (US,
@@ -752,13 +682,13 @@ public Builder clearInfrastructureConfig() {
      * 
* * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The stagingBucket. */ public java.lang.String getStagingBucket() { java.lang.Object ref = stagingBucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stagingBucket_ = s; return s; @@ -767,10 +697,8 @@ public java.lang.String getStagingBucket() { } } /** - * - * *
-     * Optional. A Storage bucket used to stage job
+     * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
      * If you do not specify a staging bucket, Cloud
      * Dataproc will determine a Cloud Storage location (US,
@@ -784,14 +712,15 @@ public java.lang.String getStagingBucket() {
      * 
* * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for stagingBucket. */ - public com.google.protobuf.ByteString getStagingBucketBytes() { + public com.google.protobuf.ByteString + getStagingBucketBytes() { java.lang.Object ref = stagingBucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stagingBucket_ = b; return b; } else { @@ -799,10 +728,8 @@ public com.google.protobuf.ByteString getStagingBucketBytes() { } } /** - * - * *
-     * Optional. A Storage bucket used to stage job
+     * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
      * If you do not specify a staging bucket, Cloud
      * Dataproc will determine a Cloud Storage location (US,
@@ -816,24 +743,22 @@ public com.google.protobuf.ByteString getStagingBucketBytes() {
      * 
* * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The stagingBucket to set. * @return This builder for chaining. */ - public Builder setStagingBucket(java.lang.String value) { + public Builder setStagingBucket( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stagingBucket_ = value; onChanged(); return this; } /** - * - * *
-     * Optional. A Storage bucket used to stage job
+     * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
      * If you do not specify a staging bucket, Cloud
      * Dataproc will determine a Cloud Storage location (US,
@@ -847,20 +772,17 @@ public Builder setStagingBucket(java.lang.String value) {
      * 
* * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearStagingBucket() { - + stagingBucket_ = getDefaultInstance().getStagingBucket(); onChanged(); return this; } /** - * - * *
-     * Optional. A Storage bucket used to stage job
+     * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
      * If you do not specify a staging bucket, Cloud
      * Dataproc will determine a Cloud Storage location (US,
@@ -874,37 +796,30 @@ public Builder clearStagingBucket() {
      * 
* * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for stagingBucket to set. * @return This builder for chaining. */ - public Builder setStagingBucketBytes(com.google.protobuf.ByteString value) { + public Builder setStagingBucketBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stagingBucket_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KubernetesClusterConfig, - com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, - com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder> - kubernetesClusterConfigBuilder_; + com.google.cloud.dataproc.v1.KubernetesClusterConfig, com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder> kubernetesClusterConfigBuilder_; /** - * - * *
-     * Required. The configuration for running the Dataproc cluster on Kubernetes.
+     * Required. The configuration for running the Dataproc cluster on
+     * Kubernetes.
      * 
* - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the kubernetesClusterConfig field is set. */ @java.lang.Override @@ -912,16 +827,12 @@ public boolean hasKubernetesClusterConfig() { return infrastructureConfigCase_ == 6; } /** - * - * *
-     * Required. The configuration for running the Dataproc cluster on Kubernetes.
+     * Required. The configuration for running the Dataproc cluster on
+     * Kubernetes.
      * 
* - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The kubernetesClusterConfig. */ @java.lang.Override @@ -939,18 +850,14 @@ public com.google.cloud.dataproc.v1.KubernetesClusterConfig getKubernetesCluster } } /** - * - * *
-     * Required. The configuration for running the Dataproc cluster on Kubernetes.
+     * Required. The configuration for running the Dataproc cluster on
+     * Kubernetes.
      * 
* - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setKubernetesClusterConfig( - com.google.cloud.dataproc.v1.KubernetesClusterConfig value) { + public Builder setKubernetesClusterConfig(com.google.cloud.dataproc.v1.KubernetesClusterConfig value) { if (kubernetesClusterConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -964,15 +871,12 @@ public Builder setKubernetesClusterConfig( return this; } /** - * - * *
-     * Required. The configuration for running the Dataproc cluster on Kubernetes.
+     * Required. The configuration for running the Dataproc cluster on
+     * Kubernetes.
      * 
* - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setKubernetesClusterConfig( com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder builderForValue) { @@ -986,27 +890,19 @@ public Builder setKubernetesClusterConfig( return this; } /** - * - * *
-     * Required. The configuration for running the Dataproc cluster on Kubernetes.
+     * Required. The configuration for running the Dataproc cluster on
+     * Kubernetes.
      * 
* - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeKubernetesClusterConfig( - com.google.cloud.dataproc.v1.KubernetesClusterConfig value) { + public Builder mergeKubernetesClusterConfig(com.google.cloud.dataproc.v1.KubernetesClusterConfig value) { if (kubernetesClusterConfigBuilder_ == null) { - if (infrastructureConfigCase_ == 6 - && infrastructureConfig_ - != com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance()) { - infrastructureConfig_ = - com.google.cloud.dataproc.v1.KubernetesClusterConfig.newBuilder( - (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_) - .mergeFrom(value) - .buildPartial(); + if (infrastructureConfigCase_ == 6 && + infrastructureConfig_ != com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance()) { + infrastructureConfig_ = com.google.cloud.dataproc.v1.KubernetesClusterConfig.newBuilder((com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_) + .mergeFrom(value).buildPartial(); } else { infrastructureConfig_ = value; } @@ -1022,15 +918,12 @@ public Builder mergeKubernetesClusterConfig( return this; } /** - * - * *
-     * Required. The configuration for running the Dataproc cluster on Kubernetes.
+     * Required. The configuration for running the Dataproc cluster on
+     * Kubernetes.
      * 
* - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearKubernetesClusterConfig() { if (kubernetesClusterConfigBuilder_ == null) { @@ -1049,34 +942,26 @@ public Builder clearKubernetesClusterConfig() { return this; } /** - * - * *
-     * Required. The configuration for running the Dataproc cluster on Kubernetes.
+     * Required. The configuration for running the Dataproc cluster on
+     * Kubernetes.
      * 
* - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder - getKubernetesClusterConfigBuilder() { + public com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder getKubernetesClusterConfigBuilder() { return getKubernetesClusterConfigFieldBuilder().getBuilder(); } /** - * - * *
-     * Required. The configuration for running the Dataproc cluster on Kubernetes.
+     * Required. The configuration for running the Dataproc cluster on
+     * Kubernetes.
      * 
* - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder - getKubernetesClusterConfigOrBuilder() { + public com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder getKubernetesClusterConfigOrBuilder() { if ((infrastructureConfigCase_ == 6) && (kubernetesClusterConfigBuilder_ != null)) { return kubernetesClusterConfigBuilder_.getMessageOrBuilder(); } else { @@ -1087,99 +972,69 @@ public Builder clearKubernetesClusterConfig() { } } /** - * - * *
-     * Required. The configuration for running the Dataproc cluster on Kubernetes.
+     * Required. The configuration for running the Dataproc cluster on
+     * Kubernetes.
      * 
* - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KubernetesClusterConfig, - com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, - com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder> + com.google.cloud.dataproc.v1.KubernetesClusterConfig, com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder> getKubernetesClusterConfigFieldBuilder() { if (kubernetesClusterConfigBuilder_ == null) { if (!(infrastructureConfigCase_ == 6)) { - infrastructureConfig_ = - com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); + infrastructureConfig_ = com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); } - kubernetesClusterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KubernetesClusterConfig, - com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, - com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder>( + kubernetesClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.KubernetesClusterConfig, com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder>( (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_, getParentForChildren(), isClean()); infrastructureConfig_ = null; } infrastructureConfigCase_ = 6; - onChanged(); - ; + onChanged();; return kubernetesClusterConfigBuilder_; } private com.google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliaryServicesConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig, - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder, - com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder> - auxiliaryServicesConfigBuilder_; + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig, com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder, com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder> auxiliaryServicesConfigBuilder_; /** - * - * *
      * Optional. Configuration of auxiliary services used by this cluster.
      * 
* - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the auxiliaryServicesConfig field is set. */ public boolean hasAuxiliaryServicesConfig() { return auxiliaryServicesConfigBuilder_ != null || auxiliaryServicesConfig_ != null; } /** - * - * *
      * Optional. Configuration of auxiliary services used by this cluster.
      * 
* - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The auxiliaryServicesConfig. */ public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getAuxiliaryServicesConfig() { if (auxiliaryServicesConfigBuilder_ == null) { - return auxiliaryServicesConfig_ == null - ? com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance() - : auxiliaryServicesConfig_; + return auxiliaryServicesConfig_ == null ? com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance() : auxiliaryServicesConfig_; } else { return auxiliaryServicesConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Configuration of auxiliary services used by this cluster.
      * 
* - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setAuxiliaryServicesConfig( - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig value) { + public Builder setAuxiliaryServicesConfig(com.google.cloud.dataproc.v1.AuxiliaryServicesConfig value) { if (auxiliaryServicesConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1193,15 +1048,11 @@ public Builder setAuxiliaryServicesConfig( return this; } /** - * - * *
      * Optional. Configuration of auxiliary services used by this cluster.
      * 
* - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAuxiliaryServicesConfig( com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder builderForValue) { @@ -1215,25 +1066,17 @@ public Builder setAuxiliaryServicesConfig( return this; } /** - * - * *
      * Optional. Configuration of auxiliary services used by this cluster.
      * 
* - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeAuxiliaryServicesConfig( - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig value) { + public Builder mergeAuxiliaryServicesConfig(com.google.cloud.dataproc.v1.AuxiliaryServicesConfig value) { if (auxiliaryServicesConfigBuilder_ == null) { if (auxiliaryServicesConfig_ != null) { auxiliaryServicesConfig_ = - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.newBuilder( - auxiliaryServicesConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.newBuilder(auxiliaryServicesConfig_).mergeFrom(value).buildPartial(); } else { auxiliaryServicesConfig_ = value; } @@ -1245,15 +1088,11 @@ public Builder mergeAuxiliaryServicesConfig( return this; } /** - * - * *
      * Optional. Configuration of auxiliary services used by this cluster.
      * 
* - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAuxiliaryServicesConfig() { if (auxiliaryServicesConfigBuilder_ == null) { @@ -1267,73 +1106,55 @@ public Builder clearAuxiliaryServicesConfig() { return this; } /** - * - * *
      * Optional. Configuration of auxiliary services used by this cluster.
      * 
* - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder - getAuxiliaryServicesConfigBuilder() { - + public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder getAuxiliaryServicesConfigBuilder() { + onChanged(); return getAuxiliaryServicesConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Configuration of auxiliary services used by this cluster.
      * 
* - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder - getAuxiliaryServicesConfigOrBuilder() { + public com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder getAuxiliaryServicesConfigOrBuilder() { if (auxiliaryServicesConfigBuilder_ != null) { return auxiliaryServicesConfigBuilder_.getMessageOrBuilder(); } else { - return auxiliaryServicesConfig_ == null - ? com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance() - : auxiliaryServicesConfig_; + return auxiliaryServicesConfig_ == null ? + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance() : auxiliaryServicesConfig_; } } /** - * - * *
      * Optional. Configuration of auxiliary services used by this cluster.
      * 
* - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig, - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder, - com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder> + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig, com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder, com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder> getAuxiliaryServicesConfigFieldBuilder() { if (auxiliaryServicesConfigBuilder_ == null) { - auxiliaryServicesConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig, - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder, - com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder>( - getAuxiliaryServicesConfig(), getParentForChildren(), isClean()); + auxiliaryServicesConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig, com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder, com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder>( + getAuxiliaryServicesConfig(), + getParentForChildren(), + isClean()); auxiliaryServicesConfig_ = null; } return auxiliaryServicesConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1343,12 +1164,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.VirtualClusterConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.VirtualClusterConfig) private static final com.google.cloud.dataproc.v1.VirtualClusterConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.VirtualClusterConfig(); } @@ -1357,27 +1178,27 @@ public static com.google.cloud.dataproc.v1.VirtualClusterConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VirtualClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VirtualClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1392,4 +1213,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.VirtualClusterConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java similarity index 58% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java index 83736cd245d7..caa22c2f1e85 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java @@ -1,33 +1,15 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface VirtualClusterConfigOrBuilder - extends +public interface VirtualClusterConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.VirtualClusterConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Optional. A Storage bucket used to stage job
+   * Optional. A Cloud Storage bucket used to stage job
    * dependencies, config files, and job driver console output.
    * If you do not specify a staging bucket, Cloud
    * Dataproc will determine a Cloud Storage location (US,
@@ -41,15 +23,12 @@ public interface VirtualClusterConfigOrBuilder
    * 
* * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The stagingBucket. */ java.lang.String getStagingBucket(); /** - * - * *
-   * Optional. A Storage bucket used to stage job
+   * Optional. A Cloud Storage bucket used to stage job
    * dependencies, config files, and job driver console output.
    * If you do not specify a staging bucket, Cloud
    * Dataproc will determine a Cloud Storage location (US,
@@ -63,95 +42,67 @@ public interface VirtualClusterConfigOrBuilder
    * 
* * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for stagingBucket. */ - com.google.protobuf.ByteString getStagingBucketBytes(); + com.google.protobuf.ByteString + getStagingBucketBytes(); /** - * - * *
-   * Required. The configuration for running the Dataproc cluster on Kubernetes.
+   * Required. The configuration for running the Dataproc cluster on
+   * Kubernetes.
    * 
* - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the kubernetesClusterConfig field is set. */ boolean hasKubernetesClusterConfig(); /** - * - * *
-   * Required. The configuration for running the Dataproc cluster on Kubernetes.
+   * Required. The configuration for running the Dataproc cluster on
+   * Kubernetes.
    * 
* - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The kubernetesClusterConfig. */ com.google.cloud.dataproc.v1.KubernetesClusterConfig getKubernetesClusterConfig(); /** - * - * *
-   * Required. The configuration for running the Dataproc cluster on Kubernetes.
+   * Required. The configuration for running the Dataproc cluster on
+   * Kubernetes.
    * 
* - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder - getKubernetesClusterConfigOrBuilder(); + com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder getKubernetesClusterConfigOrBuilder(); /** - * - * *
    * Optional. Configuration of auxiliary services used by this cluster.
    * 
* - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the auxiliaryServicesConfig field is set. */ boolean hasAuxiliaryServicesConfig(); /** - * - * *
    * Optional. Configuration of auxiliary services used by this cluster.
    * 
* - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The auxiliaryServicesConfig. */ com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getAuxiliaryServicesConfig(); /** - * - * *
    * Optional. Configuration of auxiliary services used by this cluster.
    * 
* - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder - getAuxiliaryServicesConfigOrBuilder(); + com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder getAuxiliaryServicesConfigOrBuilder(); - public com.google.cloud.dataproc.v1.VirtualClusterConfig.InfrastructureConfigCase - getInfrastructureConfigCase(); + public com.google.cloud.dataproc.v1.VirtualClusterConfig.InfrastructureConfigCase getInfrastructureConfigCase(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java similarity index 61% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java index 2676802e28a0..fab1a12aed2f 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java @@ -1,153 +1,114 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * The workflow graph.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.WorkflowGraph} */ -public final class WorkflowGraph extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WorkflowGraph extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.WorkflowGraph) WorkflowGraphOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WorkflowGraph.newBuilder() to construct. private WorkflowGraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WorkflowGraph() { nodes_ = 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 WorkflowGraph(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowGraph_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowGraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowGraph.class, - com.google.cloud.dataproc.v1.WorkflowGraph.Builder.class); + com.google.cloud.dataproc.v1.WorkflowGraph.class, com.google.cloud.dataproc.v1.WorkflowGraph.Builder.class); } public static final int NODES_FIELD_NUMBER = 1; private java.util.List nodes_; /** - * - * *
    * Output only. The workflow nodes.
    * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getNodesList() { return nodes_; } /** - * - * *
    * Output only. The workflow nodes.
    * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getNodesOrBuilderList() { return nodes_; } /** - * - * *
    * Output only. The workflow nodes.
    * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getNodesCount() { return nodes_.size(); } /** - * - * *
    * Output only. The workflow nodes.
    * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowNode getNodes(int index) { return nodes_.get(index); } /** - * - * *
    * Output only. The workflow nodes.
    * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder getNodesOrBuilder(int index) { + public com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder getNodesOrBuilder( + int index) { return nodes_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,7 +120,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 < nodes_.size(); i++) { output.writeMessage(1, nodes_.get(i)); } @@ -173,7 +135,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nodes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nodes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -183,15 +146,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.dataproc.v1.WorkflowGraph)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.WorkflowGraph other = - (com.google.cloud.dataproc.v1.WorkflowGraph) obj; + com.google.cloud.dataproc.v1.WorkflowGraph other = (com.google.cloud.dataproc.v1.WorkflowGraph) obj; - if (!getNodesList().equals(other.getNodesList())) return false; + if (!getNodesList() + .equals(other.getNodesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -212,136 +175,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.WorkflowGraph parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.WorkflowGraph parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.WorkflowGraph parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.WorkflowGraph prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 workflow graph.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.WorkflowGraph} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.WorkflowGraph) com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowGraph_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowGraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowGraph.class, - com.google.cloud.dataproc.v1.WorkflowGraph.Builder.class); + com.google.cloud.dataproc.v1.WorkflowGraph.class, com.google.cloud.dataproc.v1.WorkflowGraph.Builder.class); } // Construct using com.google.cloud.dataproc.v1.WorkflowGraph.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -356,9 +313,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; } @java.lang.Override @@ -377,8 +334,7 @@ public com.google.cloud.dataproc.v1.WorkflowGraph build() { @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowGraph buildPartial() { - com.google.cloud.dataproc.v1.WorkflowGraph result = - new com.google.cloud.dataproc.v1.WorkflowGraph(this); + com.google.cloud.dataproc.v1.WorkflowGraph result = new com.google.cloud.dataproc.v1.WorkflowGraph(this); int from_bitField0_ = bitField0_; if (nodesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -397,39 +353,38 @@ public com.google.cloud.dataproc.v1.WorkflowGraph buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.WorkflowGraph) { - return mergeFrom((com.google.cloud.dataproc.v1.WorkflowGraph) other); + return mergeFrom((com.google.cloud.dataproc.v1.WorkflowGraph)other); } else { super.mergeFrom(other); return this; @@ -456,10 +411,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowGraph other) { nodesBuilder_ = null; nodes_ = other.nodes_; bitField0_ = (bitField0_ & ~0x00000001); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodesFieldBuilder() - : null; + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodesFieldBuilder() : null; } else { nodesBuilder_.addAllMessages(other.nodes_); } @@ -491,26 +445,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.dataproc.v1.WorkflowNode m = - input.readMessage( - com.google.cloud.dataproc.v1.WorkflowNode.parser(), extensionRegistry); - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(m); - } else { - nodesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.dataproc.v1.WorkflowNode m = + input.readMessage( + com.google.cloud.dataproc.v1.WorkflowNode.parser(), + extensionRegistry); + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(m); + } else { + nodesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -520,35 +473,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List nodes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nodes_ = new java.util.ArrayList(nodes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowNode, - com.google.cloud.dataproc.v1.WorkflowNode.Builder, - com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder> - nodesBuilder_; + com.google.cloud.dataproc.v1.WorkflowNode, com.google.cloud.dataproc.v1.WorkflowNode.Builder, com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder> nodesBuilder_; /** - * - * *
      * Output only. The workflow nodes.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getNodesList() { if (nodesBuilder_ == null) { @@ -558,15 +502,11 @@ public java.util.List getNodesList() } } /** - * - * *
      * Output only. The workflow nodes.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getNodesCount() { if (nodesBuilder_ == null) { @@ -576,15 +516,11 @@ public int getNodesCount() { } } /** - * - * *
      * Output only. The workflow nodes.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.WorkflowNode getNodes(int index) { if (nodesBuilder_ == null) { @@ -594,17 +530,14 @@ public com.google.cloud.dataproc.v1.WorkflowNode getNodes(int index) { } } /** - * - * *
      * Output only. The workflow nodes.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setNodes(int index, com.google.cloud.dataproc.v1.WorkflowNode value) { + public Builder setNodes( + int index, com.google.cloud.dataproc.v1.WorkflowNode value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -618,15 +551,11 @@ public Builder setNodes(int index, com.google.cloud.dataproc.v1.WorkflowNode val return this; } /** - * - * *
      * Output only. The workflow nodes.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setNodes( int index, com.google.cloud.dataproc.v1.WorkflowNode.Builder builderForValue) { @@ -640,15 +569,11 @@ public Builder setNodes( return this; } /** - * - * *
      * Output only. The workflow nodes.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addNodes(com.google.cloud.dataproc.v1.WorkflowNode value) { if (nodesBuilder_ == null) { @@ -664,17 +589,14 @@ public Builder addNodes(com.google.cloud.dataproc.v1.WorkflowNode value) { return this; } /** - * - * *
      * Output only. The workflow nodes.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addNodes(int index, com.google.cloud.dataproc.v1.WorkflowNode value) { + public Builder addNodes( + int index, com.google.cloud.dataproc.v1.WorkflowNode value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -688,17 +610,14 @@ public Builder addNodes(int index, com.google.cloud.dataproc.v1.WorkflowNode val return this; } /** - * - * *
      * Output only. The workflow nodes.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addNodes(com.google.cloud.dataproc.v1.WorkflowNode.Builder builderForValue) { + public Builder addNodes( + com.google.cloud.dataproc.v1.WorkflowNode.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(builderForValue.build()); @@ -709,15 +628,11 @@ public Builder addNodes(com.google.cloud.dataproc.v1.WorkflowNode.Builder builde return this; } /** - * - * *
      * Output only. The workflow nodes.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addNodes( int index, com.google.cloud.dataproc.v1.WorkflowNode.Builder builderForValue) { @@ -731,21 +646,18 @@ public Builder addNodes( return this; } /** - * - * *
      * Output only. The workflow nodes.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllNodes( java.lang.Iterable values) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodes_); onChanged(); } else { nodesBuilder_.addAllMessages(values); @@ -753,15 +665,11 @@ public Builder addAllNodes( return this; } /** - * - * *
      * Output only. The workflow nodes.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearNodes() { if (nodesBuilder_ == null) { @@ -774,15 +682,11 @@ public Builder clearNodes() { return this; } /** - * - * *
      * Output only. The workflow nodes.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeNodes(int index) { if (nodesBuilder_ == null) { @@ -795,50 +699,39 @@ public Builder removeNodes(int index) { return this; } /** - * - * *
      * Output only. The workflow nodes.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.WorkflowNode.Builder getNodesBuilder(int index) { + public com.google.cloud.dataproc.v1.WorkflowNode.Builder getNodesBuilder( + int index) { return getNodesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. The workflow nodes.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder getNodesOrBuilder(int index) { + public com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder getNodesOrBuilder( + int index) { if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { + return nodes_.get(index); } else { return nodesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. The workflow nodes.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getNodesOrBuilderList() { + public java.util.List + getNodesOrBuilderList() { if (nodesBuilder_ != null) { return nodesBuilder_.getMessageOrBuilderList(); } else { @@ -846,69 +739,56 @@ public com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder getNodesOrBuilder(int } } /** - * - * *
      * Output only. The workflow nodes.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.WorkflowNode.Builder addNodesBuilder() { - return getNodesFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.WorkflowNode.getDefaultInstance()); + return getNodesFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.WorkflowNode.getDefaultInstance()); } /** - * - * *
      * Output only. The workflow nodes.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dataproc.v1.WorkflowNode.Builder addNodesBuilder(int index) { - return getNodesFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.WorkflowNode.getDefaultInstance()); + public com.google.cloud.dataproc.v1.WorkflowNode.Builder addNodesBuilder( + int index) { + return getNodesFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.WorkflowNode.getDefaultInstance()); } /** - * - * *
      * Output only. The workflow nodes.
      * 
* - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getNodesBuilderList() { + public java.util.List + getNodesBuilderList() { return getNodesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowNode, - com.google.cloud.dataproc.v1.WorkflowNode.Builder, - com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder> + com.google.cloud.dataproc.v1.WorkflowNode, com.google.cloud.dataproc.v1.WorkflowNode.Builder, com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder> getNodesFieldBuilder() { if (nodesBuilder_ == null) { - nodesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowNode, - com.google.cloud.dataproc.v1.WorkflowNode.Builder, - com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder>( - nodes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.WorkflowNode, com.google.cloud.dataproc.v1.WorkflowNode.Builder, com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder>( + nodes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); nodes_ = null; } return nodesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -918,12 +798,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.WorkflowGraph) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.WorkflowGraph) private static final com.google.cloud.dataproc.v1.WorkflowGraph DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.WorkflowGraph(); } @@ -932,27 +812,27 @@ public static com.google.cloud.dataproc.v1.WorkflowGraph getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowGraph parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowGraph parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -967,4 +847,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.WorkflowGraph getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java new file mode 100644 index 000000000000..e2c61eab873a --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/workflow_templates.proto + +package com.google.cloud.dataproc.v1; + +public interface WorkflowGraphOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.WorkflowGraph) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The workflow nodes.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getNodesList(); + /** + *
+   * Output only. The workflow nodes.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.dataproc.v1.WorkflowNode getNodes(int index); + /** + *
+   * Output only. The workflow nodes.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + int getNodesCount(); + /** + *
+   * Output only. The workflow nodes.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getNodesOrBuilderList(); + /** + *
+   * Output only. The workflow nodes.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder getNodesOrBuilder( + int index); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java similarity index 66% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java index 71fa99cdd200..2e67af778aad 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A Dataproc workflow template resource.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.WorkflowMetadata} */ -public final class WorkflowMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WorkflowMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.WorkflowMetadata) WorkflowMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WorkflowMetadata.newBuilder() to construct. private WorkflowMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WorkflowMetadata() { template_ = ""; state_ = 0; @@ -46,54 +28,51 @@ private WorkflowMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WorkflowMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowMetadata_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 internalGetParameters(); 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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowMetadata.class, - com.google.cloud.dataproc.v1.WorkflowMetadata.Builder.class); + com.google.cloud.dataproc.v1.WorkflowMetadata.class, com.google.cloud.dataproc.v1.WorkflowMetadata.Builder.class); } /** - * - * *
    * The operation state.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.WorkflowMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unused.
      * 
@@ -102,8 +81,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(0), /** - * - * *
      * The operation has been created.
      * 
@@ -112,8 +89,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PENDING(1), /** - * - * *
      * The operation is running.
      * 
@@ -122,8 +97,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(2), /** - * - * *
      * The operation is done; either cancelled or completed.
      * 
@@ -135,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unused.
      * 
@@ -145,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 0; /** - * - * *
      * The operation has been created.
      * 
@@ -155,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PENDING_VALUE = 1; /** - * - * *
      * The operation is running.
      * 
@@ -165,8 +132,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 2; /** - * - * *
      * The operation is done; either cancelled or completed.
      * 
@@ -175,6 +140,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DONE_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -199,51 +165,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return UNKNOWN; - case 1: - return PENDING; - case 2: - return RUNNING; - case 3: - return DONE; - default: - return null; + case 0: return UNKNOWN; + case 1: return PENDING; + case 2: return RUNNING; + case 3: return DONE; + 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.dataproc.v1.WorkflowMetadata.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; @@ -263,8 +228,6 @@ private State(int value) { public static final int TEMPLATE_FIELD_NUMBER = 1; private volatile java.lang.Object template_; /** - * - * *
    * Output only. The resource name of the workflow template as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -277,7 +240,6 @@ private State(int value) {
    * 
* * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The template. */ @java.lang.Override @@ -286,15 +248,14 @@ public java.lang.String getTemplate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); template_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the workflow template as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -307,15 +268,16 @@ public java.lang.String getTemplate() {
    * 
* * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for template. */ @java.lang.Override - public com.google.protobuf.ByteString getTemplateBytes() { + public com.google.protobuf.ByteString + getTemplateBytes() { java.lang.Object ref = template_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); template_ = b; return b; } else { @@ -326,15 +288,12 @@ public com.google.protobuf.ByteString getTemplateBytes() { public static final int VERSION_FIELD_NUMBER = 2; private int version_; /** - * - * *
    * Output only. The version of template at the time of
    * workflow instantiation.
    * 
* * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The version. */ @java.lang.Override @@ -345,16 +304,11 @@ public int getVersion() { public static final int CREATE_CLUSTER_FIELD_NUMBER = 3; private com.google.cloud.dataproc.v1.ClusterOperation createCluster_; /** - * - * *
    * Output only. The create cluster operation metadata.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createCluster field is set. */ @java.lang.Override @@ -362,34 +316,23 @@ public boolean hasCreateCluster() { return createCluster_ != null; } /** - * - * *
    * Output only. The create cluster operation metadata.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createCluster. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperation getCreateCluster() { - return createCluster_ == null - ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() - : createCluster_; + return createCluster_ == null ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() : createCluster_; } /** - * - * *
    * Output only. The create cluster operation metadata.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getCreateClusterOrBuilder() { @@ -399,16 +342,11 @@ public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getCreateClusterOr public static final int GRAPH_FIELD_NUMBER = 4; private com.google.cloud.dataproc.v1.WorkflowGraph graph_; /** - * - * *
    * Output only. The workflow graph.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the graph field is set. */ @java.lang.Override @@ -416,34 +354,23 @@ public boolean hasGraph() { return graph_ != null; } /** - * - * *
    * Output only. The workflow graph.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The graph. */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowGraph getGraph() { - return graph_ == null - ? com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance() - : graph_; + return graph_ == null ? com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance() : graph_; } /** - * - * *
    * Output only. The workflow graph.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder getGraphOrBuilder() { @@ -453,16 +380,11 @@ public com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder getGraphOrBuilder() { public static final int DELETE_CLUSTER_FIELD_NUMBER = 5; private com.google.cloud.dataproc.v1.ClusterOperation deleteCluster_; /** - * - * *
    * Output only. The delete cluster operation metadata.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteCluster field is set. */ @java.lang.Override @@ -470,34 +392,23 @@ public boolean hasDeleteCluster() { return deleteCluster_ != null; } /** - * - * *
    * Output only. The delete cluster operation metadata.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteCluster. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperation getDeleteCluster() { - return deleteCluster_ == null - ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() - : deleteCluster_; + return deleteCluster_ == null ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() : deleteCluster_; } /** - * - * *
    * Output only. The delete cluster operation metadata.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getDeleteClusterOrBuilder() { @@ -507,56 +418,38 @@ public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getDeleteClusterOr public static final int STATE_FIELD_NUMBER = 6; private int state_; /** - * - * *
    * Output only. The workflow state.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The workflow state.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowMetadata.State getState() { + @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.WorkflowMetadata.State result = - com.google.cloud.dataproc.v1.WorkflowMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.WorkflowMetadata.State result = com.google.cloud.dataproc.v1.WorkflowMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNRECOGNIZED : result; } public static final int CLUSTER_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object clusterName_; /** - * - * *
    * Output only. The name of the target cluster.
    * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterName. */ @java.lang.Override @@ -565,29 +458,29 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** - * - * *
    * Output only. The name of the target cluster.
    * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -596,23 +489,24 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } public static final int PARAMETERS_FIELD_NUMBER = 8; - private static final class ParametersDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_ParametersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField parameters_; - - private com.google.protobuf.MapField internalGetParameters() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowMetadata_ParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> parameters_; + private com.google.protobuf.MapField + internalGetParameters() { if (parameters_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParametersDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); } return parameters_; } @@ -621,30 +515,28 @@ public int getParametersCount() { return internalGetParameters().getMap().size(); } /** - * - * *
    * Map from parameter names to values that were used for those parameters.
    * 
* * map<string, string> parameters = 8; */ + @java.lang.Override - public boolean containsParameters(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetParameters().getMap().containsKey(key); } - /** Use {@link #getParametersMap()} instead. */ + /** + * Use {@link #getParametersMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParameters() { return getParametersMap(); } /** - * - * *
    * Map from parameter names to values that were used for those parameters.
    * 
@@ -652,12 +544,11 @@ public java.util.Map getParameters() { * map<string, string> parameters = 8; */ @java.lang.Override + public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } /** - * - * *
    * Map from parameter names to values that were used for those parameters.
    * 
@@ -665,17 +556,16 @@ public java.util.Map getParametersMap() { * map<string, string> parameters = 8; */ @java.lang.Override + public java.lang.String getParametersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParameters().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Map from parameter names to values that were used for those parameters.
    * 
@@ -683,11 +573,12 @@ public java.lang.String getParametersOrDefault( * map<string, string> parameters = 8; */ @java.lang.Override - public java.lang.String getParametersOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParameters().getMap(); + + public java.lang.String getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -697,15 +588,11 @@ public java.lang.String getParametersOrThrow(java.lang.String key) { public static final int START_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Output only. Workflow start time.
    * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ @java.lang.Override @@ -713,15 +600,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Output only. Workflow start time.
    * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ @java.lang.Override @@ -729,14 +612,11 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Output only. Workflow start time.
    * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -746,15 +626,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. Workflow end time.
    * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -762,15 +638,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. Workflow end time.
    * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -778,14 +650,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. Workflow end time.
    * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -795,14 +664,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int CLUSTER_UUID_FIELD_NUMBER = 11; private volatile java.lang.Object clusterUuid_; /** - * - * *
    * Output only. The UUID of target cluster.
    * 
* * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterUuid. */ @java.lang.Override @@ -811,29 +677,29 @@ public java.lang.String getClusterUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; } } /** - * - * *
    * Output only. The UUID of target cluster.
    * 
* * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterUuid. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { + public com.google.protobuf.ByteString + getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -844,17 +710,13 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { public static final int DAG_TIMEOUT_FIELD_NUMBER = 12; private com.google.protobuf.Duration dagTimeout_; /** - * - * *
    * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
    * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dagTimeout field is set. */ @java.lang.Override @@ -862,17 +724,13 @@ public boolean hasDagTimeout() { return dagTimeout_ != null; } /** - * - * *
    * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
    * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dagTimeout. */ @java.lang.Override @@ -880,16 +738,13 @@ public com.google.protobuf.Duration getDagTimeout() { return dagTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; } /** - * - * *
    * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
    * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { @@ -899,17 +754,12 @@ public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { public static final int DAG_START_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp dagStartTime_; /** - * - * *
    * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
    * begins.
    * 
* - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dagStartTime field is set. */ @java.lang.Override @@ -917,36 +767,25 @@ public boolean hasDagStartTime() { return dagStartTime_ != null; } /** - * - * *
    * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
    * begins.
    * 
* - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dagStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getDagStartTime() { - return dagStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dagStartTime_; + return dagStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dagStartTime_; } /** - * - * *
    * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
    * begins.
    * 
* - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { @@ -956,16 +795,11 @@ public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { public static final int DAG_END_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp dagEndTime_; /** - * - * *
    * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
    * 
* - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dagEndTime field is set. */ @java.lang.Override @@ -973,16 +807,11 @@ public boolean hasDagEndTime() { return dagEndTime_ != null; } /** - * - * *
    * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
    * 
* - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dagEndTime. */ @java.lang.Override @@ -990,15 +819,11 @@ public com.google.protobuf.Timestamp getDagEndTime() { return dagEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dagEndTime_; } /** - * - * *
    * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
    * 
* - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder() { @@ -1006,7 +831,6 @@ public com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1018,7 +842,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(template_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, template_); } @@ -1040,8 +865,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterName_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 8); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetParameters(), + ParametersDefaultEntryHolder.defaultEntry, + 8); if (startTime_ != null) { output.writeMessage(9, getStartTime()); } @@ -1073,50 +902,60 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, template_); } if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, version_); } if (createCluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateCluster()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateCluster()); } if (graph_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGraph()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getGraph()); } if (deleteCluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDeleteCluster()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getDeleteCluster()); } if (state_ != com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clusterName_); } - for (java.util.Map.Entry entry : - internalGetParameters().getMap().entrySet()) { - com.google.protobuf.MapEntry parameters__ = - ParametersDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, parameters__); + for (java.util.Map.Entry entry + : internalGetParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry + parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, parameters__); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, clusterUuid_); } if (dagTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDagTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getDagTimeout()); } if (dagStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDagStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getDagStartTime()); } if (dagEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getDagEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getDagEndTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1126,51 +965,63 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.WorkflowMetadata)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.WorkflowMetadata other = - (com.google.cloud.dataproc.v1.WorkflowMetadata) obj; + com.google.cloud.dataproc.v1.WorkflowMetadata other = (com.google.cloud.dataproc.v1.WorkflowMetadata) obj; - if (!getTemplate().equals(other.getTemplate())) return false; - if (getVersion() != other.getVersion()) return false; + if (!getTemplate() + .equals(other.getTemplate())) return false; + if (getVersion() + != other.getVersion()) return false; if (hasCreateCluster() != other.hasCreateCluster()) return false; if (hasCreateCluster()) { - if (!getCreateCluster().equals(other.getCreateCluster())) return false; + if (!getCreateCluster() + .equals(other.getCreateCluster())) return false; } if (hasGraph() != other.hasGraph()) return false; if (hasGraph()) { - if (!getGraph().equals(other.getGraph())) return false; + if (!getGraph() + .equals(other.getGraph())) return false; } if (hasDeleteCluster() != other.hasDeleteCluster()) return false; if (hasDeleteCluster()) { - if (!getDeleteCluster().equals(other.getDeleteCluster())) return false; + if (!getDeleteCluster() + .equals(other.getDeleteCluster())) return false; } if (state_ != other.state_) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (!internalGetParameters().equals(other.internalGetParameters())) return false; + if (!getClusterName() + .equals(other.getClusterName())) return false; + if (!internalGetParameters().equals( + other.internalGetParameters())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } - if (!getClusterUuid().equals(other.getClusterUuid())) return false; + if (!getClusterUuid() + .equals(other.getClusterUuid())) return false; if (hasDagTimeout() != other.hasDagTimeout()) return false; if (hasDagTimeout()) { - if (!getDagTimeout().equals(other.getDagTimeout())) return false; + if (!getDagTimeout() + .equals(other.getDagTimeout())) return false; } if (hasDagStartTime() != other.hasDagStartTime()) return false; if (hasDagStartTime()) { - if (!getDagStartTime().equals(other.getDagStartTime())) return false; + if (!getDagStartTime() + .equals(other.getDagStartTime())) return false; } if (hasDagEndTime() != other.hasDagEndTime()) return false; if (hasDagEndTime()) { - if (!getDagEndTime().equals(other.getDagEndTime())) return false; + if (!getDagEndTime() + .equals(other.getDagEndTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1234,156 +1085,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.WorkflowMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.WorkflowMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc workflow template resource.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.WorkflowMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.WorkflowMetadata) com.google.cloud.dataproc.v1.WorkflowMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: return internalGetParameters(); 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 internalGetMutableParameters(); 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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowMetadata.class, - com.google.cloud.dataproc.v1.WorkflowMetadata.Builder.class); + com.google.cloud.dataproc.v1.WorkflowMetadata.class, com.google.cloud.dataproc.v1.WorkflowMetadata.Builder.class); } // Construct using com.google.cloud.dataproc.v1.WorkflowMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1450,9 +1297,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor; } @java.lang.Override @@ -1471,8 +1318,7 @@ public com.google.cloud.dataproc.v1.WorkflowMetadata build() { @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowMetadata buildPartial() { - com.google.cloud.dataproc.v1.WorkflowMetadata result = - new com.google.cloud.dataproc.v1.WorkflowMetadata(this); + com.google.cloud.dataproc.v1.WorkflowMetadata result = new com.google.cloud.dataproc.v1.WorkflowMetadata(this); int from_bitField0_ = bitField0_; result.template_ = template_; result.version_ = version_; @@ -1529,39 +1375,38 @@ public com.google.cloud.dataproc.v1.WorkflowMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.WorkflowMetadata) { - return mergeFrom((com.google.cloud.dataproc.v1.WorkflowMetadata) other); + return mergeFrom((com.google.cloud.dataproc.v1.WorkflowMetadata)other); } else { super.mergeFrom(other); return this; @@ -1593,7 +1438,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowMetadata other) { clusterName_ = other.clusterName_; onChanged(); } - internalGetMutableParameters().mergeFrom(other.internalGetParameters()); + internalGetMutableParameters().mergeFrom( + other.internalGetParameters()); if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } @@ -1639,102 +1485,101 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - template_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - version_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - input.readMessage(getCreateClusterFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getGraphFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage(getDeleteClusterFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 48: - { - state_ = input.readEnum(); - - break; - } // case 48 - case 58: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry parameters__ = - input.readMessage( - ParametersDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableParameters() - .getMutableMap() - .put(parameters__.getKey(), parameters__.getValue()); - break; - } // case 66 - case 74: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - case 82: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 82 - case 90: - { - clusterUuid_ = input.readStringRequireUtf8(); - - break; - } // case 90 - case 98: - { - input.readMessage(getDagTimeoutFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 98 - case 106: - { - input.readMessage(getDagStartTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 106 - case 114: - { - input.readMessage(getDagEndTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 114 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + template_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + version_ = input.readInt32(); + + break; + } // case 16 + case 26: { + input.readMessage( + getCreateClusterFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + input.readMessage( + getGraphFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + input.readMessage( + getDeleteClusterFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 48: { + state_ = input.readEnum(); + + break; + } // case 48 + case 58: { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: { + com.google.protobuf.MapEntry + parameters__ = input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableParameters().getMutableMap().put( + parameters__.getKey(), parameters__.getValue()); + break; + } // case 66 + case 74: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 74 + case 82: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 82 + case 90: { + clusterUuid_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: { + input.readMessage( + getDagTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 98 + case 106: { + input.readMessage( + getDagStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 106 + case 114: { + input.readMessage( + getDagEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 114 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1744,13 +1589,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object template_ = ""; /** - * - * *
      * Output only. The resource name of the workflow template as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1763,13 +1605,13 @@ public Builder mergeFrom(
      * 
* * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The template. */ public java.lang.String getTemplate() { java.lang.Object ref = template_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); template_ = s; return s; @@ -1778,8 +1620,6 @@ public java.lang.String getTemplate() { } } /** - * - * *
      * Output only. The resource name of the workflow template as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1792,14 +1632,15 @@ public java.lang.String getTemplate() {
      * 
* * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for template. */ - public com.google.protobuf.ByteString getTemplateBytes() { + public com.google.protobuf.ByteString + getTemplateBytes() { java.lang.Object ref = template_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); template_ = b; return b; } else { @@ -1807,8 +1648,6 @@ public com.google.protobuf.ByteString getTemplateBytes() { } } /** - * - * *
      * Output only. The resource name of the workflow template as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1821,22 +1660,20 @@ public com.google.protobuf.ByteString getTemplateBytes() {
      * 
* * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The template to set. * @return This builder for chaining. */ - public Builder setTemplate(java.lang.String value) { + public Builder setTemplate( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + template_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the workflow template as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1849,18 +1686,15 @@ public Builder setTemplate(java.lang.String value) {
      * 
* * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTemplate() { - + template_ = getDefaultInstance().getTemplate(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the workflow template as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1873,32 +1707,29 @@ public Builder clearTemplate() {
      * 
* * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for template to set. * @return This builder for chaining. */ - public Builder setTemplateBytes(com.google.protobuf.ByteString value) { + public Builder setTemplateBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + template_ = value; onChanged(); return this; } - private int version_; + private int version_ ; /** - * - * *
      * Output only. The version of template at the time of
      * workflow instantiation.
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The version. */ @java.lang.Override @@ -1906,38 +1737,32 @@ public int getVersion() { return version_; } /** - * - * *
      * Output only. The version of template at the time of
      * workflow instantiation.
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { - + version_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The version of template at the time of
      * workflow instantiation.
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = 0; onChanged(); return this; @@ -1945,58 +1770,39 @@ public Builder clearVersion() { private com.google.cloud.dataproc.v1.ClusterOperation createCluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperation, - com.google.cloud.dataproc.v1.ClusterOperation.Builder, - com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> - createClusterBuilder_; + com.google.cloud.dataproc.v1.ClusterOperation, com.google.cloud.dataproc.v1.ClusterOperation.Builder, com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> createClusterBuilder_; /** - * - * *
      * Output only. The create cluster operation metadata.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createCluster field is set. */ public boolean hasCreateCluster() { return createClusterBuilder_ != null || createCluster_ != null; } /** - * - * *
      * Output only. The create cluster operation metadata.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createCluster. */ public com.google.cloud.dataproc.v1.ClusterOperation getCreateCluster() { if (createClusterBuilder_ == null) { - return createCluster_ == null - ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() - : createCluster_; + return createCluster_ == null ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() : createCluster_; } else { return createClusterBuilder_.getMessage(); } } /** - * - * *
      * Output only. The create cluster operation metadata.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateCluster(com.google.cloud.dataproc.v1.ClusterOperation value) { if (createClusterBuilder_ == null) { @@ -2012,15 +1818,11 @@ public Builder setCreateCluster(com.google.cloud.dataproc.v1.ClusterOperation va return this; } /** - * - * *
      * Output only. The create cluster operation metadata.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateCluster( com.google.cloud.dataproc.v1.ClusterOperation.Builder builderForValue) { @@ -2034,23 +1836,17 @@ public Builder setCreateCluster( return this; } /** - * - * *
      * Output only. The create cluster operation metadata.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateCluster(com.google.cloud.dataproc.v1.ClusterOperation value) { if (createClusterBuilder_ == null) { if (createCluster_ != null) { createCluster_ = - com.google.cloud.dataproc.v1.ClusterOperation.newBuilder(createCluster_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.ClusterOperation.newBuilder(createCluster_).mergeFrom(value).buildPartial(); } else { createCluster_ = value; } @@ -2062,15 +1858,11 @@ public Builder mergeCreateCluster(com.google.cloud.dataproc.v1.ClusterOperation return this; } /** - * - * *
      * Output only. The create cluster operation metadata.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateCluster() { if (createClusterBuilder_ == null) { @@ -2084,64 +1876,48 @@ public Builder clearCreateCluster() { return this; } /** - * - * *
      * Output only. The create cluster operation metadata.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ClusterOperation.Builder getCreateClusterBuilder() { - + onChanged(); return getCreateClusterFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The create cluster operation metadata.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getCreateClusterOrBuilder() { if (createClusterBuilder_ != null) { return createClusterBuilder_.getMessageOrBuilder(); } else { - return createCluster_ == null - ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() - : createCluster_; + return createCluster_ == null ? + com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() : createCluster_; } } /** - * - * *
      * Output only. The create cluster operation metadata.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperation, - com.google.cloud.dataproc.v1.ClusterOperation.Builder, - com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> + com.google.cloud.dataproc.v1.ClusterOperation, com.google.cloud.dataproc.v1.ClusterOperation.Builder, com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> getCreateClusterFieldBuilder() { if (createClusterBuilder_ == null) { - createClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperation, - com.google.cloud.dataproc.v1.ClusterOperation.Builder, - com.google.cloud.dataproc.v1.ClusterOperationOrBuilder>( - getCreateCluster(), getParentForChildren(), isClean()); + createClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterOperation, com.google.cloud.dataproc.v1.ClusterOperation.Builder, com.google.cloud.dataproc.v1.ClusterOperationOrBuilder>( + getCreateCluster(), + getParentForChildren(), + isClean()); createCluster_ = null; } return createClusterBuilder_; @@ -2149,58 +1925,39 @@ public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getCreateClusterOr private com.google.cloud.dataproc.v1.WorkflowGraph graph_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowGraph, - com.google.cloud.dataproc.v1.WorkflowGraph.Builder, - com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder> - graphBuilder_; + com.google.cloud.dataproc.v1.WorkflowGraph, com.google.cloud.dataproc.v1.WorkflowGraph.Builder, com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder> graphBuilder_; /** - * - * *
      * Output only. The workflow graph.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the graph field is set. */ public boolean hasGraph() { return graphBuilder_ != null || graph_ != null; } /** - * - * *
      * Output only. The workflow graph.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The graph. */ public com.google.cloud.dataproc.v1.WorkflowGraph getGraph() { if (graphBuilder_ == null) { - return graph_ == null - ? com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance() - : graph_; + return graph_ == null ? com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance() : graph_; } else { return graphBuilder_.getMessage(); } } /** - * - * *
      * Output only. The workflow graph.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setGraph(com.google.cloud.dataproc.v1.WorkflowGraph value) { if (graphBuilder_ == null) { @@ -2216,17 +1973,14 @@ public Builder setGraph(com.google.cloud.dataproc.v1.WorkflowGraph value) { return this; } /** - * - * *
      * Output only. The workflow graph.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setGraph(com.google.cloud.dataproc.v1.WorkflowGraph.Builder builderForValue) { + public Builder setGraph( + com.google.cloud.dataproc.v1.WorkflowGraph.Builder builderForValue) { if (graphBuilder_ == null) { graph_ = builderForValue.build(); onChanged(); @@ -2237,23 +1991,17 @@ public Builder setGraph(com.google.cloud.dataproc.v1.WorkflowGraph.Builder build return this; } /** - * - * *
      * Output only. The workflow graph.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeGraph(com.google.cloud.dataproc.v1.WorkflowGraph value) { if (graphBuilder_ == null) { if (graph_ != null) { graph_ = - com.google.cloud.dataproc.v1.WorkflowGraph.newBuilder(graph_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.WorkflowGraph.newBuilder(graph_).mergeFrom(value).buildPartial(); } else { graph_ = value; } @@ -2265,15 +2013,11 @@ public Builder mergeGraph(com.google.cloud.dataproc.v1.WorkflowGraph value) { return this; } /** - * - * *
      * Output only. The workflow graph.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearGraph() { if (graphBuilder_ == null) { @@ -2287,64 +2031,48 @@ public Builder clearGraph() { return this; } /** - * - * *
      * Output only. The workflow graph.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.WorkflowGraph.Builder getGraphBuilder() { - + onChanged(); return getGraphFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The workflow graph.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder getGraphOrBuilder() { if (graphBuilder_ != null) { return graphBuilder_.getMessageOrBuilder(); } else { - return graph_ == null - ? com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance() - : graph_; + return graph_ == null ? + com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance() : graph_; } } /** - * - * *
      * Output only. The workflow graph.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowGraph, - com.google.cloud.dataproc.v1.WorkflowGraph.Builder, - com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder> + com.google.cloud.dataproc.v1.WorkflowGraph, com.google.cloud.dataproc.v1.WorkflowGraph.Builder, com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder> getGraphFieldBuilder() { if (graphBuilder_ == null) { - graphBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowGraph, - com.google.cloud.dataproc.v1.WorkflowGraph.Builder, - com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder>( - getGraph(), getParentForChildren(), isClean()); + graphBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.WorkflowGraph, com.google.cloud.dataproc.v1.WorkflowGraph.Builder, com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder>( + getGraph(), + getParentForChildren(), + isClean()); graph_ = null; } return graphBuilder_; @@ -2352,58 +2080,39 @@ public com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder getGraphOrBuilder() { private com.google.cloud.dataproc.v1.ClusterOperation deleteCluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperation, - com.google.cloud.dataproc.v1.ClusterOperation.Builder, - com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> - deleteClusterBuilder_; + com.google.cloud.dataproc.v1.ClusterOperation, com.google.cloud.dataproc.v1.ClusterOperation.Builder, com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> deleteClusterBuilder_; /** - * - * *
      * Output only. The delete cluster operation metadata.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteCluster field is set. */ public boolean hasDeleteCluster() { return deleteClusterBuilder_ != null || deleteCluster_ != null; } /** - * - * *
      * Output only. The delete cluster operation metadata.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteCluster. */ public com.google.cloud.dataproc.v1.ClusterOperation getDeleteCluster() { if (deleteClusterBuilder_ == null) { - return deleteCluster_ == null - ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() - : deleteCluster_; + return deleteCluster_ == null ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() : deleteCluster_; } else { return deleteClusterBuilder_.getMessage(); } } /** - * - * *
      * Output only. The delete cluster operation metadata.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteCluster(com.google.cloud.dataproc.v1.ClusterOperation value) { if (deleteClusterBuilder_ == null) { @@ -2419,15 +2128,11 @@ public Builder setDeleteCluster(com.google.cloud.dataproc.v1.ClusterOperation va return this; } /** - * - * *
      * Output only. The delete cluster operation metadata.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteCluster( com.google.cloud.dataproc.v1.ClusterOperation.Builder builderForValue) { @@ -2441,23 +2146,17 @@ public Builder setDeleteCluster( return this; } /** - * - * *
      * Output only. The delete cluster operation metadata.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteCluster(com.google.cloud.dataproc.v1.ClusterOperation value) { if (deleteClusterBuilder_ == null) { if (deleteCluster_ != null) { deleteCluster_ = - com.google.cloud.dataproc.v1.ClusterOperation.newBuilder(deleteCluster_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.ClusterOperation.newBuilder(deleteCluster_).mergeFrom(value).buildPartial(); } else { deleteCluster_ = value; } @@ -2469,15 +2168,11 @@ public Builder mergeDeleteCluster(com.google.cloud.dataproc.v1.ClusterOperation return this; } /** - * - * *
      * Output only. The delete cluster operation metadata.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteCluster() { if (deleteClusterBuilder_ == null) { @@ -2491,64 +2186,48 @@ public Builder clearDeleteCluster() { return this; } /** - * - * *
      * Output only. The delete cluster operation metadata.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ClusterOperation.Builder getDeleteClusterBuilder() { - + onChanged(); return getDeleteClusterFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The delete cluster operation metadata.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getDeleteClusterOrBuilder() { if (deleteClusterBuilder_ != null) { return deleteClusterBuilder_.getMessageOrBuilder(); } else { - return deleteCluster_ == null - ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() - : deleteCluster_; + return deleteCluster_ == null ? + com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() : deleteCluster_; } } /** - * - * *
      * Output only. The delete cluster operation metadata.
      * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperation, - com.google.cloud.dataproc.v1.ClusterOperation.Builder, - com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> + com.google.cloud.dataproc.v1.ClusterOperation, com.google.cloud.dataproc.v1.ClusterOperation.Builder, com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> getDeleteClusterFieldBuilder() { if (deleteClusterBuilder_ == null) { - deleteClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperation, - com.google.cloud.dataproc.v1.ClusterOperation.Builder, - com.google.cloud.dataproc.v1.ClusterOperationOrBuilder>( - getDeleteCluster(), getParentForChildren(), isClean()); + deleteClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterOperation, com.google.cloud.dataproc.v1.ClusterOperation.Builder, com.google.cloud.dataproc.v1.ClusterOperationOrBuilder>( + getDeleteCluster(), + getParentForChildren(), + isClean()); deleteCluster_ = null; } return deleteClusterBuilder_; @@ -2556,75 +2235,51 @@ public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getDeleteClusterOr private int state_ = 0; /** - * - * *
      * Output only. The workflow state.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The workflow state.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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; } /** - * - * *
      * Output only. The workflow state.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.WorkflowMetadata.State result = - com.google.cloud.dataproc.v1.WorkflowMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.WorkflowMetadata.State result = com.google.cloud.dataproc.v1.WorkflowMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The workflow state.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2632,26 +2287,21 @@ public Builder setState(com.google.cloud.dataproc.v1.WorkflowMetadata.State valu if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The workflow state.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2659,20 +2309,18 @@ public Builder clearState() { private java.lang.Object clusterName_ = ""; /** - * - * *
      * Output only. The name of the target cluster.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -2681,21 +2329,20 @@ public java.lang.String getClusterName() { } } /** - * - * *
      * Output only. The name of the target cluster.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString getClusterNameBytes() { + public com.google.protobuf.ByteString + getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -2703,84 +2350,75 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } } /** - * - * *
      * Output only. The name of the target cluster.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName(java.lang.String value) { + public Builder setClusterName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The name of the target cluster.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** - * - * *
      * Output only. The name of the target cluster.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; } - private com.google.protobuf.MapField parameters_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> parameters_; private com.google.protobuf.MapField - internalGetParameters() { + internalGetParameters() { if (parameters_ == null) { return com.google.protobuf.MapField.emptyMapField( ParametersDefaultEntryHolder.defaultEntry); } return parameters_; } - private com.google.protobuf.MapField - internalGetMutableParameters() { - onChanged(); - ; + internalGetMutableParameters() { + onChanged();; if (parameters_ == null) { - parameters_ = - com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); + parameters_ = com.google.protobuf.MapField.newMapField( + ParametersDefaultEntryHolder.defaultEntry); } if (!parameters_.isMutable()) { parameters_ = parameters_.copy(); @@ -2792,30 +2430,28 @@ public int getParametersCount() { return internalGetParameters().getMap().size(); } /** - * - * *
      * Map from parameter names to values that were used for those parameters.
      * 
* * map<string, string> parameters = 8; */ + @java.lang.Override - public boolean containsParameters(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetParameters().getMap().containsKey(key); } - /** Use {@link #getParametersMap()} instead. */ + /** + * Use {@link #getParametersMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParameters() { return getParametersMap(); } /** - * - * *
      * Map from parameter names to values that were used for those parameters.
      * 
@@ -2823,12 +2459,11 @@ public java.util.Map getParameters() { * map<string, string> parameters = 8; */ @java.lang.Override + public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } /** - * - * *
      * Map from parameter names to values that were used for those parameters.
      * 
@@ -2836,17 +2471,16 @@ public java.util.Map getParametersMap() { * map<string, string> parameters = 8; */ @java.lang.Override + public java.lang.String getParametersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParameters().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Map from parameter names to values that were used for those parameters.
      * 
@@ -2854,11 +2488,12 @@ public java.lang.String getParametersOrDefault( * map<string, string> parameters = 8; */ @java.lang.Override - public java.lang.String getParametersOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParameters().getMap(); + + public java.lang.String getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2866,95 +2501,87 @@ public java.lang.String getParametersOrThrow(java.lang.String key) { } public Builder clearParameters() { - internalGetMutableParameters().getMutableMap().clear(); + internalGetMutableParameters().getMutableMap() + .clear(); return this; } /** - * - * *
      * Map from parameter names to values that were used for those parameters.
      * 
* * map<string, string> parameters = 8; */ - public Builder removeParameters(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableParameters().getMutableMap().remove(key); + + public Builder removeParameters( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableParameters().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableParameters() { + public java.util.Map + getMutableParameters() { return internalGetMutableParameters().getMutableMap(); } /** - * - * *
      * Map from parameter names to values that were used for those parameters.
      * 
* * map<string, string> parameters = 8; */ - public Builder putParameters(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putParameters( + 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"); +} - internalGetMutableParameters().getMutableMap().put(key, value); + internalGetMutableParameters().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Map from parameter names to values that were used for those parameters.
      * 
* * map<string, string> parameters = 8; */ - public Builder putAllParameters(java.util.Map values) { - internalGetMutableParameters().getMutableMap().putAll(values); + + public Builder putAllParameters( + java.util.Map values) { + internalGetMutableParameters().getMutableMap() + .putAll(values); return this; } private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Output only. Workflow start time.
      * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Output only. Workflow start time.
      * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -2965,14 +2592,11 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Output only. Workflow start time.
      * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -2988,16 +2612,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Workflow start time.
      * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -3008,20 +2630,17 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. Workflow start time.
      * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -3033,14 +2652,11 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Workflow start time.
      * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -3054,59 +2670,48 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Output only. Workflow start time.
      * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Workflow start time.
      * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * Output only. Workflow start time.
      * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -3114,35 +2719,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { 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. Workflow end time.
      * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. Workflow end time.
      * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -3153,14 +2747,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. Workflow end time.
      * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -3176,16 +2767,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Workflow end time.
      * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 10 [(.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(); @@ -3196,20 +2785,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. Workflow end time.
      * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 10 [(.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; } @@ -3221,14 +2807,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Workflow end time.
      * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -3242,59 +2825,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. Workflow end time.
      * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Workflow end time.
      * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 10 [(.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. Workflow end time.
      * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -3302,20 +2874,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object clusterUuid_ = ""; /** - * - * *
      * Output only. The UUID of target cluster.
      * 
* * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterUuid. */ public java.lang.String getClusterUuid() { java.lang.Object ref = clusterUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; @@ -3324,21 +2894,20 @@ public java.lang.String getClusterUuid() { } } /** - * - * *
      * Output only. The UUID of target cluster.
      * 
* * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterUuid. */ - public com.google.protobuf.ByteString getClusterUuidBytes() { + public com.google.protobuf.ByteString + getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -3346,61 +2915,54 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { } } /** - * - * *
      * Output only. The UUID of target cluster.
      * 
* * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuid(java.lang.String value) { + public Builder setClusterUuid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterUuid_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The UUID of target cluster.
      * 
* * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClusterUuid() { - + clusterUuid_ = getDefaultInstance().getClusterUuid(); onChanged(); return this; } /** - * - * *
      * Output only. The UUID of target cluster.
      * 
* * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { + public Builder setClusterUuidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUuid_ = value; onChanged(); return this; @@ -3408,64 +2970,45 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Duration dagTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - dagTimeoutBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> dagTimeoutBuilder_; /** - * - * *
      * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dagTimeout field is set. */ public boolean hasDagTimeout() { return dagTimeoutBuilder_ != null || dagTimeout_ != null; } /** - * - * *
      * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dagTimeout. */ public com.google.protobuf.Duration getDagTimeout() { if (dagTimeoutBuilder_ == null) { - return dagTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dagTimeout_; + return dagTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; } else { return dagTimeoutBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDagTimeout(com.google.protobuf.Duration value) { if (dagTimeoutBuilder_ == null) { @@ -3481,19 +3024,16 @@ public Builder setDagTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDagTimeout(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDagTimeout( + com.google.protobuf.Duration.Builder builderForValue) { if (dagTimeoutBuilder_ == null) { dagTimeout_ = builderForValue.build(); onChanged(); @@ -3504,23 +3044,19 @@ public Builder setDagTimeout(com.google.protobuf.Duration.Builder builderForValu return this; } /** - * - * *
      * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDagTimeout(com.google.protobuf.Duration value) { if (dagTimeoutBuilder_ == null) { if (dagTimeout_ != null) { dagTimeout_ = - com.google.protobuf.Duration.newBuilder(dagTimeout_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(dagTimeout_).mergeFrom(value).buildPartial(); } else { dagTimeout_ = value; } @@ -3532,17 +3068,13 @@ public Builder mergeDagTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDagTimeout() { if (dagTimeoutBuilder_ == null) { @@ -3556,70 +3088,54 @@ public Builder clearDagTimeout() { return this; } /** - * - * *
      * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Duration.Builder getDagTimeoutBuilder() { - + onChanged(); return getDagTimeoutFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { if (dagTimeoutBuilder_ != null) { return dagTimeoutBuilder_.getMessageOrBuilder(); } else { - return dagTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dagTimeout_; + return dagTimeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; } } /** - * - * *
      * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getDagTimeoutFieldBuilder() { if (dagTimeoutBuilder_ == null) { - dagTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDagTimeout(), getParentForChildren(), isClean()); + dagTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDagTimeout(), + getParentForChildren(), + isClean()); dagTimeout_ = null; } return dagTimeoutBuilder_; @@ -3627,61 +3143,42 @@ public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { private com.google.protobuf.Timestamp dagStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - dagStartTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> dagStartTimeBuilder_; /** - * - * *
      * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
      * begins.
      * 
* - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dagStartTime field is set. */ public boolean hasDagStartTime() { return dagStartTimeBuilder_ != null || dagStartTime_ != null; } /** - * - * *
      * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
      * begins.
      * 
* - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dagStartTime. */ public com.google.protobuf.Timestamp getDagStartTime() { if (dagStartTimeBuilder_ == null) { - return dagStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dagStartTime_; + return dagStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dagStartTime_; } else { return dagStartTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
      * begins.
      * 
* - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDagStartTime(com.google.protobuf.Timestamp value) { if (dagStartTimeBuilder_ == null) { @@ -3697,18 +3194,15 @@ public Builder setDagStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
      * begins.
      * 
* - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDagStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDagStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (dagStartTimeBuilder_ == null) { dagStartTime_ = builderForValue.build(); onChanged(); @@ -3719,24 +3213,18 @@ public Builder setDagStartTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * *
      * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
      * begins.
      * 
* - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDagStartTime(com.google.protobuf.Timestamp value) { if (dagStartTimeBuilder_ == null) { if (dagStartTime_ != null) { dagStartTime_ = - com.google.protobuf.Timestamp.newBuilder(dagStartTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(dagStartTime_).mergeFrom(value).buildPartial(); } else { dagStartTime_ = value; } @@ -3748,16 +3236,12 @@ public Builder mergeDagStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
      * begins.
      * 
* - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDagStartTime() { if (dagStartTimeBuilder_ == null) { @@ -3771,67 +3255,51 @@ public Builder clearDagStartTime() { return this; } /** - * - * *
      * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
      * begins.
      * 
* - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDagStartTimeBuilder() { - + onChanged(); return getDagStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
      * begins.
      * 
* - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { if (dagStartTimeBuilder_ != null) { return dagStartTimeBuilder_.getMessageOrBuilder(); } else { - return dagStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dagStartTime_; + return dagStartTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : dagStartTime_; } } /** - * - * *
      * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
      * begins.
      * 
* - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp dag_start_time = 13 [(.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> getDagStartTimeFieldBuilder() { if (dagStartTimeBuilder_ == null) { - dagStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDagStartTime(), getParentForChildren(), isClean()); + dagStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDagStartTime(), + getParentForChildren(), + isClean()); dagStartTime_ = null; } return dagStartTimeBuilder_; @@ -3839,58 +3307,39 @@ public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { private com.google.protobuf.Timestamp dagEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - dagEndTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> dagEndTimeBuilder_; /** - * - * *
      * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dagEndTime field is set. */ public boolean hasDagEndTime() { return dagEndTimeBuilder_ != null || dagEndTime_ != null; } /** - * - * *
      * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dagEndTime. */ public com.google.protobuf.Timestamp getDagEndTime() { if (dagEndTimeBuilder_ == null) { - return dagEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dagEndTime_; + return dagEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dagEndTime_; } else { return dagEndTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDagEndTime(com.google.protobuf.Timestamp value) { if (dagEndTimeBuilder_ == null) { @@ -3906,17 +3355,14 @@ public Builder setDagEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDagEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDagEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (dagEndTimeBuilder_ == null) { dagEndTime_ = builderForValue.build(); onChanged(); @@ -3927,21 +3373,17 @@ public Builder setDagEndTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDagEndTime(com.google.protobuf.Timestamp value) { if (dagEndTimeBuilder_ == null) { if (dagEndTime_ != null) { dagEndTime_ = - com.google.protobuf.Timestamp.newBuilder(dagEndTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(dagEndTime_).mergeFrom(value).buildPartial(); } else { dagEndTime_ = value; } @@ -3953,15 +3395,11 @@ public Builder mergeDagEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDagEndTime() { if (dagEndTimeBuilder_ == null) { @@ -3975,71 +3413,55 @@ public Builder clearDagEndTime() { return this; } /** - * - * *
      * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDagEndTimeBuilder() { - + onChanged(); return getDagEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder() { if (dagEndTimeBuilder_ != null) { return dagEndTimeBuilder_.getMessageOrBuilder(); } else { - return dagEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dagEndTime_; + return dagEndTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : dagEndTime_; } } /** - * - * *
      * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp dag_end_time = 14 [(.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> getDagEndTimeFieldBuilder() { if (dagEndTimeBuilder_ == null) { - dagEndTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDagEndTime(), getParentForChildren(), isClean()); + dagEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDagEndTime(), + getParentForChildren(), + isClean()); dagEndTime_ = null; } return dagEndTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4049,12 +3471,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.WorkflowMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.WorkflowMetadata) private static final com.google.cloud.dataproc.v1.WorkflowMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.WorkflowMetadata(); } @@ -4063,27 +3485,27 @@ public static com.google.cloud.dataproc.v1.WorkflowMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4098,4 +3520,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.WorkflowMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java index f015e14e20db..2e884bd68904 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface WorkflowMetadataOrBuilder - extends +public interface WorkflowMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.WorkflowMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the workflow template as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -38,13 +20,10 @@ public interface WorkflowMetadataOrBuilder
    * 
* * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The template. */ java.lang.String getTemplate(); /** - * - * *
    * Output only. The resource name of the workflow template as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -57,205 +36,143 @@ public interface WorkflowMetadataOrBuilder
    * 
* * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for template. */ - com.google.protobuf.ByteString getTemplateBytes(); + com.google.protobuf.ByteString + getTemplateBytes(); /** - * - * *
    * Output only. The version of template at the time of
    * workflow instantiation.
    * 
* * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The version. */ int getVersion(); /** - * - * *
    * Output only. The create cluster operation metadata.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createCluster field is set. */ boolean hasCreateCluster(); /** - * - * *
    * Output only. The create cluster operation metadata.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createCluster. */ com.google.cloud.dataproc.v1.ClusterOperation getCreateCluster(); /** - * - * *
    * Output only. The create cluster operation metadata.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getCreateClusterOrBuilder(); /** - * - * *
    * Output only. The workflow graph.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the graph field is set. */ boolean hasGraph(); /** - * - * *
    * Output only. The workflow graph.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The graph. */ com.google.cloud.dataproc.v1.WorkflowGraph getGraph(); /** - * - * *
    * Output only. The workflow graph.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder getGraphOrBuilder(); /** - * - * *
    * Output only. The delete cluster operation metadata.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteCluster field is set. */ boolean hasDeleteCluster(); /** - * - * *
    * Output only. The delete cluster operation metadata.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteCluster. */ com.google.cloud.dataproc.v1.ClusterOperation getDeleteCluster(); /** - * - * *
    * Output only. The delete cluster operation metadata.
    * 
* - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getDeleteClusterOrBuilder(); /** - * - * *
    * Output only. The workflow state.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The workflow state.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.dataproc.v1.WorkflowMetadata.State getState(); /** - * - * *
    * Output only. The name of the target cluster.
    * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterName. */ java.lang.String getClusterName(); /** - * - * *
    * Output only. The name of the target cluster.
    * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString getClusterNameBytes(); + com.google.protobuf.ByteString + getClusterNameBytes(); /** - * - * *
    * Map from parameter names to values that were used for those parameters.
    * 
@@ -264,31 +181,30 @@ public interface WorkflowMetadataOrBuilder */ int getParametersCount(); /** - * - * *
    * Map from parameter names to values that were used for those parameters.
    * 
* * map<string, string> parameters = 8; */ - boolean containsParameters(java.lang.String key); - /** Use {@link #getParametersMap()} instead. */ + boolean containsParameters( + java.lang.String key); + /** + * Use {@link #getParametersMap()} instead. + */ @java.lang.Deprecated - java.util.Map getParameters(); + java.util.Map + getParameters(); /** - * - * *
    * Map from parameter names to values that were used for those parameters.
    * 
* * map<string, string> parameters = 8; */ - java.util.Map getParametersMap(); + java.util.Map + getParametersMap(); /** - * - * *
    * Map from parameter names to values that were used for those parameters.
    * 
@@ -297,248 +213,182 @@ public interface WorkflowMetadataOrBuilder */ /* nullable */ - java.lang.String getParametersOrDefault( +java.lang.String getParametersOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Map from parameter names to values that were used for those parameters.
    * 
* * map<string, string> parameters = 8; */ - java.lang.String getParametersOrThrow(java.lang.String key); + + java.lang.String getParametersOrThrow( + java.lang.String key); /** - * - * *
    * Output only. Workflow start time.
    * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Output only. Workflow start time.
    * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Output only. Workflow start time.
    * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Output only. Workflow end time.
    * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. Workflow end time.
    * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. Workflow end time.
    * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. The UUID of target cluster.
    * 
* * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterUuid. */ java.lang.String getClusterUuid(); /** - * - * *
    * Output only. The UUID of target cluster.
    * 
* * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterUuid. */ - com.google.protobuf.ByteString getClusterUuidBytes(); + com.google.protobuf.ByteString + getClusterUuidBytes(); /** - * - * *
    * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
    * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dagTimeout field is set. */ boolean hasDagTimeout(); /** - * - * *
    * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
    * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dagTimeout. */ com.google.protobuf.Duration getDagTimeout(); /** - * - * *
    * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
    * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder(); /** - * - * *
    * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
    * begins.
    * 
* - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dagStartTime field is set. */ boolean hasDagStartTime(); /** - * - * *
    * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
    * begins.
    * 
* - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dagStartTime. */ com.google.protobuf.Timestamp getDagStartTime(); /** - * - * *
    * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
    * begins.
    * 
* - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder(); /** - * - * *
    * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
    * 
* - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dagEndTime field is set. */ boolean hasDagEndTime(); /** - * - * *
    * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
    * 
* - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dagEndTime. */ com.google.protobuf.Timestamp getDagEndTime(); /** - * - * *
    * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
    * 
* - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java index 0f4fcbca21f3..9e4be6d3e7b2 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * The workflow node.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.WorkflowNode} */ -public final class WorkflowNode extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WorkflowNode extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.WorkflowNode) WorkflowNodeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WorkflowNode.newBuilder() to construct. private WorkflowNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WorkflowNode() { stepId_ = ""; prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -47,43 +29,39 @@ private WorkflowNode() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WorkflowNode(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowNode_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowNode_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowNode.class, - com.google.cloud.dataproc.v1.WorkflowNode.Builder.class); + com.google.cloud.dataproc.v1.WorkflowNode.class, com.google.cloud.dataproc.v1.WorkflowNode.Builder.class); } /** - * - * *
    * The workflow node state.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.WorkflowNode.NodeState} */ - public enum NodeState implements com.google.protobuf.ProtocolMessageEnum { + public enum NodeState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * State is unspecified.
      * 
@@ -92,8 +70,6 @@ public enum NodeState implements com.google.protobuf.ProtocolMessageEnum { */ NODE_STATE_UNSPECIFIED(0), /** - * - * *
      * The node is awaiting prerequisite node to finish.
      * 
@@ -102,8 +78,6 @@ public enum NodeState implements com.google.protobuf.ProtocolMessageEnum { */ BLOCKED(1), /** - * - * *
      * The node is runnable but not running.
      * 
@@ -112,8 +86,6 @@ public enum NodeState implements com.google.protobuf.ProtocolMessageEnum { */ RUNNABLE(2), /** - * - * *
      * The node is running.
      * 
@@ -122,8 +94,6 @@ public enum NodeState implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(3), /** - * - * *
      * The node completed successfully.
      * 
@@ -132,8 +102,6 @@ public enum NodeState implements com.google.protobuf.ProtocolMessageEnum { */ COMPLETED(4), /** - * - * *
      * The node failed. A node can be marked FAILED because
      * its ancestor or peer failed.
@@ -146,8 +114,6 @@ public enum NodeState implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * State is unspecified.
      * 
@@ -156,8 +122,6 @@ public enum NodeState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NODE_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The node is awaiting prerequisite node to finish.
      * 
@@ -166,8 +130,6 @@ public enum NodeState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BLOCKED_VALUE = 1; /** - * - * *
      * The node is runnable but not running.
      * 
@@ -176,8 +138,6 @@ public enum NodeState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNABLE_VALUE = 2; /** - * - * *
      * The node is running.
      * 
@@ -186,8 +146,6 @@ public enum NodeState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 3; /** - * - * *
      * The node completed successfully.
      * 
@@ -196,8 +154,6 @@ public enum NodeState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPLETED_VALUE = 4; /** - * - * *
      * The node failed. A node can be marked FAILED because
      * its ancestor or peer failed.
@@ -207,6 +163,7 @@ public enum NodeState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FAILED_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -231,55 +188,52 @@ public static NodeState valueOf(int value) {
      */
     public static NodeState forNumber(int value) {
       switch (value) {
-        case 0:
-          return NODE_STATE_UNSPECIFIED;
-        case 1:
-          return BLOCKED;
-        case 2:
-          return RUNNABLE;
-        case 3:
-          return RUNNING;
-        case 4:
-          return COMPLETED;
-        case 5:
-          return FAILED;
-        default:
-          return null;
+        case 0: return NODE_STATE_UNSPECIFIED;
+        case 1: return BLOCKED;
+        case 2: return RUNNABLE;
+        case 3: return RUNNING;
+        case 4: return COMPLETED;
+        case 5: return FAILED;
+        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<
+        NodeState> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public NodeState findValueByNumber(int number) {
+              return NodeState.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public NodeState findValueByNumber(int number) {
-            return NodeState.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.dataproc.v1.WorkflowNode.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final NodeState[] VALUES = values();
 
-    public static NodeState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static NodeState 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;
@@ -299,14 +253,11 @@ private NodeState(int value) {
   public static final int STEP_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object stepId_;
   /**
-   *
-   *
    * 
    * Output only. The name of the node.
    * 
* * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stepId. */ @java.lang.Override @@ -315,29 +266,29 @@ public java.lang.String getStepId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stepId_ = s; return s; } } /** - * - * *
    * Output only. The name of the node.
    * 
* * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stepId. */ @java.lang.Override - public com.google.protobuf.ByteString getStepIdBytes() { + public com.google.protobuf.ByteString + getStepIdBytes() { java.lang.Object ref = stepId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stepId_ = b; return b; } else { @@ -348,45 +299,34 @@ public com.google.protobuf.ByteString getStepIdBytes() { public static final int PREREQUISITE_STEP_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList prerequisiteStepIds_; /** - * - * *
    * Output only. Node's prerequisite nodes.
    * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the prerequisiteStepIds. */ - public com.google.protobuf.ProtocolStringList getPrerequisiteStepIdsList() { + public com.google.protobuf.ProtocolStringList + getPrerequisiteStepIdsList() { return prerequisiteStepIds_; } /** - * - * *
    * Output only. Node's prerequisite nodes.
    * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of prerequisiteStepIds. */ public int getPrerequisiteStepIdsCount() { return prerequisiteStepIds_.size(); } /** - * - * *
    * Output only. Node's prerequisite nodes.
    * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The prerequisiteStepIds at the given index. */ @@ -394,33 +334,27 @@ public java.lang.String getPrerequisiteStepIds(int index) { return prerequisiteStepIds_.get(index); } /** - * - * *
    * Output only. Node's prerequisite nodes.
    * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the prerequisiteStepIds at the given index. */ - public com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index) { + public com.google.protobuf.ByteString + getPrerequisiteStepIdsBytes(int index) { return prerequisiteStepIds_.getByteString(index); } public static final int JOB_ID_FIELD_NUMBER = 3; private volatile java.lang.Object jobId_; /** - * - * *
    * Output only. The job id; populated after the node enters RUNNING state.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The jobId. */ @java.lang.Override @@ -429,29 +363,29 @@ 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; } } /** - * - * *
    * Output only. The job id; populated after the node enters RUNNING state.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -462,56 +396,38 @@ public com.google.protobuf.ByteString getJobIdBytes() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** - * - * *
    * Output only. The node state.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The node state.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowNode.NodeState getState() { + @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowNode.NodeState getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.WorkflowNode.NodeState result = - com.google.cloud.dataproc.v1.WorkflowNode.NodeState.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1.WorkflowNode.NodeState.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.WorkflowNode.NodeState result = com.google.cloud.dataproc.v1.WorkflowNode.NodeState.valueOf(state_); + return result == null ? com.google.cloud.dataproc.v1.WorkflowNode.NodeState.UNRECOGNIZED : result; } public static final int ERROR_FIELD_NUMBER = 6; private volatile java.lang.Object error_; /** - * - * *
    * Output only. The error detail.
    * 
* * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The error. */ @java.lang.Override @@ -520,29 +436,29 @@ public java.lang.String getError() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } } /** - * - * *
    * Output only. The error detail.
    * 
* * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for error. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorBytes() { + public com.google.protobuf.ByteString + getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); error_ = b; return b; } else { @@ -551,7 +467,6 @@ public com.google.protobuf.ByteString getErrorBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -563,7 +478,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(stepId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stepId_); } @@ -573,8 +489,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobId_); } - if (state_ - != com.google.cloud.dataproc.v1.WorkflowNode.NodeState.NODE_STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.dataproc.v1.WorkflowNode.NodeState.NODE_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { @@ -603,9 +518,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobId_); } - if (state_ - != com.google.cloud.dataproc.v1.WorkflowNode.NodeState.NODE_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + if (state_ != com.google.cloud.dataproc.v1.WorkflowNode.NodeState.NODE_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, error_); @@ -618,19 +533,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.dataproc.v1.WorkflowNode)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.WorkflowNode other = - (com.google.cloud.dataproc.v1.WorkflowNode) obj; + com.google.cloud.dataproc.v1.WorkflowNode other = (com.google.cloud.dataproc.v1.WorkflowNode) obj; - if (!getStepId().equals(other.getStepId())) return false; - if (!getPrerequisiteStepIdsList().equals(other.getPrerequisiteStepIdsList())) return false; - if (!getJobId().equals(other.getJobId())) return false; + if (!getStepId() + .equals(other.getStepId())) return false; + if (!getPrerequisiteStepIdsList() + .equals(other.getPrerequisiteStepIdsList())) return false; + if (!getJobId() + .equals(other.getJobId())) return false; if (state_ != other.state_) return false; - if (!getError().equals(other.getError())) return false; + if (!getError() + .equals(other.getError())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -659,136 +577,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.WorkflowNode parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.WorkflowNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.WorkflowNode parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.WorkflowNode prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 workflow node.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.WorkflowNode} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.WorkflowNode) com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowNode_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowNode_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowNode.class, - com.google.cloud.dataproc.v1.WorkflowNode.Builder.class); + com.google.cloud.dataproc.v1.WorkflowNode.class, com.google.cloud.dataproc.v1.WorkflowNode.Builder.class); } // Construct using com.google.cloud.dataproc.v1.WorkflowNode.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -806,9 +718,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; } @java.lang.Override @@ -827,8 +739,7 @@ public com.google.cloud.dataproc.v1.WorkflowNode build() { @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowNode buildPartial() { - com.google.cloud.dataproc.v1.WorkflowNode result = - new com.google.cloud.dataproc.v1.WorkflowNode(this); + com.google.cloud.dataproc.v1.WorkflowNode result = new com.google.cloud.dataproc.v1.WorkflowNode(this); int from_bitField0_ = bitField0_; result.stepId_ = stepId_; if (((bitField0_ & 0x00000001) != 0)) { @@ -847,39 +758,38 @@ public com.google.cloud.dataproc.v1.WorkflowNode buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.WorkflowNode) { - return mergeFrom((com.google.cloud.dataproc.v1.WorkflowNode) other); + return mergeFrom((com.google.cloud.dataproc.v1.WorkflowNode)other); } else { super.mergeFrom(other); return this; @@ -939,44 +849,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - stepId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.add(s); - break; - } // case 18 - case 26: - { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 40: - { - state_ = input.readEnum(); - - break; - } // case 40 - case 50: - { - error_ = input.readStringRequireUtf8(); - - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + stepId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePrerequisiteStepIdsIsMutable(); + prerequisiteStepIds_.add(s); + break; + } // case 18 + case 26: { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 40: { + state_ = input.readEnum(); + + break; + } // case 40 + case 50: { + error_ = input.readStringRequireUtf8(); + + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -986,25 +890,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object stepId_ = ""; /** - * - * *
      * Output only. The name of the node.
      * 
* * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stepId. */ public java.lang.String getStepId() { java.lang.Object ref = stepId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stepId_ = s; return s; @@ -1013,21 +914,20 @@ public java.lang.String getStepId() { } } /** - * - * *
      * Output only. The name of the node.
      * 
* * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stepId. */ - public com.google.protobuf.ByteString getStepIdBytes() { + public com.google.protobuf.ByteString + getStepIdBytes() { java.lang.Object ref = stepId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stepId_ = b; return b; } else { @@ -1035,115 +935,95 @@ public com.google.protobuf.ByteString getStepIdBytes() { } } /** - * - * *
      * Output only. The name of the node.
      * 
* * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The stepId to set. * @return This builder for chaining. */ - public Builder setStepId(java.lang.String value) { + public Builder setStepId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stepId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The name of the node.
      * 
* * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStepId() { - + stepId_ = getDefaultInstance().getStepId(); onChanged(); return this; } /** - * - * *
      * Output only. The name of the node.
      * 
* * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for stepId to set. * @return This builder for chaining. */ - public Builder setStepIdBytes(com.google.protobuf.ByteString value) { + public Builder setStepIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stepId_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList prerequisiteStepIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePrerequisiteStepIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { prerequisiteStepIds_ = new com.google.protobuf.LazyStringArrayList(prerequisiteStepIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Output only. Node's prerequisite nodes.
      * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the prerequisiteStepIds. */ - public com.google.protobuf.ProtocolStringList getPrerequisiteStepIdsList() { + public com.google.protobuf.ProtocolStringList + getPrerequisiteStepIdsList() { return prerequisiteStepIds_.getUnmodifiableView(); } /** - * - * *
      * Output only. Node's prerequisite nodes.
      * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of prerequisiteStepIds. */ public int getPrerequisiteStepIdsCount() { return prerequisiteStepIds_.size(); } /** - * - * *
      * Output only. Node's prerequisite nodes.
      * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The prerequisiteStepIds at the given index. */ @@ -1151,95 +1031,80 @@ public java.lang.String getPrerequisiteStepIds(int index) { return prerequisiteStepIds_.get(index); } /** - * - * *
      * Output only. Node's prerequisite nodes.
      * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the prerequisiteStepIds at the given index. */ - public com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index) { + public com.google.protobuf.ByteString + getPrerequisiteStepIdsBytes(int index) { return prerequisiteStepIds_.getByteString(index); } /** - * - * *
      * Output only. Node's prerequisite nodes.
      * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The prerequisiteStepIds to set. * @return This builder for chaining. */ - public Builder setPrerequisiteStepIds(int index, java.lang.String value) { + public Builder setPrerequisiteStepIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePrerequisiteStepIdsIsMutable(); + throw new NullPointerException(); + } + ensurePrerequisiteStepIdsIsMutable(); prerequisiteStepIds_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. Node's prerequisite nodes.
      * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The prerequisiteStepIds to add. * @return This builder for chaining. */ - public Builder addPrerequisiteStepIds(java.lang.String value) { + public Builder addPrerequisiteStepIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePrerequisiteStepIdsIsMutable(); + throw new NullPointerException(); + } + ensurePrerequisiteStepIdsIsMutable(); prerequisiteStepIds_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. Node's prerequisite nodes.
      * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The prerequisiteStepIds to add. * @return This builder for chaining. */ - public Builder addAllPrerequisiteStepIds(java.lang.Iterable values) { + public Builder addAllPrerequisiteStepIds( + java.lang.Iterable values) { ensurePrerequisiteStepIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prerequisiteStepIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, prerequisiteStepIds_); onChanged(); return this; } /** - * - * *
      * Output only. Node's prerequisite nodes.
      * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPrerequisiteStepIds() { @@ -1249,23 +1114,20 @@ public Builder clearPrerequisiteStepIds() { return this; } /** - * - * *
      * Output only. Node's prerequisite nodes.
      * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes of the prerequisiteStepIds to add. * @return This builder for chaining. */ - public Builder addPrerequisiteStepIdsBytes(com.google.protobuf.ByteString value) { + public Builder addPrerequisiteStepIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePrerequisiteStepIdsIsMutable(); prerequisiteStepIds_.add(value); onChanged(); @@ -1274,20 +1136,18 @@ public Builder addPrerequisiteStepIdsBytes(com.google.protobuf.ByteString value) private java.lang.Object jobId_ = ""; /** - * - * *
      * Output only. The job id; populated after the node enters RUNNING state.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1296,21 +1156,20 @@ public java.lang.String getJobId() { } } /** - * - * *
      * Output only. The job id; populated after the node enters RUNNING state.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1318,61 +1177,54 @@ public com.google.protobuf.ByteString getJobIdBytes() { } } /** - * - * *
      * Output only. The job id; populated after the node enters RUNNING state.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; } /** - * - * *
      * Output only. The job id; populated after the node enters RUNNING state.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearJobId() { - + jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** - * - * *
      * Output only. The job id; populated after the node enters RUNNING state.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1380,75 +1232,51 @@ public Builder setJobIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The node state.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The node state.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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; } /** - * - * *
      * Output only. The node state.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowNode.NodeState getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.WorkflowNode.NodeState result = - com.google.cloud.dataproc.v1.WorkflowNode.NodeState.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1.WorkflowNode.NodeState.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.WorkflowNode.NodeState result = com.google.cloud.dataproc.v1.WorkflowNode.NodeState.valueOf(state_); + return result == null ? com.google.cloud.dataproc.v1.WorkflowNode.NodeState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The node state.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -1456,26 +1284,21 @@ public Builder setState(com.google.cloud.dataproc.v1.WorkflowNode.NodeState valu if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The node state.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1483,20 +1306,18 @@ public Builder clearState() { private java.lang.Object error_ = ""; /** - * - * *
      * Output only. The error detail.
      * 
* * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The error. */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; @@ -1505,21 +1326,20 @@ public java.lang.String getError() { } } /** - * - * *
      * Output only. The error detail.
      * 
* * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for error. */ - public com.google.protobuf.ByteString getErrorBytes() { + public com.google.protobuf.ByteString + getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); error_ = b; return b; } else { @@ -1527,68 +1347,61 @@ public com.google.protobuf.ByteString getErrorBytes() { } } /** - * - * *
      * Output only. The error detail.
      * 
* * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The error to set. * @return This builder for chaining. */ - public Builder setError(java.lang.String value) { + public Builder setError( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + error_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The error detail.
      * 
* * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearError() { - + error_ = getDefaultInstance().getError(); onChanged(); return this; } /** - * - * *
      * Output only. The error detail.
      * 
* * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for error to set. * @return This builder for chaining. */ - public Builder setErrorBytes(com.google.protobuf.ByteString value) { + public Builder setErrorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + error_ = 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); } @@ -1598,12 +1411,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.WorkflowNode) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.WorkflowNode) private static final com.google.cloud.dataproc.v1.WorkflowNode DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.WorkflowNode(); } @@ -1612,27 +1425,27 @@ public static com.google.cloud.dataproc.v1.WorkflowNode getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowNode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1647,4 +1460,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.WorkflowNode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java index 003abfa0cfba..0e8f711f4b7c 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java @@ -1,184 +1,129 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface WorkflowNodeOrBuilder - extends +public interface WorkflowNodeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.WorkflowNode) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The name of the node.
    * 
* * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stepId. */ java.lang.String getStepId(); /** - * - * *
    * Output only. The name of the node.
    * 
* * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for stepId. */ - com.google.protobuf.ByteString getStepIdBytes(); + com.google.protobuf.ByteString + getStepIdBytes(); /** - * - * *
    * Output only. Node's prerequisite nodes.
    * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the prerequisiteStepIds. */ - java.util.List getPrerequisiteStepIdsList(); + java.util.List + getPrerequisiteStepIdsList(); /** - * - * *
    * Output only. Node's prerequisite nodes.
    * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of prerequisiteStepIds. */ int getPrerequisiteStepIdsCount(); /** - * - * *
    * Output only. Node's prerequisite nodes.
    * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The prerequisiteStepIds at the given index. */ java.lang.String getPrerequisiteStepIds(int index); /** - * - * *
    * Output only. Node's prerequisite nodes.
    * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the prerequisiteStepIds at the given index. */ - com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index); + com.google.protobuf.ByteString + getPrerequisiteStepIdsBytes(int index); /** - * - * *
    * Output only. The job id; populated after the node enters RUNNING state.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The jobId. */ java.lang.String getJobId(); /** - * - * *
    * Output only. The job id; populated after the node enters RUNNING state.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for jobId. */ - com.google.protobuf.ByteString getJobIdBytes(); + com.google.protobuf.ByteString + getJobIdBytes(); /** - * - * *
    * Output only. The node state.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The node state.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.dataproc.v1.WorkflowNode.NodeState getState(); /** - * - * *
    * Output only. The error detail.
    * 
* * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The error. */ java.lang.String getError(); /** - * - * *
    * Output only. The error detail.
    * 
* * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for error. */ - com.google.protobuf.ByteString getErrorBytes(); + com.google.protobuf.ByteString + getErrorBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java similarity index 69% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java index 8358e925e74e..0bc1a2fb2865 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * A Dataproc workflow template resource.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.WorkflowTemplate} */ -public final class WorkflowTemplate extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WorkflowTemplate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.WorkflowTemplate) WorkflowTemplateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WorkflowTemplate.newBuilder() to construct. private WorkflowTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WorkflowTemplate() { id_ = ""; name_ = ""; @@ -46,46 +28,45 @@ private WorkflowTemplate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WorkflowTemplate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplate_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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowTemplate.class, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder.class); + com.google.cloud.dataproc.v1.WorkflowTemplate.class, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder.class); } public static final int ID_FIELD_NUMBER = 2; private volatile java.lang.Object id_; /** * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The id. */ @java.lang.Override @@ -94,7 +75,8 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -102,15 +84,16 @@ public java.lang.String getId() { } /** * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -121,8 +104,6 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -135,7 +116,6 @@ public com.google.protobuf.ByteString getIdBytes() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -144,15 +124,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -165,15 +144,16 @@ public java.lang.String getName() {
    * 
* * 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 { @@ -184,8 +164,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VERSION_FIELD_NUMBER = 3; private int version_; /** - * - * *
    * Optional. Used to perform a consistent read-modify-write.
    * This field should be left blank for a `CreateWorkflowTemplate` request. It
@@ -198,7 +176,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ @java.lang.Override @@ -209,15 +186,11 @@ public int getVersion() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time template was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -225,15 +198,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time template was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -241,14 +210,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time template was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -258,15 +224,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time template was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -274,15 +236,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time template was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -290,14 +248,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time template was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -305,23 +260,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } 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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_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.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplate_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_; } @@ -330,8 +286,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels to associate with this template. These labels
    * will be propagated to all jobs and clusters created by the workflow
@@ -346,22 +300,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @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();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this template. These labels
    * will be propagated to all jobs and clusters created by the workflow
@@ -377,12 +331,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this template. These labels
    * will be propagated to all jobs and clusters created by the workflow
@@ -398,16 +351,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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;
   }
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this template. These labels
    * will be propagated to all jobs and clusters created by the workflow
@@ -423,11 +376,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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();
     }
@@ -437,16 +391,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int PLACEMENT_FIELD_NUMBER = 7;
   private com.google.cloud.dataproc.v1.WorkflowTemplatePlacement placement_;
   /**
-   *
-   *
    * 
    * Required. WorkflowTemplate scheduling information.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the placement field is set. */ @java.lang.Override @@ -454,34 +403,23 @@ public boolean hasPlacement() { return placement_ != null; } /** - * - * *
    * Required. WorkflowTemplate scheduling information.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The placement. */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement getPlacement() { - return placement_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance() - : placement_; + return placement_ == null ? com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance() : placement_; } /** - * - * *
    * Required. WorkflowTemplate scheduling information.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder getPlacementOrBuilder() { @@ -491,176 +429,136 @@ public com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder getPlacem public static final int JOBS_FIELD_NUMBER = 8; private java.util.List jobs_; /** - * - * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getJobsList() { return jobs_; } /** - * - * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getJobsOrBuilderList() { return jobs_; } /** - * - * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getJobsCount() { return jobs_.size(); } /** - * - * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dataproc.v1.OrderedJob getJobs(int index) { return jobs_.get(index); } /** - * - * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.OrderedJobOrBuilder getJobsOrBuilder(int index) { + public com.google.cloud.dataproc.v1.OrderedJobOrBuilder getJobsOrBuilder( + int index) { return jobs_.get(index); } public static final int PARAMETERS_FIELD_NUMBER = 9; private java.util.List parameters_; /** - * - * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getParametersList() { return parameters_; } /** - * - * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getParametersOrBuilderList() { return parameters_; } /** - * - * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getParametersCount() { return parameters_.size(); } /** - * - * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dataproc.v1.TemplateParameter getParameters(int index) { return parameters_.get(index); } /** - * - * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBuilder(int index) { + public com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBuilder( + int index) { return parameters_.get(index); } public static final int DAG_TIMEOUT_FIELD_NUMBER = 10; private com.google.protobuf.Duration dagTimeout_; /** - * - * *
    * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
@@ -674,9 +572,7 @@ public com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBu
    * the cluster is deleted.
    * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the dagTimeout field is set. */ @java.lang.Override @@ -684,8 +580,6 @@ public boolean hasDagTimeout() { return dagTimeout_ != null; } /** - * - * *
    * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
@@ -699,9 +593,7 @@ public boolean hasDagTimeout() {
    * the cluster is deleted.
    * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The dagTimeout. */ @java.lang.Override @@ -709,8 +601,6 @@ public com.google.protobuf.Duration getDagTimeout() { return dagTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; } /** - * - * *
    * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
@@ -724,8 +614,7 @@ public com.google.protobuf.Duration getDagTimeout() {
    * the cluster is deleted.
    * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { @@ -733,7 +622,6 @@ public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -745,7 +633,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_); } @@ -761,8 +650,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(5, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 6); if (placement_ != null) { output.writeMessage(7, getPlacement()); } @@ -791,35 +684,42 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, version_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, version_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); - } - 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(5, getUpdateTime()); + } + 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 (placement_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPlacement()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getPlacement()); } for (int i = 0; i < jobs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, jobs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, jobs_.get(i)); } for (int i = 0; i < parameters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, parameters_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, parameters_.get(i)); } if (dagTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDagTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getDagTimeout()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -829,35 +729,44 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.WorkflowTemplate)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.WorkflowTemplate other = - (com.google.cloud.dataproc.v1.WorkflowTemplate) obj; + com.google.cloud.dataproc.v1.WorkflowTemplate other = (com.google.cloud.dataproc.v1.WorkflowTemplate) obj; - if (!getId().equals(other.getId())) return false; - if (!getName().equals(other.getName())) return false; - if (getVersion() != other.getVersion()) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getVersion() + != other.getVersion()) 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 (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasPlacement() != other.hasPlacement()) return false; if (hasPlacement()) { - if (!getPlacement().equals(other.getPlacement())) return false; + if (!getPlacement() + .equals(other.getPlacement())) return false; } - if (!getJobsList().equals(other.getJobsList())) return false; - if (!getParametersList().equals(other.getParametersList())) return false; + if (!getJobsList() + .equals(other.getJobsList())) return false; + if (!getParametersList() + .equals(other.getParametersList())) return false; if (hasDagTimeout() != other.hasDagTimeout()) return false; if (hasDagTimeout()) { - if (!getDagTimeout().equals(other.getDagTimeout())) return false; + if (!getDagTimeout() + .equals(other.getDagTimeout())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -909,156 +818,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.WorkflowTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.WorkflowTemplate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc workflow template resource.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.WorkflowTemplate} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.WorkflowTemplate) com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplate_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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowTemplate.class, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder.class); + com.google.cloud.dataproc.v1.WorkflowTemplate.class, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder.class); } // Construct using com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1111,9 +1016,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplate_descriptor; } @java.lang.Override @@ -1132,8 +1037,7 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate build() { @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplate buildPartial() { - com.google.cloud.dataproc.v1.WorkflowTemplate result = - new com.google.cloud.dataproc.v1.WorkflowTemplate(this); + com.google.cloud.dataproc.v1.WorkflowTemplate result = new com.google.cloud.dataproc.v1.WorkflowTemplate(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; @@ -1186,39 +1090,38 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.WorkflowTemplate) { - return mergeFrom((com.google.cloud.dataproc.v1.WorkflowTemplate) other); + return mergeFrom((com.google.cloud.dataproc.v1.WorkflowTemplate)other); } else { super.mergeFrom(other); return this; @@ -1244,7 +1147,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowTemplate other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.hasPlacement()) { mergePlacement(other.getPlacement()); } @@ -1266,10 +1170,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowTemplate other) { jobsBuilder_ = null; jobs_ = other.jobs_; bitField0_ = (bitField0_ & ~0x00000002); - jobsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getJobsFieldBuilder() - : null; + jobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getJobsFieldBuilder() : null; } else { jobsBuilder_.addAllMessages(other.jobs_); } @@ -1293,10 +1196,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowTemplate other) { parametersBuilder_ = null; parameters_ = other.parameters_; bitField0_ = (bitField0_ & ~0x00000004); - parametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getParametersFieldBuilder() - : null; + parametersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getParametersFieldBuilder() : null; } else { parametersBuilder_.addAllMessages(other.parameters_); } @@ -1331,92 +1233,89 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - id_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - version_ = input.readInt32(); - - break; - } // case 24 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 50 - case 58: - { - input.readMessage(getPlacementFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 66: - { - com.google.cloud.dataproc.v1.OrderedJob m = - input.readMessage( - com.google.cloud.dataproc.v1.OrderedJob.parser(), extensionRegistry); - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.add(m); - } else { - jobsBuilder_.addMessage(m); - } - break; - } // case 66 - case 74: - { - com.google.cloud.dataproc.v1.TemplateParameter m = - input.readMessage( - com.google.cloud.dataproc.v1.TemplateParameter.parser(), extensionRegistry); - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(m); - } else { - parametersBuilder_.addMessage(m); - } - break; - } // case 74 - case 82: - { - input.readMessage(getDagTimeoutFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + id_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + version_ = input.readInt32(); + + break; + } // case 24 + case 34: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 50 + case 58: { + input.readMessage( + getPlacementFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 58 + case 66: { + com.google.cloud.dataproc.v1.OrderedJob m = + input.readMessage( + com.google.cloud.dataproc.v1.OrderedJob.parser(), + extensionRegistry); + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(m); + } else { + jobsBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: { + com.google.cloud.dataproc.v1.TemplateParameter m = + input.readMessage( + com.google.cloud.dataproc.v1.TemplateParameter.parser(), + extensionRegistry); + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(m); + } else { + parametersBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: { + input.readMessage( + getDagTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1426,19 +1325,18 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object id_ = ""; /** * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -1448,14 +1346,15 @@ public java.lang.String getId() { } /** * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -1464,42 +1363,41 @@ public com.google.protobuf.ByteString getIdBytes() { } /** * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -1507,8 +1405,6 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1521,13 +1417,13 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -1536,8 +1432,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1550,14 +1444,15 @@ public java.lang.String getName() {
      * 
* * 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 { @@ -1565,8 +1460,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1579,22 +1472,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1607,18 +1498,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1631,25 +1519,23 @@ public Builder clearName() {
      * 
* * 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; } - private int version_; + private int version_ ; /** - * - * *
      * Optional. Used to perform a consistent read-modify-write.
      * This field should be left blank for a `CreateWorkflowTemplate` request. It
@@ -1662,7 +1548,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ @java.lang.Override @@ -1670,8 +1555,6 @@ public int getVersion() { return version_; } /** - * - * *
      * Optional. Used to perform a consistent read-modify-write.
      * This field should be left blank for a `CreateWorkflowTemplate` request. It
@@ -1684,19 +1567,16 @@ public int getVersion() {
      * 
* * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { - + version_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Used to perform a consistent read-modify-write.
      * This field should be left blank for a `CreateWorkflowTemplate` request. It
@@ -1709,11 +1589,10 @@ public Builder setVersion(int value) {
      * 
* * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = 0; onChanged(); return this; @@ -1721,58 +1600,39 @@ public Builder clearVersion() { 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 template was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.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 template was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.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 template was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1788,17 +1648,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time template was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.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(); @@ -1809,21 +1666,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time template was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.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; } @@ -1835,15 +1688,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time template was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1857,64 +1706,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time template was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time template was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.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 template was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.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_; @@ -1922,58 +1755,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time template was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The time template was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time template was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1989,17 +1803,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time template was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.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(); @@ -2010,21 +1821,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time template was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.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; } @@ -2036,15 +1843,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time template was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2058,84 +1861,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time template was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time template was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time template was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.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_; } - 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(); @@ -2147,8 +1935,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels to associate with this template. These labels
      * will be propagated to all jobs and clusters created by the workflow
@@ -2163,22 +1949,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @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();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this template. These labels
      * will be propagated to all jobs and clusters created by the workflow
@@ -2194,12 +1980,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this template. These labels
      * will be propagated to all jobs and clusters created by the workflow
@@ -2215,17 +2000,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this template. These labels
      * will be propagated to all jobs and clusters created by the workflow
@@ -2241,11 +2025,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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();
       }
@@ -2253,12 +2038,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this template. These labels
      * will be propagated to all jobs and clusters created by the workflow
@@ -2273,21 +2057,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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();
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this template. These labels
      * will be propagated to all jobs and clusters created by the workflow
@@ -2302,20 +2088,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels to associate with this template. These labels
      * will be propagated to all jobs and clusters created by the workflow
@@ -2330,65 +2115,49 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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.dataproc.v1.WorkflowTemplatePlacement placement_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dataproc.v1.WorkflowTemplatePlacement,
-            com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder,
-            com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder>
-        placementBuilder_;
+        com.google.cloud.dataproc.v1.WorkflowTemplatePlacement, com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder, com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder> placementBuilder_;
     /**
-     *
-     *
      * 
      * Required. WorkflowTemplate scheduling information.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the placement field is set. */ public boolean hasPlacement() { return placementBuilder_ != null || placement_ != null; } /** - * - * *
      * Required. WorkflowTemplate scheduling information.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The placement. */ public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement getPlacement() { if (placementBuilder_ == null) { - return placement_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance() - : placement_; + return placement_ == null ? com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance() : placement_; } else { return placementBuilder_.getMessage(); } } /** - * - * *
      * Required. WorkflowTemplate scheduling information.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPlacement(com.google.cloud.dataproc.v1.WorkflowTemplatePlacement value) { if (placementBuilder_ == null) { @@ -2404,15 +2173,11 @@ public Builder setPlacement(com.google.cloud.dataproc.v1.WorkflowTemplatePlaceme return this; } /** - * - * *
      * Required. WorkflowTemplate scheduling information.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPlacement( com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder builderForValue) { @@ -2426,23 +2191,17 @@ public Builder setPlacement( return this; } /** - * - * *
      * Required. WorkflowTemplate scheduling information.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePlacement(com.google.cloud.dataproc.v1.WorkflowTemplatePlacement value) { if (placementBuilder_ == null) { if (placement_ != null) { placement_ = - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.newBuilder(placement_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.newBuilder(placement_).mergeFrom(value).buildPartial(); } else { placement_ = value; } @@ -2454,15 +2213,11 @@ public Builder mergePlacement(com.google.cloud.dataproc.v1.WorkflowTemplatePlace return this; } /** - * - * *
      * Required. WorkflowTemplate scheduling information.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPlacement() { if (placementBuilder_ == null) { @@ -2476,95 +2231,71 @@ public Builder clearPlacement() { return this; } /** - * - * *
      * Required. WorkflowTemplate scheduling information.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder getPlacementBuilder() { - + onChanged(); return getPlacementFieldBuilder().getBuilder(); } /** - * - * *
      * Required. WorkflowTemplate scheduling information.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder getPlacementOrBuilder() { if (placementBuilder_ != null) { return placementBuilder_.getMessageOrBuilder(); } else { - return placement_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance() - : placement_; + return placement_ == null ? + com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance() : placement_; } } /** - * - * *
      * Required. WorkflowTemplate scheduling information.
      * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement, - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder> + com.google.cloud.dataproc.v1.WorkflowTemplatePlacement, com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder, com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder> getPlacementFieldBuilder() { if (placementBuilder_ == null) { - placementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement, - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder>( - getPlacement(), getParentForChildren(), isClean()); + placementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.WorkflowTemplatePlacement, com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder, com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder>( + getPlacement(), + getParentForChildren(), + isClean()); placement_ = null; } return placementBuilder_; } private java.util.List jobs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureJobsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { jobs_ = new java.util.ArrayList(jobs_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.OrderedJob, - com.google.cloud.dataproc.v1.OrderedJob.Builder, - com.google.cloud.dataproc.v1.OrderedJobOrBuilder> - jobsBuilder_; + com.google.cloud.dataproc.v1.OrderedJob, com.google.cloud.dataproc.v1.OrderedJob.Builder, com.google.cloud.dataproc.v1.OrderedJobOrBuilder> jobsBuilder_; /** - * - * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getJobsList() { if (jobsBuilder_ == null) { @@ -2574,15 +2305,11 @@ public java.util.List getJobsList() { } } /** - * - * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ public int getJobsCount() { if (jobsBuilder_ == null) { @@ -2592,15 +2319,11 @@ public int getJobsCount() { } } /** - * - * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.OrderedJob getJobs(int index) { if (jobsBuilder_ == null) { @@ -2610,17 +2333,14 @@ public com.google.cloud.dataproc.v1.OrderedJob getJobs(int index) { } } /** - * - * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setJobs(int index, com.google.cloud.dataproc.v1.OrderedJob value) { + public Builder setJobs( + int index, com.google.cloud.dataproc.v1.OrderedJob value) { if (jobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2634,15 +2354,11 @@ public Builder setJobs(int index, com.google.cloud.dataproc.v1.OrderedJob value) return this; } /** - * - * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setJobs( int index, com.google.cloud.dataproc.v1.OrderedJob.Builder builderForValue) { @@ -2656,15 +2372,11 @@ public Builder setJobs( return this; } /** - * - * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addJobs(com.google.cloud.dataproc.v1.OrderedJob value) { if (jobsBuilder_ == null) { @@ -2680,17 +2392,14 @@ public Builder addJobs(com.google.cloud.dataproc.v1.OrderedJob value) { return this; } /** - * - * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addJobs(int index, com.google.cloud.dataproc.v1.OrderedJob value) { + public Builder addJobs( + int index, com.google.cloud.dataproc.v1.OrderedJob value) { if (jobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2704,17 +2413,14 @@ public Builder addJobs(int index, com.google.cloud.dataproc.v1.OrderedJob value) return this; } /** - * - * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addJobs(com.google.cloud.dataproc.v1.OrderedJob.Builder builderForValue) { + public Builder addJobs( + com.google.cloud.dataproc.v1.OrderedJob.Builder builderForValue) { if (jobsBuilder_ == null) { ensureJobsIsMutable(); jobs_.add(builderForValue.build()); @@ -2725,15 +2431,11 @@ public Builder addJobs(com.google.cloud.dataproc.v1.OrderedJob.Builder builderFo return this; } /** - * - * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addJobs( int index, com.google.cloud.dataproc.v1.OrderedJob.Builder builderForValue) { @@ -2747,21 +2449,18 @@ public Builder addJobs( return this; } /** - * - * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ 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); @@ -2769,15 +2468,11 @@ public Builder addAllJobs( return this; } /** - * - * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearJobs() { if (jobsBuilder_ == null) { @@ -2790,15 +2485,11 @@ public Builder clearJobs() { return this; } /** - * - * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeJobs(int index) { if (jobsBuilder_ == null) { @@ -2811,50 +2502,39 @@ public Builder removeJobs(int index) { return this; } /** - * - * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.dataproc.v1.OrderedJob.Builder getJobsBuilder(int index) { + public com.google.cloud.dataproc.v1.OrderedJob.Builder getJobsBuilder( + int index) { return getJobsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.dataproc.v1.OrderedJobOrBuilder getJobsOrBuilder(int index) { + public com.google.cloud.dataproc.v1.OrderedJobOrBuilder getJobsOrBuilder( + int index) { if (jobsBuilder_ == null) { - return jobs_.get(index); - } else { + return jobs_.get(index); } else { return jobsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getJobsOrBuilderList() { + public java.util.List + getJobsOrBuilderList() { if (jobsBuilder_ != null) { return jobsBuilder_.getMessageOrBuilderList(); } else { @@ -2862,96 +2542,74 @@ public com.google.cloud.dataproc.v1.OrderedJobOrBuilder getJobsOrBuilder(int ind } } /** - * - * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.OrderedJob.Builder addJobsBuilder() { - return getJobsFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.OrderedJob.getDefaultInstance()); + return getJobsFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.OrderedJob.getDefaultInstance()); } /** - * - * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.dataproc.v1.OrderedJob.Builder addJobsBuilder(int index) { - return getJobsFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.OrderedJob.getDefaultInstance()); + public com.google.cloud.dataproc.v1.OrderedJob.Builder addJobsBuilder( + int index) { + return getJobsFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.OrderedJob.getDefaultInstance()); } /** - * - * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List getJobsBuilderList() { + public java.util.List + getJobsBuilderList() { return getJobsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.OrderedJob, - com.google.cloud.dataproc.v1.OrderedJob.Builder, - com.google.cloud.dataproc.v1.OrderedJobOrBuilder> + com.google.cloud.dataproc.v1.OrderedJob, com.google.cloud.dataproc.v1.OrderedJob.Builder, com.google.cloud.dataproc.v1.OrderedJobOrBuilder> getJobsFieldBuilder() { if (jobsBuilder_ == null) { - jobsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.OrderedJob, - com.google.cloud.dataproc.v1.OrderedJob.Builder, - com.google.cloud.dataproc.v1.OrderedJobOrBuilder>( - jobs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + jobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.OrderedJob, com.google.cloud.dataproc.v1.OrderedJob.Builder, com.google.cloud.dataproc.v1.OrderedJobOrBuilder>( + jobs_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); jobs_ = null; } return jobsBuilder_; } private java.util.List parameters_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureParametersIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - parameters_ = - new java.util.ArrayList(parameters_); + parameters_ = new java.util.ArrayList(parameters_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.TemplateParameter, - com.google.cloud.dataproc.v1.TemplateParameter.Builder, - com.google.cloud.dataproc.v1.TemplateParameterOrBuilder> - parametersBuilder_; + com.google.cloud.dataproc.v1.TemplateParameter, com.google.cloud.dataproc.v1.TemplateParameter.Builder, com.google.cloud.dataproc.v1.TemplateParameterOrBuilder> parametersBuilder_; /** - * - * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getParametersList() { if (parametersBuilder_ == null) { @@ -2961,17 +2619,13 @@ public java.util.List getParamet } } /** - * - * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public int getParametersCount() { if (parametersBuilder_ == null) { @@ -2981,17 +2635,13 @@ public int getParametersCount() { } } /** - * - * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.TemplateParameter getParameters(int index) { if (parametersBuilder_ == null) { @@ -3001,19 +2651,16 @@ public com.google.cloud.dataproc.v1.TemplateParameter getParameters(int index) { } } /** - * - * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setParameters(int index, com.google.cloud.dataproc.v1.TemplateParameter value) { + public Builder setParameters( + int index, com.google.cloud.dataproc.v1.TemplateParameter value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3027,17 +2674,13 @@ public Builder setParameters(int index, com.google.cloud.dataproc.v1.TemplatePar return this; } /** - * - * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setParameters( int index, com.google.cloud.dataproc.v1.TemplateParameter.Builder builderForValue) { @@ -3051,17 +2694,13 @@ public Builder setParameters( return this; } /** - * - * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addParameters(com.google.cloud.dataproc.v1.TemplateParameter value) { if (parametersBuilder_ == null) { @@ -3077,19 +2716,16 @@ public Builder addParameters(com.google.cloud.dataproc.v1.TemplateParameter valu return this; } /** - * - * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addParameters(int index, com.google.cloud.dataproc.v1.TemplateParameter value) { + public Builder addParameters( + int index, com.google.cloud.dataproc.v1.TemplateParameter value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3103,17 +2739,13 @@ public Builder addParameters(int index, com.google.cloud.dataproc.v1.TemplatePar return this; } /** - * - * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addParameters( com.google.cloud.dataproc.v1.TemplateParameter.Builder builderForValue) { @@ -3127,17 +2759,13 @@ public Builder addParameters( return this; } /** - * - * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addParameters( int index, com.google.cloud.dataproc.v1.TemplateParameter.Builder builderForValue) { @@ -3151,23 +2779,20 @@ public Builder addParameters( return this; } /** - * - * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllParameters( java.lang.Iterable values) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, parameters_); onChanged(); } else { parametersBuilder_.addAllMessages(values); @@ -3175,17 +2800,13 @@ public Builder addAllParameters( return this; } /** - * - * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearParameters() { if (parametersBuilder_ == null) { @@ -3198,17 +2819,13 @@ public Builder clearParameters() { return this; } /** - * - * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeParameters(int index) { if (parametersBuilder_ == null) { @@ -3221,57 +2838,45 @@ public Builder removeParameters(int index) { return this; } /** - * - * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.TemplateParameter.Builder getParametersBuilder(int index) { + public com.google.cloud.dataproc.v1.TemplateParameter.Builder getParametersBuilder( + int index) { return getParametersFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBuilder( int index) { if (parametersBuilder_ == null) { - return parameters_.get(index); - } else { + return parameters_.get(index); } else { return parametersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getParametersOrBuilderList() { + public java.util.List + getParametersOrBuilderList() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilderList(); } else { @@ -3279,69 +2884,55 @@ public com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBu } } /** - * - * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dataproc.v1.TemplateParameter.Builder addParametersBuilder() { - return getParametersFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.TemplateParameter.getDefaultInstance()); + return getParametersFieldBuilder().addBuilder( + com.google.cloud.dataproc.v1.TemplateParameter.getDefaultInstance()); } /** - * - * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dataproc.v1.TemplateParameter.Builder addParametersBuilder(int index) { - return getParametersFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.TemplateParameter.getDefaultInstance()); + public com.google.cloud.dataproc.v1.TemplateParameter.Builder addParametersBuilder( + int index) { + return getParametersFieldBuilder().addBuilder( + index, com.google.cloud.dataproc.v1.TemplateParameter.getDefaultInstance()); } /** - * - * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getParametersBuilderList() { + public java.util.List + getParametersBuilderList() { return getParametersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.TemplateParameter, - com.google.cloud.dataproc.v1.TemplateParameter.Builder, - com.google.cloud.dataproc.v1.TemplateParameterOrBuilder> + com.google.cloud.dataproc.v1.TemplateParameter, com.google.cloud.dataproc.v1.TemplateParameter.Builder, com.google.cloud.dataproc.v1.TemplateParameterOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { - parametersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.TemplateParameter, - com.google.cloud.dataproc.v1.TemplateParameter.Builder, - com.google.cloud.dataproc.v1.TemplateParameterOrBuilder>( - parameters_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.TemplateParameter, com.google.cloud.dataproc.v1.TemplateParameter.Builder, com.google.cloud.dataproc.v1.TemplateParameterOrBuilder>( + parameters_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); parameters_ = null; } return parametersBuilder_; @@ -3349,13 +2940,8 @@ public com.google.cloud.dataproc.v1.TemplateParameter.Builder addParametersBuild private com.google.protobuf.Duration dagTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - dagTimeoutBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> dagTimeoutBuilder_; /** - * - * *
      * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
@@ -3369,17 +2955,13 @@ public com.google.cloud.dataproc.v1.TemplateParameter.Builder addParametersBuild
      * the cluster is deleted.
      * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the dagTimeout field is set. */ public boolean hasDagTimeout() { return dagTimeoutBuilder_ != null || dagTimeout_ != null; } /** - * - * *
      * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
@@ -3393,23 +2975,17 @@ public boolean hasDagTimeout() {
      * the cluster is deleted.
      * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The dagTimeout. */ public com.google.protobuf.Duration getDagTimeout() { if (dagTimeoutBuilder_ == null) { - return dagTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dagTimeout_; + return dagTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; } else { return dagTimeoutBuilder_.getMessage(); } } /** - * - * *
      * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
@@ -3423,8 +2999,7 @@ public com.google.protobuf.Duration getDagTimeout() {
      * the cluster is deleted.
      * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDagTimeout(com.google.protobuf.Duration value) { if (dagTimeoutBuilder_ == null) { @@ -3440,8 +3015,6 @@ public Builder setDagTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
@@ -3455,10 +3028,10 @@ public Builder setDagTimeout(com.google.protobuf.Duration value) {
      * the cluster is deleted.
      * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDagTimeout(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDagTimeout( + com.google.protobuf.Duration.Builder builderForValue) { if (dagTimeoutBuilder_ == null) { dagTimeout_ = builderForValue.build(); onChanged(); @@ -3469,8 +3042,6 @@ public Builder setDagTimeout(com.google.protobuf.Duration.Builder builderForValu return this; } /** - * - * *
      * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
@@ -3484,14 +3055,13 @@ public Builder setDagTimeout(com.google.protobuf.Duration.Builder builderForValu
      * the cluster is deleted.
      * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeDagTimeout(com.google.protobuf.Duration value) { if (dagTimeoutBuilder_ == null) { if (dagTimeout_ != null) { dagTimeout_ = - com.google.protobuf.Duration.newBuilder(dagTimeout_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(dagTimeout_).mergeFrom(value).buildPartial(); } else { dagTimeout_ = value; } @@ -3503,8 +3073,6 @@ public Builder mergeDagTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
@@ -3518,8 +3086,7 @@ public Builder mergeDagTimeout(com.google.protobuf.Duration value) {
      * the cluster is deleted.
      * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDagTimeout() { if (dagTimeoutBuilder_ == null) { @@ -3533,8 +3100,6 @@ public Builder clearDagTimeout() { return this; } /** - * - * *
      * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
@@ -3548,17 +3113,14 @@ public Builder clearDagTimeout() {
      * the cluster is deleted.
      * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getDagTimeoutBuilder() { - + onChanged(); return getDagTimeoutFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
@@ -3572,21 +3134,17 @@ public com.google.protobuf.Duration.Builder getDagTimeoutBuilder() {
      * the cluster is deleted.
      * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { if (dagTimeoutBuilder_ != null) { return dagTimeoutBuilder_.getMessageOrBuilder(); } else { - return dagTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dagTimeout_; + return dagTimeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; } } /** - * - * *
      * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
@@ -3600,28 +3158,24 @@ public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() {
      * the cluster is deleted.
      * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ 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> getDagTimeoutFieldBuilder() { if (dagTimeoutBuilder_ == null) { - dagTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDagTimeout(), getParentForChildren(), isClean()); + dagTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDagTimeout(), + getParentForChildren(), + isClean()); dagTimeout_ = null; } return dagTimeoutBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3631,12 +3185,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.WorkflowTemplate) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.WorkflowTemplate) private static final com.google.cloud.dataproc.v1.WorkflowTemplate DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.WorkflowTemplate(); } @@ -3645,27 +3199,27 @@ public static com.google.cloud.dataproc.v1.WorkflowTemplate getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3680,4 +3234,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.WorkflowTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java similarity index 100% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java similarity index 76% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java index 5e314eb2a9c7..a64d4f715c35 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java @@ -1,44 +1,25 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface WorkflowTemplateOrBuilder - extends +public interface WorkflowTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.WorkflowTemplate) com.google.protobuf.MessageOrBuilder { /** * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The id. */ java.lang.String getId(); /** * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * Output only. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -51,13 +32,10 @@ public interface WorkflowTemplateOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -70,14 +48,12 @@ public interface WorkflowTemplateOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Used to perform a consistent read-modify-write.
    * This field should be left blank for a `CreateWorkflowTemplate` request. It
@@ -90,90 +66,65 @@ public interface WorkflowTemplateOrBuilder
    * 
* * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ int getVersion(); /** - * - * *
    * Output only. The time template was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time template was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time template was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time template was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time template was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time template was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Optional. The labels to associate with this template. These labels
    * will be propagated to all jobs and clusters created by the workflow
@@ -190,8 +141,6 @@ public interface WorkflowTemplateOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this template. These labels
    * will be propagated to all jobs and clusters created by the workflow
@@ -206,13 +155,15 @@ public interface WorkflowTemplateOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  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();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this template. These labels
    * will be propagated to all jobs and clusters created by the workflow
@@ -227,10 +178,9 @@ public interface WorkflowTemplateOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this template. These labels
    * will be propagated to all jobs and clusters created by the workflow
@@ -247,13 +197,11 @@ public interface WorkflowTemplateOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels to associate with this template. These labels
    * will be propagated to all jobs and clusters created by the workflow
@@ -268,185 +216,136 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Required. WorkflowTemplate scheduling information.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the placement field is set. */ boolean hasPlacement(); /** - * - * *
    * Required. WorkflowTemplate scheduling information.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The placement. */ com.google.cloud.dataproc.v1.WorkflowTemplatePlacement getPlacement(); /** - * - * *
    * Required. WorkflowTemplate scheduling information.
    * 
* - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder getPlacementOrBuilder(); /** - * - * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getJobsList(); + java.util.List + getJobsList(); /** - * - * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dataproc.v1.OrderedJob getJobs(int index); /** - * - * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ int getJobsCount(); /** - * - * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getJobsOrBuilderList(); + java.util.List + getJobsOrBuilderList(); /** - * - * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.dataproc.v1.OrderedJobOrBuilder getJobsOrBuilder(int index); + com.google.cloud.dataproc.v1.OrderedJobOrBuilder getJobsOrBuilder( + int index); /** - * - * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getParametersList(); + java.util.List + getParametersList(); /** - * - * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dataproc.v1.TemplateParameter getParameters(int index); /** - * - * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ int getParametersCount(); /** - * - * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getParametersOrBuilderList(); /** - * - * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBuilder(int index); + com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBuilder( + int index); /** - * - * *
    * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
@@ -460,15 +359,11 @@ java.lang.String getLabelsOrDefault(
    * the cluster is deleted.
    * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the dagTimeout field is set. */ boolean hasDagTimeout(); /** - * - * *
    * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
@@ -482,15 +377,11 @@ java.lang.String getLabelsOrDefault(
    * the cluster is deleted.
    * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The dagTimeout. */ com.google.protobuf.Duration getDagTimeout(); /** - * - * *
    * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
@@ -504,8 +395,7 @@ java.lang.String getLabelsOrDefault(
    * the cluster is deleted.
    * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java similarity index 72% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java index eeb2c01db319..75755e3cc42b 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.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/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** - * - * *
  * Specifies workflow execution target.
  * Either `managed_cluster` or `cluster_selector` is required.
@@ -28,56 +11,52 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.WorkflowTemplatePlacement}
  */
-public final class WorkflowTemplatePlacement extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class WorkflowTemplatePlacement extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.WorkflowTemplatePlacement)
     WorkflowTemplatePlacementOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use WorkflowTemplatePlacement.newBuilder() to construct.
   private WorkflowTemplatePlacement(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private WorkflowTemplatePlacement() {}
+  private WorkflowTemplatePlacement() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new WorkflowTemplatePlacement();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
-        .internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
-        .internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.class,
-            com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder.class);
+            com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.class, com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder.class);
   }
 
   private int placementCase_ = 0;
   private java.lang.Object placement_;
-
   public enum PlacementCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     MANAGED_CLUSTER(1),
     CLUSTER_SELECTOR(2),
     PLACEMENT_NOT_SET(0);
     private final int value;
-
     private PlacementCase(int value) {
       this.value = value;
     }
@@ -93,36 +72,30 @@ public static PlacementCase valueOf(int value) {
 
     public static PlacementCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return MANAGED_CLUSTER;
-        case 2:
-          return CLUSTER_SELECTOR;
-        case 0:
-          return PLACEMENT_NOT_SET;
-        default:
-          return null;
+        case 1: return MANAGED_CLUSTER;
+        case 2: return CLUSTER_SELECTOR;
+        case 0: return PLACEMENT_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public PlacementCase getPlacementCase() {
-    return PlacementCase.forNumber(placementCase_);
+  public PlacementCase
+  getPlacementCase() {
+    return PlacementCase.forNumber(
+        placementCase_);
   }
 
   public static final int MANAGED_CLUSTER_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * A cluster that is managed by the workflow.
    * 
* * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - * * @return Whether the managedCluster field is set. */ @java.lang.Override @@ -130,26 +103,21 @@ public boolean hasManagedCluster() { return placementCase_ == 1; } /** - * - * *
    * A cluster that is managed by the workflow.
    * 
* * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - * * @return The managedCluster. */ @java.lang.Override public com.google.cloud.dataproc.v1.ManagedCluster getManagedCluster() { if (placementCase_ == 1) { - return (com.google.cloud.dataproc.v1.ManagedCluster) placement_; + return (com.google.cloud.dataproc.v1.ManagedCluster) placement_; } return com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance(); } /** - * - * *
    * A cluster that is managed by the workflow.
    * 
@@ -159,15 +127,13 @@ public com.google.cloud.dataproc.v1.ManagedCluster getManagedCluster() { @java.lang.Override public com.google.cloud.dataproc.v1.ManagedClusterOrBuilder getManagedClusterOrBuilder() { if (placementCase_ == 1) { - return (com.google.cloud.dataproc.v1.ManagedCluster) placement_; + return (com.google.cloud.dataproc.v1.ManagedCluster) placement_; } return com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance(); } public static final int CLUSTER_SELECTOR_FIELD_NUMBER = 2; /** - * - * *
    * Optional. A selector that chooses target cluster for jobs based
    * on metadata.
@@ -175,7 +141,6 @@ public com.google.cloud.dataproc.v1.ManagedClusterOrBuilder getManagedClusterOrB
    * 
* * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - * * @return Whether the clusterSelector field is set. */ @java.lang.Override @@ -183,8 +148,6 @@ public boolean hasClusterSelector() { return placementCase_ == 2; } /** - * - * *
    * Optional. A selector that chooses target cluster for jobs based
    * on metadata.
@@ -192,19 +155,16 @@ public boolean hasClusterSelector() {
    * 
* * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - * * @return The clusterSelector. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterSelector getClusterSelector() { if (placementCase_ == 2) { - return (com.google.cloud.dataproc.v1.ClusterSelector) placement_; + return (com.google.cloud.dataproc.v1.ClusterSelector) placement_; } return com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance(); } /** - * - * *
    * Optional. A selector that chooses target cluster for jobs based
    * on metadata.
@@ -216,13 +176,12 @@ public com.google.cloud.dataproc.v1.ClusterSelector getClusterSelector() {
   @java.lang.Override
   public com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder getClusterSelectorOrBuilder() {
     if (placementCase_ == 2) {
-      return (com.google.cloud.dataproc.v1.ClusterSelector) placement_;
+       return (com.google.cloud.dataproc.v1.ClusterSelector) placement_;
     }
     return com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -234,7 +193,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 (placementCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.dataproc.v1.ManagedCluster) placement_);
     }
@@ -251,14 +211,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (placementCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.cloud.dataproc.v1.ManagedCluster) placement_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.dataproc.v1.ManagedCluster) placement_);
     }
     if (placementCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.cloud.dataproc.v1.ClusterSelector) placement_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.dataproc.v1.ClusterSelector) placement_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -268,21 +226,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.dataproc.v1.WorkflowTemplatePlacement)) {
       return super.equals(obj);
     }
-    com.google.cloud.dataproc.v1.WorkflowTemplatePlacement other =
-        (com.google.cloud.dataproc.v1.WorkflowTemplatePlacement) obj;
+    com.google.cloud.dataproc.v1.WorkflowTemplatePlacement other = (com.google.cloud.dataproc.v1.WorkflowTemplatePlacement) obj;
 
     if (!getPlacementCase().equals(other.getPlacementCase())) return false;
     switch (placementCase_) {
       case 1:
-        if (!getManagedCluster().equals(other.getManagedCluster())) return false;
+        if (!getManagedCluster()
+            .equals(other.getManagedCluster())) return false;
         break;
       case 2:
-        if (!getClusterSelector().equals(other.getClusterSelector())) return false;
+        if (!getClusterSelector()
+            .equals(other.getClusterSelector())) return false;
         break;
       case 0:
       default:
@@ -316,104 +275,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement 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.dataproc.v1.WorkflowTemplatePlacement parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.dataproc.v1.WorkflowTemplatePlacement prototype) {
+  public static Builder newBuilder(com.google.cloud.dataproc.v1.WorkflowTemplatePlacement prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Specifies workflow execution target.
    * Either `managed_cluster` or `cluster_selector` is required.
@@ -421,32 +372,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.WorkflowTemplatePlacement}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.WorkflowTemplatePlacement)
       com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
-          .internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
-          .internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.class,
-              com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder.class);
+              com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.class, com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -462,9 +414,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
-          .internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor;
     }
 
     @java.lang.Override
@@ -483,8 +435,7 @@ public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement buildPartial() {
-      com.google.cloud.dataproc.v1.WorkflowTemplatePlacement result =
-          new com.google.cloud.dataproc.v1.WorkflowTemplatePlacement(this);
+      com.google.cloud.dataproc.v1.WorkflowTemplatePlacement result = new com.google.cloud.dataproc.v1.WorkflowTemplatePlacement(this);
       if (placementCase_ == 1) {
         if (managedClusterBuilder_ == null) {
           result.placement_ = placement_;
@@ -508,39 +459,38 @@ public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.WorkflowTemplatePlacement) {
-        return mergeFrom((com.google.cloud.dataproc.v1.WorkflowTemplatePlacement) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.WorkflowTemplatePlacement)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -548,23 +498,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowTemplatePlacement other) {
-      if (other == com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance()) return this;
       switch (other.getPlacementCase()) {
-        case MANAGED_CLUSTER:
-          {
-            mergeManagedCluster(other.getManagedCluster());
-            break;
-          }
-        case CLUSTER_SELECTOR:
-          {
-            mergeClusterSelector(other.getClusterSelector());
-            break;
-          }
-        case PLACEMENT_NOT_SET:
-          {
-            break;
-          }
+        case MANAGED_CLUSTER: {
+          mergeManagedCluster(other.getManagedCluster());
+          break;
+        }
+        case CLUSTER_SELECTOR: {
+          mergeClusterSelector(other.getClusterSelector());
+          break;
+        }
+        case PLACEMENT_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -592,25 +538,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getManagedClusterFieldBuilder().getBuilder(), extensionRegistry);
-                placementCase_ = 1;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getClusterSelectorFieldBuilder().getBuilder(), extensionRegistry);
-                placementCase_ = 2;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getManagedClusterFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              placementCase_ = 1;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getClusterSelectorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              placementCase_ = 2;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -620,12 +567,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int placementCase_ = 0;
     private java.lang.Object placement_;
-
-    public PlacementCase getPlacementCase() {
-      return PlacementCase.forNumber(placementCase_);
+    public PlacementCase
+        getPlacementCase() {
+      return PlacementCase.forNumber(
+          placementCase_);
     }
 
     public Builder clearPlacement() {
@@ -635,20 +582,15 @@ public Builder clearPlacement() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dataproc.v1.ManagedCluster,
-            com.google.cloud.dataproc.v1.ManagedCluster.Builder,
-            com.google.cloud.dataproc.v1.ManagedClusterOrBuilder>
-        managedClusterBuilder_;
+        com.google.cloud.dataproc.v1.ManagedCluster, com.google.cloud.dataproc.v1.ManagedCluster.Builder, com.google.cloud.dataproc.v1.ManagedClusterOrBuilder> managedClusterBuilder_;
     /**
-     *
-     *
      * 
      * A cluster that is managed by the workflow.
      * 
* * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - * * @return Whether the managedCluster field is set. */ @java.lang.Override @@ -656,14 +598,11 @@ public boolean hasManagedCluster() { return placementCase_ == 1; } /** - * - * *
      * A cluster that is managed by the workflow.
      * 
* * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - * * @return The managedCluster. */ @java.lang.Override @@ -681,8 +620,6 @@ public com.google.cloud.dataproc.v1.ManagedCluster getManagedCluster() { } } /** - * - * *
      * A cluster that is managed by the workflow.
      * 
@@ -703,8 +640,6 @@ public Builder setManagedCluster(com.google.cloud.dataproc.v1.ManagedCluster val return this; } /** - * - * *
      * A cluster that is managed by the workflow.
      * 
@@ -723,8 +658,6 @@ public Builder setManagedCluster( return this; } /** - * - * *
      * A cluster that is managed by the workflow.
      * 
@@ -733,13 +666,10 @@ public Builder setManagedCluster( */ public Builder mergeManagedCluster(com.google.cloud.dataproc.v1.ManagedCluster value) { if (managedClusterBuilder_ == null) { - if (placementCase_ == 1 - && placement_ != com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance()) { - placement_ = - com.google.cloud.dataproc.v1.ManagedCluster.newBuilder( - (com.google.cloud.dataproc.v1.ManagedCluster) placement_) - .mergeFrom(value) - .buildPartial(); + if (placementCase_ == 1 && + placement_ != com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance()) { + placement_ = com.google.cloud.dataproc.v1.ManagedCluster.newBuilder((com.google.cloud.dataproc.v1.ManagedCluster) placement_) + .mergeFrom(value).buildPartial(); } else { placement_ = value; } @@ -755,8 +685,6 @@ public Builder mergeManagedCluster(com.google.cloud.dataproc.v1.ManagedCluster v return this; } /** - * - * *
      * A cluster that is managed by the workflow.
      * 
@@ -780,8 +708,6 @@ public Builder clearManagedCluster() { return this; } /** - * - * *
      * A cluster that is managed by the workflow.
      * 
@@ -792,8 +718,6 @@ public com.google.cloud.dataproc.v1.ManagedCluster.Builder getManagedClusterBuil return getManagedClusterFieldBuilder().getBuilder(); } /** - * - * *
      * A cluster that is managed by the workflow.
      * 
@@ -812,8 +736,6 @@ public com.google.cloud.dataproc.v1.ManagedClusterOrBuilder getManagedClusterOrB } } /** - * - * *
      * A cluster that is managed by the workflow.
      * 
@@ -821,38 +743,27 @@ public com.google.cloud.dataproc.v1.ManagedClusterOrBuilder getManagedClusterOrB * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ManagedCluster, - com.google.cloud.dataproc.v1.ManagedCluster.Builder, - com.google.cloud.dataproc.v1.ManagedClusterOrBuilder> + com.google.cloud.dataproc.v1.ManagedCluster, com.google.cloud.dataproc.v1.ManagedCluster.Builder, com.google.cloud.dataproc.v1.ManagedClusterOrBuilder> getManagedClusterFieldBuilder() { if (managedClusterBuilder_ == null) { if (!(placementCase_ == 1)) { placement_ = com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance(); } - managedClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ManagedCluster, - com.google.cloud.dataproc.v1.ManagedCluster.Builder, - com.google.cloud.dataproc.v1.ManagedClusterOrBuilder>( + managedClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ManagedCluster, com.google.cloud.dataproc.v1.ManagedCluster.Builder, com.google.cloud.dataproc.v1.ManagedClusterOrBuilder>( (com.google.cloud.dataproc.v1.ManagedCluster) placement_, getParentForChildren(), isClean()); placement_ = null; } placementCase_ = 1; - onChanged(); - ; + onChanged();; return managedClusterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterSelector, - com.google.cloud.dataproc.v1.ClusterSelector.Builder, - com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder> - clusterSelectorBuilder_; + com.google.cloud.dataproc.v1.ClusterSelector, com.google.cloud.dataproc.v1.ClusterSelector.Builder, com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder> clusterSelectorBuilder_; /** - * - * *
      * Optional. A selector that chooses target cluster for jobs based
      * on metadata.
@@ -860,7 +771,6 @@ public com.google.cloud.dataproc.v1.ManagedClusterOrBuilder getManagedClusterOrB
      * 
* * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - * * @return Whether the clusterSelector field is set. */ @java.lang.Override @@ -868,8 +778,6 @@ public boolean hasClusterSelector() { return placementCase_ == 2; } /** - * - * *
      * Optional. A selector that chooses target cluster for jobs based
      * on metadata.
@@ -877,7 +785,6 @@ public boolean hasClusterSelector() {
      * 
* * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - * * @return The clusterSelector. */ @java.lang.Override @@ -895,8 +802,6 @@ public com.google.cloud.dataproc.v1.ClusterSelector getClusterSelector() { } } /** - * - * *
      * Optional. A selector that chooses target cluster for jobs based
      * on metadata.
@@ -919,8 +824,6 @@ public Builder setClusterSelector(com.google.cloud.dataproc.v1.ClusterSelector v
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. A selector that chooses target cluster for jobs based
      * on metadata.
@@ -941,8 +844,6 @@ public Builder setClusterSelector(
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. A selector that chooses target cluster for jobs based
      * on metadata.
@@ -953,13 +854,10 @@ public Builder setClusterSelector(
      */
     public Builder mergeClusterSelector(com.google.cloud.dataproc.v1.ClusterSelector value) {
       if (clusterSelectorBuilder_ == null) {
-        if (placementCase_ == 2
-            && placement_ != com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance()) {
-          placement_ =
-              com.google.cloud.dataproc.v1.ClusterSelector.newBuilder(
-                      (com.google.cloud.dataproc.v1.ClusterSelector) placement_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (placementCase_ == 2 &&
+            placement_ != com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance()) {
+          placement_ = com.google.cloud.dataproc.v1.ClusterSelector.newBuilder((com.google.cloud.dataproc.v1.ClusterSelector) placement_)
+              .mergeFrom(value).buildPartial();
         } else {
           placement_ = value;
         }
@@ -975,8 +873,6 @@ public Builder mergeClusterSelector(com.google.cloud.dataproc.v1.ClusterSelector
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. A selector that chooses target cluster for jobs based
      * on metadata.
@@ -1002,8 +898,6 @@ public Builder clearClusterSelector() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. A selector that chooses target cluster for jobs based
      * on metadata.
@@ -1016,8 +910,6 @@ public com.google.cloud.dataproc.v1.ClusterSelector.Builder getClusterSelectorBu
       return getClusterSelectorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Optional. A selector that chooses target cluster for jobs based
      * on metadata.
@@ -1038,8 +930,6 @@ public com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder getClusterSelectorO
       }
     }
     /**
-     *
-     *
      * 
      * Optional. A selector that chooses target cluster for jobs based
      * on metadata.
@@ -1049,32 +939,26 @@ public com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder getClusterSelectorO
      * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dataproc.v1.ClusterSelector,
-            com.google.cloud.dataproc.v1.ClusterSelector.Builder,
-            com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder>
+        com.google.cloud.dataproc.v1.ClusterSelector, com.google.cloud.dataproc.v1.ClusterSelector.Builder, com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder> 
         getClusterSelectorFieldBuilder() {
       if (clusterSelectorBuilder_ == null) {
         if (!(placementCase_ == 2)) {
           placement_ = com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance();
         }
-        clusterSelectorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.dataproc.v1.ClusterSelector,
-                com.google.cloud.dataproc.v1.ClusterSelector.Builder,
-                com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder>(
+        clusterSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.dataproc.v1.ClusterSelector, com.google.cloud.dataproc.v1.ClusterSelector.Builder, com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder>(
                 (com.google.cloud.dataproc.v1.ClusterSelector) placement_,
                 getParentForChildren(),
                 isClean());
         placement_ = null;
       }
       placementCase_ = 2;
-      onChanged();
-      ;
+      onChanged();;
       return clusterSelectorBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1084,12 +968,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.WorkflowTemplatePlacement)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.WorkflowTemplatePlacement)
   private static final com.google.cloud.dataproc.v1.WorkflowTemplatePlacement DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.WorkflowTemplatePlacement();
   }
@@ -1098,27 +982,27 @@ public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public WorkflowTemplatePlacement parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public WorkflowTemplatePlacement parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1133,4 +1017,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.java
similarity index 75%
rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.java
rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.java
index 5f6a313a786a..9accf3aac590 100644
--- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.java
+++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.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/dataproc/v1/workflow_templates.proto
 
 package com.google.cloud.dataproc.v1;
 
-public interface WorkflowTemplatePlacementOrBuilder
-    extends
+public interface WorkflowTemplatePlacementOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.WorkflowTemplatePlacement)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A cluster that is managed by the workflow.
    * 
* * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - * * @return Whether the managedCluster field is set. */ boolean hasManagedCluster(); /** - * - * *
    * A cluster that is managed by the workflow.
    * 
* * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - * * @return The managedCluster. */ com.google.cloud.dataproc.v1.ManagedCluster getManagedCluster(); /** - * - * *
    * A cluster that is managed by the workflow.
    * 
@@ -59,8 +35,6 @@ public interface WorkflowTemplatePlacementOrBuilder com.google.cloud.dataproc.v1.ManagedClusterOrBuilder getManagedClusterOrBuilder(); /** - * - * *
    * Optional. A selector that chooses target cluster for jobs based
    * on metadata.
@@ -68,13 +42,10 @@ public interface WorkflowTemplatePlacementOrBuilder
    * 
* * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - * * @return Whether the clusterSelector field is set. */ boolean hasClusterSelector(); /** - * - * *
    * Optional. A selector that chooses target cluster for jobs based
    * on metadata.
@@ -82,13 +53,10 @@ public interface WorkflowTemplatePlacementOrBuilder
    * 
* * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - * * @return The clusterSelector. */ com.google.cloud.dataproc.v1.ClusterSelector getClusterSelector(); /** - * - * *
    * Optional. A selector that chooses target cluster for jobs based
    * on metadata.
diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java
new file mode 100644
index 000000000000..7fc84a90297d
--- /dev/null
+++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java
@@ -0,0 +1,559 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/dataproc/v1/workflow_templates.proto
+
+package com.google.cloud.dataproc.v1;
+
+public final class WorkflowTemplatesProto {
+  private WorkflowTemplatesProto() {}
+  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_dataproc_v1_WorkflowTemplate_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_WorkflowTemplate_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_WorkflowTemplate_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_WorkflowTemplate_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ManagedCluster_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_ManagedCluster_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ManagedCluster_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ClusterSelector_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_ClusterSelector_ClusterLabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ClusterSelector_ClusterLabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_OrderedJob_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_OrderedJob_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_OrderedJob_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_OrderedJob_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_TemplateParameter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ParameterValidation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_RegexValidation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ValueValidation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_WorkflowMetadata_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_WorkflowMetadata_ParametersEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_WorkflowMetadata_ParametersEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ClusterOperation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_WorkflowGraph_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_WorkflowNode_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_ParametersEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_ParametersEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n1google/cloud/dataproc/v1/workflow_temp" +
+      "lates.proto\022\030google.cloud.dataproc.v1\032\034g" +
+      "oogle/api/annotations.proto\032\027google/api/" +
+      "client.proto\032\037google/api/field_behavior." +
+      "proto\032\031google/api/resource.proto\032\'google" +
+      "/cloud/dataproc/v1/clusters.proto\032#googl" +
+      "e/cloud/dataproc/v1/jobs.proto\032#google/l" +
+      "ongrunning/operations.proto\032\036google/prot" +
+      "obuf/duration.proto\032\033google/protobuf/emp" +
+      "ty.proto\032\037google/protobuf/timestamp.prot" +
+      "o\"\202\006\n\020WorkflowTemplate\022\017\n\002id\030\002 \001(\tB\003\340A\002\022" +
+      "\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007version\030\003 \001(\005B\003\340A\001" +
+      "\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf." +
+      "TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.go" +
+      "ogle.protobuf.TimestampB\003\340A\003\022K\n\006labels\030\006" +
+      " \003(\01326.google.cloud.dataproc.v1.Workflow" +
+      "Template.LabelsEntryB\003\340A\001\022K\n\tplacement\030\007" +
+      " \001(\01323.google.cloud.dataproc.v1.Workflow" +
+      "TemplatePlacementB\003\340A\002\0227\n\004jobs\030\010 \003(\0132$.g" +
+      "oogle.cloud.dataproc.v1.OrderedJobB\003\340A\002\022" +
+      "D\n\nparameters\030\t \003(\0132+.google.cloud.datap" +
+      "roc.v1.TemplateParameterB\003\340A\001\0223\n\013dag_tim" +
+      "eout\030\n \001(\0132\031.google.protobuf.DurationB\003\340" +
+      "A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" +
+      "\002 \001(\t:\0028\001:\312\001\352A\306\001\n(dataproc.googleapis.co" +
+      "m/WorkflowTemplate\022Iprojects/{project}/r" +
+      "egions/{region}/workflowTemplates/{workf" +
+      "low_template}\022Mprojects/{project}/locati" +
+      "ons/{location}/workflowTemplates/{workfl" +
+      "ow_template} \001\"\264\001\n\031WorkflowTemplatePlace" +
+      "ment\022C\n\017managed_cluster\030\001 \001(\0132(.google.c" +
+      "loud.dataproc.v1.ManagedClusterH\000\022E\n\020clu" +
+      "ster_selector\030\002 \001(\0132).google.cloud.datap" +
+      "roc.v1.ClusterSelectorH\000B\013\n\tplacement\"\343\001" +
+      "\n\016ManagedCluster\022\031\n\014cluster_name\030\002 \001(\tB\003" +
+      "\340A\002\022<\n\006config\030\003 \001(\0132\'.google.cloud.datap" +
+      "roc.v1.ClusterConfigB\003\340A\002\022I\n\006labels\030\004 \003(" +
+      "\01324.google.cloud.dataproc.v1.ManagedClus" +
+      "ter.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003k" +
+      "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\265\001\n\017ClusterS" +
+      "elector\022\021\n\004zone\030\001 \001(\tB\003\340A\001\022Y\n\016cluster_la" +
+      "bels\030\002 \003(\0132<.google.cloud.dataproc.v1.Cl" +
+      "usterSelector.ClusterLabelsEntryB\003\340A\002\0324\n" +
+      "\022ClusterLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" +
+      "e\030\002 \001(\t:\0028\001\"\206\006\n\nOrderedJob\022\024\n\007step_id\030\001 " +
+      "\001(\tB\003\340A\002\022>\n\nhadoop_job\030\002 \001(\0132#.google.cl" +
+      "oud.dataproc.v1.HadoopJobB\003\340A\001H\000\022<\n\tspar" +
+      "k_job\030\003 \001(\0132\".google.cloud.dataproc.v1.S" +
+      "parkJobB\003\340A\001H\000\022@\n\013pyspark_job\030\004 \001(\0132$.go" +
+      "ogle.cloud.dataproc.v1.PySparkJobB\003\340A\001H\000" +
+      "\022:\n\010hive_job\030\005 \001(\0132!.google.cloud.datapr" +
+      "oc.v1.HiveJobB\003\340A\001H\000\0228\n\007pig_job\030\006 \001(\0132 ." +
+      "google.cloud.dataproc.v1.PigJobB\003\340A\001H\000\022?" +
+      "\n\013spark_r_job\030\013 \001(\0132#.google.cloud.datap" +
+      "roc.v1.SparkRJobB\003\340A\001H\000\022C\n\rspark_sql_job" +
+      "\030\007 \001(\0132%.google.cloud.dataproc.v1.SparkS" +
+      "qlJobB\003\340A\001H\000\022>\n\npresto_job\030\014 \001(\0132#.googl" +
+      "e.cloud.dataproc.v1.PrestoJobB\003\340A\001H\000\022E\n\006" +
+      "labels\030\010 \003(\01320.google.cloud.dataproc.v1." +
+      "OrderedJob.LabelsEntryB\003\340A\001\022@\n\nschedulin" +
+      "g\030\t \001(\0132\'.google.cloud.dataproc.v1.JobSc" +
+      "hedulingB\003\340A\001\022\"\n\025prerequisite_step_ids\030\n" +
+      " \003(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" +
+      "\005value\030\002 \001(\t:\0028\001B\n\n\010job_type\"\235\001\n\021Templat" +
+      "eParameter\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\006fields\030" +
+      "\002 \003(\tB\003\340A\002\022\030\n\013description\030\003 \001(\tB\003\340A\001\022F\n\n" +
+      "validation\030\004 \001(\0132-.google.cloud.dataproc" +
+      ".v1.ParameterValidationB\003\340A\001\"\241\001\n\023Paramet" +
+      "erValidation\022:\n\005regex\030\001 \001(\0132).google.clo" +
+      "ud.dataproc.v1.RegexValidationH\000\022;\n\006valu" +
+      "es\030\002 \001(\0132).google.cloud.dataproc.v1.Valu" +
+      "eValidationH\000B\021\n\017validation_type\"\'\n\017Rege" +
+      "xValidation\022\024\n\007regexes\030\001 \003(\tB\003\340A\002\"&\n\017Val" +
+      "ueValidation\022\023\n\006values\030\001 \003(\tB\003\340A\002\"\324\006\n\020Wo" +
+      "rkflowMetadata\022\025\n\010template\030\001 \001(\tB\003\340A\003\022\024\n" +
+      "\007version\030\002 \001(\005B\003\340A\003\022G\n\016create_cluster\030\003 " +
+      "\001(\0132*.google.cloud.dataproc.v1.ClusterOp" +
+      "erationB\003\340A\003\022;\n\005graph\030\004 \001(\0132\'.google.clo" +
+      "ud.dataproc.v1.WorkflowGraphB\003\340A\003\022G\n\016del" +
+      "ete_cluster\030\005 \001(\0132*.google.cloud.datapro" +
+      "c.v1.ClusterOperationB\003\340A\003\022D\n\005state\030\006 \001(" +
+      "\01620.google.cloud.dataproc.v1.WorkflowMet" +
+      "adata.StateB\003\340A\003\022\031\n\014cluster_name\030\007 \001(\tB\003" +
+      "\340A\003\022N\n\nparameters\030\010 \003(\0132:.google.cloud.d" +
+      "ataproc.v1.WorkflowMetadata.ParametersEn" +
+      "try\0223\n\nstart_time\030\t \001(\0132\032.google.protobu" +
+      "f.TimestampB\003\340A\003\0221\n\010end_time\030\n \001(\0132\032.goo" +
+      "gle.protobuf.TimestampB\003\340A\003\022\031\n\014cluster_u" +
+      "uid\030\013 \001(\tB\003\340A\003\0223\n\013dag_timeout\030\014 \001(\0132\031.go" +
+      "ogle.protobuf.DurationB\003\340A\003\0227\n\016dag_start" +
+      "_time\030\r \001(\0132\032.google.protobuf.TimestampB" +
+      "\003\340A\003\0225\n\014dag_end_time\030\016 \001(\0132\032.google.prot" +
+      "obuf.TimestampB\003\340A\003\0321\n\017ParametersEntry\022\013" +
+      "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\005State\022" +
+      "\013\n\007UNKNOWN\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010" +
+      "\n\004DONE\020\003\"T\n\020ClusterOperation\022\031\n\014operatio" +
+      "n_id\030\001 \001(\tB\003\340A\003\022\022\n\005error\030\002 \001(\tB\003\340A\003\022\021\n\004d" +
+      "one\030\003 \001(\010B\003\340A\003\"K\n\rWorkflowGraph\022:\n\005nodes" +
+      "\030\001 \003(\0132&.google.cloud.dataproc.v1.Workfl" +
+      "owNodeB\003\340A\003\"\243\002\n\014WorkflowNode\022\024\n\007step_id\030" +
+      "\001 \001(\tB\003\340A\003\022\"\n\025prerequisite_step_ids\030\002 \003(" +
+      "\tB\003\340A\003\022\023\n\006job_id\030\003 \001(\tB\003\340A\003\022D\n\005state\030\005 \001" +
+      "(\01620.google.cloud.dataproc.v1.WorkflowNo" +
+      "de.NodeStateB\003\340A\003\022\022\n\005error\030\006 \001(\tB\003\340A\003\"j\n" +
+      "\tNodeState\022\032\n\026NODE_STATE_UNSPECIFIED\020\000\022\013" +
+      "\n\007BLOCKED\020\001\022\014\n\010RUNNABLE\020\002\022\013\n\007RUNNING\020\003\022\r" +
+      "\n\tCOMPLETED\020\004\022\n\n\006FAILED\020\005\"\244\001\n\035CreateWork" +
+      "flowTemplateRequest\022@\n\006parent\030\001 \001(\tB0\340A\002" +
+      "\372A*\022(dataproc.googleapis.com/WorkflowTem" +
+      "plate\022A\n\010template\030\002 \001(\0132*.google.cloud.d" +
+      "ataproc.v1.WorkflowTemplateB\003\340A\002\"r\n\032GetW" +
+      "orkflowTemplateRequest\022>\n\004name\030\001 \001(\tB0\340A" +
+      "\002\372A*\n(dataproc.googleapis.com/WorkflowTe" +
+      "mplate\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\255\002\n\"Instant" +
+      "iateWorkflowTemplateRequest\022>\n\004name\030\001 \001(" +
+      "\tB0\340A\002\372A*\n(dataproc.googleapis.com/Workf" +
+      "lowTemplate\022\024\n\007version\030\002 \001(\005B\003\340A\001\022\027\n\nreq" +
+      "uest_id\030\005 \001(\tB\003\340A\001\022e\n\nparameters\030\006 \003(\0132L" +
+      ".google.cloud.dataproc.v1.InstantiateWor" +
+      "kflowTemplateRequest.ParametersEntryB\003\340A" +
+      "\001\0321\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" +
+      "ue\030\002 \001(\t:\0028\001\"\310\001\n(InstantiateInlineWorkfl" +
+      "owTemplateRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A" +
+      "*\022(dataproc.googleapis.com/WorkflowTempl" +
+      "ate\022A\n\010template\030\002 \001(\0132*.google.cloud.dat" +
+      "aproc.v1.WorkflowTemplateB\003\340A\002\022\027\n\nreques" +
+      "t_id\030\003 \001(\tB\003\340A\001\"b\n\035UpdateWorkflowTemplat" +
+      "eRequest\022A\n\010template\030\001 \001(\0132*.google.clou" +
+      "d.dataproc.v1.WorkflowTemplateB\003\340A\002\"\221\001\n\034" +
+      "ListWorkflowTemplatesRequest\022@\n\006parent\030\001" +
+      " \001(\tB0\340A\002\372A*\022(dataproc.googleapis.com/Wo" +
+      "rkflowTemplate\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" +
+      "\n\npage_token\030\003 \001(\tB\003\340A\001\"\201\001\n\035ListWorkflow" +
+      "TemplatesResponse\022B\n\ttemplates\030\001 \003(\0132*.g" +
+      "oogle.cloud.dataproc.v1.WorkflowTemplate" +
+      "B\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\"u\n\035D" +
+      "eleteWorkflowTemplateRequest\022>\n\004name\030\001 \001" +
+      "(\tB0\340A\002\372A*\n(dataproc.googleapis.com/Work" +
+      "flowTemplate\022\024\n\007version\030\002 \001(\005B\003\340A\0012\346\020\n\027W" +
+      "orkflowTemplateService\022\233\002\n\026CreateWorkflo" +
+      "wTemplate\0227.google.cloud.dataproc.v1.Cre" +
+      "ateWorkflowTemplateRequest\032*.google.clou" +
+      "d.dataproc.v1.WorkflowTemplate\"\233\001\202\323\344\223\002\202\001" +
+      "\"5/v1/{parent=projects/*/locations/*}/wo" +
+      "rkflowTemplates:\010templateZ?\"3/v1/{parent" +
+      "=projects/*/regions/*}/workflowTemplates" +
+      ":\010template\332A\017parent,template\022\364\001\n\023GetWork" +
+      "flowTemplate\0224.google.cloud.dataproc.v1." +
+      "GetWorkflowTemplateRequest\032*.google.clou" +
+      "d.dataproc.v1.WorkflowTemplate\"{\202\323\344\223\002n\0225" +
+      "/v1/{name=projects/*/locations/*/workflo" +
+      "wTemplates/*}Z5\0223/v1/{name=projects/*/re" +
+      "gions/*/workflowTemplates/*}\332A\004name\022\325\002\n\033" +
+      "InstantiateWorkflowTemplate\022<.google.clo" +
+      "ud.dataproc.v1.InstantiateWorkflowTempla" +
+      "teRequest\032\035.google.longrunning.Operation" +
+      "\"\330\001\202\323\344\223\002\214\001\"A/v1/{name=projects/*/locatio" +
+      "ns/*/workflowTemplates/*}:instantiate:\001*" +
+      "ZD\"?/v1/{name=projects/*/regions/*/workf" +
+      "lowTemplates/*}:instantiate:\001*\332A\004name\332A\017" +
+      "name,parameters\312A)\n\025google.protobuf.Empt" +
+      "y\022\020WorkflowMetadata\022\364\002\n!InstantiateInlin" +
+      "eWorkflowTemplate\022B.google.cloud.datapro" +
+      "c.v1.InstantiateInlineWorkflowTemplateRe" +
+      "quest\032\035.google.longrunning.Operation\"\353\001\202" +
+      "\323\344\223\002\246\001\"G/v1/{parent=projects/*/locations" +
+      "/*}/workflowTemplates:instantiateInline:" +
+      "\010templateZQ\"E/v1/{parent=projects/*/regi" +
+      "ons/*}/workflowTemplates:instantiateInli" +
+      "ne:\010template\332A\017parent,template\312A)\n\025googl" +
+      "e.protobuf.Empty\022\020WorkflowMetadata\022\246\002\n\026U" +
+      "pdateWorkflowTemplate\0227.google.cloud.dat" +
+      "aproc.v1.UpdateWorkflowTemplateRequest\032*" +
+      ".google.cloud.dataproc.v1.WorkflowTempla" +
+      "te\"\246\001\202\323\344\223\002\224\001\032>/v1/{template.name=project" +
+      "s/*/locations/*/workflowTemplates/*}:\010te" +
+      "mplateZH\032
  * A YARN application created by a job. Application information is a subset of
  * <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.YarnApplication}
  */
-public final class YarnApplication extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class YarnApplication extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.YarnApplication)
     YarnApplicationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use YarnApplication.newBuilder() to construct.
   private YarnApplication(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private YarnApplication() {
     name_ = "";
     state_ = 0;
@@ -48,33 +30,30 @@ private YarnApplication() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new YarnApplication();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dataproc.v1.JobsProto
-        .internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.JobsProto
-        .internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.YarnApplication.class,
-            com.google.cloud.dataproc.v1.YarnApplication.Builder.class);
+            com.google.cloud.dataproc.v1.YarnApplication.class, com.google.cloud.dataproc.v1.YarnApplication.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The application state, corresponding to
    * <code>YarnProtos.YarnApplicationStateProto</code>.
@@ -82,10 +61,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.dataproc.v1.YarnApplication.State}
    */
-  public enum State implements com.google.protobuf.ProtocolMessageEnum {
+  public enum State
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Status is unspecified.
      * 
@@ -94,8 +72,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Status is NEW.
      * 
@@ -104,8 +80,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ NEW(1), /** - * - * *
      * Status is NEW_SAVING.
      * 
@@ -114,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ NEW_SAVING(2), /** - * - * *
      * Status is SUBMITTED.
      * 
@@ -124,8 +96,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUBMITTED(3), /** - * - * *
      * Status is ACCEPTED.
      * 
@@ -134,8 +104,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACCEPTED(4), /** - * - * *
      * Status is RUNNING.
      * 
@@ -144,8 +112,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(5), /** - * - * *
      * Status is FINISHED.
      * 
@@ -154,8 +120,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FINISHED(6), /** - * - * *
      * Status is FAILED.
      * 
@@ -164,8 +128,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(7), /** - * - * *
      * Status is KILLED.
      * 
@@ -177,8 +139,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Status is unspecified.
      * 
@@ -187,8 +147,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Status is NEW.
      * 
@@ -197,8 +155,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NEW_VALUE = 1; /** - * - * *
      * Status is NEW_SAVING.
      * 
@@ -207,8 +163,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NEW_SAVING_VALUE = 2; /** - * - * *
      * Status is SUBMITTED.
      * 
@@ -217,8 +171,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUBMITTED_VALUE = 3; /** - * - * *
      * Status is ACCEPTED.
      * 
@@ -227,8 +179,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACCEPTED_VALUE = 4; /** - * - * *
      * Status is RUNNING.
      * 
@@ -237,8 +187,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 5; /** - * - * *
      * Status is FINISHED.
      * 
@@ -247,8 +195,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FINISHED_VALUE = 6; /** - * - * *
      * Status is FAILED.
      * 
@@ -257,8 +203,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 7; /** - * - * *
      * Status is KILLED.
      * 
@@ -267,6 +211,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int KILLED_VALUE = 8; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -291,61 +236,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return NEW; - case 2: - return NEW_SAVING; - case 3: - return SUBMITTED; - case 4: - return ACCEPTED; - case 5: - return RUNNING; - case 6: - return FINISHED; - case 7: - return FAILED; - case 8: - return KILLED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return NEW; + case 2: return NEW_SAVING; + case 3: return SUBMITTED; + case 4: return ACCEPTED; + case 5: return RUNNING; + case 6: return FINISHED; + case 7: return FAILED; + case 8: return KILLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { 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.dataproc.v1.YarnApplication.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; @@ -365,14 +304,11 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The application name.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -381,29 +317,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The application name.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -414,56 +350,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** - * - * *
    * Required. The application state.
    * 
* - * - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Required. The application state.
    * 
* - * - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The state. */ - @java.lang.Override - public com.google.cloud.dataproc.v1.YarnApplication.State getState() { + @java.lang.Override public com.google.cloud.dataproc.v1.YarnApplication.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.YarnApplication.State result = - com.google.cloud.dataproc.v1.YarnApplication.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1.YarnApplication.State.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.YarnApplication.State result = com.google.cloud.dataproc.v1.YarnApplication.State.valueOf(state_); + return result == null ? com.google.cloud.dataproc.v1.YarnApplication.State.UNRECOGNIZED : result; } public static final int PROGRESS_FIELD_NUMBER = 3; private float progress_; /** - * - * *
    * Required. The numerical progress of the application, from 1 to 100.
    * 
* * float progress = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The progress. */ @java.lang.Override @@ -474,8 +392,6 @@ public float getProgress() { public static final int TRACKING_URL_FIELD_NUMBER = 4; private volatile java.lang.Object trackingUrl_; /** - * - * *
    * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
    * TimelineServer that provides application-specific information. The URL uses
@@ -484,7 +400,6 @@ public float getProgress() {
    * 
* * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The trackingUrl. */ @java.lang.Override @@ -493,15 +408,14 @@ public java.lang.String getTrackingUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingUrl_ = s; return s; } } /** - * - * *
    * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
    * TimelineServer that provides application-specific information. The URL uses
@@ -510,15 +424,16 @@ public java.lang.String getTrackingUrl() {
    * 
* * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for trackingUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getTrackingUrlBytes() { + public com.google.protobuf.ByteString + getTrackingUrlBytes() { java.lang.Object ref = trackingUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trackingUrl_ = b; return b; } else { @@ -527,7 +442,6 @@ public com.google.protobuf.ByteString getTrackingUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -539,12 +453,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ - != com.google.cloud.dataproc.v1.YarnApplication.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.dataproc.v1.YarnApplication.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (java.lang.Float.floatToRawIntBits(progress_) != 0) { @@ -565,12 +479,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.cloud.dataproc.v1.YarnApplication.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.dataproc.v1.YarnApplication.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (java.lang.Float.floatToRawIntBits(progress_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, progress_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, progress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trackingUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, trackingUrl_); @@ -583,19 +498,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.dataproc.v1.YarnApplication)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.YarnApplication other = - (com.google.cloud.dataproc.v1.YarnApplication) obj; + com.google.cloud.dataproc.v1.YarnApplication other = (com.google.cloud.dataproc.v1.YarnApplication) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (java.lang.Float.floatToIntBits(getProgress()) - != java.lang.Float.floatToIntBits(other.getProgress())) return false; - if (!getTrackingUrl().equals(other.getTrackingUrl())) return false; + != java.lang.Float.floatToIntBits( + other.getProgress())) return false; + if (!getTrackingUrl() + .equals(other.getTrackingUrl())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -612,7 +529,8 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + PROGRESS_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getProgress()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getProgress()); hash = (37 * hash) + TRACKING_URL_FIELD_NUMBER; hash = (53 * hash) + getTrackingUrl().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -620,104 +538,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.YarnApplication parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.YarnApplication parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.YarnApplication parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dataproc.v1.YarnApplication parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dataproc.v1.YarnApplication parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.YarnApplication parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.YarnApplication prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 YARN application created by a job. Application information is a subset of
    * <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.
@@ -727,32 +638,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dataproc.v1.YarnApplication}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.YarnApplication)
       com.google.cloud.dataproc.v1.YarnApplicationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.YarnApplication.class,
-              com.google.cloud.dataproc.v1.YarnApplication.Builder.class);
+              com.google.cloud.dataproc.v1.YarnApplication.class, com.google.cloud.dataproc.v1.YarnApplication.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.YarnApplication.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -768,9 +680,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.JobsProto
-          .internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor;
     }
 
     @java.lang.Override
@@ -789,8 +701,7 @@ public com.google.cloud.dataproc.v1.YarnApplication build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.YarnApplication buildPartial() {
-      com.google.cloud.dataproc.v1.YarnApplication result =
-          new com.google.cloud.dataproc.v1.YarnApplication(this);
+      com.google.cloud.dataproc.v1.YarnApplication result = new com.google.cloud.dataproc.v1.YarnApplication(this);
       result.name_ = name_;
       result.state_ = state_;
       result.progress_ = progress_;
@@ -803,39 +714,38 @@ public com.google.cloud.dataproc.v1.YarnApplication buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.YarnApplication) {
-        return mergeFrom((com.google.cloud.dataproc.v1.YarnApplication) other);
+        return mergeFrom((com.google.cloud.dataproc.v1.YarnApplication)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -884,37 +794,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 16:
-              {
-                state_ = input.readEnum();
-
-                break;
-              } // case 16
-            case 29:
-              {
-                progress_ = input.readFloat();
-
-                break;
-              } // case 29
-            case 34:
-              {
-                trackingUrl_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 16: {
+              state_ = input.readEnum();
+
+              break;
+            } // case 16
+            case 29: {
+              progress_ = input.readFloat();
+
+              break;
+            } // case 29
+            case 34: {
+              trackingUrl_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -927,20 +832,18 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The application name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -949,21 +852,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The application name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -971,61 +873,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The application name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The application name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The application name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1033,75 +928,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Required. The application state.
      * 
* - * - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Required. The application state.
      * 
* - * - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @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; } /** - * - * *
      * Required. The application state.
      * 
* - * - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The state. */ @java.lang.Override public com.google.cloud.dataproc.v1.YarnApplication.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.YarnApplication.State result = - com.google.cloud.dataproc.v1.YarnApplication.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1.YarnApplication.State.UNRECOGNIZED - : result; + com.google.cloud.dataproc.v1.YarnApplication.State result = com.google.cloud.dataproc.v1.YarnApplication.State.valueOf(state_); + return result == null ? com.google.cloud.dataproc.v1.YarnApplication.State.UNRECOGNIZED : result; } /** - * - * *
      * Required. The application state.
      * 
* - * - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The state to set. * @return This builder for chaining. */ @@ -1109,41 +980,33 @@ public Builder setState(com.google.cloud.dataproc.v1.YarnApplication.State value if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The application state.
      * 
* - * - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private float progress_; + private float progress_ ; /** - * - * *
      * Required. The numerical progress of the application, from 1 to 100.
      * 
* * float progress = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The progress. */ @java.lang.Override @@ -1151,36 +1014,30 @@ public float getProgress() { return progress_; } /** - * - * *
      * Required. The numerical progress of the application, from 1 to 100.
      * 
* * float progress = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The progress to set. * @return This builder for chaining. */ public Builder setProgress(float value) { - + progress_ = value; onChanged(); return this; } /** - * - * *
      * Required. The numerical progress of the application, from 1 to 100.
      * 
* * float progress = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProgress() { - + progress_ = 0F; onChanged(); return this; @@ -1188,8 +1045,6 @@ public Builder clearProgress() { private java.lang.Object trackingUrl_ = ""; /** - * - * *
      * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
      * TimelineServer that provides application-specific information. The URL uses
@@ -1198,13 +1053,13 @@ public Builder clearProgress() {
      * 
* * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The trackingUrl. */ public java.lang.String getTrackingUrl() { java.lang.Object ref = trackingUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingUrl_ = s; return s; @@ -1213,8 +1068,6 @@ public java.lang.String getTrackingUrl() { } } /** - * - * *
      * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
      * TimelineServer that provides application-specific information. The URL uses
@@ -1223,14 +1076,15 @@ public java.lang.String getTrackingUrl() {
      * 
* * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for trackingUrl. */ - public com.google.protobuf.ByteString getTrackingUrlBytes() { + public com.google.protobuf.ByteString + getTrackingUrlBytes() { java.lang.Object ref = trackingUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trackingUrl_ = b; return b; } else { @@ -1238,8 +1092,6 @@ public com.google.protobuf.ByteString getTrackingUrlBytes() { } } /** - * - * *
      * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
      * TimelineServer that provides application-specific information. The URL uses
@@ -1248,22 +1100,20 @@ public com.google.protobuf.ByteString getTrackingUrlBytes() {
      * 
* * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The trackingUrl to set. * @return This builder for chaining. */ - public Builder setTrackingUrl(java.lang.String value) { + public Builder setTrackingUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + trackingUrl_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
      * TimelineServer that provides application-specific information. The URL uses
@@ -1272,18 +1122,15 @@ public Builder setTrackingUrl(java.lang.String value) {
      * 
* * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTrackingUrl() { - + trackingUrl_ = getDefaultInstance().getTrackingUrl(); onChanged(); return this; } /** - * - * *
      * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
      * TimelineServer that provides application-specific information. The URL uses
@@ -1292,23 +1139,23 @@ public Builder clearTrackingUrl() {
      * 
* * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for trackingUrl to set. * @return This builder for chaining. */ - public Builder setTrackingUrlBytes(com.google.protobuf.ByteString value) { + public Builder setTrackingUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trackingUrl_ = 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); } @@ -1318,12 +1165,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.YarnApplication) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.YarnApplication) private static final com.google.cloud.dataproc.v1.YarnApplication DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.YarnApplication(); } @@ -1332,27 +1179,27 @@ public static com.google.cloud.dataproc.v1.YarnApplication getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public YarnApplication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public YarnApplication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1367,4 +1214,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.YarnApplication getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java similarity index 65% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java index f748c330f016..337b0fc9799a 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java @@ -1,98 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface YarnApplicationOrBuilder - extends +public interface YarnApplicationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.YarnApplication) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The application name.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The application name.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The application state.
    * 
* - * - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Required. The application state.
    * 
* - * - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The state. */ com.google.cloud.dataproc.v1.YarnApplication.State getState(); /** - * - * *
    * Required. The numerical progress of the application, from 1 to 100.
    * 
* * float progress = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The progress. */ float getProgress(); /** - * - * *
    * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
    * TimelineServer that provides application-specific information. The URL uses
@@ -101,13 +65,10 @@ public interface YarnApplicationOrBuilder
    * 
* * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The trackingUrl. */ java.lang.String getTrackingUrl(); /** - * - * *
    * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
    * TimelineServer that provides application-specific information. The URL uses
@@ -116,8 +77,8 @@ public interface YarnApplicationOrBuilder
    * 
* * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for trackingUrl. */ - com.google.protobuf.ByteString getTrackingUrlBytes(); + com.google.protobuf.ByteString + getTrackingUrlBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto similarity index 100% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/batches.proto b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/batches.proto similarity index 100% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/batches.proto rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/batches.proto diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto similarity index 84% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto index 9550278b9996..11611fbf680f 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto @@ -43,12 +43,14 @@ option (google.api.resource_definition) = { // of Compute Engine instances. service ClusterController { option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Creates a cluster in a project. The returned // [Operation.metadata][google.longrunning.Operation.metadata] will be // [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - rpc CreateCluster(CreateClusterRequest) returns (google.longrunning.Operation) { + rpc CreateCluster(CreateClusterRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/projects/{project_id}/regions/{region}/clusters" body: "cluster" @@ -63,14 +65,17 @@ service ClusterController { // Updates a cluster in a project. The returned // [Operation.metadata][google.longrunning.Operation.metadata] will be // [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - // The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error + // The cluster must be in a + // [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error // is returned. - rpc UpdateCluster(UpdateClusterRequest) returns (google.longrunning.Operation) { + rpc UpdateCluster(UpdateClusterRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}" body: "cluster" }; - option (google.api.method_signature) = "project_id,region,cluster_name,cluster,update_mask"; + option (google.api.method_signature) = + "project_id,region,cluster_name,cluster,update_mask"; option (google.longrunning.operation_info) = { response_type: "Cluster" metadata_type: "google.cloud.dataproc.v1.ClusterOperationMetadata" @@ -104,7 +109,8 @@ service ClusterController { // Deletes a cluster in a project. The returned // [Operation.metadata][google.longrunning.Operation.metadata] will be // [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - rpc DeleteCluster(DeleteClusterRequest) returns (google.longrunning.Operation) { + rpc DeleteCluster(DeleteClusterRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}" }; @@ -139,7 +145,8 @@ service ClusterController { // [Operation.response][google.longrunning.Operation.response] // contains // [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults). - rpc DiagnoseCluster(DiagnoseClusterRequest) returns (google.longrunning.Operation) { + rpc DiagnoseCluster(DiagnoseClusterRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:diagnose" body: "*" @@ -158,8 +165,10 @@ message Cluster { // Required. The Google Cloud Platform project ID that the cluster belongs to. string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The cluster name. Cluster names within a project must be - // unique. Names of deleted clusters can be reused. + // Required. The cluster name, which must be unique within a project. + // The name must start with a lowercase letter, and can contain + // up to 51 lowercase letters, numbers, and hyphens. It cannot end + // with a hyphen. The name of a deleted cluster can be reused. string cluster_name = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. The cluster config for a cluster of Compute Engine Instances. @@ -167,14 +176,17 @@ message Cluster { // when clusters are updated. ClusterConfig config = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The virtual cluster config, used when creating a Dataproc cluster that - // does not directly control the underlying compute resources, for example, - // when creating a [Dataproc-on-GKE - // cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster). - // Note that Dataproc may set default values, and values may change when - // clusters are updated. Exactly one of config or virtualClusterConfig must be - // specified. - VirtualClusterConfig virtual_cluster_config = 10 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The virtual cluster config is used when creating a Dataproc + // cluster that does not directly control the underlying compute resources, + // for example, when creating a [Dataproc-on-GKE + // cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke). + // Dataproc may set default values, and values may change when + // clusters are updated. Exactly one of + // [config][google.cloud.dataproc.v1.Cluster.config] or + // [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config] + // must be specified. + VirtualClusterConfig virtual_cluster_config = 10 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The labels to associate with this cluster. // Label **keys** must contain 1 to 63 characters, and must conform to @@ -189,7 +201,8 @@ message Cluster { ClusterStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The previous cluster status. - repeated ClusterStatus status_history = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated ClusterStatus status_history = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. A cluster UUID (Unique Universal Identifier). Dataproc // generates this value when it creates the cluster. @@ -217,15 +230,13 @@ message ClusterConfig { // a Cloud Storage bucket.** string config_bucket = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, - // such as Spark and MapReduce history files. - // If you do not specify a temp bucket, - // Dataproc will determine a Cloud Storage location (US, - // ASIA, or EU) for your cluster's temp bucket according to the - // Compute Engine zone where your cluster is deployed, and then create - // and manage this project-level, per-location bucket. The default bucket has - // a TTL of 90 days, but you can use any TTL (or none) if you specify a - // bucket (see + // Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs + // data, such as Spark and MapReduce history files. If you do not specify a + // temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or + // EU) for your cluster's temp bucket according to the Compute Engine zone + // where your cluster is deployed, and then create and manage this + // project-level, per-location bucket. The default bucket has a TTL of 90 + // days, but you can use any TTL (or none) if you specify a bucket (see // [Dataproc staging and temp // buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). // **This field requires a Cloud Storage bucket name, not a `gs://...` URI to @@ -234,19 +245,23 @@ message ClusterConfig { // Optional. The shared Compute Engine config settings for // all instances in a cluster. - GceClusterConfig gce_cluster_config = 8 [(google.api.field_behavior) = OPTIONAL]; + GceClusterConfig gce_cluster_config = 8 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The Compute Engine config settings for // the cluster's master instance. - InstanceGroupConfig master_config = 9 [(google.api.field_behavior) = OPTIONAL]; + InstanceGroupConfig master_config = 9 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The Compute Engine config settings for // the cluster's worker instances. - InstanceGroupConfig worker_config = 10 [(google.api.field_behavior) = OPTIONAL]; + InstanceGroupConfig worker_config = 10 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The Compute Engine config settings for // a cluster's secondary worker instances - InstanceGroupConfig secondary_worker_config = 12 [(google.api.field_behavior) = OPTIONAL]; + InstanceGroupConfig secondary_worker_config = 12 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The config settings for cluster software. SoftwareConfig software_config = 13 [(google.api.field_behavior) = OPTIONAL]; @@ -264,36 +279,46 @@ message ClusterConfig { // else // ... worker specific actions ... // fi - repeated NodeInitializationAction initialization_actions = 11 [(google.api.field_behavior) = OPTIONAL]; + repeated NodeInitializationAction initialization_actions = 11 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Encryption settings for the cluster. - EncryptionConfig encryption_config = 15 [(google.api.field_behavior) = OPTIONAL]; + EncryptionConfig encryption_config = 15 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Autoscaling config for the policy associated with the cluster. // Cluster does not autoscale if this field is unset. - AutoscalingConfig autoscaling_config = 18 [(google.api.field_behavior) = OPTIONAL]; + AutoscalingConfig autoscaling_config = 18 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Security settings for the cluster. SecurityConfig security_config = 16 [(google.api.field_behavior) = OPTIONAL]; // Optional. Lifecycle setting for the cluster. - LifecycleConfig lifecycle_config = 17 [(google.api.field_behavior) = OPTIONAL]; + LifecycleConfig lifecycle_config = 17 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Port/endpoint configuration for this cluster EndpointConfig endpoint_config = 19 [(google.api.field_behavior) = OPTIONAL]; // Optional. Metastore configuration. - MetastoreConfig metastore_config = 20 [(google.api.field_behavior) = OPTIONAL]; + MetastoreConfig metastore_config = 20 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The config for Dataproc metrics. - DataprocMetricConfig dataproc_metric_config = 23 [(google.api.field_behavior) = OPTIONAL]; + DataprocMetricConfig dataproc_metric_config = 23 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The node group settings. + repeated AuxiliaryNodeGroup auxiliary_node_groups = 25 + [(google.api.field_behavior) = OPTIONAL]; } -// Dataproc cluster config for a cluster that does not directly control the +// The Dataproc cluster config for a cluster that does not directly control the // underlying compute resources, such as a [Dataproc-on-GKE -// cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster). +// cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke). message VirtualClusterConfig { - // Optional. A Storage bucket used to stage job + // Optional. A Cloud Storage bucket used to stage job // dependencies, config files, and job driver console output. // If you do not specify a staging bucket, Cloud // Dataproc will determine a Cloud Storage location (US, @@ -307,12 +332,15 @@ message VirtualClusterConfig { string staging_bucket = 1 [(google.api.field_behavior) = OPTIONAL]; oneof infrastructure_config { - // Required. The configuration for running the Dataproc cluster on Kubernetes. - KubernetesClusterConfig kubernetes_cluster_config = 6 [(google.api.field_behavior) = REQUIRED]; + // Required. The configuration for running the Dataproc cluster on + // Kubernetes. + KubernetesClusterConfig kubernetes_cluster_config = 6 + [(google.api.field_behavior) = REQUIRED]; } // Optional. Configuration of auxiliary services used by this cluster. - AuxiliaryServicesConfig auxiliary_services_config = 7 [(google.api.field_behavior) = OPTIONAL]; + AuxiliaryServicesConfig auxiliary_services_config = 7 + [(google.api.field_behavior) = OPTIONAL]; } // Auxiliary services configuration for a Cluster. @@ -321,14 +349,16 @@ message AuxiliaryServicesConfig { MetastoreConfig metastore_config = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. The Spark History Server configuration for the workload. - SparkHistoryServerConfig spark_history_server_config = 2 [(google.api.field_behavior) = OPTIONAL]; + SparkHistoryServerConfig spark_history_server_config = 2 + [(google.api.field_behavior) = OPTIONAL]; } // Endpoint config for this cluster message EndpointConfig { // Output only. The map of port descriptions to URLs. Will only be populated // if enable_http_port_access is true. - map http_ports = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + map http_ports = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. If true, enable http access to specific ports on the cluster // from external sources. Defaults to false. @@ -366,7 +396,8 @@ message GceClusterConfig { // fields](https://cloud.google.com/compute/docs/reference/rest/v1/instances). enum PrivateIpv6GoogleAccess { // If unspecified, Compute Engine default behavior will apply, which - // is the same as [INHERIT_FROM_SUBNETWORK][google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.INHERIT_FROM_SUBNETWORK]. + // is the same as + // [INHERIT_FROM_SUBNETWORK][google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.INHERIT_FROM_SUBNETWORK]. PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; // Private access to and from Google Services configuration @@ -429,7 +460,8 @@ message GceClusterConfig { bool internal_ip_only = 7 [(google.api.field_behavior) = OPTIONAL]; // Optional. The type of IPv6 access for a cluster. - PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(google.api.field_behavior) = OPTIONAL]; + PrivateIpv6GoogleAccess private_ipv6_google_access = 12 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The [Dataproc service // account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc) @@ -458,7 +490,8 @@ message GceClusterConfig { // * https://www.googleapis.com/auth/bigtable.admin.table // * https://www.googleapis.com/auth/bigtable.data // * https://www.googleapis.com/auth/devstorage.full_control - repeated string service_account_scopes = 3 [(google.api.field_behavior) = OPTIONAL]; + repeated string service_account_scopes = 3 + [(google.api.field_behavior) = OPTIONAL]; // The Compute Engine tags to add to all instances (see [Tagging // instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)). @@ -470,21 +503,28 @@ message GceClusterConfig { map metadata = 5; // Optional. Reservation Affinity for consuming Zonal reservation. - ReservationAffinity reservation_affinity = 11 [(google.api.field_behavior) = OPTIONAL]; + ReservationAffinity reservation_affinity = 11 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Node Group Affinity for sole-tenant clusters. - NodeGroupAffinity node_group_affinity = 13 [(google.api.field_behavior) = OPTIONAL]; + NodeGroupAffinity node_group_affinity = 13 + [(google.api.field_behavior) = OPTIONAL]; - // Optional. Shielded Instance Config for clusters using [Compute Engine Shielded + // Optional. Shielded Instance Config for clusters using [Compute Engine + // Shielded // VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm). - ShieldedInstanceConfig shielded_instance_config = 14 [(google.api.field_behavior) = OPTIONAL]; + ShieldedInstanceConfig shielded_instance_config = 14 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Confidential Instance Config for clusters using [Confidential // VMs](https://cloud.google.com/compute/confidential-vm/docs). - ConfidentialInstanceConfig confidential_instance_config = 15 [(google.api.field_behavior) = OPTIONAL]; + ConfidentialInstanceConfig confidential_instance_config = 15 + [(google.api.field_behavior) = OPTIONAL]; } // Node Group Affinity for clusters using sole-tenant node groups. +// **The Dataproc `NodeGroupAffinity` resource is not related to the +// Dataproc [NodeGroup][google.cloud.dataproc.v1.NodeGroup] resource.** message NodeGroupAffinity { // Required. The URI of a // sole-tenant [node group @@ -515,17 +555,15 @@ message ShieldedInstanceConfig { // Confidential Instance Config for clusters using [Confidential // VMs](https://cloud.google.com/compute/confidential-vm/docs) message ConfidentialInstanceConfig { - // Optional. Defines whether the instance should have confidential compute enabled. + // Optional. Defines whether the instance should have confidential compute + // enabled. bool enable_confidential_compute = 1 [(google.api.field_behavior) = OPTIONAL]; } // The config settings for Compute Engine resources in // an instance group, such as a master or worker group. message InstanceGroupConfig { - // Controls the use of - // [preemptible instances] - // (https://cloud.google.com/compute/docs/instances/preemptible) - // within the group. + // Controls the use of preemptible instances within the group. enum Preemptibility { // Preemptibility is unspecified, the system will choose the // appropriate setting for each instance group. @@ -537,9 +575,12 @@ message InstanceGroupConfig { // value for Master and Worker instance groups. NON_PREEMPTIBLE = 1; - // Instances are preemptible. + // Instances are [preemptible] + // (https://cloud.google.com/compute/docs/instances/preemptible). // - // This option is allowed only for secondary worker groups. + // This option is allowed only for [secondary worker] + // (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms) + // groups. PREEMPTIBLE = 2; } @@ -553,7 +594,8 @@ message InstanceGroupConfig { // Output only. The list of instance names. Dataproc derives the names // from `cluster_name`, `num_instances`, and the instance group. - repeated string instance_names = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated string instance_names = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The Compute Engine image resource used for cluster instances. // @@ -609,11 +651,13 @@ message InstanceGroupConfig { // Output only. The config for Compute Engine Instance Group // Manager that manages this group. // This is only used for preemptible instance groups. - ManagedGroupConfig managed_group_config = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + ManagedGroupConfig managed_group_config = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The Compute Engine accelerator configuration for these // instances. - repeated AcceleratorConfig accelerators = 8 [(google.api.field_behavior) = OPTIONAL]; + repeated AcceleratorConfig accelerators = 8 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Specifies the minimum cpu platform for the Instance Group. // See [Dataproc -> Minimum CPU @@ -628,7 +672,8 @@ message ManagedGroupConfig { string instance_template_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The name of the Instance Group Manager for this group. - string instance_group_manager_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + string instance_group_manager_name = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Specifies the type and number of accelerator cards attached to the instances @@ -669,7 +714,7 @@ message DiskConfig { // Optional. Size in GB of the boot disk (default is 500GB). int32 boot_disk_size_gb = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Number of attached SSDs, from 0 to 4 (default is 0). + // Optional. Number of attached SSDs, from 0 to 8 (default is 0). // If SSDs are not attached, the boot disk is used to store runtime logs and // [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. // If one or more SSDs are attached, this runtime bulk @@ -685,6 +730,59 @@ message DiskConfig { string local_ssd_interface = 4 [(google.api.field_behavior) = OPTIONAL]; } +// Node group identification and configuration information. +message AuxiliaryNodeGroup { + // Required. Node group configuration. + NodeGroup node_group = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A node group ID. Generated if not specified. + // + // The ID must contain only letters (a-z, A-Z), numbers (0-9), + // underscores (_), and hyphens (-). Cannot begin or end with underscore + // or hyphen. Must consist of from 3 to 33 characters. + string node_group_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Dataproc Node Group. +// **The Dataproc `NodeGroup` resource is not related to the +// Dataproc [NodeGroupAffinity][google.cloud.dataproc.v1.NodeGroupAffinity] +// resource.** +message NodeGroup { + option (google.api.resource) = { + type: "dataproc.googleapis.com/NodeGroup" + pattern: "projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}" + }; + + // Node group roles. + enum Role { + // Required unspecified role. + ROLE_UNSPECIFIED = 0; + + // Job drivers run on the node group. + DRIVER = 1; + } + + // The Node group [resource name](https://aip.dev/122). + string name = 1; + + // Required. Node group roles. + repeated Role roles = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The node group instance group configuration. + InstanceGroupConfig node_group_config = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Node group labels. + // + // * Label **keys** must consist of from 1 to 63 characters and conform to + // [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). + // * Label **values** can be empty. If specified, they must consist of from + // 1 to 63 characters and conform to [RFC 1035] + // (https://www.ietf.org/rfc/rfc1035.txt). + // * The node group must have no more than 32 labels. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; +} + // Specifies an executable to run on a fully configured node and a // timeout period for executable completion. message NodeInitializationAction { @@ -698,7 +796,8 @@ message NodeInitializationAction { // Cluster creation fails with an explanatory error message (the // name of the executable that caused the error and the exceeded timeout // period) if the executable is not completed at end of the timeout period. - google.protobuf.Duration execution_timeout = 2 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Duration execution_timeout = 2 + [(google.api.field_behavior) = OPTIONAL]; } // The status of a cluster and its instances. @@ -771,7 +870,8 @@ message ClusterStatus { // Output only. Time when this state was entered (see JSON representation of // [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Timestamp state_start_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp state_start_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Additional state information that includes // status reported by the agent. @@ -790,13 +890,14 @@ message SecurityConfig { // Specifies Kerberos related configuration. message KerberosConfig { - // Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set - // this field to true to enable Kerberos on a cluster. + // Optional. Flag to indicate whether to Kerberize the cluster (default: + // false). Set this field to true to enable Kerberos on a cluster. bool enable_kerberos = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. The Cloud Storage URI of a KMS encrypted file containing the root // principal password. - string root_principal_password_uri = 2 [(google.api.field_behavior) = OPTIONAL]; + string root_principal_password_uri = 2 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The uri of the KMS key used to encrypt various sensitive // files. @@ -837,12 +938,14 @@ message KerberosConfig { // Optional. The admin server (IP or hostname) for the remote trusted realm in // a cross realm trust relationship. - string cross_realm_trust_admin_server = 11 [(google.api.field_behavior) = OPTIONAL]; + string cross_realm_trust_admin_server = 11 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The Cloud Storage URI of a KMS encrypted file containing the // shared password between the on-cluster Kerberos realm and the remote // trusted realm, in a cross realm trust relationship. - string cross_realm_trust_shared_password_uri = 12 [(google.api.field_behavior) = OPTIONAL]; + string cross_realm_trust_shared_password_uri = 12 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The Cloud Storage URI of a KMS encrypted file containing the // master key of the KDC database. @@ -862,7 +965,8 @@ message KerberosConfig { // secure multi-tenancy user mappings. message IdentityConfig { // Required. Map of user to service account. - map user_service_account_mapping = 1 [(google.api.field_behavior) = REQUIRED]; + map user_service_account_mapping = 1 + [(google.api.field_behavior) = REQUIRED]; } // Specifies the selection and config of software inside the cluster. @@ -897,7 +1001,8 @@ message SoftwareConfig { map properties = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The set of components to activate on the cluster. - repeated Component optional_components = 3 [(google.api.field_behavior) = OPTIONAL]; + repeated Component optional_components = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Specifies the cluster auto-delete schedule configuration. @@ -907,27 +1012,32 @@ message LifecycleConfig { // deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON // representation of // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Duration idle_delete_ttl = 1 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Duration idle_delete_ttl = 1 + [(google.api.field_behavior) = OPTIONAL]; // Either the exact time the cluster should be deleted at or // the cluster maximum age. oneof ttl { - // Optional. The time when cluster will be auto-deleted (see JSON representation of + // Optional. The time when cluster will be auto-deleted (see JSON + // representation of // [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Timestamp auto_delete_time = 2 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Timestamp auto_delete_time = 2 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The lifetime duration of cluster. The cluster will be // auto-deleted at the end of this period. Minimum value is 10 minutes; // maximum value is 14 days (see JSON representation of // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Duration auto_delete_ttl = 3 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Duration auto_delete_ttl = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Output only. The time when cluster became idle (most recent job finished) // and became eligible for deletion due to idleness (see JSON representation // of // [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Timestamp idle_start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp idle_start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Specifies a Metastore configuration. @@ -945,7 +1055,6 @@ message MetastoreConfig { ]; } - // Dataproc metric config. message DataprocMetricConfig { // A source for the collection of Dataproc OSS metrics (see [available OSS @@ -1014,7 +1123,8 @@ message DataprocMetricConfig { // sources is unaffected. For example, if both `SPARK` andd `YARN` metric // sources are enabled, and overrides are provided for Spark metrics only, // all default YARN metrics will be collected. - repeated string metric_overrides = 2 [(google.api.field_behavior) = OPTIONAL]; + repeated string metric_overrides = 2 + [(google.api.field_behavior) = OPTIONAL]; } // Required. Metrics sources to enable. @@ -1045,11 +1155,12 @@ message CreateClusterRequest { // Required. The cluster to create. Cluster cluster = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. A unique ID used to identify the request. If the server receives two + // Optional. A unique ID used to identify the request. If the server receives + // two // [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s // with the same id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend - // is returned. + // first [google.longrunning.Operation][google.longrunning.Operation] created + // and stored in the backend is returned. // // It is recommended to always set this value to a // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). @@ -1059,7 +1170,8 @@ message CreateClusterRequest { string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Failure action when primary worker creation fails. - FailureAction action_on_failed_primary_workers = 5 [(google.api.field_behavior) = OPTIONAL]; + FailureAction action_on_failed_primary_workers = 5 + [(google.api.field_behavior) = OPTIONAL]; } // A request to update a cluster. @@ -1086,7 +1198,8 @@ message UpdateClusterRequest { // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). // // Only supported on Dataproc image versions 1.2 and higher. - google.protobuf.Duration graceful_decommission_timeout = 6 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Duration graceful_decommission_timeout = 6 + [(google.api.field_behavior) = OPTIONAL]; // Required. Specifies the path, relative to `Cluster`, of // the field to update. For example, to change the number of workers @@ -1139,14 +1252,15 @@ message UpdateClusterRequest { // // // - google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 4 + [(google.api.field_behavior) = REQUIRED]; // Optional. A unique ID used to identify the request. If the server // receives two // [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s // with the same id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the - // backend is returned. + // first [google.longrunning.Operation][google.longrunning.Operation] created + // and stored in the backend is returned. // // It is recommended to always set this value to a // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). @@ -1176,8 +1290,8 @@ message StopClusterRequest { // receives two // [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s // with the same id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the - // backend is returned. + // first [google.longrunning.Operation][google.longrunning.Operation] created + // and stored in the backend is returned. // // Recommendation: Set this value to a // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). @@ -1207,8 +1321,8 @@ message StartClusterRequest { // receives two // [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s // with the same id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the - // backend is returned. + // first [google.longrunning.Operation][google.longrunning.Operation] created + // and stored in the backend is returned. // // Recommendation: Set this value to a // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). @@ -1238,8 +1352,8 @@ message DeleteClusterRequest { // receives two // [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s // with the same id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the - // backend is returned. + // first [google.longrunning.Operation][google.longrunning.Operation] created + // and stored in the backend is returned. // // It is recommended to always set this value to a // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto similarity index 92% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto index 823a12cf8a82..e9dcf9cc6b80 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -32,7 +32,8 @@ option java_package = "com.google.cloud.dataproc.v1"; // The JobController provides methods to manage jobs. service JobController { option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Submits a job to a cluster. rpc SubmitJob(SubmitJobRequest) returns (Job) { @@ -44,7 +45,8 @@ service JobController { } // Submits job to a cluster. - rpc SubmitJobAsOperation(SubmitJobRequest) returns (google.longrunning.Operation) { + rpc SubmitJobAsOperation(SubmitJobRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/projects/{project_id}/regions/{region}/jobs:submitAsOperation" body: "*" @@ -198,7 +200,7 @@ message HadoopJob { LoggingConfig logging_config = 8 [(google.api.field_behavior) = OPTIONAL]; } -// A Dataproc job for running [Apache Spark](http://spark.apache.org/) +// A Dataproc job for running [Apache Spark](https://spark.apache.org/) // applications on YARN. message SparkJob { // Required. The specification of the main method to call to drive the job. @@ -323,7 +325,8 @@ message HiveJob { // Optional. Mapping of query variable names to values (equivalent to the // Hive command: `SET name="value";`). - map script_variables = 4 [(google.api.field_behavior) = OPTIONAL]; + map script_variables = 4 + [(google.api.field_behavior) = OPTIONAL]; // Optional. A mapping of property names and values, used to configure Hive. // Properties that conflict with values set by the Dataproc API may be @@ -338,7 +341,7 @@ message HiveJob { } // A Dataproc job for running [Apache Spark -// SQL](http://spark.apache.org/sql/) queries. +// SQL](https://spark.apache.org/sql/) queries. message SparkSqlJob { // Required. The sequence of Spark SQL queries to execute, specified as // either an HCFS file URI or as a list of queries. @@ -352,7 +355,8 @@ message SparkSqlJob { // Optional. Mapping of query variable names to values (equivalent to the // Spark SQL command: SET `name="value";`). - map script_variables = 3 [(google.api.field_behavior) = OPTIONAL]; + map script_variables = 3 + [(google.api.field_behavior) = OPTIONAL]; // Optional. A mapping of property names to values, used to configure // Spark SQL's SparkConf. Properties that conflict with values set by the @@ -386,7 +390,8 @@ message PigJob { // Optional. Mapping of query variable names to values (equivalent to the Pig // command: `name=[value]`). - map script_variables = 4 [(google.api.field_behavior) = OPTIONAL]; + map script_variables = 4 + [(google.api.field_behavior) = OPTIONAL]; // Optional. A mapping of property names to values, used to configure Pig. // Properties that conflict with values set by the Dataproc API may be @@ -480,8 +485,10 @@ message JobPlacement { // the job is submitted. string cluster_uuid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Cluster labels to identify a cluster where the job will be submitted. - map cluster_labels = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Cluster labels to identify a cluster where the job will be + // submitted. + map cluster_labels = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Dataproc job status. @@ -560,7 +567,8 @@ message JobStatus { ]; // Output only. The time when this state was entered. - google.protobuf.Timestamp state_start_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp state_start_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Additional state information, which includes // status reported by the agent. @@ -569,8 +577,8 @@ message JobStatus { // Encapsulates the full scoping used to reference a job. message JobReference { - // Optional. The ID of the Google Cloud Platform project that the job belongs to. If - // specified, must match the request project ID. + // Optional. The ID of the Google Cloud Platform project that the job belongs + // to. If specified, must match the request project ID. string project_id = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. The job ID, which must be unique within the project. @@ -680,22 +688,26 @@ message Job { JobStatus status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The previous job status. - repeated JobStatus status_history = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated JobStatus status_history = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The collection of YARN applications spun up by this job. // // **Beta** Feature: This report is available for testing purposes only. It // may be changed before final release. - repeated YarnApplication yarn_applications = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated YarnApplication yarn_applications = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. A URI pointing to the location of the stdout of the job's // driver program. - string driver_output_resource_uri = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + string driver_output_resource_uri = 17 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. If present, the location of miscellaneous control files // which may be used as part of job setup and handling. If not present, // control files may be placed in the same location as `driver_output_uri`. - string driver_control_files_uri = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + string driver_control_files_uri = 15 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The labels to associate with this job. // Label **keys** must contain 1 to 63 characters, and must conform to @@ -714,11 +726,24 @@ message Job { // may be reused over time. string job_uuid = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Indicates whether the job is completed. If the value is `false`, - // the job is still in progress. If `true`, the job is completed, and + // Output only. Indicates whether the job is completed. If the value is + // `false`, the job is still in progress. If `true`, the job is completed, and // `status.state` field will indicate if it was successful, failed, // or cancelled. bool done = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Driver scheduling configuration. + DriverSchedulingConfig driver_scheduling_config = 27 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Driver scheduling configuration. +message DriverSchedulingConfig { + // Required. The amount of memory in MB the driver is requesting. + int32 memory_mb = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The number of vCPUs the driver is requesting. + int32 vcores = 2 [(google.api.field_behavior) = REQUIRED]; } // Job scheduling options. @@ -727,27 +752,26 @@ message JobScheduling { // a result of driver exiting with non-zero code before job is // reported failed. // - // A job may be reported as thrashing if driver exits with non-zero code - // 4 times within 10 minute window. + // A job may be reported as thrashing if the driver exits with a non-zero code + // four times within a 10-minute window. // // Maximum value is 10. // - // **Note:** Currently, this restartable job option is - // not supported in Dataproc - // [workflow - // template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) - // jobs. + // **Note:** This restartable job option is not supported in Dataproc + // [workflow templates] + // (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template). int32 max_failures_per_hour = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Maximum number of times in total a driver may be restarted as a result of - // driver exiting with non-zero code before job is reported failed. + // Optional. Maximum total number of times a driver may be restarted as a + // result of the driver exiting with a non-zero code. After the maximum number + // is reached, the job will be reported as failed. + // // Maximum value is 240. // // **Note:** Currently, this restartable job option is // not supported in Dataproc // [workflow - // template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) - // jobs. + // templates](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template). int32 max_failures_total = 2 [(google.api.field_behavior) = OPTIONAL]; } @@ -790,7 +814,8 @@ message JobMetadata { string operation_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Job submission time. - google.protobuf.Timestamp start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A request to get the resource representation for a job in a project. @@ -843,7 +868,8 @@ message ListJobsRequest { // (default = match ALL jobs). // // If `filter` is provided, `jobStateMatcher` will be ignored. - JobStateMatcher job_state_matcher = 5 [(google.api.field_behavior) = OPTIONAL]; + JobStateMatcher job_state_matcher = 5 + [(google.api.field_behavior) = OPTIONAL]; // Optional. A filter constraining the jobs to list. Filters are // case-sensitive and have the following syntax: @@ -883,7 +909,8 @@ message UpdateJobRequest { // labels, and the `PATCH` request body would specify the new // value. Note: Currently, labels is the only // field that can be updated. - google.protobuf.FieldMask update_mask = 5 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 5 + [(google.api.field_behavior) = REQUIRED]; } // A list of jobs in a project. diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/node_groups.proto b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/node_groups.proto new file mode 100644 index 000000000000..0abc223820c3 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/node_groups.proto @@ -0,0 +1,174 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dataproc.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dataproc/v1/clusters.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; +option java_multiple_files = true; +option java_outer_classname = "NodeGroupsProto"; +option java_package = "com.google.cloud.dataproc.v1"; +option (google.api.resource_definition) = { + type: "dataproc.googleapis.com/ClusterRegion" + pattern: "projects/{project}/regions/{region}/clusters/{cluster}" +}; + +// The `NodeGroupControllerService` provides methods to manage node groups +// of Compute Engine managed instances. +service NodeGroupController { + option (google.api.default_host) = "dataproc.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a node group in a cluster. The returned + // [Operation.metadata][google.longrunning.Operation.metadata] is + // [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata). + rpc CreateNodeGroup(CreateNodeGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/regions/*/clusters/*}/nodeGroups" + body: "node_group" + }; + option (google.api.method_signature) = "parent,node_group,node_group_id"; + option (google.longrunning.operation_info) = { + response_type: "NodeGroup" + metadata_type: "google.cloud.dataproc.v1.NodeGroupOperationMetadata" + }; + } + + // Resizes a node group in a cluster. The returned + // [Operation.metadata][google.longrunning.Operation.metadata] is + // [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata). + rpc ResizeNodeGroup(ResizeNodeGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/regions/*/clusters/*/nodeGroups/*}:resize" + body: "*" + }; + option (google.api.method_signature) = "name,size"; + option (google.longrunning.operation_info) = { + response_type: "NodeGroup" + metadata_type: "google.cloud.dataproc.v1.NodeGroupOperationMetadata" + }; + } + + // Gets the resource representation for a node group in a + // cluster. + rpc GetNodeGroup(GetNodeGroupRequest) returns (NodeGroup) { + option (google.api.http) = { + get: "/v1/{name=projects/*/regions/*/clusters/*/nodeGroups/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// A request to create a node group. +message CreateNodeGroupRequest { + // Required. The parent resource where this node group will be created. + // Format: `projects/{project}/regions/{region}/clusters/{cluster}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dataproc.googleapis.com/NodeGroup" + } + ]; + + // Required. The node group to create. + NodeGroup node_group = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional node group ID. Generated if not specified. + // + // The ID must contain only letters (a-z, A-Z), numbers (0-9), + // underscores (_), and hyphens (-). Cannot begin or end with underscore + // or hyphen. Must consist of from 3 to 33 characters. + string node_group_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A unique ID used to identify the request. If the server receives + // two + // [CreateNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests) + // with the same ID, the second request is ignored and the + // first [google.longrunning.Operation][google.longrunning.Operation] created + // and stored in the backend is returned. + // + // Recommendation: Set this value to a + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). + // + // The ID must contain only letters (a-z, A-Z), numbers (0-9), + // underscores (_), and hyphens (-). The maximum length is 40 characters. + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// A request to resize a node group. +message ResizeNodeGroupRequest { + // Required. The name of the node group to resize. + // Format: + // `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}` + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The number of running instances for the node group to maintain. + // The group adds or removes instances to maintain the number of instances + // specified by this parameter. + int32 size = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique ID used to identify the request. If the server receives + // two + // [ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests) + // with the same ID, the second request is ignored and the + // first [google.longrunning.Operation][google.longrunning.Operation] created + // and stored in the backend is returned. + // + // Recommendation: Set this value to a + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). + // + // The ID must contain only letters (a-z, A-Z), numbers (0-9), + // underscores (_), and hyphens (-). The maximum length is 40 characters. + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Timeout for graceful YARN decommissioning. [Graceful + // decommissioning] + // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning) + // allows the removal of nodes from the Compute Engine node group + // without interrupting jobs in progress. This timeout specifies how long to + // wait for jobs in progress to finish before forcefully removing nodes (and + // potentially interrupting jobs). Default timeout is 0 (for forceful + // decommission), and the maximum allowed timeout is 1 day. (see JSON + // representation of + // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). + // + // Only supported on Dataproc image versions 1.2 and higher. + google.protobuf.Duration graceful_decommission_timeout = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// A request to get a node group . +message GetNodeGroupRequest { + // Required. The name of the node group to retrieve. + // Format: + // `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataproc.googleapis.com/NodeGroup" + } + ]; +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto similarity index 67% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto index e12bd299a88c..854d9eda6ab6 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto +++ b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -87,7 +87,8 @@ message ClusterOperationStatus { string details = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time this state was entered. - google.protobuf.Timestamp state_start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp state_start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Metadata describing the operation. @@ -102,7 +103,8 @@ message ClusterOperationMetadata { ClusterOperationStatus status = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The previous operation status. - repeated ClusterOperationStatus status_history = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated ClusterOperationStatus status_history = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The operation type. string operation_type = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -116,3 +118,49 @@ message ClusterOperationMetadata { // Output only. Errors encountered during operation execution. repeated string warnings = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Metadata describing the node group operation. +message NodeGroupOperationMetadata { + // Operation type for node group resources. + enum NodeGroupOperationType { + // Node group operation type is unknown. + NODE_GROUP_OPERATION_TYPE_UNSPECIFIED = 0; + + // Create node group operation type. + CREATE = 1; + + // Update node group operation type. + UPDATE = 2; + + // Delete node group operation type. + DELETE = 3; + + // Resize node group operation type. + RESIZE = 4; + } + + // Output only. Node group ID for the operation. + string node_group_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Cluster UUID associated with the node group operation. + string cluster_uuid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Current operation status. + ClusterOperationStatus status = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The previous operation status. + repeated ClusterOperationStatus status_history = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The operation type. + NodeGroupOperationType operation_type = 5; + + // Output only. Short description of operation. + string description = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Labels associated with the operation. + map labels = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Errors encountered during operation execution. + repeated string warnings = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto similarity index 100% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto similarity index 100% rename from java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto rename to owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetEndpoint.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicy.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicy.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicy.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicy.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPolicies.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPolicies.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPolicies.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPolicies.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPolicies.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPolicies.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPolicies.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPolicies.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetEndpoint.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatch.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatch.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatch.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatch.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatchLRO.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatchLRO.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatchLRO.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatchLRO.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatch.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatch.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatch.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatch.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchLocationnameBatchString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchLocationnameBatchString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchLocationnameBatchString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchLocationnameBatchString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchStringBatchString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchStringBatchString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchStringBatchString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchStringBatchString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/AsyncDeleteBatch.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/AsyncDeleteBatch.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/AsyncDeleteBatch.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/AsyncDeleteBatch.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatch.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatch.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatch.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatch.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchBatchname.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchBatchname.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchBatchname.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchBatchname.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/AsyncGetBatch.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/AsyncGetBatch.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/AsyncGetBatch.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/AsyncGetBatch.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatch.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatch.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatch.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatch.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchBatchname.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchBatchname.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchBatchname.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchBatchname.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatches.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatches.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatches.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatches.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatchesPaged.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatchesPaged.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatchesPaged.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatchesPaged.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatches.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatches.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatches.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatches.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesLocationname.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesLocationname.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesLocationname.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesLocationname.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetEndpoint.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateCluster.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateCluster.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateCluster.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateCluster.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateClusterLRO.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateClusterLRO.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateClusterLRO.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateClusterLRO.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateCluster.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateCluster.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateCluster.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateCluster.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateClusterStringStringCluster.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateClusterStringStringCluster.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateClusterStringStringCluster.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateClusterStringStringCluster.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteCluster.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteCluster.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteCluster.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteCluster.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteClusterLRO.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteClusterLRO.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteClusterLRO.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteClusterLRO.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteCluster.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteCluster.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteCluster.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteCluster.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteClusterStringStringString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteClusterStringStringString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteClusterStringStringString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteClusterStringStringString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseCluster.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseCluster.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseCluster.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseCluster.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseClusterLRO.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseClusterLRO.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseClusterLRO.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseClusterLRO.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseCluster.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseCluster.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseCluster.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseCluster.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseClusterStringStringString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseClusterStringStringString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseClusterStringStringString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseClusterStringStringString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/AsyncGetCluster.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/AsyncGetCluster.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/AsyncGetCluster.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/AsyncGetCluster.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetCluster.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetCluster.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetCluster.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetCluster.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetClusterStringStringString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetClusterStringStringString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetClusterStringStringString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetClusterStringStringString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClusters.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClusters.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClusters.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClusters.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClustersPaged.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClustersPaged.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClustersPaged.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClustersPaged.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClusters.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClusters.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClusters.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClusters.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringStringString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringStringString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringStringString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringStringString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartCluster.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartCluster.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartCluster.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartCluster.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartClusterLRO.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartClusterLRO.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartClusterLRO.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartClusterLRO.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/SyncStartCluster.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/SyncStartCluster.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/SyncStartCluster.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/SyncStartCluster.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopCluster.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopCluster.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopCluster.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopCluster.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopClusterLRO.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopClusterLRO.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopClusterLRO.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopClusterLRO.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/SyncStopCluster.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/SyncStopCluster.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/SyncStopCluster.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/SyncStopCluster.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateCluster.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateCluster.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateCluster.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateCluster.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateClusterLRO.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateClusterLRO.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateClusterLRO.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateClusterLRO.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateCluster.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateCluster.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateCluster.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateCluster.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/AsyncCancelJob.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/AsyncCancelJob.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/AsyncCancelJob.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/AsyncCancelJob.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJob.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJob.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJob.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJob.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJobStringStringString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJobStringStringString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJobStringStringString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJobStringStringString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetEndpoint.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/AsyncDeleteJob.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/AsyncDeleteJob.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/AsyncDeleteJob.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/AsyncDeleteJob.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJob.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJob.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJob.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJob.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJobStringStringString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJobStringStringString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJobStringStringString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJobStringStringString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/AsyncGetJob.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/AsyncGetJob.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/AsyncGetJob.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/AsyncGetJob.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJob.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJob.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJob.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJob.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJobStringStringString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJobStringStringString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJobStringStringString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJobStringStringString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobs.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobs.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobs.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobs.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobsPaged.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobsPaged.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobsPaged.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobsPaged.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobs.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobs.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobs.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobs.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringStringString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringStringString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringStringString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringStringString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/AsyncSubmitJob.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/AsyncSubmitJob.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/AsyncSubmitJob.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/AsyncSubmitJob.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJob.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJob.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJob.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJob.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJobStringStringJob.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJobStringStringJob.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJobStringStringJob.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJobStringStringJob.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperation.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperation.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperation.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperation.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperation.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperation.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperation.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperation.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/AsyncUpdateJob.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/AsyncUpdateJob.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/AsyncUpdateJob.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/AsyncUpdateJob.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/SyncUpdateJob.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/SyncUpdateJob.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/SyncUpdateJob.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/SyncUpdateJob.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..371ec78f340c --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_NodeGroupController_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.dataproc.v1.NodeGroupControllerClient; +import com.google.cloud.dataproc.v1.NodeGroupControllerSettings; +import com.google.cloud.dataproc.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + NodeGroupControllerSettings nodeGroupControllerSettings = + NodeGroupControllerSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + NodeGroupControllerClient nodeGroupControllerClient = + NodeGroupControllerClient.create(nodeGroupControllerSettings); + } +} +// [END dataproc_v1_generated_NodeGroupController_Create_SetCredentialsProvider_sync] diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..692371b797f6 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_NodeGroupController_Create_SetCredentialsProvider1_sync] +import com.google.cloud.dataproc.v1.NodeGroupControllerClient; +import com.google.cloud.dataproc.v1.NodeGroupControllerSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + NodeGroupControllerSettings nodeGroupControllerSettings = + NodeGroupControllerSettings.newHttpJsonBuilder().build(); + NodeGroupControllerClient nodeGroupControllerClient = + NodeGroupControllerClient.create(nodeGroupControllerSettings); + } +} +// [END dataproc_v1_generated_NodeGroupController_Create_SetCredentialsProvider1_sync] diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..deecc18fd9a4 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_NodeGroupController_Create_SetEndpoint_sync] +import com.google.cloud.dataproc.v1.NodeGroupControllerClient; +import com.google.cloud.dataproc.v1.NodeGroupControllerSettings; +import com.google.cloud.dataproc.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + NodeGroupControllerSettings nodeGroupControllerSettings = + NodeGroupControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); + NodeGroupControllerClient nodeGroupControllerClient = + NodeGroupControllerClient.create(nodeGroupControllerSettings); + } +} +// [END dataproc_v1_generated_NodeGroupController_Create_SetEndpoint_sync] diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/AsyncCreateNodeGroup.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/AsyncCreateNodeGroup.java new file mode 100644 index 000000000000..4aeb7b68c931 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/AsyncCreateNodeGroup.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_NodeGroupController_CreateNodeGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.ClusterRegionName; +import com.google.cloud.dataproc.v1.CreateNodeGroupRequest; +import com.google.cloud.dataproc.v1.NodeGroup; +import com.google.cloud.dataproc.v1.NodeGroupControllerClient; +import com.google.longrunning.Operation; + +public class AsyncCreateNodeGroup { + + public static void main(String[] args) throws Exception { + asyncCreateNodeGroup(); + } + + public static void asyncCreateNodeGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) { + CreateNodeGroupRequest request = + CreateNodeGroupRequest.newBuilder() + .setParent(ClusterRegionName.of("[PROJECT]", "[REGION]", "[CLUSTER]").toString()) + .setNodeGroup(NodeGroup.newBuilder().build()) + .setNodeGroupId("nodeGroupId1097129880") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + nodeGroupControllerClient.createNodeGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END dataproc_v1_generated_NodeGroupController_CreateNodeGroup_async] diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/AsyncCreateNodeGroupLRO.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/AsyncCreateNodeGroupLRO.java new file mode 100644 index 000000000000..235a862c8753 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/AsyncCreateNodeGroupLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_NodeGroupController_CreateNodeGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataproc.v1.ClusterRegionName; +import com.google.cloud.dataproc.v1.CreateNodeGroupRequest; +import com.google.cloud.dataproc.v1.NodeGroup; +import com.google.cloud.dataproc.v1.NodeGroupControllerClient; +import com.google.cloud.dataproc.v1.NodeGroupOperationMetadata; + +public class AsyncCreateNodeGroupLRO { + + public static void main(String[] args) throws Exception { + asyncCreateNodeGroupLRO(); + } + + public static void asyncCreateNodeGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) { + CreateNodeGroupRequest request = + CreateNodeGroupRequest.newBuilder() + .setParent(ClusterRegionName.of("[PROJECT]", "[REGION]", "[CLUSTER]").toString()) + .setNodeGroup(NodeGroup.newBuilder().build()) + .setNodeGroupId("nodeGroupId1097129880") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + nodeGroupControllerClient.createNodeGroupOperationCallable().futureCall(request); + // Do something. + NodeGroup response = future.get(); + } + } +} +// [END dataproc_v1_generated_NodeGroupController_CreateNodeGroup_LRO_async] diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroup.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroup.java new file mode 100644 index 000000000000..d7ad02ad0884 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroup.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_NodeGroupController_CreateNodeGroup_sync] +import com.google.cloud.dataproc.v1.ClusterRegionName; +import com.google.cloud.dataproc.v1.CreateNodeGroupRequest; +import com.google.cloud.dataproc.v1.NodeGroup; +import com.google.cloud.dataproc.v1.NodeGroupControllerClient; + +public class SyncCreateNodeGroup { + + public static void main(String[] args) throws Exception { + syncCreateNodeGroup(); + } + + public static void syncCreateNodeGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) { + CreateNodeGroupRequest request = + CreateNodeGroupRequest.newBuilder() + .setParent(ClusterRegionName.of("[PROJECT]", "[REGION]", "[CLUSTER]").toString()) + .setNodeGroup(NodeGroup.newBuilder().build()) + .setNodeGroupId("nodeGroupId1097129880") + .setRequestId("requestId693933066") + .build(); + NodeGroup response = nodeGroupControllerClient.createNodeGroupAsync(request).get(); + } + } +} +// [END dataproc_v1_generated_NodeGroupController_CreateNodeGroup_sync] diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroupClusterregionnameNodegroupString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroupClusterregionnameNodegroupString.java new file mode 100644 index 000000000000..9b2a196a2061 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroupClusterregionnameNodegroupString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_NodeGroupController_CreateNodeGroup_ClusterregionnameNodegroupString_sync] +import com.google.cloud.dataproc.v1.ClusterRegionName; +import com.google.cloud.dataproc.v1.NodeGroup; +import com.google.cloud.dataproc.v1.NodeGroupControllerClient; + +public class SyncCreateNodeGroupClusterregionnameNodegroupString { + + public static void main(String[] args) throws Exception { + syncCreateNodeGroupClusterregionnameNodegroupString(); + } + + public static void syncCreateNodeGroupClusterregionnameNodegroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) { + ClusterRegionName parent = ClusterRegionName.of("[PROJECT]", "[REGION]", "[CLUSTER]"); + NodeGroup nodeGroup = NodeGroup.newBuilder().build(); + String nodeGroupId = "nodeGroupId1097129880"; + NodeGroup response = + nodeGroupControllerClient.createNodeGroupAsync(parent, nodeGroup, nodeGroupId).get(); + } + } +} +// [END dataproc_v1_generated_NodeGroupController_CreateNodeGroup_ClusterregionnameNodegroupString_sync] diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroupStringNodegroupString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroupStringNodegroupString.java new file mode 100644 index 000000000000..891b26190557 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroupStringNodegroupString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_NodeGroupController_CreateNodeGroup_StringNodegroupString_sync] +import com.google.cloud.dataproc.v1.ClusterRegionName; +import com.google.cloud.dataproc.v1.NodeGroup; +import com.google.cloud.dataproc.v1.NodeGroupControllerClient; + +public class SyncCreateNodeGroupStringNodegroupString { + + public static void main(String[] args) throws Exception { + syncCreateNodeGroupStringNodegroupString(); + } + + public static void syncCreateNodeGroupStringNodegroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) { + String parent = ClusterRegionName.of("[PROJECT]", "[REGION]", "[CLUSTER]").toString(); + NodeGroup nodeGroup = NodeGroup.newBuilder().build(); + String nodeGroupId = "nodeGroupId1097129880"; + NodeGroup response = + nodeGroupControllerClient.createNodeGroupAsync(parent, nodeGroup, nodeGroupId).get(); + } + } +} +// [END dataproc_v1_generated_NodeGroupController_CreateNodeGroup_StringNodegroupString_sync] diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/AsyncGetNodeGroup.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/AsyncGetNodeGroup.java new file mode 100644 index 000000000000..658551c7da9a --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/AsyncGetNodeGroup.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_NodeGroupController_GetNodeGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.GetNodeGroupRequest; +import com.google.cloud.dataproc.v1.NodeGroup; +import com.google.cloud.dataproc.v1.NodeGroupControllerClient; +import com.google.cloud.dataproc.v1.NodeGroupName; + +public class AsyncGetNodeGroup { + + public static void main(String[] args) throws Exception { + asyncGetNodeGroup(); + } + + public static void asyncGetNodeGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) { + GetNodeGroupRequest request = + GetNodeGroupRequest.newBuilder() + .setName( + NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]").toString()) + .build(); + ApiFuture future = + nodeGroupControllerClient.getNodeGroupCallable().futureCall(request); + // Do something. + NodeGroup response = future.get(); + } + } +} +// [END dataproc_v1_generated_NodeGroupController_GetNodeGroup_async] diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroup.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroup.java new file mode 100644 index 000000000000..755c62e10175 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroup.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_NodeGroupController_GetNodeGroup_sync] +import com.google.cloud.dataproc.v1.GetNodeGroupRequest; +import com.google.cloud.dataproc.v1.NodeGroup; +import com.google.cloud.dataproc.v1.NodeGroupControllerClient; +import com.google.cloud.dataproc.v1.NodeGroupName; + +public class SyncGetNodeGroup { + + public static void main(String[] args) throws Exception { + syncGetNodeGroup(); + } + + public static void syncGetNodeGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) { + GetNodeGroupRequest request = + GetNodeGroupRequest.newBuilder() + .setName( + NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]").toString()) + .build(); + NodeGroup response = nodeGroupControllerClient.getNodeGroup(request); + } + } +} +// [END dataproc_v1_generated_NodeGroupController_GetNodeGroup_sync] diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroupNodegroupname.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroupNodegroupname.java new file mode 100644 index 000000000000..c601f1bb84a9 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroupNodegroupname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_NodeGroupController_GetNodeGroup_Nodegroupname_sync] +import com.google.cloud.dataproc.v1.NodeGroup; +import com.google.cloud.dataproc.v1.NodeGroupControllerClient; +import com.google.cloud.dataproc.v1.NodeGroupName; + +public class SyncGetNodeGroupNodegroupname { + + public static void main(String[] args) throws Exception { + syncGetNodeGroupNodegroupname(); + } + + public static void syncGetNodeGroupNodegroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) { + NodeGroupName name = NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]"); + NodeGroup response = nodeGroupControllerClient.getNodeGroup(name); + } + } +} +// [END dataproc_v1_generated_NodeGroupController_GetNodeGroup_Nodegroupname_sync] diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroupString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroupString.java new file mode 100644 index 000000000000..d5c522133f9b --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroupString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_NodeGroupController_GetNodeGroup_String_sync] +import com.google.cloud.dataproc.v1.NodeGroup; +import com.google.cloud.dataproc.v1.NodeGroupControllerClient; +import com.google.cloud.dataproc.v1.NodeGroupName; + +public class SyncGetNodeGroupString { + + public static void main(String[] args) throws Exception { + syncGetNodeGroupString(); + } + + public static void syncGetNodeGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) { + String name = + NodeGroupName.of("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]").toString(); + NodeGroup response = nodeGroupControllerClient.getNodeGroup(name); + } + } +} +// [END dataproc_v1_generated_NodeGroupController_GetNodeGroup_String_sync] diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/AsyncResizeNodeGroup.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/AsyncResizeNodeGroup.java new file mode 100644 index 000000000000..207f095d08d6 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/AsyncResizeNodeGroup.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_NodeGroupController_ResizeNodeGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.NodeGroupControllerClient; +import com.google.cloud.dataproc.v1.ResizeNodeGroupRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Duration; + +public class AsyncResizeNodeGroup { + + public static void main(String[] args) throws Exception { + asyncResizeNodeGroup(); + } + + public static void asyncResizeNodeGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) { + ResizeNodeGroupRequest request = + ResizeNodeGroupRequest.newBuilder() + .setName("name3373707") + .setSize(3530753) + .setRequestId("requestId693933066") + .setGracefulDecommissionTimeout(Duration.newBuilder().build()) + .build(); + ApiFuture future = + nodeGroupControllerClient.resizeNodeGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END dataproc_v1_generated_NodeGroupController_ResizeNodeGroup_async] diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/AsyncResizeNodeGroupLRO.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/AsyncResizeNodeGroupLRO.java new file mode 100644 index 000000000000..68c77440f1a4 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/AsyncResizeNodeGroupLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_NodeGroupController_ResizeNodeGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataproc.v1.NodeGroup; +import com.google.cloud.dataproc.v1.NodeGroupControllerClient; +import com.google.cloud.dataproc.v1.NodeGroupOperationMetadata; +import com.google.cloud.dataproc.v1.ResizeNodeGroupRequest; +import com.google.protobuf.Duration; + +public class AsyncResizeNodeGroupLRO { + + public static void main(String[] args) throws Exception { + asyncResizeNodeGroupLRO(); + } + + public static void asyncResizeNodeGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) { + ResizeNodeGroupRequest request = + ResizeNodeGroupRequest.newBuilder() + .setName("name3373707") + .setSize(3530753) + .setRequestId("requestId693933066") + .setGracefulDecommissionTimeout(Duration.newBuilder().build()) + .build(); + OperationFuture future = + nodeGroupControllerClient.resizeNodeGroupOperationCallable().futureCall(request); + // Do something. + NodeGroup response = future.get(); + } + } +} +// [END dataproc_v1_generated_NodeGroupController_ResizeNodeGroup_LRO_async] diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/SyncResizeNodeGroup.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/SyncResizeNodeGroup.java new file mode 100644 index 000000000000..684609e5dfdb --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/SyncResizeNodeGroup.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_NodeGroupController_ResizeNodeGroup_sync] +import com.google.cloud.dataproc.v1.NodeGroup; +import com.google.cloud.dataproc.v1.NodeGroupControllerClient; +import com.google.cloud.dataproc.v1.ResizeNodeGroupRequest; +import com.google.protobuf.Duration; + +public class SyncResizeNodeGroup { + + public static void main(String[] args) throws Exception { + syncResizeNodeGroup(); + } + + public static void syncResizeNodeGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) { + ResizeNodeGroupRequest request = + ResizeNodeGroupRequest.newBuilder() + .setName("name3373707") + .setSize(3530753) + .setRequestId("requestId693933066") + .setGracefulDecommissionTimeout(Duration.newBuilder().build()) + .build(); + NodeGroup response = nodeGroupControllerClient.resizeNodeGroupAsync(request).get(); + } + } +} +// [END dataproc_v1_generated_NodeGroupController_ResizeNodeGroup_sync] diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/SyncResizeNodeGroupStringInt.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/SyncResizeNodeGroupStringInt.java new file mode 100644 index 000000000000..1e51183d6a89 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/SyncResizeNodeGroupStringInt.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_NodeGroupController_ResizeNodeGroup_StringInt_sync] +import com.google.cloud.dataproc.v1.NodeGroup; +import com.google.cloud.dataproc.v1.NodeGroupControllerClient; + +public class SyncResizeNodeGroupStringInt { + + public static void main(String[] args) throws Exception { + syncResizeNodeGroupStringInt(); + } + + public static void syncResizeNodeGroupStringInt() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.create()) { + String name = "name3373707"; + int size = 3530753; + NodeGroup response = nodeGroupControllerClient.resizeNodeGroupAsync(name, size).get(); + } + } +} +// [END dataproc_v1_generated_NodeGroupController_ResizeNodeGroup_StringInt_sync] diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontrollersettings/getnodegroup/SyncGetNodeGroup.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontrollersettings/getnodegroup/SyncGetNodeGroup.java new file mode 100644 index 000000000000..4fe206f5d426 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontrollersettings/getnodegroup/SyncGetNodeGroup.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_NodeGroupControllerSettings_GetNodeGroup_sync] +import com.google.cloud.dataproc.v1.NodeGroupControllerSettings; +import java.time.Duration; + +public class SyncGetNodeGroup { + + public static void main(String[] args) throws Exception { + syncGetNodeGroup(); + } + + public static void syncGetNodeGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + NodeGroupControllerSettings.Builder nodeGroupControllerSettingsBuilder = + NodeGroupControllerSettings.newBuilder(); + nodeGroupControllerSettingsBuilder + .getNodeGroupSettings() + .setRetrySettings( + nodeGroupControllerSettingsBuilder.getNodeGroupSettings().getRetrySettings().toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + NodeGroupControllerSettings nodeGroupControllerSettings = + nodeGroupControllerSettingsBuilder.build(); + } +} +// [END dataproc_v1_generated_NodeGroupControllerSettings_GetNodeGroup_sync] diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/nodegroupcontrollerstubsettings/getnodegroup/SyncGetNodeGroup.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/nodegroupcontrollerstubsettings/getnodegroup/SyncGetNodeGroup.java new file mode 100644 index 000000000000..8eb4a9b5ae50 --- /dev/null +++ b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/nodegroupcontrollerstubsettings/getnodegroup/SyncGetNodeGroup.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.stub.samples; + +// [START dataproc_v1_generated_NodeGroupControllerStubSettings_GetNodeGroup_sync] +import com.google.cloud.dataproc.v1.stub.NodeGroupControllerStubSettings; +import java.time.Duration; + +public class SyncGetNodeGroup { + + public static void main(String[] args) throws Exception { + syncGetNodeGroup(); + } + + public static void syncGetNodeGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + NodeGroupControllerStubSettings.Builder nodeGroupControllerSettingsBuilder = + NodeGroupControllerStubSettings.newBuilder(); + nodeGroupControllerSettingsBuilder + .getNodeGroupSettings() + .setRetrySettings( + nodeGroupControllerSettingsBuilder.getNodeGroupSettings().getRetrySettings().toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + NodeGroupControllerStubSettings nodeGroupControllerSettings = + nodeGroupControllerSettingsBuilder.build(); + } +} +// [END dataproc_v1_generated_NodeGroupControllerStubSettings_GetNodeGroup_sync] diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetEndpoint.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/AsyncCreateWorkflowTemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/AsyncCreateWorkflowTemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/AsyncCreateWorkflowTemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/AsyncCreateWorkflowTemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/AsyncGetWorkflowTemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/AsyncGetWorkflowTemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/AsyncGetWorkflowTemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/AsyncGetWorkflowTemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplates.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplates.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplates.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplates.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplates.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplates.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplates.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplates.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesString.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesString.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesString.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesString.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java similarity index 100% rename from java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java rename to owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java From 88a62f49617f1d00937e4138117588c2e927c19c Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 13 Dec 2022 01:19:35 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- java-dataproc/README.md | 6 +- .../v1/AutoscalingPolicyServiceClient.java | 0 .../v1/AutoscalingPolicyServiceSettings.java | 1 - .../dataproc/v1/BatchControllerClient.java | 0 .../dataproc/v1/BatchControllerSettings.java | 1 - .../dataproc/v1/ClusterControllerClient.java | 0 .../v1/ClusterControllerSettings.java | 1 - .../dataproc/v1/JobControllerClient.java | 0 .../dataproc/v1/JobControllerSettings.java | 1 - .../v1/NodeGroupControllerClient.java | 0 .../v1/NodeGroupControllerSettings.java | 1 - .../v1/WorkflowTemplateServiceClient.java | 0 .../v1/WorkflowTemplateServiceSettings.java | 1 - .../cloud/dataproc/v1/gapic_metadata.json | 0 .../cloud/dataproc/v1/package-info.java | 0 .../v1/stub/AutoscalingPolicyServiceStub.java | 0 .../AutoscalingPolicyServiceStubSettings.java | 0 .../dataproc/v1/stub/BatchControllerStub.java | 0 .../v1/stub/BatchControllerStubSettings.java | 0 .../v1/stub/ClusterControllerStub.java | 0 .../stub/ClusterControllerStubSettings.java | 0 ...toscalingPolicyServiceCallableFactory.java | 0 .../GrpcAutoscalingPolicyServiceStub.java | 1 - .../GrpcBatchControllerCallableFactory.java | 0 .../v1/stub/GrpcBatchControllerStub.java | 1 - .../GrpcClusterControllerCallableFactory.java | 0 .../v1/stub/GrpcClusterControllerStub.java | 1 - .../GrpcJobControllerCallableFactory.java | 0 .../v1/stub/GrpcJobControllerStub.java | 1 - ...rpcNodeGroupControllerCallableFactory.java | 0 .../v1/stub/GrpcNodeGroupControllerStub.java | 1 - ...orkflowTemplateServiceCallableFactory.java | 0 .../stub/GrpcWorkflowTemplateServiceStub.java | 1 - ...toscalingPolicyServiceCallableFactory.java | 0 .../HttpJsonAutoscalingPolicyServiceStub.java | 0 ...ttpJsonBatchControllerCallableFactory.java | 0 .../v1/stub/HttpJsonBatchControllerStub.java | 1 - ...pJsonClusterControllerCallableFactory.java | 0 .../stub/HttpJsonClusterControllerStub.java | 10 +- .../HttpJsonJobControllerCallableFactory.java | 0 .../v1/stub/HttpJsonJobControllerStub.java | 4 +- ...sonNodeGroupControllerCallableFactory.java | 0 .../stub/HttpJsonNodeGroupControllerStub.java | 1 - ...orkflowTemplateServiceCallableFactory.java | 0 .../HttpJsonWorkflowTemplateServiceStub.java | 1 - .../dataproc/v1/stub/JobControllerStub.java | 0 .../v1/stub/JobControllerStubSettings.java | 0 .../v1/stub/NodeGroupControllerStub.java | 0 .../stub/NodeGroupControllerStubSettings.java | 0 .../v1/stub/WorkflowTemplateServiceStub.java | 0 .../WorkflowTemplateServiceStubSettings.java | 0 ...calingPolicyServiceClientHttpJsonTest.java | 0 .../AutoscalingPolicyServiceClientTest.java | 0 .../v1/BatchControllerClientHttpJsonTest.java | 0 .../v1/BatchControllerClientTest.java | 0 .../ClusterControllerClientHttpJsonTest.java | 0 .../v1/ClusterControllerClientTest.java | 0 .../v1/JobControllerClientHttpJsonTest.java | 0 .../dataproc/v1/JobControllerClientTest.java | 0 .../v1/MockAutoscalingPolicyService.java | 0 .../v1/MockAutoscalingPolicyServiceImpl.java | 0 .../dataproc/v1/MockBatchController.java | 0 .../dataproc/v1/MockBatchControllerImpl.java | 0 .../dataproc/v1/MockClusterController.java | 0 .../v1/MockClusterControllerImpl.java | 0 .../cloud/dataproc/v1/MockJobController.java | 0 .../dataproc/v1/MockJobControllerImpl.java | 0 .../dataproc/v1/MockNodeGroupController.java | 0 .../v1/MockNodeGroupControllerImpl.java | 0 .../v1/MockWorkflowTemplateService.java | 0 .../v1/MockWorkflowTemplateServiceImpl.java | 0 ...NodeGroupControllerClientHttpJsonTest.java | 0 .../v1/NodeGroupControllerClientTest.java | 0 ...flowTemplateServiceClientHttpJsonTest.java | 0 .../v1/WorkflowTemplateServiceClientTest.java | 0 .../v1/AutoscalingPolicyServiceGrpc.java | 889 +++++ .../dataproc/v1/BatchControllerGrpc.java | 694 ++++ .../dataproc/v1/ClusterControllerGrpc.java | 831 +++-- .../cloud/dataproc/v1/JobControllerGrpc.java | 1023 ++++++ .../dataproc/v1/NodeGroupControllerGrpc.java | 387 +- .../v1/WorkflowTemplateServiceGrpc.java | 874 +++-- .../cloud/dataproc/v1/AcceleratorConfig.java | 355 +- .../v1/AcceleratorConfigOrBuilder.java | 30 +- .../cloud/dataproc/v1/AutoscalingConfig.java | 320 +- .../v1/AutoscalingConfigOrBuilder.java | 27 +- .../dataproc/v1/AutoscalingPoliciesProto.java | 314 ++ .../cloud/dataproc/v1/AutoscalingPolicy.java | 1133 +++--- .../dataproc/v1/AutoscalingPolicyName.java | 0 .../v1/AutoscalingPolicyOrBuilder.java | 127 +- .../cloud/dataproc/v1/AuxiliaryNodeGroup.java | 460 ++- .../v1/AuxiliaryNodeGroupOrBuilder.java | 47 +- .../dataproc/v1/AuxiliaryServicesConfig.java | 534 ++- .../v1/AuxiliaryServicesConfigOrBuilder.java | 108 + .../v1/BasicAutoscalingAlgorithm.java | 567 +-- .../BasicAutoscalingAlgorithmOrBuilder.java | 55 +- .../v1/BasicYarnAutoscalingConfig.java | 568 +-- .../BasicYarnAutoscalingConfigOrBuilder.java | 53 +- .../com/google/cloud/dataproc/v1/Batch.java | 3107 ++++++++++------ .../google/cloud/dataproc/v1/BatchName.java | 0 .../dataproc/v1/BatchOperationMetadata.java | 1167 +++--- .../v1/BatchOperationMetadataOrBuilder.java | 122 +- .../cloud/dataproc/v1/BatchOrBuilder.java | 320 +- .../cloud/dataproc/v1/BatchesProto.java | 357 ++ .../cloud/dataproc/v1/CancelJobRequest.java | 478 +-- .../v1/CancelJobRequestOrBuilder.java | 45 +- .../com/google/cloud/dataproc/v1/Cluster.java | 1535 +++++--- .../cloud/dataproc/v1/ClusterConfig.java | 2550 +++++++++---- .../dataproc/v1/ClusterConfigOrBuilder.java | 345 +- .../cloud/dataproc/v1/ClusterMetrics.java | 730 ++-- .../dataproc/v1/ClusterMetricsOrBuilder.java | 82 +- .../cloud/dataproc/v1/ClusterOperation.java | 437 ++- .../dataproc/v1/ClusterOperationMetadata.java | 1334 ++++--- .../v1/ClusterOperationMetadataOrBuilder.java | 176 +- .../v1/ClusterOperationOrBuilder.java | 39 +- .../dataproc/v1/ClusterOperationStatus.java | 710 ++-- .../v1/ClusterOperationStatusOrBuilder.java | 70 +- .../cloud/dataproc/v1/ClusterOrBuilder.java | 194 +- .../cloud/dataproc/v1/ClusterRegionName.java | 0 .../cloud/dataproc/v1/ClusterSelector.java | 604 ++-- .../dataproc/v1/ClusterSelectorOrBuilder.java | 73 +- .../cloud/dataproc/v1/ClusterStatus.java | 842 +++-- .../dataproc/v1/ClusterStatusOrBuilder.java | 83 +- .../cloud/dataproc/v1/ClustersProto.java | 1025 ++++++ .../google/cloud/dataproc/v1/Component.java | 150 +- .../v1/ConfidentialInstanceConfig.java | 292 +- .../ConfidentialInstanceConfigOrBuilder.java | 39 + .../v1/CreateAutoscalingPolicyRequest.java | 495 ++- ...eateAutoscalingPolicyRequestOrBuilder.java | 55 +- .../cloud/dataproc/v1/CreateBatchRequest.java | 614 ++-- .../v1/CreateBatchRequestOrBuilder.java | 70 +- .../dataproc/v1/CreateClusterRequest.java | 699 ++-- .../v1/CreateClusterRequestOrBuilder.java | 76 +- .../dataproc/v1/CreateNodeGroupRequest.java | 642 ++-- .../v1/CreateNodeGroupRequestOrBuilder.java | 73 +- .../v1/CreateWorkflowTemplateRequest.java | 492 ++- ...reateWorkflowTemplateRequestOrBuilder.java | 55 +- .../dataproc/v1/DataprocMetricConfig.java | 1104 +++--- .../v1/DataprocMetricConfigOrBuilder.java | 87 + .../v1/DeleteAutoscalingPolicyRequest.java | 361 +- ...leteAutoscalingPolicyRequestOrBuilder.java | 35 +- .../cloud/dataproc/v1/DeleteBatchRequest.java | 351 +- .../v1/DeleteBatchRequestOrBuilder.java | 54 + .../dataproc/v1/DeleteClusterRequest.java | 635 ++-- .../v1/DeleteClusterRequestOrBuilder.java | 63 +- .../cloud/dataproc/v1/DeleteJobRequest.java | 478 +-- .../v1/DeleteJobRequestOrBuilder.java | 45 +- .../v1/DeleteWorkflowTemplateRequest.java | 393 +- ...eleteWorkflowTemplateRequestOrBuilder.java | 38 +- .../dataproc/v1/DiagnoseClusterRequest.java | 485 +-- .../v1/DiagnoseClusterRequestOrBuilder.java | 45 +- .../dataproc/v1/DiagnoseClusterResults.java | 327 +- .../v1/DiagnoseClusterResultsOrBuilder.java | 27 +- .../google/cloud/dataproc/v1/DiskConfig.java | 458 ++- .../dataproc/v1/DiskConfigOrBuilder.java | 42 +- .../dataproc/v1/DriverSchedulingConfig.java | 321 +- .../v1/DriverSchedulingConfigOrBuilder.java | 24 +- .../cloud/dataproc/v1/EncryptionConfig.java | 320 +- .../v1/EncryptionConfigOrBuilder.java | 27 +- .../cloud/dataproc/v1/EndpointConfig.java | 573 +-- .../dataproc/v1/EndpointConfigOrBuilder.java | 67 +- .../cloud/dataproc/v1/EnvironmentConfig.java | 513 ++- .../v1/EnvironmentConfigOrBuilder.java | 107 + .../cloud/dataproc/v1/ExecutionConfig.java | 732 ++-- .../dataproc/v1/ExecutionConfigOrBuilder.java | 78 +- .../cloud/dataproc/v1/FailureAction.java | 82 +- .../cloud/dataproc/v1/GceClusterConfig.java | 1856 ++++++---- .../v1/GceClusterConfigOrBuilder.java | 236 +- .../v1/GetAutoscalingPolicyRequest.java | 358 +- .../GetAutoscalingPolicyRequestOrBuilder.java | 35 +- .../cloud/dataproc/v1/GetBatchRequest.java | 348 +- .../dataproc/v1/GetBatchRequestOrBuilder.java | 54 + .../cloud/dataproc/v1/GetClusterRequest.java | 478 +-- .../v1/GetClusterRequestOrBuilder.java | 45 +- .../cloud/dataproc/v1/GetJobRequest.java | 478 +-- .../dataproc/v1/GetJobRequestOrBuilder.java | 45 +- .../dataproc/v1/GetNodeGroupRequest.java | 355 +- .../v1/GetNodeGroupRequestOrBuilder.java | 58 + .../v1/GetWorkflowTemplateRequest.java | 393 +- .../GetWorkflowTemplateRequestOrBuilder.java | 38 +- .../cloud/dataproc/v1/GkeClusterConfig.java | 546 +-- .../v1/GkeClusterConfigOrBuilder.java | 65 +- .../cloud/dataproc/v1/GkeNodePoolConfig.java | 2382 +++++++----- .../v1/GkeNodePoolConfigOrBuilder.java | 79 +- .../cloud/dataproc/v1/GkeNodePoolTarget.java | 733 ++-- .../v1/GkeNodePoolTargetOrBuilder.java | 85 +- .../google/cloud/dataproc/v1/HadoopJob.java | 1310 ++++--- .../cloud/dataproc/v1/HadoopJobOrBuilder.java | 180 +- .../com/google/cloud/dataproc/v1/HiveJob.java | 1165 +++--- .../cloud/dataproc/v1/HiveJobOrBuilder.java | 151 +- .../cloud/dataproc/v1/IdentityConfig.java | 529 +-- .../dataproc/v1/IdentityConfigOrBuilder.java | 94 + .../InstanceGroupAutoscalingPolicyConfig.java | 391 +- ...GroupAutoscalingPolicyConfigOrBuilder.java | 27 +- .../dataproc/v1/InstanceGroupConfig.java | 1340 ++++--- .../v1/InstanceGroupConfigOrBuilder.java | 161 +- ...tantiateInlineWorkflowTemplateRequest.java | 601 ++-- ...nlineWorkflowTemplateRequestOrBuilder.java | 64 +- .../InstantiateWorkflowTemplateRequest.java | 781 ++-- ...tiateWorkflowTemplateRequestOrBuilder.java | 93 +- .../com/google/cloud/dataproc/v1/Job.java | 3180 +++++++++++------ .../google/cloud/dataproc/v1/JobMetadata.java | 634 ++-- .../dataproc/v1/JobMetadataOrBuilder.java | 73 +- .../cloud/dataproc/v1/JobOrBuilder.java | 415 ++- .../cloud/dataproc/v1/JobPlacement.java | 681 ++-- .../dataproc/v1/JobPlacementOrBuilder.java | 82 +- .../cloud/dataproc/v1/JobReference.java | 399 ++- .../dataproc/v1/JobReferenceOrBuilder.java | 36 +- .../cloud/dataproc/v1/JobScheduling.java | 314 +- .../dataproc/v1/JobSchedulingOrBuilder.java | 24 +- .../google/cloud/dataproc/v1/JobStatus.java | 830 +++-- .../cloud/dataproc/v1/JobStatusOrBuilder.java | 83 +- .../google/cloud/dataproc/v1/JobsProto.java | 842 +++++ .../cloud/dataproc/v1/KerberosConfig.java | 1425 +++++--- .../dataproc/v1/KerberosConfigOrBuilder.java | 155 +- .../dataproc/v1/KubernetesClusterConfig.java | 654 ++-- .../v1/KubernetesClusterConfigOrBuilder.java | 70 +- .../dataproc/v1/KubernetesSoftwareConfig.java | 729 ++-- .../v1/KubernetesSoftwareConfigOrBuilder.java | 80 +- .../cloud/dataproc/v1/LifecycleConfig.java | 838 +++-- .../dataproc/v1/LifecycleConfigOrBuilder.java | 92 +- .../v1/ListAutoscalingPoliciesRequest.java | 475 ++- ...stAutoscalingPoliciesRequestOrBuilder.java | 47 +- .../v1/ListAutoscalingPoliciesResponse.java | 588 +-- ...tAutoscalingPoliciesResponseOrBuilder.java | 65 +- .../cloud/dataproc/v1/ListBatchesRequest.java | 465 ++- .../v1/ListBatchesRequestOrBuilder.java | 47 +- .../dataproc/v1/ListBatchesResponse.java | 482 ++- .../v1/ListBatchesResponseOrBuilder.java | 46 +- .../dataproc/v1/ListClustersRequest.java | 591 +-- .../v1/ListClustersRequestOrBuilder.java | 57 +- .../dataproc/v1/ListClustersResponse.java | 574 +-- .../v1/ListClustersResponseOrBuilder.java | 65 +- .../cloud/dataproc/v1/ListJobsRequest.java | 836 +++-- .../dataproc/v1/ListJobsRequestOrBuilder.java | 80 +- .../cloud/dataproc/v1/ListJobsResponse.java | 572 +-- .../v1/ListJobsResponseOrBuilder.java | 66 +- .../v1/ListWorkflowTemplatesRequest.java | 472 ++- ...ListWorkflowTemplatesRequestOrBuilder.java | 47 +- .../v1/ListWorkflowTemplatesResponse.java | 578 +-- ...istWorkflowTemplatesResponseOrBuilder.java | 65 +- .../cloud/dataproc/v1/LocationName.java | 0 .../cloud/dataproc/v1/LoggingConfig.java | 797 +++-- .../dataproc/v1/LoggingConfigOrBuilder.java | 95 +- .../cloud/dataproc/v1/ManagedCluster.java | 716 ++-- .../dataproc/v1/ManagedClusterOrBuilder.java | 78 +- .../cloud/dataproc/v1/ManagedGroupConfig.java | 426 ++- .../v1/ManagedGroupConfigOrBuilder.java | 42 +- .../cloud/dataproc/v1/MetastoreConfig.java | 351 +- .../dataproc/v1/MetastoreConfigOrBuilder.java | 58 + .../google/cloud/dataproc/v1/NodeGroup.java | 954 +++-- .../cloud/dataproc/v1/NodeGroupAffinity.java | 320 +- .../v1/NodeGroupAffinityOrBuilder.java | 27 +- .../cloud/dataproc/v1/NodeGroupName.java | 0 .../v1/NodeGroupOperationMetadata.java | 1436 +++++--- .../NodeGroupOperationMetadataOrBuilder.java | 166 +- .../cloud/dataproc/v1/NodeGroupOrBuilder.java | 116 +- .../cloud/dataproc/v1/NodeGroupsProto.java | 155 + .../dataproc/v1/NodeInitializationAction.java | 468 ++- .../v1/NodeInitializationActionOrBuilder.java | 47 +- .../cloud/dataproc/v1/OperationsProto.java | 221 ++ .../google/cloud/dataproc/v1/OrderedJob.java | 2046 +++++++---- .../dataproc/v1/OrderedJobOrBuilder.java | 262 +- .../dataproc/v1/ParameterValidation.java | 483 ++- .../v1/ParameterValidationOrBuilder.java | 37 +- .../cloud/dataproc/v1/PeripheralsConfig.java | 473 ++- .../v1/PeripheralsConfigOrBuilder.java | 50 +- .../com/google/cloud/dataproc/v1/PigJob.java | 1303 ++++--- .../cloud/dataproc/v1/PigJobOrBuilder.java | 171 +- .../google/cloud/dataproc/v1/PrestoJob.java | 1106 +++--- .../cloud/dataproc/v1/PrestoJobOrBuilder.java | 134 +- .../cloud/dataproc/v1/PySparkBatch.java | 851 +++-- .../dataproc/v1/PySparkBatchOrBuilder.java | 117 +- .../google/cloud/dataproc/v1/PySparkJob.java | 1269 ++++--- .../dataproc/v1/PySparkJobOrBuilder.java | 183 +- .../google/cloud/dataproc/v1/QueryList.java | 341 +- .../cloud/dataproc/v1/QueryListOrBuilder.java | 36 +- .../cloud/dataproc/v1/RegexValidation.java | 348 +- .../dataproc/v1/RegexValidationOrBuilder.java | 36 +- .../google/cloud/dataproc/v1/RegionName.java | 0 .../dataproc/v1/ReservationAffinity.java | 608 ++-- .../v1/ReservationAffinityOrBuilder.java | 59 +- .../dataproc/v1/ResizeNodeGroupRequest.java | 573 +-- .../v1/ResizeNodeGroupRequestOrBuilder.java | 59 +- .../cloud/dataproc/v1/RuntimeConfig.java | 685 ++-- .../dataproc/v1/RuntimeConfigOrBuilder.java | 82 +- .../google/cloud/dataproc/v1/RuntimeInfo.java | 685 ++-- .../dataproc/v1/RuntimeInfoOrBuilder.java | 82 +- .../cloud/dataproc/v1/SecurityConfig.java | 508 ++- .../dataproc/v1/SecurityConfigOrBuilder.java | 58 +- .../google/cloud/dataproc/v1/SharedProto.java | 358 ++ .../dataproc/v1/ShieldedInstanceConfig.java | 365 +- .../v1/ShieldedInstanceConfigOrBuilder.java | 27 +- .../cloud/dataproc/v1/SoftwareConfig.java | 797 +++-- .../dataproc/v1/SoftwareConfigOrBuilder.java | 111 +- .../google/cloud/dataproc/v1/SparkBatch.java | 893 +++-- .../dataproc/v1/SparkBatchOrBuilder.java | 114 +- .../dataproc/v1/SparkHistoryServerConfig.java | 330 +- .../v1/SparkHistoryServerConfigOrBuilder.java | 27 +- .../google/cloud/dataproc/v1/SparkJob.java | 1313 ++++--- .../cloud/dataproc/v1/SparkJobOrBuilder.java | 180 +- .../google/cloud/dataproc/v1/SparkRBatch.java | 634 ++-- .../dataproc/v1/SparkRBatchOrBuilder.java | 81 +- .../google/cloud/dataproc/v1/SparkRJob.java | 1051 +++--- .../cloud/dataproc/v1/SparkRJobOrBuilder.java | 147 +- .../cloud/dataproc/v1/SparkSqlBatch.java | 713 ++-- .../dataproc/v1/SparkSqlBatchOrBuilder.java | 91 +- .../google/cloud/dataproc/v1/SparkSqlJob.java | 1269 ++++--- .../dataproc/v1/SparkSqlJobOrBuilder.java | 168 +- .../dataproc/v1/StartClusterRequest.java | 635 ++-- .../v1/StartClusterRequestOrBuilder.java | 63 +- .../cloud/dataproc/v1/StopClusterRequest.java | 631 ++-- .../v1/StopClusterRequestOrBuilder.java | 63 +- .../cloud/dataproc/v1/SubmitJobRequest.java | 548 +-- .../v1/SubmitJobRequestOrBuilder.java | 53 +- .../cloud/dataproc/v1/TemplateParameter.java | 634 ++-- .../v1/TemplateParameterOrBuilder.java | 74 +- .../v1/UpdateAutoscalingPolicyRequest.java | 391 +- ...dateAutoscalingPolicyRequestOrBuilder.java | 66 + .../dataproc/v1/UpdateClusterRequest.java | 951 +++-- .../v1/UpdateClusterRequestOrBuilder.java | 108 +- .../cloud/dataproc/v1/UpdateJobRequest.java | 675 ++-- .../v1/UpdateJobRequestOrBuilder.java | 70 +- .../v1/UpdateWorkflowTemplateRequest.java | 388 +- ...pdateWorkflowTemplateRequestOrBuilder.java | 69 + .../cloud/dataproc/v1/ValueValidation.java | 348 +- .../dataproc/v1/ValueValidationOrBuilder.java | 36 +- .../dataproc/v1/VirtualClusterConfig.java | 675 ++-- .../v1/VirtualClusterConfigOrBuilder.java | 76 +- .../cloud/dataproc/v1/WorkflowGraph.java | 490 ++- .../dataproc/v1/WorkflowGraphOrBuilder.java | 87 + .../cloud/dataproc/v1/WorkflowMetadata.java | 1958 ++++++---- .../v1/WorkflowMetadataOrBuilder.java | 244 +- .../cloud/dataproc/v1/WorkflowNode.java | 807 +++-- .../dataproc/v1/WorkflowNodeOrBuilder.java | 89 +- .../cloud/dataproc/v1/WorkflowTemplate.java | 1684 +++++---- .../dataproc/v1/WorkflowTemplateName.java | 0 .../v1/WorkflowTemplateOrBuilder.java | 214 +- .../v1/WorkflowTemplatePlacement.java | 478 ++- .../WorkflowTemplatePlacementOrBuilder.java | 34 +- .../dataproc/v1/WorkflowTemplatesProto.java | 640 ++++ .../cloud/dataproc/v1/YarnApplication.java | 643 ++-- .../dataproc/v1/YarnApplicationOrBuilder.java | 53 +- .../dataproc/v1/autoscaling_policies.proto | 0 .../google/cloud/dataproc/v1/batches.proto | 0 .../google/cloud/dataproc/v1/clusters.proto | 0 .../proto/google/cloud/dataproc/v1/jobs.proto | 0 .../cloud/dataproc/v1/node_groups.proto | 0 .../google/cloud/dataproc/v1/operations.proto | 0 .../google/cloud/dataproc/v1/shared.proto | 0 .../dataproc/v1/workflow_templates.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateAutoscalingPolicy.java | 0 .../SyncCreateAutoscalingPolicy.java | 0 ...ngPolicyLocationnameAutoscalingpolicy.java | 0 ...lingPolicyRegionnameAutoscalingpolicy.java | 0 ...oscalingPolicyStringAutoscalingpolicy.java | 0 .../AsyncDeleteAutoscalingPolicy.java | 0 .../SyncDeleteAutoscalingPolicy.java | 0 ...utoscalingPolicyAutoscalingpolicyname.java | 0 .../SyncDeleteAutoscalingPolicyString.java | 0 .../AsyncGetAutoscalingPolicy.java | 0 .../SyncGetAutoscalingPolicy.java | 0 ...utoscalingPolicyAutoscalingpolicyname.java | 0 .../SyncGetAutoscalingPolicyString.java | 0 .../AsyncListAutoscalingPolicies.java | 0 .../AsyncListAutoscalingPoliciesPaged.java | 0 .../SyncListAutoscalingPolicies.java | 0 ...ncListAutoscalingPoliciesLocationname.java | 0 ...SyncListAutoscalingPoliciesRegionname.java | 0 .../SyncListAutoscalingPoliciesString.java | 0 .../AsyncUpdateAutoscalingPolicy.java | 0 .../SyncUpdateAutoscalingPolicy.java | 0 ...ateAutoscalingPolicyAutoscalingpolicy.java | 0 .../SyncCreateAutoscalingPolicy.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createbatch/AsyncCreateBatch.java | 0 .../createbatch/AsyncCreateBatchLRO.java | 0 .../createbatch/SyncCreateBatch.java | 0 ...yncCreateBatchLocationnameBatchString.java | 0 .../SyncCreateBatchStringBatchString.java | 0 .../deletebatch/AsyncDeleteBatch.java | 0 .../deletebatch/SyncDeleteBatch.java | 0 .../deletebatch/SyncDeleteBatchBatchname.java | 0 .../deletebatch/SyncDeleteBatchString.java | 0 .../getbatch/AsyncGetBatch.java | 0 .../getbatch/SyncGetBatch.java | 0 .../getbatch/SyncGetBatchBatchname.java | 0 .../getbatch/SyncGetBatchString.java | 0 .../listbatches/AsyncListBatches.java | 0 .../listbatches/AsyncListBatchesPaged.java | 0 .../listbatches/SyncListBatches.java | 0 .../SyncListBatchesLocationname.java | 0 .../listbatches/SyncListBatchesString.java | 0 .../getbatch/SyncGetBatch.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createcluster/AsyncCreateCluster.java | 0 .../createcluster/AsyncCreateClusterLRO.java | 0 .../createcluster/SyncCreateCluster.java | 0 .../SyncCreateClusterStringStringCluster.java | 0 .../deletecluster/AsyncDeleteCluster.java | 0 .../deletecluster/AsyncDeleteClusterLRO.java | 0 .../deletecluster/SyncDeleteCluster.java | 0 .../SyncDeleteClusterStringStringString.java | 0 .../diagnosecluster/AsyncDiagnoseCluster.java | 0 .../AsyncDiagnoseClusterLRO.java | 0 .../diagnosecluster/SyncDiagnoseCluster.java | 0 ...SyncDiagnoseClusterStringStringString.java | 0 .../getcluster/AsyncGetCluster.java | 0 .../getcluster/SyncGetCluster.java | 0 .../SyncGetClusterStringStringString.java | 0 .../listclusters/AsyncListClusters.java | 0 .../listclusters/AsyncListClustersPaged.java | 0 .../listclusters/SyncListClusters.java | 0 .../SyncListClustersStringString.java | 0 .../SyncListClustersStringStringString.java | 0 .../startcluster/AsyncStartCluster.java | 0 .../startcluster/AsyncStartClusterLRO.java | 0 .../startcluster/SyncStartCluster.java | 0 .../stopcluster/AsyncStopCluster.java | 0 .../stopcluster/AsyncStopClusterLRO.java | 0 .../stopcluster/SyncStopCluster.java | 0 .../updatecluster/AsyncUpdateCluster.java | 0 .../updatecluster/AsyncUpdateClusterLRO.java | 0 .../updatecluster/SyncUpdateCluster.java | 0 ...terStringStringStringClusterFieldmask.java | 0 .../getcluster/SyncGetCluster.java | 0 .../canceljob/AsyncCancelJob.java | 0 .../canceljob/SyncCancelJob.java | 0 .../SyncCancelJobStringStringString.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../deletejob/AsyncDeleteJob.java | 0 .../deletejob/SyncDeleteJob.java | 0 .../SyncDeleteJobStringStringString.java | 0 .../v1/jobcontroller/getjob/AsyncGetJob.java | 0 .../v1/jobcontroller/getjob/SyncGetJob.java | 0 .../getjob/SyncGetJobStringStringString.java | 0 .../jobcontroller/listjobs/AsyncListJobs.java | 0 .../listjobs/AsyncListJobsPaged.java | 0 .../jobcontroller/listjobs/SyncListJobs.java | 0 .../listjobs/SyncListJobsStringString.java | 0 .../SyncListJobsStringStringString.java | 0 .../submitjob/AsyncSubmitJob.java | 0 .../submitjob/SyncSubmitJob.java | 0 .../SyncSubmitJobStringStringJob.java | 0 .../AsyncSubmitJobAsOperation.java | 0 .../AsyncSubmitJobAsOperationLRO.java | 0 .../SyncSubmitJobAsOperation.java | 0 ...ncSubmitJobAsOperationStringStringJob.java | 0 .../updatejob/AsyncUpdateJob.java | 0 .../updatejob/SyncUpdateJob.java | 0 .../submitjob/SyncSubmitJob.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createnodegroup/AsyncCreateNodeGroup.java | 0 .../AsyncCreateNodeGroupLRO.java | 0 .../createnodegroup/SyncCreateNodeGroup.java | 0 ...GroupClusterregionnameNodegroupString.java | 0 ...cCreateNodeGroupStringNodegroupString.java | 0 .../getnodegroup/AsyncGetNodeGroup.java | 0 .../getnodegroup/SyncGetNodeGroup.java | 0 .../SyncGetNodeGroupNodegroupname.java | 0 .../getnodegroup/SyncGetNodeGroupString.java | 0 .../resizenodegroup/AsyncResizeNodeGroup.java | 0 .../AsyncResizeNodeGroupLRO.java | 0 .../resizenodegroup/SyncResizeNodeGroup.java | 0 .../SyncResizeNodeGroupStringInt.java | 0 .../getnodegroup/SyncGetNodeGroup.java | 0 .../SyncCreateAutoscalingPolicy.java | 0 .../getbatch/SyncGetBatch.java | 0 .../getcluster/SyncGetCluster.java | 0 .../submitjob/SyncSubmitJob.java | 0 .../getnodegroup/SyncGetNodeGroup.java | 0 .../SyncCreateWorkflowTemplate.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateWorkflowTemplate.java | 0 .../SyncCreateWorkflowTemplate.java | 0 ...wTemplateLocationnameWorkflowtemplate.java | 0 ...lowTemplateRegionnameWorkflowtemplate.java | 0 ...orkflowTemplateStringWorkflowtemplate.java | 0 .../AsyncDeleteWorkflowTemplate.java | 0 .../SyncDeleteWorkflowTemplate.java | 0 .../SyncDeleteWorkflowTemplateString.java | 0 ...eWorkflowTemplateWorkflowtemplatename.java | 0 .../AsyncGetWorkflowTemplate.java | 0 .../SyncGetWorkflowTemplate.java | 0 .../SyncGetWorkflowTemplateString.java | 0 ...tWorkflowTemplateWorkflowtemplatename.java | 0 ...syncInstantiateInlineWorkflowTemplate.java | 0 ...cInstantiateInlineWorkflowTemplateLRO.java | 0 ...SyncInstantiateInlineWorkflowTemplate.java | 0 ...wTemplateLocationnameWorkflowtemplate.java | 0 ...lowTemplateRegionnameWorkflowtemplate.java | 0 ...orkflowTemplateStringWorkflowtemplate.java | 0 .../AsyncInstantiateWorkflowTemplate.java | 0 .../AsyncInstantiateWorkflowTemplateLRO.java | 0 .../SyncInstantiateWorkflowTemplate.java | 0 ...SyncInstantiateWorkflowTemplateString.java | 0 ...WorkflowTemplateStringMapstringstring.java | 0 ...eWorkflowTemplateWorkflowtemplatename.java | 0 ...teWorkflowtemplatenameMapstringstring.java | 0 .../AsyncListWorkflowTemplates.java | 0 .../AsyncListWorkflowTemplatesPaged.java | 0 .../SyncListWorkflowTemplates.java | 0 ...SyncListWorkflowTemplatesLocationname.java | 0 .../SyncListWorkflowTemplatesRegionname.java | 0 .../SyncListWorkflowTemplatesString.java | 0 .../AsyncUpdateWorkflowTemplate.java | 0 .../SyncUpdateWorkflowTemplate.java | 0 ...pdateWorkflowTemplateWorkflowtemplate.java | 0 .../SyncCreateWorkflowTemplate.java | 0 .../v1/AutoscalingPolicyServiceGrpc.java | 664 ---- .../dataproc/v1/BatchControllerGrpc.java | 565 --- .../cloud/dataproc/v1/JobControllerGrpc.java | 839 ----- .../dataproc/v1/AutoscalingPoliciesProto.java | 277 -- .../v1/AuxiliaryServicesConfigOrBuilder.java | 63 - .../cloud/dataproc/v1/BatchesProto.java | 302 -- .../cloud/dataproc/v1/ClustersProto.java | 893 ----- .../ConfidentialInstanceConfigOrBuilder.java | 20 - .../v1/DataprocMetricConfigOrBuilder.java | 53 - .../v1/DeleteBatchRequestOrBuilder.java | 29 - .../v1/EnvironmentConfigOrBuilder.java | 63 - .../dataproc/v1/GetBatchRequestOrBuilder.java | 29 - .../v1/GetNodeGroupRequestOrBuilder.java | 33 - .../dataproc/v1/IdentityConfigOrBuilder.java | 65 - .../google/cloud/dataproc/v1/JobsProto.java | 714 ---- .../dataproc/v1/MetastoreConfigOrBuilder.java | 33 - .../cloud/dataproc/v1/NodeGroupsProto.java | 138 - .../cloud/dataproc/v1/OperationsProto.java | 173 - .../google/cloud/dataproc/v1/SharedProto.java | 316 -- ...dateAutoscalingPolicyRequestOrBuilder.java | 36 - ...pdateWorkflowTemplateRequestOrBuilder.java | 39 - .../dataproc/v1/WorkflowGraphOrBuilder.java | 53 - .../dataproc/v1/WorkflowTemplatesProto.java | 559 --- versions.txt | 2 +- 545 files changed, 73628 insertions(+), 44980 deletions(-) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java (99%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java (99%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java (99%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java (99%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerClient.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerSettings.java (99%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java (99%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java (99%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java (99%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java (99%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java (99%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcNodeGroupControllerCallableFactory.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcNodeGroupControllerStub.java (99%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java (99%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceCallableFactory.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerCallableFactory.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java (99%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerCallableFactory.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java (99%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerCallableFactory.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java (99%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonNodeGroupControllerCallableFactory.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonNodeGroupControllerStub.java (99%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceCallableFactory.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java (99%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStub.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStubSettings.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockNodeGroupController.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockNodeGroupControllerImpl.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/NodeGroupControllerClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/NodeGroupControllerClientTest.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java (100%) create mode 100644 java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java create mode 100644 java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java (50%) create mode 100644 java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerGrpc.java (52%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java (50%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java (73%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.java (75%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java (70%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.java (67%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicy.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java (71%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroup.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroupOrBuilder.java (58%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java (60%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfigOrBuilder.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java (64%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java (60%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java (73%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.java (78%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java (68%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java (74%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java (66%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java (64%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java (67%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java (66%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java (55%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java (52%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java (63%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java (62%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java (58%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java (72%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterRegionName.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java (62%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java (59%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java (66%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java (52%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java (74%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java (65%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java (64%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.java (57%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java (71%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java (73%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java (74%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequest.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequestOrBuilder.java (70%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java (64%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java (57%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java (74%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java (67%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.java (61%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java (61%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java (74%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java (79%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java (64%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java (66%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.java (56%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java (74%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java (78%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfig.java (66%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfigOrBuilder.java (52%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java (67%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.java (54%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java (60%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java (58%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java (60%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java (72%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java (76%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java (68%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java (71%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java (78%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java (68%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.java (60%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java (61%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java (64%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequest.java (62%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequestOrBuilder.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java (71%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java (67%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java (66%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java (73%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java (81%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java (66%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java (74%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java (57%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java (72%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java (77%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java (72%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java (75%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java (66%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java (66%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java (72%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java (66%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java (61%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java (63%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java (61%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java (70%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java (71%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java (70%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java (66%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java (51%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java (75%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java (81%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java (60%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java (63%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java (75%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java (68%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java (74%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java (70%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.java (67%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java (63%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java (50%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java (67%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java (58%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java (71%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java (67%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java (75%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java (80%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java (53%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java (73%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java (77%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java (64%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java (50%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.java (66%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java (54%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java (62%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java (62%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java (66%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java (76%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java (67%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java (59%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java (62%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroup.java (64%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java (70%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java (68%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupName.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadata.java (64%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadataOrBuilder.java (64%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOrBuilder.java (67%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupsProto.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java (68%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java (67%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java (70%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java (64%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java (55%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java (72%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java (68%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java (73%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java (77%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java (83%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java (73%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java (79%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java (74%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java (79%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java (71%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java (67%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequest.java (76%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequestOrBuilder.java (81%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java (63%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java (63%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java (63%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java (63%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java (61%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java (50%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java (68%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java (61%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java (75%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java (76%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java (83%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java (67%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java (59%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java (72%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java (79%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java (76%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java (81%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java (70%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java (77%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java (64%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java (67%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java (63%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java (74%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java (79%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java (74%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java (79%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java (74%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java (79%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java (81%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java (88%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java (61%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java (79%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java (87%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java (74%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java (79%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java (62%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java (68%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java (62%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java (66%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java (61%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java (61%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java (66%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java (76%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java (72%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.java (75%) create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplication.java (69%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java (65%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/batches.proto (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/node_groups.proto (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicy.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPolicies.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPolicies.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatch.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatchLRO.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatch.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchLocationnameBatchString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchStringBatchString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/AsyncDeleteBatch.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatch.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchBatchname.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/AsyncGetBatch.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatch.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchBatchname.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatches.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatchesPaged.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatches.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesLocationname.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateCluster.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateClusterLRO.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateCluster.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateClusterStringStringCluster.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteCluster.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteClusterLRO.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteCluster.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteClusterStringStringString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseCluster.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseClusterLRO.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseCluster.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseClusterStringStringString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/AsyncGetCluster.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetCluster.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetClusterStringStringString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClusters.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClustersPaged.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClusters.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringStringString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartCluster.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartClusterLRO.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/SyncStartCluster.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopCluster.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopClusterLRO.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/SyncStopCluster.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateCluster.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateClusterLRO.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateCluster.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/AsyncCancelJob.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJob.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJobStringStringString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/AsyncDeleteJob.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJob.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJobStringStringString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/AsyncGetJob.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJob.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJobStringStringString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobs.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobsPaged.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobs.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringStringString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/AsyncSubmitJob.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJob.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJobStringStringJob.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperation.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperation.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/AsyncUpdateJob.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/SyncUpdateJob.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/AsyncCreateNodeGroup.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/AsyncCreateNodeGroupLRO.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroup.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroupClusterregionnameNodegroupString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroupStringNodegroupString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/AsyncGetNodeGroup.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroup.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroupNodegroupname.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroupString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/AsyncResizeNodeGroup.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/AsyncResizeNodeGroupLRO.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/SyncResizeNodeGroup.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/SyncResizeNodeGroupStringInt.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontrollersettings/getnodegroup/SyncGetNodeGroup.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/nodegroupcontrollerstubsettings/getnodegroup/SyncGetNodeGroup.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/AsyncCreateWorkflowTemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/AsyncGetWorkflowTemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplates.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplates.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesString.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java (100%) rename {owl-bot-staging/java-dataproc/v1 => java-dataproc}/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java (100%) delete mode 100644 owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java delete mode 100644 owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java delete mode 100644 owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfigOrBuilder.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupsProto.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java delete mode 100644 owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java diff --git a/java-dataproc/README.md b/java-dataproc/README.md index 592f807391c1..5ae280d1b937 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-dataproc - 4.3.0 + 4.4.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.3.0' +implementation 'com.google.cloud:google-cloud-dataproc:4.4.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.3.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.4.0" ``` ## Authentication diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java similarity index 99% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java index efc7f2c9ef75..038b6554a55b 100644 --- a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dataproc.v1.stub.AutoscalingPolicyServiceStubSettings; diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java similarity index 99% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java index 65adfc18fa48..951ae345a791 100644 --- a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dataproc.v1.stub.BatchControllerStubSettings; diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java similarity index 99% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java index 76608e733a14..f2fc2a9a1631 100644 --- a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dataproc.v1.stub.ClusterControllerStubSettings; diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java similarity index 99% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java index fc43ef6d9de5..f2e480e92407 100644 --- a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dataproc.v1.stub.JobControllerStubSettings; diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerClient.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerClient.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerClient.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerSettings.java similarity index 99% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerSettings.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerSettings.java index 94aa61f94bbe..67a4d010ab14 100644 --- a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerSettings.java @@ -26,7 +26,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dataproc.v1.stub.NodeGroupControllerStubSettings; diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java similarity index 99% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java index 226b2e1d3555..9224a7d5e0e9 100644 --- a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dataproc.v1.stub.WorkflowTemplateServiceStubSettings; diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java similarity index 99% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java index 4680891e2661..1a8d03fa912e 100644 --- a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java @@ -37,7 +37,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java similarity index 99% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java index 0f9418453c57..044146baa455 100644 --- a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java @@ -39,7 +39,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java similarity index 99% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java index c46d67edceb1..078395cc0c98 100644 --- a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java @@ -44,7 +44,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java similarity index 99% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java index 101e9ca7f7e5..52b5ae898e1c 100644 --- a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java @@ -41,7 +41,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcNodeGroupControllerCallableFactory.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcNodeGroupControllerCallableFactory.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcNodeGroupControllerCallableFactory.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcNodeGroupControllerCallableFactory.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcNodeGroupControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcNodeGroupControllerStub.java similarity index 99% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcNodeGroupControllerStub.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcNodeGroupControllerStub.java index c978416db8c4..5b7673e26cf4 100644 --- a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcNodeGroupControllerStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcNodeGroupControllerStub.java @@ -34,7 +34,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java similarity index 99% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java index c0e33248385a..1efd3f9289ec 100644 --- a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java @@ -42,7 +42,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceCallableFactory.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceCallableFactory.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceCallableFactory.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerCallableFactory.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerCallableFactory.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerCallableFactory.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerCallableFactory.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java similarity index 99% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java index c3670b1c2b28..3e54921710b4 100644 --- a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java @@ -30,7 +30,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerCallableFactory.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerCallableFactory.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerCallableFactory.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerCallableFactory.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java similarity index 99% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java index e99f430724da..dc0d25f3f93a 100644 --- a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java @@ -30,7 +30,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -202,7 +201,8 @@ public class HttpJsonClusterControllerStub extends ClusterControllerStub { ProtoRestSerializer.create() .toBody( "*", - request.toBuilder() + request + .toBuilder() .clearClusterName() .clearProjectId() .clearRegion() @@ -252,7 +252,8 @@ public class HttpJsonClusterControllerStub extends ClusterControllerStub { ProtoRestSerializer.create() .toBody( "*", - request.toBuilder() + request + .toBuilder() .clearClusterName() .clearProjectId() .clearRegion() @@ -418,7 +419,8 @@ public class HttpJsonClusterControllerStub extends ClusterControllerStub { ProtoRestSerializer.create() .toBody( "*", - request.toBuilder() + request + .toBuilder() .clearClusterName() .clearProjectId() .clearRegion() diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerCallableFactory.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerCallableFactory.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerCallableFactory.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerCallableFactory.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java similarity index 99% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java index 36c359b13248..c0c51913bfe4 100644 --- a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java @@ -30,7 +30,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -295,7 +294,8 @@ public class HttpJsonJobControllerStub extends JobControllerStub { ProtoRestSerializer.create() .toBody( "*", - request.toBuilder() + request + .toBuilder() .clearJobId() .clearProjectId() .clearRegion() diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonNodeGroupControllerCallableFactory.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonNodeGroupControllerCallableFactory.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonNodeGroupControllerCallableFactory.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonNodeGroupControllerCallableFactory.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonNodeGroupControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonNodeGroupControllerStub.java similarity index 99% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonNodeGroupControllerStub.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonNodeGroupControllerStub.java index 2d9e267b59c2..0acea0d80617 100644 --- a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonNodeGroupControllerStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonNodeGroupControllerStub.java @@ -28,7 +28,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceCallableFactory.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceCallableFactory.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceCallableFactory.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java similarity index 99% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java index 3063fc741dcf..535eb1ccd8d8 100644 --- a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java @@ -30,7 +30,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStub.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStub.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStub.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStubSettings.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStubSettings.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStubSettings.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java rename to java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientHttpJsonTest.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientHttpJsonTest.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientHttpJsonTest.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientHttpJsonTest.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientHttpJsonTest.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientHttpJsonTest.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientHttpJsonTest.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientHttpJsonTest.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockNodeGroupController.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockNodeGroupController.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockNodeGroupController.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockNodeGroupController.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockNodeGroupControllerImpl.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockNodeGroupControllerImpl.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockNodeGroupControllerImpl.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockNodeGroupControllerImpl.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/NodeGroupControllerClientHttpJsonTest.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/NodeGroupControllerClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/NodeGroupControllerClientHttpJsonTest.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/NodeGroupControllerClientHttpJsonTest.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/NodeGroupControllerClientTest.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/NodeGroupControllerClientTest.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/NodeGroupControllerClientTest.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/NodeGroupControllerClientTest.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientHttpJsonTest.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientHttpJsonTest.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java b/java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java rename to java-dataproc/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java new file mode 100644 index 000000000000..cb0b6ad2e6d5 --- /dev/null +++ b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java @@ -0,0 +1,889 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.dataproc.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The API interface for managing autoscaling policies in the
+ * Dataproc API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dataproc/v1/autoscaling_policies.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AutoscalingPolicyServiceGrpc { + + private AutoscalingPolicyServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dataproc.v1.AutoscalingPolicyService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1.AutoscalingPolicy> + getCreateAutoscalingPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAutoscalingPolicy", + requestType = com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.class, + responseType = com.google.cloud.dataproc.v1.AutoscalingPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1.AutoscalingPolicy> + getCreateAutoscalingPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1.AutoscalingPolicy> + getCreateAutoscalingPolicyMethod; + if ((getCreateAutoscalingPolicyMethod = + AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod) + == null) { + synchronized (AutoscalingPolicyServiceGrpc.class) { + if ((getCreateAutoscalingPolicyMethod = + AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod) + == null) { + AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod = + getCreateAutoscalingPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateAutoscalingPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance())) + .setSchemaDescriptor( + new AutoscalingPolicyServiceMethodDescriptorSupplier( + "CreateAutoscalingPolicy")) + .build(); + } + } + } + return getCreateAutoscalingPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1.AutoscalingPolicy> + getUpdateAutoscalingPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAutoscalingPolicy", + requestType = com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.class, + responseType = com.google.cloud.dataproc.v1.AutoscalingPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1.AutoscalingPolicy> + getUpdateAutoscalingPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1.AutoscalingPolicy> + getUpdateAutoscalingPolicyMethod; + if ((getUpdateAutoscalingPolicyMethod = + AutoscalingPolicyServiceGrpc.getUpdateAutoscalingPolicyMethod) + == null) { + synchronized (AutoscalingPolicyServiceGrpc.class) { + if ((getUpdateAutoscalingPolicyMethod = + AutoscalingPolicyServiceGrpc.getUpdateAutoscalingPolicyMethod) + == null) { + AutoscalingPolicyServiceGrpc.getUpdateAutoscalingPolicyMethod = + getUpdateAutoscalingPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateAutoscalingPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance())) + .setSchemaDescriptor( + new AutoscalingPolicyServiceMethodDescriptorSupplier( + "UpdateAutoscalingPolicy")) + .build(); + } + } + } + return getUpdateAutoscalingPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1.AutoscalingPolicy> + getGetAutoscalingPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAutoscalingPolicy", + requestType = com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.class, + responseType = com.google.cloud.dataproc.v1.AutoscalingPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1.AutoscalingPolicy> + getGetAutoscalingPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1.AutoscalingPolicy> + getGetAutoscalingPolicyMethod; + if ((getGetAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getGetAutoscalingPolicyMethod) + == null) { + synchronized (AutoscalingPolicyServiceGrpc.class) { + if ((getGetAutoscalingPolicyMethod = + AutoscalingPolicyServiceGrpc.getGetAutoscalingPolicyMethod) + == null) { + AutoscalingPolicyServiceGrpc.getGetAutoscalingPolicyMethod = + getGetAutoscalingPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetAutoscalingPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance())) + .setSchemaDescriptor( + new AutoscalingPolicyServiceMethodDescriptorSupplier( + "GetAutoscalingPolicy")) + .build(); + } + } + } + return getGetAutoscalingPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest, + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse> + getListAutoscalingPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAutoscalingPolicies", + requestType = com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.class, + responseType = com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest, + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse> + getListAutoscalingPoliciesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest, + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse> + getListAutoscalingPoliciesMethod; + if ((getListAutoscalingPoliciesMethod = + AutoscalingPolicyServiceGrpc.getListAutoscalingPoliciesMethod) + == null) { + synchronized (AutoscalingPolicyServiceGrpc.class) { + if ((getListAutoscalingPoliciesMethod = + AutoscalingPolicyServiceGrpc.getListAutoscalingPoliciesMethod) + == null) { + AutoscalingPolicyServiceGrpc.getListAutoscalingPoliciesMethod = + getListAutoscalingPoliciesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAutoscalingPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AutoscalingPolicyServiceMethodDescriptorSupplier( + "ListAutoscalingPolicies")) + .build(); + } + } + } + return getListAutoscalingPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest, com.google.protobuf.Empty> + getDeleteAutoscalingPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAutoscalingPolicy", + requestType = com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest, com.google.protobuf.Empty> + getDeleteAutoscalingPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest, com.google.protobuf.Empty> + getDeleteAutoscalingPolicyMethod; + if ((getDeleteAutoscalingPolicyMethod = + AutoscalingPolicyServiceGrpc.getDeleteAutoscalingPolicyMethod) + == null) { + synchronized (AutoscalingPolicyServiceGrpc.class) { + if ((getDeleteAutoscalingPolicyMethod = + AutoscalingPolicyServiceGrpc.getDeleteAutoscalingPolicyMethod) + == null) { + AutoscalingPolicyServiceGrpc.getDeleteAutoscalingPolicyMethod = + getDeleteAutoscalingPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteAutoscalingPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AutoscalingPolicyServiceMethodDescriptorSupplier( + "DeleteAutoscalingPolicy")) + .build(); + } + } + } + return getDeleteAutoscalingPolicyMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AutoscalingPolicyServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AutoscalingPolicyServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoscalingPolicyServiceStub(channel, callOptions); + } + }; + return AutoscalingPolicyServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AutoscalingPolicyServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AutoscalingPolicyServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoscalingPolicyServiceBlockingStub(channel, callOptions); + } + }; + return AutoscalingPolicyServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AutoscalingPolicyServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AutoscalingPolicyServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoscalingPolicyServiceFutureStub(channel, callOptions); + } + }; + return AutoscalingPolicyServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The API interface for managing autoscaling policies in the
+   * Dataproc API.
+   * 
+ */ + public abstract static class AutoscalingPolicyServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates new autoscaling policy.
+     * 
+ */ + public void createAutoscalingPolicy( + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAutoscalingPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates (replaces) autoscaling policy.
+     * Disabled check for update_mask, because all updates will be full
+     * replacements.
+     * 
+ */ + public void updateAutoscalingPolicy( + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAutoscalingPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves autoscaling policy.
+     * 
+ */ + public void getAutoscalingPolicy( + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAutoscalingPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists autoscaling policies in the project.
+     * 
+ */ + public void listAutoscalingPolicies( + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAutoscalingPoliciesMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an autoscaling policy. It is an error to delete an autoscaling
+     * policy that is in use by one or more clusters.
+     * 
+ */ + public void deleteAutoscalingPolicy( + com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAutoscalingPolicyMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateAutoscalingPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1.AutoscalingPolicy>( + this, METHODID_CREATE_AUTOSCALING_POLICY))) + .addMethod( + getUpdateAutoscalingPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1.AutoscalingPolicy>( + this, METHODID_UPDATE_AUTOSCALING_POLICY))) + .addMethod( + getGetAutoscalingPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1.AutoscalingPolicy>( + this, METHODID_GET_AUTOSCALING_POLICY))) + .addMethod( + getListAutoscalingPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest, + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse>( + this, METHODID_LIST_AUTOSCALING_POLICIES))) + .addMethod( + getDeleteAutoscalingPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_AUTOSCALING_POLICY))) + .build(); + } + } + + /** + * + * + *
+   * The API interface for managing autoscaling policies in the
+   * Dataproc API.
+   * 
+ */ + public static final class AutoscalingPolicyServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AutoscalingPolicyServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AutoscalingPolicyServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoscalingPolicyServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates new autoscaling policy.
+     * 
+ */ + public void createAutoscalingPolicy( + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAutoscalingPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates (replaces) autoscaling policy.
+     * Disabled check for update_mask, because all updates will be full
+     * replacements.
+     * 
+ */ + public void updateAutoscalingPolicy( + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAutoscalingPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves autoscaling policy.
+     * 
+ */ + public void getAutoscalingPolicy( + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAutoscalingPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists autoscaling policies in the project.
+     * 
+ */ + public void listAutoscalingPolicies( + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAutoscalingPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an autoscaling policy. It is an error to delete an autoscaling
+     * policy that is in use by one or more clusters.
+     * 
+ */ + public void deleteAutoscalingPolicy( + com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAutoscalingPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * The API interface for managing autoscaling policies in the
+   * Dataproc API.
+   * 
+ */ + public static final class AutoscalingPolicyServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AutoscalingPolicyServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AutoscalingPolicyServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoscalingPolicyServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates new autoscaling policy.
+     * 
+ */ + public com.google.cloud.dataproc.v1.AutoscalingPolicy createAutoscalingPolicy( + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAutoscalingPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates (replaces) autoscaling policy.
+     * Disabled check for update_mask, because all updates will be full
+     * replacements.
+     * 
+ */ + public com.google.cloud.dataproc.v1.AutoscalingPolicy updateAutoscalingPolicy( + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAutoscalingPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves autoscaling policy.
+     * 
+ */ + public com.google.cloud.dataproc.v1.AutoscalingPolicy getAutoscalingPolicy( + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAutoscalingPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists autoscaling policies in the project.
+     * 
+ */ + public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse listAutoscalingPolicies( + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAutoscalingPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an autoscaling policy. It is an error to delete an autoscaling
+     * policy that is in use by one or more clusters.
+     * 
+ */ + public com.google.protobuf.Empty deleteAutoscalingPolicy( + com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAutoscalingPolicyMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * The API interface for managing autoscaling policies in the
+   * Dataproc API.
+   * 
+ */ + public static final class AutoscalingPolicyServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AutoscalingPolicyServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AutoscalingPolicyServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AutoscalingPolicyServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates new autoscaling policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataproc.v1.AutoscalingPolicy> + createAutoscalingPolicy( + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAutoscalingPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates (replaces) autoscaling policy.
+     * Disabled check for update_mask, because all updates will be full
+     * replacements.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataproc.v1.AutoscalingPolicy> + updateAutoscalingPolicy( + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAutoscalingPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves autoscaling policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataproc.v1.AutoscalingPolicy> + getAutoscalingPolicy(com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAutoscalingPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists autoscaling policies in the project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse> + listAutoscalingPolicies( + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAutoscalingPoliciesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an autoscaling policy. It is an error to delete an autoscaling
+     * policy that is in use by one or more clusters.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAutoscalingPolicy( + com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAutoscalingPolicyMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_AUTOSCALING_POLICY = 0; + private static final int METHODID_UPDATE_AUTOSCALING_POLICY = 1; + private static final int METHODID_GET_AUTOSCALING_POLICY = 2; + private static final int METHODID_LIST_AUTOSCALING_POLICIES = 3; + private static final int METHODID_DELETE_AUTOSCALING_POLICY = 4; + + 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 AutoscalingPolicyServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AutoscalingPolicyServiceImplBase 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_AUTOSCALING_POLICY: + serviceImpl.createAutoscalingPolicy( + (com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_AUTOSCALING_POLICY: + serviceImpl.updateAutoscalingPolicy( + (com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_AUTOSCALING_POLICY: + serviceImpl.getAutoscalingPolicy( + (com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_AUTOSCALING_POLICIES: + serviceImpl.listAutoscalingPolicies( + (com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse>) + responseObserver); + break; + case METHODID_DELETE_AUTOSCALING_POLICY: + serviceImpl.deleteAutoscalingPolicy( + (com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) 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 AutoscalingPolicyServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AutoscalingPolicyServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AutoscalingPolicyService"); + } + } + + private static final class AutoscalingPolicyServiceFileDescriptorSupplier + extends AutoscalingPolicyServiceBaseDescriptorSupplier { + AutoscalingPolicyServiceFileDescriptorSupplier() {} + } + + private static final class AutoscalingPolicyServiceMethodDescriptorSupplier + extends AutoscalingPolicyServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AutoscalingPolicyServiceMethodDescriptorSupplier(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 (AutoscalingPolicyServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AutoscalingPolicyServiceFileDescriptorSupplier()) + .addMethod(getCreateAutoscalingPolicyMethod()) + .addMethod(getUpdateAutoscalingPolicyMethod()) + .addMethod(getGetAutoscalingPolicyMethod()) + .addMethod(getListAutoscalingPoliciesMethod()) + .addMethod(getDeleteAutoscalingPolicyMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java new file mode 100644 index 000000000000..a188740cb052 --- /dev/null +++ b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java @@ -0,0 +1,694 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.dataproc.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The BatchController provides methods to manage batch workloads.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dataproc/v1/batches.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BatchControllerGrpc { + + private BatchControllerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dataproc.v1.BatchController"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.CreateBatchRequest, com.google.longrunning.Operation> + getCreateBatchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBatch", + requestType = com.google.cloud.dataproc.v1.CreateBatchRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.CreateBatchRequest, com.google.longrunning.Operation> + getCreateBatchMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.CreateBatchRequest, com.google.longrunning.Operation> + getCreateBatchMethod; + if ((getCreateBatchMethod = BatchControllerGrpc.getCreateBatchMethod) == null) { + synchronized (BatchControllerGrpc.class) { + if ((getCreateBatchMethod = BatchControllerGrpc.getCreateBatchMethod) == null) { + BatchControllerGrpc.getCreateBatchMethod = + getCreateBatchMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBatch")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.CreateBatchRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BatchControllerMethodDescriptorSupplier("CreateBatch")) + .build(); + } + } + } + return getCreateBatchMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.GetBatchRequest, com.google.cloud.dataproc.v1.Batch> + getGetBatchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBatch", + requestType = com.google.cloud.dataproc.v1.GetBatchRequest.class, + responseType = com.google.cloud.dataproc.v1.Batch.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.GetBatchRequest, com.google.cloud.dataproc.v1.Batch> + getGetBatchMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.GetBatchRequest, com.google.cloud.dataproc.v1.Batch> + getGetBatchMethod; + if ((getGetBatchMethod = BatchControllerGrpc.getGetBatchMethod) == null) { + synchronized (BatchControllerGrpc.class) { + if ((getGetBatchMethod = BatchControllerGrpc.getGetBatchMethod) == null) { + BatchControllerGrpc.getGetBatchMethod = + getGetBatchMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBatch")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.GetBatchRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.Batch.getDefaultInstance())) + .setSchemaDescriptor(new BatchControllerMethodDescriptorSupplier("GetBatch")) + .build(); + } + } + } + return getGetBatchMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.ListBatchesRequest, + com.google.cloud.dataproc.v1.ListBatchesResponse> + getListBatchesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBatches", + requestType = com.google.cloud.dataproc.v1.ListBatchesRequest.class, + responseType = com.google.cloud.dataproc.v1.ListBatchesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.ListBatchesRequest, + com.google.cloud.dataproc.v1.ListBatchesResponse> + getListBatchesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.ListBatchesRequest, + com.google.cloud.dataproc.v1.ListBatchesResponse> + getListBatchesMethod; + if ((getListBatchesMethod = BatchControllerGrpc.getListBatchesMethod) == null) { + synchronized (BatchControllerGrpc.class) { + if ((getListBatchesMethod = BatchControllerGrpc.getListBatchesMethod) == null) { + BatchControllerGrpc.getListBatchesMethod = + getListBatchesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBatches")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.ListBatchesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.ListBatchesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BatchControllerMethodDescriptorSupplier("ListBatches")) + .build(); + } + } + } + return getListBatchesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.DeleteBatchRequest, com.google.protobuf.Empty> + getDeleteBatchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBatch", + requestType = com.google.cloud.dataproc.v1.DeleteBatchRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.DeleteBatchRequest, com.google.protobuf.Empty> + getDeleteBatchMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.DeleteBatchRequest, com.google.protobuf.Empty> + getDeleteBatchMethod; + if ((getDeleteBatchMethod = BatchControllerGrpc.getDeleteBatchMethod) == null) { + synchronized (BatchControllerGrpc.class) { + if ((getDeleteBatchMethod = BatchControllerGrpc.getDeleteBatchMethod) == null) { + BatchControllerGrpc.getDeleteBatchMethod = + getDeleteBatchMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBatch")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.DeleteBatchRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new BatchControllerMethodDescriptorSupplier("DeleteBatch")) + .build(); + } + } + } + return getDeleteBatchMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static BatchControllerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BatchControllerStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BatchControllerStub(channel, callOptions); + } + }; + return BatchControllerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BatchControllerBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BatchControllerBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BatchControllerBlockingStub(channel, callOptions); + } + }; + return BatchControllerBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static BatchControllerFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BatchControllerFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BatchControllerFutureStub(channel, callOptions); + } + }; + return BatchControllerFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The BatchController provides methods to manage batch workloads.
+   * 
+ */ + public abstract static class BatchControllerImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a batch workload that executes asynchronously.
+     * 
+ */ + public void createBatch( + com.google.cloud.dataproc.v1.CreateBatchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBatchMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the batch workload resource representation.
+     * 
+ */ + public void getBatch( + com.google.cloud.dataproc.v1.GetBatchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBatchMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists batch workloads.
+     * 
+ */ + public void listBatches( + com.google.cloud.dataproc.v1.ListBatchesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBatchesMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the batch workload resource. If the batch is not in terminal state,
+     * the delete fails and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public void deleteBatch( + com.google.cloud.dataproc.v1.DeleteBatchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBatchMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateBatchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.CreateBatchRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_BATCH))) + .addMethod( + getGetBatchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.GetBatchRequest, + com.google.cloud.dataproc.v1.Batch>(this, METHODID_GET_BATCH))) + .addMethod( + getListBatchesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.ListBatchesRequest, + com.google.cloud.dataproc.v1.ListBatchesResponse>( + this, METHODID_LIST_BATCHES))) + .addMethod( + getDeleteBatchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.DeleteBatchRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_BATCH))) + .build(); + } + } + + /** + * + * + *
+   * The BatchController provides methods to manage batch workloads.
+   * 
+ */ + public static final class BatchControllerStub + extends io.grpc.stub.AbstractAsyncStub { + private BatchControllerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BatchControllerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BatchControllerStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a batch workload that executes asynchronously.
+     * 
+ */ + public void createBatch( + com.google.cloud.dataproc.v1.CreateBatchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBatchMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the batch workload resource representation.
+     * 
+ */ + public void getBatch( + com.google.cloud.dataproc.v1.GetBatchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBatchMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists batch workloads.
+     * 
+ */ + public void listBatches( + com.google.cloud.dataproc.v1.ListBatchesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBatchesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the batch workload resource. If the batch is not in terminal state,
+     * the delete fails and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public void deleteBatch( + com.google.cloud.dataproc.v1.DeleteBatchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBatchMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * The BatchController provides methods to manage batch workloads.
+   * 
+ */ + public static final class BatchControllerBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private BatchControllerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BatchControllerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BatchControllerBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a batch workload that executes asynchronously.
+     * 
+ */ + public com.google.longrunning.Operation createBatch( + com.google.cloud.dataproc.v1.CreateBatchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBatchMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the batch workload resource representation.
+     * 
+ */ + public com.google.cloud.dataproc.v1.Batch getBatch( + com.google.cloud.dataproc.v1.GetBatchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBatchMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists batch workloads.
+     * 
+ */ + public com.google.cloud.dataproc.v1.ListBatchesResponse listBatches( + com.google.cloud.dataproc.v1.ListBatchesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBatchesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the batch workload resource. If the batch is not in terminal state,
+     * the delete fails and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public com.google.protobuf.Empty deleteBatch( + com.google.cloud.dataproc.v1.DeleteBatchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBatchMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * The BatchController provides methods to manage batch workloads.
+   * 
+ */ + public static final class BatchControllerFutureStub + extends io.grpc.stub.AbstractFutureStub { + private BatchControllerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BatchControllerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BatchControllerFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a batch workload that executes asynchronously.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createBatch(com.google.cloud.dataproc.v1.CreateBatchRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBatchMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the batch workload resource representation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getBatch(com.google.cloud.dataproc.v1.GetBatchRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBatchMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists batch workloads.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataproc.v1.ListBatchesResponse> + listBatches(com.google.cloud.dataproc.v1.ListBatchesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBatchesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the batch workload resource. If the batch is not in terminal state,
+     * the delete fails and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteBatch(com.google.cloud.dataproc.v1.DeleteBatchRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBatchMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_BATCH = 0; + private static final int METHODID_GET_BATCH = 1; + private static final int METHODID_LIST_BATCHES = 2; + private static final int METHODID_DELETE_BATCH = 3; + + 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 BatchControllerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BatchControllerImplBase 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_BATCH: + serviceImpl.createBatch( + (com.google.cloud.dataproc.v1.CreateBatchRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BATCH: + serviceImpl.getBatch( + (com.google.cloud.dataproc.v1.GetBatchRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BATCHES: + serviceImpl.listBatches( + (com.google.cloud.dataproc.v1.ListBatchesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_BATCH: + serviceImpl.deleteBatch( + (com.google.cloud.dataproc.v1.DeleteBatchRequest) 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 BatchControllerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BatchControllerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BatchController"); + } + } + + private static final class BatchControllerFileDescriptorSupplier + extends BatchControllerBaseDescriptorSupplier { + BatchControllerFileDescriptorSupplier() {} + } + + private static final class BatchControllerMethodDescriptorSupplier + extends BatchControllerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BatchControllerMethodDescriptorSupplier(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 (BatchControllerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BatchControllerFileDescriptorSupplier()) + .addMethod(getCreateBatchMethod()) + .addMethod(getGetBatchMethod()) + .addMethod(getListBatchesMethod()) + .addMethod(getDeleteBatchMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java similarity index 50% rename from owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java rename to java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java index 280b78d15ea4..0b9c78721ff4 100644 --- a/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java +++ b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.dataproc.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * The ClusterControllerService provides methods to manage clusters
  * of Compute Engine instances.
@@ -19,319 +36,422 @@ private ClusterControllerGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.dataproc.v1.ClusterController";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getCreateClusterMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.CreateClusterRequest, com.google.longrunning.Operation>
+      getCreateClusterMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateCluster",
       requestType = com.google.cloud.dataproc.v1.CreateClusterRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateClusterMethod() {
-    io.grpc.MethodDescriptor getCreateClusterMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.CreateClusterRequest, com.google.longrunning.Operation>
+      getCreateClusterMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.dataproc.v1.CreateClusterRequest, com.google.longrunning.Operation>
+        getCreateClusterMethod;
     if ((getCreateClusterMethod = ClusterControllerGrpc.getCreateClusterMethod) == null) {
       synchronized (ClusterControllerGrpc.class) {
         if ((getCreateClusterMethod = ClusterControllerGrpc.getCreateClusterMethod) == null) {
-          ClusterControllerGrpc.getCreateClusterMethod = getCreateClusterMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCluster"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.CreateClusterRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new ClusterControllerMethodDescriptorSupplier("CreateCluster"))
-              .build();
+          ClusterControllerGrpc.getCreateClusterMethod =
+              getCreateClusterMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCluster"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.CreateClusterRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ClusterControllerMethodDescriptorSupplier("CreateCluster"))
+                      .build();
         }
       }
     }
     return getCreateClusterMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateClusterMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.UpdateClusterRequest, com.google.longrunning.Operation>
+      getUpdateClusterMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateCluster",
       requestType = com.google.cloud.dataproc.v1.UpdateClusterRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateClusterMethod() {
-    io.grpc.MethodDescriptor getUpdateClusterMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.UpdateClusterRequest, com.google.longrunning.Operation>
+      getUpdateClusterMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.dataproc.v1.UpdateClusterRequest, com.google.longrunning.Operation>
+        getUpdateClusterMethod;
     if ((getUpdateClusterMethod = ClusterControllerGrpc.getUpdateClusterMethod) == null) {
       synchronized (ClusterControllerGrpc.class) {
         if ((getUpdateClusterMethod = ClusterControllerGrpc.getUpdateClusterMethod) == null) {
-          ClusterControllerGrpc.getUpdateClusterMethod = getUpdateClusterMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCluster"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.UpdateClusterRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new ClusterControllerMethodDescriptorSupplier("UpdateCluster"))
-              .build();
+          ClusterControllerGrpc.getUpdateClusterMethod =
+              getUpdateClusterMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCluster"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.UpdateClusterRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ClusterControllerMethodDescriptorSupplier("UpdateCluster"))
+                      .build();
         }
       }
     }
     return getUpdateClusterMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getStopClusterMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.StopClusterRequest, com.google.longrunning.Operation>
+      getStopClusterMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "StopCluster",
       requestType = com.google.cloud.dataproc.v1.StopClusterRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getStopClusterMethod() {
-    io.grpc.MethodDescriptor getStopClusterMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.StopClusterRequest, com.google.longrunning.Operation>
+      getStopClusterMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.dataproc.v1.StopClusterRequest, com.google.longrunning.Operation>
+        getStopClusterMethod;
     if ((getStopClusterMethod = ClusterControllerGrpc.getStopClusterMethod) == null) {
       synchronized (ClusterControllerGrpc.class) {
         if ((getStopClusterMethod = ClusterControllerGrpc.getStopClusterMethod) == null) {
-          ClusterControllerGrpc.getStopClusterMethod = getStopClusterMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopCluster"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.StopClusterRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new ClusterControllerMethodDescriptorSupplier("StopCluster"))
-              .build();
+          ClusterControllerGrpc.getStopClusterMethod =
+              getStopClusterMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopCluster"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.StopClusterRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ClusterControllerMethodDescriptorSupplier("StopCluster"))
+                      .build();
         }
       }
     }
     return getStopClusterMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getStartClusterMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.StartClusterRequest, com.google.longrunning.Operation>
+      getStartClusterMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "StartCluster",
       requestType = com.google.cloud.dataproc.v1.StartClusterRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getStartClusterMethod() {
-    io.grpc.MethodDescriptor getStartClusterMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.StartClusterRequest, com.google.longrunning.Operation>
+      getStartClusterMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.dataproc.v1.StartClusterRequest, com.google.longrunning.Operation>
+        getStartClusterMethod;
     if ((getStartClusterMethod = ClusterControllerGrpc.getStartClusterMethod) == null) {
       synchronized (ClusterControllerGrpc.class) {
         if ((getStartClusterMethod = ClusterControllerGrpc.getStartClusterMethod) == null) {
-          ClusterControllerGrpc.getStartClusterMethod = getStartClusterMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartCluster"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.StartClusterRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new ClusterControllerMethodDescriptorSupplier("StartCluster"))
-              .build();
+          ClusterControllerGrpc.getStartClusterMethod =
+              getStartClusterMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartCluster"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.StartClusterRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ClusterControllerMethodDescriptorSupplier("StartCluster"))
+                      .build();
         }
       }
     }
     return getStartClusterMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteClusterMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.DeleteClusterRequest, com.google.longrunning.Operation>
+      getDeleteClusterMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteCluster",
       requestType = com.google.cloud.dataproc.v1.DeleteClusterRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteClusterMethod() {
-    io.grpc.MethodDescriptor getDeleteClusterMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.DeleteClusterRequest, com.google.longrunning.Operation>
+      getDeleteClusterMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.dataproc.v1.DeleteClusterRequest, com.google.longrunning.Operation>
+        getDeleteClusterMethod;
     if ((getDeleteClusterMethod = ClusterControllerGrpc.getDeleteClusterMethod) == null) {
       synchronized (ClusterControllerGrpc.class) {
         if ((getDeleteClusterMethod = ClusterControllerGrpc.getDeleteClusterMethod) == null) {
-          ClusterControllerGrpc.getDeleteClusterMethod = getDeleteClusterMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCluster"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.DeleteClusterRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new ClusterControllerMethodDescriptorSupplier("DeleteCluster"))
-              .build();
+          ClusterControllerGrpc.getDeleteClusterMethod =
+              getDeleteClusterMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCluster"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.DeleteClusterRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ClusterControllerMethodDescriptorSupplier("DeleteCluster"))
+                      .build();
         }
       }
     }
     return getDeleteClusterMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetClusterMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.GetClusterRequest, com.google.cloud.dataproc.v1.Cluster>
+      getGetClusterMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetCluster",
       requestType = com.google.cloud.dataproc.v1.GetClusterRequest.class,
       responseType = com.google.cloud.dataproc.v1.Cluster.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetClusterMethod() {
-    io.grpc.MethodDescriptor getGetClusterMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.GetClusterRequest, com.google.cloud.dataproc.v1.Cluster>
+      getGetClusterMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.dataproc.v1.GetClusterRequest, com.google.cloud.dataproc.v1.Cluster>
+        getGetClusterMethod;
     if ((getGetClusterMethod = ClusterControllerGrpc.getGetClusterMethod) == null) {
       synchronized (ClusterControllerGrpc.class) {
         if ((getGetClusterMethod = ClusterControllerGrpc.getGetClusterMethod) == null) {
-          ClusterControllerGrpc.getGetClusterMethod = getGetClusterMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCluster"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.GetClusterRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.Cluster.getDefaultInstance()))
-              .setSchemaDescriptor(new ClusterControllerMethodDescriptorSupplier("GetCluster"))
-              .build();
+          ClusterControllerGrpc.getGetClusterMethod =
+              getGetClusterMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCluster"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.GetClusterRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.Cluster.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ClusterControllerMethodDescriptorSupplier("GetCluster"))
+                      .build();
         }
       }
     }
     return getGetClusterMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListClustersMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.ListClustersRequest,
+          com.google.cloud.dataproc.v1.ListClustersResponse>
+      getListClustersMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListClusters",
       requestType = com.google.cloud.dataproc.v1.ListClustersRequest.class,
       responseType = com.google.cloud.dataproc.v1.ListClustersResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListClustersMethod() {
-    io.grpc.MethodDescriptor getListClustersMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.ListClustersRequest,
+          com.google.cloud.dataproc.v1.ListClustersResponse>
+      getListClustersMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.dataproc.v1.ListClustersRequest,
+            com.google.cloud.dataproc.v1.ListClustersResponse>
+        getListClustersMethod;
     if ((getListClustersMethod = ClusterControllerGrpc.getListClustersMethod) == null) {
       synchronized (ClusterControllerGrpc.class) {
         if ((getListClustersMethod = ClusterControllerGrpc.getListClustersMethod) == null) {
-          ClusterControllerGrpc.getListClustersMethod = getListClustersMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListClusters"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.ListClustersRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.ListClustersResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ClusterControllerMethodDescriptorSupplier("ListClusters"))
-              .build();
+          ClusterControllerGrpc.getListClustersMethod =
+              getListClustersMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListClusters"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.ListClustersRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.ListClustersResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ClusterControllerMethodDescriptorSupplier("ListClusters"))
+                      .build();
         }
       }
     }
     return getListClustersMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDiagnoseClusterMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.DiagnoseClusterRequest, com.google.longrunning.Operation>
+      getDiagnoseClusterMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DiagnoseCluster",
       requestType = com.google.cloud.dataproc.v1.DiagnoseClusterRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDiagnoseClusterMethod() {
-    io.grpc.MethodDescriptor getDiagnoseClusterMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.DiagnoseClusterRequest, com.google.longrunning.Operation>
+      getDiagnoseClusterMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.dataproc.v1.DiagnoseClusterRequest, com.google.longrunning.Operation>
+        getDiagnoseClusterMethod;
     if ((getDiagnoseClusterMethod = ClusterControllerGrpc.getDiagnoseClusterMethod) == null) {
       synchronized (ClusterControllerGrpc.class) {
         if ((getDiagnoseClusterMethod = ClusterControllerGrpc.getDiagnoseClusterMethod) == null) {
-          ClusterControllerGrpc.getDiagnoseClusterMethod = getDiagnoseClusterMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DiagnoseCluster"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.DiagnoseClusterRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new ClusterControllerMethodDescriptorSupplier("DiagnoseCluster"))
-              .build();
+          ClusterControllerGrpc.getDiagnoseClusterMethod =
+              getDiagnoseClusterMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DiagnoseCluster"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.DiagnoseClusterRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ClusterControllerMethodDescriptorSupplier("DiagnoseCluster"))
+                      .build();
         }
       }
     }
     return getDiagnoseClusterMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static ClusterControllerStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ClusterControllerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ClusterControllerStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ClusterControllerStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ClusterControllerStub(channel, callOptions);
+          }
+        };
     return ClusterControllerStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ClusterControllerBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static ClusterControllerBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ClusterControllerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ClusterControllerBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ClusterControllerBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ClusterControllerBlockingStub(channel, callOptions);
+          }
+        };
     return ClusterControllerBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static ClusterControllerFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static ClusterControllerFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ClusterControllerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ClusterControllerFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ClusterControllerFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ClusterControllerFutureStub(channel, callOptions);
+          }
+        };
     return ClusterControllerFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * The ClusterControllerService provides methods to manage clusters
    * of Compute Engine instances.
    * 
*/ - public static abstract class ClusterControllerImplBase implements io.grpc.BindableService { + public abstract static class ClusterControllerImplBase implements io.grpc.BindableService { /** + * + * *
      * Creates a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
      * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
      * 
*/ - public void createCluster(com.google.cloud.dataproc.v1.CreateClusterRequest request, + public void createCluster( + com.google.cloud.dataproc.v1.CreateClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateClusterMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateClusterMethod(), responseObserver); } /** + * + * *
      * Updates a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
@@ -341,64 +461,88 @@ public void createCluster(com.google.cloud.dataproc.v1.CreateClusterRequest requ
      * is returned.
      * 
*/ - public void updateCluster(com.google.cloud.dataproc.v1.UpdateClusterRequest request, + public void updateCluster( + com.google.cloud.dataproc.v1.UpdateClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateClusterMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateClusterMethod(), responseObserver); } /** + * + * *
      * Stops a cluster in a project.
      * 
*/ - public void stopCluster(com.google.cloud.dataproc.v1.StopClusterRequest request, + public void stopCluster( + com.google.cloud.dataproc.v1.StopClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopClusterMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopClusterMethod(), responseObserver); } /** + * + * *
      * Starts a cluster in a project.
      * 
*/ - public void startCluster(com.google.cloud.dataproc.v1.StartClusterRequest request, + public void startCluster( + com.google.cloud.dataproc.v1.StartClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartClusterMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartClusterMethod(), responseObserver); } /** + * + * *
      * Deletes a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
      * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
      * 
*/ - public void deleteCluster(com.google.cloud.dataproc.v1.DeleteClusterRequest request, + public void deleteCluster( + com.google.cloud.dataproc.v1.DeleteClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteClusterMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteClusterMethod(), responseObserver); } /** + * + * *
      * Gets the resource representation for a cluster in a project.
      * 
*/ - public void getCluster(com.google.cloud.dataproc.v1.GetClusterRequest request, + public void getCluster( + com.google.cloud.dataproc.v1.GetClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); } /** + * + * *
      * Lists all regions/{region}/clusters in a project alphabetically.
      * 
*/ - public void listClusters(com.google.cloud.dataproc.v1.ListClustersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListClustersMethod(), responseObserver); + public void listClusters( + com.google.cloud.dataproc.v1.ListClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListClustersMethod(), responseObserver); } /** + * + * *
      * Gets cluster diagnostic information. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
@@ -409,82 +553,80 @@ public void listClusters(com.google.cloud.dataproc.v1.ListClustersRequest reques
      * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
      * 
*/ - public void diagnoseCluster(com.google.cloud.dataproc.v1.DiagnoseClusterRequest request, + public void diagnoseCluster( + com.google.cloud.dataproc.v1.DiagnoseClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDiagnoseClusterMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDiagnoseClusterMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.CreateClusterRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_CLUSTER))) + getCreateClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.CreateClusterRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_CLUSTER))) .addMethod( - getUpdateClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.UpdateClusterRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_CLUSTER))) + getUpdateClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.UpdateClusterRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_CLUSTER))) .addMethod( - getStopClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.StopClusterRequest, - com.google.longrunning.Operation>( - this, METHODID_STOP_CLUSTER))) + getStopClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.StopClusterRequest, + com.google.longrunning.Operation>(this, METHODID_STOP_CLUSTER))) .addMethod( - getStartClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.StartClusterRequest, - com.google.longrunning.Operation>( - this, METHODID_START_CLUSTER))) + getStartClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.StartClusterRequest, + com.google.longrunning.Operation>(this, METHODID_START_CLUSTER))) .addMethod( - getDeleteClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.DeleteClusterRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_CLUSTER))) + getDeleteClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.DeleteClusterRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_CLUSTER))) .addMethod( - getGetClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.GetClusterRequest, - com.google.cloud.dataproc.v1.Cluster>( - this, METHODID_GET_CLUSTER))) + getGetClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.GetClusterRequest, + com.google.cloud.dataproc.v1.Cluster>(this, METHODID_GET_CLUSTER))) .addMethod( - getListClustersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.ListClustersRequest, - com.google.cloud.dataproc.v1.ListClustersResponse>( - this, METHODID_LIST_CLUSTERS))) + getListClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.ListClustersRequest, + com.google.cloud.dataproc.v1.ListClustersResponse>( + this, METHODID_LIST_CLUSTERS))) .addMethod( - getDiagnoseClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.DiagnoseClusterRequest, - com.google.longrunning.Operation>( - this, METHODID_DIAGNOSE_CLUSTER))) + getDiagnoseClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.DiagnoseClusterRequest, + com.google.longrunning.Operation>(this, METHODID_DIAGNOSE_CLUSTER))) .build(); } } /** + * + * *
    * The ClusterControllerService provides methods to manage clusters
    * of Compute Engine instances.
    * 
*/ - public static final class ClusterControllerStub extends io.grpc.stub.AbstractAsyncStub { - private ClusterControllerStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ClusterControllerStub + extends io.grpc.stub.AbstractAsyncStub { + private ClusterControllerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -495,19 +637,26 @@ protected ClusterControllerStub build( } /** + * + * *
      * Creates a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
      * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
      * 
*/ - public void createCluster(com.google.cloud.dataproc.v1.CreateClusterRequest request, + public void createCluster( + com.google.cloud.dataproc.v1.CreateClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateClusterMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
@@ -517,70 +666,99 @@ public void createCluster(com.google.cloud.dataproc.v1.CreateClusterRequest requ
      * is returned.
      * 
*/ - public void updateCluster(com.google.cloud.dataproc.v1.UpdateClusterRequest request, + public void updateCluster( + com.google.cloud.dataproc.v1.UpdateClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Stops a cluster in a project.
      * 
*/ - public void stopCluster(com.google.cloud.dataproc.v1.StopClusterRequest request, + public void stopCluster( + com.google.cloud.dataproc.v1.StopClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopClusterMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getStopClusterMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Starts a cluster in a project.
      * 
*/ - public void startCluster(com.google.cloud.dataproc.v1.StartClusterRequest request, + public void startCluster( + com.google.cloud.dataproc.v1.StartClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartClusterMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getStartClusterMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
      * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
      * 
*/ - public void deleteCluster(com.google.cloud.dataproc.v1.DeleteClusterRequest request, + public void deleteCluster( + com.google.cloud.dataproc.v1.DeleteClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets the resource representation for a cluster in a project.
      * 
*/ - public void getCluster(com.google.cloud.dataproc.v1.GetClusterRequest request, + public void getCluster( + com.google.cloud.dataproc.v1.GetClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Lists all regions/{region}/clusters in a project alphabetically.
      * 
*/ - public void listClusters(com.google.cloud.dataproc.v1.ListClustersRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listClusters( + com.google.cloud.dataproc.v1.ListClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListClustersMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListClustersMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets cluster diagnostic information. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
@@ -591,20 +769,26 @@ public void listClusters(com.google.cloud.dataproc.v1.ListClustersRequest reques
      * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
      * 
*/ - public void diagnoseCluster(com.google.cloud.dataproc.v1.DiagnoseClusterRequest request, + public void diagnoseCluster( + com.google.cloud.dataproc.v1.DiagnoseClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDiagnoseClusterMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDiagnoseClusterMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * The ClusterControllerService provides methods to manage clusters
    * of Compute Engine instances.
    * 
*/ - public static final class ClusterControllerBlockingStub extends io.grpc.stub.AbstractBlockingStub { + public static final class ClusterControllerBlockingStub + extends io.grpc.stub.AbstractBlockingStub { private ClusterControllerBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -617,18 +801,23 @@ protected ClusterControllerBlockingStub build( } /** + * + * *
      * Creates a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
      * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
      * 
*/ - public com.google.longrunning.Operation createCluster(com.google.cloud.dataproc.v1.CreateClusterRequest request) { + public com.google.longrunning.Operation createCluster( + com.google.cloud.dataproc.v1.CreateClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } /** + * + * *
      * Updates a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
@@ -638,64 +827,82 @@ public com.google.longrunning.Operation createCluster(com.google.cloud.dataproc.
      * is returned.
      * 
*/ - public com.google.longrunning.Operation updateCluster(com.google.cloud.dataproc.v1.UpdateClusterRequest request) { + public com.google.longrunning.Operation updateCluster( + com.google.cloud.dataproc.v1.UpdateClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } /** + * + * *
      * Stops a cluster in a project.
      * 
*/ - public com.google.longrunning.Operation stopCluster(com.google.cloud.dataproc.v1.StopClusterRequest request) { + public com.google.longrunning.Operation stopCluster( + com.google.cloud.dataproc.v1.StopClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getStopClusterMethod(), getCallOptions(), request); } /** + * + * *
      * Starts a cluster in a project.
      * 
*/ - public com.google.longrunning.Operation startCluster(com.google.cloud.dataproc.v1.StartClusterRequest request) { + public com.google.longrunning.Operation startCluster( + com.google.cloud.dataproc.v1.StartClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getStartClusterMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
      * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
      * 
*/ - public com.google.longrunning.Operation deleteCluster(com.google.cloud.dataproc.v1.DeleteClusterRequest request) { + public com.google.longrunning.Operation deleteCluster( + com.google.cloud.dataproc.v1.DeleteClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteClusterMethod(), getCallOptions(), request); } /** + * + * *
      * Gets the resource representation for a cluster in a project.
      * 
*/ - public com.google.cloud.dataproc.v1.Cluster getCluster(com.google.cloud.dataproc.v1.GetClusterRequest request) { + public com.google.cloud.dataproc.v1.Cluster getCluster( + com.google.cloud.dataproc.v1.GetClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetClusterMethod(), getCallOptions(), request); } /** + * + * *
      * Lists all regions/{region}/clusters in a project alphabetically.
      * 
*/ - public com.google.cloud.dataproc.v1.ListClustersResponse listClusters(com.google.cloud.dataproc.v1.ListClustersRequest request) { + public com.google.cloud.dataproc.v1.ListClustersResponse listClusters( + com.google.cloud.dataproc.v1.ListClustersRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListClustersMethod(), getCallOptions(), request); } /** + * + * *
      * Gets cluster diagnostic information. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
@@ -706,21 +913,24 @@ public com.google.cloud.dataproc.v1.ListClustersResponse listClusters(com.google
      * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
      * 
*/ - public com.google.longrunning.Operation diagnoseCluster(com.google.cloud.dataproc.v1.DiagnoseClusterRequest request) { + public com.google.longrunning.Operation diagnoseCluster( + com.google.cloud.dataproc.v1.DiagnoseClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDiagnoseClusterMethod(), getCallOptions(), request); } } /** + * + * *
    * The ClusterControllerService provides methods to manage clusters
    * of Compute Engine instances.
    * 
*/ - public static final class ClusterControllerFutureStub extends io.grpc.stub.AbstractFutureStub { - private ClusterControllerFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ClusterControllerFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ClusterControllerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -731,19 +941,23 @@ protected ClusterControllerFutureStub build( } /** + * + * *
      * Creates a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
      * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createCluster( - com.google.cloud.dataproc.v1.CreateClusterRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createCluster(com.google.cloud.dataproc.v1.CreateClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); } /** + * + * *
      * Updates a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
@@ -753,70 +967,83 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateCluster(
-        com.google.cloud.dataproc.v1.UpdateClusterRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        updateCluster(com.google.cloud.dataproc.v1.UpdateClusterRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Stops a cluster in a project.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture stopCluster( - com.google.cloud.dataproc.v1.StopClusterRequest request) { + public com.google.common.util.concurrent.ListenableFuture + stopCluster(com.google.cloud.dataproc.v1.StopClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getStopClusterMethod(), getCallOptions()), request); } /** + * + * *
      * Starts a cluster in a project.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture startCluster( - com.google.cloud.dataproc.v1.StartClusterRequest request) { + public com.google.common.util.concurrent.ListenableFuture + startCluster(com.google.cloud.dataproc.v1.StartClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getStartClusterMethod(), getCallOptions()), request); } /** + * + * *
      * Deletes a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
      * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture deleteCluster( - com.google.cloud.dataproc.v1.DeleteClusterRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteCluster(com.google.cloud.dataproc.v1.DeleteClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request); } /** + * + * *
      * Gets the resource representation for a cluster in a project.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getCluster( - com.google.cloud.dataproc.v1.GetClusterRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getCluster(com.google.cloud.dataproc.v1.GetClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetClusterMethod(), getCallOptions()), request); } /** + * + * *
      * Lists all regions/{region}/clusters in a project alphabetically.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listClusters( - com.google.cloud.dataproc.v1.ListClustersRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataproc.v1.ListClustersResponse> + listClusters(com.google.cloud.dataproc.v1.ListClustersRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListClustersMethod(), getCallOptions()), request); } /** + * + * *
      * Gets cluster diagnostic information. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
@@ -827,8 +1054,8 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture diagnoseCluster(
-        com.google.cloud.dataproc.v1.DiagnoseClusterRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        diagnoseCluster(com.google.cloud.dataproc.v1.DiagnoseClusterRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getDiagnoseClusterMethod(), getCallOptions()), request);
     }
@@ -843,11 +1070,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final ClusterControllerImplBase serviceImpl;
     private final int methodId;
 
@@ -861,35 +1088,44 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_CREATE_CLUSTER:
-          serviceImpl.createCluster((com.google.cloud.dataproc.v1.CreateClusterRequest) request,
+          serviceImpl.createCluster(
+              (com.google.cloud.dataproc.v1.CreateClusterRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_UPDATE_CLUSTER:
-          serviceImpl.updateCluster((com.google.cloud.dataproc.v1.UpdateClusterRequest) request,
+          serviceImpl.updateCluster(
+              (com.google.cloud.dataproc.v1.UpdateClusterRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_STOP_CLUSTER:
-          serviceImpl.stopCluster((com.google.cloud.dataproc.v1.StopClusterRequest) request,
+          serviceImpl.stopCluster(
+              (com.google.cloud.dataproc.v1.StopClusterRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_START_CLUSTER:
-          serviceImpl.startCluster((com.google.cloud.dataproc.v1.StartClusterRequest) request,
+          serviceImpl.startCluster(
+              (com.google.cloud.dataproc.v1.StartClusterRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_DELETE_CLUSTER:
-          serviceImpl.deleteCluster((com.google.cloud.dataproc.v1.DeleteClusterRequest) request,
+          serviceImpl.deleteCluster(
+              (com.google.cloud.dataproc.v1.DeleteClusterRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_GET_CLUSTER:
-          serviceImpl.getCluster((com.google.cloud.dataproc.v1.GetClusterRequest) request,
+          serviceImpl.getCluster(
+              (com.google.cloud.dataproc.v1.GetClusterRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_LIST_CLUSTERS:
-          serviceImpl.listClusters((com.google.cloud.dataproc.v1.ListClustersRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listClusters(
+              (com.google.cloud.dataproc.v1.ListClustersRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_DIAGNOSE_CLUSTER:
-          serviceImpl.diagnoseCluster((com.google.cloud.dataproc.v1.DiagnoseClusterRequest) request,
+          serviceImpl.diagnoseCluster(
+              (com.google.cloud.dataproc.v1.DiagnoseClusterRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         default:
@@ -908,8 +1144,9 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  private static abstract class ClusterControllerBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class ClusterControllerBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     ClusterControllerBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -951,17 +1188,19 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (ClusterControllerGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new ClusterControllerFileDescriptorSupplier())
-              .addMethod(getCreateClusterMethod())
-              .addMethod(getUpdateClusterMethod())
-              .addMethod(getStopClusterMethod())
-              .addMethod(getStartClusterMethod())
-              .addMethod(getDeleteClusterMethod())
-              .addMethod(getGetClusterMethod())
-              .addMethod(getListClustersMethod())
-              .addMethod(getDiagnoseClusterMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new ClusterControllerFileDescriptorSupplier())
+                      .addMethod(getCreateClusterMethod())
+                      .addMethod(getUpdateClusterMethod())
+                      .addMethod(getStopClusterMethod())
+                      .addMethod(getStartClusterMethod())
+                      .addMethod(getDeleteClusterMethod())
+                      .addMethod(getGetClusterMethod())
+                      .addMethod(getListClustersMethod())
+                      .addMethod(getDiagnoseClusterMethod())
+                      .build();
         }
       }
     }
diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java
new file mode 100644
index 000000000000..f9c7c4847fdc
--- /dev/null
+++ b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java
@@ -0,0 +1,1023 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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.dataproc.v1;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ *
+ *
+ * 
+ * The JobController provides methods to manage jobs.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dataproc/v1/jobs.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class JobControllerGrpc { + + private JobControllerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dataproc.v1.JobController"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.cloud.dataproc.v1.Job> + getSubmitJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SubmitJob", + requestType = com.google.cloud.dataproc.v1.SubmitJobRequest.class, + responseType = com.google.cloud.dataproc.v1.Job.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.cloud.dataproc.v1.Job> + getSubmitJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.cloud.dataproc.v1.Job> + getSubmitJobMethod; + if ((getSubmitJobMethod = JobControllerGrpc.getSubmitJobMethod) == null) { + synchronized (JobControllerGrpc.class) { + if ((getSubmitJobMethod = JobControllerGrpc.getSubmitJobMethod) == null) { + JobControllerGrpc.getSubmitJobMethod = + getSubmitJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubmitJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.SubmitJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.Job.getDefaultInstance())) + .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("SubmitJob")) + .build(); + } + } + } + return getSubmitJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.longrunning.Operation> + getSubmitJobAsOperationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SubmitJobAsOperation", + requestType = com.google.cloud.dataproc.v1.SubmitJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.longrunning.Operation> + getSubmitJobAsOperationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.longrunning.Operation> + getSubmitJobAsOperationMethod; + if ((getSubmitJobAsOperationMethod = JobControllerGrpc.getSubmitJobAsOperationMethod) == null) { + synchronized (JobControllerGrpc.class) { + if ((getSubmitJobAsOperationMethod = JobControllerGrpc.getSubmitJobAsOperationMethod) + == null) { + JobControllerGrpc.getSubmitJobAsOperationMethod = + getSubmitJobAsOperationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SubmitJobAsOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.SubmitJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new JobControllerMethodDescriptorSupplier("SubmitJobAsOperation")) + .build(); + } + } + } + return getSubmitJobAsOperationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.GetJobRequest, com.google.cloud.dataproc.v1.Job> + getGetJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetJob", + requestType = com.google.cloud.dataproc.v1.GetJobRequest.class, + responseType = com.google.cloud.dataproc.v1.Job.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.GetJobRequest, com.google.cloud.dataproc.v1.Job> + getGetJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.GetJobRequest, com.google.cloud.dataproc.v1.Job> + getGetJobMethod; + if ((getGetJobMethod = JobControllerGrpc.getGetJobMethod) == null) { + synchronized (JobControllerGrpc.class) { + if ((getGetJobMethod = JobControllerGrpc.getGetJobMethod) == null) { + JobControllerGrpc.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.dataproc.v1.GetJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.Job.getDefaultInstance())) + .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("GetJob")) + .build(); + } + } + } + return getGetJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.ListJobsRequest, + com.google.cloud.dataproc.v1.ListJobsResponse> + getListJobsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListJobs", + requestType = com.google.cloud.dataproc.v1.ListJobsRequest.class, + responseType = com.google.cloud.dataproc.v1.ListJobsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.ListJobsRequest, + com.google.cloud.dataproc.v1.ListJobsResponse> + getListJobsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.ListJobsRequest, + com.google.cloud.dataproc.v1.ListJobsResponse> + getListJobsMethod; + if ((getListJobsMethod = JobControllerGrpc.getListJobsMethod) == null) { + synchronized (JobControllerGrpc.class) { + if ((getListJobsMethod = JobControllerGrpc.getListJobsMethod) == null) { + JobControllerGrpc.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.dataproc.v1.ListJobsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.ListJobsResponse.getDefaultInstance())) + .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("ListJobs")) + .build(); + } + } + } + return getListJobsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.UpdateJobRequest, com.google.cloud.dataproc.v1.Job> + getUpdateJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateJob", + requestType = com.google.cloud.dataproc.v1.UpdateJobRequest.class, + responseType = com.google.cloud.dataproc.v1.Job.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.UpdateJobRequest, com.google.cloud.dataproc.v1.Job> + getUpdateJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.UpdateJobRequest, com.google.cloud.dataproc.v1.Job> + getUpdateJobMethod; + if ((getUpdateJobMethod = JobControllerGrpc.getUpdateJobMethod) == null) { + synchronized (JobControllerGrpc.class) { + if ((getUpdateJobMethod = JobControllerGrpc.getUpdateJobMethod) == null) { + JobControllerGrpc.getUpdateJobMethod = + getUpdateJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.UpdateJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.Job.getDefaultInstance())) + .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("UpdateJob")) + .build(); + } + } + } + return getUpdateJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.CancelJobRequest, com.google.cloud.dataproc.v1.Job> + getCancelJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelJob", + requestType = com.google.cloud.dataproc.v1.CancelJobRequest.class, + responseType = com.google.cloud.dataproc.v1.Job.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.CancelJobRequest, com.google.cloud.dataproc.v1.Job> + getCancelJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.CancelJobRequest, com.google.cloud.dataproc.v1.Job> + getCancelJobMethod; + if ((getCancelJobMethod = JobControllerGrpc.getCancelJobMethod) == null) { + synchronized (JobControllerGrpc.class) { + if ((getCancelJobMethod = JobControllerGrpc.getCancelJobMethod) == null) { + JobControllerGrpc.getCancelJobMethod = + getCancelJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.CancelJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.Job.getDefaultInstance())) + .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("CancelJob")) + .build(); + } + } + } + return getCancelJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.DeleteJobRequest, com.google.protobuf.Empty> + getDeleteJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteJob", + requestType = com.google.cloud.dataproc.v1.DeleteJobRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.DeleteJobRequest, com.google.protobuf.Empty> + getDeleteJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.DeleteJobRequest, com.google.protobuf.Empty> + getDeleteJobMethod; + if ((getDeleteJobMethod = JobControllerGrpc.getDeleteJobMethod) == null) { + synchronized (JobControllerGrpc.class) { + if ((getDeleteJobMethod = JobControllerGrpc.getDeleteJobMethod) == null) { + JobControllerGrpc.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.dataproc.v1.DeleteJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("DeleteJob")) + .build(); + } + } + } + return getDeleteJobMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static JobControllerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public JobControllerStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobControllerStub(channel, callOptions); + } + }; + return JobControllerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static JobControllerBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public JobControllerBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobControllerBlockingStub(channel, callOptions); + } + }; + return JobControllerBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static JobControllerFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public JobControllerFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobControllerFutureStub(channel, callOptions); + } + }; + return JobControllerFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The JobController provides methods to manage jobs.
+   * 
+ */ + public abstract static class JobControllerImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Submits a job to a cluster.
+     * 
+ */ + public void submitJob( + com.google.cloud.dataproc.v1.SubmitJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Submits job to a cluster.
+     * 
+ */ + public void submitJobAsOperation( + com.google.cloud.dataproc.v1.SubmitJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSubmitJobAsOperationMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the resource representation for a job in a project.
+     * 
+ */ + public void getJob( + com.google.cloud.dataproc.v1.GetJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists regions/{region}/jobs in a project.
+     * 
+ */ + public void listJobs( + com.google.cloud.dataproc.v1.ListJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListJobsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a job in a project.
+     * 
+ */ + public void updateJob( + com.google.cloud.dataproc.v1.UpdateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts a job cancellation request. To access the job resource
+     * after cancellation, call
+     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
+     * or
+     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
+     * 
+ */ + public void cancelJob( + com.google.cloud.dataproc.v1.CancelJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the job from the project. If the job is active, the delete fails,
+     * and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public void deleteJob( + com.google.cloud.dataproc.v1.DeleteJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteJobMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getSubmitJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.SubmitJobRequest, + com.google.cloud.dataproc.v1.Job>(this, METHODID_SUBMIT_JOB))) + .addMethod( + getSubmitJobAsOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.SubmitJobRequest, + com.google.longrunning.Operation>(this, METHODID_SUBMIT_JOB_AS_OPERATION))) + .addMethod( + getGetJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.GetJobRequest, com.google.cloud.dataproc.v1.Job>( + this, METHODID_GET_JOB))) + .addMethod( + getListJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.ListJobsRequest, + com.google.cloud.dataproc.v1.ListJobsResponse>(this, METHODID_LIST_JOBS))) + .addMethod( + getUpdateJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.UpdateJobRequest, + com.google.cloud.dataproc.v1.Job>(this, METHODID_UPDATE_JOB))) + .addMethod( + getCancelJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.CancelJobRequest, + com.google.cloud.dataproc.v1.Job>(this, METHODID_CANCEL_JOB))) + .addMethod( + getDeleteJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.DeleteJobRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_JOB))) + .build(); + } + } + + /** + * + * + *
+   * The JobController provides methods to manage jobs.
+   * 
+ */ + public static final class JobControllerStub + extends io.grpc.stub.AbstractAsyncStub { + private JobControllerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected JobControllerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobControllerStub(channel, callOptions); + } + + /** + * + * + *
+     * Submits a job to a cluster.
+     * 
+ */ + public void submitJob( + com.google.cloud.dataproc.v1.SubmitJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSubmitJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Submits job to a cluster.
+     * 
+ */ + public void submitJobAsOperation( + com.google.cloud.dataproc.v1.SubmitJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSubmitJobAsOperationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the resource representation for a job in a project.
+     * 
+ */ + public void getJob( + com.google.cloud.dataproc.v1.GetJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists regions/{region}/jobs in a project.
+     * 
+ */ + public void listJobs( + com.google.cloud.dataproc.v1.ListJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListJobsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates a job in a project.
+     * 
+ */ + public void updateJob( + com.google.cloud.dataproc.v1.UpdateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Starts a job cancellation request. To access the job resource
+     * after cancellation, call
+     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
+     * or
+     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
+     * 
+ */ + public void cancelJob( + com.google.cloud.dataproc.v1.CancelJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes the job from the project. If the job is active, the delete fails,
+     * and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public void deleteJob( + com.google.cloud.dataproc.v1.DeleteJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * + * + *
+   * The JobController provides methods to manage jobs.
+   * 
+ */ + public static final class JobControllerBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private JobControllerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected JobControllerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobControllerBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Submits a job to a cluster.
+     * 
+ */ + public com.google.cloud.dataproc.v1.Job submitJob( + com.google.cloud.dataproc.v1.SubmitJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSubmitJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Submits job to a cluster.
+     * 
+ */ + public com.google.longrunning.Operation submitJobAsOperation( + com.google.cloud.dataproc.v1.SubmitJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSubmitJobAsOperationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the resource representation for a job in a project.
+     * 
+ */ + public com.google.cloud.dataproc.v1.Job getJob( + com.google.cloud.dataproc.v1.GetJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists regions/{region}/jobs in a project.
+     * 
+ */ + public com.google.cloud.dataproc.v1.ListJobsResponse listJobs( + com.google.cloud.dataproc.v1.ListJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListJobsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a job in a project.
+     * 
+ */ + public com.google.cloud.dataproc.v1.Job updateJob( + com.google.cloud.dataproc.v1.UpdateJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts a job cancellation request. To access the job resource
+     * after cancellation, call
+     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
+     * or
+     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
+     * 
+ */ + public com.google.cloud.dataproc.v1.Job cancelJob( + com.google.cloud.dataproc.v1.CancelJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the job from the project. If the job is active, the delete fails,
+     * and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public com.google.protobuf.Empty deleteJob( + com.google.cloud.dataproc.v1.DeleteJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteJobMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * The JobController provides methods to manage jobs.
+   * 
+ */ + public static final class JobControllerFutureStub + extends io.grpc.stub.AbstractFutureStub { + private JobControllerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected JobControllerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobControllerFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Submits a job to a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + submitJob(com.google.cloud.dataproc.v1.SubmitJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSubmitJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Submits job to a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + submitJobAsOperation(com.google.cloud.dataproc.v1.SubmitJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSubmitJobAsOperationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the resource representation for a job in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getJob(com.google.cloud.dataproc.v1.GetJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists regions/{region}/jobs in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataproc.v1.ListJobsResponse> + listJobs(com.google.cloud.dataproc.v1.ListJobsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListJobsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a job in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateJob(com.google.cloud.dataproc.v1.UpdateJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts a job cancellation request. To access the job resource
+     * after cancellation, call
+     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
+     * or
+     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + cancelJob(com.google.cloud.dataproc.v1.CancelJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the job from the project. If the job is active, the delete fails,
+     * and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteJob( + com.google.cloud.dataproc.v1.DeleteJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_SUBMIT_JOB = 0; + private static final int METHODID_SUBMIT_JOB_AS_OPERATION = 1; + private static final int METHODID_GET_JOB = 2; + private static final int METHODID_LIST_JOBS = 3; + private static final int METHODID_UPDATE_JOB = 4; + private static final int METHODID_CANCEL_JOB = 5; + private static final int METHODID_DELETE_JOB = 6; + + 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 JobControllerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(JobControllerImplBase 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_SUBMIT_JOB: + serviceImpl.submitJob( + (com.google.cloud.dataproc.v1.SubmitJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SUBMIT_JOB_AS_OPERATION: + serviceImpl.submitJobAsOperation( + (com.google.cloud.dataproc.v1.SubmitJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_JOB: + serviceImpl.getJob( + (com.google.cloud.dataproc.v1.GetJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_JOBS: + serviceImpl.listJobs( + (com.google.cloud.dataproc.v1.ListJobsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_JOB: + serviceImpl.updateJob( + (com.google.cloud.dataproc.v1.UpdateJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CANCEL_JOB: + serviceImpl.cancelJob( + (com.google.cloud.dataproc.v1.CancelJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_JOB: + serviceImpl.deleteJob( + (com.google.cloud.dataproc.v1.DeleteJobRequest) 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 JobControllerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + JobControllerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("JobController"); + } + } + + private static final class JobControllerFileDescriptorSupplier + extends JobControllerBaseDescriptorSupplier { + JobControllerFileDescriptorSupplier() {} + } + + private static final class JobControllerMethodDescriptorSupplier + extends JobControllerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + JobControllerMethodDescriptorSupplier(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 (JobControllerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new JobControllerFileDescriptorSupplier()) + .addMethod(getSubmitJobMethod()) + .addMethod(getSubmitJobAsOperationMethod()) + .addMethod(getGetJobMethod()) + .addMethod(getListJobsMethod()) + .addMethod(getUpdateJobMethod()) + .addMethod(getCancelJobMethod()) + .addMethod(getDeleteJobMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerGrpc.java b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerGrpc.java similarity index 52% rename from owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerGrpc.java rename to java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerGrpc.java index 31f7f8222503..065e504f7638 100644 --- a/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerGrpc.java +++ b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.dataproc.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * The `NodeGroupControllerService` provides methods to manage node groups
  * of Compute Engine managed instances.
@@ -19,222 +36,270 @@ private NodeGroupControllerGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.dataproc.v1.NodeGroupController";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getCreateNodeGroupMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.CreateNodeGroupRequest, com.google.longrunning.Operation>
+      getCreateNodeGroupMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateNodeGroup",
       requestType = com.google.cloud.dataproc.v1.CreateNodeGroupRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateNodeGroupMethod() {
-    io.grpc.MethodDescriptor getCreateNodeGroupMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.CreateNodeGroupRequest, com.google.longrunning.Operation>
+      getCreateNodeGroupMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.dataproc.v1.CreateNodeGroupRequest, com.google.longrunning.Operation>
+        getCreateNodeGroupMethod;
     if ((getCreateNodeGroupMethod = NodeGroupControllerGrpc.getCreateNodeGroupMethod) == null) {
       synchronized (NodeGroupControllerGrpc.class) {
         if ((getCreateNodeGroupMethod = NodeGroupControllerGrpc.getCreateNodeGroupMethod) == null) {
-          NodeGroupControllerGrpc.getCreateNodeGroupMethod = getCreateNodeGroupMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNodeGroup"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.CreateNodeGroupRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new NodeGroupControllerMethodDescriptorSupplier("CreateNodeGroup"))
-              .build();
+          NodeGroupControllerGrpc.getCreateNodeGroupMethod =
+              getCreateNodeGroupMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNodeGroup"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.CreateNodeGroupRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new NodeGroupControllerMethodDescriptorSupplier("CreateNodeGroup"))
+                      .build();
         }
       }
     }
     return getCreateNodeGroupMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getResizeNodeGroupMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.ResizeNodeGroupRequest, com.google.longrunning.Operation>
+      getResizeNodeGroupMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ResizeNodeGroup",
       requestType = com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getResizeNodeGroupMethod() {
-    io.grpc.MethodDescriptor getResizeNodeGroupMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.ResizeNodeGroupRequest, com.google.longrunning.Operation>
+      getResizeNodeGroupMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.dataproc.v1.ResizeNodeGroupRequest, com.google.longrunning.Operation>
+        getResizeNodeGroupMethod;
     if ((getResizeNodeGroupMethod = NodeGroupControllerGrpc.getResizeNodeGroupMethod) == null) {
       synchronized (NodeGroupControllerGrpc.class) {
         if ((getResizeNodeGroupMethod = NodeGroupControllerGrpc.getResizeNodeGroupMethod) == null) {
-          NodeGroupControllerGrpc.getResizeNodeGroupMethod = getResizeNodeGroupMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResizeNodeGroup"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new NodeGroupControllerMethodDescriptorSupplier("ResizeNodeGroup"))
-              .build();
+          NodeGroupControllerGrpc.getResizeNodeGroupMethod =
+              getResizeNodeGroupMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResizeNodeGroup"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.ResizeNodeGroupRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new NodeGroupControllerMethodDescriptorSupplier("ResizeNodeGroup"))
+                      .build();
         }
       }
     }
     return getResizeNodeGroupMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetNodeGroupMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.GetNodeGroupRequest, com.google.cloud.dataproc.v1.NodeGroup>
+      getGetNodeGroupMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetNodeGroup",
       requestType = com.google.cloud.dataproc.v1.GetNodeGroupRequest.class,
       responseType = com.google.cloud.dataproc.v1.NodeGroup.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetNodeGroupMethod() {
-    io.grpc.MethodDescriptor getGetNodeGroupMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.GetNodeGroupRequest, com.google.cloud.dataproc.v1.NodeGroup>
+      getGetNodeGroupMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.dataproc.v1.GetNodeGroupRequest,
+            com.google.cloud.dataproc.v1.NodeGroup>
+        getGetNodeGroupMethod;
     if ((getGetNodeGroupMethod = NodeGroupControllerGrpc.getGetNodeGroupMethod) == null) {
       synchronized (NodeGroupControllerGrpc.class) {
         if ((getGetNodeGroupMethod = NodeGroupControllerGrpc.getGetNodeGroupMethod) == null) {
-          NodeGroupControllerGrpc.getGetNodeGroupMethod = getGetNodeGroupMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNodeGroup"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.GetNodeGroupRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance()))
-              .setSchemaDescriptor(new NodeGroupControllerMethodDescriptorSupplier("GetNodeGroup"))
-              .build();
+          NodeGroupControllerGrpc.getGetNodeGroupMethod =
+              getGetNodeGroupMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNodeGroup"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.GetNodeGroupRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new NodeGroupControllerMethodDescriptorSupplier("GetNodeGroup"))
+                      .build();
         }
       }
     }
     return getGetNodeGroupMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static NodeGroupControllerStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public NodeGroupControllerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new NodeGroupControllerStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public NodeGroupControllerStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new NodeGroupControllerStub(channel, callOptions);
+          }
+        };
     return NodeGroupControllerStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static NodeGroupControllerBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static NodeGroupControllerBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public NodeGroupControllerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new NodeGroupControllerBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public NodeGroupControllerBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new NodeGroupControllerBlockingStub(channel, callOptions);
+          }
+        };
     return NodeGroupControllerBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static NodeGroupControllerFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static NodeGroupControllerFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public NodeGroupControllerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new NodeGroupControllerFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public NodeGroupControllerFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new NodeGroupControllerFutureStub(channel, callOptions);
+          }
+        };
     return NodeGroupControllerFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * The `NodeGroupControllerService` provides methods to manage node groups
    * of Compute Engine managed instances.
    * 
*/ - public static abstract class NodeGroupControllerImplBase implements io.grpc.BindableService { + public abstract static class NodeGroupControllerImplBase implements io.grpc.BindableService { /** + * + * *
      * Creates a node group in a cluster. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] is
      * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
      * 
*/ - public void createNodeGroup(com.google.cloud.dataproc.v1.CreateNodeGroupRequest request, + public void createNodeGroup( + com.google.cloud.dataproc.v1.CreateNodeGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNodeGroupMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateNodeGroupMethod(), responseObserver); } /** + * + * *
      * Resizes a node group in a cluster. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] is
      * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
      * 
*/ - public void resizeNodeGroup(com.google.cloud.dataproc.v1.ResizeNodeGroupRequest request, + public void resizeNodeGroup( + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResizeNodeGroupMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResizeNodeGroupMethod(), responseObserver); } /** + * + * *
      * Gets the resource representation for a node group in a
      * cluster.
      * 
*/ - public void getNodeGroup(com.google.cloud.dataproc.v1.GetNodeGroupRequest request, + public void getNodeGroup( + com.google.cloud.dataproc.v1.GetNodeGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodeGroupMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNodeGroupMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateNodeGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.CreateNodeGroupRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_NODE_GROUP))) + getCreateNodeGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.CreateNodeGroupRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_NODE_GROUP))) .addMethod( - getResizeNodeGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.ResizeNodeGroupRequest, - com.google.longrunning.Operation>( - this, METHODID_RESIZE_NODE_GROUP))) + getResizeNodeGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest, + com.google.longrunning.Operation>(this, METHODID_RESIZE_NODE_GROUP))) .addMethod( - getGetNodeGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.GetNodeGroupRequest, - com.google.cloud.dataproc.v1.NodeGroup>( - this, METHODID_GET_NODE_GROUP))) + getGetNodeGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.GetNodeGroupRequest, + com.google.cloud.dataproc.v1.NodeGroup>(this, METHODID_GET_NODE_GROUP))) .build(); } } /** + * + * *
    * The `NodeGroupControllerService` provides methods to manage node groups
    * of Compute Engine managed instances.
    * 
*/ - public static final class NodeGroupControllerStub extends io.grpc.stub.AbstractAsyncStub { - private NodeGroupControllerStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class NodeGroupControllerStub + extends io.grpc.stub.AbstractAsyncStub { + private NodeGroupControllerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -245,51 +310,69 @@ protected NodeGroupControllerStub build( } /** + * + * *
      * Creates a node group in a cluster. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] is
      * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
      * 
*/ - public void createNodeGroup(com.google.cloud.dataproc.v1.CreateNodeGroupRequest request, + public void createNodeGroup( + com.google.cloud.dataproc.v1.CreateNodeGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateNodeGroupMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateNodeGroupMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Resizes a node group in a cluster. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] is
      * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
      * 
*/ - public void resizeNodeGroup(com.google.cloud.dataproc.v1.ResizeNodeGroupRequest request, + public void resizeNodeGroup( + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResizeNodeGroupMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getResizeNodeGroupMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets the resource representation for a node group in a
      * cluster.
      * 
*/ - public void getNodeGroup(com.google.cloud.dataproc.v1.GetNodeGroupRequest request, + public void getNodeGroup( + com.google.cloud.dataproc.v1.GetNodeGroupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNodeGroupMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetNodeGroupMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * The `NodeGroupControllerService` provides methods to manage node groups
    * of Compute Engine managed instances.
    * 
*/ - public static final class NodeGroupControllerBlockingStub extends io.grpc.stub.AbstractBlockingStub { + public static final class NodeGroupControllerBlockingStub + extends io.grpc.stub.AbstractBlockingStub { private NodeGroupControllerBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -302,48 +385,60 @@ protected NodeGroupControllerBlockingStub build( } /** + * + * *
      * Creates a node group in a cluster. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] is
      * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
      * 
*/ - public com.google.longrunning.Operation createNodeGroup(com.google.cloud.dataproc.v1.CreateNodeGroupRequest request) { + public com.google.longrunning.Operation createNodeGroup( + com.google.cloud.dataproc.v1.CreateNodeGroupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateNodeGroupMethod(), getCallOptions(), request); } /** + * + * *
      * Resizes a node group in a cluster. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] is
      * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
      * 
*/ - public com.google.longrunning.Operation resizeNodeGroup(com.google.cloud.dataproc.v1.ResizeNodeGroupRequest request) { + public com.google.longrunning.Operation resizeNodeGroup( + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getResizeNodeGroupMethod(), getCallOptions(), request); } /** + * + * *
      * Gets the resource representation for a node group in a
      * cluster.
      * 
*/ - public com.google.cloud.dataproc.v1.NodeGroup getNodeGroup(com.google.cloud.dataproc.v1.GetNodeGroupRequest request) { + public com.google.cloud.dataproc.v1.NodeGroup getNodeGroup( + com.google.cloud.dataproc.v1.GetNodeGroupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetNodeGroupMethod(), getCallOptions(), request); } } /** + * + * *
    * The `NodeGroupControllerService` provides methods to manage node groups
    * of Compute Engine managed instances.
    * 
*/ - public static final class NodeGroupControllerFutureStub extends io.grpc.stub.AbstractFutureStub { + public static final class NodeGroupControllerFutureStub + extends io.grpc.stub.AbstractFutureStub { private NodeGroupControllerFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -356,39 +451,46 @@ protected NodeGroupControllerFutureStub build( } /** + * + * *
      * Creates a node group in a cluster. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] is
      * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createNodeGroup( - com.google.cloud.dataproc.v1.CreateNodeGroupRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createNodeGroup(com.google.cloud.dataproc.v1.CreateNodeGroupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateNodeGroupMethod(), getCallOptions()), request); } /** + * + * *
      * Resizes a node group in a cluster. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] is
      * [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture resizeNodeGroup( - com.google.cloud.dataproc.v1.ResizeNodeGroupRequest request) { + public com.google.common.util.concurrent.ListenableFuture + resizeNodeGroup(com.google.cloud.dataproc.v1.ResizeNodeGroupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getResizeNodeGroupMethod(), getCallOptions()), request); } /** + * + * *
      * Gets the resource representation for a node group in a
      * cluster.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getNodeGroup( - com.google.cloud.dataproc.v1.GetNodeGroupRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataproc.v1.NodeGroup> + getNodeGroup(com.google.cloud.dataproc.v1.GetNodeGroupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetNodeGroupMethod(), getCallOptions()), request); } @@ -398,11 +500,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final NodeGroupControllerImplBase serviceImpl; private final int methodId; @@ -416,16 +518,20 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_NODE_GROUP: - serviceImpl.createNodeGroup((com.google.cloud.dataproc.v1.CreateNodeGroupRequest) request, + serviceImpl.createNodeGroup( + (com.google.cloud.dataproc.v1.CreateNodeGroupRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RESIZE_NODE_GROUP: - serviceImpl.resizeNodeGroup((com.google.cloud.dataproc.v1.ResizeNodeGroupRequest) request, + serviceImpl.resizeNodeGroup( + (com.google.cloud.dataproc.v1.ResizeNodeGroupRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_NODE_GROUP: - serviceImpl.getNodeGroup((com.google.cloud.dataproc.v1.GetNodeGroupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.getNodeGroup( + (com.google.cloud.dataproc.v1.GetNodeGroupRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; default: throw new AssertionError(); @@ -443,8 +549,9 @@ public io.grpc.stub.StreamObserver invoke( } } - private static abstract class NodeGroupControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class NodeGroupControllerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { NodeGroupControllerBaseDescriptorSupplier() {} @java.lang.Override @@ -486,12 +593,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (NodeGroupControllerGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new NodeGroupControllerFileDescriptorSupplier()) - .addMethod(getCreateNodeGroupMethod()) - .addMethod(getResizeNodeGroupMethod()) - .addMethod(getGetNodeGroupMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new NodeGroupControllerFileDescriptorSupplier()) + .addMethod(getCreateNodeGroupMethod()) + .addMethod(getResizeNodeGroupMethod()) + .addMethod(getGetNodeGroupMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java similarity index 50% rename from owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java rename to java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java index fe316c22620d..3b23792fec75 100644 --- a/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java +++ b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.dataproc.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * The API interface for managing Workflow Templates in the
  * Dataproc API.
@@ -19,298 +36,453 @@ private WorkflowTemplateServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.dataproc.v1.WorkflowTemplateService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getCreateWorkflowTemplateMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest,
+          com.google.cloud.dataproc.v1.WorkflowTemplate>
+      getCreateWorkflowTemplateMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateWorkflowTemplate",
       requestType = com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.class,
       responseType = com.google.cloud.dataproc.v1.WorkflowTemplate.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateWorkflowTemplateMethod() {
-    io.grpc.MethodDescriptor getCreateWorkflowTemplateMethod;
-    if ((getCreateWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getCreateWorkflowTemplateMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest,
+          com.google.cloud.dataproc.v1.WorkflowTemplate>
+      getCreateWorkflowTemplateMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest,
+            com.google.cloud.dataproc.v1.WorkflowTemplate>
+        getCreateWorkflowTemplateMethod;
+    if ((getCreateWorkflowTemplateMethod =
+            WorkflowTemplateServiceGrpc.getCreateWorkflowTemplateMethod)
+        == null) {
       synchronized (WorkflowTemplateServiceGrpc.class) {
-        if ((getCreateWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getCreateWorkflowTemplateMethod) == null) {
-          WorkflowTemplateServiceGrpc.getCreateWorkflowTemplateMethod = getCreateWorkflowTemplateMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkflowTemplate"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()))
-              .setSchemaDescriptor(new WorkflowTemplateServiceMethodDescriptorSupplier("CreateWorkflowTemplate"))
-              .build();
+        if ((getCreateWorkflowTemplateMethod =
+                WorkflowTemplateServiceGrpc.getCreateWorkflowTemplateMethod)
+            == null) {
+          WorkflowTemplateServiceGrpc.getCreateWorkflowTemplateMethod =
+              getCreateWorkflowTemplateMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "CreateWorkflowTemplate"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new WorkflowTemplateServiceMethodDescriptorSupplier(
+                              "CreateWorkflowTemplate"))
+                      .build();
         }
       }
     }
     return getCreateWorkflowTemplateMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetWorkflowTemplateMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest,
+          com.google.cloud.dataproc.v1.WorkflowTemplate>
+      getGetWorkflowTemplateMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetWorkflowTemplate",
       requestType = com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.class,
       responseType = com.google.cloud.dataproc.v1.WorkflowTemplate.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetWorkflowTemplateMethod() {
-    io.grpc.MethodDescriptor getGetWorkflowTemplateMethod;
-    if ((getGetWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getGetWorkflowTemplateMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest,
+          com.google.cloud.dataproc.v1.WorkflowTemplate>
+      getGetWorkflowTemplateMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest,
+            com.google.cloud.dataproc.v1.WorkflowTemplate>
+        getGetWorkflowTemplateMethod;
+    if ((getGetWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getGetWorkflowTemplateMethod)
+        == null) {
       synchronized (WorkflowTemplateServiceGrpc.class) {
-        if ((getGetWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getGetWorkflowTemplateMethod) == null) {
-          WorkflowTemplateServiceGrpc.getGetWorkflowTemplateMethod = getGetWorkflowTemplateMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkflowTemplate"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()))
-              .setSchemaDescriptor(new WorkflowTemplateServiceMethodDescriptorSupplier("GetWorkflowTemplate"))
-              .build();
+        if ((getGetWorkflowTemplateMethod =
+                WorkflowTemplateServiceGrpc.getGetWorkflowTemplateMethod)
+            == null) {
+          WorkflowTemplateServiceGrpc.getGetWorkflowTemplateMethod =
+              getGetWorkflowTemplateMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "GetWorkflowTemplate"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new WorkflowTemplateServiceMethodDescriptorSupplier(
+                              "GetWorkflowTemplate"))
+                      .build();
         }
       }
     }
     return getGetWorkflowTemplateMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getInstantiateWorkflowTemplateMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest,
+          com.google.longrunning.Operation>
+      getInstantiateWorkflowTemplateMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "InstantiateWorkflowTemplate",
       requestType = com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getInstantiateWorkflowTemplateMethod() {
-    io.grpc.MethodDescriptor getInstantiateWorkflowTemplateMethod;
-    if ((getInstantiateWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getInstantiateWorkflowTemplateMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest,
+          com.google.longrunning.Operation>
+      getInstantiateWorkflowTemplateMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest,
+            com.google.longrunning.Operation>
+        getInstantiateWorkflowTemplateMethod;
+    if ((getInstantiateWorkflowTemplateMethod =
+            WorkflowTemplateServiceGrpc.getInstantiateWorkflowTemplateMethod)
+        == null) {
       synchronized (WorkflowTemplateServiceGrpc.class) {
-        if ((getInstantiateWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getInstantiateWorkflowTemplateMethod) == null) {
-          WorkflowTemplateServiceGrpc.getInstantiateWorkflowTemplateMethod = getInstantiateWorkflowTemplateMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InstantiateWorkflowTemplate"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new WorkflowTemplateServiceMethodDescriptorSupplier("InstantiateWorkflowTemplate"))
-              .build();
+        if ((getInstantiateWorkflowTemplateMethod =
+                WorkflowTemplateServiceGrpc.getInstantiateWorkflowTemplateMethod)
+            == null) {
+          WorkflowTemplateServiceGrpc.getInstantiateWorkflowTemplateMethod =
+              getInstantiateWorkflowTemplateMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "InstantiateWorkflowTemplate"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new WorkflowTemplateServiceMethodDescriptorSupplier(
+                              "InstantiateWorkflowTemplate"))
+                      .build();
         }
       }
     }
     return getInstantiateWorkflowTemplateMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getInstantiateInlineWorkflowTemplateMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest,
+          com.google.longrunning.Operation>
+      getInstantiateInlineWorkflowTemplateMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "InstantiateInlineWorkflowTemplate",
       requestType = com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getInstantiateInlineWorkflowTemplateMethod() {
-    io.grpc.MethodDescriptor getInstantiateInlineWorkflowTemplateMethod;
-    if ((getInstantiateInlineWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getInstantiateInlineWorkflowTemplateMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest,
+          com.google.longrunning.Operation>
+      getInstantiateInlineWorkflowTemplateMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest,
+            com.google.longrunning.Operation>
+        getInstantiateInlineWorkflowTemplateMethod;
+    if ((getInstantiateInlineWorkflowTemplateMethod =
+            WorkflowTemplateServiceGrpc.getInstantiateInlineWorkflowTemplateMethod)
+        == null) {
       synchronized (WorkflowTemplateServiceGrpc.class) {
-        if ((getInstantiateInlineWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getInstantiateInlineWorkflowTemplateMethod) == null) {
-          WorkflowTemplateServiceGrpc.getInstantiateInlineWorkflowTemplateMethod = getInstantiateInlineWorkflowTemplateMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InstantiateInlineWorkflowTemplate"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new WorkflowTemplateServiceMethodDescriptorSupplier("InstantiateInlineWorkflowTemplate"))
-              .build();
+        if ((getInstantiateInlineWorkflowTemplateMethod =
+                WorkflowTemplateServiceGrpc.getInstantiateInlineWorkflowTemplateMethod)
+            == null) {
+          WorkflowTemplateServiceGrpc.getInstantiateInlineWorkflowTemplateMethod =
+              getInstantiateInlineWorkflowTemplateMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "InstantiateInlineWorkflowTemplate"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new WorkflowTemplateServiceMethodDescriptorSupplier(
+                              "InstantiateInlineWorkflowTemplate"))
+                      .build();
         }
       }
     }
     return getInstantiateInlineWorkflowTemplateMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateWorkflowTemplateMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest,
+          com.google.cloud.dataproc.v1.WorkflowTemplate>
+      getUpdateWorkflowTemplateMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateWorkflowTemplate",
       requestType = com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.class,
       responseType = com.google.cloud.dataproc.v1.WorkflowTemplate.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateWorkflowTemplateMethod() {
-    io.grpc.MethodDescriptor getUpdateWorkflowTemplateMethod;
-    if ((getUpdateWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getUpdateWorkflowTemplateMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest,
+          com.google.cloud.dataproc.v1.WorkflowTemplate>
+      getUpdateWorkflowTemplateMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest,
+            com.google.cloud.dataproc.v1.WorkflowTemplate>
+        getUpdateWorkflowTemplateMethod;
+    if ((getUpdateWorkflowTemplateMethod =
+            WorkflowTemplateServiceGrpc.getUpdateWorkflowTemplateMethod)
+        == null) {
       synchronized (WorkflowTemplateServiceGrpc.class) {
-        if ((getUpdateWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getUpdateWorkflowTemplateMethod) == null) {
-          WorkflowTemplateServiceGrpc.getUpdateWorkflowTemplateMethod = getUpdateWorkflowTemplateMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkflowTemplate"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()))
-              .setSchemaDescriptor(new WorkflowTemplateServiceMethodDescriptorSupplier("UpdateWorkflowTemplate"))
-              .build();
+        if ((getUpdateWorkflowTemplateMethod =
+                WorkflowTemplateServiceGrpc.getUpdateWorkflowTemplateMethod)
+            == null) {
+          WorkflowTemplateServiceGrpc.getUpdateWorkflowTemplateMethod =
+              getUpdateWorkflowTemplateMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "UpdateWorkflowTemplate"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new WorkflowTemplateServiceMethodDescriptorSupplier(
+                              "UpdateWorkflowTemplate"))
+                      .build();
         }
       }
     }
     return getUpdateWorkflowTemplateMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListWorkflowTemplatesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest,
+          com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse>
+      getListWorkflowTemplatesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListWorkflowTemplates",
       requestType = com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.class,
       responseType = com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListWorkflowTemplatesMethod() {
-    io.grpc.MethodDescriptor getListWorkflowTemplatesMethod;
-    if ((getListWorkflowTemplatesMethod = WorkflowTemplateServiceGrpc.getListWorkflowTemplatesMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest,
+          com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse>
+      getListWorkflowTemplatesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest,
+            com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse>
+        getListWorkflowTemplatesMethod;
+    if ((getListWorkflowTemplatesMethod =
+            WorkflowTemplateServiceGrpc.getListWorkflowTemplatesMethod)
+        == null) {
       synchronized (WorkflowTemplateServiceGrpc.class) {
-        if ((getListWorkflowTemplatesMethod = WorkflowTemplateServiceGrpc.getListWorkflowTemplatesMethod) == null) {
-          WorkflowTemplateServiceGrpc.getListWorkflowTemplatesMethod = getListWorkflowTemplatesMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkflowTemplates"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new WorkflowTemplateServiceMethodDescriptorSupplier("ListWorkflowTemplates"))
-              .build();
+        if ((getListWorkflowTemplatesMethod =
+                WorkflowTemplateServiceGrpc.getListWorkflowTemplatesMethod)
+            == null) {
+          WorkflowTemplateServiceGrpc.getListWorkflowTemplatesMethod =
+              getListWorkflowTemplatesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "ListWorkflowTemplates"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new WorkflowTemplateServiceMethodDescriptorSupplier(
+                              "ListWorkflowTemplates"))
+                      .build();
         }
       }
     }
     return getListWorkflowTemplatesMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteWorkflowTemplateMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest, com.google.protobuf.Empty>
+      getDeleteWorkflowTemplateMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteWorkflowTemplate",
       requestType = com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteWorkflowTemplateMethod() {
-    io.grpc.MethodDescriptor getDeleteWorkflowTemplateMethod;
-    if ((getDeleteWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getDeleteWorkflowTemplateMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest, com.google.protobuf.Empty>
+      getDeleteWorkflowTemplateMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest, com.google.protobuf.Empty>
+        getDeleteWorkflowTemplateMethod;
+    if ((getDeleteWorkflowTemplateMethod =
+            WorkflowTemplateServiceGrpc.getDeleteWorkflowTemplateMethod)
+        == null) {
       synchronized (WorkflowTemplateServiceGrpc.class) {
-        if ((getDeleteWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getDeleteWorkflowTemplateMethod) == null) {
-          WorkflowTemplateServiceGrpc.getDeleteWorkflowTemplateMethod = getDeleteWorkflowTemplateMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkflowTemplate"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new WorkflowTemplateServiceMethodDescriptorSupplier("DeleteWorkflowTemplate"))
-              .build();
+        if ((getDeleteWorkflowTemplateMethod =
+                WorkflowTemplateServiceGrpc.getDeleteWorkflowTemplateMethod)
+            == null) {
+          WorkflowTemplateServiceGrpc.getDeleteWorkflowTemplateMethod =
+              getDeleteWorkflowTemplateMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "DeleteWorkflowTemplate"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new WorkflowTemplateServiceMethodDescriptorSupplier(
+                              "DeleteWorkflowTemplate"))
+                      .build();
         }
       }
     }
     return getDeleteWorkflowTemplateMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static WorkflowTemplateServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public WorkflowTemplateServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new WorkflowTemplateServiceStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public WorkflowTemplateServiceStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new WorkflowTemplateServiceStub(channel, callOptions);
+          }
+        };
     return WorkflowTemplateServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static WorkflowTemplateServiceBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static WorkflowTemplateServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public WorkflowTemplateServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new WorkflowTemplateServiceBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public WorkflowTemplateServiceBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new WorkflowTemplateServiceBlockingStub(channel, callOptions);
+          }
+        };
     return WorkflowTemplateServiceBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static WorkflowTemplateServiceFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static WorkflowTemplateServiceFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public WorkflowTemplateServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new WorkflowTemplateServiceFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public WorkflowTemplateServiceFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new WorkflowTemplateServiceFutureStub(channel, callOptions);
+          }
+        };
     return WorkflowTemplateServiceFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * The API interface for managing Workflow Templates in the
    * Dataproc API.
    * 
*/ - public static abstract class WorkflowTemplateServiceImplBase implements io.grpc.BindableService { + public abstract static class WorkflowTemplateServiceImplBase implements io.grpc.BindableService { /** + * + * *
      * Creates new workflow template.
      * 
*/ - public void createWorkflowTemplate(com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkflowTemplateMethod(), responseObserver); + public void createWorkflowTemplate( + com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkflowTemplateMethod(), responseObserver); } /** + * + * *
      * Retrieves the latest workflow template.
      * Can retrieve previously instantiated template by specifying optional
      * version parameter.
      * 
*/ - public void getWorkflowTemplate(com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkflowTemplateMethod(), responseObserver); + public void getWorkflowTemplate( + com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkflowTemplateMethod(), responseObserver); } /** + * + * *
      * Instantiates a template and begins execution.
      * The returned Operation can be used to track execution of
@@ -330,12 +502,16 @@ public void getWorkflowTemplate(com.google.cloud.dataproc.v1.GetWorkflowTemplate
      * [Empty][google.protobuf.Empty].
      * 
*/ - public void instantiateWorkflowTemplate(com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request, + public void instantiateWorkflowTemplate( + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInstantiateWorkflowTemplateMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getInstantiateWorkflowTemplateMethod(), responseObserver); } /** + * + * *
      * Instantiates a template and begins execution.
      * This method is equivalent to executing the sequence
@@ -358,106 +534,124 @@ public void instantiateWorkflowTemplate(com.google.cloud.dataproc.v1.Instantiate
      * [Empty][google.protobuf.Empty].
      * 
*/ - public void instantiateInlineWorkflowTemplate(com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request, + public void instantiateInlineWorkflowTemplate( + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInstantiateInlineWorkflowTemplateMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getInstantiateInlineWorkflowTemplateMethod(), responseObserver); } /** + * + * *
      * Updates (replaces) workflow template. The updated template
      * must contain version that matches the current server version.
      * 
*/ - public void updateWorkflowTemplate(com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkflowTemplateMethod(), responseObserver); + public void updateWorkflowTemplate( + com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkflowTemplateMethod(), responseObserver); } /** + * + * *
      * Lists workflows that match the specified filter in the request.
      * 
*/ - public void listWorkflowTemplates(com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkflowTemplatesMethod(), responseObserver); + public void listWorkflowTemplates( + com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkflowTemplatesMethod(), responseObserver); } /** + * + * *
      * Deletes a workflow template. It does not cancel in-progress workflows.
      * 
*/ - public void deleteWorkflowTemplate(com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request, + public void deleteWorkflowTemplate( + com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkflowTemplateMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkflowTemplateMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1.WorkflowTemplate>( - this, METHODID_CREATE_WORKFLOW_TEMPLATE))) + getCreateWorkflowTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest, + com.google.cloud.dataproc.v1.WorkflowTemplate>( + this, METHODID_CREATE_WORKFLOW_TEMPLATE))) .addMethod( - getGetWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest, - com.google.cloud.dataproc.v1.WorkflowTemplate>( - this, METHODID_GET_WORKFLOW_TEMPLATE))) + getGetWorkflowTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest, + com.google.cloud.dataproc.v1.WorkflowTemplate>( + this, METHODID_GET_WORKFLOW_TEMPLATE))) .addMethod( - getInstantiateWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest, - com.google.longrunning.Operation>( - this, METHODID_INSTANTIATE_WORKFLOW_TEMPLATE))) + getInstantiateWorkflowTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest, + com.google.longrunning.Operation>( + this, METHODID_INSTANTIATE_WORKFLOW_TEMPLATE))) .addMethod( - getInstantiateInlineWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest, - com.google.longrunning.Operation>( - this, METHODID_INSTANTIATE_INLINE_WORKFLOW_TEMPLATE))) + getInstantiateInlineWorkflowTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest, + com.google.longrunning.Operation>( + this, METHODID_INSTANTIATE_INLINE_WORKFLOW_TEMPLATE))) .addMethod( - getUpdateWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1.WorkflowTemplate>( - this, METHODID_UPDATE_WORKFLOW_TEMPLATE))) + getUpdateWorkflowTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest, + com.google.cloud.dataproc.v1.WorkflowTemplate>( + this, METHODID_UPDATE_WORKFLOW_TEMPLATE))) .addMethod( - getListWorkflowTemplatesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest, - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse>( - this, METHODID_LIST_WORKFLOW_TEMPLATES))) + getListWorkflowTemplatesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest, + com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse>( + this, METHODID_LIST_WORKFLOW_TEMPLATES))) .addMethod( - getDeleteWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_WORKFLOW_TEMPLATE))) + getDeleteWorkflowTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_WORKFLOW_TEMPLATE))) .build(); } } /** + * + * *
    * The API interface for managing Workflow Templates in the
    * Dataproc API.
    * 
*/ - public static final class WorkflowTemplateServiceStub extends io.grpc.stub.AbstractAsyncStub { - private WorkflowTemplateServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class WorkflowTemplateServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private WorkflowTemplateServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -468,30 +662,44 @@ protected WorkflowTemplateServiceStub build( } /** + * + * *
      * Creates new workflow template.
      * 
*/ - public void createWorkflowTemplate(com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createWorkflowTemplate( + com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateWorkflowTemplateMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Retrieves the latest workflow template.
      * Can retrieve previously instantiated template by specifying optional
      * version parameter.
      * 
*/ - public void getWorkflowTemplate(com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getWorkflowTemplate( + com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetWorkflowTemplateMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Instantiates a template and begins execution.
      * The returned Operation can be used to track execution of
@@ -511,13 +719,18 @@ public void getWorkflowTemplate(com.google.cloud.dataproc.v1.GetWorkflowTemplate
      * [Empty][google.protobuf.Empty].
      * 
*/ - public void instantiateWorkflowTemplate(com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request, + public void instantiateWorkflowTemplate( + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getInstantiateWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getInstantiateWorkflowTemplateMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Instantiates a template and begins execution.
      * This method is equivalent to executing the sequence
@@ -540,54 +753,77 @@ public void instantiateWorkflowTemplate(com.google.cloud.dataproc.v1.Instantiate
      * [Empty][google.protobuf.Empty].
      * 
*/ - public void instantiateInlineWorkflowTemplate(com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request, + public void instantiateInlineWorkflowTemplate( + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getInstantiateInlineWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getInstantiateInlineWorkflowTemplateMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates (replaces) workflow template. The updated template
      * must contain version that matches the current server version.
      * 
*/ - public void updateWorkflowTemplate(com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void updateWorkflowTemplate( + com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateWorkflowTemplateMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists workflows that match the specified filter in the request.
      * 
*/ - public void listWorkflowTemplates(com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listWorkflowTemplates( + com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkflowTemplatesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListWorkflowTemplatesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes a workflow template. It does not cancel in-progress workflows.
      * 
*/ - public void deleteWorkflowTemplate(com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request, + public void deleteWorkflowTemplate( + com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteWorkflowTemplateMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * The API interface for managing Workflow Templates in the
    * Dataproc API.
    * 
*/ - public static final class WorkflowTemplateServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + public static final class WorkflowTemplateServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { private WorkflowTemplateServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -600,28 +836,36 @@ protected WorkflowTemplateServiceBlockingStub build( } /** + * + * *
      * Creates new workflow template.
      * 
*/ - public com.google.cloud.dataproc.v1.WorkflowTemplate createWorkflowTemplate(com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request) { + public com.google.cloud.dataproc.v1.WorkflowTemplate createWorkflowTemplate( + com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateWorkflowTemplateMethod(), getCallOptions(), request); } /** + * + * *
      * Retrieves the latest workflow template.
      * Can retrieve previously instantiated template by specifying optional
      * version parameter.
      * 
*/ - public com.google.cloud.dataproc.v1.WorkflowTemplate getWorkflowTemplate(com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request) { + public com.google.cloud.dataproc.v1.WorkflowTemplate getWorkflowTemplate( + com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetWorkflowTemplateMethod(), getCallOptions(), request); } /** + * + * *
      * Instantiates a template and begins execution.
      * The returned Operation can be used to track execution of
@@ -641,12 +885,15 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate getWorkflowTemplate(com.goo
      * [Empty][google.protobuf.Empty].
      * 
*/ - public com.google.longrunning.Operation instantiateWorkflowTemplate(com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request) { + public com.google.longrunning.Operation instantiateWorkflowTemplate( + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getInstantiateWorkflowTemplateMethod(), getCallOptions(), request); } /** + * + * *
      * Instantiates a template and begins execution.
      * This method is equivalent to executing the sequence
@@ -669,50 +916,63 @@ public com.google.longrunning.Operation instantiateWorkflowTemplate(com.google.c
      * [Empty][google.protobuf.Empty].
      * 
*/ - public com.google.longrunning.Operation instantiateInlineWorkflowTemplate(com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request) { + public com.google.longrunning.Operation instantiateInlineWorkflowTemplate( + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getInstantiateInlineWorkflowTemplateMethod(), getCallOptions(), request); } /** + * + * *
      * Updates (replaces) workflow template. The updated template
      * must contain version that matches the current server version.
      * 
*/ - public com.google.cloud.dataproc.v1.WorkflowTemplate updateWorkflowTemplate(com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request) { + public com.google.cloud.dataproc.v1.WorkflowTemplate updateWorkflowTemplate( + com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateWorkflowTemplateMethod(), getCallOptions(), request); } /** + * + * *
      * Lists workflows that match the specified filter in the request.
      * 
*/ - public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse listWorkflowTemplates(com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request) { + public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse listWorkflowTemplates( + com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListWorkflowTemplatesMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes a workflow template. It does not cancel in-progress workflows.
      * 
*/ - public com.google.protobuf.Empty deleteWorkflowTemplate(com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request) { + public com.google.protobuf.Empty deleteWorkflowTemplate( + com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteWorkflowTemplateMethod(), getCallOptions(), request); } } /** + * + * *
    * The API interface for managing Workflow Templates in the
    * Dataproc API.
    * 
*/ - public static final class WorkflowTemplateServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + public static final class WorkflowTemplateServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { private WorkflowTemplateServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -725,30 +985,38 @@ protected WorkflowTemplateServiceFutureStub build( } /** + * + * *
      * Creates new workflow template.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createWorkflowTemplate( - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataproc.v1.WorkflowTemplate> + createWorkflowTemplate(com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateWorkflowTemplateMethod(), getCallOptions()), request); } /** + * + * *
      * Retrieves the latest workflow template.
      * Can retrieve previously instantiated template by specifying optional
      * version parameter.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getWorkflowTemplate( - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataproc.v1.WorkflowTemplate> + getWorkflowTemplate(com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetWorkflowTemplateMethod(), getCallOptions()), request); } /** + * + * *
      * Instantiates a template and begins execution.
      * The returned Operation can be used to track execution of
@@ -768,13 +1036,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture instantiateWorkflowTemplate(
-        com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        instantiateWorkflowTemplate(
+            com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getInstantiateWorkflowTemplateMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Instantiates a template and begins execution.
      * This method is equivalent to executing the sequence
@@ -797,42 +1068,52 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture instantiateInlineWorkflowTemplate(
-        com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        instantiateInlineWorkflowTemplate(
+            com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
-          getChannel().newCall(getInstantiateInlineWorkflowTemplateMethod(), getCallOptions()), request);
+          getChannel().newCall(getInstantiateInlineWorkflowTemplateMethod(), getCallOptions()),
+          request);
     }
 
     /**
+     *
+     *
      * 
      * Updates (replaces) workflow template. The updated template
      * must contain version that matches the current server version.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture updateWorkflowTemplate( - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataproc.v1.WorkflowTemplate> + updateWorkflowTemplate(com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateWorkflowTemplateMethod(), getCallOptions()), request); } /** + * + * *
      * Lists workflows that match the specified filter in the request.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listWorkflowTemplates( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse> + listWorkflowTemplates(com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListWorkflowTemplatesMethod(), getCallOptions()), request); } /** + * + * *
      * Deletes a workflow template. It does not cancel in-progress workflows.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture deleteWorkflowTemplate( - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteWorkflowTemplate(com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteWorkflowTemplateMethod(), getCallOptions()), request); } @@ -846,11 +1127,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final WorkflowTemplateServiceImplBase serviceImpl; private final int methodId; @@ -864,31 +1145,43 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_WORKFLOW_TEMPLATE: - serviceImpl.createWorkflowTemplate((com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.createWorkflowTemplate( + (com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_WORKFLOW_TEMPLATE: - serviceImpl.getWorkflowTemplate((com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.getWorkflowTemplate( + (com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_INSTANTIATE_WORKFLOW_TEMPLATE: - serviceImpl.instantiateWorkflowTemplate((com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) request, + serviceImpl.instantiateWorkflowTemplate( + (com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_INSTANTIATE_INLINE_WORKFLOW_TEMPLATE: - serviceImpl.instantiateInlineWorkflowTemplate((com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) request, + serviceImpl.instantiateInlineWorkflowTemplate( + (com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_WORKFLOW_TEMPLATE: - serviceImpl.updateWorkflowTemplate((com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.updateWorkflowTemplate( + (com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_LIST_WORKFLOW_TEMPLATES: - serviceImpl.listWorkflowTemplates((com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listWorkflowTemplates( + (com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse>) + responseObserver); break; case METHODID_DELETE_WORKFLOW_TEMPLATE: - serviceImpl.deleteWorkflowTemplate((com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) request, + serviceImpl.deleteWorkflowTemplate( + (com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -907,8 +1200,9 @@ public io.grpc.stub.StreamObserver invoke( } } - private static abstract class WorkflowTemplateServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class WorkflowTemplateServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { WorkflowTemplateServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -950,16 +1244,18 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (WorkflowTemplateServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WorkflowTemplateServiceFileDescriptorSupplier()) - .addMethod(getCreateWorkflowTemplateMethod()) - .addMethod(getGetWorkflowTemplateMethod()) - .addMethod(getInstantiateWorkflowTemplateMethod()) - .addMethod(getInstantiateInlineWorkflowTemplateMethod()) - .addMethod(getUpdateWorkflowTemplateMethod()) - .addMethod(getListWorkflowTemplatesMethod()) - .addMethod(getDeleteWorkflowTemplateMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WorkflowTemplateServiceFileDescriptorSupplier()) + .addMethod(getCreateWorkflowTemplateMethod()) + .addMethod(getGetWorkflowTemplateMethod()) + .addMethod(getInstantiateWorkflowTemplateMethod()) + .addMethod(getInstantiateInlineWorkflowTemplateMethod()) + .addMethod(getUpdateWorkflowTemplateMethod()) + .addMethod(getListWorkflowTemplatesMethod()) + .addMethod(getDeleteWorkflowTemplateMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java similarity index 73% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java index a334455b17a3..5a9d6ee74eff 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Specifies the type and number of accelerator cards attached to the instances
  * of an instance. See [GPUs on Compute
@@ -12,47 +29,51 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.AcceleratorConfig}
  */
-public final class AcceleratorConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AcceleratorConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.AcceleratorConfig)
     AcceleratorConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AcceleratorConfig.newBuilder() to construct.
   private AcceleratorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AcceleratorConfig() {
     acceleratorTypeUri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AcceleratorConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.AcceleratorConfig.class, com.google.cloud.dataproc.v1.AcceleratorConfig.Builder.class);
+            com.google.cloud.dataproc.v1.AcceleratorConfig.class,
+            com.google.cloud.dataproc.v1.AcceleratorConfig.Builder.class);
   }
 
   public static final int ACCELERATOR_TYPE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object acceleratorTypeUri_;
   /**
+   *
+   *
    * 
    * Full URL, partial URI, or short name of the accelerator type resource to
    * expose to this instance. See
@@ -70,6 +91,7 @@ protected java.lang.Object newInstance(
    * 
* * string accelerator_type_uri = 1; + * * @return The acceleratorTypeUri. */ @java.lang.Override @@ -78,14 +100,15 @@ public java.lang.String getAcceleratorTypeUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); acceleratorTypeUri_ = s; return s; } } /** + * + * *
    * Full URL, partial URI, or short name of the accelerator type resource to
    * expose to this instance. See
@@ -103,16 +126,15 @@ public java.lang.String getAcceleratorTypeUri() {
    * 
* * string accelerator_type_uri = 1; + * * @return The bytes for acceleratorTypeUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getAcceleratorTypeUriBytes() { + public com.google.protobuf.ByteString getAcceleratorTypeUriBytes() { java.lang.Object ref = acceleratorTypeUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); acceleratorTypeUri_ = b; return b; } else { @@ -123,11 +145,14 @@ public java.lang.String getAcceleratorTypeUri() { public static final int ACCELERATOR_COUNT_FIELD_NUMBER = 2; private int acceleratorCount_; /** + * + * *
    * The number of the accelerator cards of this type exposed to this instance.
    * 
* * int32 accelerator_count = 2; + * * @return The acceleratorCount. */ @java.lang.Override @@ -136,6 +161,7 @@ public int getAcceleratorCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorTypeUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, acceleratorTypeUri_); } @@ -168,8 +193,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, acceleratorTypeUri_); } if (acceleratorCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, acceleratorCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, acceleratorCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -179,17 +203,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.AcceleratorConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.AcceleratorConfig other = (com.google.cloud.dataproc.v1.AcceleratorConfig) obj; + com.google.cloud.dataproc.v1.AcceleratorConfig other = + (com.google.cloud.dataproc.v1.AcceleratorConfig) obj; - if (!getAcceleratorTypeUri() - .equals(other.getAcceleratorTypeUri())) return false; - if (getAcceleratorCount() - != other.getAcceleratorCount()) return false; + if (!getAcceleratorTypeUri().equals(other.getAcceleratorTypeUri())) return false; + if (getAcceleratorCount() != other.getAcceleratorCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -210,97 +233,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.AcceleratorConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.AcceleratorConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.AcceleratorConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specifies the type and number of accelerator cards attached to the instances
    * of an instance. See [GPUs on Compute
@@ -309,33 +339,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.AcceleratorConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.AcceleratorConfig)
       com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.AcceleratorConfig.class, com.google.cloud.dataproc.v1.AcceleratorConfig.Builder.class);
+              com.google.cloud.dataproc.v1.AcceleratorConfig.class,
+              com.google.cloud.dataproc.v1.AcceleratorConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.AcceleratorConfig.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -347,9 +376,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor;
     }
 
     @java.lang.Override
@@ -368,7 +397,8 @@ public com.google.cloud.dataproc.v1.AcceleratorConfig build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.AcceleratorConfig buildPartial() {
-      com.google.cloud.dataproc.v1.AcceleratorConfig result = new com.google.cloud.dataproc.v1.AcceleratorConfig(this);
+      com.google.cloud.dataproc.v1.AcceleratorConfig result =
+          new com.google.cloud.dataproc.v1.AcceleratorConfig(this);
       result.acceleratorTypeUri_ = acceleratorTypeUri_;
       result.acceleratorCount_ = acceleratorCount_;
       onBuilt();
@@ -379,38 +409,39 @@ public com.google.cloud.dataproc.v1.AcceleratorConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.AcceleratorConfig) {
-        return mergeFrom((com.google.cloud.dataproc.v1.AcceleratorConfig)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.AcceleratorConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -452,22 +483,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              acceleratorTypeUri_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 16: {
-              acceleratorCount_ = input.readInt32();
-
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                acceleratorTypeUri_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 16:
+              {
+                acceleratorCount_ = input.readInt32();
+
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -480,6 +514,8 @@ public Builder mergeFrom(
 
     private java.lang.Object acceleratorTypeUri_ = "";
     /**
+     *
+     *
      * 
      * Full URL, partial URI, or short name of the accelerator type resource to
      * expose to this instance. See
@@ -497,13 +533,13 @@ public Builder mergeFrom(
      * 
* * string accelerator_type_uri = 1; + * * @return The acceleratorTypeUri. */ public java.lang.String getAcceleratorTypeUri() { java.lang.Object ref = acceleratorTypeUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); acceleratorTypeUri_ = s; return s; @@ -512,6 +548,8 @@ public java.lang.String getAcceleratorTypeUri() { } } /** + * + * *
      * Full URL, partial URI, or short name of the accelerator type resource to
      * expose to this instance. See
@@ -529,15 +567,14 @@ public java.lang.String getAcceleratorTypeUri() {
      * 
* * string accelerator_type_uri = 1; + * * @return The bytes for acceleratorTypeUri. */ - public com.google.protobuf.ByteString - getAcceleratorTypeUriBytes() { + public com.google.protobuf.ByteString getAcceleratorTypeUriBytes() { java.lang.Object ref = acceleratorTypeUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); acceleratorTypeUri_ = b; return b; } else { @@ -545,6 +582,8 @@ public java.lang.String getAcceleratorTypeUri() { } } /** + * + * *
      * Full URL, partial URI, or short name of the accelerator type resource to
      * expose to this instance. See
@@ -562,20 +601,22 @@ public java.lang.String getAcceleratorTypeUri() {
      * 
* * string accelerator_type_uri = 1; + * * @param value The acceleratorTypeUri to set. * @return This builder for chaining. */ - public Builder setAcceleratorTypeUri( - java.lang.String value) { + public Builder setAcceleratorTypeUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + acceleratorTypeUri_ = value; onChanged(); return this; } /** + * + * *
      * Full URL, partial URI, or short name of the accelerator type resource to
      * expose to this instance. See
@@ -593,15 +634,18 @@ public Builder setAcceleratorTypeUri(
      * 
* * string accelerator_type_uri = 1; + * * @return This builder for chaining. */ public Builder clearAcceleratorTypeUri() { - + acceleratorTypeUri_ = getDefaultInstance().getAcceleratorTypeUri(); onChanged(); return this; } /** + * + * *
      * Full URL, partial URI, or short name of the accelerator type resource to
      * expose to this instance. See
@@ -619,28 +663,31 @@ public Builder clearAcceleratorTypeUri() {
      * 
* * string accelerator_type_uri = 1; + * * @param value The bytes for acceleratorTypeUri to set. * @return This builder for chaining. */ - public Builder setAcceleratorTypeUriBytes( - com.google.protobuf.ByteString value) { + public Builder setAcceleratorTypeUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + acceleratorTypeUri_ = value; onChanged(); return this; } - private int acceleratorCount_ ; + private int acceleratorCount_; /** + * + * *
      * The number of the accelerator cards of this type exposed to this instance.
      * 
* * int32 accelerator_count = 2; + * * @return The acceleratorCount. */ @java.lang.Override @@ -648,37 +695,43 @@ public int getAcceleratorCount() { return acceleratorCount_; } /** + * + * *
      * The number of the accelerator cards of this type exposed to this instance.
      * 
* * int32 accelerator_count = 2; + * * @param value The acceleratorCount to set. * @return This builder for chaining. */ public Builder setAcceleratorCount(int value) { - + acceleratorCount_ = value; onChanged(); return this; } /** + * + * *
      * The number of the accelerator cards of this type exposed to this instance.
      * 
* * int32 accelerator_count = 2; + * * @return This builder for chaining. */ public Builder clearAcceleratorCount() { - + acceleratorCount_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -688,12 +741,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.AcceleratorConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AcceleratorConfig) private static final com.google.cloud.dataproc.v1.AcceleratorConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.AcceleratorConfig(); } @@ -702,27 +755,27 @@ public static com.google.cloud.dataproc.v1.AcceleratorConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcceleratorConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcceleratorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -737,6 +790,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.AcceleratorConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.java similarity index 75% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.java index fab675888f63..5e5572144d6e 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface AcceleratorConfigOrBuilder extends +public interface AcceleratorConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.AcceleratorConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Full URL, partial URI, or short name of the accelerator type resource to
    * expose to this instance. See
@@ -25,10 +43,13 @@ public interface AcceleratorConfigOrBuilder extends
    * 
* * string accelerator_type_uri = 1; + * * @return The acceleratorTypeUri. */ java.lang.String getAcceleratorTypeUri(); /** + * + * *
    * Full URL, partial URI, or short name of the accelerator type resource to
    * expose to this instance. See
@@ -46,17 +67,20 @@ public interface AcceleratorConfigOrBuilder extends
    * 
* * string accelerator_type_uri = 1; + * * @return The bytes for acceleratorTypeUri. */ - com.google.protobuf.ByteString - getAcceleratorTypeUriBytes(); + com.google.protobuf.ByteString getAcceleratorTypeUriBytes(); /** + * + * *
    * The number of the accelerator cards of this type exposed to this instance.
    * 
* * int32 accelerator_count = 2; + * * @return The acceleratorCount. */ int getAcceleratorCount(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java similarity index 70% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java index d1d1238b0cdb..b222d07a03d6 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Autoscaling Policy config associated with the cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.AutoscalingConfig} */ -public final class AutoscalingConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AutoscalingConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.AutoscalingConfig) AutoscalingConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AutoscalingConfig.newBuilder() to construct. private AutoscalingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AutoscalingConfig() { policyUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AutoscalingConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AutoscalingConfig.class, com.google.cloud.dataproc.v1.AutoscalingConfig.Builder.class); + com.google.cloud.dataproc.v1.AutoscalingConfig.class, + com.google.cloud.dataproc.v1.AutoscalingConfig.Builder.class); } public static final int POLICY_URI_FIELD_NUMBER = 1; private volatile java.lang.Object policyUri_; /** + * + * *
    * Optional. The autoscaling policy used by the cluster.
    * Only resource names including projectid and location (region) are valid.
@@ -61,6 +82,7 @@ protected java.lang.Object newInstance(
    * 
* * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The policyUri. */ @java.lang.Override @@ -69,14 +91,15 @@ public java.lang.String getPolicyUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyUri_ = s; return s; } } /** + * + * *
    * Optional. The autoscaling policy used by the cluster.
    * Only resource names including projectid and location (region) are valid.
@@ -87,16 +110,15 @@ public java.lang.String getPolicyUri() {
    * 
* * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for policyUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getPolicyUriBytes() { + public com.google.protobuf.ByteString getPolicyUriBytes() { java.lang.Object ref = policyUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyUri_ = b; return b; } else { @@ -105,6 +127,7 @@ public java.lang.String getPolicyUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -116,8 +139,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyUri_); } @@ -141,15 +163,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.dataproc.v1.AutoscalingConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.AutoscalingConfig other = (com.google.cloud.dataproc.v1.AutoscalingConfig) obj; + com.google.cloud.dataproc.v1.AutoscalingConfig other = + (com.google.cloud.dataproc.v1.AutoscalingConfig) obj; - if (!getPolicyUri() - .equals(other.getPolicyUri())) return false; + if (!getPolicyUri().equals(other.getPolicyUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -168,130 +190,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.AutoscalingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.AutoscalingConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.AutoscalingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Autoscaling Policy config associated with the cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.AutoscalingConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.AutoscalingConfig) com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AutoscalingConfig.class, com.google.cloud.dataproc.v1.AutoscalingConfig.Builder.class); + com.google.cloud.dataproc.v1.AutoscalingConfig.class, + com.google.cloud.dataproc.v1.AutoscalingConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.AutoscalingConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -301,9 +329,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; } @java.lang.Override @@ -322,7 +350,8 @@ public com.google.cloud.dataproc.v1.AutoscalingConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.AutoscalingConfig buildPartial() { - com.google.cloud.dataproc.v1.AutoscalingConfig result = new com.google.cloud.dataproc.v1.AutoscalingConfig(this); + com.google.cloud.dataproc.v1.AutoscalingConfig result = + new com.google.cloud.dataproc.v1.AutoscalingConfig(this); result.policyUri_ = policyUri_; onBuilt(); return result; @@ -332,38 +361,39 @@ public com.google.cloud.dataproc.v1.AutoscalingConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.AutoscalingConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.AutoscalingConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.AutoscalingConfig) other); } else { super.mergeFrom(other); return this; @@ -402,17 +432,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - policyUri_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + policyUri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -425,6 +457,8 @@ public Builder mergeFrom( private java.lang.Object policyUri_ = ""; /** + * + * *
      * Optional. The autoscaling policy used by the cluster.
      * Only resource names including projectid and location (region) are valid.
@@ -435,13 +469,13 @@ public Builder mergeFrom(
      * 
* * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The policyUri. */ public java.lang.String getPolicyUri() { java.lang.Object ref = policyUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyUri_ = s; return s; @@ -450,6 +484,8 @@ public java.lang.String getPolicyUri() { } } /** + * + * *
      * Optional. The autoscaling policy used by the cluster.
      * Only resource names including projectid and location (region) are valid.
@@ -460,15 +496,14 @@ public java.lang.String getPolicyUri() {
      * 
* * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for policyUri. */ - public com.google.protobuf.ByteString - getPolicyUriBytes() { + public com.google.protobuf.ByteString getPolicyUriBytes() { java.lang.Object ref = policyUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyUri_ = b; return b; } else { @@ -476,6 +511,8 @@ public java.lang.String getPolicyUri() { } } /** + * + * *
      * Optional. The autoscaling policy used by the cluster.
      * Only resource names including projectid and location (region) are valid.
@@ -486,20 +523,22 @@ public java.lang.String getPolicyUri() {
      * 
* * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The policyUri to set. * @return This builder for chaining. */ - public Builder setPolicyUri( - java.lang.String value) { + public Builder setPolicyUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + policyUri_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The autoscaling policy used by the cluster.
      * Only resource names including projectid and location (region) are valid.
@@ -510,15 +549,18 @@ public Builder setPolicyUri(
      * 
* * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPolicyUri() { - + policyUri_ = getDefaultInstance().getPolicyUri(); onChanged(); return this; } /** + * + * *
      * Optional. The autoscaling policy used by the cluster.
      * Only resource names including projectid and location (region) are valid.
@@ -529,23 +571,23 @@ public Builder clearPolicyUri() {
      * 
* * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for policyUri to set. * @return This builder for chaining. */ - public Builder setPolicyUriBytes( - com.google.protobuf.ByteString value) { + public Builder setPolicyUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policyUri_ = 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); } @@ -555,12 +597,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.AutoscalingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AutoscalingConfig) private static final com.google.cloud.dataproc.v1.AutoscalingConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.AutoscalingConfig(); } @@ -569,27 +611,27 @@ public static com.google.cloud.dataproc.v1.AutoscalingConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutoscalingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoscalingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +646,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.AutoscalingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.java similarity index 67% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.java index eb9734774ccc..f9438be4e45c 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface AutoscalingConfigOrBuilder extends +public interface AutoscalingConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.AutoscalingConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The autoscaling policy used by the cluster.
    * Only resource names including projectid and location (region) are valid.
@@ -18,10 +36,13 @@ public interface AutoscalingConfigOrBuilder extends
    * 
* * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The policyUri. */ java.lang.String getPolicyUri(); /** + * + * *
    * Optional. The autoscaling policy used by the cluster.
    * Only resource names including projectid and location (region) are valid.
@@ -32,8 +53,8 @@ public interface AutoscalingConfigOrBuilder extends
    * 
* * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for policyUri. */ - com.google.protobuf.ByteString - getPolicyUriBytes(); + com.google.protobuf.ByteString getPolicyUriBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java new file mode 100644 index 000000000000..524fac61042b --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java @@ -0,0 +1,314 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/autoscaling_policies.proto + +package com.google.cloud.dataproc.v1; + +public final class AutoscalingPoliciesProto { + private AutoscalingPoliciesProto() {} + + 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_dataproc_v1_AutoscalingPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/dataproc/v1/autoscaling_p" + + "olicies.proto\022\030google.cloud.dataproc.v1\032" + + "\034google/api/annotations.proto\032\027google/ap" + + "i/client.proto\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\032\036goog" + + "le/protobuf/duration.proto\032\033google/proto" + + "buf/empty.proto\"\245\005\n\021AutoscalingPolicy\022\n\n" + + "\002id\030\001 \001(\t\022\021\n\004name\030\002 \001(\tB\003\340A\003\022S\n\017basic_al" + + "gorithm\030\003 \001(\01323.google.cloud.dataproc.v1" + + ".BasicAutoscalingAlgorithmB\003\340A\002H\000\022Z\n\rwor" + + "ker_config\030\004 \001(\0132>.google.cloud.dataproc" + + ".v1.InstanceGroupAutoscalingPolicyConfig" + + "B\003\340A\002\022d\n\027secondary_worker_config\030\005 \001(\0132>" + + ".google.cloud.dataproc.v1.InstanceGroupA" + + "utoscalingPolicyConfigB\003\340A\001\022L\n\006labels\030\006 " + + "\003(\01327.google.cloud.dataproc.v1.Autoscali" + + "ngPolicy.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\317\001\352A\313\001\n" + + ")dataproc.googleapis.com/AutoscalingPoli" + + "cy\022Pprojects/{project}/locations/{locati" + + "on}/autoscalingPolicies/{autoscaling_pol" + + "icy}\022Lprojects/{project}/regions/{region" + + "}/autoscalingPolicies/{autoscaling_polic" + + "y}B\013\n\talgorithm\"\260\001\n\031BasicAutoscalingAlgo" + + "rithm\022P\n\013yarn_config\030\001 \001(\01324.google.clou" + + "d.dataproc.v1.BasicYarnAutoscalingConfig" + + "B\003\340A\002H\000\0227\n\017cooldown_period\030\002 \001(\0132\031.googl" + + "e.protobuf.DurationB\003\340A\001B\010\n\006config\"\371\001\n\032B" + + "asicYarnAutoscalingConfig\022E\n\035graceful_de" + + "commission_timeout\030\005 \001(\0132\031.google.protob" + + "uf.DurationB\003\340A\002\022\034\n\017scale_up_factor\030\001 \001(" + + "\001B\003\340A\002\022\036\n\021scale_down_factor\030\002 \001(\001B\003\340A\002\022)" + + "\n\034scale_up_min_worker_fraction\030\003 \001(\001B\003\340A" + + "\001\022+\n\036scale_down_min_worker_fraction\030\004 \001(" + + "\001B\003\340A\001\"s\n$InstanceGroupAutoscalingPolicy" + + "Config\022\032\n\rmin_instances\030\001 \001(\005B\003\340A\001\022\032\n\rma" + + "x_instances\030\002 \001(\005B\003\340A\002\022\023\n\006weight\030\003 \001(\005B\003" + + "\340A\001\"\245\001\n\036CreateAutoscalingPolicyRequest\022A" + + "\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)dataproc.googlea" + + "pis.com/AutoscalingPolicy\022@\n\006policy\030\002 \001(" + + "\0132+.google.cloud.dataproc.v1.Autoscaling" + + "PolicyB\003\340A\002\"^\n\033GetAutoscalingPolicyReque" + + "st\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)dataproc.googl" + + "eapis.com/AutoscalingPolicy\"b\n\036UpdateAut" + + "oscalingPolicyRequest\022@\n\006policy\030\001 \001(\0132+." + + "google.cloud.dataproc.v1.AutoscalingPoli" + + "cyB\003\340A\002\"a\n\036DeleteAutoscalingPolicyReques" + + "t\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)dataproc.google" + + "apis.com/AutoscalingPolicy\"\224\001\n\036ListAutos" + + "calingPoliciesRequest\022A\n\006parent\030\001 \001(\tB1\340" + + "A\002\372A+\022)dataproc.googleapis.com/Autoscali" + + "ngPolicy\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" + + "_token\030\003 \001(\tB\003\340A\001\"\203\001\n\037ListAutoscalingPol" + + "iciesResponse\022B\n\010policies\030\001 \003(\0132+.google" + + ".cloud.dataproc.v1.AutoscalingPolicyB\003\340A" + + "\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\0032\256\013\n\030Auto" + + "scalingPolicyService\022\234\002\n\027CreateAutoscali" + + "ngPolicy\0228.google.cloud.dataproc.v1.Crea" + + "teAutoscalingPolicyRequest\032+.google.clou" + + "d.dataproc.v1.AutoscalingPolicy\"\231\001\202\323\344\223\002\202" + + "\001\"7/v1/{parent=projects/*/locations/*}/a" + + "utoscalingPolicies:\006policyZ?\"5/v1/{paren" + + "t=projects/*/regions/*}/autoscalingPolic" + + "ies:\006policy\332A\rparent,policy\022\243\002\n\027UpdateAu" + + "toscalingPolicy\0228.google.cloud.dataproc." + + "v1.UpdateAutoscalingPolicyRequest\032+.goog" + + "le.cloud.dataproc.v1.AutoscalingPolicy\"\240" + + "\001\202\323\344\223\002\220\001\032>/v1/{policy.name=projects/*/lo" + + "cations/*/autoscalingPolicies/*}:\006policy" + + "ZF\032 * Describes an autoscaling policy for Dataproc cluster autoscaler. *
* * Protobuf type {@code google.cloud.dataproc.v1.AutoscalingPolicy} */ -public final class AutoscalingPolicy extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AutoscalingPolicy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.AutoscalingPolicy) AutoscalingPolicyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AutoscalingPolicy.newBuilder() to construct. private AutoscalingPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AutoscalingPolicy() { id_ = ""; name_ = ""; @@ -26,49 +44,52 @@ private AutoscalingPolicy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AutoscalingPolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_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.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AutoscalingPolicy.class, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder.class); + com.google.cloud.dataproc.v1.AutoscalingPolicy.class, + com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder.class); } private int algorithmCase_ = 0; private java.lang.Object algorithm_; + public enum AlgorithmCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BASIC_ALGORITHM(3), ALGORITHM_NOT_SET(0); private final int value; + private AlgorithmCase(int value) { this.value = value; } @@ -84,25 +105,29 @@ public static AlgorithmCase valueOf(int value) { public static AlgorithmCase forNumber(int value) { switch (value) { - case 3: return BASIC_ALGORITHM; - case 0: return ALGORITHM_NOT_SET; - default: return null; + case 3: + return BASIC_ALGORITHM; + case 0: + return ALGORITHM_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public AlgorithmCase - getAlgorithmCase() { - return AlgorithmCase.forNumber( - algorithmCase_); + public AlgorithmCase getAlgorithmCase() { + return AlgorithmCase.forNumber(algorithmCase_); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** + * + * *
    * Required. The policy id.
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -111,6 +136,7 @@ public int getNumber() {
    * 
* * string id = 1; + * * @return The id. */ @java.lang.Override @@ -119,14 +145,15 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** + * + * *
    * Required. The policy id.
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -135,16 +162,15 @@ public java.lang.String getId() {
    * 
* * string id = 1; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -155,6 +181,8 @@ public java.lang.String getId() { public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -167,6 +195,7 @@ public java.lang.String getId() {
    * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -175,14 +204,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -195,16 +225,15 @@ public java.lang.String getName() {
    * 
* * string name = 2 [(.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 { @@ -214,7 +243,10 @@ public java.lang.String getName() { public static final int BASIC_ALGORITHM_FIELD_NUMBER = 3; /** - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the basicAlgorithm field is set. */ @java.lang.Override @@ -222,23 +254,29 @@ public boolean hasBasicAlgorithm() { return algorithmCase_ == 3; } /** - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The basicAlgorithm. */ @java.lang.Override public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm getBasicAlgorithm() { if (algorithmCase_ == 3) { - return (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_; + return (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_; } return com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance(); } /** - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder getBasicAlgorithmOrBuilder() { + public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder + getBasicAlgorithmOrBuilder() { if (algorithmCase_ == 3) { - return (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_; + return (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_; } return com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance(); } @@ -246,11 +284,16 @@ public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder getBasicA public static final int WORKER_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig workerConfig_; /** + * + * *
    * Required. Describes how the autoscaler will operate for primary workers.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workerConfig field is set. */ @java.lang.Override @@ -258,37 +301,54 @@ public boolean hasWorkerConfig() { return workerConfig_ != null; } /** + * + * *
    * Required. Describes how the autoscaler will operate for primary workers.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workerConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getWorkerConfig() { - return workerConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() : workerConfig_; + return workerConfig_ == null + ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() + : workerConfig_; } /** + * + * *
    * Required. Describes how the autoscaler will operate for primary workers.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder getWorkerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder + getWorkerConfigOrBuilder() { return getWorkerConfig(); } public static final int SECONDARY_WORKER_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondaryWorkerConfig_; /** + * + * *
    * Optional. Describes how the autoscaler will operate for secondary workers.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the secondaryWorkerConfig field is set. */ @java.lang.Override @@ -296,48 +356,60 @@ public boolean hasSecondaryWorkerConfig() { return secondaryWorkerConfig_ != null; } /** + * + * *
    * Optional. Describes how the autoscaler will operate for secondary workers.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The secondaryWorkerConfig. */ @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getSecondaryWorkerConfig() { - return secondaryWorkerConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() : secondaryWorkerConfig_; + public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig + getSecondaryWorkerConfig() { + return secondaryWorkerConfig_ == null + ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() + : secondaryWorkerConfig_; } /** + * + * *
    * Optional. Describes how the autoscaler will operate for secondary workers.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder getSecondaryWorkerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder + getSecondaryWorkerConfigOrBuilder() { return getSecondaryWorkerConfig(); } public static final int LABELS_FIELD_NUMBER = 6; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -346,6 +418,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels to associate with this autoscaling policy.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -358,22 +432,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-
   @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();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this autoscaling policy.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -387,11 +461,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this autoscaling policy.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -405,16 +480,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this autoscaling policy.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -428,12 +503,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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();
     }
@@ -441,6 +515,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -452,8 +527,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
     }
@@ -469,12 +543,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (secondaryWorkerConfig_ != null) {
       output.writeMessage(5, getSecondaryWorkerConfig());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        6);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6);
     getUnknownFields().writeTo(output);
   }
 
@@ -491,26 +561,26 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
     }
     if (algorithmCase_ == 3) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              3, (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_);
     }
     if (workerConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getWorkerConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getWorkerConfig());
     }
     if (secondaryWorkerConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getSecondaryWorkerConfig());
-    }
-    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(5, getSecondaryWorkerConfig());
+    }
+    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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -520,34 +590,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.dataproc.v1.AutoscalingPolicy)) {
       return super.equals(obj);
     }
-    com.google.cloud.dataproc.v1.AutoscalingPolicy other = (com.google.cloud.dataproc.v1.AutoscalingPolicy) obj;
+    com.google.cloud.dataproc.v1.AutoscalingPolicy other =
+        (com.google.cloud.dataproc.v1.AutoscalingPolicy) obj;
 
-    if (!getId()
-        .equals(other.getId())) return false;
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getId().equals(other.getId())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasWorkerConfig() != other.hasWorkerConfig()) return false;
     if (hasWorkerConfig()) {
-      if (!getWorkerConfig()
-          .equals(other.getWorkerConfig())) return false;
+      if (!getWorkerConfig().equals(other.getWorkerConfig())) return false;
     }
     if (hasSecondaryWorkerConfig() != other.hasSecondaryWorkerConfig()) return false;
     if (hasSecondaryWorkerConfig()) {
-      if (!getSecondaryWorkerConfig()
-          .equals(other.getSecondaryWorkerConfig())) return false;
+      if (!getSecondaryWorkerConfig().equals(other.getSecondaryWorkerConfig())) return false;
     }
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getAlgorithmCase().equals(other.getAlgorithmCase())) return false;
     switch (algorithmCase_) {
       case 3:
-        if (!getBasicAlgorithm()
-            .equals(other.getBasicAlgorithm())) return false;
+        if (!getBasicAlgorithm().equals(other.getBasicAlgorithm())) return false;
         break;
       case 0:
       default:
@@ -592,152 +657,156 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.dataproc.v1.AutoscalingPolicy prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Describes an autoscaling policy for Dataproc cluster autoscaler.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.AutoscalingPolicy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.AutoscalingPolicy) com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_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.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AutoscalingPolicy.class, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder.class); + com.google.cloud.dataproc.v1.AutoscalingPolicy.class, + com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder.class); } // Construct using com.google.cloud.dataproc.v1.AutoscalingPolicy.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -767,9 +836,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_descriptor; } @java.lang.Override @@ -788,7 +857,8 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicy build() { @java.lang.Override public com.google.cloud.dataproc.v1.AutoscalingPolicy buildPartial() { - com.google.cloud.dataproc.v1.AutoscalingPolicy result = new com.google.cloud.dataproc.v1.AutoscalingPolicy(this); + com.google.cloud.dataproc.v1.AutoscalingPolicy result = + new com.google.cloud.dataproc.v1.AutoscalingPolicy(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; @@ -820,38 +890,39 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicy buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.AutoscalingPolicy) { - return mergeFrom((com.google.cloud.dataproc.v1.AutoscalingPolicy)other); + return mergeFrom((com.google.cloud.dataproc.v1.AutoscalingPolicy) other); } else { super.mergeFrom(other); return this; @@ -874,16 +945,17 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.AutoscalingPolicy other) { if (other.hasSecondaryWorkerConfig()) { mergeSecondaryWorkerConfig(other.getSecondaryWorkerConfig()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); switch (other.getAlgorithmCase()) { - case BASIC_ALGORITHM: { - mergeBasicAlgorithm(other.getBasicAlgorithm()); - break; - } - case ALGORITHM_NOT_SET: { - break; - } + case BASIC_ALGORITHM: + { + mergeBasicAlgorithm(other.getBasicAlgorithm()); + break; + } + case ALGORITHM_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -911,51 +983,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - id_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - input.readMessage( - getBasicAlgorithmFieldBuilder().getBuilder(), - extensionRegistry); - algorithmCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getWorkerConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - input.readMessage( - getSecondaryWorkerConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + id_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getBasicAlgorithmFieldBuilder().getBuilder(), extensionRegistry); + algorithmCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage( + getSecondaryWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -965,12 +1041,12 @@ public Builder mergeFrom( } // finally return this; } + private int algorithmCase_ = 0; private java.lang.Object algorithm_; - public AlgorithmCase - getAlgorithmCase() { - return AlgorithmCase.forNumber( - algorithmCase_); + + public AlgorithmCase getAlgorithmCase() { + return AlgorithmCase.forNumber(algorithmCase_); } public Builder clearAlgorithm() { @@ -984,6 +1060,8 @@ public Builder clearAlgorithm() { private java.lang.Object id_ = ""; /** + * + * *
      * Required. The policy id.
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -992,13 +1070,13 @@ public Builder clearAlgorithm() {
      * 
* * string id = 1; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -1007,6 +1085,8 @@ public java.lang.String getId() { } } /** + * + * *
      * Required. The policy id.
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1015,15 +1095,14 @@ public java.lang.String getId() {
      * 
* * string id = 1; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -1031,6 +1110,8 @@ public java.lang.String getId() { } } /** + * + * *
      * Required. The policy id.
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1039,20 +1120,22 @@ public java.lang.String getId() {
      * 
* * string id = 1; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
      * Required. The policy id.
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1061,15 +1144,18 @@ public Builder setId(
      * 
* * string id = 1; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * Required. The policy id.
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1078,16 +1164,16 @@ public Builder clearId() {
      * 
* * string id = 1; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -1095,6 +1181,8 @@ public Builder setIdBytes( private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1107,13 +1195,13 @@ public Builder setIdBytes(
      * 
* * string name = 2 [(.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; @@ -1122,6 +1210,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1134,15 +1224,14 @@ public java.lang.String getName() {
      * 
* * string name = 2 [(.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 { @@ -1150,6 +1239,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1162,20 +1253,22 @@ public java.lang.String getName() {
      * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1188,15 +1281,18 @@ public Builder setName(
      * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1209,25 +1305,31 @@ public Builder clearName() {
      * 
* * string name = 2 [(.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; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm, com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder, com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder> basicAlgorithmBuilder_; + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm, + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder, + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder> + basicAlgorithmBuilder_; /** - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the basicAlgorithm field is set. */ @java.lang.Override @@ -1235,7 +1337,10 @@ public boolean hasBasicAlgorithm() { return algorithmCase_ == 3; } /** - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The basicAlgorithm. */ @java.lang.Override @@ -1253,7 +1358,9 @@ public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm getBasicAlgorithm( } } /** - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBasicAlgorithm(com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm value) { if (basicAlgorithmBuilder_ == null) { @@ -1269,7 +1376,9 @@ public Builder setBasicAlgorithm(com.google.cloud.dataproc.v1.BasicAutoscalingAl return this; } /** - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBasicAlgorithm( com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder builderForValue) { @@ -1283,14 +1392,21 @@ public Builder setBasicAlgorithm( return this; } /** - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeBasicAlgorithm(com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm value) { + public Builder mergeBasicAlgorithm( + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm value) { if (basicAlgorithmBuilder_ == null) { - if (algorithmCase_ == 3 && - algorithm_ != com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance()) { - algorithm_ = com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.newBuilder((com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_) - .mergeFrom(value).buildPartial(); + if (algorithmCase_ == 3 + && algorithm_ + != com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance()) { + algorithm_ = + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.newBuilder( + (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_) + .mergeFrom(value) + .buildPartial(); } else { algorithm_ = value; } @@ -1306,7 +1422,9 @@ public Builder mergeBasicAlgorithm(com.google.cloud.dataproc.v1.BasicAutoscaling return this; } /** - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBasicAlgorithm() { if (basicAlgorithmBuilder_ == null) { @@ -1325,16 +1443,22 @@ public Builder clearBasicAlgorithm() { return this; } /** - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder getBasicAlgorithmBuilder() { + public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder + getBasicAlgorithmBuilder() { return getBasicAlgorithmFieldBuilder().getBuilder(); } /** - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder getBasicAlgorithmOrBuilder() { + public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder + getBasicAlgorithmOrBuilder() { if ((algorithmCase_ == 3) && (basicAlgorithmBuilder_ != null)) { return basicAlgorithmBuilder_.getMessageOrBuilder(); } else { @@ -1345,64 +1469,92 @@ public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder getBasicA } } /** - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm, com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder, com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder> + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm, + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder, + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder> getBasicAlgorithmFieldBuilder() { if (basicAlgorithmBuilder_ == null) { if (!(algorithmCase_ == 3)) { algorithm_ = com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance(); } - basicAlgorithmBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm, com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder, com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder>( + basicAlgorithmBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm, + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder, + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder>( (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_, getParentForChildren(), isClean()); algorithm_ = null; } algorithmCase_ = 3; - onChanged();; + onChanged(); + ; return basicAlgorithmBuilder_; } private com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig workerConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> workerConfigBuilder_; + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> + workerConfigBuilder_; /** + * + * *
      * Required. Describes how the autoscaler will operate for primary workers.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workerConfig field is set. */ public boolean hasWorkerConfig() { return workerConfigBuilder_ != null || workerConfig_ != null; } /** + * + * *
      * Required. Describes how the autoscaler will operate for primary workers.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workerConfig. */ public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getWorkerConfig() { if (workerConfigBuilder_ == null) { - return workerConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() : workerConfig_; + return workerConfig_ == null + ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() + : workerConfig_; } else { return workerConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Describes how the autoscaler will operate for primary workers.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { + public Builder setWorkerConfig( + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { if (workerConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1416,11 +1568,15 @@ public Builder setWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupAutosca return this; } /** + * + * *
      * Required. Describes how the autoscaler will operate for primary workers.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkerConfig( com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder builderForValue) { @@ -1434,17 +1590,25 @@ public Builder setWorkerConfig( return this; } /** + * + * *
      * Required. Describes how the autoscaler will operate for primary workers.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { + public Builder mergeWorkerConfig( + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { if (workerConfigBuilder_ == null) { if (workerConfig_ != null) { workerConfig_ = - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.newBuilder(workerConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.newBuilder( + workerConfig_) + .mergeFrom(value) + .buildPartial(); } else { workerConfig_ = value; } @@ -1456,11 +1620,15 @@ public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupAutos return this; } /** + * + * *
      * Required. Describes how the autoscaler will operate for primary workers.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkerConfig() { if (workerConfigBuilder_ == null) { @@ -1474,90 +1642,130 @@ public Builder clearWorkerConfig() { return this; } /** + * + * *
      * Required. Describes how the autoscaler will operate for primary workers.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder getWorkerConfigBuilder() { - + public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder + getWorkerConfigBuilder() { + onChanged(); return getWorkerConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Describes how the autoscaler will operate for primary workers.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder getWorkerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder + getWorkerConfigOrBuilder() { if (workerConfigBuilder_ != null) { return workerConfigBuilder_.getMessageOrBuilder(); } else { - return workerConfig_ == null ? - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() : workerConfig_; + return workerConfig_ == null + ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() + : workerConfig_; } } /** + * + * *
      * Required. Describes how the autoscaler will operate for primary workers.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> getWorkerConfigFieldBuilder() { if (workerConfigBuilder_ == null) { - workerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder>( - getWorkerConfig(), - getParentForChildren(), - isClean()); + workerConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder>( + getWorkerConfig(), getParentForChildren(), isClean()); workerConfig_ = null; } return workerConfigBuilder_; } - private com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondaryWorkerConfig_; + private com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig + secondaryWorkerConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> secondaryWorkerConfigBuilder_; + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> + secondaryWorkerConfigBuilder_; /** + * + * *
      * Optional. Describes how the autoscaler will operate for secondary workers.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the secondaryWorkerConfig field is set. */ public boolean hasSecondaryWorkerConfig() { return secondaryWorkerConfigBuilder_ != null || secondaryWorkerConfig_ != null; } /** + * + * *
      * Optional. Describes how the autoscaler will operate for secondary workers.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The secondaryWorkerConfig. */ - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getSecondaryWorkerConfig() { + public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig + getSecondaryWorkerConfig() { if (secondaryWorkerConfigBuilder_ == null) { - return secondaryWorkerConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() : secondaryWorkerConfig_; + return secondaryWorkerConfig_ == null + ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() + : secondaryWorkerConfig_; } else { return secondaryWorkerConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Describes how the autoscaler will operate for secondary workers.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSecondaryWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { + public Builder setSecondaryWorkerConfig( + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { if (secondaryWorkerConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1571,11 +1779,15 @@ public Builder setSecondaryWorkerConfig(com.google.cloud.dataproc.v1.InstanceGro return this; } /** + * + * *
      * Optional. Describes how the autoscaler will operate for secondary workers.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSecondaryWorkerConfig( com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder builderForValue) { @@ -1589,17 +1801,25 @@ public Builder setSecondaryWorkerConfig( return this; } /** + * + * *
      * Optional. Describes how the autoscaler will operate for secondary workers.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeSecondaryWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { + public Builder mergeSecondaryWorkerConfig( + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { if (secondaryWorkerConfigBuilder_ == null) { if (secondaryWorkerConfig_ != null) { secondaryWorkerConfig_ = - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.newBuilder(secondaryWorkerConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.newBuilder( + secondaryWorkerConfig_) + .mergeFrom(value) + .buildPartial(); } else { secondaryWorkerConfig_ = value; } @@ -1611,11 +1831,15 @@ public Builder mergeSecondaryWorkerConfig(com.google.cloud.dataproc.v1.InstanceG return this; } /** + * + * *
      * Optional. Describes how the autoscaler will operate for secondary workers.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSecondaryWorkerConfig() { if (secondaryWorkerConfigBuilder_ == null) { @@ -1629,69 +1853,86 @@ public Builder clearSecondaryWorkerConfig() { return this; } /** + * + * *
      * Optional. Describes how the autoscaler will operate for secondary workers.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder getSecondaryWorkerConfigBuilder() { - + public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder + getSecondaryWorkerConfigBuilder() { + onChanged(); return getSecondaryWorkerConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Describes how the autoscaler will operate for secondary workers.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder getSecondaryWorkerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder + getSecondaryWorkerConfigOrBuilder() { if (secondaryWorkerConfigBuilder_ != null) { return secondaryWorkerConfigBuilder_.getMessageOrBuilder(); } else { - return secondaryWorkerConfig_ == null ? - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() : secondaryWorkerConfig_; + return secondaryWorkerConfig_ == null + ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() + : secondaryWorkerConfig_; } } /** + * + * *
      * Optional. Describes how the autoscaler will operate for secondary workers.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> getSecondaryWorkerConfigFieldBuilder() { if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder>( - getSecondaryWorkerConfig(), - getParentForChildren(), - isClean()); + secondaryWorkerConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder>( + getSecondaryWorkerConfig(), getParentForChildren(), isClean()); secondaryWorkerConfig_ = null; } return secondaryWorkerConfigBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1703,6 +1944,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels to associate with this autoscaling policy.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1715,22 +1958,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-
     @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();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this autoscaling policy.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1744,11 +1987,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this autoscaling policy.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1762,16 +2006,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this autoscaling policy.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1785,12 +2030,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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();
       }
@@ -1798,11 +2042,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this autoscaling policy.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1815,23 +2060,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    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();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this autoscaling policy.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1844,19 +2087,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this autoscaling policy.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1869,16 +2113,13 @@ public Builder putLabels(
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().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);
     }
 
@@ -1888,12 +2129,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.AutoscalingPolicy)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AutoscalingPolicy)
   private static final com.google.cloud.dataproc.v1.AutoscalingPolicy DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.AutoscalingPolicy();
   }
@@ -1902,27 +2143,27 @@ public static com.google.cloud.dataproc.v1.AutoscalingPolicy getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AutoscalingPolicy parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AutoscalingPolicy parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1937,6 +2178,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.dataproc.v1.AutoscalingPolicy getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java
similarity index 100%
rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java
rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java
diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java
similarity index 71%
rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java
rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java
index 8c0a5e3553c8..46ddc82ec653 100644
--- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java
+++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/dataproc/v1/autoscaling_policies.proto
 
 package com.google.cloud.dataproc.v1;
 
-public interface AutoscalingPolicyOrBuilder extends
+public interface AutoscalingPolicyOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.AutoscalingPolicy)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The policy id.
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -16,10 +34,13 @@ public interface AutoscalingPolicyOrBuilder extends
    * 
* * string id = 1; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * Required. The policy id.
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -28,12 +49,14 @@ public interface AutoscalingPolicyOrBuilder extends
    * 
* * string id = 1; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * Output only. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -46,10 +69,13 @@ public interface AutoscalingPolicyOrBuilder extends
    * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -62,81 +88,121 @@ public interface AutoscalingPolicyOrBuilder extends
    * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the basicAlgorithm field is set. */ boolean hasBasicAlgorithm(); /** - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The basicAlgorithm. */ com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm getBasicAlgorithm(); /** - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder getBasicAlgorithmOrBuilder(); /** + * + * *
    * Required. Describes how the autoscaler will operate for primary workers.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workerConfig field is set. */ boolean hasWorkerConfig(); /** + * + * *
    * Required. Describes how the autoscaler will operate for primary workers.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workerConfig. */ com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getWorkerConfig(); /** + * + * *
    * Required. Describes how the autoscaler will operate for primary workers.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder getWorkerConfigOrBuilder(); + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder + getWorkerConfigOrBuilder(); /** + * + * *
    * Optional. Describes how the autoscaler will operate for secondary workers.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the secondaryWorkerConfig field is set. */ boolean hasSecondaryWorkerConfig(); /** + * + * *
    * Optional. Describes how the autoscaler will operate for secondary workers.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The secondaryWorkerConfig. */ com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getSecondaryWorkerConfig(); /** + * + * *
    * Optional. Describes how the autoscaler will operate for secondary workers.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder getSecondaryWorkerConfigOrBuilder(); + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder + getSecondaryWorkerConfigOrBuilder(); /** + * + * *
    * Optional. The labels to associate with this autoscaling policy.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -151,6 +217,8 @@ public interface AutoscalingPolicyOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this autoscaling policy.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -163,15 +231,13 @@ public interface AutoscalingPolicyOrBuilder extends
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  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();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this autoscaling policy.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -184,9 +250,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this autoscaling policy.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -201,11 +268,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this autoscaling policy.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -218,9 +287,7 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   public com.google.cloud.dataproc.v1.AutoscalingPolicy.AlgorithmCase getAlgorithmCase();
 }
diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroup.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroup.java
similarity index 65%
rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroup.java
rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroup.java
index 72e3ebec1445..574b13e469f3 100644
--- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroup.java
+++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroup.java
@@ -1,61 +1,85 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/dataproc/v1/clusters.proto
 
 package com.google.cloud.dataproc.v1;
 
 /**
+ *
+ *
  * 
  * Node group identification and configuration information.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.AuxiliaryNodeGroup} */ -public final class AuxiliaryNodeGroup extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AuxiliaryNodeGroup extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.AuxiliaryNodeGroup) AuxiliaryNodeGroupOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AuxiliaryNodeGroup.newBuilder() to construct. private AuxiliaryNodeGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AuxiliaryNodeGroup() { nodeGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AuxiliaryNodeGroup(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.class, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder.class); + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.class, + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder.class); } public static final int NODE_GROUP_FIELD_NUMBER = 1; private com.google.cloud.dataproc.v1.NodeGroup nodeGroup_; /** + * + * *
    * Required. Node group configuration.
    * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nodeGroup field is set. */ @java.lang.Override @@ -63,23 +87,34 @@ public boolean hasNodeGroup() { return nodeGroup_ != null; } /** + * + * *
    * Required. Node group configuration.
    * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nodeGroup. */ @java.lang.Override public com.google.cloud.dataproc.v1.NodeGroup getNodeGroup() { - return nodeGroup_ == null ? com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance() : nodeGroup_; + return nodeGroup_ == null + ? com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance() + : nodeGroup_; } /** + * + * *
    * Required. Node group configuration.
    * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder() { @@ -89,6 +124,8 @@ public com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder() { public static final int NODE_GROUP_ID_FIELD_NUMBER = 2; private volatile java.lang.Object nodeGroupId_; /** + * + * *
    * Optional. A node group ID. Generated if not specified.
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -97,6 +134,7 @@ public com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder() {
    * 
* * string node_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nodeGroupId. */ @java.lang.Override @@ -105,14 +143,15 @@ public java.lang.String getNodeGroupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeGroupId_ = s; return s; } } /** + * + * *
    * Optional. A node group ID. Generated if not specified.
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -121,16 +160,15 @@ public java.lang.String getNodeGroupId() {
    * 
* * string node_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nodeGroupId. */ @java.lang.Override - public com.google.protobuf.ByteString - getNodeGroupIdBytes() { + public com.google.protobuf.ByteString getNodeGroupIdBytes() { java.lang.Object ref = nodeGroupId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeGroupId_ = b; return b; } else { @@ -139,6 +177,7 @@ public java.lang.String getNodeGroupId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -150,8 +189,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (nodeGroup_ != null) { output.writeMessage(1, getNodeGroup()); } @@ -168,8 +206,7 @@ public int getSerializedSize() { size = 0; if (nodeGroup_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNodeGroup()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNodeGroup()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeGroupId_); @@ -182,20 +219,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.dataproc.v1.AuxiliaryNodeGroup)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.AuxiliaryNodeGroup other = (com.google.cloud.dataproc.v1.AuxiliaryNodeGroup) obj; + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup other = + (com.google.cloud.dataproc.v1.AuxiliaryNodeGroup) obj; if (hasNodeGroup() != other.hasNodeGroup()) return false; if (hasNodeGroup()) { - if (!getNodeGroup() - .equals(other.getNodeGroup())) return false; + if (!getNodeGroup().equals(other.getNodeGroup())) return false; } - if (!getNodeGroupId() - .equals(other.getNodeGroupId())) return false; + if (!getNodeGroupId().equals(other.getNodeGroupId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -218,130 +254,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.AuxiliaryNodeGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Node group identification and configuration information.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.AuxiliaryNodeGroup} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.AuxiliaryNodeGroup) com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.class, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder.class); + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.class, + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder.class); } // Construct using com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -357,9 +399,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor; } @java.lang.Override @@ -378,7 +420,8 @@ public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup build() { @java.lang.Override public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup buildPartial() { - com.google.cloud.dataproc.v1.AuxiliaryNodeGroup result = new com.google.cloud.dataproc.v1.AuxiliaryNodeGroup(this); + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup result = + new com.google.cloud.dataproc.v1.AuxiliaryNodeGroup(this); if (nodeGroupBuilder_ == null) { result.nodeGroup_ = nodeGroup_; } else { @@ -393,38 +436,39 @@ public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.AuxiliaryNodeGroup) { - return mergeFrom((com.google.cloud.dataproc.v1.AuxiliaryNodeGroup)other); + return mergeFrom((com.google.cloud.dataproc.v1.AuxiliaryNodeGroup) other); } else { super.mergeFrom(other); return this; @@ -432,7 +476,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.AuxiliaryNodeGroup other) { - if (other == com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.getDefaultInstance()) + return this; if (other.hasNodeGroup()) { mergeNodeGroup(other.getNodeGroup()); } @@ -466,24 +511,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getNodeGroupFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - nodeGroupId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getNodeGroupFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + nodeGroupId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -496,39 +542,58 @@ public Builder mergeFrom( private com.google.cloud.dataproc.v1.NodeGroup nodeGroup_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeGroup, com.google.cloud.dataproc.v1.NodeGroup.Builder, com.google.cloud.dataproc.v1.NodeGroupOrBuilder> nodeGroupBuilder_; + com.google.cloud.dataproc.v1.NodeGroup, + com.google.cloud.dataproc.v1.NodeGroup.Builder, + com.google.cloud.dataproc.v1.NodeGroupOrBuilder> + nodeGroupBuilder_; /** + * + * *
      * Required. Node group configuration.
      * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nodeGroup field is set. */ public boolean hasNodeGroup() { return nodeGroupBuilder_ != null || nodeGroup_ != null; } /** + * + * *
      * Required. Node group configuration.
      * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nodeGroup. */ public com.google.cloud.dataproc.v1.NodeGroup getNodeGroup() { if (nodeGroupBuilder_ == null) { - return nodeGroup_ == null ? com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance() : nodeGroup_; + return nodeGroup_ == null + ? com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance() + : nodeGroup_; } else { return nodeGroupBuilder_.getMessage(); } } /** + * + * *
      * Required. Node group configuration.
      * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNodeGroup(com.google.cloud.dataproc.v1.NodeGroup value) { if (nodeGroupBuilder_ == null) { @@ -544,14 +609,17 @@ public Builder setNodeGroup(com.google.cloud.dataproc.v1.NodeGroup value) { return this; } /** + * + * *
      * Required. Node group configuration.
      * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setNodeGroup( - com.google.cloud.dataproc.v1.NodeGroup.Builder builderForValue) { + public Builder setNodeGroup(com.google.cloud.dataproc.v1.NodeGroup.Builder builderForValue) { if (nodeGroupBuilder_ == null) { nodeGroup_ = builderForValue.build(); onChanged(); @@ -562,17 +630,23 @@ public Builder setNodeGroup( return this; } /** + * + * *
      * Required. Node group configuration.
      * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeNodeGroup(com.google.cloud.dataproc.v1.NodeGroup value) { if (nodeGroupBuilder_ == null) { if (nodeGroup_ != null) { nodeGroup_ = - com.google.cloud.dataproc.v1.NodeGroup.newBuilder(nodeGroup_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.NodeGroup.newBuilder(nodeGroup_) + .mergeFrom(value) + .buildPartial(); } else { nodeGroup_ = value; } @@ -584,11 +658,15 @@ public Builder mergeNodeGroup(com.google.cloud.dataproc.v1.NodeGroup value) { return this; } /** + * + * *
      * Required. Node group configuration.
      * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNodeGroup() { if (nodeGroupBuilder_ == null) { @@ -602,48 +680,64 @@ public Builder clearNodeGroup() { return this; } /** + * + * *
      * Required. Node group configuration.
      * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.NodeGroup.Builder getNodeGroupBuilder() { - + onChanged(); return getNodeGroupFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Node group configuration.
      * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder() { if (nodeGroupBuilder_ != null) { return nodeGroupBuilder_.getMessageOrBuilder(); } else { - return nodeGroup_ == null ? - com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance() : nodeGroup_; + return nodeGroup_ == null + ? com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance() + : nodeGroup_; } } /** + * + * *
      * Required. Node group configuration.
      * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeGroup, com.google.cloud.dataproc.v1.NodeGroup.Builder, com.google.cloud.dataproc.v1.NodeGroupOrBuilder> + com.google.cloud.dataproc.v1.NodeGroup, + com.google.cloud.dataproc.v1.NodeGroup.Builder, + com.google.cloud.dataproc.v1.NodeGroupOrBuilder> getNodeGroupFieldBuilder() { if (nodeGroupBuilder_ == null) { - nodeGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeGroup, com.google.cloud.dataproc.v1.NodeGroup.Builder, com.google.cloud.dataproc.v1.NodeGroupOrBuilder>( - getNodeGroup(), - getParentForChildren(), - isClean()); + nodeGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.NodeGroup, + com.google.cloud.dataproc.v1.NodeGroup.Builder, + com.google.cloud.dataproc.v1.NodeGroupOrBuilder>( + getNodeGroup(), getParentForChildren(), isClean()); nodeGroup_ = null; } return nodeGroupBuilder_; @@ -651,6 +745,8 @@ public com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder() { private java.lang.Object nodeGroupId_ = ""; /** + * + * *
      * Optional. A node group ID. Generated if not specified.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -659,13 +755,13 @@ public com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder() {
      * 
* * string node_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nodeGroupId. */ public java.lang.String getNodeGroupId() { java.lang.Object ref = nodeGroupId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeGroupId_ = s; return s; @@ -674,6 +770,8 @@ public java.lang.String getNodeGroupId() { } } /** + * + * *
      * Optional. A node group ID. Generated if not specified.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -682,15 +780,14 @@ public java.lang.String getNodeGroupId() {
      * 
* * string node_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nodeGroupId. */ - public com.google.protobuf.ByteString - getNodeGroupIdBytes() { + public com.google.protobuf.ByteString getNodeGroupIdBytes() { java.lang.Object ref = nodeGroupId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeGroupId_ = b; return b; } else { @@ -698,6 +795,8 @@ public java.lang.String getNodeGroupId() { } } /** + * + * *
      * Optional. A node group ID. Generated if not specified.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -706,20 +805,22 @@ public java.lang.String getNodeGroupId() {
      * 
* * string node_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The nodeGroupId to set. * @return This builder for chaining. */ - public Builder setNodeGroupId( - java.lang.String value) { + public Builder setNodeGroupId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeGroupId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A node group ID. Generated if not specified.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -728,15 +829,18 @@ public Builder setNodeGroupId(
      * 
* * string node_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNodeGroupId() { - + nodeGroupId_ = getDefaultInstance().getNodeGroupId(); onChanged(); return this; } /** + * + * *
      * Optional. A node group ID. Generated if not specified.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -745,23 +849,23 @@ public Builder clearNodeGroupId() {
      * 
* * string node_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for nodeGroupId to set. * @return This builder for chaining. */ - public Builder setNodeGroupIdBytes( - com.google.protobuf.ByteString value) { + public Builder setNodeGroupIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeGroupId_ = 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); } @@ -771,12 +875,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.AuxiliaryNodeGroup) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AuxiliaryNodeGroup) private static final com.google.cloud.dataproc.v1.AuxiliaryNodeGroup DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.AuxiliaryNodeGroup(); } @@ -785,27 +889,27 @@ public static com.google.cloud.dataproc.v1.AuxiliaryNodeGroup getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuxiliaryNodeGroup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuxiliaryNodeGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -820,6 +924,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroupOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroupOrBuilder.java similarity index 58% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroupOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroupOrBuilder.java index d0a1341412a9..ea926d07f919 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroupOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryNodeGroupOrBuilder.java @@ -1,40 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface AuxiliaryNodeGroupOrBuilder extends +public interface AuxiliaryNodeGroupOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.AuxiliaryNodeGroup) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Node group configuration.
    * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nodeGroup field is set. */ boolean hasNodeGroup(); /** + * + * *
    * Required. Node group configuration.
    * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nodeGroup. */ com.google.cloud.dataproc.v1.NodeGroup getNodeGroup(); /** + * + * *
    * Required. Node group configuration.
    * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder(); /** + * + * *
    * Optional. A node group ID. Generated if not specified.
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -43,10 +75,13 @@ public interface AuxiliaryNodeGroupOrBuilder extends
    * 
* * string node_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nodeGroupId. */ java.lang.String getNodeGroupId(); /** + * + * *
    * Optional. A node group ID. Generated if not specified.
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -55,8 +90,8 @@ public interface AuxiliaryNodeGroupOrBuilder extends
    * 
* * string node_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nodeGroupId. */ - com.google.protobuf.ByteString - getNodeGroupIdBytes(); + com.google.protobuf.ByteString getNodeGroupIdBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java similarity index 60% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java index d04e5ba49700..af0e2ec88fbf 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java @@ -1,60 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Auxiliary services configuration for a Cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.AuxiliaryServicesConfig} */ -public final class AuxiliaryServicesConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AuxiliaryServicesConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.AuxiliaryServicesConfig) AuxiliaryServicesConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AuxiliaryServicesConfig.newBuilder() to construct. private AuxiliaryServicesConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AuxiliaryServicesConfig() { - } + + private AuxiliaryServicesConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AuxiliaryServicesConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.class, com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder.class); + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.class, + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder.class); } public static final int METASTORE_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfig_; /** + * + * *
    * Optional. The Hive Metastore configuration for this workload.
    * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the metastoreConfig field is set. */ @java.lang.Override @@ -62,23 +85,34 @@ public boolean hasMetastoreConfig() { return metastoreConfig_ != null; } /** + * + * *
    * Optional. The Hive Metastore configuration for this workload.
    * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The metastoreConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig() { - return metastoreConfig_ == null ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() : metastoreConfig_; + return metastoreConfig_ == null + ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() + : metastoreConfig_; } /** + * + * *
    * Optional. The Hive Metastore configuration for this workload.
    * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder() { @@ -88,11 +122,16 @@ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigO public static final int SPARK_HISTORY_SERVER_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; /** + * + * *
    * Optional. The Spark History Server configuration for the workload.
    * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkHistoryServerConfig field is set. */ @java.lang.Override @@ -100,30 +139,43 @@ public boolean hasSparkHistoryServerConfig() { return sparkHistoryServerConfig_ != null; } /** + * + * *
    * Optional. The Spark History Server configuration for the workload.
    * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkHistoryServerConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { - return sparkHistoryServerConfig_ == null ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; + return sparkHistoryServerConfig_ == null + ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() + : sparkHistoryServerConfig_; } /** + * + * *
    * Optional. The Spark History Server configuration for the workload.
    * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder + getSparkHistoryServerConfigOrBuilder() { return getSparkHistoryServerConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,8 +187,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (metastoreConfig_ != null) { output.writeMessage(1, getMetastoreConfig()); } @@ -153,12 +204,12 @@ public int getSerializedSize() { size = 0; if (metastoreConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMetastoreConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetastoreConfig()); } if (sparkHistoryServerConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSparkHistoryServerConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getSparkHistoryServerConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -168,22 +219,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.dataproc.v1.AuxiliaryServicesConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig other = (com.google.cloud.dataproc.v1.AuxiliaryServicesConfig) obj; + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig other = + (com.google.cloud.dataproc.v1.AuxiliaryServicesConfig) obj; if (hasMetastoreConfig() != other.hasMetastoreConfig()) return false; if (hasMetastoreConfig()) { - if (!getMetastoreConfig() - .equals(other.getMetastoreConfig())) return false; + if (!getMetastoreConfig().equals(other.getMetastoreConfig())) return false; } if (hasSparkHistoryServerConfig() != other.hasSparkHistoryServerConfig()) return false; if (hasSparkHistoryServerConfig()) { - if (!getSparkHistoryServerConfig() - .equals(other.getSparkHistoryServerConfig())) return false; + if (!getSparkHistoryServerConfig().equals(other.getSparkHistoryServerConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -210,129 +260,135 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig 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.dataproc.v1.AuxiliaryServicesConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.AuxiliaryServicesConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Auxiliary services configuration for a Cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.AuxiliaryServicesConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.AuxiliaryServicesConfig) com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.class, com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder.class); + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.class, + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -352,9 +408,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; } @java.lang.Override @@ -373,7 +429,8 @@ public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig buildPartial() { - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig result = new com.google.cloud.dataproc.v1.AuxiliaryServicesConfig(this); + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig result = + new com.google.cloud.dataproc.v1.AuxiliaryServicesConfig(this); if (metastoreConfigBuilder_ == null) { result.metastoreConfig_ = metastoreConfig_; } else { @@ -392,38 +449,39 @@ public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.AuxiliaryServicesConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.AuxiliaryServicesConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.AuxiliaryServicesConfig) other); } else { super.mergeFrom(other); return this; @@ -431,7 +489,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.AuxiliaryServicesConfig other) { - if (other == com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance()) + return this; if (other.hasMetastoreConfig()) { mergeMetastoreConfig(other.getMetastoreConfig()); } @@ -464,26 +523,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getMetastoreConfigFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getMetastoreConfigFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - input.readMessage( - getSparkHistoryServerConfigFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage( + getSparkHistoryServerConfigFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -496,39 +555,58 @@ public Builder mergeFrom( private com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.MetastoreConfig, com.google.cloud.dataproc.v1.MetastoreConfig.Builder, com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> metastoreConfigBuilder_; + com.google.cloud.dataproc.v1.MetastoreConfig, + com.google.cloud.dataproc.v1.MetastoreConfig.Builder, + com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> + metastoreConfigBuilder_; /** + * + * *
      * Optional. The Hive Metastore configuration for this workload.
      * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the metastoreConfig field is set. */ public boolean hasMetastoreConfig() { return metastoreConfigBuilder_ != null || metastoreConfig_ != null; } /** + * + * *
      * Optional. The Hive Metastore configuration for this workload.
      * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The metastoreConfig. */ public com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig() { if (metastoreConfigBuilder_ == null) { - return metastoreConfig_ == null ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() : metastoreConfig_; + return metastoreConfig_ == null + ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() + : metastoreConfig_; } else { return metastoreConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The Hive Metastore configuration for this workload.
      * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { if (metastoreConfigBuilder_ == null) { @@ -544,11 +622,15 @@ public Builder setMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig v return this; } /** + * + * *
      * Optional. The Hive Metastore configuration for this workload.
      * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMetastoreConfig( com.google.cloud.dataproc.v1.MetastoreConfig.Builder builderForValue) { @@ -562,17 +644,23 @@ public Builder setMetastoreConfig( return this; } /** + * + * *
      * Optional. The Hive Metastore configuration for this workload.
      * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { if (metastoreConfigBuilder_ == null) { if (metastoreConfig_ != null) { metastoreConfig_ = - com.google.cloud.dataproc.v1.MetastoreConfig.newBuilder(metastoreConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.MetastoreConfig.newBuilder(metastoreConfig_) + .mergeFrom(value) + .buildPartial(); } else { metastoreConfig_ = value; } @@ -584,11 +672,15 @@ public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig return this; } /** + * + * *
      * Optional. The Hive Metastore configuration for this workload.
      * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMetastoreConfig() { if (metastoreConfigBuilder_ == null) { @@ -602,48 +694,64 @@ public Builder clearMetastoreConfig() { return this; } /** + * + * *
      * Optional. The Hive Metastore configuration for this workload.
      * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.MetastoreConfig.Builder getMetastoreConfigBuilder() { - + onChanged(); return getMetastoreConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The Hive Metastore configuration for this workload.
      * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder() { if (metastoreConfigBuilder_ != null) { return metastoreConfigBuilder_.getMessageOrBuilder(); } else { - return metastoreConfig_ == null ? - com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() : metastoreConfig_; + return metastoreConfig_ == null + ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() + : metastoreConfig_; } } /** + * + * *
      * Optional. The Hive Metastore configuration for this workload.
      * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.MetastoreConfig, com.google.cloud.dataproc.v1.MetastoreConfig.Builder, com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> + com.google.cloud.dataproc.v1.MetastoreConfig, + com.google.cloud.dataproc.v1.MetastoreConfig.Builder, + com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> getMetastoreConfigFieldBuilder() { if (metastoreConfigBuilder_ == null) { - metastoreConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.MetastoreConfig, com.google.cloud.dataproc.v1.MetastoreConfig.Builder, com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder>( - getMetastoreConfig(), - getParentForChildren(), - isClean()); + metastoreConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.MetastoreConfig, + com.google.cloud.dataproc.v1.MetastoreConfig.Builder, + com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder>( + getMetastoreConfig(), getParentForChildren(), isClean()); metastoreConfig_ = null; } return metastoreConfigBuilder_; @@ -651,41 +759,61 @@ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigO private com.google.cloud.dataproc.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkHistoryServerConfig, com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> sparkHistoryServerConfigBuilder_; + com.google.cloud.dataproc.v1.SparkHistoryServerConfig, + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> + sparkHistoryServerConfigBuilder_; /** + * + * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkHistoryServerConfig field is set. */ public boolean hasSparkHistoryServerConfig() { return sparkHistoryServerConfigBuilder_ != null || sparkHistoryServerConfig_ != null; } /** + * + * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkHistoryServerConfig. */ public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { if (sparkHistoryServerConfigBuilder_ == null) { - return sparkHistoryServerConfig_ == null ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; + return sparkHistoryServerConfig_ == null + ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() + : sparkHistoryServerConfig_; } else { return sparkHistoryServerConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSparkHistoryServerConfig(com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { + public Builder setSparkHistoryServerConfig( + com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { if (sparkHistoryServerConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -699,11 +827,15 @@ public Builder setSparkHistoryServerConfig(com.google.cloud.dataproc.v1.SparkHis return this; } /** + * + * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSparkHistoryServerConfig( com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder builderForValue) { @@ -717,17 +849,25 @@ public Builder setSparkHistoryServerConfig( return this; } /** + * + * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeSparkHistoryServerConfig(com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { + public Builder mergeSparkHistoryServerConfig( + com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { if (sparkHistoryServerConfigBuilder_ == null) { if (sparkHistoryServerConfig_ != null) { sparkHistoryServerConfig_ = - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.newBuilder(sparkHistoryServerConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.newBuilder( + sparkHistoryServerConfig_) + .mergeFrom(value) + .buildPartial(); } else { sparkHistoryServerConfig_ = value; } @@ -739,11 +879,15 @@ public Builder mergeSparkHistoryServerConfig(com.google.cloud.dataproc.v1.SparkH return this; } /** + * + * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSparkHistoryServerConfig() { if (sparkHistoryServerConfigBuilder_ == null) { @@ -757,55 +901,73 @@ public Builder clearSparkHistoryServerConfig() { return this; } /** + * + * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder getSparkHistoryServerConfigBuilder() { - + public com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder + getSparkHistoryServerConfigBuilder() { + onChanged(); return getSparkHistoryServerConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder + getSparkHistoryServerConfigOrBuilder() { if (sparkHistoryServerConfigBuilder_ != null) { return sparkHistoryServerConfigBuilder_.getMessageOrBuilder(); } else { - return sparkHistoryServerConfig_ == null ? - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; + return sparkHistoryServerConfig_ == null + ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() + : sparkHistoryServerConfig_; } } /** + * + * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkHistoryServerConfig, com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> + com.google.cloud.dataproc.v1.SparkHistoryServerConfig, + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> getSparkHistoryServerConfigFieldBuilder() { if (sparkHistoryServerConfigBuilder_ == null) { - sparkHistoryServerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkHistoryServerConfig, com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder>( - getSparkHistoryServerConfig(), - getParentForChildren(), - isClean()); + sparkHistoryServerConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkHistoryServerConfig, + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder>( + getSparkHistoryServerConfig(), getParentForChildren(), isClean()); sparkHistoryServerConfig_ = null; } return sparkHistoryServerConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -815,12 +977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.AuxiliaryServicesConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AuxiliaryServicesConfig) private static final com.google.cloud.dataproc.v1.AuxiliaryServicesConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.AuxiliaryServicesConfig(); } @@ -829,27 +991,27 @@ public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuxiliaryServicesConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuxiliaryServicesConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -864,6 +1026,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfigOrBuilder.java new file mode 100644 index 000000000000..27a97b7035f8 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfigOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface AuxiliaryServicesConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.AuxiliaryServicesConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The Hive Metastore configuration for this workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metastoreConfig field is set. + */ + boolean hasMetastoreConfig(); + /** + * + * + *
+   * Optional. The Hive Metastore configuration for this workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metastoreConfig. + */ + com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig(); + /** + * + * + *
+   * Optional. The Hive Metastore configuration for this workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The Spark History Server configuration for the workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sparkHistoryServerConfig field is set. + */ + boolean hasSparkHistoryServerConfig(); + /** + * + * + *
+   * Optional. The Spark History Server configuration for the workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sparkHistoryServerConfig. + */ + com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig(); + /** + * + * + *
+   * Optional. The Spark History Server configuration for the workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder + getSparkHistoryServerConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java similarity index 64% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java index 9cbed7a0f4e2..a0b6f742896e 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Basic algorithm for autoscaling.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.BasicAutoscalingAlgorithm} */ -public final class BasicAutoscalingAlgorithm extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BasicAutoscalingAlgorithm extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) BasicAutoscalingAlgorithmOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BasicAutoscalingAlgorithm.newBuilder() to construct. private BasicAutoscalingAlgorithm(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BasicAutoscalingAlgorithm() { - } + + private BasicAutoscalingAlgorithm() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BasicAutoscalingAlgorithm(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.class, com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder.class); + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.class, + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder.class); } private int configCase_ = 0; private java.lang.Object config_; + public enum ConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { YARN_CONFIG(1), CONFIG_NOT_SET(0); private final int value; + private ConfigCase(int value) { this.value = value; } @@ -70,29 +91,36 @@ public static ConfigCase valueOf(int value) { public static ConfigCase forNumber(int value) { switch (value) { - case 1: return YARN_CONFIG; - case 0: return CONFIG_NOT_SET; - default: return null; + case 1: + return YARN_CONFIG; + case 0: + return CONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ConfigCase - getConfigCase() { - return ConfigCase.forNumber( - configCase_); + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); } public static final int YARN_CONFIG_FIELD_NUMBER = 1; /** + * + * *
    * Required. YARN autoscaling configuration.
    * 
* - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the yarnConfig field is set. */ @java.lang.Override @@ -100,31 +128,40 @@ public boolean hasYarnConfig() { return configCase_ == 1; } /** + * + * *
    * Required. YARN autoscaling configuration.
    * 
* - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The yarnConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getYarnConfig() { if (configCase_ == 1) { - return (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_; + return (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_; } return com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance(); } /** + * + * *
    * Required. YARN autoscaling configuration.
    * 
* - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder getYarnConfigOrBuilder() { if (configCase_ == 1) { - return (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_; + return (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_; } return com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance(); } @@ -132,13 +169,17 @@ public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder getYarnC public static final int COOLDOWN_PERIOD_FIELD_NUMBER = 2; private com.google.protobuf.Duration cooldownPeriod_; /** + * + * *
    * Optional. Duration between scaling events. A scaling period starts after
    * the update operation from the previous event has completed.
    * Bounds: [2m, 1d]. Default: 2m.
    * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the cooldownPeriod field is set. */ @java.lang.Override @@ -146,27 +187,36 @@ public boolean hasCooldownPeriod() { return cooldownPeriod_ != null; } /** + * + * *
    * Optional. Duration between scaling events. A scaling period starts after
    * the update operation from the previous event has completed.
    * Bounds: [2m, 1d]. Default: 2m.
    * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The cooldownPeriod. */ @java.lang.Override public com.google.protobuf.Duration getCooldownPeriod() { - return cooldownPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : cooldownPeriod_; + return cooldownPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : cooldownPeriod_; } /** + * + * *
    * Optional. Duration between scaling events. A scaling period starts after
    * the update operation from the previous event has completed.
    * Bounds: [2m, 1d]. Default: 2m.
    * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder() { @@ -174,6 +224,7 @@ public com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,8 +236,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (configCase_ == 1) { output.writeMessage(1, (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_); } @@ -203,12 +253,12 @@ public int getSerializedSize() { size = 0; if (configCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_); } if (cooldownPeriod_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCooldownPeriod()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCooldownPeriod()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -218,23 +268,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.dataproc.v1.BasicAutoscalingAlgorithm)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm other = (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) obj; + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm other = + (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) obj; if (hasCooldownPeriod() != other.hasCooldownPeriod()) return false; if (hasCooldownPeriod()) { - if (!getCooldownPeriod() - .equals(other.getCooldownPeriod())) return false; + if (!getCooldownPeriod().equals(other.getCooldownPeriod())) return false; } if (!getConfigCase().equals(other.getConfigCase())) return false; switch (configCase_) { case 1: - if (!getYarnConfig() - .equals(other.getYarnConfig())) return false; + if (!getYarnConfig().equals(other.getYarnConfig())) return false; break; case 0: default: @@ -268,129 +317,136 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm 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.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Basic algorithm for autoscaling.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.BasicAutoscalingAlgorithm} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.class, com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder.class); + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.class, + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder.class); } // Construct using com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +465,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; } @java.lang.Override @@ -430,7 +486,8 @@ public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm build() { @java.lang.Override public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm buildPartial() { - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm result = new com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm(this); + com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm result = + new com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm(this); if (configCase_ == 1) { if (yarnConfigBuilder_ == null) { result.config_ = config_; @@ -452,38 +509,39 @@ public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) { - return mergeFrom((com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm)other); + return mergeFrom((com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) other); } else { super.mergeFrom(other); return this; @@ -491,18 +549,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm other) { - if (other == com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance()) + return this; if (other.hasCooldownPeriod()) { mergeCooldownPeriod(other.getCooldownPeriod()); } switch (other.getConfigCase()) { - case YARN_CONFIG: { - mergeYarnConfig(other.getYarnConfig()); - break; - } - case CONFIG_NOT_SET: { - break; - } + case YARN_CONFIG: + { + mergeYarnConfig(other.getYarnConfig()); + break; + } + case CONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -530,26 +591,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getYarnConfigFieldBuilder().getBuilder(), - extensionRegistry); - configCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getCooldownPeriodFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getYarnConfigFieldBuilder().getBuilder(), extensionRegistry); + configCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getCooldownPeriodFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -559,12 +619,12 @@ public Builder mergeFrom( } // finally return this; } + private int configCase_ = 0; private java.lang.Object config_; - public ConfigCase - getConfigCase() { - return ConfigCase.forNumber( - configCase_); + + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); } public Builder clearConfig() { @@ -574,15 +634,22 @@ public Builder clearConfig() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig, com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder, com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder> yarnConfigBuilder_; + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig, + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder, + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder> + yarnConfigBuilder_; /** + * + * *
      * Required. YARN autoscaling configuration.
      * 
* - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the yarnConfig field is set. */ @java.lang.Override @@ -590,11 +657,16 @@ public boolean hasYarnConfig() { return configCase_ == 1; } /** + * + * *
      * Required. YARN autoscaling configuration.
      * 
* - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The yarnConfig. */ @java.lang.Override @@ -612,11 +684,15 @@ public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getYarnConfig() { } } /** + * + * *
      * Required. YARN autoscaling configuration.
      * 
* - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setYarnConfig(com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig value) { if (yarnConfigBuilder_ == null) { @@ -632,11 +708,15 @@ public Builder setYarnConfig(com.google.cloud.dataproc.v1.BasicYarnAutoscalingCo return this; } /** + * + * *
      * Required. YARN autoscaling configuration.
      * 
* - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setYarnConfig( com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder builderForValue) { @@ -650,18 +730,26 @@ public Builder setYarnConfig( return this; } /** + * + * *
      * Required. YARN autoscaling configuration.
      * 
* - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeYarnConfig(com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig value) { if (yarnConfigBuilder_ == null) { - if (configCase_ == 1 && - config_ != com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance()) { - config_ = com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.newBuilder((com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_) - .mergeFrom(value).buildPartial(); + if (configCase_ == 1 + && config_ + != com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance()) { + config_ = + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.newBuilder( + (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -677,11 +765,15 @@ public Builder mergeYarnConfig(com.google.cloud.dataproc.v1.BasicYarnAutoscaling return this; } /** + * + * *
      * Required. YARN autoscaling configuration.
      * 
* - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearYarnConfig() { if (yarnConfigBuilder_ == null) { @@ -700,24 +792,33 @@ public Builder clearYarnConfig() { return this; } /** + * + * *
      * Required. YARN autoscaling configuration.
      * 
* - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder getYarnConfigBuilder() { return getYarnConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. YARN autoscaling configuration.
      * 
* - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder getYarnConfigOrBuilder() { + public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder + getYarnConfigOrBuilder() { if ((configCase_ == 1) && (yarnConfigBuilder_ != null)) { return yarnConfigBuilder_.getMessageOrBuilder(); } else { @@ -728,72 +829,101 @@ public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder getYarnC } } /** + * + * *
      * Required. YARN autoscaling configuration.
      * 
* - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig, com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder, com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder> + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig, + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder, + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder> getYarnConfigFieldBuilder() { if (yarnConfigBuilder_ == null) { if (!(configCase_ == 1)) { config_ = com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance(); } - yarnConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig, com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder, com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder>( + yarnConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig, + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder, + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder>( (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_, getParentForChildren(), isClean()); config_ = null; } configCase_ = 1; - onChanged();; + onChanged(); + ; return yarnConfigBuilder_; } private com.google.protobuf.Duration cooldownPeriod_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> cooldownPeriodBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + cooldownPeriodBuilder_; /** + * + * *
      * Optional. Duration between scaling events. A scaling period starts after
      * the update operation from the previous event has completed.
      * Bounds: [2m, 1d]. Default: 2m.
      * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the cooldownPeriod field is set. */ public boolean hasCooldownPeriod() { return cooldownPeriodBuilder_ != null || cooldownPeriod_ != null; } /** + * + * *
      * Optional. Duration between scaling events. A scaling period starts after
      * the update operation from the previous event has completed.
      * Bounds: [2m, 1d]. Default: 2m.
      * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The cooldownPeriod. */ public com.google.protobuf.Duration getCooldownPeriod() { if (cooldownPeriodBuilder_ == null) { - return cooldownPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : cooldownPeriod_; + return cooldownPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : cooldownPeriod_; } else { return cooldownPeriodBuilder_.getMessage(); } } /** + * + * *
      * Optional. Duration between scaling events. A scaling period starts after
      * the update operation from the previous event has completed.
      * Bounds: [2m, 1d]. Default: 2m.
      * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCooldownPeriod(com.google.protobuf.Duration value) { if (cooldownPeriodBuilder_ == null) { @@ -809,16 +939,19 @@ public Builder setCooldownPeriod(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. Duration between scaling events. A scaling period starts after
      * the update operation from the previous event has completed.
      * Bounds: [2m, 1d]. Default: 2m.
      * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setCooldownPeriod( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setCooldownPeriod(com.google.protobuf.Duration.Builder builderForValue) { if (cooldownPeriodBuilder_ == null) { cooldownPeriod_ = builderForValue.build(); onChanged(); @@ -829,19 +962,25 @@ public Builder setCooldownPeriod( return this; } /** + * + * *
      * Optional. Duration between scaling events. A scaling period starts after
      * the update operation from the previous event has completed.
      * Bounds: [2m, 1d]. Default: 2m.
      * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeCooldownPeriod(com.google.protobuf.Duration value) { if (cooldownPeriodBuilder_ == null) { if (cooldownPeriod_ != null) { cooldownPeriod_ = - com.google.protobuf.Duration.newBuilder(cooldownPeriod_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(cooldownPeriod_) + .mergeFrom(value) + .buildPartial(); } else { cooldownPeriod_ = value; } @@ -853,13 +992,17 @@ public Builder mergeCooldownPeriod(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. Duration between scaling events. A scaling period starts after
      * the update operation from the previous event has completed.
      * Bounds: [2m, 1d]. Default: 2m.
      * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCooldownPeriod() { if (cooldownPeriodBuilder_ == null) { @@ -873,61 +1016,77 @@ public Builder clearCooldownPeriod() { return this; } /** + * + * *
      * Optional. Duration between scaling events. A scaling period starts after
      * the update operation from the previous event has completed.
      * Bounds: [2m, 1d]. Default: 2m.
      * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getCooldownPeriodBuilder() { - + onChanged(); return getCooldownPeriodFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Duration between scaling events. A scaling period starts after
      * the update operation from the previous event has completed.
      * Bounds: [2m, 1d]. Default: 2m.
      * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder() { if (cooldownPeriodBuilder_ != null) { return cooldownPeriodBuilder_.getMessageOrBuilder(); } else { - return cooldownPeriod_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : cooldownPeriod_; + return cooldownPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : cooldownPeriod_; } } /** + * + * *
      * Optional. Duration between scaling events. A scaling period starts after
      * the update operation from the previous event has completed.
      * Bounds: [2m, 1d]. Default: 2m.
      * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getCooldownPeriodFieldBuilder() { if (cooldownPeriodBuilder_ == null) { - cooldownPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getCooldownPeriod(), - getParentForChildren(), - isClean()); + cooldownPeriodBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getCooldownPeriod(), getParentForChildren(), isClean()); cooldownPeriod_ = null; } return cooldownPeriodBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -937,12 +1096,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) private static final com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm(); } @@ -951,27 +1110,27 @@ public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BasicAutoscalingAlgorithm parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BasicAutoscalingAlgorithm parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -986,6 +1145,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java similarity index 60% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java index cd3f65138b4e..788c995b9b91 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java @@ -1,69 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; -public interface BasicAutoscalingAlgorithmOrBuilder extends +public interface BasicAutoscalingAlgorithmOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. YARN autoscaling configuration.
    * 
* - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the yarnConfig field is set. */ boolean hasYarnConfig(); /** + * + * *
    * Required. YARN autoscaling configuration.
    * 
* - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The yarnConfig. */ com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getYarnConfig(); /** + * + * *
    * Required. YARN autoscaling configuration.
    * 
* - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder getYarnConfigOrBuilder(); /** + * + * *
    * Optional. Duration between scaling events. A scaling period starts after
    * the update operation from the previous event has completed.
    * Bounds: [2m, 1d]. Default: 2m.
    * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the cooldownPeriod field is set. */ boolean hasCooldownPeriod(); /** + * + * *
    * Optional. Duration between scaling events. A scaling period starts after
    * the update operation from the previous event has completed.
    * Bounds: [2m, 1d]. Default: 2m.
    * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The cooldownPeriod. */ com.google.protobuf.Duration getCooldownPeriod(); /** + * + * *
    * Optional. Duration between scaling events. A scaling period starts after
    * the update operation from the previous event has completed.
    * Bounds: [2m, 1d]. Default: 2m.
    * 
* - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java similarity index 73% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java index 5be394daf6c3..32a15e6292d9 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java @@ -1,55 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Basic autoscaling configurations for YARN.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.BasicYarnAutoscalingConfig} */ -public final class BasicYarnAutoscalingConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BasicYarnAutoscalingConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) BasicYarnAutoscalingConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BasicYarnAutoscalingConfig.newBuilder() to construct. private BasicYarnAutoscalingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BasicYarnAutoscalingConfig() { - } + + private BasicYarnAutoscalingConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BasicYarnAutoscalingConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.class, com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder.class); + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.class, + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder.class); } public static final int GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER = 5; private com.google.protobuf.Duration gracefulDecommissionTimeout_; /** + * + * *
    * Required. Timeout for YARN graceful decommissioning of Node Managers.
    * Specifies the duration to wait for jobs to complete before forcefully
@@ -58,7 +78,10 @@ protected java.lang.Object newInstance(
    * Bounds: [0s, 1d].
    * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gracefulDecommissionTimeout field is set. */ @java.lang.Override @@ -66,6 +89,8 @@ public boolean hasGracefulDecommissionTimeout() { return gracefulDecommissionTimeout_ != null; } /** + * + * *
    * Required. Timeout for YARN graceful decommissioning of Node Managers.
    * Specifies the duration to wait for jobs to complete before forcefully
@@ -74,14 +99,21 @@ public boolean hasGracefulDecommissionTimeout() {
    * Bounds: [0s, 1d].
    * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gracefulDecommissionTimeout. */ @java.lang.Override public com.google.protobuf.Duration getGracefulDecommissionTimeout() { - return gracefulDecommissionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : gracefulDecommissionTimeout_; + return gracefulDecommissionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : gracefulDecommissionTimeout_; } /** + * + * *
    * Required. Timeout for YARN graceful decommissioning of Node Managers.
    * Specifies the duration to wait for jobs to complete before forcefully
@@ -90,7 +122,9 @@ public com.google.protobuf.Duration getGracefulDecommissionTimeout() {
    * Bounds: [0s, 1d].
    * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { @@ -100,6 +134,8 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui public static final int SCALE_UP_FACTOR_FIELD_NUMBER = 1; private double scaleUpFactor_; /** + * + * *
    * Required. Fraction of average YARN pending memory in the last cooldown period
    * for which to add workers. A scale-up factor of 1.0 will result in scaling
@@ -113,6 +149,7 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui
    * 
* * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scaleUpFactor. */ @java.lang.Override @@ -123,6 +160,8 @@ public double getScaleUpFactor() { public static final int SCALE_DOWN_FACTOR_FIELD_NUMBER = 2; private double scaleDownFactor_; /** + * + * *
    * Required. Fraction of average YARN pending memory in the last cooldown period
    * for which to remove workers. A scale-down factor of 1 will result in
@@ -136,6 +175,7 @@ public double getScaleUpFactor() {
    * 
* * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scaleDownFactor. */ @java.lang.Override @@ -146,6 +186,8 @@ public double getScaleDownFactor() { public static final int SCALE_UP_MIN_WORKER_FRACTION_FIELD_NUMBER = 3; private double scaleUpMinWorkerFraction_; /** + * + * *
    * Optional. Minimum scale-up threshold as a fraction of total cluster size
    * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -156,6 +198,7 @@ public double getScaleDownFactor() {
    * 
* * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The scaleUpMinWorkerFraction. */ @java.lang.Override @@ -166,6 +209,8 @@ public double getScaleUpMinWorkerFraction() { public static final int SCALE_DOWN_MIN_WORKER_FRACTION_FIELD_NUMBER = 4; private double scaleDownMinWorkerFraction_; /** + * + * *
    * Optional. Minimum scale-down threshold as a fraction of total cluster size
    * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -175,7 +220,9 @@ public double getScaleUpMinWorkerFraction() {
    * Bounds: [0.0, 1.0]. Default: 0.0.
    * 
* - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The scaleDownMinWorkerFraction. */ @java.lang.Override @@ -184,6 +231,7 @@ public double getScaleDownMinWorkerFraction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -195,8 +243,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Double.doubleToRawLongBits(scaleUpFactor_) != 0) { output.writeDouble(1, scaleUpFactor_); } @@ -222,24 +269,22 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(scaleUpFactor_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, scaleUpFactor_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, scaleUpFactor_); } if (java.lang.Double.doubleToRawLongBits(scaleDownFactor_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, scaleDownFactor_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, scaleDownFactor_); } if (java.lang.Double.doubleToRawLongBits(scaleUpMinWorkerFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, scaleUpMinWorkerFraction_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, scaleUpMinWorkerFraction_); } if (java.lang.Double.doubleToRawLongBits(scaleDownMinWorkerFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, scaleDownMinWorkerFraction_); + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize(4, scaleDownMinWorkerFraction_); } if (gracefulDecommissionTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getGracefulDecommissionTimeout()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getGracefulDecommissionTimeout()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,30 +294,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig other = (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) obj; + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig other = + (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) obj; if (hasGracefulDecommissionTimeout() != other.hasGracefulDecommissionTimeout()) return false; if (hasGracefulDecommissionTimeout()) { - if (!getGracefulDecommissionTimeout() - .equals(other.getGracefulDecommissionTimeout())) return false; + if (!getGracefulDecommissionTimeout().equals(other.getGracefulDecommissionTimeout())) + return false; } if (java.lang.Double.doubleToLongBits(getScaleUpFactor()) - != java.lang.Double.doubleToLongBits( - other.getScaleUpFactor())) return false; + != java.lang.Double.doubleToLongBits(other.getScaleUpFactor())) return false; if (java.lang.Double.doubleToLongBits(getScaleDownFactor()) - != java.lang.Double.doubleToLongBits( - other.getScaleDownFactor())) return false; + != java.lang.Double.doubleToLongBits(other.getScaleDownFactor())) return false; if (java.lang.Double.doubleToLongBits(getScaleUpMinWorkerFraction()) - != java.lang.Double.doubleToLongBits( - other.getScaleUpMinWorkerFraction())) return false; + != java.lang.Double.doubleToLongBits(other.getScaleUpMinWorkerFraction())) return false; if (java.lang.Double.doubleToLongBits(getScaleDownMinWorkerFraction()) - != java.lang.Double.doubleToLongBits( - other.getScaleDownMinWorkerFraction())) return false; + != java.lang.Double.doubleToLongBits(other.getScaleDownMinWorkerFraction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -289,146 +331,161 @@ public int hashCode() { hash = (53 * hash) + getGracefulDecommissionTimeout().hashCode(); } hash = (37 * hash) + SCALE_UP_FACTOR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getScaleUpFactor())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScaleUpFactor())); hash = (37 * hash) + SCALE_DOWN_FACTOR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getScaleDownFactor())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScaleDownFactor())); hash = (37 * hash) + SCALE_UP_MIN_WORKER_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getScaleUpMinWorkerFraction())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScaleUpMinWorkerFraction())); hash = (37 * hash) + SCALE_DOWN_MIN_WORKER_FRACTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getScaleDownMinWorkerFraction())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScaleDownMinWorkerFraction())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig 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.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Basic autoscaling configurations for YARN.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.BasicYarnAutoscalingConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.class, com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder.class); + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.class, + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -450,9 +507,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; } @java.lang.Override @@ -471,7 +528,8 @@ public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig buildPartial() { - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig result = new com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig(this); + com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig result = + new com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig(this); if (gracefulDecommissionTimeoutBuilder_ == null) { result.gracefulDecommissionTimeout_ = gracefulDecommissionTimeout_; } else { @@ -489,38 +547,39 @@ public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) other); } else { super.mergeFrom(other); return this; @@ -528,7 +587,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig other) { - if (other == com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance()) + return this; if (other.hasGracefulDecommissionTimeout()) { mergeGracefulDecommissionTimeout(other.getGracefulDecommissionTimeout()); } @@ -570,39 +630,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 9: { - scaleUpFactor_ = input.readDouble(); + case 9: + { + scaleUpFactor_ = input.readDouble(); - break; - } // case 9 - case 17: { - scaleDownFactor_ = input.readDouble(); + break; + } // case 9 + case 17: + { + scaleDownFactor_ = input.readDouble(); - break; - } // case 17 - case 25: { - scaleUpMinWorkerFraction_ = input.readDouble(); + break; + } // case 17 + case 25: + { + scaleUpMinWorkerFraction_ = input.readDouble(); - break; - } // case 25 - case 33: { - scaleDownMinWorkerFraction_ = input.readDouble(); + break; + } // case 25 + case 33: + { + scaleDownMinWorkerFraction_ = input.readDouble(); - break; - } // case 33 - case 42: { - input.readMessage( - getGracefulDecommissionTimeoutFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 33 + case 42: + { + input.readMessage( + getGracefulDecommissionTimeoutFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -615,8 +680,13 @@ public Builder mergeFrom( private com.google.protobuf.Duration gracefulDecommissionTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> gracefulDecommissionTimeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + gracefulDecommissionTimeoutBuilder_; /** + * + * *
      * Required. Timeout for YARN graceful decommissioning of Node Managers.
      * Specifies the duration to wait for jobs to complete before forcefully
@@ -625,13 +695,18 @@ public Builder mergeFrom(
      * Bounds: [0s, 1d].
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gracefulDecommissionTimeout field is set. */ public boolean hasGracefulDecommissionTimeout() { return gracefulDecommissionTimeoutBuilder_ != null || gracefulDecommissionTimeout_ != null; } /** + * + * *
      * Required. Timeout for YARN graceful decommissioning of Node Managers.
      * Specifies the duration to wait for jobs to complete before forcefully
@@ -640,17 +715,24 @@ public boolean hasGracefulDecommissionTimeout() {
      * Bounds: [0s, 1d].
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gracefulDecommissionTimeout. */ public com.google.protobuf.Duration getGracefulDecommissionTimeout() { if (gracefulDecommissionTimeoutBuilder_ == null) { - return gracefulDecommissionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : gracefulDecommissionTimeout_; + return gracefulDecommissionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : gracefulDecommissionTimeout_; } else { return gracefulDecommissionTimeoutBuilder_.getMessage(); } } /** + * + * *
      * Required. Timeout for YARN graceful decommissioning of Node Managers.
      * Specifies the duration to wait for jobs to complete before forcefully
@@ -659,7 +741,9 @@ public com.google.protobuf.Duration getGracefulDecommissionTimeout() {
      * Bounds: [0s, 1d].
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value) { if (gracefulDecommissionTimeoutBuilder_ == null) { @@ -675,6 +759,8 @@ public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value return this; } /** + * + * *
      * Required. Timeout for YARN graceful decommissioning of Node Managers.
      * Specifies the duration to wait for jobs to complete before forcefully
@@ -683,7 +769,9 @@ public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value
      * Bounds: [0s, 1d].
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGracefulDecommissionTimeout( com.google.protobuf.Duration.Builder builderForValue) { @@ -697,6 +785,8 @@ public Builder setGracefulDecommissionTimeout( return this; } /** + * + * *
      * Required. Timeout for YARN graceful decommissioning of Node Managers.
      * Specifies the duration to wait for jobs to complete before forcefully
@@ -705,13 +795,17 @@ public Builder setGracefulDecommissionTimeout(
      * Bounds: [0s, 1d].
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration value) { if (gracefulDecommissionTimeoutBuilder_ == null) { if (gracefulDecommissionTimeout_ != null) { gracefulDecommissionTimeout_ = - com.google.protobuf.Duration.newBuilder(gracefulDecommissionTimeout_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(gracefulDecommissionTimeout_) + .mergeFrom(value) + .buildPartial(); } else { gracefulDecommissionTimeout_ = value; } @@ -723,6 +817,8 @@ public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration val return this; } /** + * + * *
      * Required. Timeout for YARN graceful decommissioning of Node Managers.
      * Specifies the duration to wait for jobs to complete before forcefully
@@ -731,7 +827,9 @@ public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration val
      * Bounds: [0s, 1d].
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearGracefulDecommissionTimeout() { if (gracefulDecommissionTimeoutBuilder_ == null) { @@ -745,6 +843,8 @@ public Builder clearGracefulDecommissionTimeout() { return this; } /** + * + * *
      * Required. Timeout for YARN graceful decommissioning of Node Managers.
      * Specifies the duration to wait for jobs to complete before forcefully
@@ -753,14 +853,18 @@ public Builder clearGracefulDecommissionTimeout() {
      * Bounds: [0s, 1d].
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Duration.Builder getGracefulDecommissionTimeoutBuilder() { - + onChanged(); return getGracefulDecommissionTimeoutFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Timeout for YARN graceful decommissioning of Node Managers.
      * Specifies the duration to wait for jobs to complete before forcefully
@@ -769,17 +873,22 @@ public com.google.protobuf.Duration.Builder getGracefulDecommissionTimeoutBuilde
      * Bounds: [0s, 1d].
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { if (gracefulDecommissionTimeoutBuilder_ != null) { return gracefulDecommissionTimeoutBuilder_.getMessageOrBuilder(); } else { - return gracefulDecommissionTimeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : gracefulDecommissionTimeout_; + return gracefulDecommissionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : gracefulDecommissionTimeout_; } } /** + * + * *
      * Required. Timeout for YARN graceful decommissioning of Node Managers.
      * Specifies the duration to wait for jobs to complete before forcefully
@@ -788,24 +897,31 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui
      * Bounds: [0s, 1d].
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ 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> getGracefulDecommissionTimeoutFieldBuilder() { if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getGracefulDecommissionTimeout(), - getParentForChildren(), - isClean()); + gracefulDecommissionTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getGracefulDecommissionTimeout(), getParentForChildren(), isClean()); gracefulDecommissionTimeout_ = null; } return gracefulDecommissionTimeoutBuilder_; } - private double scaleUpFactor_ ; + private double scaleUpFactor_; /** + * + * *
      * Required. Fraction of average YARN pending memory in the last cooldown period
      * for which to add workers. A scale-up factor of 1.0 will result in scaling
@@ -819,6 +935,7 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui
      * 
* * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scaleUpFactor. */ @java.lang.Override @@ -826,6 +943,8 @@ public double getScaleUpFactor() { return scaleUpFactor_; } /** + * + * *
      * Required. Fraction of average YARN pending memory in the last cooldown period
      * for which to add workers. A scale-up factor of 1.0 will result in scaling
@@ -839,16 +958,19 @@ public double getScaleUpFactor() {
      * 
* * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The scaleUpFactor to set. * @return This builder for chaining. */ public Builder setScaleUpFactor(double value) { - + scaleUpFactor_ = value; onChanged(); return this; } /** + * + * *
      * Required. Fraction of average YARN pending memory in the last cooldown period
      * for which to add workers. A scale-up factor of 1.0 will result in scaling
@@ -862,17 +984,20 @@ public Builder setScaleUpFactor(double value) {
      * 
* * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearScaleUpFactor() { - + scaleUpFactor_ = 0D; onChanged(); return this; } - private double scaleDownFactor_ ; + private double scaleDownFactor_; /** + * + * *
      * Required. Fraction of average YARN pending memory in the last cooldown period
      * for which to remove workers. A scale-down factor of 1 will result in
@@ -886,6 +1011,7 @@ public Builder clearScaleUpFactor() {
      * 
* * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scaleDownFactor. */ @java.lang.Override @@ -893,6 +1019,8 @@ public double getScaleDownFactor() { return scaleDownFactor_; } /** + * + * *
      * Required. Fraction of average YARN pending memory in the last cooldown period
      * for which to remove workers. A scale-down factor of 1 will result in
@@ -906,16 +1034,19 @@ public double getScaleDownFactor() {
      * 
* * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The scaleDownFactor to set. * @return This builder for chaining. */ public Builder setScaleDownFactor(double value) { - + scaleDownFactor_ = value; onChanged(); return this; } /** + * + * *
      * Required. Fraction of average YARN pending memory in the last cooldown period
      * for which to remove workers. A scale-down factor of 1 will result in
@@ -929,17 +1060,20 @@ public Builder setScaleDownFactor(double value) {
      * 
* * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearScaleDownFactor() { - + scaleDownFactor_ = 0D; onChanged(); return this; } - private double scaleUpMinWorkerFraction_ ; + private double scaleUpMinWorkerFraction_; /** + * + * *
      * Optional. Minimum scale-up threshold as a fraction of total cluster size
      * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -949,7 +1083,9 @@ public Builder clearScaleDownFactor() {
      * Bounds: [0.0, 1.0]. Default: 0.0.
      * 
* - * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The scaleUpMinWorkerFraction. */ @java.lang.Override @@ -957,6 +1093,8 @@ public double getScaleUpMinWorkerFraction() { return scaleUpMinWorkerFraction_; } /** + * + * *
      * Optional. Minimum scale-up threshold as a fraction of total cluster size
      * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -966,17 +1104,21 @@ public double getScaleUpMinWorkerFraction() {
      * Bounds: [0.0, 1.0]. Default: 0.0.
      * 
* - * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The scaleUpMinWorkerFraction to set. * @return This builder for chaining. */ public Builder setScaleUpMinWorkerFraction(double value) { - + scaleUpMinWorkerFraction_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Minimum scale-up threshold as a fraction of total cluster size
      * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -986,18 +1128,22 @@ public Builder setScaleUpMinWorkerFraction(double value) {
      * Bounds: [0.0, 1.0]. Default: 0.0.
      * 
* - * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearScaleUpMinWorkerFraction() { - + scaleUpMinWorkerFraction_ = 0D; onChanged(); return this; } - private double scaleDownMinWorkerFraction_ ; + private double scaleDownMinWorkerFraction_; /** + * + * *
      * Optional. Minimum scale-down threshold as a fraction of total cluster size
      * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -1007,7 +1153,9 @@ public Builder clearScaleUpMinWorkerFraction() {
      * Bounds: [0.0, 1.0]. Default: 0.0.
      * 
* - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The scaleDownMinWorkerFraction. */ @java.lang.Override @@ -1015,6 +1163,8 @@ public double getScaleDownMinWorkerFraction() { return scaleDownMinWorkerFraction_; } /** + * + * *
      * Optional. Minimum scale-down threshold as a fraction of total cluster size
      * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -1024,17 +1174,21 @@ public double getScaleDownMinWorkerFraction() {
      * Bounds: [0.0, 1.0]. Default: 0.0.
      * 
* - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The scaleDownMinWorkerFraction to set. * @return This builder for chaining. */ public Builder setScaleDownMinWorkerFraction(double value) { - + scaleDownMinWorkerFraction_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Minimum scale-down threshold as a fraction of total cluster size
      * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -1044,18 +1198,20 @@ public Builder setScaleDownMinWorkerFraction(double value) {
      * Bounds: [0.0, 1.0]. Default: 0.0.
      * 
* - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearScaleDownMinWorkerFraction() { - + scaleDownMinWorkerFraction_ = 0D; 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); } @@ -1065,12 +1221,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) private static final com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig(); } @@ -1079,27 +1235,27 @@ public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BasicYarnAutoscalingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BasicYarnAutoscalingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1114,6 +1270,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.java similarity index 78% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.java index e07d3c216f6b..142f7b304236 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; -public interface BasicYarnAutoscalingConfigOrBuilder extends +public interface BasicYarnAutoscalingConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Timeout for YARN graceful decommissioning of Node Managers.
    * Specifies the duration to wait for jobs to complete before forcefully
@@ -16,11 +34,16 @@ public interface BasicYarnAutoscalingConfigOrBuilder extends
    * Bounds: [0s, 1d].
    * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gracefulDecommissionTimeout field is set. */ boolean hasGracefulDecommissionTimeout(); /** + * + * *
    * Required. Timeout for YARN graceful decommissioning of Node Managers.
    * Specifies the duration to wait for jobs to complete before forcefully
@@ -29,11 +52,16 @@ public interface BasicYarnAutoscalingConfigOrBuilder extends
    * Bounds: [0s, 1d].
    * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gracefulDecommissionTimeout. */ com.google.protobuf.Duration getGracefulDecommissionTimeout(); /** + * + * *
    * Required. Timeout for YARN graceful decommissioning of Node Managers.
    * Specifies the duration to wait for jobs to complete before forcefully
@@ -42,11 +70,15 @@ public interface BasicYarnAutoscalingConfigOrBuilder extends
    * Bounds: [0s, 1d].
    * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder(); /** + * + * *
    * Required. Fraction of average YARN pending memory in the last cooldown period
    * for which to add workers. A scale-up factor of 1.0 will result in scaling
@@ -60,11 +92,14 @@ public interface BasicYarnAutoscalingConfigOrBuilder extends
    * 
* * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scaleUpFactor. */ double getScaleUpFactor(); /** + * + * *
    * Required. Fraction of average YARN pending memory in the last cooldown period
    * for which to remove workers. A scale-down factor of 1 will result in
@@ -78,11 +113,14 @@ public interface BasicYarnAutoscalingConfigOrBuilder extends
    * 
* * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scaleDownFactor. */ double getScaleDownFactor(); /** + * + * *
    * Optional. Minimum scale-up threshold as a fraction of total cluster size
    * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -93,11 +131,14 @@ public interface BasicYarnAutoscalingConfigOrBuilder extends
    * 
* * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The scaleUpMinWorkerFraction. */ double getScaleUpMinWorkerFraction(); /** + * + * *
    * Optional. Minimum scale-down threshold as a fraction of total cluster size
    * before scaling occurs. For example, in a 20-worker cluster, a threshold of
@@ -107,7 +148,9 @@ public interface BasicYarnAutoscalingConfigOrBuilder extends
    * Bounds: [0.0, 1.0]. Default: 0.0.
    * 
* - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The scaleDownMinWorkerFraction. */ double getScaleDownMinWorkerFraction(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java index e5989b395204..64d781765ad3 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A representation of a batch workload in the service.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.Batch} */ -public final class Batch extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Batch extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.Batch) BatchOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Batch.newBuilder() to construct. private Batch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Batch() { name_ = ""; uuid_ = ""; @@ -31,51 +49,54 @@ private Batch() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Batch(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_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 13: 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.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.Batch.class, com.google.cloud.dataproc.v1.Batch.Builder.class); + com.google.cloud.dataproc.v1.Batch.class, + com.google.cloud.dataproc.v1.Batch.Builder.class); } /** + * + * *
    * The batch state.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.Batch.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The batch state is unknown.
      * 
@@ -84,6 +105,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The batch is created before running.
      * 
@@ -92,6 +115,8 @@ public enum State */ PENDING(1), /** + * + * *
      * The batch is running.
      * 
@@ -100,6 +125,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * The batch is cancelling.
      * 
@@ -108,6 +135,8 @@ public enum State */ CANCELLING(3), /** + * + * *
      * The batch cancellation was successful.
      * 
@@ -116,6 +145,8 @@ public enum State */ CANCELLED(4), /** + * + * *
      * The batch completed successfully.
      * 
@@ -124,6 +155,8 @@ public enum State */ SUCCEEDED(5), /** + * + * *
      * The batch is no longer running due to an error.
      * 
@@ -135,6 +168,8 @@ public enum State ; /** + * + * *
      * The batch state is unknown.
      * 
@@ -143,6 +178,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The batch is created before running.
      * 
@@ -151,6 +188,8 @@ public enum State */ public static final int PENDING_VALUE = 1; /** + * + * *
      * The batch is running.
      * 
@@ -159,6 +198,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * The batch is cancelling.
      * 
@@ -167,6 +208,8 @@ public enum State */ public static final int CANCELLING_VALUE = 3; /** + * + * *
      * The batch cancellation was successful.
      * 
@@ -175,6 +218,8 @@ public enum State */ public static final int CANCELLED_VALUE = 4; /** + * + * *
      * The batch completed successfully.
      * 
@@ -183,6 +228,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 5; /** + * + * *
      * The batch is no longer running due to an error.
      * 
@@ -191,7 +238,6 @@ public enum State */ public static final int FAILED_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -216,53 +262,57 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return PENDING; - case 2: return RUNNING; - case 3: return CANCELLING; - case 4: return CANCELLED; - case 5: return SUCCEEDED; - case 6: return FAILED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return RUNNING; + case 3: + return CANCELLING; + case 4: + return CANCELLED; + case 5: + return SUCCEEDED; + case 6: + return FAILED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataproc.v1.Batch.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; @@ -279,92 +329,125 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.Batch.State) } - public interface StateHistoryOrBuilder extends + public interface StateHistoryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.Batch.StateHistory) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Output only. The state of the batch at this point in history.
      * 
* - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
      * Output only. The state of the batch at this point in history.
      * 
* - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.dataproc.v1.Batch.State getState(); /** + * + * *
      * Output only. Details about the state at this point in history.
      * 
* * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateMessage. */ java.lang.String getStateMessage(); /** + * + * *
      * Output only. Details about the state at this point in history.
      * 
* * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stateMessage. */ - com.google.protobuf.ByteString - getStateMessageBytes(); + com.google.protobuf.ByteString getStateMessageBytes(); /** + * + * *
      * Output only. The time when the batch entered the historical state.
      * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateStartTime field is set. */ boolean hasStateStartTime(); /** + * + * *
      * Output only. The time when the batch entered the historical state.
      * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateStartTime. */ com.google.protobuf.Timestamp getStateStartTime(); /** + * + * *
      * Output only. The time when the batch entered the historical state.
      * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder(); } /** + * + * *
    * Historical state information.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.Batch.StateHistory} */ - public static final class StateHistory extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class StateHistory extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.Batch.StateHistory) StateHistoryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StateHistory.newBuilder() to construct. private StateHistory(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StateHistory() { state_ = 0; stateMessage_ = ""; @@ -372,64 +455,81 @@ private StateHistory() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StateHistory(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.Batch.StateHistory.class, com.google.cloud.dataproc.v1.Batch.StateHistory.Builder.class); + com.google.cloud.dataproc.v1.Batch.StateHistory.class, + com.google.cloud.dataproc.v1.Batch.StateHistory.Builder.class); } public static final int STATE_FIELD_NUMBER = 1; private int state_; /** + * + * *
      * Output only. The state of the batch at this point in history.
      * 
* - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The state of the batch at this point in history.
      * 
* - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.dataproc.v1.Batch.State getState() { + @java.lang.Override + public com.google.cloud.dataproc.v1.Batch.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.Batch.State result = com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); + com.google.cloud.dataproc.v1.Batch.State result = + com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); return result == null ? com.google.cloud.dataproc.v1.Batch.State.UNRECOGNIZED : result; } public static final int STATE_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object stateMessage_; /** + * + * *
      * Output only. Details about the state at this point in history.
      * 
* * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateMessage. */ @java.lang.Override @@ -438,29 +538,29 @@ public java.lang.String getStateMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; } } /** + * + * *
      * Output only. Details about the state at this point in history.
      * 
* * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stateMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStateMessageBytes() { + public com.google.protobuf.ByteString getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -471,11 +571,16 @@ public java.lang.String getStateMessage() { public static final int STATE_START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp stateStartTime_; /** + * + * *
      * Output only. The time when the batch entered the historical state.
      * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateStartTime field is set. */ @java.lang.Override @@ -483,23 +588,34 @@ public boolean hasStateStartTime() { return stateStartTime_ != null; } /** + * + * *
      * Output only. The time when the batch entered the historical state.
      * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStateStartTime() { - return stateStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; + return stateStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateStartTime_; } /** + * + * *
      * Output only. The time when the batch entered the historical state.
      * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { @@ -507,6 +623,7 @@ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -518,8 +635,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (state_ != com.google.cloud.dataproc.v1.Batch.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } @@ -539,15 +655,13 @@ public int getSerializedSize() { size = 0; if (state_ != com.google.cloud.dataproc.v1.Batch.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stateMessage_); } if (stateStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStateStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStateStartTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -557,20 +671,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.dataproc.v1.Batch.StateHistory)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.Batch.StateHistory other = (com.google.cloud.dataproc.v1.Batch.StateHistory) obj; + com.google.cloud.dataproc.v1.Batch.StateHistory other = + (com.google.cloud.dataproc.v1.Batch.StateHistory) obj; if (state_ != other.state_) return false; - if (!getStateMessage() - .equals(other.getStateMessage())) return false; + if (!getStateMessage().equals(other.getStateMessage())) return false; if (hasStateStartTime() != other.hasStateStartTime()) return false; if (hasStateStartTime()) { - if (!getStateStartTime() - .equals(other.getStateStartTime())) return false; + if (!getStateStartTime().equals(other.getStateStartTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -597,87 +710,93 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.Batch.StateHistory 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.dataproc.v1.Batch.StateHistory parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.Batch.StateHistory prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -687,39 +806,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Historical state information.
      * 
* * Protobuf type {@code google.cloud.dataproc.v1.Batch.StateHistory} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.Batch.StateHistory) com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.Batch.StateHistory.class, com.google.cloud.dataproc.v1.Batch.StateHistory.Builder.class); + com.google.cloud.dataproc.v1.Batch.StateHistory.class, + com.google.cloud.dataproc.v1.Batch.StateHistory.Builder.class); } // Construct using com.google.cloud.dataproc.v1.Batch.StateHistory.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -737,9 +858,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; } @java.lang.Override @@ -758,7 +879,8 @@ public com.google.cloud.dataproc.v1.Batch.StateHistory build() { @java.lang.Override public com.google.cloud.dataproc.v1.Batch.StateHistory buildPartial() { - com.google.cloud.dataproc.v1.Batch.StateHistory result = new com.google.cloud.dataproc.v1.Batch.StateHistory(this); + com.google.cloud.dataproc.v1.Batch.StateHistory result = + new com.google.cloud.dataproc.v1.Batch.StateHistory(this); result.state_ = state_; result.stateMessage_ = stateMessage_; if (stateStartTimeBuilder_ == null) { @@ -774,38 +896,41 @@ public com.google.cloud.dataproc.v1.Batch.StateHistory buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.dataproc.v1.Batch.StateHistory) { - return mergeFrom((com.google.cloud.dataproc.v1.Batch.StateHistory)other); + return mergeFrom((com.google.cloud.dataproc.v1.Batch.StateHistory) other); } else { super.mergeFrom(other); return this; @@ -813,7 +938,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.Batch.StateHistory other) { - if (other == com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance()) + return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -850,29 +976,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - state_ = input.readEnum(); - - break; - } // case 8 - case 18: { - stateMessage_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - input.readMessage( - getStateStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + state_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + stateMessage_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage( + getStateStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -885,51 +1014,73 @@ public Builder mergeFrom( private int state_ = 0; /** + * + * *
        * Output only. The state of the batch at this point in history.
        * 
* - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
        * Output only. The state of the batch at this point in history.
        * 
* - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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; } /** + * + * *
        * Output only. The state of the batch at this point in history.
        * 
* - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.dataproc.v1.Batch.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.Batch.State result = com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); + com.google.cloud.dataproc.v1.Batch.State result = + com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); return result == null ? com.google.cloud.dataproc.v1.Batch.State.UNRECOGNIZED : result; } /** + * + * *
        * Output only. The state of the batch at this point in history.
        * 
* - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -937,21 +1088,26 @@ public Builder setState(com.google.cloud.dataproc.v1.Batch.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Output only. The state of the batch at this point in history.
        * 
* - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -959,18 +1115,20 @@ public Builder clearState() { private java.lang.Object stateMessage_ = ""; /** + * + * *
        * Output only. Details about the state at this point in history.
        * 
* * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateMessage. */ public java.lang.String getStateMessage() { java.lang.Object ref = stateMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; @@ -979,20 +1137,21 @@ public java.lang.String getStateMessage() { } } /** + * + * *
        * Output only. Details about the state at this point in history.
        * 
* * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stateMessage. */ - public com.google.protobuf.ByteString - getStateMessageBytes() { + public com.google.protobuf.ByteString getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -1000,54 +1159,61 @@ public java.lang.String getStateMessage() { } } /** + * + * *
        * Output only. Details about the state at this point in history.
        * 
* * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessage( - java.lang.String value) { + public Builder setStateMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stateMessage_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Details about the state at this point in history.
        * 
* * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStateMessage() { - + stateMessage_ = getDefaultInstance().getStateMessage(); onChanged(); return this; } /** + * + * *
        * Output only. Details about the state at this point in history.
        * 
* * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateMessage_ = value; onChanged(); return this; @@ -1055,39 +1221,58 @@ public Builder setStateMessageBytes( private com.google.protobuf.Timestamp stateStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> stateStartTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + stateStartTimeBuilder_; /** + * + * *
        * Output only. The time when the batch entered the historical state.
        * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateStartTime field is set. */ public boolean hasStateStartTime() { return stateStartTimeBuilder_ != null || stateStartTime_ != null; } /** + * + * *
        * Output only. The time when the batch entered the historical state.
        * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateStartTime. */ public com.google.protobuf.Timestamp getStateStartTime() { if (stateStartTimeBuilder_ == null) { - return stateStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; + return stateStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateStartTime_; } else { return stateStartTimeBuilder_.getMessage(); } } /** + * + * *
        * Output only. The time when the batch entered the historical state.
        * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStateStartTime(com.google.protobuf.Timestamp value) { if (stateStartTimeBuilder_ == null) { @@ -1103,14 +1288,17 @@ public Builder setStateStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Output only. The time when the batch entered the historical state.
        * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStateStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (stateStartTimeBuilder_ == null) { stateStartTime_ = builderForValue.build(); onChanged(); @@ -1121,17 +1309,23 @@ public Builder setStateStartTime( return this; } /** + * + * *
        * Output only. The time when the batch entered the historical state.
        * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { if (stateStartTimeBuilder_ == null) { if (stateStartTime_ != null) { stateStartTime_ = - com.google.protobuf.Timestamp.newBuilder(stateStartTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(stateStartTime_) + .mergeFrom(value) + .buildPartial(); } else { stateStartTime_ = value; } @@ -1143,11 +1337,15 @@ public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Output only. The time when the batch entered the historical state.
        * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStateStartTime() { if (stateStartTimeBuilder_ == null) { @@ -1161,52 +1359,69 @@ public Builder clearStateStartTime() { return this; } /** + * + * *
        * Output only. The time when the batch entered the historical state.
        * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStateStartTimeBuilder() { - + onChanged(); return getStateStartTimeFieldBuilder().getBuilder(); } /** + * + * *
        * Output only. The time when the batch entered the historical state.
        * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { if (stateStartTimeBuilder_ != null) { return stateStartTimeBuilder_.getMessageOrBuilder(); } else { - return stateStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; + return stateStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateStartTime_; } } /** + * + * *
        * Output only. The time when the batch entered the historical state.
        * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.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> getStateStartTimeFieldBuilder() { if (stateStartTimeBuilder_ == null) { - stateStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStateStartTime(), - getParentForChildren(), - isClean()); + stateStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStateStartTime(), getParentForChildren(), isClean()); stateStartTime_ = null; } return stateStartTimeBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1219,12 +1434,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.Batch.StateHistory) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Batch.StateHistory) private static final com.google.cloud.dataproc.v1.Batch.StateHistory DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.Batch.StateHistory(); } @@ -1233,27 +1448,28 @@ public static com.google.cloud.dataproc.v1.Batch.StateHistory getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StateHistory parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateHistory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1268,13 +1484,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.Batch.StateHistory getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int batchConfigCase_ = 0; private java.lang.Object batchConfig_; + public enum BatchConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PYSPARK_BATCH(4), SPARK_BATCH(5), @@ -1282,6 +1499,7 @@ public enum BatchConfigCase SPARK_SQL_BATCH(7), BATCHCONFIG_NOT_SET(0); private final int value; + private BatchConfigCase(int value) { this.value = value; } @@ -1297,33 +1515,41 @@ public static BatchConfigCase valueOf(int value) { public static BatchConfigCase forNumber(int value) { switch (value) { - case 4: return PYSPARK_BATCH; - case 5: return SPARK_BATCH; - case 6: return SPARK_R_BATCH; - case 7: return SPARK_SQL_BATCH; - case 0: return BATCHCONFIG_NOT_SET; - default: return null; + case 4: + return PYSPARK_BATCH; + case 5: + return SPARK_BATCH; + case 6: + return SPARK_R_BATCH; + case 7: + return SPARK_SQL_BATCH; + case 0: + return BATCHCONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public BatchConfigCase - getBatchConfigCase() { - return BatchConfigCase.forNumber( - batchConfigCase_); + public BatchConfigCase getBatchConfigCase() { + return BatchConfigCase.forNumber(batchConfigCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of the batch.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1332,29 +1558,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name of the batch.
    * 
* * 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 { @@ -1365,12 +1591,15 @@ public java.lang.String getName() { public static final int UUID_FIELD_NUMBER = 2; private volatile java.lang.Object uuid_; /** + * + * *
    * Output only. A batch UUID (Unique Universal Identifier). The service
    * generates this value when it creates the batch.
    * 
* * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uuid. */ @java.lang.Override @@ -1379,30 +1608,30 @@ public java.lang.String getUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uuid_ = s; return s; } } /** + * + * *
    * Output only. A batch UUID (Unique Universal Identifier). The service
    * generates this value when it creates the batch.
    * 
* * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uuid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUuidBytes() { + public com.google.protobuf.ByteString getUuidBytes() { java.lang.Object ref = uuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uuid_ = b; return b; } else { @@ -1413,11 +1642,15 @@ public java.lang.String getUuid() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time when the batch was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1425,11 +1658,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the batch was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1437,11 +1674,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the batch was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1450,11 +1690,16 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int PYSPARK_BATCH_FIELD_NUMBER = 4; /** + * + * *
    * Optional. PySpark batch config.
    * 
* - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pysparkBatch field is set. */ @java.lang.Override @@ -1462,42 +1707,56 @@ public boolean hasPysparkBatch() { return batchConfigCase_ == 4; } /** + * + * *
    * Optional. PySpark batch config.
    * 
* - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pysparkBatch. */ @java.lang.Override public com.google.cloud.dataproc.v1.PySparkBatch getPysparkBatch() { if (batchConfigCase_ == 4) { - return (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_; + return (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_; } return com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); } /** + * + * *
    * Optional. PySpark batch config.
    * 
* - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.PySparkBatchOrBuilder getPysparkBatchOrBuilder() { if (batchConfigCase_ == 4) { - return (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_; + return (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_; } return com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); } public static final int SPARK_BATCH_FIELD_NUMBER = 5; /** + * + * *
    * Optional. Spark batch config.
    * 
* - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkBatch field is set. */ @java.lang.Override @@ -1505,42 +1764,56 @@ public boolean hasSparkBatch() { return batchConfigCase_ == 5; } /** + * + * *
    * Optional. Spark batch config.
    * 
* - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkBatch. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkBatch getSparkBatch() { if (batchConfigCase_ == 5) { - return (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_; + return (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_; } return com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); } /** + * + * *
    * Optional. Spark batch config.
    * 
* - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkBatchOrBuilder getSparkBatchOrBuilder() { if (batchConfigCase_ == 5) { - return (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_; + return (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_; } return com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); } public static final int SPARK_R_BATCH_FIELD_NUMBER = 6; /** + * + * *
    * Optional. SparkR batch config.
    * 
* - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkRBatch field is set. */ @java.lang.Override @@ -1548,42 +1821,56 @@ public boolean hasSparkRBatch() { return batchConfigCase_ == 6; } /** + * + * *
    * Optional. SparkR batch config.
    * 
* - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkRBatch. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkRBatch getSparkRBatch() { if (batchConfigCase_ == 6) { - return (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_; + return (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_; } return com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); } /** + * + * *
    * Optional. SparkR batch config.
    * 
* - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkRBatchOrBuilder getSparkRBatchOrBuilder() { if (batchConfigCase_ == 6) { - return (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_; + return (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_; } return com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); } public static final int SPARK_SQL_BATCH_FIELD_NUMBER = 7; /** + * + * *
    * Optional. SparkSql batch config.
    * 
* - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkSqlBatch field is set. */ @java.lang.Override @@ -1591,31 +1878,40 @@ public boolean hasSparkSqlBatch() { return batchConfigCase_ == 7; } /** + * + * *
    * Optional. SparkSql batch config.
    * 
* - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkSqlBatch. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlBatch getSparkSqlBatch() { if (batchConfigCase_ == 7) { - return (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_; + return (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_; } return com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); } /** + * + * *
    * Optional. SparkSql batch config.
    * 
* - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder getSparkSqlBatchOrBuilder() { if (batchConfigCase_ == 7) { - return (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_; + return (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_; } return com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); } @@ -1623,11 +1919,16 @@ public com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder getSparkSqlBatchOrBui public static final int RUNTIME_INFO_FIELD_NUMBER = 8; private com.google.cloud.dataproc.v1.RuntimeInfo runtimeInfo_; /** + * + * *
    * Output only. Runtime information about batch execution.
    * 
* - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the runtimeInfo field is set. */ @java.lang.Override @@ -1635,23 +1936,34 @@ public boolean hasRuntimeInfo() { return runtimeInfo_ != null; } /** + * + * *
    * Output only. Runtime information about batch execution.
    * 
* - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The runtimeInfo. */ @java.lang.Override public com.google.cloud.dataproc.v1.RuntimeInfo getRuntimeInfo() { - return runtimeInfo_ == null ? com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance() : runtimeInfo_; + return runtimeInfo_ == null + ? com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance() + : runtimeInfo_; } /** + * + * *
    * Output only. Runtime information about batch execution.
    * 
* - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder getRuntimeInfoOrBuilder() { @@ -1661,39 +1973,55 @@ public com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder getRuntimeInfoOrBuilder public static final int STATE_FIELD_NUMBER = 9; private int state_; /** + * + * *
    * Output only. The state of the batch.
    * 
* - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The state of the batch.
    * 
* - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.dataproc.v1.Batch.State getState() { + @java.lang.Override + public com.google.cloud.dataproc.v1.Batch.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.Batch.State result = com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); + com.google.cloud.dataproc.v1.Batch.State result = + com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); return result == null ? com.google.cloud.dataproc.v1.Batch.State.UNRECOGNIZED : result; } public static final int STATE_MESSAGE_FIELD_NUMBER = 10; private volatile java.lang.Object stateMessage_; /** + * + * *
    * Output only. Batch state details, such as a failure
    * description if the state is `FAILED`.
    * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateMessage. */ @java.lang.Override @@ -1702,30 +2030,30 @@ public java.lang.String getStateMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; } } /** + * + * *
    * Output only. Batch state details, such as a failure
    * description if the state is `FAILED`.
    * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stateMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStateMessageBytes() { + public com.google.protobuf.ByteString getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -1736,11 +2064,15 @@ public java.lang.String getStateMessage() { public static final int STATE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp stateTime_; /** + * + * *
    * Output only. The time when the batch entered a current state.
    * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateTime field is set. */ @java.lang.Override @@ -1748,11 +2080,15 @@ public boolean hasStateTime() { return stateTime_ != null; } /** + * + * *
    * Output only. The time when the batch entered a current state.
    * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateTime. */ @java.lang.Override @@ -1760,11 +2096,14 @@ public com.google.protobuf.Timestamp getStateTime() { return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_; } /** + * + * *
    * Output only. The time when the batch entered a current state.
    * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { @@ -1774,11 +2113,14 @@ public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { public static final int CREATOR_FIELD_NUMBER = 12; private volatile java.lang.Object creator_; /** + * + * *
    * Output only. The email address of the user who created the batch.
    * 
* * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creator. */ @java.lang.Override @@ -1787,29 +2129,29 @@ public java.lang.String getCreator() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creator_ = s; return s; } } /** + * + * *
    * Output only. The email address of the user who created the batch.
    * 
* * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for creator. */ @java.lang.Override - public com.google.protobuf.ByteString - getCreatorBytes() { + public com.google.protobuf.ByteString getCreatorBytes() { java.lang.Object ref = creator_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); creator_ = b; return b; } else { @@ -1818,24 +2160,23 @@ public java.lang.String getCreator() { } public static final int LABELS_FIELD_NUMBER = 13; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1844,6 +2185,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels to associate with this batch.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1856,22 +2199,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-
   @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();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this batch.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1885,11 +2228,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this batch.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1903,16 +2247,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this batch.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1926,12 +2270,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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();
     }
@@ -1941,11 +2284,16 @@ public java.lang.String getLabelsOrThrow(
   public static final int RUNTIME_CONFIG_FIELD_NUMBER = 14;
   private com.google.cloud.dataproc.v1.RuntimeConfig runtimeConfig_;
   /**
+   *
+   *
    * 
    * Optional. Runtime configuration for the batch execution.
    * 
* - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the runtimeConfig field is set. */ @java.lang.Override @@ -1953,23 +2301,34 @@ public boolean hasRuntimeConfig() { return runtimeConfig_ != null; } /** + * + * *
    * Optional. Runtime configuration for the batch execution.
    * 
* - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The runtimeConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.RuntimeConfig getRuntimeConfig() { - return runtimeConfig_ == null ? com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance() : runtimeConfig_; + return runtimeConfig_ == null + ? com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance() + : runtimeConfig_; } /** + * + * *
    * Optional. Runtime configuration for the batch execution.
    * 
* - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder getRuntimeConfigOrBuilder() { @@ -1979,11 +2338,16 @@ public com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder getRuntimeConfigOrBui public static final int ENVIRONMENT_CONFIG_FIELD_NUMBER = 15; private com.google.cloud.dataproc.v1.EnvironmentConfig environmentConfig_; /** + * + * *
    * Optional. Environment configuration for the batch execution.
    * 
* - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the environmentConfig field is set. */ @java.lang.Override @@ -1991,23 +2355,34 @@ public boolean hasEnvironmentConfig() { return environmentConfig_ != null; } /** + * + * *
    * Optional. Environment configuration for the batch execution.
    * 
* - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The environmentConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.EnvironmentConfig getEnvironmentConfig() { - return environmentConfig_ == null ? com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance() : environmentConfig_; + return environmentConfig_ == null + ? com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance() + : environmentConfig_; } /** + * + * *
    * Optional. Environment configuration for the batch execution.
    * 
* - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder getEnvironmentConfigOrBuilder() { @@ -2017,11 +2392,14 @@ public com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder getEnvironmentCon public static final int OPERATION_FIELD_NUMBER = 16; private volatile java.lang.Object operation_; /** + * + * *
    * Output only. The resource name of the operation associated with this batch.
    * 
* * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The operation. */ @java.lang.Override @@ -2030,29 +2408,29 @@ public java.lang.String getOperation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operation_ = s; return s; } } /** + * + * *
    * Output only. The resource name of the operation associated with this batch.
    * 
* * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for operation. */ @java.lang.Override - public com.google.protobuf.ByteString - getOperationBytes() { + public com.google.protobuf.ByteString getOperationBytes() { java.lang.Object ref = operation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operation_ = b; return b; } else { @@ -2063,56 +2441,76 @@ public java.lang.String getOperation() { public static final int STATE_HISTORY_FIELD_NUMBER = 17; private java.util.List stateHistory_; /** + * + * *
    * Output only. Historical state information for the batch.
    * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getStateHistoryList() { return stateHistory_; } /** + * + * *
    * Output only. Historical state information for the batch.
    * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getStateHistoryOrBuilderList() { return stateHistory_; } /** + * + * *
    * Output only. Historical state information for the batch.
    * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getStateHistoryCount() { return stateHistory_.size(); } /** + * + * *
    * Output only. Historical state information for the batch.
    * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.Batch.StateHistory getStateHistory(int index) { return stateHistory_.get(index); } /** + * + * *
    * Output only. Historical state information for the batch.
    * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder getStateHistoryOrBuilder( @@ -2121,6 +2519,7 @@ public com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder getStateHistoryO } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2132,8 +2531,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -2170,12 +2568,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, creator_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 13); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 13); if (runtimeConfig_ != null) { output.writeMessage(14, getRuntimeConfig()); } @@ -2204,67 +2598,64 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uuid_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (batchConfigCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_); } if (batchConfigCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_); } if (batchConfigCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_); } if (batchConfigCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_); } if (runtimeInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getRuntimeInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRuntimeInfo()); } if (state_ != com.google.cloud.dataproc.v1.Batch.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, stateMessage_); } if (stateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getStateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getStateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, creator_); } - 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(13, labels__); + 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(13, labels__); } if (runtimeConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getRuntimeConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getRuntimeConfig()); } if (environmentConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getEnvironmentConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getEnvironmentConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, operation_); } for (int i = 0; i < stateHistory_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, stateHistory_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, stateHistory_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2274,70 +2665,54 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.Batch)) { return super.equals(obj); } com.google.cloud.dataproc.v1.Batch other = (com.google.cloud.dataproc.v1.Batch) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUuid() - .equals(other.getUuid())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUuid().equals(other.getUuid())) 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 (hasRuntimeInfo() != other.hasRuntimeInfo()) return false; if (hasRuntimeInfo()) { - if (!getRuntimeInfo() - .equals(other.getRuntimeInfo())) return false; + if (!getRuntimeInfo().equals(other.getRuntimeInfo())) return false; } if (state_ != other.state_) return false; - if (!getStateMessage() - .equals(other.getStateMessage())) return false; + if (!getStateMessage().equals(other.getStateMessage())) return false; if (hasStateTime() != other.hasStateTime()) return false; if (hasStateTime()) { - if (!getStateTime() - .equals(other.getStateTime())) return false; + if (!getStateTime().equals(other.getStateTime())) return false; } - if (!getCreator() - .equals(other.getCreator())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getCreator().equals(other.getCreator())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasRuntimeConfig() != other.hasRuntimeConfig()) return false; if (hasRuntimeConfig()) { - if (!getRuntimeConfig() - .equals(other.getRuntimeConfig())) return false; + if (!getRuntimeConfig().equals(other.getRuntimeConfig())) return false; } if (hasEnvironmentConfig() != other.hasEnvironmentConfig()) return false; if (hasEnvironmentConfig()) { - if (!getEnvironmentConfig() - .equals(other.getEnvironmentConfig())) return false; + if (!getEnvironmentConfig().equals(other.getEnvironmentConfig())) return false; } - if (!getOperation() - .equals(other.getOperation())) return false; - if (!getStateHistoryList() - .equals(other.getStateHistoryList())) return false; + if (!getOperation().equals(other.getOperation())) return false; + if (!getStateHistoryList().equals(other.getStateHistoryList())) return false; if (!getBatchConfigCase().equals(other.getBatchConfigCase())) return false; switch (batchConfigCase_) { case 4: - if (!getPysparkBatch() - .equals(other.getPysparkBatch())) return false; + if (!getPysparkBatch().equals(other.getPysparkBatch())) return false; break; case 5: - if (!getSparkBatch() - .equals(other.getSparkBatch())) return false; + if (!getSparkBatch().equals(other.getSparkBatch())) return false; break; case 6: - if (!getSparkRBatch() - .equals(other.getSparkRBatch())) return false; + if (!getSparkRBatch().equals(other.getSparkRBatch())) return false; break; case 7: - if (!getSparkSqlBatch() - .equals(other.getSparkSqlBatch())) return false; + if (!getSparkSqlBatch().equals(other.getSparkSqlBatch())) return false; break; case 0: default: @@ -2418,152 +2793,155 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.Batch parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.Batch parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.Batch parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.Batch parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.dataproc.v1.Batch parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.Batch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.Batch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.Batch parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.Batch parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.Batch parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.Batch 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.dataproc.v1.Batch parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.Batch parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.Batch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.Batch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 representation of a batch workload in the service.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.Batch} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.Batch) com.google.cloud.dataproc.v1.BatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 13: 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 13: 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.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.Batch.class, com.google.cloud.dataproc.v1.Batch.Builder.class); + com.google.cloud.dataproc.v1.Batch.class, + com.google.cloud.dataproc.v1.Batch.Builder.class); } // Construct using com.google.cloud.dataproc.v1.Batch.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2635,9 +3013,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_Batch_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_descriptor; } @java.lang.Override @@ -2737,38 +3115,39 @@ public com.google.cloud.dataproc.v1.Batch buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.Batch) { - return mergeFrom((com.google.cloud.dataproc.v1.Batch)other); + return mergeFrom((com.google.cloud.dataproc.v1.Batch) other); } else { super.mergeFrom(other); return this; @@ -2805,8 +3184,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Batch other) { creator_ = other.creator_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasRuntimeConfig()) { mergeRuntimeConfig(other.getRuntimeConfig()); } @@ -2835,34 +3213,40 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Batch other) { stateHistoryBuilder_ = null; stateHistory_ = other.stateHistory_; bitField0_ = (bitField0_ & ~0x00000002); - stateHistoryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStateHistoryFieldBuilder() : null; + stateHistoryBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStateHistoryFieldBuilder() + : null; } else { stateHistoryBuilder_.addAllMessages(other.stateHistory_); } } } switch (other.getBatchConfigCase()) { - case PYSPARK_BATCH: { - mergePysparkBatch(other.getPysparkBatch()); - break; - } - case SPARK_BATCH: { - mergeSparkBatch(other.getSparkBatch()); - break; - } - case SPARK_R_BATCH: { - mergeSparkRBatch(other.getSparkRBatch()); - break; - } - case SPARK_SQL_BATCH: { - mergeSparkSqlBatch(other.getSparkSqlBatch()); - break; - } - case BATCHCONFIG_NOT_SET: { - break; - } + case PYSPARK_BATCH: + { + mergePysparkBatch(other.getPysparkBatch()); + break; + } + case SPARK_BATCH: + { + mergeSparkBatch(other.getSparkBatch()); + break; + } + case SPARK_R_BATCH: + { + mergeSparkRBatch(other.getSparkRBatch()); + break; + } + case SPARK_SQL_BATCH: + { + mergeSparkSqlBatch(other.getSparkSqlBatch()); + break; + } + case BATCHCONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2890,126 +3274,129 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); + case 10: + { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - uuid_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + uuid_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - case 34: { - input.readMessage( - getPysparkBatchFieldBuilder().getBuilder(), - extensionRegistry); - batchConfigCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getSparkBatchFieldBuilder().getBuilder(), - extensionRegistry); - batchConfigCase_ = 5; - break; - } // case 42 - case 50: { - input.readMessage( - getSparkRBatchFieldBuilder().getBuilder(), - extensionRegistry); - batchConfigCase_ = 6; - break; - } // case 50 - case 58: { - input.readMessage( - getSparkSqlBatchFieldBuilder().getBuilder(), - extensionRegistry); - batchConfigCase_ = 7; - break; - } // case 58 - case 66: { - input.readMessage( - getRuntimeInfoFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 26 + case 34: + { + input.readMessage(getPysparkBatchFieldBuilder().getBuilder(), extensionRegistry); + batchConfigCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getSparkBatchFieldBuilder().getBuilder(), extensionRegistry); + batchConfigCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getSparkRBatchFieldBuilder().getBuilder(), extensionRegistry); + batchConfigCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getSparkSqlBatchFieldBuilder().getBuilder(), extensionRegistry); + batchConfigCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage(getRuntimeInfoFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 66 - case 72: { - state_ = input.readEnum(); + break; + } // case 66 + case 72: + { + state_ = input.readEnum(); - break; - } // case 72 - case 82: { - stateMessage_ = input.readStringRequireUtf8(); + break; + } // case 72 + case 82: + { + stateMessage_ = input.readStringRequireUtf8(); - break; - } // case 82 - case 90: { - input.readMessage( - getStateTimeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 82 + case 90: + { + input.readMessage(getStateTimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 90 - case 98: { - creator_ = input.readStringRequireUtf8(); + break; + } // case 90 + case 98: + { + creator_ = input.readStringRequireUtf8(); - break; - } // case 98 - case 106: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 106 - case 114: { - input.readMessage( - getRuntimeConfigFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 98 + case 106: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 106 + case 114: + { + input.readMessage(getRuntimeConfigFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 114 - case 122: { - input.readMessage( - getEnvironmentConfigFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 114 + case 122: + { + input.readMessage( + getEnvironmentConfigFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 122 - case 130: { - operation_ = input.readStringRequireUtf8(); + break; + } // case 122 + case 130: + { + operation_ = input.readStringRequireUtf8(); - break; - } // case 130 - case 138: { - com.google.cloud.dataproc.v1.Batch.StateHistory m = - input.readMessage( - com.google.cloud.dataproc.v1.Batch.StateHistory.parser(), - extensionRegistry); - if (stateHistoryBuilder_ == null) { - ensureStateHistoryIsMutable(); - stateHistory_.add(m); - } else { - stateHistoryBuilder_.addMessage(m); - } - break; - } // case 138 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 130 + case 138: + { + com.google.cloud.dataproc.v1.Batch.StateHistory m = + input.readMessage( + com.google.cloud.dataproc.v1.Batch.StateHistory.parser(), + extensionRegistry); + if (stateHistoryBuilder_ == null) { + ensureStateHistoryIsMutable(); + stateHistory_.add(m); + } else { + stateHistoryBuilder_.addMessage(m); + } + break; + } // case 138 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3019,12 +3406,12 @@ public Builder mergeFrom( } // finally return this; } + private int batchConfigCase_ = 0; private java.lang.Object batchConfig_; - public BatchConfigCase - getBatchConfigCase() { - return BatchConfigCase.forNumber( - batchConfigCase_); + + public BatchConfigCase getBatchConfigCase() { + return BatchConfigCase.forNumber(batchConfigCase_); } public Builder clearBatchConfig() { @@ -3038,18 +3425,20 @@ public Builder clearBatchConfig() { private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the batch.
      * 
* * 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; @@ -3058,20 +3447,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the batch.
      * 
* * 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 { @@ -3079,54 +3469,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the batch.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the batch.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the batch.
      * 
* * 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; @@ -3134,19 +3531,21 @@ public Builder setNameBytes( private java.lang.Object uuid_ = ""; /** + * + * *
      * Output only. A batch UUID (Unique Universal Identifier). The service
      * generates this value when it creates the batch.
      * 
* * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uuid. */ public java.lang.String getUuid() { java.lang.Object ref = uuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uuid_ = s; return s; @@ -3155,21 +3554,22 @@ public java.lang.String getUuid() { } } /** + * + * *
      * Output only. A batch UUID (Unique Universal Identifier). The service
      * generates this value when it creates the batch.
      * 
* * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uuid. */ - public com.google.protobuf.ByteString - getUuidBytes() { + public com.google.protobuf.ByteString getUuidBytes() { java.lang.Object ref = uuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uuid_ = b; return b; } else { @@ -3177,57 +3577,64 @@ public java.lang.String getUuid() { } } /** + * + * *
      * Output only. A batch UUID (Unique Universal Identifier). The service
      * generates this value when it creates the batch.
      * 
* * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uuid to set. * @return This builder for chaining. */ - public Builder setUuid( - java.lang.String value) { + public Builder setUuid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uuid_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A batch UUID (Unique Universal Identifier). The service
      * generates this value when it creates the batch.
      * 
* * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUuid() { - + uuid_ = getDefaultInstance().getUuid(); onChanged(); return this; } /** + * + * *
      * Output only. A batch UUID (Unique Universal Identifier). The service
      * generates this value when it creates the batch.
      * 
* * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uuid to set. * @return This builder for chaining. */ - public Builder setUuidBytes( - com.google.protobuf.ByteString value) { + public Builder setUuidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uuid_ = value; onChanged(); return this; @@ -3235,39 +3642,58 @@ public Builder setUuidBytes( 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 when the batch was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.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 when the batch was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.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 when the batch was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3283,14 +3709,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the batch was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.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(); @@ -3301,17 +3730,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the batch was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.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; } @@ -3323,11 +3756,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the batch was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3341,61 +3778,85 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the batch was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the batch was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.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 when the batch was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkBatch, com.google.cloud.dataproc.v1.PySparkBatch.Builder, com.google.cloud.dataproc.v1.PySparkBatchOrBuilder> pysparkBatchBuilder_; + com.google.cloud.dataproc.v1.PySparkBatch, + com.google.cloud.dataproc.v1.PySparkBatch.Builder, + com.google.cloud.dataproc.v1.PySparkBatchOrBuilder> + pysparkBatchBuilder_; /** + * + * *
      * Optional. PySpark batch config.
      * 
* - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pysparkBatch field is set. */ @java.lang.Override @@ -3403,11 +3864,16 @@ public boolean hasPysparkBatch() { return batchConfigCase_ == 4; } /** + * + * *
      * Optional. PySpark batch config.
      * 
* - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pysparkBatch. */ @java.lang.Override @@ -3425,11 +3891,15 @@ public com.google.cloud.dataproc.v1.PySparkBatch getPysparkBatch() { } } /** + * + * *
      * Optional. PySpark batch config.
      * 
* - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPysparkBatch(com.google.cloud.dataproc.v1.PySparkBatch value) { if (pysparkBatchBuilder_ == null) { @@ -3445,11 +3915,15 @@ public Builder setPysparkBatch(com.google.cloud.dataproc.v1.PySparkBatch value) return this; } /** + * + * *
      * Optional. PySpark batch config.
      * 
* - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPysparkBatch( com.google.cloud.dataproc.v1.PySparkBatch.Builder builderForValue) { @@ -3463,18 +3937,25 @@ public Builder setPysparkBatch( return this; } /** + * + * *
      * Optional. PySpark batch config.
      * 
* - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePysparkBatch(com.google.cloud.dataproc.v1.PySparkBatch value) { if (pysparkBatchBuilder_ == null) { - if (batchConfigCase_ == 4 && - batchConfig_ != com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance()) { - batchConfig_ = com.google.cloud.dataproc.v1.PySparkBatch.newBuilder((com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_) - .mergeFrom(value).buildPartial(); + if (batchConfigCase_ == 4 + && batchConfig_ != com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance()) { + batchConfig_ = + com.google.cloud.dataproc.v1.PySparkBatch.newBuilder( + (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_) + .mergeFrom(value) + .buildPartial(); } else { batchConfig_ = value; } @@ -3490,11 +3971,15 @@ public Builder mergePysparkBatch(com.google.cloud.dataproc.v1.PySparkBatch value return this; } /** + * + * *
      * Optional. PySpark batch config.
      * 
* - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPysparkBatch() { if (pysparkBatchBuilder_ == null) { @@ -3513,21 +3998,29 @@ public Builder clearPysparkBatch() { return this; } /** + * + * *
      * Optional. PySpark batch config.
      * 
* - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.PySparkBatch.Builder getPysparkBatchBuilder() { return getPysparkBatchFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. PySpark batch config.
      * 
* - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.PySparkBatchOrBuilder getPysparkBatchOrBuilder() { @@ -3541,39 +4034,57 @@ public com.google.cloud.dataproc.v1.PySparkBatchOrBuilder getPysparkBatchOrBuild } } /** + * + * *
      * Optional. PySpark batch config.
      * 
* - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkBatch, com.google.cloud.dataproc.v1.PySparkBatch.Builder, com.google.cloud.dataproc.v1.PySparkBatchOrBuilder> + com.google.cloud.dataproc.v1.PySparkBatch, + com.google.cloud.dataproc.v1.PySparkBatch.Builder, + com.google.cloud.dataproc.v1.PySparkBatchOrBuilder> getPysparkBatchFieldBuilder() { if (pysparkBatchBuilder_ == null) { if (!(batchConfigCase_ == 4)) { batchConfig_ = com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); } - pysparkBatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkBatch, com.google.cloud.dataproc.v1.PySparkBatch.Builder, com.google.cloud.dataproc.v1.PySparkBatchOrBuilder>( + pysparkBatchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PySparkBatch, + com.google.cloud.dataproc.v1.PySparkBatch.Builder, + com.google.cloud.dataproc.v1.PySparkBatchOrBuilder>( (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_, getParentForChildren(), isClean()); batchConfig_ = null; } batchConfigCase_ = 4; - onChanged();; + onChanged(); + ; return pysparkBatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkBatch, com.google.cloud.dataproc.v1.SparkBatch.Builder, com.google.cloud.dataproc.v1.SparkBatchOrBuilder> sparkBatchBuilder_; + com.google.cloud.dataproc.v1.SparkBatch, + com.google.cloud.dataproc.v1.SparkBatch.Builder, + com.google.cloud.dataproc.v1.SparkBatchOrBuilder> + sparkBatchBuilder_; /** + * + * *
      * Optional. Spark batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkBatch field is set. */ @java.lang.Override @@ -3581,11 +4092,16 @@ public boolean hasSparkBatch() { return batchConfigCase_ == 5; } /** + * + * *
      * Optional. Spark batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkBatch. */ @java.lang.Override @@ -3603,11 +4119,15 @@ public com.google.cloud.dataproc.v1.SparkBatch getSparkBatch() { } } /** + * + * *
      * Optional. Spark batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSparkBatch(com.google.cloud.dataproc.v1.SparkBatch value) { if (sparkBatchBuilder_ == null) { @@ -3623,14 +4143,17 @@ public Builder setSparkBatch(com.google.cloud.dataproc.v1.SparkBatch value) { return this; } /** + * + * *
      * Optional. Spark batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSparkBatch( - com.google.cloud.dataproc.v1.SparkBatch.Builder builderForValue) { + public Builder setSparkBatch(com.google.cloud.dataproc.v1.SparkBatch.Builder builderForValue) { if (sparkBatchBuilder_ == null) { batchConfig_ = builderForValue.build(); onChanged(); @@ -3641,18 +4164,25 @@ public Builder setSparkBatch( return this; } /** + * + * *
      * Optional. Spark batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSparkBatch(com.google.cloud.dataproc.v1.SparkBatch value) { if (sparkBatchBuilder_ == null) { - if (batchConfigCase_ == 5 && - batchConfig_ != com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance()) { - batchConfig_ = com.google.cloud.dataproc.v1.SparkBatch.newBuilder((com.google.cloud.dataproc.v1.SparkBatch) batchConfig_) - .mergeFrom(value).buildPartial(); + if (batchConfigCase_ == 5 + && batchConfig_ != com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance()) { + batchConfig_ = + com.google.cloud.dataproc.v1.SparkBatch.newBuilder( + (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_) + .mergeFrom(value) + .buildPartial(); } else { batchConfig_ = value; } @@ -3668,11 +4198,15 @@ public Builder mergeSparkBatch(com.google.cloud.dataproc.v1.SparkBatch value) { return this; } /** + * + * *
      * Optional. Spark batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSparkBatch() { if (sparkBatchBuilder_ == null) { @@ -3691,21 +4225,29 @@ public Builder clearSparkBatch() { return this; } /** + * + * *
      * Optional. Spark batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.SparkBatch.Builder getSparkBatchBuilder() { return getSparkBatchFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Spark batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkBatchOrBuilder getSparkBatchOrBuilder() { @@ -3719,39 +4261,57 @@ public com.google.cloud.dataproc.v1.SparkBatchOrBuilder getSparkBatchOrBuilder() } } /** + * + * *
      * Optional. Spark batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkBatch, com.google.cloud.dataproc.v1.SparkBatch.Builder, com.google.cloud.dataproc.v1.SparkBatchOrBuilder> + com.google.cloud.dataproc.v1.SparkBatch, + com.google.cloud.dataproc.v1.SparkBatch.Builder, + com.google.cloud.dataproc.v1.SparkBatchOrBuilder> getSparkBatchFieldBuilder() { if (sparkBatchBuilder_ == null) { if (!(batchConfigCase_ == 5)) { batchConfig_ = com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); } - sparkBatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkBatch, com.google.cloud.dataproc.v1.SparkBatch.Builder, com.google.cloud.dataproc.v1.SparkBatchOrBuilder>( + sparkBatchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkBatch, + com.google.cloud.dataproc.v1.SparkBatch.Builder, + com.google.cloud.dataproc.v1.SparkBatchOrBuilder>( (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_, getParentForChildren(), isClean()); batchConfig_ = null; } batchConfigCase_ = 5; - onChanged();; + onChanged(); + ; return sparkBatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRBatch, com.google.cloud.dataproc.v1.SparkRBatch.Builder, com.google.cloud.dataproc.v1.SparkRBatchOrBuilder> sparkRBatchBuilder_; + com.google.cloud.dataproc.v1.SparkRBatch, + com.google.cloud.dataproc.v1.SparkRBatch.Builder, + com.google.cloud.dataproc.v1.SparkRBatchOrBuilder> + sparkRBatchBuilder_; /** + * + * *
      * Optional. SparkR batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkRBatch field is set. */ @java.lang.Override @@ -3759,11 +4319,16 @@ public boolean hasSparkRBatch() { return batchConfigCase_ == 6; } /** + * + * *
      * Optional. SparkR batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkRBatch. */ @java.lang.Override @@ -3781,11 +4346,15 @@ public com.google.cloud.dataproc.v1.SparkRBatch getSparkRBatch() { } } /** + * + * *
      * Optional. SparkR batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSparkRBatch(com.google.cloud.dataproc.v1.SparkRBatch value) { if (sparkRBatchBuilder_ == null) { @@ -3801,11 +4370,15 @@ public Builder setSparkRBatch(com.google.cloud.dataproc.v1.SparkRBatch value) { return this; } /** + * + * *
      * Optional. SparkR batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSparkRBatch( com.google.cloud.dataproc.v1.SparkRBatch.Builder builderForValue) { @@ -3819,18 +4392,25 @@ public Builder setSparkRBatch( return this; } /** + * + * *
      * Optional. SparkR batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSparkRBatch(com.google.cloud.dataproc.v1.SparkRBatch value) { if (sparkRBatchBuilder_ == null) { - if (batchConfigCase_ == 6 && - batchConfig_ != com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance()) { - batchConfig_ = com.google.cloud.dataproc.v1.SparkRBatch.newBuilder((com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_) - .mergeFrom(value).buildPartial(); + if (batchConfigCase_ == 6 + && batchConfig_ != com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance()) { + batchConfig_ = + com.google.cloud.dataproc.v1.SparkRBatch.newBuilder( + (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_) + .mergeFrom(value) + .buildPartial(); } else { batchConfig_ = value; } @@ -3846,11 +4426,15 @@ public Builder mergeSparkRBatch(com.google.cloud.dataproc.v1.SparkRBatch value) return this; } /** + * + * *
      * Optional. SparkR batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSparkRBatch() { if (sparkRBatchBuilder_ == null) { @@ -3869,21 +4453,29 @@ public Builder clearSparkRBatch() { return this; } /** + * + * *
      * Optional. SparkR batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.SparkRBatch.Builder getSparkRBatchBuilder() { return getSparkRBatchFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. SparkR batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkRBatchOrBuilder getSparkRBatchOrBuilder() { @@ -3897,39 +4489,57 @@ public com.google.cloud.dataproc.v1.SparkRBatchOrBuilder getSparkRBatchOrBuilder } } /** + * + * *
      * Optional. SparkR batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRBatch, com.google.cloud.dataproc.v1.SparkRBatch.Builder, com.google.cloud.dataproc.v1.SparkRBatchOrBuilder> + com.google.cloud.dataproc.v1.SparkRBatch, + com.google.cloud.dataproc.v1.SparkRBatch.Builder, + com.google.cloud.dataproc.v1.SparkRBatchOrBuilder> getSparkRBatchFieldBuilder() { if (sparkRBatchBuilder_ == null) { if (!(batchConfigCase_ == 6)) { batchConfig_ = com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); } - sparkRBatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRBatch, com.google.cloud.dataproc.v1.SparkRBatch.Builder, com.google.cloud.dataproc.v1.SparkRBatchOrBuilder>( + sparkRBatchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkRBatch, + com.google.cloud.dataproc.v1.SparkRBatch.Builder, + com.google.cloud.dataproc.v1.SparkRBatchOrBuilder>( (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_, getParentForChildren(), isClean()); batchConfig_ = null; } batchConfigCase_ = 6; - onChanged();; + onChanged(); + ; return sparkRBatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlBatch, com.google.cloud.dataproc.v1.SparkSqlBatch.Builder, com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder> sparkSqlBatchBuilder_; + com.google.cloud.dataproc.v1.SparkSqlBatch, + com.google.cloud.dataproc.v1.SparkSqlBatch.Builder, + com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder> + sparkSqlBatchBuilder_; /** + * + * *
      * Optional. SparkSql batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkSqlBatch field is set. */ @java.lang.Override @@ -3937,11 +4547,16 @@ public boolean hasSparkSqlBatch() { return batchConfigCase_ == 7; } /** + * + * *
      * Optional. SparkSql batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkSqlBatch. */ @java.lang.Override @@ -3959,11 +4574,15 @@ public com.google.cloud.dataproc.v1.SparkSqlBatch getSparkSqlBatch() { } } /** + * + * *
      * Optional. SparkSql batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSparkSqlBatch(com.google.cloud.dataproc.v1.SparkSqlBatch value) { if (sparkSqlBatchBuilder_ == null) { @@ -3979,11 +4598,15 @@ public Builder setSparkSqlBatch(com.google.cloud.dataproc.v1.SparkSqlBatch value return this; } /** + * + * *
      * Optional. SparkSql batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSparkSqlBatch( com.google.cloud.dataproc.v1.SparkSqlBatch.Builder builderForValue) { @@ -3997,18 +4620,25 @@ public Builder setSparkSqlBatch( return this; } /** + * + * *
      * Optional. SparkSql batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSparkSqlBatch(com.google.cloud.dataproc.v1.SparkSqlBatch value) { if (sparkSqlBatchBuilder_ == null) { - if (batchConfigCase_ == 7 && - batchConfig_ != com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance()) { - batchConfig_ = com.google.cloud.dataproc.v1.SparkSqlBatch.newBuilder((com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_) - .mergeFrom(value).buildPartial(); + if (batchConfigCase_ == 7 + && batchConfig_ != com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance()) { + batchConfig_ = + com.google.cloud.dataproc.v1.SparkSqlBatch.newBuilder( + (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_) + .mergeFrom(value) + .buildPartial(); } else { batchConfig_ = value; } @@ -4024,11 +4654,15 @@ public Builder mergeSparkSqlBatch(com.google.cloud.dataproc.v1.SparkSqlBatch val return this; } /** + * + * *
      * Optional. SparkSql batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSparkSqlBatch() { if (sparkSqlBatchBuilder_ == null) { @@ -4047,21 +4681,29 @@ public Builder clearSparkSqlBatch() { return this; } /** + * + * *
      * Optional. SparkSql batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.SparkSqlBatch.Builder getSparkSqlBatchBuilder() { return getSparkSqlBatchFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. SparkSql batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder getSparkSqlBatchOrBuilder() { @@ -4075,66 +4717,95 @@ public com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder getSparkSqlBatchOrBui } } /** + * + * *
      * Optional. SparkSql batch config.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlBatch, com.google.cloud.dataproc.v1.SparkSqlBatch.Builder, com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder> + com.google.cloud.dataproc.v1.SparkSqlBatch, + com.google.cloud.dataproc.v1.SparkSqlBatch.Builder, + com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder> getSparkSqlBatchFieldBuilder() { if (sparkSqlBatchBuilder_ == null) { if (!(batchConfigCase_ == 7)) { batchConfig_ = com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); } - sparkSqlBatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlBatch, com.google.cloud.dataproc.v1.SparkSqlBatch.Builder, com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder>( + sparkSqlBatchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkSqlBatch, + com.google.cloud.dataproc.v1.SparkSqlBatch.Builder, + com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder>( (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_, getParentForChildren(), isClean()); batchConfig_ = null; } batchConfigCase_ = 7; - onChanged();; + onChanged(); + ; return sparkSqlBatchBuilder_; } private com.google.cloud.dataproc.v1.RuntimeInfo runtimeInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RuntimeInfo, com.google.cloud.dataproc.v1.RuntimeInfo.Builder, com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder> runtimeInfoBuilder_; + com.google.cloud.dataproc.v1.RuntimeInfo, + com.google.cloud.dataproc.v1.RuntimeInfo.Builder, + com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder> + runtimeInfoBuilder_; /** + * + * *
      * Output only. Runtime information about batch execution.
      * 
* - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the runtimeInfo field is set. */ public boolean hasRuntimeInfo() { return runtimeInfoBuilder_ != null || runtimeInfo_ != null; } /** + * + * *
      * Output only. Runtime information about batch execution.
      * 
* - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The runtimeInfo. */ public com.google.cloud.dataproc.v1.RuntimeInfo getRuntimeInfo() { if (runtimeInfoBuilder_ == null) { - return runtimeInfo_ == null ? com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance() : runtimeInfo_; + return runtimeInfo_ == null + ? com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance() + : runtimeInfo_; } else { return runtimeInfoBuilder_.getMessage(); } } /** + * + * *
      * Output only. Runtime information about batch execution.
      * 
* - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRuntimeInfo(com.google.cloud.dataproc.v1.RuntimeInfo value) { if (runtimeInfoBuilder_ == null) { @@ -4150,11 +4821,15 @@ public Builder setRuntimeInfo(com.google.cloud.dataproc.v1.RuntimeInfo value) { return this; } /** + * + * *
      * Output only. Runtime information about batch execution.
      * 
* - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRuntimeInfo( com.google.cloud.dataproc.v1.RuntimeInfo.Builder builderForValue) { @@ -4168,17 +4843,23 @@ public Builder setRuntimeInfo( return this; } /** + * + * *
      * Output only. Runtime information about batch execution.
      * 
* - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeRuntimeInfo(com.google.cloud.dataproc.v1.RuntimeInfo value) { if (runtimeInfoBuilder_ == null) { if (runtimeInfo_ != null) { runtimeInfo_ = - com.google.cloud.dataproc.v1.RuntimeInfo.newBuilder(runtimeInfo_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.RuntimeInfo.newBuilder(runtimeInfo_) + .mergeFrom(value) + .buildPartial(); } else { runtimeInfo_ = value; } @@ -4190,11 +4871,15 @@ public Builder mergeRuntimeInfo(com.google.cloud.dataproc.v1.RuntimeInfo value) return this; } /** + * + * *
      * Output only. Runtime information about batch execution.
      * 
* - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearRuntimeInfo() { if (runtimeInfoBuilder_ == null) { @@ -4208,48 +4893,64 @@ public Builder clearRuntimeInfo() { return this; } /** + * + * *
      * Output only. Runtime information about batch execution.
      * 
* - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.RuntimeInfo.Builder getRuntimeInfoBuilder() { - + onChanged(); return getRuntimeInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Runtime information about batch execution.
      * 
* - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder getRuntimeInfoOrBuilder() { if (runtimeInfoBuilder_ != null) { return runtimeInfoBuilder_.getMessageOrBuilder(); } else { - return runtimeInfo_ == null ? - com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance() : runtimeInfo_; + return runtimeInfo_ == null + ? com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance() + : runtimeInfo_; } } /** + * + * *
      * Output only. Runtime information about batch execution.
      * 
* - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RuntimeInfo, com.google.cloud.dataproc.v1.RuntimeInfo.Builder, com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder> + com.google.cloud.dataproc.v1.RuntimeInfo, + com.google.cloud.dataproc.v1.RuntimeInfo.Builder, + com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder> getRuntimeInfoFieldBuilder() { if (runtimeInfoBuilder_ == null) { - runtimeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RuntimeInfo, com.google.cloud.dataproc.v1.RuntimeInfo.Builder, com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder>( - getRuntimeInfo(), - getParentForChildren(), - isClean()); + runtimeInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.RuntimeInfo, + com.google.cloud.dataproc.v1.RuntimeInfo.Builder, + com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder>( + getRuntimeInfo(), getParentForChildren(), isClean()); runtimeInfo_ = null; } return runtimeInfoBuilder_; @@ -4257,51 +4958,73 @@ public com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder getRuntimeInfoOrBuilder private int state_ = 0; /** + * + * *
      * Output only. The state of the batch.
      * 
* - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The state of the batch.
      * 
* - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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; } /** + * + * *
      * Output only. The state of the batch.
      * 
* - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.dataproc.v1.Batch.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.Batch.State result = com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); + com.google.cloud.dataproc.v1.Batch.State result = + com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); return result == null ? com.google.cloud.dataproc.v1.Batch.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The state of the batch.
      * 
* - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -4309,21 +5032,26 @@ public Builder setState(com.google.cloud.dataproc.v1.Batch.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The state of the batch.
      * 
* - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -4331,19 +5059,21 @@ public Builder clearState() { private java.lang.Object stateMessage_ = ""; /** + * + * *
      * Output only. Batch state details, such as a failure
      * description if the state is `FAILED`.
      * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateMessage. */ public java.lang.String getStateMessage() { java.lang.Object ref = stateMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; @@ -4352,21 +5082,22 @@ public java.lang.String getStateMessage() { } } /** + * + * *
      * Output only. Batch state details, such as a failure
      * description if the state is `FAILED`.
      * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stateMessage. */ - public com.google.protobuf.ByteString - getStateMessageBytes() { + public com.google.protobuf.ByteString getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -4374,57 +5105,64 @@ public java.lang.String getStateMessage() { } } /** + * + * *
      * Output only. Batch state details, such as a failure
      * description if the state is `FAILED`.
      * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessage( - java.lang.String value) { + public Builder setStateMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stateMessage_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Batch state details, such as a failure
      * description if the state is `FAILED`.
      * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStateMessage() { - + stateMessage_ = getDefaultInstance().getStateMessage(); onChanged(); return this; } /** + * + * *
      * Output only. Batch state details, such as a failure
      * description if the state is `FAILED`.
      * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateMessage_ = value; onChanged(); return this; @@ -4432,24 +5170,37 @@ public Builder setStateMessageBytes( private com.google.protobuf.Timestamp stateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> stateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + stateTimeBuilder_; /** + * + * *
      * Output only. The time when the batch entered a current state.
      * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateTime field is set. */ public boolean hasStateTime() { return stateTimeBuilder_ != null || stateTime_ != null; } /** + * + * *
      * Output only. The time when the batch entered a current state.
      * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateTime. */ public com.google.protobuf.Timestamp getStateTime() { @@ -4460,11 +5211,15 @@ public com.google.protobuf.Timestamp getStateTime() { } } /** + * + * *
      * Output only. The time when the batch entered a current state.
      * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStateTime(com.google.protobuf.Timestamp value) { if (stateTimeBuilder_ == null) { @@ -4480,14 +5235,17 @@ public Builder setStateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the batch entered a current state.
      * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (stateTimeBuilder_ == null) { stateTime_ = builderForValue.build(); onChanged(); @@ -4498,17 +5256,21 @@ public Builder setStateTime( return this; } /** + * + * *
      * Output only. The time when the batch entered a current state.
      * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStateTime(com.google.protobuf.Timestamp value) { if (stateTimeBuilder_ == null) { if (stateTime_ != null) { stateTime_ = - com.google.protobuf.Timestamp.newBuilder(stateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(stateTime_).mergeFrom(value).buildPartial(); } else { stateTime_ = value; } @@ -4520,11 +5282,15 @@ public Builder mergeStateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the batch entered a current state.
      * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStateTime() { if (stateTimeBuilder_ == null) { @@ -4538,48 +5304,62 @@ public Builder clearStateTime() { return this; } /** + * + * *
      * Output only. The time when the batch entered a current state.
      * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStateTimeBuilder() { - + onChanged(); return getStateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the batch entered a current state.
      * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { if (stateTimeBuilder_ != null) { return stateTimeBuilder_.getMessageOrBuilder(); } else { - return stateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_; + return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_; } } /** + * + * *
      * Output only. The time when the batch entered a current state.
      * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_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> getStateTimeFieldBuilder() { if (stateTimeBuilder_ == null) { - stateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStateTime(), - getParentForChildren(), - isClean()); + stateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStateTime(), getParentForChildren(), isClean()); stateTime_ = null; } return stateTimeBuilder_; @@ -4587,18 +5367,20 @@ public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { private java.lang.Object creator_ = ""; /** + * + * *
      * Output only. The email address of the user who created the batch.
      * 
* * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creator. */ public java.lang.String getCreator() { java.lang.Object ref = creator_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creator_ = s; return s; @@ -4607,20 +5389,21 @@ public java.lang.String getCreator() { } } /** + * + * *
      * Output only. The email address of the user who created the batch.
      * 
* * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for creator. */ - public com.google.protobuf.ByteString - getCreatorBytes() { + public com.google.protobuf.ByteString getCreatorBytes() { java.lang.Object ref = creator_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); creator_ = b; return b; } else { @@ -4628,75 +5411,81 @@ public java.lang.String getCreator() { } } /** + * + * *
      * Output only. The email address of the user who created the batch.
      * 
* * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The creator to set. * @return This builder for chaining. */ - public Builder setCreator( - java.lang.String value) { + public Builder setCreator(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + creator_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The email address of the user who created the batch.
      * 
* * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCreator() { - + creator_ = getDefaultInstance().getCreator(); onChanged(); return this; } /** + * + * *
      * Output only. The email address of the user who created the batch.
      * 
* * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for creator to set. * @return This builder for chaining. */ - public Builder setCreatorBytes( - com.google.protobuf.ByteString value) { + public Builder setCreatorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creator_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -4708,6 +5497,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels to associate with this batch.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -4720,22 +5511,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-
     @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();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this batch.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -4749,11 +5540,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this batch.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -4767,16 +5559,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this batch.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -4790,12 +5583,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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();
       }
@@ -4803,11 +5595,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this batch.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -4820,23 +5613,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    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();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this batch.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -4849,19 +5640,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this batch.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -4874,49 +5666,65 @@ public Builder putLabels(
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    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.dataproc.v1.RuntimeConfig runtimeConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.dataproc.v1.RuntimeConfig, com.google.cloud.dataproc.v1.RuntimeConfig.Builder, com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder> runtimeConfigBuilder_;
+            com.google.cloud.dataproc.v1.RuntimeConfig,
+            com.google.cloud.dataproc.v1.RuntimeConfig.Builder,
+            com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder>
+        runtimeConfigBuilder_;
     /**
+     *
+     *
      * 
      * Optional. Runtime configuration for the batch execution.
      * 
* - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the runtimeConfig field is set. */ public boolean hasRuntimeConfig() { return runtimeConfigBuilder_ != null || runtimeConfig_ != null; } /** + * + * *
      * Optional. Runtime configuration for the batch execution.
      * 
* - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The runtimeConfig. */ public com.google.cloud.dataproc.v1.RuntimeConfig getRuntimeConfig() { if (runtimeConfigBuilder_ == null) { - return runtimeConfig_ == null ? com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance() : runtimeConfig_; + return runtimeConfig_ == null + ? com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance() + : runtimeConfig_; } else { return runtimeConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Runtime configuration for the batch execution.
      * 
* - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setRuntimeConfig(com.google.cloud.dataproc.v1.RuntimeConfig value) { if (runtimeConfigBuilder_ == null) { @@ -4932,11 +5740,15 @@ public Builder setRuntimeConfig(com.google.cloud.dataproc.v1.RuntimeConfig value return this; } /** + * + * *
      * Optional. Runtime configuration for the batch execution.
      * 
* - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setRuntimeConfig( com.google.cloud.dataproc.v1.RuntimeConfig.Builder builderForValue) { @@ -4950,17 +5762,23 @@ public Builder setRuntimeConfig( return this; } /** + * + * *
      * Optional. Runtime configuration for the batch execution.
      * 
* - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeRuntimeConfig(com.google.cloud.dataproc.v1.RuntimeConfig value) { if (runtimeConfigBuilder_ == null) { if (runtimeConfig_ != null) { runtimeConfig_ = - com.google.cloud.dataproc.v1.RuntimeConfig.newBuilder(runtimeConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.RuntimeConfig.newBuilder(runtimeConfig_) + .mergeFrom(value) + .buildPartial(); } else { runtimeConfig_ = value; } @@ -4972,11 +5790,15 @@ public Builder mergeRuntimeConfig(com.google.cloud.dataproc.v1.RuntimeConfig val return this; } /** + * + * *
      * Optional. Runtime configuration for the batch execution.
      * 
* - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearRuntimeConfig() { if (runtimeConfigBuilder_ == null) { @@ -4990,48 +5812,64 @@ public Builder clearRuntimeConfig() { return this; } /** + * + * *
      * Optional. Runtime configuration for the batch execution.
      * 
* - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.RuntimeConfig.Builder getRuntimeConfigBuilder() { - + onChanged(); return getRuntimeConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Runtime configuration for the batch execution.
      * 
* - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder getRuntimeConfigOrBuilder() { if (runtimeConfigBuilder_ != null) { return runtimeConfigBuilder_.getMessageOrBuilder(); } else { - return runtimeConfig_ == null ? - com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance() : runtimeConfig_; + return runtimeConfig_ == null + ? com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance() + : runtimeConfig_; } } /** + * + * *
      * Optional. Runtime configuration for the batch execution.
      * 
* - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RuntimeConfig, com.google.cloud.dataproc.v1.RuntimeConfig.Builder, com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder> + com.google.cloud.dataproc.v1.RuntimeConfig, + com.google.cloud.dataproc.v1.RuntimeConfig.Builder, + com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder> getRuntimeConfigFieldBuilder() { if (runtimeConfigBuilder_ == null) { - runtimeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RuntimeConfig, com.google.cloud.dataproc.v1.RuntimeConfig.Builder, com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder>( - getRuntimeConfig(), - getParentForChildren(), - isClean()); + runtimeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.RuntimeConfig, + com.google.cloud.dataproc.v1.RuntimeConfig.Builder, + com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder>( + getRuntimeConfig(), getParentForChildren(), isClean()); runtimeConfig_ = null; } return runtimeConfigBuilder_; @@ -5039,39 +5877,58 @@ public com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder getRuntimeConfigOrBui private com.google.cloud.dataproc.v1.EnvironmentConfig environmentConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EnvironmentConfig, com.google.cloud.dataproc.v1.EnvironmentConfig.Builder, com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder> environmentConfigBuilder_; + com.google.cloud.dataproc.v1.EnvironmentConfig, + com.google.cloud.dataproc.v1.EnvironmentConfig.Builder, + com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder> + environmentConfigBuilder_; /** + * + * *
      * Optional. Environment configuration for the batch execution.
      * 
* - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the environmentConfig field is set. */ public boolean hasEnvironmentConfig() { return environmentConfigBuilder_ != null || environmentConfig_ != null; } /** + * + * *
      * Optional. Environment configuration for the batch execution.
      * 
* - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The environmentConfig. */ public com.google.cloud.dataproc.v1.EnvironmentConfig getEnvironmentConfig() { if (environmentConfigBuilder_ == null) { - return environmentConfig_ == null ? com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance() : environmentConfig_; + return environmentConfig_ == null + ? com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance() + : environmentConfig_; } else { return environmentConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Environment configuration for the batch execution.
      * 
* - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEnvironmentConfig(com.google.cloud.dataproc.v1.EnvironmentConfig value) { if (environmentConfigBuilder_ == null) { @@ -5087,11 +5944,15 @@ public Builder setEnvironmentConfig(com.google.cloud.dataproc.v1.EnvironmentConf return this; } /** + * + * *
      * Optional. Environment configuration for the batch execution.
      * 
* - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEnvironmentConfig( com.google.cloud.dataproc.v1.EnvironmentConfig.Builder builderForValue) { @@ -5105,17 +5966,23 @@ public Builder setEnvironmentConfig( return this; } /** + * + * *
      * Optional. Environment configuration for the batch execution.
      * 
* - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeEnvironmentConfig(com.google.cloud.dataproc.v1.EnvironmentConfig value) { if (environmentConfigBuilder_ == null) { if (environmentConfig_ != null) { environmentConfig_ = - com.google.cloud.dataproc.v1.EnvironmentConfig.newBuilder(environmentConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.EnvironmentConfig.newBuilder(environmentConfig_) + .mergeFrom(value) + .buildPartial(); } else { environmentConfig_ = value; } @@ -5127,11 +5994,15 @@ public Builder mergeEnvironmentConfig(com.google.cloud.dataproc.v1.EnvironmentCo return this; } /** + * + * *
      * Optional. Environment configuration for the batch execution.
      * 
* - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearEnvironmentConfig() { if (environmentConfigBuilder_ == null) { @@ -5145,48 +6016,64 @@ public Builder clearEnvironmentConfig() { return this; } /** + * + * *
      * Optional. Environment configuration for the batch execution.
      * 
* - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.EnvironmentConfig.Builder getEnvironmentConfigBuilder() { - + onChanged(); return getEnvironmentConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Environment configuration for the batch execution.
      * 
* - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder getEnvironmentConfigOrBuilder() { if (environmentConfigBuilder_ != null) { return environmentConfigBuilder_.getMessageOrBuilder(); } else { - return environmentConfig_ == null ? - com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance() : environmentConfig_; + return environmentConfig_ == null + ? com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance() + : environmentConfig_; } } /** + * + * *
      * Optional. Environment configuration for the batch execution.
      * 
* - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EnvironmentConfig, com.google.cloud.dataproc.v1.EnvironmentConfig.Builder, com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder> + com.google.cloud.dataproc.v1.EnvironmentConfig, + com.google.cloud.dataproc.v1.EnvironmentConfig.Builder, + com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder> getEnvironmentConfigFieldBuilder() { if (environmentConfigBuilder_ == null) { - environmentConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EnvironmentConfig, com.google.cloud.dataproc.v1.EnvironmentConfig.Builder, com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder>( - getEnvironmentConfig(), - getParentForChildren(), - isClean()); + environmentConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.EnvironmentConfig, + com.google.cloud.dataproc.v1.EnvironmentConfig.Builder, + com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder>( + getEnvironmentConfig(), getParentForChildren(), isClean()); environmentConfig_ = null; } return environmentConfigBuilder_; @@ -5194,18 +6081,20 @@ public com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder getEnvironmentCon private java.lang.Object operation_ = ""; /** + * + * *
      * Output only. The resource name of the operation associated with this batch.
      * 
* * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The operation. */ public java.lang.String getOperation() { java.lang.Object ref = operation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operation_ = s; return s; @@ -5214,20 +6103,21 @@ public java.lang.String getOperation() { } } /** + * + * *
      * Output only. The resource name of the operation associated with this batch.
      * 
* * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for operation. */ - public com.google.protobuf.ByteString - getOperationBytes() { + public com.google.protobuf.ByteString getOperationBytes() { java.lang.Object ref = operation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operation_ = b; return b; } else { @@ -5235,77 +6125,93 @@ public java.lang.String getOperation() { } } /** + * + * *
      * Output only. The resource name of the operation associated with this batch.
      * 
* * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The operation to set. * @return This builder for chaining. */ - public Builder setOperation( - java.lang.String value) { + public Builder setOperation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + operation_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the operation associated with this batch.
      * 
* * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearOperation() { - + operation_ = getDefaultInstance().getOperation(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the operation associated with this batch.
      * 
* * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for operation to set. * @return This builder for chaining. */ - public Builder setOperationBytes( - com.google.protobuf.ByteString value) { + public Builder setOperationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operation_ = value; onChanged(); return this; } private java.util.List stateHistory_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStateHistoryIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - stateHistory_ = new java.util.ArrayList(stateHistory_); + stateHistory_ = + new java.util.ArrayList(stateHistory_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch.StateHistory, com.google.cloud.dataproc.v1.Batch.StateHistory.Builder, com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder> stateHistoryBuilder_; + com.google.cloud.dataproc.v1.Batch.StateHistory, + com.google.cloud.dataproc.v1.Batch.StateHistory.Builder, + com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder> + stateHistoryBuilder_; /** + * + * *
      * Output only. Historical state information for the batch.
      * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getStateHistoryList() { if (stateHistoryBuilder_ == null) { @@ -5315,11 +6221,15 @@ public java.util.List getStateH } } /** + * + * *
      * Output only. Historical state information for the batch.
      * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getStateHistoryCount() { if (stateHistoryBuilder_ == null) { @@ -5329,11 +6239,15 @@ public int getStateHistoryCount() { } } /** + * + * *
      * Output only. Historical state information for the batch.
      * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.Batch.StateHistory getStateHistory(int index) { if (stateHistoryBuilder_ == null) { @@ -5343,11 +6257,15 @@ public com.google.cloud.dataproc.v1.Batch.StateHistory getStateHistory(int index } } /** + * + * *
      * Output only. Historical state information for the batch.
      * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStateHistory( int index, com.google.cloud.dataproc.v1.Batch.StateHistory value) { @@ -5364,11 +6282,15 @@ public Builder setStateHistory( return this; } /** + * + * *
      * Output only. Historical state information for the batch.
      * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStateHistory( int index, com.google.cloud.dataproc.v1.Batch.StateHistory.Builder builderForValue) { @@ -5382,11 +6304,15 @@ public Builder setStateHistory( return this; } /** + * + * *
      * Output only. Historical state information for the batch.
      * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStateHistory(com.google.cloud.dataproc.v1.Batch.StateHistory value) { if (stateHistoryBuilder_ == null) { @@ -5402,11 +6328,15 @@ public Builder addStateHistory(com.google.cloud.dataproc.v1.Batch.StateHistory v return this; } /** + * + * *
      * Output only. Historical state information for the batch.
      * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStateHistory( int index, com.google.cloud.dataproc.v1.Batch.StateHistory value) { @@ -5423,11 +6353,15 @@ public Builder addStateHistory( return this; } /** + * + * *
      * Output only. Historical state information for the batch.
      * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStateHistory( com.google.cloud.dataproc.v1.Batch.StateHistory.Builder builderForValue) { @@ -5441,11 +6375,15 @@ public Builder addStateHistory( return this; } /** + * + * *
      * Output only. Historical state information for the batch.
      * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStateHistory( int index, com.google.cloud.dataproc.v1.Batch.StateHistory.Builder builderForValue) { @@ -5459,18 +6397,21 @@ public Builder addStateHistory( return this; } /** + * + * *
      * Output only. Historical state information for the batch.
      * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllStateHistory( java.lang.Iterable values) { if (stateHistoryBuilder_ == null) { ensureStateHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stateHistory_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stateHistory_); onChanged(); } else { stateHistoryBuilder_.addAllMessages(values); @@ -5478,11 +6419,15 @@ public Builder addAllStateHistory( return this; } /** + * + * *
      * Output only. Historical state information for the batch.
      * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStateHistory() { if (stateHistoryBuilder_ == null) { @@ -5495,11 +6440,15 @@ public Builder clearStateHistory() { return this; } /** + * + * *
      * Output only. Historical state information for the batch.
      * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeStateHistory(int index) { if (stateHistoryBuilder_ == null) { @@ -5512,39 +6461,52 @@ public Builder removeStateHistory(int index) { return this; } /** + * + * *
      * Output only. Historical state information for the batch.
      * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.Batch.StateHistory.Builder getStateHistoryBuilder( int index) { return getStateHistoryFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Historical state information for the batch.
      * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder getStateHistoryOrBuilder( int index) { if (stateHistoryBuilder_ == null) { - return stateHistory_.get(index); } else { + return stateHistory_.get(index); + } else { return stateHistoryBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Historical state information for the batch.
      * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStateHistoryOrBuilderList() { + public java.util.List + getStateHistoryOrBuilderList() { if (stateHistoryBuilder_ != null) { return stateHistoryBuilder_.getMessageOrBuilderList(); } else { @@ -5552,56 +6514,71 @@ public com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder getStateHistoryO } } /** + * + * *
      * Output only. Historical state information for the batch.
      * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.Batch.StateHistory.Builder addStateHistoryBuilder() { - return getStateHistoryFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance()); + return getStateHistoryFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance()); } /** + * + * *
      * Output only. Historical state information for the batch.
      * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.Batch.StateHistory.Builder addStateHistoryBuilder( int index) { - return getStateHistoryFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance()); + return getStateHistoryFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance()); } /** + * + * *
      * Output only. Historical state information for the batch.
      * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStateHistoryBuilderList() { + public java.util.List + getStateHistoryBuilderList() { return getStateHistoryFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch.StateHistory, com.google.cloud.dataproc.v1.Batch.StateHistory.Builder, com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder> + com.google.cloud.dataproc.v1.Batch.StateHistory, + com.google.cloud.dataproc.v1.Batch.StateHistory.Builder, + com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder> getStateHistoryFieldBuilder() { if (stateHistoryBuilder_ == null) { - stateHistoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch.StateHistory, com.google.cloud.dataproc.v1.Batch.StateHistory.Builder, com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder>( - stateHistory_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + stateHistoryBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.Batch.StateHistory, + com.google.cloud.dataproc.v1.Batch.StateHistory.Builder, + com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder>( + stateHistory_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); stateHistory_ = null; } return stateHistoryBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5611,12 +6588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.Batch) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Batch) private static final com.google.cloud.dataproc.v1.Batch DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.Batch(); } @@ -5625,27 +6602,27 @@ public static com.google.cloud.dataproc.v1.Batch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Batch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Batch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5660,6 +6637,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.Batch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java similarity index 68% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java index 260bc751ea82..2c0c2895ee43 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/operations.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Metadata describing the Batch operation.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.BatchOperationMetadata} */ -public final class BatchOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.BatchOperationMetadata) BatchOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchOperationMetadata.newBuilder() to construct. private BatchOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchOperationMetadata() { batch_ = ""; batchUuid_ = ""; @@ -29,51 +47,54 @@ private BatchOperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_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.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.BatchOperationMetadata.class, com.google.cloud.dataproc.v1.BatchOperationMetadata.Builder.class); + com.google.cloud.dataproc.v1.BatchOperationMetadata.class, + com.google.cloud.dataproc.v1.BatchOperationMetadata.Builder.class); } /** + * + * *
    * Operation type for Batch resources
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType} */ - public enum BatchOperationType - implements com.google.protobuf.ProtocolMessageEnum { + public enum BatchOperationType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Batch operation type is unknown.
      * 
@@ -82,6 +103,8 @@ public enum BatchOperationType */ BATCH_OPERATION_TYPE_UNSPECIFIED(0), /** + * + * *
      * Batch operation type.
      * 
@@ -93,6 +116,8 @@ public enum BatchOperationType ; /** + * + * *
      * Batch operation type is unknown.
      * 
@@ -101,6 +126,8 @@ public enum BatchOperationType */ public static final int BATCH_OPERATION_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Batch operation type.
      * 
@@ -109,7 +136,6 @@ public enum BatchOperationType */ public static final int BATCH_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -134,9 +160,12 @@ public static BatchOperationType valueOf(int value) { */ public static BatchOperationType forNumber(int value) { switch (value) { - case 0: return BATCH_OPERATION_TYPE_UNSPECIFIED; - case 1: return BATCH; - default: return null; + case 0: + return BATCH_OPERATION_TYPE_UNSPECIFIED; + case 1: + return BATCH; + default: + return null; } } @@ -144,29 +173,31 @@ public static BatchOperationType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - BatchOperationType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BatchOperationType findValueByNumber(int number) { - return BatchOperationType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BatchOperationType findValueByNumber(int number) { + return BatchOperationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.BatchOperationMetadata.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchOperationMetadata.getDescriptor() + .getEnumTypes() + .get(0); } private static final BatchOperationType[] VALUES = values(); @@ -174,8 +205,7 @@ public BatchOperationType findValueByNumber(int number) { public static BatchOperationType 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; @@ -195,11 +225,14 @@ private BatchOperationType(int value) { public static final int BATCH_FIELD_NUMBER = 1; private volatile java.lang.Object batch_; /** + * + * *
    * Name of the batch for the operation.
    * 
* * string batch = 1; + * * @return The batch. */ @java.lang.Override @@ -208,29 +241,29 @@ public java.lang.String getBatch() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batch_ = s; return s; } } /** + * + * *
    * Name of the batch for the operation.
    * 
* * string batch = 1; + * * @return The bytes for batch. */ @java.lang.Override - public com.google.protobuf.ByteString - getBatchBytes() { + public com.google.protobuf.ByteString getBatchBytes() { java.lang.Object ref = batch_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); batch_ = b; return b; } else { @@ -241,11 +274,14 @@ public java.lang.String getBatch() { public static final int BATCH_UUID_FIELD_NUMBER = 2; private volatile java.lang.Object batchUuid_; /** + * + * *
    * Batch UUID for the operation.
    * 
* * string batch_uuid = 2; + * * @return The batchUuid. */ @java.lang.Override @@ -254,29 +290,29 @@ public java.lang.String getBatchUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batchUuid_ = s; return s; } } /** + * + * *
    * Batch UUID for the operation.
    * 
* * string batch_uuid = 2; + * * @return The bytes for batchUuid. */ @java.lang.Override - public com.google.protobuf.ByteString - getBatchUuidBytes() { + public com.google.protobuf.ByteString getBatchUuidBytes() { java.lang.Object ref = batchUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); batchUuid_ = b; return b; } else { @@ -287,11 +323,14 @@ public java.lang.String getBatchUuid() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -299,11 +338,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ @java.lang.Override @@ -311,6 +353,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time when the operation was created.
    * 
@@ -325,11 +369,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int DONE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp doneTime_; /** + * + * *
    * The time when the operation finished.
    * 
* * .google.protobuf.Timestamp done_time = 4; + * * @return Whether the doneTime field is set. */ @java.lang.Override @@ -337,11 +384,14 @@ public boolean hasDoneTime() { return doneTime_ != null; } /** + * + * *
    * The time when the operation finished.
    * 
* * .google.protobuf.Timestamp done_time = 4; + * * @return The doneTime. */ @java.lang.Override @@ -349,6 +399,8 @@ public com.google.protobuf.Timestamp getDoneTime() { return doneTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : doneTime_; } /** + * + * *
    * The time when the operation finished.
    * 
@@ -363,38 +415,55 @@ public com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder() { public static final int OPERATION_TYPE_FIELD_NUMBER = 6; private int operationType_; /** + * + * *
    * The operation type.
    * 
* - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * + * * @return The enum numeric value on the wire for operationType. */ - @java.lang.Override public int getOperationTypeValue() { + @java.lang.Override + public int getOperationTypeValue() { return operationType_; } /** + * + * *
    * The operation type.
    * 
* - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * + * * @return The operationType. */ - @java.lang.Override public com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType getOperationType() { + @java.lang.Override + public com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType getOperationType() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType result = com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.valueOf(operationType_); - return result == null ? com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType result = + com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.valueOf( + operationType_); + return result == null + ? com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.UNRECOGNIZED + : result; } public static final int DESCRIPTION_FIELD_NUMBER = 7; private volatile java.lang.Object description_; /** + * + * *
    * Short description of the operation.
    * 
* * string description = 7; + * * @return The description. */ @java.lang.Override @@ -403,29 +472,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Short description of the operation.
    * 
* * string description = 7; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -434,24 +503,23 @@ public java.lang.String getDescription() { } public static final int LABELS_FIELD_NUMBER = 8; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -460,28 +528,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels associated with the operation.
    * 
* * 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 associated with the operation.
    * 
@@ -489,11 +559,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels associated with the operation.
    * 
@@ -501,16 +572,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 associated with the operation.
    * 
@@ -518,12 +589,11 @@ 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(); } @@ -533,34 +603,42 @@ public java.lang.String getLabelsOrThrow( public static final int WARNINGS_FIELD_NUMBER = 9; private com.google.protobuf.LazyStringList warnings_; /** + * + * *
    * Warnings encountered during operation execution.
    * 
* * repeated string warnings = 9; + * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList - getWarningsList() { + public com.google.protobuf.ProtocolStringList getWarningsList() { return warnings_; } /** + * + * *
    * Warnings encountered during operation execution.
    * 
* * repeated string warnings = 9; + * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** + * + * *
    * Warnings encountered during operation execution.
    * 
* * repeated string warnings = 9; + * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -568,20 +646,23 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** + * + * *
    * Warnings encountered during operation execution.
    * 
* * repeated string warnings = 9; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString - getWarningsBytes(int index) { + public com.google.protobuf.ByteString getWarningsBytes(int index) { return warnings_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -593,8 +674,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batch_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, batch_); } @@ -607,18 +687,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (doneTime_ != null) { output.writeMessage(4, getDoneTime()); } - if (operationType_ != com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.BATCH_OPERATION_TYPE_UNSPECIFIED.getNumber()) { + if (operationType_ + != com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType + .BATCH_OPERATION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(6, operationType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 8); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); for (int i = 0; i < warnings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, warnings_.getRaw(i)); } @@ -638,29 +717,29 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, batchUuid_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (doneTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getDoneTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDoneTime()); } - if (operationType_ != com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.BATCH_OPERATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, operationType_); + if (operationType_ + != com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType + .BATCH_OPERATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, operationType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_); } - 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__); + 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__); } { int dataSize = 0; @@ -678,34 +757,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.BatchOperationMetadata)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.BatchOperationMetadata other = (com.google.cloud.dataproc.v1.BatchOperationMetadata) obj; + com.google.cloud.dataproc.v1.BatchOperationMetadata other = + (com.google.cloud.dataproc.v1.BatchOperationMetadata) obj; - if (!getBatch() - .equals(other.getBatch())) return false; - if (!getBatchUuid() - .equals(other.getBatchUuid())) return false; + if (!getBatch().equals(other.getBatch())) return false; + if (!getBatchUuid().equals(other.getBatchUuid())) 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 (hasDoneTime() != other.hasDoneTime()) return false; if (hasDoneTime()) { - if (!getDoneTime() - .equals(other.getDoneTime())) return false; + if (!getDoneTime().equals(other.getDoneTime())) return false; } if (operationType_ != other.operationType_) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getWarningsList() - .equals(other.getWarningsList())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getWarningsList().equals(other.getWarningsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -747,151 +820,155 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.BatchOperationMetadata 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.dataproc.v1.BatchOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.BatchOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata describing the Batch operation.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.BatchOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.BatchOperationMetadata) com.google.cloud.dataproc.v1.BatchOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_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.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.BatchOperationMetadata.class, com.google.cloud.dataproc.v1.BatchOperationMetadata.Builder.class); + com.google.cloud.dataproc.v1.BatchOperationMetadata.class, + com.google.cloud.dataproc.v1.BatchOperationMetadata.Builder.class); } // Construct using com.google.cloud.dataproc.v1.BatchOperationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -922,9 +999,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor; } @java.lang.Override @@ -943,7 +1020,8 @@ public com.google.cloud.dataproc.v1.BatchOperationMetadata build() { @java.lang.Override public com.google.cloud.dataproc.v1.BatchOperationMetadata buildPartial() { - com.google.cloud.dataproc.v1.BatchOperationMetadata result = new com.google.cloud.dataproc.v1.BatchOperationMetadata(this); + com.google.cloud.dataproc.v1.BatchOperationMetadata result = + new com.google.cloud.dataproc.v1.BatchOperationMetadata(this); int from_bitField0_ = bitField0_; result.batch_ = batch_; result.batchUuid_ = batchUuid_; @@ -974,38 +1052,39 @@ public com.google.cloud.dataproc.v1.BatchOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.BatchOperationMetadata) { - return mergeFrom((com.google.cloud.dataproc.v1.BatchOperationMetadata)other); + return mergeFrom((com.google.cloud.dataproc.v1.BatchOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -1013,7 +1092,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.BatchOperationMetadata other) { - if (other == com.google.cloud.dataproc.v1.BatchOperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.BatchOperationMetadata.getDefaultInstance()) + return this; if (!other.getBatch().isEmpty()) { batch_ = other.batch_; onChanged(); @@ -1035,8 +1115,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.BatchOperationMetadata oth description_ = other.description_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.warnings_.isEmpty()) { if (warnings_.isEmpty()) { warnings_ = other.warnings_; @@ -1073,60 +1152,67 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - batch_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - batchUuid_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 34: { - input.readMessage( - getDoneTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 48: { - operationType_ = input.readEnum(); - - break; - } // case 48 - case 58: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 66 - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - ensureWarningsIsMutable(); - warnings_.add(s); - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + batch_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + batchUuid_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getDoneTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 48: + { + operationType_ = input.readEnum(); + + break; + } // case 48 + case 58: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 66 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureWarningsIsMutable(); + warnings_.add(s); + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1136,22 +1222,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object batch_ = ""; /** + * + * *
      * Name of the batch for the operation.
      * 
* * string batch = 1; + * * @return The batch. */ public java.lang.String getBatch() { java.lang.Object ref = batch_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batch_ = s; return s; @@ -1160,20 +1249,21 @@ public java.lang.String getBatch() { } } /** + * + * *
      * Name of the batch for the operation.
      * 
* * string batch = 1; + * * @return The bytes for batch. */ - public com.google.protobuf.ByteString - getBatchBytes() { + public com.google.protobuf.ByteString getBatchBytes() { java.lang.Object ref = batch_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); batch_ = b; return b; } else { @@ -1181,54 +1271,61 @@ public java.lang.String getBatch() { } } /** + * + * *
      * Name of the batch for the operation.
      * 
* * string batch = 1; + * * @param value The batch to set. * @return This builder for chaining. */ - public Builder setBatch( - java.lang.String value) { + public Builder setBatch(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + batch_ = value; onChanged(); return this; } /** + * + * *
      * Name of the batch for the operation.
      * 
* * string batch = 1; + * * @return This builder for chaining. */ public Builder clearBatch() { - + batch_ = getDefaultInstance().getBatch(); onChanged(); return this; } /** + * + * *
      * Name of the batch for the operation.
      * 
* * string batch = 1; + * * @param value The bytes for batch to set. * @return This builder for chaining. */ - public Builder setBatchBytes( - com.google.protobuf.ByteString value) { + public Builder setBatchBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + batch_ = value; onChanged(); return this; @@ -1236,18 +1333,20 @@ public Builder setBatchBytes( private java.lang.Object batchUuid_ = ""; /** + * + * *
      * Batch UUID for the operation.
      * 
* * string batch_uuid = 2; + * * @return The batchUuid. */ public java.lang.String getBatchUuid() { java.lang.Object ref = batchUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batchUuid_ = s; return s; @@ -1256,20 +1355,21 @@ public java.lang.String getBatchUuid() { } } /** + * + * *
      * Batch UUID for the operation.
      * 
* * string batch_uuid = 2; + * * @return The bytes for batchUuid. */ - public com.google.protobuf.ByteString - getBatchUuidBytes() { + public com.google.protobuf.ByteString getBatchUuidBytes() { java.lang.Object ref = batchUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); batchUuid_ = b; return b; } else { @@ -1277,54 +1377,61 @@ public java.lang.String getBatchUuid() { } } /** + * + * *
      * Batch UUID for the operation.
      * 
* * string batch_uuid = 2; + * * @param value The batchUuid to set. * @return This builder for chaining. */ - public Builder setBatchUuid( - java.lang.String value) { + public Builder setBatchUuid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + batchUuid_ = value; onChanged(); return this; } /** + * + * *
      * Batch UUID for the operation.
      * 
* * string batch_uuid = 2; + * * @return This builder for chaining. */ public Builder clearBatchUuid() { - + batchUuid_ = getDefaultInstance().getBatchUuid(); onChanged(); return this; } /** + * + * *
      * Batch UUID for the operation.
      * 
* * string batch_uuid = 2; + * * @param value The bytes for batchUuid to set. * @return This builder for chaining. */ - public Builder setBatchUuidBytes( - com.google.protobuf.ByteString value) { + public Builder setBatchUuidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + batchUuid_ = value; onChanged(); return this; @@ -1332,34 +1439,47 @@ public Builder setBatchUuidBytes( 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_; /** + * + * *
      * The time when the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time when the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; + * * @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(); } } /** + * + * *
      * The time when the operation was created.
      * 
@@ -1380,14 +1500,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; */ - 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(); @@ -1398,6 +1519,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time when the operation was created.
      * 
@@ -1408,7 +1531,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1420,6 +1543,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was created.
      * 
@@ -1438,6 +1563,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time when the operation was created.
      * 
@@ -1445,11 +1572,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 3; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was created.
      * 
@@ -1460,11 +1589,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time when the operation was created.
      * 
@@ -1472,14 +1604,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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_; @@ -1487,24 +1622,33 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp doneTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> doneTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + doneTimeBuilder_; /** + * + * *
      * The time when the operation finished.
      * 
* * .google.protobuf.Timestamp done_time = 4; + * * @return Whether the doneTime field is set. */ public boolean hasDoneTime() { return doneTimeBuilder_ != null || doneTime_ != null; } /** + * + * *
      * The time when the operation finished.
      * 
* * .google.protobuf.Timestamp done_time = 4; + * * @return The doneTime. */ public com.google.protobuf.Timestamp getDoneTime() { @@ -1515,6 +1659,8 @@ public com.google.protobuf.Timestamp getDoneTime() { } } /** + * + * *
      * The time when the operation finished.
      * 
@@ -1535,14 +1681,15 @@ public Builder setDoneTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation finished.
      * 
* * .google.protobuf.Timestamp done_time = 4; */ - public Builder setDoneTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDoneTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (doneTimeBuilder_ == null) { doneTime_ = builderForValue.build(); onChanged(); @@ -1553,6 +1700,8 @@ public Builder setDoneTime( return this; } /** + * + * *
      * The time when the operation finished.
      * 
@@ -1563,7 +1712,7 @@ public Builder mergeDoneTime(com.google.protobuf.Timestamp value) { if (doneTimeBuilder_ == null) { if (doneTime_ != null) { doneTime_ = - com.google.protobuf.Timestamp.newBuilder(doneTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(doneTime_).mergeFrom(value).buildPartial(); } else { doneTime_ = value; } @@ -1575,6 +1724,8 @@ public Builder mergeDoneTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation finished.
      * 
@@ -1593,6 +1744,8 @@ public Builder clearDoneTime() { return this; } /** + * + * *
      * The time when the operation finished.
      * 
@@ -1600,11 +1753,13 @@ public Builder clearDoneTime() { * .google.protobuf.Timestamp done_time = 4; */ public com.google.protobuf.Timestamp.Builder getDoneTimeBuilder() { - + onChanged(); return getDoneTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation finished.
      * 
@@ -1615,11 +1770,12 @@ public com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder() { if (doneTimeBuilder_ != null) { return doneTimeBuilder_.getMessageOrBuilder(); } else { - return doneTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : doneTime_; + return doneTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : doneTime_; } } /** + * + * *
      * The time when the operation finished.
      * 
@@ -1627,14 +1783,17 @@ public com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder() { * .google.protobuf.Timestamp done_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getDoneTimeFieldBuilder() { if (doneTimeBuilder_ == null) { - doneTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDoneTime(), - getParentForChildren(), - isClean()); + doneTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDoneTime(), getParentForChildren(), isClean()); doneTime_ = null; } return doneTimeBuilder_; @@ -1642,73 +1801,100 @@ public com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder() { private int operationType_ = 0; /** + * + * *
      * The operation type.
      * 
* - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * + * * @return The enum numeric value on the wire for operationType. */ - @java.lang.Override public int getOperationTypeValue() { + @java.lang.Override + public int getOperationTypeValue() { return operationType_; } /** + * + * *
      * The operation type.
      * 
* - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * + * * @param value The enum numeric value on the wire for operationType to set. * @return This builder for chaining. */ public Builder setOperationTypeValue(int value) { - + operationType_ = value; onChanged(); return this; } /** + * + * *
      * The operation type.
      * 
* - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * + * * @return The operationType. */ @java.lang.Override - public com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType getOperationType() { + public com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType + getOperationType() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType result = com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.valueOf(operationType_); - return result == null ? com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType result = + com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.valueOf( + operationType_); + return result == null + ? com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.UNRECOGNIZED + : result; } /** + * + * *
      * The operation type.
      * 
* - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * + * * @param value The operationType to set. * @return This builder for chaining. */ - public Builder setOperationType(com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType value) { + public Builder setOperationType( + com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType value) { if (value == null) { throw new NullPointerException(); } - + operationType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The operation type.
      * 
* - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * + * * @return This builder for chaining. */ public Builder clearOperationType() { - + operationType_ = 0; onChanged(); return this; @@ -1716,18 +1902,20 @@ public Builder clearOperationType() { private java.lang.Object description_ = ""; /** + * + * *
      * Short description of the operation.
      * 
* * string description = 7; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1736,20 +1924,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Short description of the operation.
      * 
* * string description = 7; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1757,75 +1946,81 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Short description of the operation.
      * 
* * string description = 7; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Short description of the operation.
      * 
* * string description = 7; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Short description of the operation.
      * 
* * string description = 7; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1837,28 +2032,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels associated with the operation.
      * 
* * 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 associated with the operation.
      * 
@@ -1866,11 +2063,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels associated with the operation.
      * 
@@ -1878,16 +2076,17 @@ 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 associated with the operation.
      * 
@@ -1895,12 +2094,11 @@ 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(); } @@ -1908,103 +2106,110 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels associated with the operation.
      * 
* * 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 associated with the operation.
      * 
* * 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 associated with the operation.
      * 
* * 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.protobuf.LazyStringList warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList warnings_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureWarningsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Warnings encountered during operation execution.
      * 
* * repeated string warnings = 9; + * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList - getWarningsList() { + public com.google.protobuf.ProtocolStringList getWarningsList() { return warnings_.getUnmodifiableView(); } /** + * + * *
      * Warnings encountered during operation execution.
      * 
* * repeated string warnings = 9; + * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** + * + * *
      * Warnings encountered during operation execution.
      * 
* * repeated string warnings = 9; + * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -2012,80 +2217,90 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** + * + * *
      * Warnings encountered during operation execution.
      * 
* * repeated string warnings = 9; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString - getWarningsBytes(int index) { + public com.google.protobuf.ByteString getWarningsBytes(int index) { return warnings_.getByteString(index); } /** + * + * *
      * Warnings encountered during operation execution.
      * 
* * repeated string warnings = 9; + * * @param index The index to set the value at. * @param value The warnings to set. * @return This builder for chaining. */ - public Builder setWarnings( - int index, java.lang.String value) { + public Builder setWarnings(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.set(index, value); onChanged(); return this; } /** + * + * *
      * Warnings encountered during operation execution.
      * 
* * repeated string warnings = 9; + * * @param value The warnings to add. * @return This builder for chaining. */ - public Builder addWarnings( - java.lang.String value) { + public Builder addWarnings(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.add(value); onChanged(); return this; } /** + * + * *
      * Warnings encountered during operation execution.
      * 
* * repeated string warnings = 9; + * * @param values The warnings to add. * @return This builder for chaining. */ - public Builder addAllWarnings( - java.lang.Iterable values) { + public Builder addAllWarnings(java.lang.Iterable values) { ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, warnings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); onChanged(); return this; } /** + * + * *
      * Warnings encountered during operation execution.
      * 
* * repeated string warnings = 9; + * * @return This builder for chaining. */ public Builder clearWarnings() { @@ -2095,28 +2310,30 @@ public Builder clearWarnings() { return this; } /** + * + * *
      * Warnings encountered during operation execution.
      * 
* * repeated string warnings = 9; + * * @param value The bytes of the warnings to add. * @return This builder for chaining. */ - public Builder addWarningsBytes( - com.google.protobuf.ByteString value) { + public Builder addWarningsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureWarningsIsMutable(); warnings_.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); } @@ -2126,12 +2343,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.BatchOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.BatchOperationMetadata) private static final com.google.cloud.dataproc.v1.BatchOperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.BatchOperationMetadata(); } @@ -2140,27 +2357,27 @@ public static com.google.cloud.dataproc.v1.BatchOperationMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2175,6 +2392,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.BatchOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java index 82053ad9ec85..0a1d94d08f22 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java @@ -1,71 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/operations.proto package com.google.cloud.dataproc.v1; -public interface BatchOperationMetadataOrBuilder extends +public interface BatchOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.BatchOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the batch for the operation.
    * 
* * string batch = 1; + * * @return The batch. */ java.lang.String getBatch(); /** + * + * *
    * Name of the batch for the operation.
    * 
* * string batch = 1; + * * @return The bytes for batch. */ - com.google.protobuf.ByteString - getBatchBytes(); + com.google.protobuf.ByteString getBatchBytes(); /** + * + * *
    * Batch UUID for the operation.
    * 
* * string batch_uuid = 2; + * * @return The batchUuid. */ java.lang.String getBatchUuid(); /** + * + * *
    * Batch UUID for the operation.
    * 
* * string batch_uuid = 2; + * * @return The bytes for batchUuid. */ - com.google.protobuf.ByteString - getBatchUuidBytes(); + com.google.protobuf.ByteString getBatchUuidBytes(); /** + * + * *
    * The time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time when the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time when the operation was created.
    * 
@@ -75,24 +109,32 @@ public interface BatchOperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time when the operation finished.
    * 
* * .google.protobuf.Timestamp done_time = 4; + * * @return Whether the doneTime field is set. */ boolean hasDoneTime(); /** + * + * *
    * The time when the operation finished.
    * 
* * .google.protobuf.Timestamp done_time = 4; + * * @return The doneTime. */ com.google.protobuf.Timestamp getDoneTime(); /** + * + * *
    * The time when the operation finished.
    * 
@@ -102,45 +144,60 @@ public interface BatchOperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder(); /** + * + * *
    * The operation type.
    * 
* - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * + * * @return The enum numeric value on the wire for operationType. */ int getOperationTypeValue(); /** + * + * *
    * The operation type.
    * 
* - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * + * * @return The operationType. */ com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType getOperationType(); /** + * + * *
    * Short description of the operation.
    * 
* * string description = 7; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Short description of the operation.
    * 
* * string description = 7; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Labels associated with the operation.
    * 
@@ -149,30 +206,31 @@ public interface BatchOperationMetadataOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Labels associated with the operation.
    * 
* * 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 associated with the operation.
    * 
* * map<string, string> labels = 8; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels associated with the operation.
    * 
@@ -181,59 +239,69 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels associated with the operation.
    * 
* * map<string, string> labels = 8; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Warnings encountered during operation execution.
    * 
* * repeated string warnings = 9; + * * @return A list containing the warnings. */ - java.util.List - getWarningsList(); + java.util.List getWarningsList(); /** + * + * *
    * Warnings encountered during operation execution.
    * 
* * repeated string warnings = 9; + * * @return The count of warnings. */ int getWarningsCount(); /** + * + * *
    * Warnings encountered during operation execution.
    * 
* * repeated string warnings = 9; + * * @param index The index of the element to return. * @return The warnings at the given index. */ java.lang.String getWarnings(int index); /** + * + * *
    * Warnings encountered during operation execution.
    * 
* * repeated string warnings = 9; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - com.google.protobuf.ByteString - getWarningsBytes(int index); + com.google.protobuf.ByteString getWarningsBytes(int index); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java similarity index 66% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java index 5cc49b78f1dc..1c5948fecc77 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java @@ -1,305 +1,445 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; -public interface BatchOrBuilder extends +public interface BatchOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.Batch) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the batch.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the batch.
    * 
* * 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 batch UUID (Unique Universal Identifier). The service
    * generates this value when it creates the batch.
    * 
* * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uuid. */ java.lang.String getUuid(); /** + * + * *
    * Output only. A batch UUID (Unique Universal Identifier). The service
    * generates this value when it creates the batch.
    * 
* * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uuid. */ - com.google.protobuf.ByteString - getUuidBytes(); + com.google.protobuf.ByteString getUuidBytes(); /** + * + * *
    * Output only. The time when the batch was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time when the batch was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time when the batch was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Optional. PySpark batch config.
    * 
* - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pysparkBatch field is set. */ boolean hasPysparkBatch(); /** + * + * *
    * Optional. PySpark batch config.
    * 
* - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pysparkBatch. */ com.google.cloud.dataproc.v1.PySparkBatch getPysparkBatch(); /** + * + * *
    * Optional. PySpark batch config.
    * 
* - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.PySparkBatchOrBuilder getPysparkBatchOrBuilder(); /** + * + * *
    * Optional. Spark batch config.
    * 
* - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkBatch field is set. */ boolean hasSparkBatch(); /** + * + * *
    * Optional. Spark batch config.
    * 
* - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkBatch. */ com.google.cloud.dataproc.v1.SparkBatch getSparkBatch(); /** + * + * *
    * Optional. Spark batch config.
    * 
* - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.SparkBatchOrBuilder getSparkBatchOrBuilder(); /** + * + * *
    * Optional. SparkR batch config.
    * 
* - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkRBatch field is set. */ boolean hasSparkRBatch(); /** + * + * *
    * Optional. SparkR batch config.
    * 
* - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkRBatch. */ com.google.cloud.dataproc.v1.SparkRBatch getSparkRBatch(); /** + * + * *
    * Optional. SparkR batch config.
    * 
* - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.SparkRBatchOrBuilder getSparkRBatchOrBuilder(); /** + * + * *
    * Optional. SparkSql batch config.
    * 
* - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkSqlBatch field is set. */ boolean hasSparkSqlBatch(); /** + * + * *
    * Optional. SparkSql batch config.
    * 
* - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkSqlBatch. */ com.google.cloud.dataproc.v1.SparkSqlBatch getSparkSqlBatch(); /** + * + * *
    * Optional. SparkSql batch config.
    * 
* - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder getSparkSqlBatchOrBuilder(); /** + * + * *
    * Output only. Runtime information about batch execution.
    * 
* - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the runtimeInfo field is set. */ boolean hasRuntimeInfo(); /** + * + * *
    * Output only. Runtime information about batch execution.
    * 
* - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The runtimeInfo. */ com.google.cloud.dataproc.v1.RuntimeInfo getRuntimeInfo(); /** + * + * *
    * Output only. Runtime information about batch execution.
    * 
* - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder getRuntimeInfoOrBuilder(); /** + * + * *
    * Output only. The state of the batch.
    * 
* - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The state of the batch.
    * 
* - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.dataproc.v1.Batch.State getState(); /** + * + * *
    * Output only. Batch state details, such as a failure
    * description if the state is `FAILED`.
    * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateMessage. */ java.lang.String getStateMessage(); /** + * + * *
    * Output only. Batch state details, such as a failure
    * description if the state is `FAILED`.
    * 
* * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stateMessage. */ - com.google.protobuf.ByteString - getStateMessageBytes(); + com.google.protobuf.ByteString getStateMessageBytes(); /** + * + * *
    * Output only. The time when the batch entered a current state.
    * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateTime field is set. */ boolean hasStateTime(); /** + * + * *
    * Output only. The time when the batch entered a current state.
    * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateTime. */ com.google.protobuf.Timestamp getStateTime(); /** + * + * *
    * Output only. The time when the batch entered a current state.
    * 
* - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder(); /** + * + * *
    * Output only. The email address of the user who created the batch.
    * 
* * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creator. */ java.lang.String getCreator(); /** + * + * *
    * Output only. The email address of the user who created the batch.
    * 
* * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for creator. */ - com.google.protobuf.ByteString - getCreatorBytes(); + com.google.protobuf.ByteString getCreatorBytes(); /** + * + * *
    * Optional. The labels to associate with this batch.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -314,6 +454,8 @@ public interface BatchOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this batch.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -326,15 +468,13 @@ public interface BatchOrBuilder extends
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-  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();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this batch.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -347,9 +487,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this batch.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -364,11 +505,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this batch.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -381,127 +524,176 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. Runtime configuration for the batch execution.
    * 
* - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the runtimeConfig field is set. */ boolean hasRuntimeConfig(); /** + * + * *
    * Optional. Runtime configuration for the batch execution.
    * 
* - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The runtimeConfig. */ com.google.cloud.dataproc.v1.RuntimeConfig getRuntimeConfig(); /** + * + * *
    * Optional. Runtime configuration for the batch execution.
    * 
* - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder getRuntimeConfigOrBuilder(); /** + * + * *
    * Optional. Environment configuration for the batch execution.
    * 
* - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the environmentConfig field is set. */ boolean hasEnvironmentConfig(); /** + * + * *
    * Optional. Environment configuration for the batch execution.
    * 
* - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The environmentConfig. */ com.google.cloud.dataproc.v1.EnvironmentConfig getEnvironmentConfig(); /** + * + * *
    * Optional. Environment configuration for the batch execution.
    * 
* - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder getEnvironmentConfigOrBuilder(); /** + * + * *
    * Output only. The resource name of the operation associated with this batch.
    * 
* * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The operation. */ java.lang.String getOperation(); /** + * + * *
    * Output only. The resource name of the operation associated with this batch.
    * 
* * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for operation. */ - com.google.protobuf.ByteString - getOperationBytes(); + com.google.protobuf.ByteString getOperationBytes(); /** + * + * *
    * Output only. Historical state information for the batch.
    * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getStateHistoryList(); + java.util.List getStateHistoryList(); /** + * + * *
    * Output only. Historical state information for the batch.
    * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.Batch.StateHistory getStateHistory(int index); /** + * + * *
    * Output only. Historical state information for the batch.
    * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getStateHistoryCount(); /** + * + * *
    * Output only. Historical state information for the batch.
    * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getStateHistoryOrBuilderList(); /** + * + * *
    * Output only. Historical state information for the batch.
    * 
* - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder getStateHistoryOrBuilder( - int index); + com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder getStateHistoryOrBuilder(int index); public com.google.cloud.dataproc.v1.Batch.BatchConfigCase getBatchConfigCase(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java new file mode 100644 index 000000000000..aea24497aa51 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java @@ -0,0 +1,357 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +public final class BatchesProto { + private BatchesProto() {} + + 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_dataproc_v1_CreateBatchRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_Batch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_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/dataproc/v1/batches.proto" + + "\022\030google.cloud.dataproc.v1\032\034google/api/a" + + "nnotations.proto\032\027google/api/client.prot" + + "o\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032%google/cloud/data" + + "proc/v1/shared.proto\032#google/longrunning" + + "/operations.proto\032\033google/protobuf/empty" + + ".proto\032\037google/protobuf/timestamp.proto\"" + + "\260\001\n\022CreateBatchRequest\0225\n\006parent\030\001 \001(\tB%" + + "\340A\002\372A\037\022\035dataproc.googleapis.com/Batch\0223\n" + + "\005batch\030\002 \001(\0132\037.google.cloud.dataproc.v1." + + "BatchB\003\340A\002\022\025\n\010batch_id\030\003 \001(\tB\003\340A\001\022\027\n\nreq" + + "uest_id\030\004 \001(\tB\003\340A\001\"F\n\017GetBatchRequest\0223\n" + + "\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dataproc.googleapis" + + ".com/Batch\"|\n\022ListBatchesRequest\0225\n\006pare" + + "nt\030\001 \001(\tB%\340A\002\372A\037\022\035dataproc.googleapis.co" + + "m/Batch\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_" + + "token\030\003 \001(\tB\003\340A\001\"`\n\023ListBatchesResponse\022" + + "0\n\007batches\030\001 \003(\0132\037.google.cloud.dataproc" + + ".v1.Batch\022\027\n\017next_page_token\030\002 \001(\t\"I\n\022De" + + "leteBatchRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035" + + "dataproc.googleapis.com/Batch\"\310\n\n\005Batch\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\021\n\004uuid\030\002 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\022D\n\rpyspark_batch\030\004 \001(\0132&.goo" + + "gle.cloud.dataproc.v1.PySparkBatchB\003\340A\001H" + + "\000\022@\n\013spark_batch\030\005 \001(\0132$.google.cloud.da" + + "taproc.v1.SparkBatchB\003\340A\001H\000\022C\n\rspark_r_b" + + "atch\030\006 \001(\0132%.google.cloud.dataproc.v1.Sp" + + "arkRBatchB\003\340A\001H\000\022G\n\017spark_sql_batch\030\007 \001(" + + "\0132\'.google.cloud.dataproc.v1.SparkSqlBat" + + "chB\003\340A\001H\000\022@\n\014runtime_info\030\010 \001(\0132%.google" + + ".cloud.dataproc.v1.RuntimeInfoB\003\340A\003\0229\n\005s" + + "tate\030\t \001(\0162%.google.cloud.dataproc.v1.Ba" + + "tch.StateB\003\340A\003\022\032\n\rstate_message\030\n \001(\tB\003\340" + + "A\003\0223\n\nstate_time\030\013 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022\024\n\007creator\030\014 \001(\tB\003\340A\003\022@\n" + + "\006labels\030\r \003(\0132+.google.cloud.dataproc.v1" + + ".Batch.LabelsEntryB\003\340A\001\022D\n\016runtime_confi" + + "g\030\016 \001(\0132\'.google.cloud.dataproc.v1.Runti" + + "meConfigB\003\340A\001\022L\n\022environment_config\030\017 \001(" + + "\0132+.google.cloud.dataproc.v1.Environment" + + "ConfigB\003\340A\001\022\026\n\toperation\030\020 \001(\tB\003\340A\003\022H\n\rs" + + "tate_history\030\021 \003(\0132,.google.cloud.datapr" + + "oc.v1.Batch.StateHistoryB\003\340A\003\032\240\001\n\014StateH" + + "istory\0229\n\005state\030\001 \001(\0162%.google.cloud.dat" + + "aproc.v1.Batch.StateB\003\340A\003\022\032\n\rstate_messa" + + "ge\030\002 \001(\tB\003\340A\003\0229\n\020state_start_time\030\003 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\032-\n\013Labe" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "r\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDI" + + "NG\020\001\022\013\n\007RUNNING\020\002\022\016\n\nCANCELLING\020\003\022\r\n\tCAN" + + "CELLED\020\004\022\r\n\tSUCCEEDED\020\005\022\n\n\006FAILED\020\006:[\352AX" + + "\n\035dataproc.googleapis.com/Batch\0227project" + + "s/{project}/locations/{location}/batches" + + "/{batch}B\016\n\014batch_config\"\262\001\n\014PySparkBatc" + + "h\022!\n\024main_python_file_uri\030\001 \001(\tB\003\340A\002\022\021\n\004" + + "args\030\002 \003(\tB\003\340A\001\022\035\n\020python_file_uris\030\003 \003(" + + "\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 \003(\tB\003\340A\001\022\026\n\tfi" + + "le_uris\030\005 \003(\tB\003\340A\001\022\031\n\014archive_uris\030\006 \003(\t" + + "B\003\340A\001\"\265\001\n\nSparkBatch\022 \n\021main_jar_file_ur" + + "i\030\001 \001(\tB\003\340A\001H\000\022\031\n\nmain_class\030\002 \001(\tB\003\340A\001H" + + "\000\022\021\n\004args\030\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 " + + "\003(\tB\003\340A\001\022\026\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014arch" + + "ive_uris\030\006 \003(\tB\003\340A\001B\010\n\006driver\"q\n\013SparkRB" + + "atch\022\034\n\017main_r_file_uri\030\001 \001(\tB\003\340A\002\022\021\n\004ar" + + "gs\030\002 \003(\tB\003\340A\001\022\026\n\tfile_uris\030\003 \003(\tB\003\340A\001\022\031\n" + + "\014archive_uris\030\004 \003(\tB\003\340A\001\"\332\001\n\rSparkSqlBat" + + "ch\022\033\n\016query_file_uri\030\001 \001(\tB\003\340A\002\022Y\n\017query" + + "_variables\030\002 \003(\0132;.google.cloud.dataproc" + + ".v1.SparkSqlBatch.QueryVariablesEntryB\003\340" + + "A\001\022\032\n\rjar_file_uris\030\003 \003(\tB\003\340A\001\0325\n\023QueryV" + + "ariablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\0012\235\006\n\017BatchController\022\352\001\n\013CreateBatc" + + "h\022,.google.cloud.dataproc.v1.CreateBatch" + + "Request\032\035.google.longrunning.Operation\"\215" + + "\001\202\323\344\223\0024\"+/v1/{parent=projects/*/location" + + "s/*}/batches:\005batch\332A\025parent,batch,batch" + + "_id\312A8\n\005Batch\022/google.cloud.dataproc.v1." + + "BatchOperationMetadata\022\222\001\n\010GetBatch\022).go" + + "ogle.cloud.dataproc.v1.GetBatchRequest\032\037" + + ".google.cloud.dataproc.v1.Batch\":\202\323\344\223\002-\022" + + "+/v1/{name=projects/*/locations/*/batche" + + "s/*}\332A\004name\022\250\001\n\013ListBatches\022,.google.clo" + + "ud.dataproc.v1.ListBatchesRequest\032-.goog" + + "le.cloud.dataproc.v1.ListBatchesResponse" + + "\"<\202\323\344\223\002-\022+/v1/{parent=projects/*/locatio" + + "ns/*}/batches\332A\006parent\022\217\001\n\013DeleteBatch\022," + + ".google.cloud.dataproc.v1.DeleteBatchReq" + + "uest\032\026.google.protobuf.Empty\":\202\323\344\223\002-*+/v" + + "1/{name=projects/*/locations/*/batches/*" + + "}\332A\004name\032K\312A\027dataproc.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformBp\n\034com.google.cloud.dataproc.v1B\014B" + + "atchesProtoP\001Z@google.golang.org/genprot" + + "o/googleapis/cloud/dataproc/v1;dataprocb" + + "\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.dataproc.v1.SharedProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor, + new java.lang.String[] { + "Parent", "Batch", "BatchId", "RequestId", + }); + internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor, + new java.lang.String[] { + "Batches", "NextPageToken", + }); + internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataproc_v1_Batch_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_Batch_descriptor, + new java.lang.String[] { + "Name", + "Uuid", + "CreateTime", + "PysparkBatch", + "SparkBatch", + "SparkRBatch", + "SparkSqlBatch", + "RuntimeInfo", + "State", + "StateMessage", + "StateTime", + "Creator", + "Labels", + "RuntimeConfig", + "EnvironmentConfig", + "Operation", + "StateHistory", + "BatchConfig", + }); + internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor = + internal_static_google_cloud_dataproc_v1_Batch_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor, + new java.lang.String[] { + "State", "StateMessage", "StateStartTime", + }); + internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_Batch_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor, + new java.lang.String[] { + "MainPythonFileUri", + "Args", + "PythonFileUris", + "JarFileUris", + "FileUris", + "ArchiveUris", + }); + internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor, + new java.lang.String[] { + "MainJarFileUri", + "MainClass", + "Args", + "JarFileUris", + "FileUris", + "ArchiveUris", + "Driver", + }); + internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor, + new java.lang.String[] { + "MainRFileUri", "Args", "FileUris", "ArchiveUris", + }); + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor, + new java.lang.String[] { + "QueryFileUri", "QueryVariables", "JarFileUris", + }); + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.dataproc.v1.SharedProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java index 423bb05a84ca..dc9d2d464cc8 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to cancel a job.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.CancelJobRequest} */ -public final class CancelJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CancelJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.CancelJobRequest) CancelJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CancelJobRequest.newBuilder() to construct. private CancelJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CancelJobRequest() { projectId_ = ""; region_ = ""; @@ -27,38 +45,42 @@ private CancelJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CancelJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CancelJobRequest.class, com.google.cloud.dataproc.v1.CancelJobRequest.Builder.class); + com.google.cloud.dataproc.v1.CancelJobRequest.class, + com.google.cloud.dataproc.v1.CancelJobRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -67,30 +89,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -101,11 +123,14 @@ public java.lang.String getProjectId() { public static final int REGION_FIELD_NUMBER = 3; private volatile java.lang.Object region_; /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ @java.lang.Override @@ -114,29 +139,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -147,11 +172,14 @@ public java.lang.String getRegion() { public static final int JOB_ID_FIELD_NUMBER = 2; private volatile java.lang.Object jobId_; /** + * + * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The jobId. */ @java.lang.Override @@ -160,29 +188,29 @@ public java.lang.String getJobId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; } } /** + * + * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for jobId. */ @java.lang.Override - public com.google.protobuf.ByteString - getJobIdBytes() { + public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobId_ = b; return b; } else { @@ -191,6 +219,7 @@ public java.lang.String getJobId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +231,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -239,19 +267,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.dataproc.v1.CancelJobRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.CancelJobRequest other = (com.google.cloud.dataproc.v1.CancelJobRequest) obj; + com.google.cloud.dataproc.v1.CancelJobRequest other = + (com.google.cloud.dataproc.v1.CancelJobRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getRegion() - .equals(other.getRegion())) return false; - if (!getJobId() - .equals(other.getJobId())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getJobId().equals(other.getJobId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -274,130 +300,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CancelJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.CancelJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.CancelJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.CancelJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to cancel a job.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.CancelJobRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.CancelJobRequest) com.google.cloud.dataproc.v1.CancelJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CancelJobRequest.class, com.google.cloud.dataproc.v1.CancelJobRequest.Builder.class); + com.google.cloud.dataproc.v1.CancelJobRequest.class, + com.google.cloud.dataproc.v1.CancelJobRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.CancelJobRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; } @java.lang.Override @@ -432,7 +464,8 @@ public com.google.cloud.dataproc.v1.CancelJobRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.CancelJobRequest buildPartial() { - com.google.cloud.dataproc.v1.CancelJobRequest result = new com.google.cloud.dataproc.v1.CancelJobRequest(this); + com.google.cloud.dataproc.v1.CancelJobRequest result = + new com.google.cloud.dataproc.v1.CancelJobRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.jobId_ = jobId_; @@ -444,38 +477,39 @@ public com.google.cloud.dataproc.v1.CancelJobRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.CancelJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.CancelJobRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.CancelJobRequest) other); } else { super.mergeFrom(other); return this; @@ -522,27 +556,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - region_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,19 +593,21 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -576,21 +616,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -598,57 +639,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -656,18 +704,20 @@ public Builder setProjectIdBytes( private java.lang.Object region_ = ""; /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -676,20 +726,21 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -697,54 +748,61 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion( - java.lang.String value) { + public Builder setRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -752,18 +810,20 @@ public Builder setRegionBytes( private java.lang.Object jobId_ = ""; /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The jobId. */ public java.lang.String getJobId() { java.lang.Object ref = jobId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; @@ -772,20 +832,21 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for jobId. */ - public com.google.protobuf.ByteString - getJobIdBytes() { + public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobId_ = b; return b; } else { @@ -793,61 +854,68 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The jobId to set. * @return This builder for chaining. */ - public Builder setJobId( - java.lang.String value) { + public Builder setJobId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearJobId() { - + jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for jobId to set. * @return This builder for chaining. */ - public Builder setJobIdBytes( - com.google.protobuf.ByteString value) { + public Builder setJobIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -857,12 +925,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.CancelJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CancelJobRequest) private static final com.google.cloud.dataproc.v1.CancelJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.CancelJobRequest(); } @@ -871,27 +939,27 @@ public static com.google.cloud.dataproc.v1.CancelJobRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CancelJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -906,6 +974,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.CancelJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java index e523625b4cc4..51f87edb070d 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java @@ -1,71 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface CancelJobRequestOrBuilder extends +public interface CancelJobRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.CancelJobRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ java.lang.String getRegion(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - com.google.protobuf.ByteString - getRegionBytes(); + com.google.protobuf.ByteString getRegionBytes(); /** + * + * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The jobId. */ java.lang.String getJobId(); /** + * + * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for jobId. */ - com.google.protobuf.ByteString - getJobIdBytes(); + com.google.protobuf.ByteString getJobIdBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java similarity index 67% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java index 8865b8aee0e6..2b1894fb7ddd 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Describes the identifying information, config, and status of
  * a Dataproc cluster
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.Cluster}
  */
-public final class Cluster extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Cluster extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.Cluster)
     ClusterOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Cluster.newBuilder() to construct.
   private Cluster(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Cluster() {
     projectId_ = "";
     clusterName_ = "";
@@ -29,49 +47,52 @@ private Cluster() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Cluster();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_Cluster_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_Cluster_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.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.Cluster.class, com.google.cloud.dataproc.v1.Cluster.Builder.class);
+            com.google.cloud.dataproc.v1.Cluster.class,
+            com.google.cloud.dataproc.v1.Cluster.Builder.class);
   }
 
   public static final int PROJECT_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object projectId_;
   /**
+   *
+   *
    * 
    * Required. The Google Cloud Platform project ID that the cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -80,29 +101,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The Google Cloud Platform project ID that the cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -113,6 +134,8 @@ public java.lang.String getProjectId() { public static final int CLUSTER_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object clusterName_; /** + * + * *
    * Required. The cluster name, which must be unique within a project.
    * The name must start with a lowercase letter, and can contain
@@ -121,6 +144,7 @@ public java.lang.String getProjectId() {
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ @java.lang.Override @@ -129,14 +153,15 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** + * + * *
    * Required. The cluster name, which must be unique within a project.
    * The name must start with a lowercase letter, and can contain
@@ -145,16 +170,15 @@ public java.lang.String getClusterName() {
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -165,13 +189,18 @@ public java.lang.String getClusterName() { public static final int CONFIG_FIELD_NUMBER = 3; private com.google.cloud.dataproc.v1.ClusterConfig config_; /** + * + * *
    * Optional. The cluster config for a cluster of Compute Engine Instances.
    * Note that Dataproc may set default values, and values may change
    * when clusters are updated.
    * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -179,27 +208,38 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Optional. The cluster config for a cluster of Compute Engine Instances.
    * Note that Dataproc may set default values, and values may change
    * when clusters are updated.
    * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterConfig getConfig() { - return config_ == null ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Optional. The cluster config for a cluster of Compute Engine Instances.
    * Note that Dataproc may set default values, and values may change
    * when clusters are updated.
    * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() { @@ -209,6 +249,8 @@ public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() public static final int VIRTUAL_CLUSTER_CONFIG_FIELD_NUMBER = 10; private com.google.cloud.dataproc.v1.VirtualClusterConfig virtualClusterConfig_; /** + * + * *
    * Optional. The virtual cluster config is used when creating a Dataproc
    * cluster that does not directly control the underlying compute resources,
@@ -221,7 +263,10 @@ public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder()
    * must be specified.
    * 
* - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the virtualClusterConfig field is set. */ @java.lang.Override @@ -229,6 +274,8 @@ public boolean hasVirtualClusterConfig() { return virtualClusterConfig_ != null; } /** + * + * *
    * Optional. The virtual cluster config is used when creating a Dataproc
    * cluster that does not directly control the underlying compute resources,
@@ -241,14 +288,21 @@ public boolean hasVirtualClusterConfig() {
    * must be specified.
    * 
* - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The virtualClusterConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.VirtualClusterConfig getVirtualClusterConfig() { - return virtualClusterConfig_ == null ? com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance() : virtualClusterConfig_; + return virtualClusterConfig_ == null + ? com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance() + : virtualClusterConfig_; } /** + * + * *
    * Optional. The virtual cluster config is used when creating a Dataproc
    * cluster that does not directly control the underlying compute resources,
@@ -261,32 +315,34 @@ public com.google.cloud.dataproc.v1.VirtualClusterConfig getVirtualClusterConfig
    * must be specified.
    * 
* - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder getVirtualClusterConfigOrBuilder() { + public com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder + getVirtualClusterConfigOrBuilder() { return getVirtualClusterConfig(); } public static final int LABELS_FIELD_NUMBER = 8; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -295,6 +351,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels to associate with this cluster.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -307,22 +365,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-
   @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();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -336,11 +394,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -354,16 +413,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -377,12 +436,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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();
     }
@@ -392,11 +450,16 @@ public java.lang.String getLabelsOrThrow(
   public static final int STATUS_FIELD_NUMBER = 4;
   private com.google.cloud.dataproc.v1.ClusterStatus status_;
   /**
+   *
+   *
    * 
    * Output only. Cluster status.
    * 
* - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the status field is set. */ @java.lang.Override @@ -404,23 +467,34 @@ public boolean hasStatus() { return status_ != null; } /** + * + * *
    * Output only. Cluster status.
    * 
* - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterStatus getStatus() { - return status_ == null ? com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance() + : status_; } /** + * + * *
    * Output only. Cluster status.
    * 
* - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusOrBuilder() { @@ -430,72 +504,94 @@ public com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusOrBuilder() public static final int STATUS_HISTORY_FIELD_NUMBER = 7; private java.util.List statusHistory_; /** + * + * *
    * Output only. The previous cluster status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getStatusHistoryList() { return statusHistory_; } /** + * + * *
    * Output only. The previous cluster status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getStatusHistoryOrBuilderList() { return statusHistory_; } /** + * + * *
    * Output only. The previous cluster status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getStatusHistoryCount() { return statusHistory_.size(); } /** + * + * *
    * Output only. The previous cluster status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterStatus getStatusHistory(int index) { return statusHistory_.get(index); } /** + * + * *
    * Output only. The previous cluster status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusHistoryOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusHistoryOrBuilder(int index) { return statusHistory_.get(index); } public static final int CLUSTER_UUID_FIELD_NUMBER = 6; private volatile java.lang.Object clusterUuid_; /** + * + * *
    * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
    * generates this value when it creates the cluster.
    * 
* * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterUuid. */ @java.lang.Override @@ -504,30 +600,30 @@ public java.lang.String getClusterUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; } } /** + * + * *
    * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
    * generates this value when it creates the cluster.
    * 
* * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterUuid. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterUuidBytes() { + public com.google.protobuf.ByteString getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -538,13 +634,18 @@ public java.lang.String getClusterUuid() { public static final int METRICS_FIELD_NUMBER = 9; private com.google.cloud.dataproc.v1.ClusterMetrics metrics_; /** + * + * *
    * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
    * **Beta Feature**: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the metrics field is set. */ @java.lang.Override @@ -552,27 +653,38 @@ public boolean hasMetrics() { return metrics_ != null; } /** + * + * *
    * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
    * **Beta Feature**: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The metrics. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterMetrics getMetrics() { - return metrics_ == null ? com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance() : metrics_; + return metrics_ == null + ? com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance() + : metrics_; } /** + * + * *
    * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
    * **Beta Feature**: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder getMetricsOrBuilder() { @@ -580,6 +692,7 @@ public com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder getMetricsOrBuilder( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -591,8 +704,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -611,12 +723,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < statusHistory_.size(); i++) { output.writeMessage(7, statusHistory_.get(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 8); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); if (metrics_ != null) { output.writeMessage(9, getMetrics()); } @@ -639,37 +747,33 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConfig()); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clusterUuid_); } for (int i = 0; i < statusHistory_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, statusHistory_.get(i)); - } - 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, statusHistory_.get(i)); + } + 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 (metrics_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getMetrics()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMetrics()); } if (virtualClusterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getVirtualClusterConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getVirtualClusterConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -679,42 +783,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.dataproc.v1.Cluster)) { return super.equals(obj); } com.google.cloud.dataproc.v1.Cluster other = (com.google.cloud.dataproc.v1.Cluster) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getClusterName() - .equals(other.getClusterName())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getClusterName().equals(other.getClusterName())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasVirtualClusterConfig() != other.hasVirtualClusterConfig()) return false; if (hasVirtualClusterConfig()) { - if (!getVirtualClusterConfig() - .equals(other.getVirtualClusterConfig())) return false; + if (!getVirtualClusterConfig().equals(other.getVirtualClusterConfig())) 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 (!getStatusHistoryList() - .equals(other.getStatusHistoryList())) return false; - if (!getClusterUuid() - .equals(other.getClusterUuid())) return false; + if (!getStatusHistoryList().equals(other.getStatusHistoryList())) return false; + if (!getClusterUuid().equals(other.getClusterUuid())) return false; if (hasMetrics() != other.hasMetrics()) return false; if (hasMetrics()) { - if (!getMetrics() - .equals(other.getMetrics())) return false; + if (!getMetrics().equals(other.getMetrics())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -762,97 +857,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.Cluster parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.Cluster parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.Cluster parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.Cluster parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.dataproc.v1.Cluster parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.Cluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.Cluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.Cluster parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.Cluster parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.Cluster parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.Cluster 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.dataproc.v1.Cluster parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.Cluster parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.Cluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.Cluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes the identifying information, config, and status of
    * a Dataproc cluster
@@ -860,55 +961,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.Cluster}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.Cluster)
       com.google.cloud.dataproc.v1.ClusterOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_Cluster_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_Cluster_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.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.Cluster.class, com.google.cloud.dataproc.v1.Cluster.Builder.class);
+              com.google.cloud.dataproc.v1.Cluster.class,
+              com.google.cloud.dataproc.v1.Cluster.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.Cluster.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -954,9 +1052,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_Cluster_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_Cluster_descriptor;
     }
 
     @java.lang.Override
@@ -1019,38 +1117,39 @@ public com.google.cloud.dataproc.v1.Cluster buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.Cluster) {
-        return mergeFrom((com.google.cloud.dataproc.v1.Cluster)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.Cluster) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1073,8 +1172,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Cluster other) {
       if (other.hasVirtualClusterConfig()) {
         mergeVirtualClusterConfig(other.getVirtualClusterConfig());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       if (other.hasStatus()) {
         mergeStatus(other.getStatus());
       }
@@ -1096,9 +1194,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Cluster other) {
             statusHistoryBuilder_ = null;
             statusHistory_ = other.statusHistory_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            statusHistoryBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getStatusHistoryFieldBuilder() : null;
+            statusHistoryBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getStatusHistoryFieldBuilder()
+                    : null;
           } else {
             statusHistoryBuilder_.addAllMessages(other.statusHistory_);
           }
@@ -1137,76 +1236,80 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              projectId_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              clusterName_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getStatusFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 34
-            case 50: {
-              clusterUuid_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 50
-            case 58: {
-              com.google.cloud.dataproc.v1.ClusterStatus m =
-                  input.readMessage(
-                      com.google.cloud.dataproc.v1.ClusterStatus.parser(),
-                      extensionRegistry);
-              if (statusHistoryBuilder_ == null) {
-                ensureStatusHistoryIsMutable();
-                statusHistory_.add(m);
-              } else {
-                statusHistoryBuilder_.addMessage(m);
-              }
-              break;
-            } // case 58
-            case 66: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              break;
-            } // case 66
-            case 74: {
-              input.readMessage(
-                  getMetricsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 74
-            case 82: {
-              input.readMessage(
-                  getVirtualClusterConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 82
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                projectId_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                clusterName_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 34
+            case 50:
+              {
+                clusterUuid_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 50
+            case 58:
+              {
+                com.google.cloud.dataproc.v1.ClusterStatus m =
+                    input.readMessage(
+                        com.google.cloud.dataproc.v1.ClusterStatus.parser(), extensionRegistry);
+                if (statusHistoryBuilder_ == null) {
+                  ensureStatusHistoryIsMutable();
+                  statusHistory_.add(m);
+                } else {
+                  statusHistoryBuilder_.addMessage(m);
+                }
+                break;
+              } // case 58
+            case 66:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                break;
+              } // case 66
+            case 74:
+              {
+                input.readMessage(getMetricsFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 74
+            case 82:
+              {
+                input.readMessage(
+                    getVirtualClusterConfigFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 82
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1216,22 +1319,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object projectId_ = "";
     /**
+     *
+     *
      * 
      * Required. The Google Cloud Platform project ID that the cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1240,20 +1346,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The Google Cloud Platform project ID that the cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -1261,54 +1368,61 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The Google Cloud Platform project ID that the cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Google Cloud Platform project ID that the cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The Google Cloud Platform project ID that the cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1316,6 +1430,8 @@ public Builder setProjectIdBytes( private java.lang.Object clusterName_ = ""; /** + * + * *
      * Required. The cluster name, which must be unique within a project.
      * The name must start with a lowercase letter, and can contain
@@ -1324,13 +1440,13 @@ public Builder setProjectIdBytes(
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -1339,6 +1455,8 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Required. The cluster name, which must be unique within a project.
      * The name must start with a lowercase letter, and can contain
@@ -1347,15 +1465,14 @@ public java.lang.String getClusterName() {
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -1363,6 +1480,8 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Required. The cluster name, which must be unique within a project.
      * The name must start with a lowercase letter, and can contain
@@ -1371,20 +1490,22 @@ public java.lang.String getClusterName() {
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName( - java.lang.String value) { + public Builder setClusterName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The cluster name, which must be unique within a project.
      * The name must start with a lowercase letter, and can contain
@@ -1393,15 +1514,18 @@ public Builder setClusterName(
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** + * + * *
      * Required. The cluster name, which must be unique within a project.
      * The name must start with a lowercase letter, and can contain
@@ -1410,16 +1534,16 @@ public Builder clearClusterName() {
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1427,45 +1551,64 @@ public Builder setClusterNameBytes( private com.google.cloud.dataproc.v1.ClusterConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterConfig, com.google.cloud.dataproc.v1.ClusterConfig.Builder, com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> configBuilder_; + com.google.cloud.dataproc.v1.ClusterConfig, + com.google.cloud.dataproc.v1.ClusterConfig.Builder, + com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> + configBuilder_; /** + * + * *
      * Optional. The cluster config for a cluster of Compute Engine Instances.
      * Note that Dataproc may set default values, and values may change
      * when clusters are updated.
      * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Optional. The cluster config for a cluster of Compute Engine Instances.
      * Note that Dataproc may set default values, and values may change
      * when clusters are updated.
      * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The config. */ public com.google.cloud.dataproc.v1.ClusterConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Optional. The cluster config for a cluster of Compute Engine Instances.
      * Note that Dataproc may set default values, and values may change
      * when clusters are updated.
      * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { if (configBuilder_ == null) { @@ -1481,16 +1624,19 @@ public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { return this; } /** + * + * *
      * Optional. The cluster config for a cluster of Compute Engine Instances.
      * Note that Dataproc may set default values, and values may change
      * when clusters are updated.
      * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setConfig( - com.google.cloud.dataproc.v1.ClusterConfig.Builder builderForValue) { + public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -1501,19 +1647,25 @@ public Builder setConfig( return this; } /** + * + * *
      * Optional. The cluster config for a cluster of Compute Engine Instances.
      * Note that Dataproc may set default values, and values may change
      * when clusters are updated.
      * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.dataproc.v1.ClusterConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.ClusterConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -1525,13 +1677,17 @@ public Builder mergeConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { return this; } /** + * + * *
      * Optional. The cluster config for a cluster of Compute Engine Instances.
      * Note that Dataproc may set default values, and values may change
      * when clusters are updated.
      * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -1545,54 +1701,70 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Optional. The cluster config for a cluster of Compute Engine Instances.
      * Note that Dataproc may set default values, and values may change
      * when clusters are updated.
      * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.ClusterConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The cluster config for a cluster of Compute Engine Instances.
      * Note that Dataproc may set default values, and values may change
      * when clusters are updated.
      * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Optional. The cluster config for a cluster of Compute Engine Instances.
      * Note that Dataproc may set default values, and values may change
      * when clusters are updated.
      * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterConfig, com.google.cloud.dataproc.v1.ClusterConfig.Builder, com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> + com.google.cloud.dataproc.v1.ClusterConfig, + com.google.cloud.dataproc.v1.ClusterConfig.Builder, + com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterConfig, com.google.cloud.dataproc.v1.ClusterConfig.Builder, com.google.cloud.dataproc.v1.ClusterConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterConfig, + com.google.cloud.dataproc.v1.ClusterConfig.Builder, + com.google.cloud.dataproc.v1.ClusterConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -1600,8 +1772,13 @@ public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() private com.google.cloud.dataproc.v1.VirtualClusterConfig virtualClusterConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.VirtualClusterConfig, com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder, com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder> virtualClusterConfigBuilder_; + com.google.cloud.dataproc.v1.VirtualClusterConfig, + com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder, + com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder> + virtualClusterConfigBuilder_; /** + * + * *
      * Optional. The virtual cluster config is used when creating a Dataproc
      * cluster that does not directly control the underlying compute resources,
@@ -1614,13 +1791,18 @@ public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder()
      * must be specified.
      * 
* - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the virtualClusterConfig field is set. */ public boolean hasVirtualClusterConfig() { return virtualClusterConfigBuilder_ != null || virtualClusterConfig_ != null; } /** + * + * *
      * Optional. The virtual cluster config is used when creating a Dataproc
      * cluster that does not directly control the underlying compute resources,
@@ -1633,17 +1815,24 @@ public boolean hasVirtualClusterConfig() {
      * must be specified.
      * 
* - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The virtualClusterConfig. */ public com.google.cloud.dataproc.v1.VirtualClusterConfig getVirtualClusterConfig() { if (virtualClusterConfigBuilder_ == null) { - return virtualClusterConfig_ == null ? com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance() : virtualClusterConfig_; + return virtualClusterConfig_ == null + ? com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance() + : virtualClusterConfig_; } else { return virtualClusterConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The virtual cluster config is used when creating a Dataproc
      * cluster that does not directly control the underlying compute resources,
@@ -1656,9 +1845,12 @@ public com.google.cloud.dataproc.v1.VirtualClusterConfig getVirtualClusterConfig
      * must be specified.
      * 
* - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setVirtualClusterConfig(com.google.cloud.dataproc.v1.VirtualClusterConfig value) { + public Builder setVirtualClusterConfig( + com.google.cloud.dataproc.v1.VirtualClusterConfig value) { if (virtualClusterConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1672,6 +1864,8 @@ public Builder setVirtualClusterConfig(com.google.cloud.dataproc.v1.VirtualClust return this; } /** + * + * *
      * Optional. The virtual cluster config is used when creating a Dataproc
      * cluster that does not directly control the underlying compute resources,
@@ -1684,7 +1878,9 @@ public Builder setVirtualClusterConfig(com.google.cloud.dataproc.v1.VirtualClust
      * must be specified.
      * 
* - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setVirtualClusterConfig( com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder builderForValue) { @@ -1698,6 +1894,8 @@ public Builder setVirtualClusterConfig( return this; } /** + * + * *
      * Optional. The virtual cluster config is used when creating a Dataproc
      * cluster that does not directly control the underlying compute resources,
@@ -1710,13 +1908,18 @@ public Builder setVirtualClusterConfig(
      * must be specified.
      * 
* - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeVirtualClusterConfig(com.google.cloud.dataproc.v1.VirtualClusterConfig value) { + public Builder mergeVirtualClusterConfig( + com.google.cloud.dataproc.v1.VirtualClusterConfig value) { if (virtualClusterConfigBuilder_ == null) { if (virtualClusterConfig_ != null) { virtualClusterConfig_ = - com.google.cloud.dataproc.v1.VirtualClusterConfig.newBuilder(virtualClusterConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.VirtualClusterConfig.newBuilder(virtualClusterConfig_) + .mergeFrom(value) + .buildPartial(); } else { virtualClusterConfig_ = value; } @@ -1728,6 +1931,8 @@ public Builder mergeVirtualClusterConfig(com.google.cloud.dataproc.v1.VirtualClu return this; } /** + * + * *
      * Optional. The virtual cluster config is used when creating a Dataproc
      * cluster that does not directly control the underlying compute resources,
@@ -1740,7 +1945,9 @@ public Builder mergeVirtualClusterConfig(com.google.cloud.dataproc.v1.VirtualClu
      * must be specified.
      * 
* - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearVirtualClusterConfig() { if (virtualClusterConfigBuilder_ == null) { @@ -1754,6 +1961,8 @@ public Builder clearVirtualClusterConfig() { return this; } /** + * + * *
      * Optional. The virtual cluster config is used when creating a Dataproc
      * cluster that does not directly control the underlying compute resources,
@@ -1766,14 +1975,19 @@ public Builder clearVirtualClusterConfig() {
      * must be specified.
      * 
* - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder getVirtualClusterConfigBuilder() { - + public com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder + getVirtualClusterConfigBuilder() { + onChanged(); return getVirtualClusterConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The virtual cluster config is used when creating a Dataproc
      * cluster that does not directly control the underlying compute resources,
@@ -1786,17 +2000,23 @@ public com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder getVirtualClust
      * must be specified.
      * 
* - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder getVirtualClusterConfigOrBuilder() { + public com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder + getVirtualClusterConfigOrBuilder() { if (virtualClusterConfigBuilder_ != null) { return virtualClusterConfigBuilder_.getMessageOrBuilder(); } else { - return virtualClusterConfig_ == null ? - com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance() : virtualClusterConfig_; + return virtualClusterConfig_ == null + ? com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance() + : virtualClusterConfig_; } } /** + * + * *
      * Optional. The virtual cluster config is used when creating a Dataproc
      * cluster that does not directly control the underlying compute resources,
@@ -1809,38 +2029,42 @@ public com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder getVirtualClus
      * must be specified.
      * 
* - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.VirtualClusterConfig, com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder, com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder> + com.google.cloud.dataproc.v1.VirtualClusterConfig, + com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder, + com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder> getVirtualClusterConfigFieldBuilder() { if (virtualClusterConfigBuilder_ == null) { - virtualClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.VirtualClusterConfig, com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder, com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder>( - getVirtualClusterConfig(), - getParentForChildren(), - isClean()); + virtualClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.VirtualClusterConfig, + com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder, + com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder>( + getVirtualClusterConfig(), getParentForChildren(), isClean()); virtualClusterConfig_ = null; } return virtualClusterConfigBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1852,6 +2076,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels to associate with this cluster.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1864,22 +2090,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-
     @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();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1893,11 +2119,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1911,16 +2138,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1934,12 +2162,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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();
       }
@@ -1947,11 +2174,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1964,23 +2192,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    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();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1993,19 +2219,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -2018,49 +2245,65 @@ public Builder putLabels(
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    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.dataproc.v1.ClusterStatus status_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.dataproc.v1.ClusterStatus, com.google.cloud.dataproc.v1.ClusterStatus.Builder, com.google.cloud.dataproc.v1.ClusterStatusOrBuilder> statusBuilder_;
+            com.google.cloud.dataproc.v1.ClusterStatus,
+            com.google.cloud.dataproc.v1.ClusterStatus.Builder,
+            com.google.cloud.dataproc.v1.ClusterStatusOrBuilder>
+        statusBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Cluster status.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** + * + * *
      * Output only. Cluster status.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ public com.google.cloud.dataproc.v1.ClusterStatus getStatus() { if (statusBuilder_ == null) { - return status_ == null ? com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance() + : status_; } else { return statusBuilder_.getMessage(); } } /** + * + * *
      * Output only. Cluster status.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStatus(com.google.cloud.dataproc.v1.ClusterStatus value) { if (statusBuilder_ == null) { @@ -2076,14 +2319,17 @@ public Builder setStatus(com.google.cloud.dataproc.v1.ClusterStatus value) { return this; } /** + * + * *
      * Output only. Cluster status.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStatus( - com.google.cloud.dataproc.v1.ClusterStatus.Builder builderForValue) { + public Builder setStatus(com.google.cloud.dataproc.v1.ClusterStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); @@ -2094,17 +2340,23 @@ public Builder setStatus( return this; } /** + * + * *
      * Output only. Cluster status.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStatus(com.google.cloud.dataproc.v1.ClusterStatus value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = - com.google.cloud.dataproc.v1.ClusterStatus.newBuilder(status_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.ClusterStatus.newBuilder(status_) + .mergeFrom(value) + .buildPartial(); } else { status_ = value; } @@ -2116,11 +2368,15 @@ public Builder mergeStatus(com.google.cloud.dataproc.v1.ClusterStatus value) { return this; } /** + * + * *
      * Output only. Cluster status.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStatus() { if (statusBuilder_ == null) { @@ -2134,71 +2390,96 @@ public Builder clearStatus() { return this; } /** + * + * *
      * Output only. Cluster status.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterStatus.Builder getStatusBuilder() { - + onChanged(); return getStatusFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Cluster status.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? - com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance() + : status_; } } /** + * + * *
      * Output only. Cluster status.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterStatus, com.google.cloud.dataproc.v1.ClusterStatus.Builder, com.google.cloud.dataproc.v1.ClusterStatusOrBuilder> + com.google.cloud.dataproc.v1.ClusterStatus, + com.google.cloud.dataproc.v1.ClusterStatus.Builder, + com.google.cloud.dataproc.v1.ClusterStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterStatus, com.google.cloud.dataproc.v1.ClusterStatus.Builder, com.google.cloud.dataproc.v1.ClusterStatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterStatus, + com.google.cloud.dataproc.v1.ClusterStatus.Builder, + com.google.cloud.dataproc.v1.ClusterStatusOrBuilder>( + getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private java.util.List statusHistory_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStatusHistoryIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - statusHistory_ = new java.util.ArrayList(statusHistory_); + statusHistory_ = + new java.util.ArrayList(statusHistory_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterStatus, com.google.cloud.dataproc.v1.ClusterStatus.Builder, com.google.cloud.dataproc.v1.ClusterStatusOrBuilder> statusHistoryBuilder_; + com.google.cloud.dataproc.v1.ClusterStatus, + com.google.cloud.dataproc.v1.ClusterStatus.Builder, + com.google.cloud.dataproc.v1.ClusterStatusOrBuilder> + statusHistoryBuilder_; /** + * + * *
      * Output only. The previous cluster status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getStatusHistoryList() { if (statusHistoryBuilder_ == null) { @@ -2208,11 +2489,15 @@ public java.util.List getStatusHisto } } /** + * + * *
      * Output only. The previous cluster status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getStatusHistoryCount() { if (statusHistoryBuilder_ == null) { @@ -2222,11 +2507,15 @@ public int getStatusHistoryCount() { } } /** + * + * *
      * Output only. The previous cluster status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterStatus getStatusHistory(int index) { if (statusHistoryBuilder_ == null) { @@ -2236,14 +2525,17 @@ public com.google.cloud.dataproc.v1.ClusterStatus getStatusHistory(int index) { } } /** + * + * *
      * Output only. The previous cluster status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStatusHistory( - int index, com.google.cloud.dataproc.v1.ClusterStatus value) { + public Builder setStatusHistory(int index, com.google.cloud.dataproc.v1.ClusterStatus value) { if (statusHistoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2257,11 +2549,15 @@ public Builder setStatusHistory( return this; } /** + * + * *
      * Output only. The previous cluster status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStatusHistory( int index, com.google.cloud.dataproc.v1.ClusterStatus.Builder builderForValue) { @@ -2275,11 +2571,15 @@ public Builder setStatusHistory( return this; } /** + * + * *
      * Output only. The previous cluster status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStatusHistory(com.google.cloud.dataproc.v1.ClusterStatus value) { if (statusHistoryBuilder_ == null) { @@ -2295,14 +2595,17 @@ public Builder addStatusHistory(com.google.cloud.dataproc.v1.ClusterStatus value return this; } /** + * + * *
      * Output only. The previous cluster status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addStatusHistory( - int index, com.google.cloud.dataproc.v1.ClusterStatus value) { + public Builder addStatusHistory(int index, com.google.cloud.dataproc.v1.ClusterStatus value) { if (statusHistoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2316,11 +2619,15 @@ public Builder addStatusHistory( return this; } /** + * + * *
      * Output only. The previous cluster status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStatusHistory( com.google.cloud.dataproc.v1.ClusterStatus.Builder builderForValue) { @@ -2334,11 +2641,15 @@ public Builder addStatusHistory( return this; } /** + * + * *
      * Output only. The previous cluster status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStatusHistory( int index, com.google.cloud.dataproc.v1.ClusterStatus.Builder builderForValue) { @@ -2352,18 +2663,21 @@ public Builder addStatusHistory( return this; } /** + * + * *
      * Output only. The previous cluster status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllStatusHistory( java.lang.Iterable values) { if (statusHistoryBuilder_ == null) { ensureStatusHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, statusHistory_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statusHistory_); onChanged(); } else { statusHistoryBuilder_.addAllMessages(values); @@ -2371,11 +2685,15 @@ public Builder addAllStatusHistory( return this; } /** + * + * *
      * Output only. The previous cluster status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStatusHistory() { if (statusHistoryBuilder_ == null) { @@ -2388,11 +2706,15 @@ public Builder clearStatusHistory() { return this; } /** + * + * *
      * Output only. The previous cluster status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeStatusHistory(int index) { if (statusHistoryBuilder_ == null) { @@ -2405,39 +2727,51 @@ public Builder removeStatusHistory(int index) { return this; } /** + * + * *
      * Output only. The previous cluster status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.ClusterStatus.Builder getStatusHistoryBuilder( - int index) { + public com.google.cloud.dataproc.v1.ClusterStatus.Builder getStatusHistoryBuilder(int index) { return getStatusHistoryFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The previous cluster status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusHistoryOrBuilder( int index) { if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); } else { + return statusHistory_.get(index); + } else { return statusHistoryBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The previous cluster status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStatusHistoryOrBuilderList() { + public java.util.List + getStatusHistoryOrBuilderList() { if (statusHistoryBuilder_ != null) { return statusHistoryBuilder_.getMessageOrBuilderList(); } else { @@ -2445,45 +2779,62 @@ public com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusHistoryOrBui } } /** + * + * *
      * Output only. The previous cluster status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterStatus.Builder addStatusHistoryBuilder() { - return getStatusHistoryFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance()); + return getStatusHistoryFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance()); } /** + * + * *
      * Output only. The previous cluster status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.ClusterStatus.Builder addStatusHistoryBuilder( - int index) { - return getStatusHistoryFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance()); + public com.google.cloud.dataproc.v1.ClusterStatus.Builder addStatusHistoryBuilder(int index) { + return getStatusHistoryFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance()); } /** + * + * *
      * Output only. The previous cluster status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStatusHistoryBuilderList() { + public java.util.List + getStatusHistoryBuilderList() { return getStatusHistoryFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterStatus, com.google.cloud.dataproc.v1.ClusterStatus.Builder, com.google.cloud.dataproc.v1.ClusterStatusOrBuilder> + com.google.cloud.dataproc.v1.ClusterStatus, + com.google.cloud.dataproc.v1.ClusterStatus.Builder, + com.google.cloud.dataproc.v1.ClusterStatusOrBuilder> getStatusHistoryFieldBuilder() { if (statusHistoryBuilder_ == null) { - statusHistoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterStatus, com.google.cloud.dataproc.v1.ClusterStatus.Builder, com.google.cloud.dataproc.v1.ClusterStatusOrBuilder>( + statusHistoryBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterStatus, + com.google.cloud.dataproc.v1.ClusterStatus.Builder, + com.google.cloud.dataproc.v1.ClusterStatusOrBuilder>( statusHistory_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2495,19 +2846,21 @@ public com.google.cloud.dataproc.v1.ClusterStatus.Builder addStatusHistoryBuilde private java.lang.Object clusterUuid_ = ""; /** + * + * *
      * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
      * generates this value when it creates the cluster.
      * 
* * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterUuid. */ public java.lang.String getClusterUuid() { java.lang.Object ref = clusterUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; @@ -2516,21 +2869,22 @@ public java.lang.String getClusterUuid() { } } /** + * + * *
      * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
      * generates this value when it creates the cluster.
      * 
* * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterUuid. */ - public com.google.protobuf.ByteString - getClusterUuidBytes() { + public com.google.protobuf.ByteString getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -2538,57 +2892,64 @@ public java.lang.String getClusterUuid() { } } /** + * + * *
      * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
      * generates this value when it creates the cluster.
      * 
* * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuid( - java.lang.String value) { + public Builder setClusterUuid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterUuid_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
      * generates this value when it creates the cluster.
      * 
* * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClusterUuid() { - + clusterUuid_ = getDefaultInstance().getClusterUuid(); onChanged(); return this; } /** + * + * *
      * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
      * generates this value when it creates the cluster.
      * 
* * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuidBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUuid_ = value; onChanged(); return this; @@ -2596,45 +2957,64 @@ public Builder setClusterUuidBytes( private com.google.cloud.dataproc.v1.ClusterMetrics metrics_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterMetrics, com.google.cloud.dataproc.v1.ClusterMetrics.Builder, com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder> metricsBuilder_; + com.google.cloud.dataproc.v1.ClusterMetrics, + com.google.cloud.dataproc.v1.ClusterMetrics.Builder, + com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder> + metricsBuilder_; /** + * + * *
      * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
      * **Beta Feature**: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the metrics field is set. */ public boolean hasMetrics() { return metricsBuilder_ != null || metrics_ != null; } /** + * + * *
      * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
      * **Beta Feature**: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The metrics. */ public com.google.cloud.dataproc.v1.ClusterMetrics getMetrics() { if (metricsBuilder_ == null) { - return metrics_ == null ? com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance() : metrics_; + return metrics_ == null + ? com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance() + : metrics_; } else { return metricsBuilder_.getMessage(); } } /** + * + * *
      * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
      * **Beta Feature**: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setMetrics(com.google.cloud.dataproc.v1.ClusterMetrics value) { if (metricsBuilder_ == null) { @@ -2650,16 +3030,19 @@ public Builder setMetrics(com.google.cloud.dataproc.v1.ClusterMetrics value) { return this; } /** + * + * *
      * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
      * **Beta Feature**: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setMetrics( - com.google.cloud.dataproc.v1.ClusterMetrics.Builder builderForValue) { + public Builder setMetrics(com.google.cloud.dataproc.v1.ClusterMetrics.Builder builderForValue) { if (metricsBuilder_ == null) { metrics_ = builderForValue.build(); onChanged(); @@ -2670,19 +3053,25 @@ public Builder setMetrics( return this; } /** + * + * *
      * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
      * **Beta Feature**: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeMetrics(com.google.cloud.dataproc.v1.ClusterMetrics value) { if (metricsBuilder_ == null) { if (metrics_ != null) { metrics_ = - com.google.cloud.dataproc.v1.ClusterMetrics.newBuilder(metrics_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.ClusterMetrics.newBuilder(metrics_) + .mergeFrom(value) + .buildPartial(); } else { metrics_ = value; } @@ -2694,13 +3083,17 @@ public Builder mergeMetrics(com.google.cloud.dataproc.v1.ClusterMetrics value) { return this; } /** + * + * *
      * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
      * **Beta Feature**: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearMetrics() { if (metricsBuilder_ == null) { @@ -2714,61 +3107,77 @@ public Builder clearMetrics() { return this; } /** + * + * *
      * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
      * **Beta Feature**: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterMetrics.Builder getMetricsBuilder() { - + onChanged(); return getMetricsFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
      * **Beta Feature**: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder getMetricsOrBuilder() { if (metricsBuilder_ != null) { return metricsBuilder_.getMessageOrBuilder(); } else { - return metrics_ == null ? - com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance() : metrics_; + return metrics_ == null + ? com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance() + : metrics_; } } /** + * + * *
      * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
      * **Beta Feature**: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterMetrics, com.google.cloud.dataproc.v1.ClusterMetrics.Builder, com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder> + com.google.cloud.dataproc.v1.ClusterMetrics, + com.google.cloud.dataproc.v1.ClusterMetrics.Builder, + com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder> getMetricsFieldBuilder() { if (metricsBuilder_ == null) { - metricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterMetrics, com.google.cloud.dataproc.v1.ClusterMetrics.Builder, com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder>( - getMetrics(), - getParentForChildren(), - isClean()); + metricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterMetrics, + com.google.cloud.dataproc.v1.ClusterMetrics.Builder, + com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder>( + getMetrics(), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2778,12 +3187,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.Cluster) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Cluster) private static final com.google.cloud.dataproc.v1.Cluster DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.Cluster(); } @@ -2792,27 +3201,27 @@ public static com.google.cloud.dataproc.v1.Cluster getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Cluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Cluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2827,6 +3236,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.Cluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java index 010cd61d1fc1..aded899163ce 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * The cluster config.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterConfig} */ -public final class ClusterConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ClusterConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterConfig) ClusterConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClusterConfig.newBuilder() to construct. private ClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ClusterConfig() { configBucket_ = ""; tempBucket_ = ""; @@ -28,32 +46,35 @@ private ClusterConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ClusterConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterConfig.class, com.google.cloud.dataproc.v1.ClusterConfig.Builder.class); + com.google.cloud.dataproc.v1.ClusterConfig.class, + com.google.cloud.dataproc.v1.ClusterConfig.Builder.class); } public static final int CONFIG_BUCKET_FIELD_NUMBER = 1; private volatile java.lang.Object configBucket_; /** + * + * *
    * Optional. A Cloud Storage bucket used to stage job
    * dependencies, config files, and job driver console output.
@@ -69,6 +90,7 @@ protected java.lang.Object newInstance(
    * 
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The configBucket. */ @java.lang.Override @@ -77,14 +99,15 @@ public java.lang.String getConfigBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configBucket_ = s; return s; } } /** + * + * *
    * Optional. A Cloud Storage bucket used to stage job
    * dependencies, config files, and job driver console output.
@@ -100,16 +123,15 @@ public java.lang.String getConfigBucket() {
    * 
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for configBucket. */ @java.lang.Override - public com.google.protobuf.ByteString - getConfigBucketBytes() { + public com.google.protobuf.ByteString getConfigBucketBytes() { java.lang.Object ref = configBucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); configBucket_ = b; return b; } else { @@ -120,6 +142,8 @@ public java.lang.String getConfigBucket() { public static final int TEMP_BUCKET_FIELD_NUMBER = 2; private volatile java.lang.Object tempBucket_; /** + * + * *
    * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
    * data, such as Spark and MapReduce history files. If you do not specify a
@@ -135,6 +159,7 @@ public java.lang.String getConfigBucket() {
    * 
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The tempBucket. */ @java.lang.Override @@ -143,14 +168,15 @@ public java.lang.String getTempBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tempBucket_ = s; return s; } } /** + * + * *
    * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
    * data, such as Spark and MapReduce history files. If you do not specify a
@@ -166,16 +192,15 @@ public java.lang.String getTempBucket() {
    * 
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for tempBucket. */ @java.lang.Override - public com.google.protobuf.ByteString - getTempBucketBytes() { + public com.google.protobuf.ByteString getTempBucketBytes() { java.lang.Object ref = tempBucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tempBucket_ = b; return b; } else { @@ -186,12 +211,17 @@ public java.lang.String getTempBucket() { public static final int GCE_CLUSTER_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.dataproc.v1.GceClusterConfig gceClusterConfig_; /** + * + * *
    * Optional. The shared Compute Engine config settings for
    * all instances in a cluster.
    * 
* - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gceClusterConfig field is set. */ @java.lang.Override @@ -199,25 +229,36 @@ public boolean hasGceClusterConfig() { return gceClusterConfig_ != null; } /** + * + * *
    * Optional. The shared Compute Engine config settings for
    * all instances in a cluster.
    * 
* - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gceClusterConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.GceClusterConfig getGceClusterConfig() { - return gceClusterConfig_ == null ? com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance() : gceClusterConfig_; + return gceClusterConfig_ == null + ? com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance() + : gceClusterConfig_; } /** + * + * *
    * Optional. The shared Compute Engine config settings for
    * all instances in a cluster.
    * 
* - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfigOrBuilder() { @@ -227,12 +268,17 @@ public com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfi public static final int MASTER_CONFIG_FIELD_NUMBER = 9; private com.google.cloud.dataproc.v1.InstanceGroupConfig masterConfig_; /** + * + * *
    * Optional. The Compute Engine config settings for
    * the cluster's master instance.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the masterConfig field is set. */ @java.lang.Override @@ -240,25 +286,36 @@ public boolean hasMasterConfig() { return masterConfig_ != null; } /** + * + * *
    * Optional. The Compute Engine config settings for
    * the cluster's master instance.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The masterConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.InstanceGroupConfig getMasterConfig() { - return masterConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : masterConfig_; + return masterConfig_ == null + ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() + : masterConfig_; } /** + * + * *
    * Optional. The Compute Engine config settings for
    * the cluster's master instance.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfigOrBuilder() { @@ -268,12 +325,17 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfig public static final int WORKER_CONFIG_FIELD_NUMBER = 10; private com.google.cloud.dataproc.v1.InstanceGroupConfig workerConfig_; /** + * + * *
    * Optional. The Compute Engine config settings for
    * the cluster's worker instances.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the workerConfig field is set. */ @java.lang.Override @@ -281,25 +343,36 @@ public boolean hasWorkerConfig() { return workerConfig_ != null; } /** + * + * *
    * Optional. The Compute Engine config settings for
    * the cluster's worker instances.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The workerConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.InstanceGroupConfig getWorkerConfig() { - return workerConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : workerConfig_; + return workerConfig_ == null + ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() + : workerConfig_; } /** + * + * *
    * Optional. The Compute Engine config settings for
    * the cluster's worker instances.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfigOrBuilder() { @@ -309,12 +382,17 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfig public static final int SECONDARY_WORKER_CONFIG_FIELD_NUMBER = 12; private com.google.cloud.dataproc.v1.InstanceGroupConfig secondaryWorkerConfig_; /** + * + * *
    * Optional. The Compute Engine config settings for
    * a cluster's secondary worker instances
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the secondaryWorkerConfig field is set. */ @java.lang.Override @@ -322,39 +400,56 @@ public boolean hasSecondaryWorkerConfig() { return secondaryWorkerConfig_ != null; } /** + * + * *
    * Optional. The Compute Engine config settings for
    * a cluster's secondary worker instances
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The secondaryWorkerConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.InstanceGroupConfig getSecondaryWorkerConfig() { - return secondaryWorkerConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : secondaryWorkerConfig_; + return secondaryWorkerConfig_ == null + ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() + : secondaryWorkerConfig_; } /** + * + * *
    * Optional. The Compute Engine config settings for
    * a cluster's secondary worker instances
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getSecondaryWorkerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder + getSecondaryWorkerConfigOrBuilder() { return getSecondaryWorkerConfig(); } public static final int SOFTWARE_CONFIG_FIELD_NUMBER = 13; private com.google.cloud.dataproc.v1.SoftwareConfig softwareConfig_; /** + * + * *
    * Optional. The config settings for cluster software.
    * 
* - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the softwareConfig field is set. */ @java.lang.Override @@ -362,23 +457,34 @@ public boolean hasSoftwareConfig() { return softwareConfig_ != null; } /** + * + * *
    * Optional. The config settings for cluster software.
    * 
* - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The softwareConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.SoftwareConfig getSoftwareConfig() { - return softwareConfig_ == null ? com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance() : softwareConfig_; + return softwareConfig_ == null + ? com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance() + : softwareConfig_; } /** + * + * *
    * Optional. The config settings for cluster software.
    * 
* - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrBuilder() { @@ -386,8 +492,11 @@ public com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrB } public static final int INITIALIZATION_ACTIONS_FIELD_NUMBER = 11; - private java.util.List initializationActions_; + private java.util.List + initializationActions_; /** + * + * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -403,13 +512,18 @@ public com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrB
    *     fi
    * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getInitializationActionsList() { + public java.util.List + getInitializationActionsList() { return initializationActions_; } /** + * + * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -425,14 +539,18 @@ public java.util.List get
    *     fi
    * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getInitializationActionsOrBuilderList() { return initializationActions_; } /** + * + * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -448,13 +566,17 @@ public java.util.List get
    *     fi
    * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getInitializationActionsCount() { return initializationActions_.size(); } /** + * + * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -470,13 +592,17 @@ public int getInitializationActionsCount() {
    *     fi
    * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationActions(int index) { return initializationActions_.get(index); } /** + * + * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -492,22 +618,29 @@ public com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationAc
    *     fi
    * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder getInitializationActionsOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder + getInitializationActionsOrBuilder(int index) { return initializationActions_.get(index); } public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 15; private com.google.cloud.dataproc.v1.EncryptionConfig encryptionConfig_; /** + * + * *
    * Optional. Encryption settings for the cluster.
    * 
* - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the encryptionConfig field is set. */ @java.lang.Override @@ -515,23 +648,34 @@ public boolean hasEncryptionConfig() { return encryptionConfig_ != null; } /** + * + * *
    * Optional. Encryption settings for the cluster.
    * 
* - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The encryptionConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.EncryptionConfig getEncryptionConfig() { - return encryptionConfig_ == null ? com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; + return encryptionConfig_ == null + ? com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance() + : encryptionConfig_; } /** + * + * *
    * Optional. Encryption settings for the cluster.
    * 
* - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { @@ -541,12 +685,17 @@ public com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder getEncryptionConfi public static final int AUTOSCALING_CONFIG_FIELD_NUMBER = 18; private com.google.cloud.dataproc.v1.AutoscalingConfig autoscalingConfig_; /** + * + * *
    * Optional. Autoscaling config for the policy associated with the cluster.
    * Cluster does not autoscale if this field is unset.
    * 
* - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the autoscalingConfig field is set. */ @java.lang.Override @@ -554,25 +703,36 @@ public boolean hasAutoscalingConfig() { return autoscalingConfig_ != null; } /** + * + * *
    * Optional. Autoscaling config for the policy associated with the cluster.
    * Cluster does not autoscale if this field is unset.
    * 
* - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The autoscalingConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.AutoscalingConfig getAutoscalingConfig() { - return autoscalingConfig_ == null ? com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_; + return autoscalingConfig_ == null + ? com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance() + : autoscalingConfig_; } /** + * + * *
    * Optional. Autoscaling config for the policy associated with the cluster.
    * Cluster does not autoscale if this field is unset.
    * 
* - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder() { @@ -582,11 +742,16 @@ public com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder getAutoscalingCon public static final int SECURITY_CONFIG_FIELD_NUMBER = 16; private com.google.cloud.dataproc.v1.SecurityConfig securityConfig_; /** + * + * *
    * Optional. Security settings for the cluster.
    * 
* - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the securityConfig field is set. */ @java.lang.Override @@ -594,23 +759,34 @@ public boolean hasSecurityConfig() { return securityConfig_ != null; } /** + * + * *
    * Optional. Security settings for the cluster.
    * 
* - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The securityConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.SecurityConfig getSecurityConfig() { - return securityConfig_ == null ? com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance() : securityConfig_; + return securityConfig_ == null + ? com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance() + : securityConfig_; } /** + * + * *
    * Optional. Security settings for the cluster.
    * 
* - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SecurityConfigOrBuilder getSecurityConfigOrBuilder() { @@ -620,11 +796,16 @@ public com.google.cloud.dataproc.v1.SecurityConfigOrBuilder getSecurityConfigOrB public static final int LIFECYCLE_CONFIG_FIELD_NUMBER = 17; private com.google.cloud.dataproc.v1.LifecycleConfig lifecycleConfig_; /** + * + * *
    * Optional. Lifecycle setting for the cluster.
    * 
* - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the lifecycleConfig field is set. */ @java.lang.Override @@ -632,23 +813,34 @@ public boolean hasLifecycleConfig() { return lifecycleConfig_ != null; } /** + * + * *
    * Optional. Lifecycle setting for the cluster.
    * 
* - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The lifecycleConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.LifecycleConfig getLifecycleConfig() { - return lifecycleConfig_ == null ? com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance() : lifecycleConfig_; + return lifecycleConfig_ == null + ? com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance() + : lifecycleConfig_; } /** + * + * *
    * Optional. Lifecycle setting for the cluster.
    * 
* - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder getLifecycleConfigOrBuilder() { @@ -658,11 +850,16 @@ public com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder getLifecycleConfigO public static final int ENDPOINT_CONFIG_FIELD_NUMBER = 19; private com.google.cloud.dataproc.v1.EndpointConfig endpointConfig_; /** + * + * *
    * Optional. Port/endpoint configuration for this cluster
    * 
* - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the endpointConfig field is set. */ @java.lang.Override @@ -670,23 +867,34 @@ public boolean hasEndpointConfig() { return endpointConfig_ != null; } /** + * + * *
    * Optional. Port/endpoint configuration for this cluster
    * 
* - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The endpointConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.EndpointConfig getEndpointConfig() { - return endpointConfig_ == null ? com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance() : endpointConfig_; + return endpointConfig_ == null + ? com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance() + : endpointConfig_; } /** + * + * *
    * Optional. Port/endpoint configuration for this cluster
    * 
* - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrBuilder() { @@ -696,11 +904,16 @@ public com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrB public static final int METASTORE_CONFIG_FIELD_NUMBER = 20; private com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfig_; /** + * + * *
    * Optional. Metastore configuration.
    * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the metastoreConfig field is set. */ @java.lang.Override @@ -708,23 +921,34 @@ public boolean hasMetastoreConfig() { return metastoreConfig_ != null; } /** + * + * *
    * Optional. Metastore configuration.
    * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The metastoreConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig() { - return metastoreConfig_ == null ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() : metastoreConfig_; + return metastoreConfig_ == null + ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() + : metastoreConfig_; } /** + * + * *
    * Optional. Metastore configuration.
    * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder() { @@ -734,11 +958,16 @@ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigO public static final int DATAPROC_METRIC_CONFIG_FIELD_NUMBER = 23; private com.google.cloud.dataproc.v1.DataprocMetricConfig dataprocMetricConfig_; /** + * + * *
    * Optional. The config for Dataproc metrics.
    * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the dataprocMetricConfig field is set. */ @java.lang.Override @@ -746,82 +975,115 @@ public boolean hasDataprocMetricConfig() { return dataprocMetricConfig_ != null; } /** + * + * *
    * Optional. The config for Dataproc metrics.
    * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The dataprocMetricConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.DataprocMetricConfig getDataprocMetricConfig() { - return dataprocMetricConfig_ == null ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance() : dataprocMetricConfig_; + return dataprocMetricConfig_ == null + ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance() + : dataprocMetricConfig_; } /** + * + * *
    * Optional. The config for Dataproc metrics.
    * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder getDataprocMetricConfigOrBuilder() { + public com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder + getDataprocMetricConfigOrBuilder() { return getDataprocMetricConfig(); } public static final int AUXILIARY_NODE_GROUPS_FIELD_NUMBER = 25; private java.util.List auxiliaryNodeGroups_; /** + * + * *
    * Optional. The node group settings.
    * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getAuxiliaryNodeGroupsList() { + public java.util.List + getAuxiliaryNodeGroupsList() { return auxiliaryNodeGroups_; } /** + * + * *
    * Optional. The node group settings.
    * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getAuxiliaryNodeGroupsOrBuilderList() { return auxiliaryNodeGroups_; } /** + * + * *
    * Optional. The node group settings.
    * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getAuxiliaryNodeGroupsCount() { return auxiliaryNodeGroups_.size(); } /** + * + * *
    * Optional. The node group settings.
    * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup getAuxiliaryNodeGroups(int index) { return auxiliaryNodeGroups_.get(index); } /** + * + * *
    * Optional. The node group settings.
    * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder getAuxiliaryNodeGroupsOrBuilder( @@ -830,6 +1092,7 @@ public com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder getAuxiliaryNode } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -841,8 +1104,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configBucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, configBucket_); } @@ -907,60 +1169,51 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tempBucket_); } if (gceClusterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getGceClusterConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getGceClusterConfig()); } if (masterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getMasterConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMasterConfig()); } if (workerConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getWorkerConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getWorkerConfig()); } for (int i = 0; i < initializationActions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, initializationActions_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, initializationActions_.get(i)); } if (secondaryWorkerConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getSecondaryWorkerConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSecondaryWorkerConfig()); } if (softwareConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getSoftwareConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getSoftwareConfig()); } if (encryptionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getEncryptionConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getEncryptionConfig()); } if (securityConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getSecurityConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getSecurityConfig()); } if (lifecycleConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getLifecycleConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getLifecycleConfig()); } if (autoscalingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getAutoscalingConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getAutoscalingConfig()); } if (endpointConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getEndpointConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getEndpointConfig()); } if (metastoreConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getMetastoreConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getMetastoreConfig()); } if (dataprocMetricConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getDataprocMetricConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(23, getDataprocMetricConfig()); } for (int i = 0; i < auxiliaryNodeGroups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, auxiliaryNodeGroups_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(25, auxiliaryNodeGroups_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -970,81 +1223,66 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ClusterConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ClusterConfig other = (com.google.cloud.dataproc.v1.ClusterConfig) obj; + com.google.cloud.dataproc.v1.ClusterConfig other = + (com.google.cloud.dataproc.v1.ClusterConfig) obj; - if (!getConfigBucket() - .equals(other.getConfigBucket())) return false; - if (!getTempBucket() - .equals(other.getTempBucket())) return false; + if (!getConfigBucket().equals(other.getConfigBucket())) return false; + if (!getTempBucket().equals(other.getTempBucket())) return false; if (hasGceClusterConfig() != other.hasGceClusterConfig()) return false; if (hasGceClusterConfig()) { - if (!getGceClusterConfig() - .equals(other.getGceClusterConfig())) return false; + if (!getGceClusterConfig().equals(other.getGceClusterConfig())) return false; } if (hasMasterConfig() != other.hasMasterConfig()) return false; if (hasMasterConfig()) { - if (!getMasterConfig() - .equals(other.getMasterConfig())) return false; + if (!getMasterConfig().equals(other.getMasterConfig())) return false; } if (hasWorkerConfig() != other.hasWorkerConfig()) return false; if (hasWorkerConfig()) { - if (!getWorkerConfig() - .equals(other.getWorkerConfig())) return false; + if (!getWorkerConfig().equals(other.getWorkerConfig())) return false; } if (hasSecondaryWorkerConfig() != other.hasSecondaryWorkerConfig()) return false; if (hasSecondaryWorkerConfig()) { - if (!getSecondaryWorkerConfig() - .equals(other.getSecondaryWorkerConfig())) return false; + if (!getSecondaryWorkerConfig().equals(other.getSecondaryWorkerConfig())) return false; } if (hasSoftwareConfig() != other.hasSoftwareConfig()) return false; if (hasSoftwareConfig()) { - if (!getSoftwareConfig() - .equals(other.getSoftwareConfig())) return false; + if (!getSoftwareConfig().equals(other.getSoftwareConfig())) return false; } - if (!getInitializationActionsList() - .equals(other.getInitializationActionsList())) return false; + if (!getInitializationActionsList().equals(other.getInitializationActionsList())) return false; if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false; if (hasEncryptionConfig()) { - if (!getEncryptionConfig() - .equals(other.getEncryptionConfig())) return false; + if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false; } if (hasAutoscalingConfig() != other.hasAutoscalingConfig()) return false; if (hasAutoscalingConfig()) { - if (!getAutoscalingConfig() - .equals(other.getAutoscalingConfig())) return false; + if (!getAutoscalingConfig().equals(other.getAutoscalingConfig())) return false; } if (hasSecurityConfig() != other.hasSecurityConfig()) return false; if (hasSecurityConfig()) { - if (!getSecurityConfig() - .equals(other.getSecurityConfig())) return false; + if (!getSecurityConfig().equals(other.getSecurityConfig())) return false; } if (hasLifecycleConfig() != other.hasLifecycleConfig()) return false; if (hasLifecycleConfig()) { - if (!getLifecycleConfig() - .equals(other.getLifecycleConfig())) return false; + if (!getLifecycleConfig().equals(other.getLifecycleConfig())) return false; } if (hasEndpointConfig() != other.hasEndpointConfig()) return false; if (hasEndpointConfig()) { - if (!getEndpointConfig() - .equals(other.getEndpointConfig())) return false; + if (!getEndpointConfig().equals(other.getEndpointConfig())) return false; } if (hasMetastoreConfig() != other.hasMetastoreConfig()) return false; if (hasMetastoreConfig()) { - if (!getMetastoreConfig() - .equals(other.getMetastoreConfig())) return false; + if (!getMetastoreConfig().equals(other.getMetastoreConfig())) return false; } if (hasDataprocMetricConfig() != other.hasDataprocMetricConfig()) return false; if (hasDataprocMetricConfig()) { - if (!getDataprocMetricConfig() - .equals(other.getDataprocMetricConfig())) return false; + if (!getDataprocMetricConfig().equals(other.getDataprocMetricConfig())) return false; } - if (!getAuxiliaryNodeGroupsList() - .equals(other.getAuxiliaryNodeGroupsList())) return false; + if (!getAuxiliaryNodeGroupsList().equals(other.getAuxiliaryNodeGroupsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1121,130 +1359,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ClusterConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.ClusterConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 cluster config.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterConfig) com.google.cloud.dataproc.v1.ClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterConfig.class, com.google.cloud.dataproc.v1.ClusterConfig.Builder.class); + com.google.cloud.dataproc.v1.ClusterConfig.class, + com.google.cloud.dataproc.v1.ClusterConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ClusterConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1342,9 +1586,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; } @java.lang.Override @@ -1363,7 +1607,8 @@ public com.google.cloud.dataproc.v1.ClusterConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.ClusterConfig buildPartial() { - com.google.cloud.dataproc.v1.ClusterConfig result = new com.google.cloud.dataproc.v1.ClusterConfig(this); + com.google.cloud.dataproc.v1.ClusterConfig result = + new com.google.cloud.dataproc.v1.ClusterConfig(this); int from_bitField0_ = bitField0_; result.configBucket_ = configBucket_; result.tempBucket_ = tempBucket_; @@ -1453,38 +1698,39 @@ public com.google.cloud.dataproc.v1.ClusterConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ClusterConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.ClusterConfig) other); } else { super.mergeFrom(other); return this; @@ -1534,9 +1780,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { initializationActionsBuilder_ = null; initializationActions_ = other.initializationActions_; bitField0_ = (bitField0_ & ~0x00000001); - initializationActionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInitializationActionsFieldBuilder() : null; + initializationActionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInitializationActionsFieldBuilder() + : null; } else { initializationActionsBuilder_.addAllMessages(other.initializationActions_); } @@ -1581,9 +1828,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { auxiliaryNodeGroupsBuilder_ = null; auxiliaryNodeGroups_ = other.auxiliaryNodeGroups_; bitField0_ = (bitField0_ & ~0x00000002); - auxiliaryNodeGroupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAuxiliaryNodeGroupsFieldBuilder() : null; + auxiliaryNodeGroupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAuxiliaryNodeGroupsFieldBuilder() + : null; } else { auxiliaryNodeGroupsBuilder_.addAllMessages(other.auxiliaryNodeGroups_); } @@ -1615,132 +1863,130 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - configBucket_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - tempBucket_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 66: { - input.readMessage( - getGceClusterConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 66 - case 74: { - input.readMessage( - getMasterConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 74 - case 82: { - input.readMessage( - getWorkerConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 82 - case 90: { - com.google.cloud.dataproc.v1.NodeInitializationAction m = - input.readMessage( - com.google.cloud.dataproc.v1.NodeInitializationAction.parser(), - extensionRegistry); - if (initializationActionsBuilder_ == null) { - ensureInitializationActionsIsMutable(); - initializationActions_.add(m); - } else { - initializationActionsBuilder_.addMessage(m); - } - break; - } // case 90 - case 98: { - input.readMessage( - getSecondaryWorkerConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 98 - case 106: { - input.readMessage( - getSoftwareConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 106 - case 122: { - input.readMessage( - getEncryptionConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 122 - case 130: { - input.readMessage( - getSecurityConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 130 - case 138: { - input.readMessage( - getLifecycleConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 138 - case 146: { - input.readMessage( - getAutoscalingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 146 - case 154: { - input.readMessage( - getEndpointConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 154 - case 162: { - input.readMessage( - getMetastoreConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 162 - case 186: { - input.readMessage( - getDataprocMetricConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 186 - case 202: { - com.google.cloud.dataproc.v1.AuxiliaryNodeGroup m = - input.readMessage( - com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.parser(), - extensionRegistry); - if (auxiliaryNodeGroupsBuilder_ == null) { - ensureAuxiliaryNodeGroupsIsMutable(); - auxiliaryNodeGroups_.add(m); - } else { - auxiliaryNodeGroupsBuilder_.addMessage(m); - } - break; - } // case 202 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + configBucket_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + tempBucket_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 66: + { + input.readMessage( + getGceClusterConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 74: + { + input.readMessage(getMasterConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + input.readMessage(getWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 90: + { + com.google.cloud.dataproc.v1.NodeInitializationAction m = + input.readMessage( + com.google.cloud.dataproc.v1.NodeInitializationAction.parser(), + extensionRegistry); + if (initializationActionsBuilder_ == null) { + ensureInitializationActionsIsMutable(); + initializationActions_.add(m); + } else { + initializationActionsBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: + { + input.readMessage( + getSecondaryWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 98 + case 106: + { + input.readMessage(getSoftwareConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 106 + case 122: + { + input.readMessage( + getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 122 + case 130: + { + input.readMessage(getSecurityConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 130 + case 138: + { + input.readMessage(getLifecycleConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 138 + case 146: + { + input.readMessage( + getAutoscalingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 146 + case 154: + { + input.readMessage(getEndpointConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 154 + case 162: + { + input.readMessage(getMetastoreConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 162 + case 186: + { + input.readMessage( + getDataprocMetricConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 186 + case 202: + { + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup m = + input.readMessage( + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.parser(), + extensionRegistry); + if (auxiliaryNodeGroupsBuilder_ == null) { + ensureAuxiliaryNodeGroupsIsMutable(); + auxiliaryNodeGroups_.add(m); + } else { + auxiliaryNodeGroupsBuilder_.addMessage(m); + } + break; + } // case 202 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1750,10 +1996,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object configBucket_ = ""; /** + * + * *
      * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
@@ -1769,13 +2018,13 @@ public Builder mergeFrom(
      * 
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The configBucket. */ public java.lang.String getConfigBucket() { java.lang.Object ref = configBucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configBucket_ = s; return s; @@ -1784,6 +2033,8 @@ public java.lang.String getConfigBucket() { } } /** + * + * *
      * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
@@ -1799,15 +2050,14 @@ public java.lang.String getConfigBucket() {
      * 
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for configBucket. */ - public com.google.protobuf.ByteString - getConfigBucketBytes() { + public com.google.protobuf.ByteString getConfigBucketBytes() { java.lang.Object ref = configBucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); configBucket_ = b; return b; } else { @@ -1815,6 +2065,8 @@ public java.lang.String getConfigBucket() { } } /** + * + * *
      * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
@@ -1830,20 +2082,22 @@ public java.lang.String getConfigBucket() {
      * 
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The configBucket to set. * @return This builder for chaining. */ - public Builder setConfigBucket( - java.lang.String value) { + public Builder setConfigBucket(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + configBucket_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
@@ -1859,15 +2113,18 @@ public Builder setConfigBucket(
      * 
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearConfigBucket() { - + configBucket_ = getDefaultInstance().getConfigBucket(); onChanged(); return this; } /** + * + * *
      * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
@@ -1883,16 +2140,16 @@ public Builder clearConfigBucket() {
      * 
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for configBucket to set. * @return This builder for chaining. */ - public Builder setConfigBucketBytes( - com.google.protobuf.ByteString value) { + public Builder setConfigBucketBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + configBucket_ = value; onChanged(); return this; @@ -1900,6 +2157,8 @@ public Builder setConfigBucketBytes( private java.lang.Object tempBucket_ = ""; /** + * + * *
      * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
      * data, such as Spark and MapReduce history files. If you do not specify a
@@ -1915,13 +2174,13 @@ public Builder setConfigBucketBytes(
      * 
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The tempBucket. */ public java.lang.String getTempBucket() { java.lang.Object ref = tempBucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tempBucket_ = s; return s; @@ -1930,6 +2189,8 @@ public java.lang.String getTempBucket() { } } /** + * + * *
      * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
      * data, such as Spark and MapReduce history files. If you do not specify a
@@ -1945,15 +2206,14 @@ public java.lang.String getTempBucket() {
      * 
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for tempBucket. */ - public com.google.protobuf.ByteString - getTempBucketBytes() { + public com.google.protobuf.ByteString getTempBucketBytes() { java.lang.Object ref = tempBucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tempBucket_ = b; return b; } else { @@ -1961,6 +2221,8 @@ public java.lang.String getTempBucket() { } } /** + * + * *
      * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
      * data, such as Spark and MapReduce history files. If you do not specify a
@@ -1976,20 +2238,22 @@ public java.lang.String getTempBucket() {
      * 
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The tempBucket to set. * @return This builder for chaining. */ - public Builder setTempBucket( - java.lang.String value) { + public Builder setTempBucket(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + tempBucket_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
      * data, such as Spark and MapReduce history files. If you do not specify a
@@ -2005,15 +2269,18 @@ public Builder setTempBucket(
      * 
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTempBucket() { - + tempBucket_ = getDefaultInstance().getTempBucket(); onChanged(); return this; } /** + * + * *
      * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
      * data, such as Spark and MapReduce history files. If you do not specify a
@@ -2029,16 +2296,16 @@ public Builder clearTempBucket() {
      * 
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for tempBucket to set. * @return This builder for chaining. */ - public Builder setTempBucketBytes( - com.google.protobuf.ByteString value) { + public Builder setTempBucketBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tempBucket_ = value; onChanged(); return this; @@ -2046,42 +2313,61 @@ public Builder setTempBucketBytes( private com.google.cloud.dataproc.v1.GceClusterConfig gceClusterConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GceClusterConfig, com.google.cloud.dataproc.v1.GceClusterConfig.Builder, com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder> gceClusterConfigBuilder_; + com.google.cloud.dataproc.v1.GceClusterConfig, + com.google.cloud.dataproc.v1.GceClusterConfig.Builder, + com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder> + gceClusterConfigBuilder_; /** + * + * *
      * Optional. The shared Compute Engine config settings for
      * all instances in a cluster.
      * 
* - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gceClusterConfig field is set. */ public boolean hasGceClusterConfig() { return gceClusterConfigBuilder_ != null || gceClusterConfig_ != null; } /** + * + * *
      * Optional. The shared Compute Engine config settings for
      * all instances in a cluster.
      * 
* - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gceClusterConfig. */ public com.google.cloud.dataproc.v1.GceClusterConfig getGceClusterConfig() { if (gceClusterConfigBuilder_ == null) { - return gceClusterConfig_ == null ? com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance() : gceClusterConfig_; + return gceClusterConfig_ == null + ? com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance() + : gceClusterConfig_; } else { return gceClusterConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The shared Compute Engine config settings for
      * all instances in a cluster.
      * 
* - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConfig value) { if (gceClusterConfigBuilder_ == null) { @@ -2097,12 +2383,16 @@ public Builder setGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConfig return this; } /** + * + * *
      * Optional. The shared Compute Engine config settings for
      * all instances in a cluster.
      * 
* - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGceClusterConfig( com.google.cloud.dataproc.v1.GceClusterConfig.Builder builderForValue) { @@ -2116,18 +2406,24 @@ public Builder setGceClusterConfig( return this; } /** + * + * *
      * Optional. The shared Compute Engine config settings for
      * all instances in a cluster.
      * 
* - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConfig value) { if (gceClusterConfigBuilder_ == null) { if (gceClusterConfig_ != null) { gceClusterConfig_ = - com.google.cloud.dataproc.v1.GceClusterConfig.newBuilder(gceClusterConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.GceClusterConfig.newBuilder(gceClusterConfig_) + .mergeFrom(value) + .buildPartial(); } else { gceClusterConfig_ = value; } @@ -2139,12 +2435,16 @@ public Builder mergeGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConf return this; } /** + * + * *
      * Optional. The shared Compute Engine config settings for
      * all instances in a cluster.
      * 
* - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGceClusterConfig() { if (gceClusterConfigBuilder_ == null) { @@ -2158,51 +2458,67 @@ public Builder clearGceClusterConfig() { return this; } /** + * + * *
      * Optional. The shared Compute Engine config settings for
      * all instances in a cluster.
      * 
* - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.GceClusterConfig.Builder getGceClusterConfigBuilder() { - + onChanged(); return getGceClusterConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The shared Compute Engine config settings for
      * all instances in a cluster.
      * 
* - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfigOrBuilder() { if (gceClusterConfigBuilder_ != null) { return gceClusterConfigBuilder_.getMessageOrBuilder(); } else { - return gceClusterConfig_ == null ? - com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance() : gceClusterConfig_; + return gceClusterConfig_ == null + ? com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance() + : gceClusterConfig_; } } /** + * + * *
      * Optional. The shared Compute Engine config settings for
      * all instances in a cluster.
      * 
* - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GceClusterConfig, com.google.cloud.dataproc.v1.GceClusterConfig.Builder, com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder> + com.google.cloud.dataproc.v1.GceClusterConfig, + com.google.cloud.dataproc.v1.GceClusterConfig.Builder, + com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder> getGceClusterConfigFieldBuilder() { if (gceClusterConfigBuilder_ == null) { - gceClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GceClusterConfig, com.google.cloud.dataproc.v1.GceClusterConfig.Builder, com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder>( - getGceClusterConfig(), - getParentForChildren(), - isClean()); + gceClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GceClusterConfig, + com.google.cloud.dataproc.v1.GceClusterConfig.Builder, + com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder>( + getGceClusterConfig(), getParentForChildren(), isClean()); gceClusterConfig_ = null; } return gceClusterConfigBuilder_; @@ -2210,42 +2526,61 @@ public com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfi private com.google.cloud.dataproc.v1.InstanceGroupConfig masterConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> masterConfigBuilder_; + com.google.cloud.dataproc.v1.InstanceGroupConfig, + com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> + masterConfigBuilder_; /** + * + * *
      * Optional. The Compute Engine config settings for
      * the cluster's master instance.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the masterConfig field is set. */ public boolean hasMasterConfig() { return masterConfigBuilder_ != null || masterConfig_ != null; } /** + * + * *
      * Optional. The Compute Engine config settings for
      * the cluster's master instance.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The masterConfig. */ public com.google.cloud.dataproc.v1.InstanceGroupConfig getMasterConfig() { if (masterConfigBuilder_ == null) { - return masterConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : masterConfig_; + return masterConfig_ == null + ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() + : masterConfig_; } else { return masterConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The Compute Engine config settings for
      * the cluster's master instance.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (masterConfigBuilder_ == null) { @@ -2261,12 +2596,16 @@ public Builder setMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig return this; } /** + * + * *
      * Optional. The Compute Engine config settings for
      * the cluster's master instance.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMasterConfig( com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder builderForValue) { @@ -2280,18 +2619,24 @@ public Builder setMasterConfig( return this; } /** + * + * *
      * Optional. The Compute Engine config settings for
      * the cluster's master instance.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (masterConfigBuilder_ == null) { if (masterConfig_ != null) { masterConfig_ = - com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder(masterConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder(masterConfig_) + .mergeFrom(value) + .buildPartial(); } else { masterConfig_ = value; } @@ -2303,12 +2648,16 @@ public Builder mergeMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfi return this; } /** + * + * *
      * Optional. The Compute Engine config settings for
      * the cluster's master instance.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMasterConfig() { if (masterConfigBuilder_ == null) { @@ -2322,51 +2671,67 @@ public Builder clearMasterConfig() { return this; } /** + * + * *
      * Optional. The Compute Engine config settings for
      * the cluster's master instance.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getMasterConfigBuilder() { - + onChanged(); return getMasterConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The Compute Engine config settings for
      * the cluster's master instance.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfigOrBuilder() { if (masterConfigBuilder_ != null) { return masterConfigBuilder_.getMessageOrBuilder(); } else { - return masterConfig_ == null ? - com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : masterConfig_; + return masterConfig_ == null + ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() + : masterConfig_; } } /** + * + * *
      * Optional. The Compute Engine config settings for
      * the cluster's master instance.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> + com.google.cloud.dataproc.v1.InstanceGroupConfig, + com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> getMasterConfigFieldBuilder() { if (masterConfigBuilder_ == null) { - masterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>( - getMasterConfig(), - getParentForChildren(), - isClean()); + masterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.InstanceGroupConfig, + com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>( + getMasterConfig(), getParentForChildren(), isClean()); masterConfig_ = null; } return masterConfigBuilder_; @@ -2374,42 +2739,61 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfig private com.google.cloud.dataproc.v1.InstanceGroupConfig workerConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> workerConfigBuilder_; + com.google.cloud.dataproc.v1.InstanceGroupConfig, + com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> + workerConfigBuilder_; /** + * + * *
      * Optional. The Compute Engine config settings for
      * the cluster's worker instances.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the workerConfig field is set. */ public boolean hasWorkerConfig() { return workerConfigBuilder_ != null || workerConfig_ != null; } /** + * + * *
      * Optional. The Compute Engine config settings for
      * the cluster's worker instances.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The workerConfig. */ public com.google.cloud.dataproc.v1.InstanceGroupConfig getWorkerConfig() { if (workerConfigBuilder_ == null) { - return workerConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : workerConfig_; + return workerConfig_ == null + ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() + : workerConfig_; } else { return workerConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The Compute Engine config settings for
      * the cluster's worker instances.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (workerConfigBuilder_ == null) { @@ -2425,12 +2809,16 @@ public Builder setWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig return this; } /** + * + * *
      * Optional. The Compute Engine config settings for
      * the cluster's worker instances.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setWorkerConfig( com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder builderForValue) { @@ -2444,18 +2832,24 @@ public Builder setWorkerConfig( return this; } /** + * + * *
      * Optional. The Compute Engine config settings for
      * the cluster's worker instances.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (workerConfigBuilder_ == null) { if (workerConfig_ != null) { workerConfig_ = - com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder(workerConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder(workerConfig_) + .mergeFrom(value) + .buildPartial(); } else { workerConfig_ = value; } @@ -2467,12 +2861,16 @@ public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfi return this; } /** + * + * *
      * Optional. The Compute Engine config settings for
      * the cluster's worker instances.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearWorkerConfig() { if (workerConfigBuilder_ == null) { @@ -2486,51 +2884,67 @@ public Builder clearWorkerConfig() { return this; } /** + * + * *
      * Optional. The Compute Engine config settings for
      * the cluster's worker instances.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getWorkerConfigBuilder() { - + onChanged(); return getWorkerConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The Compute Engine config settings for
      * the cluster's worker instances.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfigOrBuilder() { if (workerConfigBuilder_ != null) { return workerConfigBuilder_.getMessageOrBuilder(); } else { - return workerConfig_ == null ? - com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : workerConfig_; + return workerConfig_ == null + ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() + : workerConfig_; } } /** + * + * *
      * Optional. The Compute Engine config settings for
      * the cluster's worker instances.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> + com.google.cloud.dataproc.v1.InstanceGroupConfig, + com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> getWorkerConfigFieldBuilder() { if (workerConfigBuilder_ == null) { - workerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>( - getWorkerConfig(), - getParentForChildren(), - isClean()); + workerConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.InstanceGroupConfig, + com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>( + getWorkerConfig(), getParentForChildren(), isClean()); workerConfig_ = null; } return workerConfigBuilder_; @@ -2538,44 +2952,64 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfig private com.google.cloud.dataproc.v1.InstanceGroupConfig secondaryWorkerConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> secondaryWorkerConfigBuilder_; + com.google.cloud.dataproc.v1.InstanceGroupConfig, + com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> + secondaryWorkerConfigBuilder_; /** + * + * *
      * Optional. The Compute Engine config settings for
      * a cluster's secondary worker instances
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the secondaryWorkerConfig field is set. */ public boolean hasSecondaryWorkerConfig() { return secondaryWorkerConfigBuilder_ != null || secondaryWorkerConfig_ != null; } /** + * + * *
      * Optional. The Compute Engine config settings for
      * a cluster's secondary worker instances
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The secondaryWorkerConfig. */ public com.google.cloud.dataproc.v1.InstanceGroupConfig getSecondaryWorkerConfig() { if (secondaryWorkerConfigBuilder_ == null) { - return secondaryWorkerConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : secondaryWorkerConfig_; + return secondaryWorkerConfig_ == null + ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() + : secondaryWorkerConfig_; } else { return secondaryWorkerConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The Compute Engine config settings for
      * a cluster's secondary worker instances
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSecondaryWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { + public Builder setSecondaryWorkerConfig( + com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (secondaryWorkerConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2589,12 +3023,16 @@ public Builder setSecondaryWorkerConfig(com.google.cloud.dataproc.v1.InstanceGro return this; } /** + * + * *
      * Optional. The Compute Engine config settings for
      * a cluster's secondary worker instances
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSecondaryWorkerConfig( com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder builderForValue) { @@ -2608,18 +3046,25 @@ public Builder setSecondaryWorkerConfig( return this; } /** + * + * *
      * Optional. The Compute Engine config settings for
      * a cluster's secondary worker instances
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeSecondaryWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { + public Builder mergeSecondaryWorkerConfig( + com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (secondaryWorkerConfigBuilder_ == null) { if (secondaryWorkerConfig_ != null) { secondaryWorkerConfig_ = - com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder(secondaryWorkerConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder(secondaryWorkerConfig_) + .mergeFrom(value) + .buildPartial(); } else { secondaryWorkerConfig_ = value; } @@ -2631,12 +3076,16 @@ public Builder mergeSecondaryWorkerConfig(com.google.cloud.dataproc.v1.InstanceG return this; } /** + * + * *
      * Optional. The Compute Engine config settings for
      * a cluster's secondary worker instances
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSecondaryWorkerConfig() { if (secondaryWorkerConfigBuilder_ == null) { @@ -2650,51 +3099,69 @@ public Builder clearSecondaryWorkerConfig() { return this; } /** + * + * *
      * Optional. The Compute Engine config settings for
      * a cluster's secondary worker instances
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getSecondaryWorkerConfigBuilder() { - + public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder + getSecondaryWorkerConfigBuilder() { + onChanged(); return getSecondaryWorkerConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The Compute Engine config settings for
      * a cluster's secondary worker instances
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getSecondaryWorkerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder + getSecondaryWorkerConfigOrBuilder() { if (secondaryWorkerConfigBuilder_ != null) { return secondaryWorkerConfigBuilder_.getMessageOrBuilder(); } else { - return secondaryWorkerConfig_ == null ? - com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : secondaryWorkerConfig_; + return secondaryWorkerConfig_ == null + ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() + : secondaryWorkerConfig_; } } /** + * + * *
      * Optional. The Compute Engine config settings for
      * a cluster's secondary worker instances
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> + com.google.cloud.dataproc.v1.InstanceGroupConfig, + com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> getSecondaryWorkerConfigFieldBuilder() { if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>( - getSecondaryWorkerConfig(), - getParentForChildren(), - isClean()); + secondaryWorkerConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.InstanceGroupConfig, + com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>( + getSecondaryWorkerConfig(), getParentForChildren(), isClean()); secondaryWorkerConfig_ = null; } return secondaryWorkerConfigBuilder_; @@ -2702,39 +3169,58 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getSecondaryWor private com.google.cloud.dataproc.v1.SoftwareConfig softwareConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SoftwareConfig, com.google.cloud.dataproc.v1.SoftwareConfig.Builder, com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder> softwareConfigBuilder_; + com.google.cloud.dataproc.v1.SoftwareConfig, + com.google.cloud.dataproc.v1.SoftwareConfig.Builder, + com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder> + softwareConfigBuilder_; /** + * + * *
      * Optional. The config settings for cluster software.
      * 
* - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the softwareConfig field is set. */ public boolean hasSoftwareConfig() { return softwareConfigBuilder_ != null || softwareConfig_ != null; } /** + * + * *
      * Optional. The config settings for cluster software.
      * 
* - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The softwareConfig. */ public com.google.cloud.dataproc.v1.SoftwareConfig getSoftwareConfig() { if (softwareConfigBuilder_ == null) { - return softwareConfig_ == null ? com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance() : softwareConfig_; + return softwareConfig_ == null + ? com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance() + : softwareConfig_; } else { return softwareConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The config settings for cluster software.
      * 
* - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig value) { if (softwareConfigBuilder_ == null) { @@ -2750,11 +3236,15 @@ public Builder setSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig val return this; } /** + * + * *
      * Optional. The config settings for cluster software.
      * 
* - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSoftwareConfig( com.google.cloud.dataproc.v1.SoftwareConfig.Builder builderForValue) { @@ -2768,17 +3258,23 @@ public Builder setSoftwareConfig( return this; } /** + * + * *
      * Optional. The config settings for cluster software.
      * 
* - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig value) { if (softwareConfigBuilder_ == null) { if (softwareConfig_ != null) { softwareConfig_ = - com.google.cloud.dataproc.v1.SoftwareConfig.newBuilder(softwareConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.SoftwareConfig.newBuilder(softwareConfig_) + .mergeFrom(value) + .buildPartial(); } else { softwareConfig_ = value; } @@ -2790,11 +3286,15 @@ public Builder mergeSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig v return this; } /** + * + * *
      * Optional. The config settings for cluster software.
      * 
* - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSoftwareConfig() { if (softwareConfigBuilder_ == null) { @@ -2808,66 +3308,90 @@ public Builder clearSoftwareConfig() { return this; } /** + * + * *
      * Optional. The config settings for cluster software.
      * 
* - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.SoftwareConfig.Builder getSoftwareConfigBuilder() { - + onChanged(); return getSoftwareConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The config settings for cluster software.
      * 
* - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrBuilder() { if (softwareConfigBuilder_ != null) { return softwareConfigBuilder_.getMessageOrBuilder(); } else { - return softwareConfig_ == null ? - com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance() : softwareConfig_; + return softwareConfig_ == null + ? com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance() + : softwareConfig_; } } /** + * + * *
      * Optional. The config settings for cluster software.
      * 
* - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SoftwareConfig, com.google.cloud.dataproc.v1.SoftwareConfig.Builder, com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder> + com.google.cloud.dataproc.v1.SoftwareConfig, + com.google.cloud.dataproc.v1.SoftwareConfig.Builder, + com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder> getSoftwareConfigFieldBuilder() { if (softwareConfigBuilder_ == null) { - softwareConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SoftwareConfig, com.google.cloud.dataproc.v1.SoftwareConfig.Builder, com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder>( - getSoftwareConfig(), - getParentForChildren(), - isClean()); + softwareConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SoftwareConfig, + com.google.cloud.dataproc.v1.SoftwareConfig.Builder, + com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder>( + getSoftwareConfig(), getParentForChildren(), isClean()); softwareConfig_ = null; } return softwareConfigBuilder_; } - private java.util.List initializationActions_ = - java.util.Collections.emptyList(); + private java.util.List + initializationActions_ = java.util.Collections.emptyList(); + private void ensureInitializationActionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - initializationActions_ = new java.util.ArrayList(initializationActions_); + initializationActions_ = + new java.util.ArrayList( + initializationActions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeInitializationAction, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder, com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder> initializationActionsBuilder_; + com.google.cloud.dataproc.v1.NodeInitializationAction, + com.google.cloud.dataproc.v1.NodeInitializationAction.Builder, + com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder> + initializationActionsBuilder_; /** + * + * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -2883,9 +3407,12 @@ private void ensureInitializationActionsIsMutable() {
      *     fi
      * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getInitializationActionsList() { + public java.util.List + getInitializationActionsList() { if (initializationActionsBuilder_ == null) { return java.util.Collections.unmodifiableList(initializationActions_); } else { @@ -2893,6 +3420,8 @@ public java.util.List get } } /** + * + * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -2908,7 +3437,9 @@ public java.util.List get
      *     fi
      * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getInitializationActionsCount() { if (initializationActionsBuilder_ == null) { @@ -2918,6 +3449,8 @@ public int getInitializationActionsCount() { } } /** + * + * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -2933,9 +3466,12 @@ public int getInitializationActionsCount() {
      *     fi
      * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationActions(int index) { + public com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationActions( + int index) { if (initializationActionsBuilder_ == null) { return initializationActions_.get(index); } else { @@ -2943,6 +3479,8 @@ public com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationAc } } /** + * + * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -2958,7 +3496,9 @@ public com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationAc
      *     fi
      * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setInitializationActions( int index, com.google.cloud.dataproc.v1.NodeInitializationAction value) { @@ -2975,6 +3515,8 @@ public Builder setInitializationActions( return this; } /** + * + * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -2990,7 +3532,9 @@ public Builder setInitializationActions(
      *     fi
      * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setInitializationActions( int index, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder builderForValue) { @@ -3004,6 +3548,8 @@ public Builder setInitializationActions( return this; } /** + * + * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3019,9 +3565,12 @@ public Builder setInitializationActions(
      *     fi
      * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addInitializationActions(com.google.cloud.dataproc.v1.NodeInitializationAction value) { + public Builder addInitializationActions( + com.google.cloud.dataproc.v1.NodeInitializationAction value) { if (initializationActionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3035,6 +3584,8 @@ public Builder addInitializationActions(com.google.cloud.dataproc.v1.NodeInitial return this; } /** + * + * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3050,7 +3601,9 @@ public Builder addInitializationActions(com.google.cloud.dataproc.v1.NodeInitial
      *     fi
      * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addInitializationActions( int index, com.google.cloud.dataproc.v1.NodeInitializationAction value) { @@ -3067,6 +3620,8 @@ public Builder addInitializationActions( return this; } /** + * + * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3082,7 +3637,9 @@ public Builder addInitializationActions(
      *     fi
      * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addInitializationActions( com.google.cloud.dataproc.v1.NodeInitializationAction.Builder builderForValue) { @@ -3096,6 +3653,8 @@ public Builder addInitializationActions( return this; } /** + * + * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3111,7 +3670,9 @@ public Builder addInitializationActions(
      *     fi
      * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addInitializationActions( int index, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder builderForValue) { @@ -3125,6 +3686,8 @@ public Builder addInitializationActions( return this; } /** + * + * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3140,14 +3703,16 @@ public Builder addInitializationActions(
      *     fi
      * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllInitializationActions( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (initializationActionsBuilder_ == null) { ensureInitializationActionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, initializationActions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, initializationActions_); onChanged(); } else { initializationActionsBuilder_.addAllMessages(values); @@ -3155,6 +3720,8 @@ public Builder addAllInitializationActions( return this; } /** + * + * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3170,7 +3737,9 @@ public Builder addAllInitializationActions(
      *     fi
      * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearInitializationActions() { if (initializationActionsBuilder_ == null) { @@ -3183,6 +3752,8 @@ public Builder clearInitializationActions() { return this; } /** + * + * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3198,7 +3769,9 @@ public Builder clearInitializationActions() {
      *     fi
      * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeInitializationActions(int index) { if (initializationActionsBuilder_ == null) { @@ -3211,6 +3784,8 @@ public Builder removeInitializationActions(int index) { return this; } /** + * + * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3226,13 +3801,17 @@ public Builder removeInitializationActions(int index) {
      *     fi
      * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder getInitializationActionsBuilder( - int index) { + public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder + getInitializationActionsBuilder(int index) { return getInitializationActionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3248,16 +3827,21 @@ public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder getInitiali
      *     fi
      * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder getInitializationActionsOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder + getInitializationActionsOrBuilder(int index) { if (initializationActionsBuilder_ == null) { - return initializationActions_.get(index); } else { + return initializationActions_.get(index); + } else { return initializationActionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3273,10 +3857,12 @@ public com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder getInitial
      *     fi
      * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getInitializationActionsOrBuilderList() { + public java.util.List + getInitializationActionsOrBuilderList() { if (initializationActionsBuilder_ != null) { return initializationActionsBuilder_.getMessageOrBuilderList(); } else { @@ -3284,6 +3870,8 @@ public com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder getInitial } } /** + * + * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3299,13 +3887,18 @@ public com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder getInitial
      *     fi
      * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder addInitializationActionsBuilder() { - return getInitializationActionsFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.NodeInitializationAction.getDefaultInstance()); + public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder + addInitializationActionsBuilder() { + return getInitializationActionsFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.NodeInitializationAction.getDefaultInstance()); } /** + * + * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3321,14 +3914,19 @@ public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder addInitiali
      *     fi
      * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder addInitializationActionsBuilder( - int index) { - return getInitializationActionsFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.NodeInitializationAction.getDefaultInstance()); + public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder + addInitializationActionsBuilder(int index) { + return getInitializationActionsFieldBuilder() + .addBuilder( + index, com.google.cloud.dataproc.v1.NodeInitializationAction.getDefaultInstance()); } /** + * + * *
      * Optional. Commands to execute on each node after config is
      * completed. By default, executables are run on master and all worker nodes.
@@ -3344,18 +3942,26 @@ public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder addInitiali
      *     fi
      * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getInitializationActionsBuilderList() { + public java.util.List + getInitializationActionsBuilderList() { return getInitializationActionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeInitializationAction, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder, com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder> + com.google.cloud.dataproc.v1.NodeInitializationAction, + com.google.cloud.dataproc.v1.NodeInitializationAction.Builder, + com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder> getInitializationActionsFieldBuilder() { if (initializationActionsBuilder_ == null) { - initializationActionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeInitializationAction, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder, com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder>( + initializationActionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.NodeInitializationAction, + com.google.cloud.dataproc.v1.NodeInitializationAction.Builder, + com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder>( initializationActions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3367,39 +3973,58 @@ public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder addInitiali private com.google.cloud.dataproc.v1.EncryptionConfig encryptionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EncryptionConfig, com.google.cloud.dataproc.v1.EncryptionConfig.Builder, com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder> encryptionConfigBuilder_; + com.google.cloud.dataproc.v1.EncryptionConfig, + com.google.cloud.dataproc.v1.EncryptionConfig.Builder, + com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder> + encryptionConfigBuilder_; /** + * + * *
      * Optional. Encryption settings for the cluster.
      * 
* - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the encryptionConfig field is set. */ public boolean hasEncryptionConfig() { return encryptionConfigBuilder_ != null || encryptionConfig_ != null; } /** + * + * *
      * Optional. Encryption settings for the cluster.
      * 
* - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The encryptionConfig. */ public com.google.cloud.dataproc.v1.EncryptionConfig getEncryptionConfig() { if (encryptionConfigBuilder_ == null) { - return encryptionConfig_ == null ? com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; + return encryptionConfig_ == null + ? com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance() + : encryptionConfig_; } else { return encryptionConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Encryption settings for the cluster.
      * 
* - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConfig value) { if (encryptionConfigBuilder_ == null) { @@ -3415,11 +4040,15 @@ public Builder setEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConfig return this; } /** + * + * *
      * Optional. Encryption settings for the cluster.
      * 
* - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEncryptionConfig( com.google.cloud.dataproc.v1.EncryptionConfig.Builder builderForValue) { @@ -3433,17 +4062,23 @@ public Builder setEncryptionConfig( return this; } /** + * + * *
      * Optional. Encryption settings for the cluster.
      * 
* - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConfig value) { if (encryptionConfigBuilder_ == null) { if (encryptionConfig_ != null) { encryptionConfig_ = - com.google.cloud.dataproc.v1.EncryptionConfig.newBuilder(encryptionConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.EncryptionConfig.newBuilder(encryptionConfig_) + .mergeFrom(value) + .buildPartial(); } else { encryptionConfig_ = value; } @@ -3455,11 +4090,15 @@ public Builder mergeEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConf return this; } /** + * + * *
      * Optional. Encryption settings for the cluster.
      * 
* - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearEncryptionConfig() { if (encryptionConfigBuilder_ == null) { @@ -3473,48 +4112,64 @@ public Builder clearEncryptionConfig() { return this; } /** + * + * *
      * Optional. Encryption settings for the cluster.
      * 
* - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.EncryptionConfig.Builder getEncryptionConfigBuilder() { - + onChanged(); return getEncryptionConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Encryption settings for the cluster.
      * 
* - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { if (encryptionConfigBuilder_ != null) { return encryptionConfigBuilder_.getMessageOrBuilder(); } else { - return encryptionConfig_ == null ? - com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; + return encryptionConfig_ == null + ? com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance() + : encryptionConfig_; } } /** + * + * *
      * Optional. Encryption settings for the cluster.
      * 
* - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EncryptionConfig, com.google.cloud.dataproc.v1.EncryptionConfig.Builder, com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder> + com.google.cloud.dataproc.v1.EncryptionConfig, + com.google.cloud.dataproc.v1.EncryptionConfig.Builder, + com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder> getEncryptionConfigFieldBuilder() { if (encryptionConfigBuilder_ == null) { - encryptionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EncryptionConfig, com.google.cloud.dataproc.v1.EncryptionConfig.Builder, com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder>( - getEncryptionConfig(), - getParentForChildren(), - isClean()); + encryptionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.EncryptionConfig, + com.google.cloud.dataproc.v1.EncryptionConfig.Builder, + com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder>( + getEncryptionConfig(), getParentForChildren(), isClean()); encryptionConfig_ = null; } return encryptionConfigBuilder_; @@ -3522,42 +4177,61 @@ public com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder getEncryptionConfi private com.google.cloud.dataproc.v1.AutoscalingConfig autoscalingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingConfig, com.google.cloud.dataproc.v1.AutoscalingConfig.Builder, com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder> autoscalingConfigBuilder_; + com.google.cloud.dataproc.v1.AutoscalingConfig, + com.google.cloud.dataproc.v1.AutoscalingConfig.Builder, + com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder> + autoscalingConfigBuilder_; /** + * + * *
      * Optional. Autoscaling config for the policy associated with the cluster.
      * Cluster does not autoscale if this field is unset.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the autoscalingConfig field is set. */ public boolean hasAutoscalingConfig() { return autoscalingConfigBuilder_ != null || autoscalingConfig_ != null; } /** + * + * *
      * Optional. Autoscaling config for the policy associated with the cluster.
      * Cluster does not autoscale if this field is unset.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The autoscalingConfig. */ public com.google.cloud.dataproc.v1.AutoscalingConfig getAutoscalingConfig() { if (autoscalingConfigBuilder_ == null) { - return autoscalingConfig_ == null ? com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_; + return autoscalingConfig_ == null + ? com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance() + : autoscalingConfig_; } else { return autoscalingConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Autoscaling config for the policy associated with the cluster.
      * Cluster does not autoscale if this field is unset.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingConfig value) { if (autoscalingConfigBuilder_ == null) { @@ -3573,12 +4247,16 @@ public Builder setAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingConf return this; } /** + * + * *
      * Optional. Autoscaling config for the policy associated with the cluster.
      * Cluster does not autoscale if this field is unset.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAutoscalingConfig( com.google.cloud.dataproc.v1.AutoscalingConfig.Builder builderForValue) { @@ -3592,18 +4270,24 @@ public Builder setAutoscalingConfig( return this; } /** + * + * *
      * Optional. Autoscaling config for the policy associated with the cluster.
      * Cluster does not autoscale if this field is unset.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingConfig value) { if (autoscalingConfigBuilder_ == null) { if (autoscalingConfig_ != null) { autoscalingConfig_ = - com.google.cloud.dataproc.v1.AutoscalingConfig.newBuilder(autoscalingConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.AutoscalingConfig.newBuilder(autoscalingConfig_) + .mergeFrom(value) + .buildPartial(); } else { autoscalingConfig_ = value; } @@ -3615,12 +4299,16 @@ public Builder mergeAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingCo return this; } /** + * + * *
      * Optional. Autoscaling config for the policy associated with the cluster.
      * Cluster does not autoscale if this field is unset.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAutoscalingConfig() { if (autoscalingConfigBuilder_ == null) { @@ -3634,51 +4322,67 @@ public Builder clearAutoscalingConfig() { return this; } /** + * + * *
      * Optional. Autoscaling config for the policy associated with the cluster.
      * Cluster does not autoscale if this field is unset.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.AutoscalingConfig.Builder getAutoscalingConfigBuilder() { - + onChanged(); return getAutoscalingConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Autoscaling config for the policy associated with the cluster.
      * Cluster does not autoscale if this field is unset.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder() { if (autoscalingConfigBuilder_ != null) { return autoscalingConfigBuilder_.getMessageOrBuilder(); } else { - return autoscalingConfig_ == null ? - com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_; + return autoscalingConfig_ == null + ? com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance() + : autoscalingConfig_; } } /** + * + * *
      * Optional. Autoscaling config for the policy associated with the cluster.
      * Cluster does not autoscale if this field is unset.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingConfig, com.google.cloud.dataproc.v1.AutoscalingConfig.Builder, com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder> + com.google.cloud.dataproc.v1.AutoscalingConfig, + com.google.cloud.dataproc.v1.AutoscalingConfig.Builder, + com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder> getAutoscalingConfigFieldBuilder() { if (autoscalingConfigBuilder_ == null) { - autoscalingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingConfig, com.google.cloud.dataproc.v1.AutoscalingConfig.Builder, com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder>( - getAutoscalingConfig(), - getParentForChildren(), - isClean()); + autoscalingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.AutoscalingConfig, + com.google.cloud.dataproc.v1.AutoscalingConfig.Builder, + com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder>( + getAutoscalingConfig(), getParentForChildren(), isClean()); autoscalingConfig_ = null; } return autoscalingConfigBuilder_; @@ -3686,39 +4390,58 @@ public com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder getAutoscalingCon private com.google.cloud.dataproc.v1.SecurityConfig securityConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SecurityConfig, com.google.cloud.dataproc.v1.SecurityConfig.Builder, com.google.cloud.dataproc.v1.SecurityConfigOrBuilder> securityConfigBuilder_; + com.google.cloud.dataproc.v1.SecurityConfig, + com.google.cloud.dataproc.v1.SecurityConfig.Builder, + com.google.cloud.dataproc.v1.SecurityConfigOrBuilder> + securityConfigBuilder_; /** + * + * *
      * Optional. Security settings for the cluster.
      * 
* - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the securityConfig field is set. */ public boolean hasSecurityConfig() { return securityConfigBuilder_ != null || securityConfig_ != null; } /** + * + * *
      * Optional. Security settings for the cluster.
      * 
* - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The securityConfig. */ public com.google.cloud.dataproc.v1.SecurityConfig getSecurityConfig() { if (securityConfigBuilder_ == null) { - return securityConfig_ == null ? com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance() : securityConfig_; + return securityConfig_ == null + ? com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance() + : securityConfig_; } else { return securityConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Security settings for the cluster.
      * 
* - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig value) { if (securityConfigBuilder_ == null) { @@ -3734,11 +4457,15 @@ public Builder setSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig val return this; } /** + * + * *
      * Optional. Security settings for the cluster.
      * 
* - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSecurityConfig( com.google.cloud.dataproc.v1.SecurityConfig.Builder builderForValue) { @@ -3752,17 +4479,23 @@ public Builder setSecurityConfig( return this; } /** + * + * *
      * Optional. Security settings for the cluster.
      * 
* - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig value) { if (securityConfigBuilder_ == null) { if (securityConfig_ != null) { securityConfig_ = - com.google.cloud.dataproc.v1.SecurityConfig.newBuilder(securityConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.SecurityConfig.newBuilder(securityConfig_) + .mergeFrom(value) + .buildPartial(); } else { securityConfig_ = value; } @@ -3774,11 +4507,15 @@ public Builder mergeSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig v return this; } /** + * + * *
      * Optional. Security settings for the cluster.
      * 
* - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSecurityConfig() { if (securityConfigBuilder_ == null) { @@ -3792,48 +4529,64 @@ public Builder clearSecurityConfig() { return this; } /** + * + * *
      * Optional. Security settings for the cluster.
      * 
* - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.SecurityConfig.Builder getSecurityConfigBuilder() { - + onChanged(); return getSecurityConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Security settings for the cluster.
      * 
* - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.SecurityConfigOrBuilder getSecurityConfigOrBuilder() { if (securityConfigBuilder_ != null) { return securityConfigBuilder_.getMessageOrBuilder(); } else { - return securityConfig_ == null ? - com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance() : securityConfig_; + return securityConfig_ == null + ? com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance() + : securityConfig_; } } /** + * + * *
      * Optional. Security settings for the cluster.
      * 
* - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SecurityConfig, com.google.cloud.dataproc.v1.SecurityConfig.Builder, com.google.cloud.dataproc.v1.SecurityConfigOrBuilder> + com.google.cloud.dataproc.v1.SecurityConfig, + com.google.cloud.dataproc.v1.SecurityConfig.Builder, + com.google.cloud.dataproc.v1.SecurityConfigOrBuilder> getSecurityConfigFieldBuilder() { if (securityConfigBuilder_ == null) { - securityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SecurityConfig, com.google.cloud.dataproc.v1.SecurityConfig.Builder, com.google.cloud.dataproc.v1.SecurityConfigOrBuilder>( - getSecurityConfig(), - getParentForChildren(), - isClean()); + securityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SecurityConfig, + com.google.cloud.dataproc.v1.SecurityConfig.Builder, + com.google.cloud.dataproc.v1.SecurityConfigOrBuilder>( + getSecurityConfig(), getParentForChildren(), isClean()); securityConfig_ = null; } return securityConfigBuilder_; @@ -3841,39 +4594,58 @@ public com.google.cloud.dataproc.v1.SecurityConfigOrBuilder getSecurityConfigOrB private com.google.cloud.dataproc.v1.LifecycleConfig lifecycleConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LifecycleConfig, com.google.cloud.dataproc.v1.LifecycleConfig.Builder, com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder> lifecycleConfigBuilder_; + com.google.cloud.dataproc.v1.LifecycleConfig, + com.google.cloud.dataproc.v1.LifecycleConfig.Builder, + com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder> + lifecycleConfigBuilder_; /** + * + * *
      * Optional. Lifecycle setting for the cluster.
      * 
* - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the lifecycleConfig field is set. */ public boolean hasLifecycleConfig() { return lifecycleConfigBuilder_ != null || lifecycleConfig_ != null; } /** + * + * *
      * Optional. Lifecycle setting for the cluster.
      * 
* - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The lifecycleConfig. */ public com.google.cloud.dataproc.v1.LifecycleConfig getLifecycleConfig() { if (lifecycleConfigBuilder_ == null) { - return lifecycleConfig_ == null ? com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance() : lifecycleConfig_; + return lifecycleConfig_ == null + ? com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance() + : lifecycleConfig_; } else { return lifecycleConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Lifecycle setting for the cluster.
      * 
* - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig value) { if (lifecycleConfigBuilder_ == null) { @@ -3889,11 +4661,15 @@ public Builder setLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig v return this; } /** + * + * *
      * Optional. Lifecycle setting for the cluster.
      * 
* - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLifecycleConfig( com.google.cloud.dataproc.v1.LifecycleConfig.Builder builderForValue) { @@ -3907,17 +4683,23 @@ public Builder setLifecycleConfig( return this; } /** + * + * *
      * Optional. Lifecycle setting for the cluster.
      * 
* - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig value) { if (lifecycleConfigBuilder_ == null) { if (lifecycleConfig_ != null) { lifecycleConfig_ = - com.google.cloud.dataproc.v1.LifecycleConfig.newBuilder(lifecycleConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.LifecycleConfig.newBuilder(lifecycleConfig_) + .mergeFrom(value) + .buildPartial(); } else { lifecycleConfig_ = value; } @@ -3929,11 +4711,15 @@ public Builder mergeLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig return this; } /** + * + * *
      * Optional. Lifecycle setting for the cluster.
      * 
* - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearLifecycleConfig() { if (lifecycleConfigBuilder_ == null) { @@ -3947,48 +4733,64 @@ public Builder clearLifecycleConfig() { return this; } /** + * + * *
      * Optional. Lifecycle setting for the cluster.
      * 
* - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.LifecycleConfig.Builder getLifecycleConfigBuilder() { - + onChanged(); return getLifecycleConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Lifecycle setting for the cluster.
      * 
* - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder getLifecycleConfigOrBuilder() { if (lifecycleConfigBuilder_ != null) { return lifecycleConfigBuilder_.getMessageOrBuilder(); } else { - return lifecycleConfig_ == null ? - com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance() : lifecycleConfig_; + return lifecycleConfig_ == null + ? com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance() + : lifecycleConfig_; } } /** + * + * *
      * Optional. Lifecycle setting for the cluster.
      * 
* - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LifecycleConfig, com.google.cloud.dataproc.v1.LifecycleConfig.Builder, com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder> + com.google.cloud.dataproc.v1.LifecycleConfig, + com.google.cloud.dataproc.v1.LifecycleConfig.Builder, + com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder> getLifecycleConfigFieldBuilder() { if (lifecycleConfigBuilder_ == null) { - lifecycleConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LifecycleConfig, com.google.cloud.dataproc.v1.LifecycleConfig.Builder, com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder>( - getLifecycleConfig(), - getParentForChildren(), - isClean()); + lifecycleConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.LifecycleConfig, + com.google.cloud.dataproc.v1.LifecycleConfig.Builder, + com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder>( + getLifecycleConfig(), getParentForChildren(), isClean()); lifecycleConfig_ = null; } return lifecycleConfigBuilder_; @@ -3996,39 +4798,58 @@ public com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder getLifecycleConfigO private com.google.cloud.dataproc.v1.EndpointConfig endpointConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EndpointConfig, com.google.cloud.dataproc.v1.EndpointConfig.Builder, com.google.cloud.dataproc.v1.EndpointConfigOrBuilder> endpointConfigBuilder_; + com.google.cloud.dataproc.v1.EndpointConfig, + com.google.cloud.dataproc.v1.EndpointConfig.Builder, + com.google.cloud.dataproc.v1.EndpointConfigOrBuilder> + endpointConfigBuilder_; /** + * + * *
      * Optional. Port/endpoint configuration for this cluster
      * 
* - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the endpointConfig field is set. */ public boolean hasEndpointConfig() { return endpointConfigBuilder_ != null || endpointConfig_ != null; } /** + * + * *
      * Optional. Port/endpoint configuration for this cluster
      * 
* - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The endpointConfig. */ public com.google.cloud.dataproc.v1.EndpointConfig getEndpointConfig() { if (endpointConfigBuilder_ == null) { - return endpointConfig_ == null ? com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance() : endpointConfig_; + return endpointConfig_ == null + ? com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance() + : endpointConfig_; } else { return endpointConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Port/endpoint configuration for this cluster
      * 
* - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig value) { if (endpointConfigBuilder_ == null) { @@ -4044,11 +4865,15 @@ public Builder setEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig val return this; } /** + * + * *
      * Optional. Port/endpoint configuration for this cluster
      * 
* - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEndpointConfig( com.google.cloud.dataproc.v1.EndpointConfig.Builder builderForValue) { @@ -4062,17 +4887,23 @@ public Builder setEndpointConfig( return this; } /** + * + * *
      * Optional. Port/endpoint configuration for this cluster
      * 
* - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig value) { if (endpointConfigBuilder_ == null) { if (endpointConfig_ != null) { endpointConfig_ = - com.google.cloud.dataproc.v1.EndpointConfig.newBuilder(endpointConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.EndpointConfig.newBuilder(endpointConfig_) + .mergeFrom(value) + .buildPartial(); } else { endpointConfig_ = value; } @@ -4084,11 +4915,15 @@ public Builder mergeEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig v return this; } /** + * + * *
      * Optional. Port/endpoint configuration for this cluster
      * 
* - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearEndpointConfig() { if (endpointConfigBuilder_ == null) { @@ -4102,48 +4937,64 @@ public Builder clearEndpointConfig() { return this; } /** + * + * *
      * Optional. Port/endpoint configuration for this cluster
      * 
* - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.EndpointConfig.Builder getEndpointConfigBuilder() { - + onChanged(); return getEndpointConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Port/endpoint configuration for this cluster
      * 
* - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrBuilder() { if (endpointConfigBuilder_ != null) { return endpointConfigBuilder_.getMessageOrBuilder(); } else { - return endpointConfig_ == null ? - com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance() : endpointConfig_; + return endpointConfig_ == null + ? com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance() + : endpointConfig_; } } /** + * + * *
      * Optional. Port/endpoint configuration for this cluster
      * 
* - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EndpointConfig, com.google.cloud.dataproc.v1.EndpointConfig.Builder, com.google.cloud.dataproc.v1.EndpointConfigOrBuilder> + com.google.cloud.dataproc.v1.EndpointConfig, + com.google.cloud.dataproc.v1.EndpointConfig.Builder, + com.google.cloud.dataproc.v1.EndpointConfigOrBuilder> getEndpointConfigFieldBuilder() { if (endpointConfigBuilder_ == null) { - endpointConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EndpointConfig, com.google.cloud.dataproc.v1.EndpointConfig.Builder, com.google.cloud.dataproc.v1.EndpointConfigOrBuilder>( - getEndpointConfig(), - getParentForChildren(), - isClean()); + endpointConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.EndpointConfig, + com.google.cloud.dataproc.v1.EndpointConfig.Builder, + com.google.cloud.dataproc.v1.EndpointConfigOrBuilder>( + getEndpointConfig(), getParentForChildren(), isClean()); endpointConfig_ = null; } return endpointConfigBuilder_; @@ -4151,39 +5002,58 @@ public com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrB private com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.MetastoreConfig, com.google.cloud.dataproc.v1.MetastoreConfig.Builder, com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> metastoreConfigBuilder_; + com.google.cloud.dataproc.v1.MetastoreConfig, + com.google.cloud.dataproc.v1.MetastoreConfig.Builder, + com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> + metastoreConfigBuilder_; /** + * + * *
      * Optional. Metastore configuration.
      * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the metastoreConfig field is set. */ public boolean hasMetastoreConfig() { return metastoreConfigBuilder_ != null || metastoreConfig_ != null; } /** + * + * *
      * Optional. Metastore configuration.
      * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The metastoreConfig. */ public com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig() { if (metastoreConfigBuilder_ == null) { - return metastoreConfig_ == null ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() : metastoreConfig_; + return metastoreConfig_ == null + ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() + : metastoreConfig_; } else { return metastoreConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Metastore configuration.
      * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { if (metastoreConfigBuilder_ == null) { @@ -4199,11 +5069,15 @@ public Builder setMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig v return this; } /** + * + * *
      * Optional. Metastore configuration.
      * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMetastoreConfig( com.google.cloud.dataproc.v1.MetastoreConfig.Builder builderForValue) { @@ -4217,17 +5091,23 @@ public Builder setMetastoreConfig( return this; } /** + * + * *
      * Optional. Metastore configuration.
      * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { if (metastoreConfigBuilder_ == null) { if (metastoreConfig_ != null) { metastoreConfig_ = - com.google.cloud.dataproc.v1.MetastoreConfig.newBuilder(metastoreConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.MetastoreConfig.newBuilder(metastoreConfig_) + .mergeFrom(value) + .buildPartial(); } else { metastoreConfig_ = value; } @@ -4239,11 +5119,15 @@ public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig return this; } /** + * + * *
      * Optional. Metastore configuration.
      * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMetastoreConfig() { if (metastoreConfigBuilder_ == null) { @@ -4257,48 +5141,64 @@ public Builder clearMetastoreConfig() { return this; } /** + * + * *
      * Optional. Metastore configuration.
      * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.MetastoreConfig.Builder getMetastoreConfigBuilder() { - + onChanged(); return getMetastoreConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Metastore configuration.
      * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder() { if (metastoreConfigBuilder_ != null) { return metastoreConfigBuilder_.getMessageOrBuilder(); } else { - return metastoreConfig_ == null ? - com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() : metastoreConfig_; + return metastoreConfig_ == null + ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() + : metastoreConfig_; } } /** + * + * *
      * Optional. Metastore configuration.
      * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.MetastoreConfig, com.google.cloud.dataproc.v1.MetastoreConfig.Builder, com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> + com.google.cloud.dataproc.v1.MetastoreConfig, + com.google.cloud.dataproc.v1.MetastoreConfig.Builder, + com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> getMetastoreConfigFieldBuilder() { if (metastoreConfigBuilder_ == null) { - metastoreConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.MetastoreConfig, com.google.cloud.dataproc.v1.MetastoreConfig.Builder, com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder>( - getMetastoreConfig(), - getParentForChildren(), - isClean()); + metastoreConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.MetastoreConfig, + com.google.cloud.dataproc.v1.MetastoreConfig.Builder, + com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder>( + getMetastoreConfig(), getParentForChildren(), isClean()); metastoreConfig_ = null; } return metastoreConfigBuilder_; @@ -4306,41 +5206,61 @@ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigO private com.google.cloud.dataproc.v1.DataprocMetricConfig dataprocMetricConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DataprocMetricConfig, com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder, com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder> dataprocMetricConfigBuilder_; + com.google.cloud.dataproc.v1.DataprocMetricConfig, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder, + com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder> + dataprocMetricConfigBuilder_; /** + * + * *
      * Optional. The config for Dataproc metrics.
      * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the dataprocMetricConfig field is set. */ public boolean hasDataprocMetricConfig() { return dataprocMetricConfigBuilder_ != null || dataprocMetricConfig_ != null; } /** + * + * *
      * Optional. The config for Dataproc metrics.
      * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The dataprocMetricConfig. */ public com.google.cloud.dataproc.v1.DataprocMetricConfig getDataprocMetricConfig() { if (dataprocMetricConfigBuilder_ == null) { - return dataprocMetricConfig_ == null ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance() : dataprocMetricConfig_; + return dataprocMetricConfig_ == null + ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance() + : dataprocMetricConfig_; } else { return dataprocMetricConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The config for Dataproc metrics.
      * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDataprocMetricConfig(com.google.cloud.dataproc.v1.DataprocMetricConfig value) { + public Builder setDataprocMetricConfig( + com.google.cloud.dataproc.v1.DataprocMetricConfig value) { if (dataprocMetricConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4354,11 +5274,15 @@ public Builder setDataprocMetricConfig(com.google.cloud.dataproc.v1.DataprocMetr return this; } /** + * + * *
      * Optional. The config for Dataproc metrics.
      * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDataprocMetricConfig( com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder builderForValue) { @@ -4372,17 +5296,24 @@ public Builder setDataprocMetricConfig( return this; } /** + * + * *
      * Optional. The config for Dataproc metrics.
      * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeDataprocMetricConfig(com.google.cloud.dataproc.v1.DataprocMetricConfig value) { + public Builder mergeDataprocMetricConfig( + com.google.cloud.dataproc.v1.DataprocMetricConfig value) { if (dataprocMetricConfigBuilder_ == null) { if (dataprocMetricConfig_ != null) { dataprocMetricConfig_ = - com.google.cloud.dataproc.v1.DataprocMetricConfig.newBuilder(dataprocMetricConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.DataprocMetricConfig.newBuilder(dataprocMetricConfig_) + .mergeFrom(value) + .buildPartial(); } else { dataprocMetricConfig_ = value; } @@ -4394,11 +5325,15 @@ public Builder mergeDataprocMetricConfig(com.google.cloud.dataproc.v1.DataprocMe return this; } /** + * + * *
      * Optional. The config for Dataproc metrics.
      * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearDataprocMetricConfig() { if (dataprocMetricConfigBuilder_ == null) { @@ -4412,73 +5347,102 @@ public Builder clearDataprocMetricConfig() { return this; } /** + * + * *
      * Optional. The config for Dataproc metrics.
      * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder getDataprocMetricConfigBuilder() { - + public com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder + getDataprocMetricConfigBuilder() { + onChanged(); return getDataprocMetricConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The config for Dataproc metrics.
      * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder getDataprocMetricConfigOrBuilder() { + public com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder + getDataprocMetricConfigOrBuilder() { if (dataprocMetricConfigBuilder_ != null) { return dataprocMetricConfigBuilder_.getMessageOrBuilder(); } else { - return dataprocMetricConfig_ == null ? - com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance() : dataprocMetricConfig_; + return dataprocMetricConfig_ == null + ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance() + : dataprocMetricConfig_; } } /** + * + * *
      * Optional. The config for Dataproc metrics.
      * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DataprocMetricConfig, com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder, com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder> + com.google.cloud.dataproc.v1.DataprocMetricConfig, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder, + com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder> getDataprocMetricConfigFieldBuilder() { if (dataprocMetricConfigBuilder_ == null) { - dataprocMetricConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DataprocMetricConfig, com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder, com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder>( - getDataprocMetricConfig(), - getParentForChildren(), - isClean()); + dataprocMetricConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.DataprocMetricConfig, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder, + com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder>( + getDataprocMetricConfig(), getParentForChildren(), isClean()); dataprocMetricConfig_ = null; } return dataprocMetricConfigBuilder_; } private java.util.List auxiliaryNodeGroups_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAuxiliaryNodeGroupsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - auxiliaryNodeGroups_ = new java.util.ArrayList(auxiliaryNodeGroups_); + auxiliaryNodeGroups_ = + new java.util.ArrayList( + auxiliaryNodeGroups_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AuxiliaryNodeGroup, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder, com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder> auxiliaryNodeGroupsBuilder_; + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup, + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder, + com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder> + auxiliaryNodeGroupsBuilder_; /** + * + * *
      * Optional. The node group settings.
      * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getAuxiliaryNodeGroupsList() { + public java.util.List + getAuxiliaryNodeGroupsList() { if (auxiliaryNodeGroupsBuilder_ == null) { return java.util.Collections.unmodifiableList(auxiliaryNodeGroups_); } else { @@ -4486,11 +5450,15 @@ public java.util.List getAuxili } } /** + * + * *
      * Optional. The node group settings.
      * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getAuxiliaryNodeGroupsCount() { if (auxiliaryNodeGroupsBuilder_ == null) { @@ -4500,11 +5468,15 @@ public int getAuxiliaryNodeGroupsCount() { } } /** + * + * *
      * Optional. The node group settings.
      * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup getAuxiliaryNodeGroups(int index) { if (auxiliaryNodeGroupsBuilder_ == null) { @@ -4514,11 +5486,15 @@ public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup getAuxiliaryNodeGroups(in } } /** + * + * *
      * Optional. The node group settings.
      * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAuxiliaryNodeGroups( int index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup value) { @@ -4535,11 +5511,15 @@ public Builder setAuxiliaryNodeGroups( return this; } /** + * + * *
      * Optional. The node group settings.
      * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAuxiliaryNodeGroups( int index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder builderForValue) { @@ -4553,11 +5533,15 @@ public Builder setAuxiliaryNodeGroups( return this; } /** + * + * *
      * Optional. The node group settings.
      * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAuxiliaryNodeGroups(com.google.cloud.dataproc.v1.AuxiliaryNodeGroup value) { if (auxiliaryNodeGroupsBuilder_ == null) { @@ -4573,11 +5557,15 @@ public Builder addAuxiliaryNodeGroups(com.google.cloud.dataproc.v1.AuxiliaryNode return this; } /** + * + * *
      * Optional. The node group settings.
      * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAuxiliaryNodeGroups( int index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup value) { @@ -4594,11 +5582,15 @@ public Builder addAuxiliaryNodeGroups( return this; } /** + * + * *
      * Optional. The node group settings.
      * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAuxiliaryNodeGroups( com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder builderForValue) { @@ -4612,11 +5604,15 @@ public Builder addAuxiliaryNodeGroups( return this; } /** + * + * *
      * Optional. The node group settings.
      * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAuxiliaryNodeGroups( int index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder builderForValue) { @@ -4630,18 +5626,21 @@ public Builder addAuxiliaryNodeGroups( return this; } /** + * + * *
      * Optional. The node group settings.
      * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllAuxiliaryNodeGroups( java.lang.Iterable values) { if (auxiliaryNodeGroupsBuilder_ == null) { ensureAuxiliaryNodeGroupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, auxiliaryNodeGroups_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, auxiliaryNodeGroups_); onChanged(); } else { auxiliaryNodeGroupsBuilder_.addAllMessages(values); @@ -4649,11 +5648,15 @@ public Builder addAllAuxiliaryNodeGroups( return this; } /** + * + * *
      * Optional. The node group settings.
      * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAuxiliaryNodeGroups() { if (auxiliaryNodeGroupsBuilder_ == null) { @@ -4666,11 +5669,15 @@ public Builder clearAuxiliaryNodeGroups() { return this; } /** + * + * *
      * Optional. The node group settings.
      * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeAuxiliaryNodeGroups(int index) { if (auxiliaryNodeGroupsBuilder_ == null) { @@ -4683,39 +5690,52 @@ public Builder removeAuxiliaryNodeGroups(int index) { return this; } /** + * + * *
      * Optional. The node group settings.
      * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder getAuxiliaryNodeGroupsBuilder( int index) { return getAuxiliaryNodeGroupsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. The node group settings.
      * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder getAuxiliaryNodeGroupsOrBuilder( int index) { if (auxiliaryNodeGroupsBuilder_ == null) { - return auxiliaryNodeGroups_.get(index); } else { + return auxiliaryNodeGroups_.get(index); + } else { return auxiliaryNodeGroupsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. The node group settings.
      * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAuxiliaryNodeGroupsOrBuilderList() { + public java.util.List + getAuxiliaryNodeGroupsOrBuilderList() { if (auxiliaryNodeGroupsBuilder_ != null) { return auxiliaryNodeGroupsBuilder_.getMessageOrBuilderList(); } else { @@ -4723,45 +5743,63 @@ public com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder getAuxiliaryNode } } /** + * + * *
      * Optional. The node group settings.
      * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder addAuxiliaryNodeGroupsBuilder() { - return getAuxiliaryNodeGroupsFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.getDefaultInstance()); + return getAuxiliaryNodeGroupsFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.getDefaultInstance()); } /** + * + * *
      * Optional. The node group settings.
      * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder addAuxiliaryNodeGroupsBuilder( int index) { - return getAuxiliaryNodeGroupsFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.getDefaultInstance()); + return getAuxiliaryNodeGroupsFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.getDefaultInstance()); } /** + * + * *
      * Optional. The node group settings.
      * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAuxiliaryNodeGroupsBuilderList() { + public java.util.List + getAuxiliaryNodeGroupsBuilderList() { return getAuxiliaryNodeGroupsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AuxiliaryNodeGroup, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder, com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder> + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup, + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder, + com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder> getAuxiliaryNodeGroupsFieldBuilder() { if (auxiliaryNodeGroupsBuilder_ == null) { - auxiliaryNodeGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AuxiliaryNodeGroup, com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder, com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder>( + auxiliaryNodeGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup, + com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder, + com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder>( auxiliaryNodeGroups_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -4770,9 +5808,9 @@ public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder addAuxiliaryNodeG } return auxiliaryNodeGroupsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4782,12 +5820,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ClusterConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterConfig) private static final com.google.cloud.dataproc.v1.ClusterConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterConfig(); } @@ -4796,27 +5834,27 @@ public static com.google.cloud.dataproc.v1.ClusterConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4831,6 +5869,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ClusterConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java similarity index 66% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java index eb789d1562b6..9e1e20b36f68 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface ClusterConfigOrBuilder extends +public interface ClusterConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. A Cloud Storage bucket used to stage job
    * dependencies, config files, and job driver console output.
@@ -23,10 +41,13 @@ public interface ClusterConfigOrBuilder extends
    * 
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The configBucket. */ java.lang.String getConfigBucket(); /** + * + * *
    * Optional. A Cloud Storage bucket used to stage job
    * dependencies, config files, and job driver console output.
@@ -42,12 +63,14 @@ public interface ClusterConfigOrBuilder extends
    * 
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for configBucket. */ - com.google.protobuf.ByteString - getConfigBucketBytes(); + com.google.protobuf.ByteString getConfigBucketBytes(); /** + * + * *
    * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
    * data, such as Spark and MapReduce history files. If you do not specify a
@@ -63,10 +86,13 @@ public interface ClusterConfigOrBuilder extends
    * 
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The tempBucket. */ java.lang.String getTempBucket(); /** + * + * *
    * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
    * data, such as Spark and MapReduce history files. If you do not specify a
@@ -82,159 +108,231 @@ public interface ClusterConfigOrBuilder extends
    * 
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for tempBucket. */ - com.google.protobuf.ByteString - getTempBucketBytes(); + com.google.protobuf.ByteString getTempBucketBytes(); /** + * + * *
    * Optional. The shared Compute Engine config settings for
    * all instances in a cluster.
    * 
* - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gceClusterConfig field is set. */ boolean hasGceClusterConfig(); /** + * + * *
    * Optional. The shared Compute Engine config settings for
    * all instances in a cluster.
    * 
* - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gceClusterConfig. */ com.google.cloud.dataproc.v1.GceClusterConfig getGceClusterConfig(); /** + * + * *
    * Optional. The shared Compute Engine config settings for
    * all instances in a cluster.
    * 
* - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfigOrBuilder(); /** + * + * *
    * Optional. The Compute Engine config settings for
    * the cluster's master instance.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the masterConfig field is set. */ boolean hasMasterConfig(); /** + * + * *
    * Optional. The Compute Engine config settings for
    * the cluster's master instance.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The masterConfig. */ com.google.cloud.dataproc.v1.InstanceGroupConfig getMasterConfig(); /** + * + * *
    * Optional. The Compute Engine config settings for
    * the cluster's master instance.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfigOrBuilder(); /** + * + * *
    * Optional. The Compute Engine config settings for
    * the cluster's worker instances.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the workerConfig field is set. */ boolean hasWorkerConfig(); /** + * + * *
    * Optional. The Compute Engine config settings for
    * the cluster's worker instances.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The workerConfig. */ com.google.cloud.dataproc.v1.InstanceGroupConfig getWorkerConfig(); /** + * + * *
    * Optional. The Compute Engine config settings for
    * the cluster's worker instances.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfigOrBuilder(); /** + * + * *
    * Optional. The Compute Engine config settings for
    * a cluster's secondary worker instances
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the secondaryWorkerConfig field is set. */ boolean hasSecondaryWorkerConfig(); /** + * + * *
    * Optional. The Compute Engine config settings for
    * a cluster's secondary worker instances
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The secondaryWorkerConfig. */ com.google.cloud.dataproc.v1.InstanceGroupConfig getSecondaryWorkerConfig(); /** + * + * *
    * Optional. The Compute Engine config settings for
    * a cluster's secondary worker instances
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getSecondaryWorkerConfigOrBuilder(); /** + * + * *
    * Optional. The config settings for cluster software.
    * 
* - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the softwareConfig field is set. */ boolean hasSoftwareConfig(); /** + * + * *
    * Optional. The config settings for cluster software.
    * 
* - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The softwareConfig. */ com.google.cloud.dataproc.v1.SoftwareConfig getSoftwareConfig(); /** + * + * *
    * Optional. The config settings for cluster software.
    * 
* - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrBuilder(); /** + * + * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -250,11 +348,15 @@ public interface ClusterConfigOrBuilder extends
    *     fi
    * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getInitializationActionsList(); /** + * + * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -270,10 +372,14 @@ public interface ClusterConfigOrBuilder extends
    *     fi
    * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationActions(int index); /** + * + * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -289,10 +395,14 @@ public interface ClusterConfigOrBuilder extends
    *     fi
    * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getInitializationActionsCount(); /** + * + * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -308,11 +418,15 @@ public interface ClusterConfigOrBuilder extends
    *     fi
    * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getInitializationActionsOrBuilderList(); /** + * + * *
    * Optional. Commands to execute on each node after config is
    * completed. By default, executables are run on master and all worker nodes.
@@ -328,243 +442,362 @@ public interface ClusterConfigOrBuilder extends
    *     fi
    * 
* - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder getInitializationActionsOrBuilder( int index); /** + * + * *
    * Optional. Encryption settings for the cluster.
    * 
* - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the encryptionConfig field is set. */ boolean hasEncryptionConfig(); /** + * + * *
    * Optional. Encryption settings for the cluster.
    * 
* - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The encryptionConfig. */ com.google.cloud.dataproc.v1.EncryptionConfig getEncryptionConfig(); /** + * + * *
    * Optional. Encryption settings for the cluster.
    * 
* - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder(); /** + * + * *
    * Optional. Autoscaling config for the policy associated with the cluster.
    * Cluster does not autoscale if this field is unset.
    * 
* - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the autoscalingConfig field is set. */ boolean hasAutoscalingConfig(); /** + * + * *
    * Optional. Autoscaling config for the policy associated with the cluster.
    * Cluster does not autoscale if this field is unset.
    * 
* - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The autoscalingConfig. */ com.google.cloud.dataproc.v1.AutoscalingConfig getAutoscalingConfig(); /** + * + * *
    * Optional. Autoscaling config for the policy associated with the cluster.
    * Cluster does not autoscale if this field is unset.
    * 
* - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder(); /** + * + * *
    * Optional. Security settings for the cluster.
    * 
* - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the securityConfig field is set. */ boolean hasSecurityConfig(); /** + * + * *
    * Optional. Security settings for the cluster.
    * 
* - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The securityConfig. */ com.google.cloud.dataproc.v1.SecurityConfig getSecurityConfig(); /** + * + * *
    * Optional. Security settings for the cluster.
    * 
* - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.SecurityConfigOrBuilder getSecurityConfigOrBuilder(); /** + * + * *
    * Optional. Lifecycle setting for the cluster.
    * 
* - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the lifecycleConfig field is set. */ boolean hasLifecycleConfig(); /** + * + * *
    * Optional. Lifecycle setting for the cluster.
    * 
* - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The lifecycleConfig. */ com.google.cloud.dataproc.v1.LifecycleConfig getLifecycleConfig(); /** + * + * *
    * Optional. Lifecycle setting for the cluster.
    * 
* - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder getLifecycleConfigOrBuilder(); /** + * + * *
    * Optional. Port/endpoint configuration for this cluster
    * 
* - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the endpointConfig field is set. */ boolean hasEndpointConfig(); /** + * + * *
    * Optional. Port/endpoint configuration for this cluster
    * 
* - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The endpointConfig. */ com.google.cloud.dataproc.v1.EndpointConfig getEndpointConfig(); /** + * + * *
    * Optional. Port/endpoint configuration for this cluster
    * 
* - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrBuilder(); /** + * + * *
    * Optional. Metastore configuration.
    * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the metastoreConfig field is set. */ boolean hasMetastoreConfig(); /** + * + * *
    * Optional. Metastore configuration.
    * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The metastoreConfig. */ com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig(); /** + * + * *
    * Optional. Metastore configuration.
    * 
* - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder(); /** + * + * *
    * Optional. The config for Dataproc metrics.
    * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the dataprocMetricConfig field is set. */ boolean hasDataprocMetricConfig(); /** + * + * *
    * Optional. The config for Dataproc metrics.
    * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The dataprocMetricConfig. */ com.google.cloud.dataproc.v1.DataprocMetricConfig getDataprocMetricConfig(); /** + * + * *
    * Optional. The config for Dataproc metrics.
    * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder getDataprocMetricConfigOrBuilder(); /** + * + * *
    * Optional. The node group settings.
    * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getAuxiliaryNodeGroupsList(); + java.util.List getAuxiliaryNodeGroupsList(); /** + * + * *
    * Optional. The node group settings.
    * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.AuxiliaryNodeGroup getAuxiliaryNodeGroups(int index); /** + * + * *
    * Optional. The node group settings.
    * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAuxiliaryNodeGroupsCount(); /** + * + * *
    * Optional. The node group settings.
    * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getAuxiliaryNodeGroupsOrBuilderList(); /** + * + * *
    * Optional. The node group settings.
    * 
* - * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AuxiliaryNodeGroup auxiliary_node_groups = 25 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder getAuxiliaryNodeGroupsOrBuilder( int index); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java similarity index 55% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java index 6d829b74252c..2fde391e28f2 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Contains cluster daemon metrics, such as HDFS and YARN stats.
  * **Beta Feature**: This report is available for testing purposes only. It may
@@ -12,76 +29,75 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.ClusterMetrics}
  */
-public final class ClusterMetrics extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ClusterMetrics extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterMetrics)
     ClusterMetricsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ClusterMetrics.newBuilder() to construct.
   private ClusterMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ClusterMetrics() {
-  }
+
+  private ClusterMetrics() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ClusterMetrics();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_ClusterMetrics_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 internalGetHdfsMetrics();
       case 2:
         return internalGetYarnMetrics();
       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.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.ClusterMetrics.class, com.google.cloud.dataproc.v1.ClusterMetrics.Builder.class);
+            com.google.cloud.dataproc.v1.ClusterMetrics.class,
+            com.google.cloud.dataproc.v1.ClusterMetrics.Builder.class);
   }
 
   public static final int HDFS_METRICS_FIELD_NUMBER = 1;
+
   private static final class HdfsMetricsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.Long> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.INT64,
-                0L);
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.cloud.dataproc.v1.ClustersProto
+                .internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.INT64,
+            0L);
   }
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.Long> hdfsMetrics_;
-  private com.google.protobuf.MapField
-  internalGetHdfsMetrics() {
+
+  private com.google.protobuf.MapField hdfsMetrics_;
+
+  private com.google.protobuf.MapField internalGetHdfsMetrics() {
     if (hdfsMetrics_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          HdfsMetricsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(HdfsMetricsDefaultEntryHolder.defaultEntry);
     }
     return hdfsMetrics_;
   }
@@ -90,28 +106,30 @@ public int getHdfsMetricsCount() {
     return internalGetHdfsMetrics().getMap().size();
   }
   /**
+   *
+   *
    * 
    * The HDFS metrics.
    * 
* * map<string, int64> hdfs_metrics = 1; */ - @java.lang.Override - public boolean containsHdfsMetrics( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsHdfsMetrics(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetHdfsMetrics().getMap().containsKey(key); } - /** - * Use {@link #getHdfsMetricsMap()} instead. - */ + /** Use {@link #getHdfsMetricsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHdfsMetrics() { return getHdfsMetricsMap(); } /** + * + * *
    * The HDFS metrics.
    * 
@@ -119,11 +137,12 @@ public java.util.Map getHdfsMetrics() { * map<string, int64> hdfs_metrics = 1; */ @java.lang.Override - public java.util.Map getHdfsMetricsMap() { return internalGetHdfsMetrics().getMap(); } /** + * + * *
    * The HDFS metrics.
    * 
@@ -131,16 +150,16 @@ public java.util.Map getHdfsMetricsMap() { * map<string, int64> hdfs_metrics = 1; */ @java.lang.Override - - public long getHdfsMetricsOrDefault( - java.lang.String key, - long defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetHdfsMetrics().getMap(); + public long getHdfsMetricsOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetHdfsMetrics().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * The HDFS metrics.
    * 
@@ -148,12 +167,11 @@ public long getHdfsMetricsOrDefault( * map<string, int64> hdfs_metrics = 1; */ @java.lang.Override - - public long getHdfsMetricsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetHdfsMetrics().getMap(); + public long getHdfsMetricsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetHdfsMetrics().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -161,24 +179,23 @@ public long getHdfsMetricsOrThrow( } public static final int YARN_METRICS_FIELD_NUMBER = 2; + private static final class YarnMetricsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Long> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> yarnMetrics_; - private com.google.protobuf.MapField - internalGetYarnMetrics() { + + private com.google.protobuf.MapField yarnMetrics_; + + private com.google.protobuf.MapField internalGetYarnMetrics() { if (yarnMetrics_ == null) { - return com.google.protobuf.MapField.emptyMapField( - YarnMetricsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(YarnMetricsDefaultEntryHolder.defaultEntry); } return yarnMetrics_; } @@ -187,28 +204,30 @@ public int getYarnMetricsCount() { return internalGetYarnMetrics().getMap().size(); } /** + * + * *
    * The YARN metrics.
    * 
* * map<string, int64> yarn_metrics = 2; */ - @java.lang.Override - public boolean containsYarnMetrics( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsYarnMetrics(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetYarnMetrics().getMap().containsKey(key); } - /** - * Use {@link #getYarnMetricsMap()} instead. - */ + /** Use {@link #getYarnMetricsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getYarnMetrics() { return getYarnMetricsMap(); } /** + * + * *
    * The YARN metrics.
    * 
@@ -216,11 +235,12 @@ public java.util.Map getYarnMetrics() { * map<string, int64> yarn_metrics = 2; */ @java.lang.Override - public java.util.Map getYarnMetricsMap() { return internalGetYarnMetrics().getMap(); } /** + * + * *
    * The YARN metrics.
    * 
@@ -228,16 +248,16 @@ public java.util.Map getYarnMetricsMap() { * map<string, int64> yarn_metrics = 2; */ @java.lang.Override - - public long getYarnMetricsOrDefault( - java.lang.String key, - long defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetYarnMetrics().getMap(); + public long getYarnMetricsOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetYarnMetrics().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * The YARN metrics.
    * 
@@ -245,12 +265,11 @@ public long getYarnMetricsOrDefault( * map<string, int64> yarn_metrics = 2; */ @java.lang.Override - - public long getYarnMetricsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetYarnMetrics().getMap(); + public long getYarnMetricsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetYarnMetrics().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -258,6 +277,7 @@ public long getYarnMetricsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,20 +289,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetHdfsMetrics(), - HdfsMetricsDefaultEntryHolder.defaultEntry, - 1); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetYarnMetrics(), - YarnMetricsDefaultEntryHolder.defaultEntry, - 2); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetHdfsMetrics(), HdfsMetricsDefaultEntryHolder.defaultEntry, 1); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetYarnMetrics(), YarnMetricsDefaultEntryHolder.defaultEntry, 2); getUnknownFields().writeTo(output); } @@ -292,25 +303,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetHdfsMetrics().getMap().entrySet()) { - com.google.protobuf.MapEntry - hdfsMetrics__ = HdfsMetricsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, hdfsMetrics__); - } - for (java.util.Map.Entry entry - : internalGetYarnMetrics().getMap().entrySet()) { - com.google.protobuf.MapEntry - yarnMetrics__ = YarnMetricsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, yarnMetrics__); + for (java.util.Map.Entry entry : + internalGetHdfsMetrics().getMap().entrySet()) { + com.google.protobuf.MapEntry hdfsMetrics__ = + HdfsMetricsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hdfsMetrics__); + } + for (java.util.Map.Entry entry : + internalGetYarnMetrics().getMap().entrySet()) { + com.google.protobuf.MapEntry yarnMetrics__ = + YarnMetricsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, yarnMetrics__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -320,17 +331,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ClusterMetrics)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ClusterMetrics other = (com.google.cloud.dataproc.v1.ClusterMetrics) obj; + com.google.cloud.dataproc.v1.ClusterMetrics other = + (com.google.cloud.dataproc.v1.ClusterMetrics) obj; - if (!internalGetHdfsMetrics().equals( - other.internalGetHdfsMetrics())) return false; - if (!internalGetYarnMetrics().equals( - other.internalGetYarnMetrics())) return false; + if (!internalGetHdfsMetrics().equals(other.internalGetHdfsMetrics())) return false; + if (!internalGetYarnMetrics().equals(other.internalGetYarnMetrics())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -355,97 +365,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterMetrics parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ClusterMetrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterMetrics parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.ClusterMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains cluster daemon metrics, such as HDFS and YARN stats.
    * **Beta Feature**: This report is available for testing purposes only. It may
@@ -454,59 +471,56 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.ClusterMetrics}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterMetrics)
       com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 1:
           return internalGetHdfsMetrics();
         case 2:
           return internalGetYarnMetrics();
         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 internalGetMutableHdfsMetrics();
         case 2:
           return internalGetMutableYarnMetrics();
         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.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.ClusterMetrics.class, com.google.cloud.dataproc.v1.ClusterMetrics.Builder.class);
+              com.google.cloud.dataproc.v1.ClusterMetrics.class,
+              com.google.cloud.dataproc.v1.ClusterMetrics.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.ClusterMetrics.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -516,9 +530,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor;
     }
 
     @java.lang.Override
@@ -537,7 +551,8 @@ public com.google.cloud.dataproc.v1.ClusterMetrics build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.ClusterMetrics buildPartial() {
-      com.google.cloud.dataproc.v1.ClusterMetrics result = new com.google.cloud.dataproc.v1.ClusterMetrics(this);
+      com.google.cloud.dataproc.v1.ClusterMetrics result =
+          new com.google.cloud.dataproc.v1.ClusterMetrics(this);
       int from_bitField0_ = bitField0_;
       result.hdfsMetrics_ = internalGetHdfsMetrics();
       result.hdfsMetrics_.makeImmutable();
@@ -551,38 +566,39 @@ public com.google.cloud.dataproc.v1.ClusterMetrics buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.ClusterMetrics) {
-        return mergeFrom((com.google.cloud.dataproc.v1.ClusterMetrics)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.ClusterMetrics) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -591,10 +607,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterMetrics other) {
       if (other == com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance()) return this;
-      internalGetMutableHdfsMetrics().mergeFrom(
-          other.internalGetHdfsMetrics());
-      internalGetMutableYarnMetrics().mergeFrom(
-          other.internalGetYarnMetrics());
+      internalGetMutableHdfsMetrics().mergeFrom(other.internalGetHdfsMetrics());
+      internalGetMutableYarnMetrics().mergeFrom(other.internalGetYarnMetrics());
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -621,28 +635,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.protobuf.MapEntry
-              hdfsMetrics__ = input.readMessage(
-                  HdfsMetricsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableHdfsMetrics().getMutableMap().put(
-                  hdfsMetrics__.getKey(), hdfsMetrics__.getValue());
-              break;
-            } // case 10
-            case 18: {
-              com.google.protobuf.MapEntry
-              yarnMetrics__ = input.readMessage(
-                  YarnMetricsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableYarnMetrics().getMutableMap().put(
-                  yarnMetrics__.getKey(), yarnMetrics__.getValue());
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.protobuf.MapEntry hdfsMetrics__ =
+                    input.readMessage(
+                        HdfsMetricsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableHdfsMetrics()
+                    .getMutableMap()
+                    .put(hdfsMetrics__.getKey(), hdfsMetrics__.getValue());
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.protobuf.MapEntry yarnMetrics__ =
+                    input.readMessage(
+                        YarnMetricsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableYarnMetrics()
+                    .getMutableMap()
+                    .put(yarnMetrics__.getKey(), yarnMetrics__.getValue());
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -652,24 +673,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.Long> hdfsMetrics_;
+    private com.google.protobuf.MapField hdfsMetrics_;
+
     private com.google.protobuf.MapField
-    internalGetHdfsMetrics() {
+        internalGetHdfsMetrics() {
       if (hdfsMetrics_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             HdfsMetricsDefaultEntryHolder.defaultEntry);
       }
       return hdfsMetrics_;
     }
+
     private com.google.protobuf.MapField
-    internalGetMutableHdfsMetrics() {
-      onChanged();;
+        internalGetMutableHdfsMetrics() {
+      onChanged();
+      ;
       if (hdfsMetrics_ == null) {
-        hdfsMetrics_ = com.google.protobuf.MapField.newMapField(
-            HdfsMetricsDefaultEntryHolder.defaultEntry);
+        hdfsMetrics_ =
+            com.google.protobuf.MapField.newMapField(HdfsMetricsDefaultEntryHolder.defaultEntry);
       }
       if (!hdfsMetrics_.isMutable()) {
         hdfsMetrics_ = hdfsMetrics_.copy();
@@ -681,28 +705,30 @@ public int getHdfsMetricsCount() {
       return internalGetHdfsMetrics().getMap().size();
     }
     /**
+     *
+     *
      * 
      * The HDFS metrics.
      * 
* * map<string, int64> hdfs_metrics = 1; */ - @java.lang.Override - public boolean containsHdfsMetrics( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsHdfsMetrics(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetHdfsMetrics().getMap().containsKey(key); } - /** - * Use {@link #getHdfsMetricsMap()} instead. - */ + /** Use {@link #getHdfsMetricsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHdfsMetrics() { return getHdfsMetricsMap(); } /** + * + * *
      * The HDFS metrics.
      * 
@@ -710,11 +736,12 @@ public java.util.Map getHdfsMetrics() { * map<string, int64> hdfs_metrics = 1; */ @java.lang.Override - public java.util.Map getHdfsMetricsMap() { return internalGetHdfsMetrics().getMap(); } /** + * + * *
      * The HDFS metrics.
      * 
@@ -722,16 +749,16 @@ public java.util.Map getHdfsMetricsMap() { * map<string, int64> hdfs_metrics = 1; */ @java.lang.Override - - public long getHdfsMetricsOrDefault( - java.lang.String key, - long defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetHdfsMetrics().getMap(); + public long getHdfsMetricsOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetHdfsMetrics().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * The HDFS metrics.
      * 
@@ -739,12 +766,11 @@ public long getHdfsMetricsOrDefault( * map<string, int64> hdfs_metrics = 1; */ @java.lang.Override - - public long getHdfsMetricsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetHdfsMetrics().getMap(); + public long getHdfsMetricsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetHdfsMetrics().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -752,80 +778,79 @@ public long getHdfsMetricsOrThrow( } public Builder clearHdfsMetrics() { - internalGetMutableHdfsMetrics().getMutableMap() - .clear(); + internalGetMutableHdfsMetrics().getMutableMap().clear(); return this; } /** + * + * *
      * The HDFS metrics.
      * 
* * map<string, int64> hdfs_metrics = 1; */ - - public Builder removeHdfsMetrics( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableHdfsMetrics().getMutableMap() - .remove(key); + public Builder removeHdfsMetrics(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableHdfsMetrics().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableHdfsMetrics() { + public java.util.Map getMutableHdfsMetrics() { return internalGetMutableHdfsMetrics().getMutableMap(); } /** + * + * *
      * The HDFS metrics.
      * 
* * map<string, int64> hdfs_metrics = 1; */ - public Builder putHdfsMetrics( - java.lang.String key, - long value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableHdfsMetrics().getMutableMap() - .put(key, value); + public Builder putHdfsMetrics(java.lang.String key, long value) { + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableHdfsMetrics().getMutableMap().put(key, value); return this; } /** + * + * *
      * The HDFS metrics.
      * 
* * map<string, int64> hdfs_metrics = 1; */ - - public Builder putAllHdfsMetrics( - java.util.Map values) { - internalGetMutableHdfsMetrics().getMutableMap() - .putAll(values); + public Builder putAllHdfsMetrics(java.util.Map values) { + internalGetMutableHdfsMetrics().getMutableMap().putAll(values); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> yarnMetrics_; + private com.google.protobuf.MapField yarnMetrics_; + private com.google.protobuf.MapField - internalGetYarnMetrics() { + internalGetYarnMetrics() { if (yarnMetrics_ == null) { return com.google.protobuf.MapField.emptyMapField( YarnMetricsDefaultEntryHolder.defaultEntry); } return yarnMetrics_; } + private com.google.protobuf.MapField - internalGetMutableYarnMetrics() { - onChanged();; + internalGetMutableYarnMetrics() { + onChanged(); + ; if (yarnMetrics_ == null) { - yarnMetrics_ = com.google.protobuf.MapField.newMapField( - YarnMetricsDefaultEntryHolder.defaultEntry); + yarnMetrics_ = + com.google.protobuf.MapField.newMapField(YarnMetricsDefaultEntryHolder.defaultEntry); } if (!yarnMetrics_.isMutable()) { yarnMetrics_ = yarnMetrics_.copy(); @@ -837,28 +862,30 @@ public int getYarnMetricsCount() { return internalGetYarnMetrics().getMap().size(); } /** + * + * *
      * The YARN metrics.
      * 
* * map<string, int64> yarn_metrics = 2; */ - @java.lang.Override - public boolean containsYarnMetrics( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsYarnMetrics(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetYarnMetrics().getMap().containsKey(key); } - /** - * Use {@link #getYarnMetricsMap()} instead. - */ + /** Use {@link #getYarnMetricsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getYarnMetrics() { return getYarnMetricsMap(); } /** + * + * *
      * The YARN metrics.
      * 
@@ -866,11 +893,12 @@ public java.util.Map getYarnMetrics() { * map<string, int64> yarn_metrics = 2; */ @java.lang.Override - public java.util.Map getYarnMetricsMap() { return internalGetYarnMetrics().getMap(); } /** + * + * *
      * The YARN metrics.
      * 
@@ -878,16 +906,16 @@ public java.util.Map getYarnMetricsMap() { * map<string, int64> yarn_metrics = 2; */ @java.lang.Override - - public long getYarnMetricsOrDefault( - java.lang.String key, - long defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetYarnMetrics().getMap(); + public long getYarnMetricsOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetYarnMetrics().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * The YARN metrics.
      * 
@@ -895,12 +923,11 @@ public long getYarnMetricsOrDefault( * map<string, int64> yarn_metrics = 2; */ @java.lang.Override - - public long getYarnMetricsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetYarnMetrics().getMap(); + public long getYarnMetricsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetYarnMetrics().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -908,66 +935,63 @@ public long getYarnMetricsOrThrow( } public Builder clearYarnMetrics() { - internalGetMutableYarnMetrics().getMutableMap() - .clear(); + internalGetMutableYarnMetrics().getMutableMap().clear(); return this; } /** + * + * *
      * The YARN metrics.
      * 
* * map<string, int64> yarn_metrics = 2; */ - - public Builder removeYarnMetrics( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableYarnMetrics().getMutableMap() - .remove(key); + public Builder removeYarnMetrics(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableYarnMetrics().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableYarnMetrics() { + public java.util.Map getMutableYarnMetrics() { return internalGetMutableYarnMetrics().getMutableMap(); } /** + * + * *
      * The YARN metrics.
      * 
* * map<string, int64> yarn_metrics = 2; */ - public Builder putYarnMetrics( - java.lang.String key, - long value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableYarnMetrics().getMutableMap() - .put(key, value); + public Builder putYarnMetrics(java.lang.String key, long value) { + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableYarnMetrics().getMutableMap().put(key, value); return this; } /** + * + * *
      * The YARN metrics.
      * 
* * map<string, int64> yarn_metrics = 2; */ - - public Builder putAllYarnMetrics( - java.util.Map values) { - internalGetMutableYarnMetrics().getMutableMap() - .putAll(values); + public Builder putAllYarnMetrics(java.util.Map values) { + internalGetMutableYarnMetrics().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); } @@ -977,12 +1001,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ClusterMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterMetrics) private static final com.google.cloud.dataproc.v1.ClusterMetrics DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterMetrics(); } @@ -991,27 +1015,27 @@ public static com.google.cloud.dataproc.v1.ClusterMetrics getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1026,6 +1050,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ClusterMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java similarity index 52% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java index 8fbba66c3c39..8cea6493b1c0 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface ClusterMetricsOrBuilder extends +public interface ClusterMetricsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterMetrics) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The HDFS metrics.
    * 
@@ -16,52 +34,52 @@ public interface ClusterMetricsOrBuilder extends */ int getHdfsMetricsCount(); /** + * + * *
    * The HDFS metrics.
    * 
* * map<string, int64> hdfs_metrics = 1; */ - boolean containsHdfsMetrics( - java.lang.String key); - /** - * Use {@link #getHdfsMetricsMap()} instead. - */ + boolean containsHdfsMetrics(java.lang.String key); + /** Use {@link #getHdfsMetricsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getHdfsMetrics(); + java.util.Map getHdfsMetrics(); /** + * + * *
    * The HDFS metrics.
    * 
* * map<string, int64> hdfs_metrics = 1; */ - java.util.Map - getHdfsMetricsMap(); + java.util.Map getHdfsMetricsMap(); /** + * + * *
    * The HDFS metrics.
    * 
* * map<string, int64> hdfs_metrics = 1; */ - - long getHdfsMetricsOrDefault( - java.lang.String key, - long defaultValue); + long getHdfsMetricsOrDefault(java.lang.String key, long defaultValue); /** + * + * *
    * The HDFS metrics.
    * 
* * map<string, int64> hdfs_metrics = 1; */ - - long getHdfsMetricsOrThrow( - java.lang.String key); + long getHdfsMetricsOrThrow(java.lang.String key); /** + * + * *
    * The YARN metrics.
    * 
@@ -70,48 +88,46 @@ long getHdfsMetricsOrThrow( */ int getYarnMetricsCount(); /** + * + * *
    * The YARN metrics.
    * 
* * map<string, int64> yarn_metrics = 2; */ - boolean containsYarnMetrics( - java.lang.String key); - /** - * Use {@link #getYarnMetricsMap()} instead. - */ + boolean containsYarnMetrics(java.lang.String key); + /** Use {@link #getYarnMetricsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getYarnMetrics(); + java.util.Map getYarnMetrics(); /** + * + * *
    * The YARN metrics.
    * 
* * map<string, int64> yarn_metrics = 2; */ - java.util.Map - getYarnMetricsMap(); + java.util.Map getYarnMetricsMap(); /** + * + * *
    * The YARN metrics.
    * 
* * map<string, int64> yarn_metrics = 2; */ - - long getYarnMetricsOrDefault( - java.lang.String key, - long defaultValue); + long getYarnMetricsOrDefault(java.lang.String key, long defaultValue); /** + * + * *
    * The YARN metrics.
    * 
* * map<string, int64> yarn_metrics = 2; */ - - long getYarnMetricsOrThrow( - java.lang.String key); + long getYarnMetricsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java index 93ce744d5aed..1d9c1ca3187f 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * The cluster operation triggered by a workflow.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterOperation} */ -public final class ClusterOperation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ClusterOperation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterOperation) ClusterOperationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClusterOperation.newBuilder() to construct. private ClusterOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ClusterOperation() { operationId_ = ""; error_ = ""; @@ -26,37 +44,41 @@ private ClusterOperation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ClusterOperation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterOperation_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ClusterOperation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterOperation.class, com.google.cloud.dataproc.v1.ClusterOperation.Builder.class); + com.google.cloud.dataproc.v1.ClusterOperation.class, + com.google.cloud.dataproc.v1.ClusterOperation.Builder.class); } public static final int OPERATION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object operationId_; /** + * + * *
    * Output only. The id of the cluster operation.
    * 
* * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The operationId. */ @java.lang.Override @@ -65,29 +87,29 @@ public java.lang.String getOperationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationId_ = s; return s; } } /** + * + * *
    * Output only. The id of the cluster operation.
    * 
* * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for operationId. */ @java.lang.Override - public com.google.protobuf.ByteString - getOperationIdBytes() { + public com.google.protobuf.ByteString getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operationId_ = b; return b; } else { @@ -98,11 +120,14 @@ public java.lang.String getOperationId() { public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** + * + * *
    * Output only. Error, if operation failed.
    * 
* * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The error. */ @java.lang.Override @@ -111,29 +136,29 @@ public java.lang.String getError() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } } /** + * + * *
    * Output only. Error, if operation failed.
    * 
* * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for error. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorBytes() { + public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); error_ = b; return b; } else { @@ -144,11 +169,14 @@ public java.lang.String getError() { public static final int DONE_FIELD_NUMBER = 3; private boolean done_; /** + * + * *
    * Output only. Indicates the operation is done.
    * 
* * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The done. */ @java.lang.Override @@ -157,6 +185,7 @@ public boolean getDone() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +197,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operationId_); } @@ -195,8 +223,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); } if (done_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, done_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, done_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -206,19 +233,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.dataproc.v1.ClusterOperation)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ClusterOperation other = (com.google.cloud.dataproc.v1.ClusterOperation) obj; + com.google.cloud.dataproc.v1.ClusterOperation other = + (com.google.cloud.dataproc.v1.ClusterOperation) obj; - if (!getOperationId() - .equals(other.getOperationId())) return false; - if (!getError() - .equals(other.getError())) return false; - if (getDone() - != other.getDone()) return false; + if (!getOperationId().equals(other.getOperationId())) return false; + if (!getError().equals(other.getError())) return false; + if (getDone() != other.getDone()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -235,137 +260,142 @@ public int hashCode() { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (37 * hash) + DONE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDone()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDone()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterOperation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ClusterOperation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterOperation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.ClusterOperation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 cluster operation triggered by a workflow.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterOperation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterOperation) com.google.cloud.dataproc.v1.ClusterOperationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterOperation_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ClusterOperation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterOperation.class, com.google.cloud.dataproc.v1.ClusterOperation.Builder.class); + com.google.cloud.dataproc.v1.ClusterOperation.class, + com.google.cloud.dataproc.v1.ClusterOperation.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ClusterOperation.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; } @java.lang.Override @@ -400,7 +430,8 @@ public com.google.cloud.dataproc.v1.ClusterOperation build() { @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperation buildPartial() { - com.google.cloud.dataproc.v1.ClusterOperation result = new com.google.cloud.dataproc.v1.ClusterOperation(this); + com.google.cloud.dataproc.v1.ClusterOperation result = + new com.google.cloud.dataproc.v1.ClusterOperation(this); result.operationId_ = operationId_; result.error_ = error_; result.done_ = done_; @@ -412,38 +443,39 @@ public com.google.cloud.dataproc.v1.ClusterOperation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ClusterOperation) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterOperation)other); + return mergeFrom((com.google.cloud.dataproc.v1.ClusterOperation) other); } else { super.mergeFrom(other); return this; @@ -489,27 +521,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - operationId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - error_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - done_ = input.readBool(); - - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + operationId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + error_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + done_ = input.readBool(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -522,18 +558,20 @@ public Builder mergeFrom( private java.lang.Object operationId_ = ""; /** + * + * *
      * Output only. The id of the cluster operation.
      * 
* * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The operationId. */ public java.lang.String getOperationId() { java.lang.Object ref = operationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationId_ = s; return s; @@ -542,20 +580,21 @@ public java.lang.String getOperationId() { } } /** + * + * *
      * Output only. The id of the cluster operation.
      * 
* * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for operationId. */ - public com.google.protobuf.ByteString - getOperationIdBytes() { + public com.google.protobuf.ByteString getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operationId_ = b; return b; } else { @@ -563,54 +602,61 @@ public java.lang.String getOperationId() { } } /** + * + * *
      * Output only. The id of the cluster operation.
      * 
* * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The operationId to set. * @return This builder for chaining. */ - public Builder setOperationId( - java.lang.String value) { + public Builder setOperationId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + operationId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The id of the cluster operation.
      * 
* * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearOperationId() { - + operationId_ = getDefaultInstance().getOperationId(); onChanged(); return this; } /** + * + * *
      * Output only. The id of the cluster operation.
      * 
* * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for operationId to set. * @return This builder for chaining. */ - public Builder setOperationIdBytes( - com.google.protobuf.ByteString value) { + public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationId_ = value; onChanged(); return this; @@ -618,18 +664,20 @@ public Builder setOperationIdBytes( private java.lang.Object error_ = ""; /** + * + * *
      * Output only. Error, if operation failed.
      * 
* * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The error. */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; @@ -638,20 +686,21 @@ public java.lang.String getError() { } } /** + * + * *
      * Output only. Error, if operation failed.
      * 
* * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for error. */ - public com.google.protobuf.ByteString - getErrorBytes() { + public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); error_ = b; return b; } else { @@ -659,66 +708,76 @@ public java.lang.String getError() { } } /** + * + * *
      * Output only. Error, if operation failed.
      * 
* * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The error to set. * @return This builder for chaining. */ - public Builder setError( - java.lang.String value) { + public Builder setError(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + error_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Error, if operation failed.
      * 
* * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearError() { - + error_ = getDefaultInstance().getError(); onChanged(); return this; } /** + * + * *
      * Output only. Error, if operation failed.
      * 
* * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for error to set. * @return This builder for chaining. */ - public Builder setErrorBytes( - com.google.protobuf.ByteString value) { + public Builder setErrorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + error_ = value; onChanged(); return this; } - private boolean done_ ; + private boolean done_; /** + * + * *
      * Output only. Indicates the operation is done.
      * 
* * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The done. */ @java.lang.Override @@ -726,37 +785,43 @@ public boolean getDone() { return done_; } /** + * + * *
      * Output only. Indicates the operation is done.
      * 
* * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The done to set. * @return This builder for chaining. */ public Builder setDone(boolean value) { - + done_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Indicates the operation is done.
      * 
* * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDone() { - + done_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -766,12 +831,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ClusterOperation) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterOperation) private static final com.google.cloud.dataproc.v1.ClusterOperation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterOperation(); } @@ -780,27 +845,27 @@ public static com.google.cloud.dataproc.v1.ClusterOperation getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterOperation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterOperation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -815,6 +880,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ClusterOperation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java index 6a45f59d5939..608c9943fbd6 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/operations.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Metadata describing the operation.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterOperationMetadata} */ -public final class ClusterOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ClusterOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterOperationMetadata) ClusterOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClusterOperationMetadata.newBuilder() to construct. private ClusterOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ClusterOperationMetadata() { clusterName_ = ""; clusterUuid_ = ""; @@ -30,49 +48,52 @@ private ClusterOperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ClusterOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_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 13: 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.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterOperationMetadata.class, com.google.cloud.dataproc.v1.ClusterOperationMetadata.Builder.class); + com.google.cloud.dataproc.v1.ClusterOperationMetadata.class, + com.google.cloud.dataproc.v1.ClusterOperationMetadata.Builder.class); } public static final int CLUSTER_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object clusterName_; /** + * + * *
    * Output only. Name of the cluster for the operation.
    * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterName. */ @java.lang.Override @@ -81,29 +102,29 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** + * + * *
    * Output only. Name of the cluster for the operation.
    * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -114,11 +135,14 @@ public java.lang.String getClusterName() { public static final int CLUSTER_UUID_FIELD_NUMBER = 8; private volatile java.lang.Object clusterUuid_; /** + * + * *
    * Output only. Cluster UUID for the operation.
    * 
* * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterUuid. */ @java.lang.Override @@ -127,29 +151,29 @@ public java.lang.String getClusterUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; } } /** + * + * *
    * Output only. Cluster UUID for the operation.
    * 
* * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterUuid. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterUuidBytes() { + public com.google.protobuf.ByteString getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -160,11 +184,16 @@ public java.lang.String getClusterUuid() { public static final int STATUS_FIELD_NUMBER = 9; private com.google.cloud.dataproc.v1.ClusterOperationStatus status_; /** + * + * *
    * Output only. Current operation status.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the status field is set. */ @java.lang.Override @@ -172,23 +201,34 @@ public boolean hasStatus() { return status_ != null; } /** + * + * *
    * Output only. Current operation status.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatus() { - return status_ == null ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() + : status_; } /** + * + * *
    * Output only. Current operation status.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusOrBuilder() { @@ -198,56 +238,77 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusOrB public static final int STATUS_HISTORY_FIELD_NUMBER = 10; private java.util.List statusHistory_; /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getStatusHistoryList() { + public java.util.List + getStatusHistoryList() { return statusHistory_; } /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getStatusHistoryOrBuilderList() { return statusHistory_; } /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getStatusHistoryCount() { return statusHistory_.size(); } /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatusHistory(int index) { return statusHistory_.get(index); } /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder( @@ -258,11 +319,14 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHis public static final int OPERATION_TYPE_FIELD_NUMBER = 11; private volatile java.lang.Object operationType_; /** + * + * *
    * Output only. The operation type.
    * 
* * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The operationType. */ @java.lang.Override @@ -271,29 +335,29 @@ public java.lang.String getOperationType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationType_ = s; return s; } } /** + * + * *
    * Output only. The operation type.
    * 
* * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for operationType. */ @java.lang.Override - public com.google.protobuf.ByteString - getOperationTypeBytes() { + public com.google.protobuf.ByteString getOperationTypeBytes() { java.lang.Object ref = operationType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operationType_ = b; return b; } else { @@ -304,11 +368,14 @@ public java.lang.String getOperationType() { public static final int DESCRIPTION_FIELD_NUMBER = 12; private volatile java.lang.Object description_; /** + * + * *
    * Output only. Short description of operation.
    * 
* * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The description. */ @java.lang.Override @@ -317,29 +384,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Output only. Short description of operation.
    * 
* * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -348,24 +415,23 @@ public java.lang.String getDescription() { } public static final int LABELS_FIELD_NUMBER = 13; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -374,70 +440,76 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Output only. Labels associated with the operation
    * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @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(); } /** + * + * *
    * Output only. Labels associated with the operation
    * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Output only. Labels associated with the operation
    * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @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; } /** + * + * *
    * Output only. Labels associated with the operation
    * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @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(); } @@ -447,34 +519,42 @@ public java.lang.String getLabelsOrThrow( public static final int WARNINGS_FIELD_NUMBER = 14; private com.google.protobuf.LazyStringList warnings_; /** + * + * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList - getWarningsList() { + public com.google.protobuf.ProtocolStringList getWarningsList() { return warnings_; } /** + * + * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** + * + * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -482,20 +562,23 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** + * + * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString - getWarningsBytes(int index) { + public com.google.protobuf.ByteString getWarningsBytes(int index) { return warnings_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -507,8 +590,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterName_); } @@ -527,12 +609,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, description_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 13); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 13); for (int i = 0; i < warnings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, warnings_.getRaw(i)); } @@ -552,12 +630,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, clusterUuid_); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getStatus()); } for (int i = 0; i < statusHistory_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, statusHistory_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, statusHistory_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, operationType_); @@ -565,15 +641,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, description_); } - 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(13, labels__); + 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(13, labels__); } { int dataSize = 0; @@ -591,32 +667,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ClusterOperationMetadata)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ClusterOperationMetadata other = (com.google.cloud.dataproc.v1.ClusterOperationMetadata) obj; + com.google.cloud.dataproc.v1.ClusterOperationMetadata other = + (com.google.cloud.dataproc.v1.ClusterOperationMetadata) obj; - if (!getClusterName() - .equals(other.getClusterName())) return false; - if (!getClusterUuid() - .equals(other.getClusterUuid())) return false; + if (!getClusterName().equals(other.getClusterName())) return false; + if (!getClusterUuid().equals(other.getClusterUuid())) return false; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus() - .equals(other.getStatus())) return false; - } - if (!getStatusHistoryList() - .equals(other.getStatusHistoryList())) return false; - if (!getOperationType() - .equals(other.getOperationType())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getWarningsList() - .equals(other.getWarningsList())) return false; + if (!getStatus().equals(other.getStatus())) return false; + } + if (!getStatusHistoryList().equals(other.getStatusHistoryList())) return false; + if (!getOperationType().equals(other.getOperationType())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getWarningsList().equals(other.getWarningsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -658,151 +727,156 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.ClusterOperationMetadata 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.dataproc.v1.ClusterOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ClusterOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.ClusterOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata describing the operation.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterOperationMetadata) com.google.cloud.dataproc.v1.ClusterOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 13: 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 13: 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.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterOperationMetadata.class, com.google.cloud.dataproc.v1.ClusterOperationMetadata.Builder.class); + com.google.cloud.dataproc.v1.ClusterOperationMetadata.class, + com.google.cloud.dataproc.v1.ClusterOperationMetadata.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ClusterOperationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -834,9 +908,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; } @java.lang.Override @@ -855,7 +929,8 @@ public com.google.cloud.dataproc.v1.ClusterOperationMetadata build() { @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationMetadata buildPartial() { - com.google.cloud.dataproc.v1.ClusterOperationMetadata result = new com.google.cloud.dataproc.v1.ClusterOperationMetadata(this); + com.google.cloud.dataproc.v1.ClusterOperationMetadata result = + new com.google.cloud.dataproc.v1.ClusterOperationMetadata(this); int from_bitField0_ = bitField0_; result.clusterName_ = clusterName_; result.clusterUuid_ = clusterUuid_; @@ -890,38 +965,39 @@ public com.google.cloud.dataproc.v1.ClusterOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ClusterOperationMetadata) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterOperationMetadata)other); + return mergeFrom((com.google.cloud.dataproc.v1.ClusterOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -929,7 +1005,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterOperationMetadata other) { - if (other == com.google.cloud.dataproc.v1.ClusterOperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.ClusterOperationMetadata.getDefaultInstance()) + return this; if (!other.getClusterName().isEmpty()) { clusterName_ = other.clusterName_; onChanged(); @@ -959,9 +1036,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterOperationMetadata o statusHistoryBuilder_ = null; statusHistory_ = other.statusHistory_; bitField0_ = (bitField0_ & ~0x00000001); - statusHistoryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStatusHistoryFieldBuilder() : null; + statusHistoryBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStatusHistoryFieldBuilder() + : null; } else { statusHistoryBuilder_.addAllMessages(other.statusHistory_); } @@ -975,8 +1053,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterOperationMetadata o description_ = other.description_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.warnings_.isEmpty()) { if (warnings_.isEmpty()) { warnings_ = other.warnings_; @@ -1013,66 +1090,75 @@ public Builder mergeFrom( case 0: done = true; break; - case 58: { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - clusterUuid_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 74 - case 82: { - com.google.cloud.dataproc.v1.ClusterOperationStatus m = - input.readMessage( - com.google.cloud.dataproc.v1.ClusterOperationStatus.parser(), - extensionRegistry); - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(m); - } else { - statusHistoryBuilder_.addMessage(m); - } - break; - } // case 82 - case 90: { - operationType_ = input.readStringRequireUtf8(); - - break; - } // case 90 - case 98: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 106: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 106 - case 114: { - java.lang.String s = input.readStringRequireUtf8(); - ensureWarningsIsMutable(); - warnings_.add(s); - break; - } // case 114 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 58: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + clusterUuid_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + com.google.cloud.dataproc.v1.ClusterOperationStatus m = + input.readMessage( + com.google.cloud.dataproc.v1.ClusterOperationStatus.parser(), + extensionRegistry); + if (statusHistoryBuilder_ == null) { + ensureStatusHistoryIsMutable(); + statusHistory_.add(m); + } else { + statusHistoryBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + operationType_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 106 + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureWarningsIsMutable(); + warnings_.add(s); + break; + } // case 114 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1082,22 +1168,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object clusterName_ = ""; /** + * + * *
      * Output only. Name of the cluster for the operation.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -1106,20 +1195,21 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Output only. Name of the cluster for the operation.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -1127,54 +1217,61 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Output only. Name of the cluster for the operation.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName( - java.lang.String value) { + public Builder setClusterName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name of the cluster for the operation.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** + * + * *
      * Output only. Name of the cluster for the operation.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1182,18 +1279,20 @@ public Builder setClusterNameBytes( private java.lang.Object clusterUuid_ = ""; /** + * + * *
      * Output only. Cluster UUID for the operation.
      * 
* * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterUuid. */ public java.lang.String getClusterUuid() { java.lang.Object ref = clusterUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; @@ -1202,20 +1301,21 @@ public java.lang.String getClusterUuid() { } } /** + * + * *
      * Output only. Cluster UUID for the operation.
      * 
* * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterUuid. */ - public com.google.protobuf.ByteString - getClusterUuidBytes() { + public com.google.protobuf.ByteString getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -1223,54 +1323,61 @@ public java.lang.String getClusterUuid() { } } /** + * + * *
      * Output only. Cluster UUID for the operation.
      * 
* * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuid( - java.lang.String value) { + public Builder setClusterUuid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterUuid_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Cluster UUID for the operation.
      * 
* * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClusterUuid() { - + clusterUuid_ = getDefaultInstance().getClusterUuid(); onChanged(); return this; } /** + * + * *
      * Output only. Cluster UUID for the operation.
      * 
* * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuidBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUuid_ = value; onChanged(); return this; @@ -1278,39 +1385,58 @@ public Builder setClusterUuidBytes( private com.google.cloud.dataproc.v1.ClusterOperationStatus status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> statusBuilder_; + com.google.cloud.dataproc.v1.ClusterOperationStatus, + com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, + com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> + statusBuilder_; /** + * + * *
      * Output only. Current operation status.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus 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. Current operation status.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatus() { if (statusBuilder_ == null) { - return status_ == null ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() + : status_; } else { return statusBuilder_.getMessage(); } } /** + * + * *
      * Output only. Current operation status.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStatus(com.google.cloud.dataproc.v1.ClusterOperationStatus value) { if (statusBuilder_ == null) { @@ -1326,11 +1452,15 @@ public Builder setStatus(com.google.cloud.dataproc.v1.ClusterOperationStatus val return this; } /** + * + * *
      * Output only. Current operation status.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStatus( com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { @@ -1344,17 +1474,23 @@ public Builder setStatus( return this; } /** + * + * *
      * Output only. Current operation status.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStatus(com.google.cloud.dataproc.v1.ClusterOperationStatus value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = - com.google.cloud.dataproc.v1.ClusterOperationStatus.newBuilder(status_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.ClusterOperationStatus.newBuilder(status_) + .mergeFrom(value) + .buildPartial(); } else { status_ = value; } @@ -1366,11 +1502,15 @@ public Builder mergeStatus(com.google.cloud.dataproc.v1.ClusterOperationStatus v return this; } /** + * + * *
      * Output only. Current operation status.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStatus() { if (statusBuilder_ == null) { @@ -1384,73 +1524,100 @@ public Builder clearStatus() { return this; } /** + * + * *
      * Output only. Current operation status.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder getStatusBuilder() { - + onChanged(); return getStatusFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Current operation status.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? - com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() + : status_; } } /** + * + * *
      * Output only. Current operation status.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> + com.google.cloud.dataproc.v1.ClusterOperationStatus, + com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, + com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterOperationStatus, + com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, + com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder>( + getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private java.util.List statusHistory_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStatusHistoryIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - statusHistory_ = new java.util.ArrayList(statusHistory_); + statusHistory_ = + new java.util.ArrayList( + statusHistory_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> statusHistoryBuilder_; + com.google.cloud.dataproc.v1.ClusterOperationStatus, + com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, + com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> + statusHistoryBuilder_; /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getStatusHistoryList() { + public java.util.List + getStatusHistoryList() { if (statusHistoryBuilder_ == null) { return java.util.Collections.unmodifiableList(statusHistory_); } else { @@ -1458,11 +1625,15 @@ public java.util.List getSt } } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getStatusHistoryCount() { if (statusHistoryBuilder_ == null) { @@ -1472,11 +1643,15 @@ public int getStatusHistoryCount() { } } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatusHistory(int index) { if (statusHistoryBuilder_ == null) { @@ -1486,11 +1661,15 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatusHistory(int } } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStatusHistory( int index, com.google.cloud.dataproc.v1.ClusterOperationStatus value) { @@ -1507,11 +1686,15 @@ public Builder setStatusHistory( return this; } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStatusHistory( int index, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { @@ -1525,11 +1708,15 @@ public Builder setStatusHistory( return this; } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStatusHistory(com.google.cloud.dataproc.v1.ClusterOperationStatus value) { if (statusHistoryBuilder_ == null) { @@ -1545,11 +1732,15 @@ public Builder addStatusHistory(com.google.cloud.dataproc.v1.ClusterOperationSta return this; } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStatusHistory( int index, com.google.cloud.dataproc.v1.ClusterOperationStatus value) { @@ -1566,11 +1757,15 @@ public Builder addStatusHistory( return this; } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStatusHistory( com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { @@ -1584,11 +1779,15 @@ public Builder addStatusHistory( return this; } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStatusHistory( int index, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { @@ -1602,18 +1801,21 @@ public Builder addStatusHistory( return this; } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllStatusHistory( java.lang.Iterable values) { if (statusHistoryBuilder_ == null) { ensureStatusHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, statusHistory_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statusHistory_); onChanged(); } else { statusHistoryBuilder_.addAllMessages(values); @@ -1621,11 +1823,15 @@ public Builder addAllStatusHistory( return this; } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStatusHistory() { if (statusHistoryBuilder_ == null) { @@ -1638,11 +1844,15 @@ public Builder clearStatusHistory() { return this; } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeStatusHistory(int index) { if (statusHistoryBuilder_ == null) { @@ -1655,39 +1865,52 @@ public Builder removeStatusHistory(int index) { return this; } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder getStatusHistoryBuilder( int index) { return getStatusHistoryFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder( int index) { if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); } else { + return statusHistory_.get(index); + } else { return statusHistoryBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStatusHistoryOrBuilderList() { + public java.util.List + getStatusHistoryOrBuilderList() { if (statusHistoryBuilder_ != null) { return statusHistoryBuilder_.getMessageOrBuilderList(); } else { @@ -1695,45 +1918,64 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHis } } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder addStatusHistoryBuilder() { - return getStatusHistoryFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()); + return getStatusHistoryFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()); } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder addStatusHistoryBuilder( int index) { - return getStatusHistoryFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()); + return getStatusHistoryFieldBuilder() + .addBuilder( + index, com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()); } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStatusHistoryBuilderList() { + public java.util.List + getStatusHistoryBuilderList() { return getStatusHistoryFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> + com.google.cloud.dataproc.v1.ClusterOperationStatus, + com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, + com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> getStatusHistoryFieldBuilder() { if (statusHistoryBuilder_ == null) { - statusHistoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder>( + statusHistoryBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterOperationStatus, + com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, + com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder>( statusHistory_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1745,18 +1987,20 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder addStatusHist private java.lang.Object operationType_ = ""; /** + * + * *
      * Output only. The operation type.
      * 
* * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The operationType. */ public java.lang.String getOperationType() { java.lang.Object ref = operationType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationType_ = s; return s; @@ -1765,20 +2009,21 @@ public java.lang.String getOperationType() { } } /** + * + * *
      * Output only. The operation type.
      * 
* * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for operationType. */ - public com.google.protobuf.ByteString - getOperationTypeBytes() { + public com.google.protobuf.ByteString getOperationTypeBytes() { java.lang.Object ref = operationType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operationType_ = b; return b; } else { @@ -1786,54 +2031,61 @@ public java.lang.String getOperationType() { } } /** + * + * *
      * Output only. The operation type.
      * 
* * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The operationType to set. * @return This builder for chaining. */ - public Builder setOperationType( - java.lang.String value) { + public Builder setOperationType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + operationType_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The operation type.
      * 
* * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearOperationType() { - + operationType_ = getDefaultInstance().getOperationType(); onChanged(); return this; } /** + * + * *
      * Output only. The operation type.
      * 
* * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for operationType to set. * @return This builder for chaining. */ - public Builder setOperationTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setOperationTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationType_ = value; onChanged(); return this; @@ -1841,18 +2093,20 @@ public Builder setOperationTypeBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Output only. Short description of operation.
      * 
* * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1861,20 +2115,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. Short description of operation.
      * 
* * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1882,75 +2137,81 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. Short description of operation.
      * 
* * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Short description of operation.
      * 
* * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Output only. Short description of operation.
      * 
* * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1962,70 +2223,77 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Output only. Labels associated with the operation
      * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @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(); } /** + * + * *
      * Output only. Labels associated with the operation
      * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Output only. Labels associated with the operation
      * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @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; } /** + * + * *
      * Output only. Labels associated with the operation
      * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @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(); } @@ -2033,103 +2301,113 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Output only. Labels associated with the operation
      * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - 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(); } /** + * + * *
      * Output only. Labels associated with the operation
      * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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; } /** + * + * *
      * Output only. Labels associated with the operation
      * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } - private com.google.protobuf.LazyStringList warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList warnings_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureWarningsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList - getWarningsList() { + public com.google.protobuf.ProtocolStringList getWarningsList() { return warnings_.getUnmodifiableView(); } /** + * + * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** + * + * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -2137,80 +2415,90 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** + * + * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString - getWarningsBytes(int index) { + public com.google.protobuf.ByteString getWarningsBytes(int index) { return warnings_.getByteString(index); } /** + * + * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index to set the value at. * @param value The warnings to set. * @return This builder for chaining. */ - public Builder setWarnings( - int index, java.lang.String value) { + public Builder setWarnings(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The warnings to add. * @return This builder for chaining. */ - public Builder addWarnings( - java.lang.String value) { + public Builder addWarnings(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param values The warnings to add. * @return This builder for chaining. */ - public Builder addAllWarnings( - java.lang.Iterable values) { + public Builder addAllWarnings(java.lang.Iterable values) { ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, warnings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); onChanged(); return this; } /** + * + * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearWarnings() { @@ -2220,28 +2508,30 @@ public Builder clearWarnings() { return this; } /** + * + * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes of the warnings to add. * @return This builder for chaining. */ - public Builder addWarningsBytes( - com.google.protobuf.ByteString value) { + public Builder addWarningsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureWarningsIsMutable(); warnings_.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); } @@ -2251,12 +2541,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ClusterOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterOperationMetadata) private static final com.google.cloud.dataproc.v1.ClusterOperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterOperationMetadata(); } @@ -2265,27 +2555,27 @@ public static com.google.cloud.dataproc.v1.ClusterOperationMetadata getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2300,6 +2590,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ClusterOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java similarity index 63% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java index c9590e3f291a..c9865b12c0e8 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java @@ -1,257 +1,343 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/operations.proto package com.google.cloud.dataproc.v1; -public interface ClusterOperationMetadataOrBuilder extends +public interface ClusterOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Name of the cluster for the operation.
    * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterName. */ java.lang.String getClusterName(); /** + * + * *
    * Output only. Name of the cluster for the operation.
    * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString - getClusterNameBytes(); + com.google.protobuf.ByteString getClusterNameBytes(); /** + * + * *
    * Output only. Cluster UUID for the operation.
    * 
* * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterUuid. */ java.lang.String getClusterUuid(); /** + * + * *
    * Output only. Cluster UUID for the operation.
    * 
* * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterUuid. */ - com.google.protobuf.ByteString - getClusterUuidBytes(); + com.google.protobuf.ByteString getClusterUuidBytes(); /** + * + * *
    * Output only. Current operation status.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the status field is set. */ boolean hasStatus(); /** + * + * *
    * Output only. Current operation status.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ com.google.cloud.dataproc.v1.ClusterOperationStatus getStatus(); /** + * + * *
    * Output only. Current operation status.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusOrBuilder(); /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getStatusHistoryList(); + java.util.List getStatusHistoryList(); /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.ClusterOperationStatus getStatusHistory(int index); /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getStatusHistoryCount(); /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getStatusHistoryOrBuilderList(); /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder( - int index); + com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder(int index); /** + * + * *
    * Output only. The operation type.
    * 
* * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The operationType. */ java.lang.String getOperationType(); /** + * + * *
    * Output only. The operation type.
    * 
* * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for operationType. */ - com.google.protobuf.ByteString - getOperationTypeBytes(); + com.google.protobuf.ByteString getOperationTypeBytes(); /** + * + * *
    * Output only. Short description of operation.
    * 
* * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Output only. Short description of operation.
    * 
* * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. Labels associated with the operation
    * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getLabelsCount(); /** + * + * *
    * Output only. Labels associated with the operation
    * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Output only. Labels associated with the operation
    * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Output only. Labels associated with the operation
    * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Output only. Labels associated with the operation
    * 
* - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the warnings. */ - java.util.List - getWarningsList(); + java.util.List getWarningsList(); /** + * + * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of warnings. */ int getWarningsCount(); /** + * + * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The warnings at the given index. */ java.lang.String getWarnings(int index); /** + * + * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - com.google.protobuf.ByteString - getWarningsBytes(int index); + com.google.protobuf.ByteString getWarningsBytes(int index); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java similarity index 62% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java index 0c910c744903..0c573e43ae19 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java @@ -1,58 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface ClusterOperationOrBuilder extends +public interface ClusterOperationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterOperation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The id of the cluster operation.
    * 
* * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The operationId. */ java.lang.String getOperationId(); /** + * + * *
    * Output only. The id of the cluster operation.
    * 
* * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for operationId. */ - com.google.protobuf.ByteString - getOperationIdBytes(); + com.google.protobuf.ByteString getOperationIdBytes(); /** + * + * *
    * Output only. Error, if operation failed.
    * 
* * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The error. */ java.lang.String getError(); /** + * + * *
    * Output only. Error, if operation failed.
    * 
* * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for error. */ - com.google.protobuf.ByteString - getErrorBytes(); + com.google.protobuf.ByteString getErrorBytes(); /** + * + * *
    * Output only. Indicates the operation is done.
    * 
* * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The done. */ boolean getDone(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java index 1e262130ba94..1c40da9af517 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/operations.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * The status of the operation.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterOperationStatus} */ -public final class ClusterOperationStatus extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ClusterOperationStatus extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterOperationStatus) ClusterOperationStatusOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClusterOperationStatus.newBuilder() to construct. private ClusterOperationStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ClusterOperationStatus() { state_ = 0; innerState_ = ""; @@ -27,39 +45,43 @@ private ClusterOperationStatus() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ClusterOperationStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterOperationStatus.class, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder.class); + com.google.cloud.dataproc.v1.ClusterOperationStatus.class, + com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder.class); } /** + * + * *
    * The operation state.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.ClusterOperationStatus.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unused.
      * 
@@ -68,6 +90,8 @@ public enum State */ UNKNOWN(0), /** + * + * *
      * The operation has been created.
      * 
@@ -76,6 +100,8 @@ public enum State */ PENDING(1), /** + * + * *
      * The operation is running.
      * 
@@ -84,6 +110,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * The operation is done; either cancelled or completed.
      * 
@@ -95,6 +123,8 @@ public enum State ; /** + * + * *
      * Unused.
      * 
@@ -103,6 +133,8 @@ public enum State */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
      * The operation has been created.
      * 
@@ -111,6 +143,8 @@ public enum State */ public static final int PENDING_VALUE = 1; /** + * + * *
      * The operation is running.
      * 
@@ -119,6 +153,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * The operation is done; either cancelled or completed.
      * 
@@ -127,7 +163,6 @@ public enum State */ public static final int DONE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -152,50 +187,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return PENDING; - case 2: return RUNNING; - case 3: return DONE; - default: return null; + case 0: + return UNKNOWN; + case 1: + return PENDING; + case 2: + return RUNNING; + case 3: + return DONE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClusterOperationStatus.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClusterOperationStatus.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; @@ -215,38 +253,56 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** + * + * *
    * Output only. A message containing the operation state.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. A message containing the operation state.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationStatus.State getState() { + @java.lang.Override + public com.google.cloud.dataproc.v1.ClusterOperationStatus.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ClusterOperationStatus.State result = com.google.cloud.dataproc.v1.ClusterOperationStatus.State.valueOf(state_); - return result == null ? com.google.cloud.dataproc.v1.ClusterOperationStatus.State.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.ClusterOperationStatus.State result = + com.google.cloud.dataproc.v1.ClusterOperationStatus.State.valueOf(state_); + return result == null + ? com.google.cloud.dataproc.v1.ClusterOperationStatus.State.UNRECOGNIZED + : result; } public static final int INNER_STATE_FIELD_NUMBER = 2; private volatile java.lang.Object innerState_; /** + * + * *
    * Output only. A message containing the detailed operation state.
    * 
* * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The innerState. */ @java.lang.Override @@ -255,29 +311,29 @@ public java.lang.String getInnerState() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); innerState_ = s; return s; } } /** + * + * *
    * Output only. A message containing the detailed operation state.
    * 
* * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for innerState. */ @java.lang.Override - public com.google.protobuf.ByteString - getInnerStateBytes() { + public com.google.protobuf.ByteString getInnerStateBytes() { java.lang.Object ref = innerState_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); innerState_ = b; return b; } else { @@ -288,11 +344,14 @@ public java.lang.String getInnerState() { public static final int DETAILS_FIELD_NUMBER = 3; private volatile java.lang.Object details_; /** + * + * *
    * Output only. A message containing any operation metadata details.
    * 
* * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The details. */ @java.lang.Override @@ -301,29 +360,29 @@ public java.lang.String getDetails() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; } } /** + * + * *
    * Output only. A message containing any operation metadata details.
    * 
* * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for details. */ @java.lang.Override - public com.google.protobuf.ByteString - getDetailsBytes() { + public com.google.protobuf.ByteString getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); details_ = b; return b; } else { @@ -334,11 +393,16 @@ public java.lang.String getDetails() { public static final int STATE_START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp stateStartTime_; /** + * + * *
    * Output only. The time this state was entered.
    * 
* - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateStartTime field is set. */ @java.lang.Override @@ -346,23 +410,34 @@ public boolean hasStateStartTime() { return stateStartTime_ != null; } /** + * + * *
    * Output only. The time this state was entered.
    * 
* - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStateStartTime() { - return stateStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; + return stateStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateStartTime_; } /** + * + * *
    * Output only. The time this state was entered.
    * 
* - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { @@ -370,6 +445,7 @@ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,8 +457,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (state_ != com.google.cloud.dataproc.v1.ClusterOperationStatus.State.UNKNOWN.getNumber()) { output.writeEnum(1, state_); } @@ -405,8 +480,7 @@ public int getSerializedSize() { size = 0; if (state_ != com.google.cloud.dataproc.v1.ClusterOperationStatus.State.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(innerState_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, innerState_); @@ -415,8 +489,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, details_); } if (stateStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getStateStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStateStartTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -426,22 +499,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ClusterOperationStatus)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ClusterOperationStatus other = (com.google.cloud.dataproc.v1.ClusterOperationStatus) obj; + com.google.cloud.dataproc.v1.ClusterOperationStatus other = + (com.google.cloud.dataproc.v1.ClusterOperationStatus) obj; if (state_ != other.state_) return false; - if (!getInnerState() - .equals(other.getInnerState())) return false; - if (!getDetails() - .equals(other.getDetails())) return false; + if (!getInnerState().equals(other.getInnerState())) return false; + if (!getDetails().equals(other.getDetails())) return false; if (hasStateStartTime() != other.hasStateStartTime()) return false; if (hasStateStartTime()) { - if (!getStateStartTime() - .equals(other.getStateStartTime())) return false; + if (!getStateStartTime().equals(other.getStateStartTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -470,129 +541,135 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.ClusterOperationStatus 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.dataproc.v1.ClusterOperationStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.ClusterOperationStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 status of the operation.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterOperationStatus} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterOperationStatus) com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterOperationStatus.class, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder.class); + com.google.cloud.dataproc.v1.ClusterOperationStatus.class, + com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ClusterOperationStatus.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -612,9 +689,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; } @java.lang.Override @@ -633,7 +710,8 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatus build() { @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationStatus buildPartial() { - com.google.cloud.dataproc.v1.ClusterOperationStatus result = new com.google.cloud.dataproc.v1.ClusterOperationStatus(this); + com.google.cloud.dataproc.v1.ClusterOperationStatus result = + new com.google.cloud.dataproc.v1.ClusterOperationStatus(this); result.state_ = state_; result.innerState_ = innerState_; result.details_ = details_; @@ -650,38 +728,39 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatus buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ClusterOperationStatus) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterOperationStatus)other); + return mergeFrom((com.google.cloud.dataproc.v1.ClusterOperationStatus) other); } else { super.mergeFrom(other); return this; @@ -689,7 +768,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterOperationStatus other) { - if (other == com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()) + return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -730,34 +810,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - state_ = input.readEnum(); - - break; - } // case 8 - case 18: { - innerState_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - details_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - input.readMessage( - getStateStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + state_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + innerState_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + details_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + input.readMessage(getStateStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -770,51 +853,75 @@ public Builder mergeFrom( private int state_ = 0; /** + * + * *
      * Output only. A message containing the operation state.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. A message containing the operation state.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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; } /** + * + * *
      * Output only. A message containing the operation state.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationStatus.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ClusterOperationStatus.State result = com.google.cloud.dataproc.v1.ClusterOperationStatus.State.valueOf(state_); - return result == null ? com.google.cloud.dataproc.v1.ClusterOperationStatus.State.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.ClusterOperationStatus.State result = + com.google.cloud.dataproc.v1.ClusterOperationStatus.State.valueOf(state_); + return result == null + ? com.google.cloud.dataproc.v1.ClusterOperationStatus.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. A message containing the operation state.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -822,21 +929,26 @@ public Builder setState(com.google.cloud.dataproc.v1.ClusterOperationStatus.Stat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. A message containing the operation state.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -844,18 +956,20 @@ public Builder clearState() { private java.lang.Object innerState_ = ""; /** + * + * *
      * Output only. A message containing the detailed operation state.
      * 
* * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The innerState. */ public java.lang.String getInnerState() { java.lang.Object ref = innerState_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); innerState_ = s; return s; @@ -864,20 +978,21 @@ public java.lang.String getInnerState() { } } /** + * + * *
      * Output only. A message containing the detailed operation state.
      * 
* * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for innerState. */ - public com.google.protobuf.ByteString - getInnerStateBytes() { + public com.google.protobuf.ByteString getInnerStateBytes() { java.lang.Object ref = innerState_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); innerState_ = b; return b; } else { @@ -885,54 +1000,61 @@ public java.lang.String getInnerState() { } } /** + * + * *
      * Output only. A message containing the detailed operation state.
      * 
* * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The innerState to set. * @return This builder for chaining. */ - public Builder setInnerState( - java.lang.String value) { + public Builder setInnerState(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + innerState_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A message containing the detailed operation state.
      * 
* * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearInnerState() { - + innerState_ = getDefaultInstance().getInnerState(); onChanged(); return this; } /** + * + * *
      * Output only. A message containing the detailed operation state.
      * 
* * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for innerState to set. * @return This builder for chaining. */ - public Builder setInnerStateBytes( - com.google.protobuf.ByteString value) { + public Builder setInnerStateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + innerState_ = value; onChanged(); return this; @@ -940,18 +1062,20 @@ public Builder setInnerStateBytes( private java.lang.Object details_ = ""; /** + * + * *
      * Output only. A message containing any operation metadata details.
      * 
* * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The details. */ public java.lang.String getDetails() { java.lang.Object ref = details_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; @@ -960,20 +1084,21 @@ public java.lang.String getDetails() { } } /** + * + * *
      * Output only. A message containing any operation metadata details.
      * 
* * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for details. */ - public com.google.protobuf.ByteString - getDetailsBytes() { + public com.google.protobuf.ByteString getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); details_ = b; return b; } else { @@ -981,54 +1106,61 @@ public java.lang.String getDetails() { } } /** + * + * *
      * Output only. A message containing any operation metadata details.
      * 
* * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The details to set. * @return This builder for chaining. */ - public Builder setDetails( - java.lang.String value) { + public Builder setDetails(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + details_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A message containing any operation metadata details.
      * 
* * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDetails() { - + details_ = getDefaultInstance().getDetails(); onChanged(); return this; } /** + * + * *
      * Output only. A message containing any operation metadata details.
      * 
* * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for details to set. * @return This builder for chaining. */ - public Builder setDetailsBytes( - com.google.protobuf.ByteString value) { + public Builder setDetailsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + details_ = value; onChanged(); return this; @@ -1036,39 +1168,58 @@ public Builder setDetailsBytes( private com.google.protobuf.Timestamp stateStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> stateStartTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + stateStartTimeBuilder_; /** + * + * *
      * Output only. The time this state was entered.
      * 
* - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateStartTime field is set. */ public boolean hasStateStartTime() { return stateStartTimeBuilder_ != null || stateStartTime_ != null; } /** + * + * *
      * Output only. The time this state was entered.
      * 
* - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateStartTime. */ public com.google.protobuf.Timestamp getStateStartTime() { if (stateStartTimeBuilder_ == null) { - return stateStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; + return stateStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateStartTime_; } else { return stateStartTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time this state was entered.
      * 
* - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStateStartTime(com.google.protobuf.Timestamp value) { if (stateStartTimeBuilder_ == null) { @@ -1084,14 +1235,17 @@ public Builder setStateStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time this state was entered.
      * 
* - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStateStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (stateStartTimeBuilder_ == null) { stateStartTime_ = builderForValue.build(); onChanged(); @@ -1102,17 +1256,23 @@ public Builder setStateStartTime( return this; } /** + * + * *
      * Output only. The time this state was entered.
      * 
* - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { if (stateStartTimeBuilder_ == null) { if (stateStartTime_ != null) { stateStartTime_ = - com.google.protobuf.Timestamp.newBuilder(stateStartTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(stateStartTime_) + .mergeFrom(value) + .buildPartial(); } else { stateStartTime_ = value; } @@ -1124,11 +1284,15 @@ public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time this state was entered.
      * 
* - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStateStartTime() { if (stateStartTimeBuilder_ == null) { @@ -1142,55 +1306,71 @@ public Builder clearStateStartTime() { return this; } /** + * + * *
      * Output only. The time this state was entered.
      * 
* - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStateStartTimeBuilder() { - + onChanged(); return getStateStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time this state was entered.
      * 
* - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { if (stateStartTimeBuilder_ != null) { return stateStartTimeBuilder_.getMessageOrBuilder(); } else { - return stateStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; + return stateStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateStartTime_; } } /** + * + * *
      * Output only. The time this state was entered.
      * 
* - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 4 [(.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> getStateStartTimeFieldBuilder() { if (stateStartTimeBuilder_ == null) { - stateStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStateStartTime(), - getParentForChildren(), - isClean()); + stateStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStateStartTime(), getParentForChildren(), isClean()); stateStartTime_ = null; } return stateStartTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1200,12 +1380,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ClusterOperationStatus) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterOperationStatus) private static final com.google.cloud.dataproc.v1.ClusterOperationStatus DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterOperationStatus(); } @@ -1214,27 +1394,27 @@ public static com.google.cloud.dataproc.v1.ClusterOperationStatus getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterOperationStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterOperationStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1249,6 +1429,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ClusterOperationStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java similarity index 58% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java index 0e2bd8528260..5f2a78e0b523 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java @@ -1,95 +1,145 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/operations.proto package com.google.cloud.dataproc.v1; -public interface ClusterOperationStatusOrBuilder extends +public interface ClusterOperationStatusOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterOperationStatus) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. A message containing the operation state.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. A message containing the operation state.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.dataproc.v1.ClusterOperationStatus.State getState(); /** + * + * *
    * Output only. A message containing the detailed operation state.
    * 
* * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The innerState. */ java.lang.String getInnerState(); /** + * + * *
    * Output only. A message containing the detailed operation state.
    * 
* * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for innerState. */ - com.google.protobuf.ByteString - getInnerStateBytes(); + com.google.protobuf.ByteString getInnerStateBytes(); /** + * + * *
    * Output only. A message containing any operation metadata details.
    * 
* * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The details. */ java.lang.String getDetails(); /** + * + * *
    * Output only. A message containing any operation metadata details.
    * 
* * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for details. */ - com.google.protobuf.ByteString - getDetailsBytes(); + com.google.protobuf.ByteString getDetailsBytes(); /** + * + * *
    * Output only. The time this state was entered.
    * 
* - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateStartTime field is set. */ boolean hasStateStartTime(); /** + * + * *
    * Output only. The time this state was entered.
    * 
* - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateStartTime. */ com.google.protobuf.Timestamp getStateStartTime(); /** + * + * *
    * Output only. The time this state was entered.
    * 
* - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java similarity index 72% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java index 2ad6b52e8f00..060b1fe35569 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface ClusterOrBuilder extends +public interface ClusterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.Cluster) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Google Cloud Platform project ID that the cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The Google Cloud Platform project ID that the cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Required. The cluster name, which must be unique within a project.
    * The name must start with a lowercase letter, and can contain
@@ -36,10 +59,13 @@ public interface ClusterOrBuilder extends
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ java.lang.String getClusterName(); /** + * + * *
    * Required. The cluster name, which must be unique within a project.
    * The name must start with a lowercase letter, and can contain
@@ -48,45 +74,61 @@ public interface ClusterOrBuilder extends
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString - getClusterNameBytes(); + com.google.protobuf.ByteString getClusterNameBytes(); /** + * + * *
    * Optional. The cluster config for a cluster of Compute Engine Instances.
    * Note that Dataproc may set default values, and values may change
    * when clusters are updated.
    * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Optional. The cluster config for a cluster of Compute Engine Instances.
    * Note that Dataproc may set default values, and values may change
    * when clusters are updated.
    * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The config. */ com.google.cloud.dataproc.v1.ClusterConfig getConfig(); /** + * + * *
    * Optional. The cluster config for a cluster of Compute Engine Instances.
    * Note that Dataproc may set default values, and values may change
    * when clusters are updated.
    * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * Optional. The virtual cluster config is used when creating a Dataproc
    * cluster that does not directly control the underlying compute resources,
@@ -99,11 +141,16 @@ public interface ClusterOrBuilder extends
    * must be specified.
    * 
* - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the virtualClusterConfig field is set. */ boolean hasVirtualClusterConfig(); /** + * + * *
    * Optional. The virtual cluster config is used when creating a Dataproc
    * cluster that does not directly control the underlying compute resources,
@@ -116,11 +163,16 @@ public interface ClusterOrBuilder extends
    * must be specified.
    * 
* - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The virtualClusterConfig. */ com.google.cloud.dataproc.v1.VirtualClusterConfig getVirtualClusterConfig(); /** + * + * *
    * Optional. The virtual cluster config is used when creating a Dataproc
    * cluster that does not directly control the underlying compute resources,
@@ -133,11 +185,15 @@ public interface ClusterOrBuilder extends
    * must be specified.
    * 
* - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder getVirtualClusterConfigOrBuilder(); /** + * + * *
    * Optional. The labels to associate with this cluster.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -152,6 +208,8 @@ public interface ClusterOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -164,15 +222,13 @@ public interface ClusterOrBuilder extends
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  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();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -185,9 +241,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -202,11 +259,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -219,133 +278,182 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. Cluster status.
    * 
* - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the status field is set. */ boolean hasStatus(); /** + * + * *
    * Output only. Cluster status.
    * 
* - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ com.google.cloud.dataproc.v1.ClusterStatus getStatus(); /** + * + * *
    * Output only. Cluster status.
    * 
* - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusOrBuilder(); /** + * + * *
    * Output only. The previous cluster status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getStatusHistoryList(); + java.util.List getStatusHistoryList(); /** + * + * *
    * Output only. The previous cluster status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.ClusterStatus getStatusHistory(int index); /** + * + * *
    * Output only. The previous cluster status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getStatusHistoryCount(); /** + * + * *
    * Output only. The previous cluster status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getStatusHistoryOrBuilderList(); /** + * + * *
    * Output only. The previous cluster status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusHistoryOrBuilder( - int index); + com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusHistoryOrBuilder(int index); /** + * + * *
    * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
    * generates this value when it creates the cluster.
    * 
* * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterUuid. */ java.lang.String getClusterUuid(); /** + * + * *
    * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
    * generates this value when it creates the cluster.
    * 
* * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterUuid. */ - com.google.protobuf.ByteString - getClusterUuidBytes(); + com.google.protobuf.ByteString getClusterUuidBytes(); /** + * + * *
    * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
    * **Beta Feature**: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the metrics field is set. */ boolean hasMetrics(); /** + * + * *
    * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
    * **Beta Feature**: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The metrics. */ com.google.cloud.dataproc.v1.ClusterMetrics getMetrics(); /** + * + * *
    * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
    * **Beta Feature**: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder getMetricsOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterRegionName.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterRegionName.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterRegionName.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterRegionName.java diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java similarity index 62% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java index d8bb40c2ea5c..e59022b65975 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java @@ -1,68 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A selector that chooses target cluster for jobs based on metadata.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterSelector} */ -public final class ClusterSelector extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ClusterSelector extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterSelector) ClusterSelectorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClusterSelector.newBuilder() to construct. private ClusterSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ClusterSelector() { zone_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ClusterSelector(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetClusterLabels(); 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.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterSelector_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ClusterSelector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterSelector.class, com.google.cloud.dataproc.v1.ClusterSelector.Builder.class); + com.google.cloud.dataproc.v1.ClusterSelector.class, + com.google.cloud.dataproc.v1.ClusterSelector.Builder.class); } public static final int ZONE_FIELD_NUMBER = 1; private volatile java.lang.Object zone_; /** + * + * *
    * Optional. The zone where workflow process executes. This parameter does not
    * affect the selection of the cluster.
@@ -71,6 +91,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The zone. */ @java.lang.Override @@ -79,14 +100,15 @@ public java.lang.String getZone() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zone_ = s; return s; } } /** + * + * *
    * Optional. The zone where workflow process executes. This parameter does not
    * affect the selection of the cluster.
@@ -95,16 +117,15 @@ public java.lang.String getZone() {
    * 
* * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for zone. */ @java.lang.Override - public com.google.protobuf.ByteString - getZoneBytes() { + public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); zone_ = b; return b; } else { @@ -113,21 +134,22 @@ public java.lang.String getZone() { } public static final int CLUSTER_LABELS_FIELD_NUMBER = 2; + private static final class ClusterLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterSelector_ClusterLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> clusterLabels_; + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ClusterSelector_ClusterLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField clusterLabels_; + private com.google.protobuf.MapField - internalGetClusterLabels() { + internalGetClusterLabels() { if (clusterLabels_ == null) { return com.google.protobuf.MapField.emptyMapField( ClusterLabelsDefaultEntryHolder.defaultEntry); @@ -139,74 +161,81 @@ public int getClusterLabelsCount() { return internalGetClusterLabels().getMap().size(); } /** + * + * *
    * Required. The cluster labels. Cluster must have all labels
    * to match.
    * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - @java.lang.Override - public boolean containsClusterLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsClusterLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetClusterLabels().getMap().containsKey(key); } - /** - * Use {@link #getClusterLabelsMap()} instead. - */ + /** Use {@link #getClusterLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getClusterLabels() { return getClusterLabelsMap(); } /** + * + * *
    * Required. The cluster labels. Cluster must have all labels
    * to match.
    * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.Map getClusterLabelsMap() { return internalGetClusterLabels().getMap(); } /** + * + * *
    * Required. The cluster labels. Cluster must have all labels
    * to match.
    * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.lang.String getClusterLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetClusterLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetClusterLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Required. The cluster labels. Cluster must have all labels
    * to match.
    * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - - public java.lang.String getClusterLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetClusterLabels().getMap(); + public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetClusterLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -214,6 +243,7 @@ public java.lang.String getClusterLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,17 +255,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(zone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, zone_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetClusterLabels(), - ClusterLabelsDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetClusterLabels(), ClusterLabelsDefaultEntryHolder.defaultEntry, 2); getUnknownFields().writeTo(output); } @@ -248,15 +273,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, zone_); } - for (java.util.Map.Entry entry - : internalGetClusterLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - clusterLabels__ = ClusterLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, clusterLabels__); + for (java.util.Map.Entry entry : + internalGetClusterLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry clusterLabels__ = + ClusterLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, clusterLabels__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -266,17 +291,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ClusterSelector)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ClusterSelector other = (com.google.cloud.dataproc.v1.ClusterSelector) obj; + com.google.cloud.dataproc.v1.ClusterSelector other = + (com.google.cloud.dataproc.v1.ClusterSelector) obj; - if (!getZone() - .equals(other.getZone())) return false; - if (!internalGetClusterLabels().equals( - other.internalGetClusterLabels())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!internalGetClusterLabels().equals(other.internalGetClusterLabels())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -299,152 +323,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterSelector parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ClusterSelector parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterSelector parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.ClusterSelector prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 selector that chooses target cluster for jobs based on metadata.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterSelector} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterSelector) com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetClusterLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableClusterLabels(); 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.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterSelector_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ClusterSelector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterSelector.class, com.google.cloud.dataproc.v1.ClusterSelector.Builder.class); + com.google.cloud.dataproc.v1.ClusterSelector.class, + com.google.cloud.dataproc.v1.ClusterSelector.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ClusterSelector.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -455,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; } @java.lang.Override @@ -476,7 +504,8 @@ public com.google.cloud.dataproc.v1.ClusterSelector build() { @java.lang.Override public com.google.cloud.dataproc.v1.ClusterSelector buildPartial() { - com.google.cloud.dataproc.v1.ClusterSelector result = new com.google.cloud.dataproc.v1.ClusterSelector(this); + com.google.cloud.dataproc.v1.ClusterSelector result = + new com.google.cloud.dataproc.v1.ClusterSelector(this); int from_bitField0_ = bitField0_; result.zone_ = zone_; result.clusterLabels_ = internalGetClusterLabels(); @@ -489,38 +518,39 @@ public com.google.cloud.dataproc.v1.ClusterSelector buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ClusterSelector) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterSelector)other); + return mergeFrom((com.google.cloud.dataproc.v1.ClusterSelector) other); } else { super.mergeFrom(other); return this; @@ -533,8 +563,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterSelector other) { zone_ = other.zone_; onChanged(); } - internalGetMutableClusterLabels().mergeFrom( - other.internalGetClusterLabels()); + internalGetMutableClusterLabels().mergeFrom(other.internalGetClusterLabels()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -561,25 +590,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - com.google.protobuf.MapEntry - clusterLabels__ = input.readMessage( - ClusterLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableClusterLabels().getMutableMap().put( - clusterLabels__.getKey(), clusterLabels__.getValue()); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry clusterLabels__ = + input.readMessage( + ClusterLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableClusterLabels() + .getMutableMap() + .put(clusterLabels__.getKey(), clusterLabels__.getValue()); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -589,10 +623,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object zone_ = ""; /** + * + * *
      * Optional. The zone where workflow process executes. This parameter does not
      * affect the selection of the cluster.
@@ -601,13 +638,13 @@ public Builder mergeFrom(
      * 
* * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The zone. */ public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zone_ = s; return s; @@ -616,6 +653,8 @@ public java.lang.String getZone() { } } /** + * + * *
      * Optional. The zone where workflow process executes. This parameter does not
      * affect the selection of the cluster.
@@ -624,15 +663,14 @@ public java.lang.String getZone() {
      * 
* * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for zone. */ - public com.google.protobuf.ByteString - getZoneBytes() { + public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); zone_ = b; return b; } else { @@ -640,6 +678,8 @@ public java.lang.String getZone() { } } /** + * + * *
      * Optional. The zone where workflow process executes. This parameter does not
      * affect the selection of the cluster.
@@ -648,20 +688,22 @@ public java.lang.String getZone() {
      * 
* * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The zone to set. * @return This builder for chaining. */ - public Builder setZone( - java.lang.String value) { + public Builder setZone(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + zone_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The zone where workflow process executes. This parameter does not
      * affect the selection of the cluster.
@@ -670,15 +712,18 @@ public Builder setZone(
      * 
* * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearZone() { - + zone_ = getDefaultInstance().getZone(); onChanged(); return this; } /** + * + * *
      * Optional. The zone where workflow process executes. This parameter does not
      * affect the selection of the cluster.
@@ -687,37 +732,39 @@ public Builder clearZone() {
      * 
* * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for zone to set. * @return This builder for chaining. */ - public Builder setZoneBytes( - com.google.protobuf.ByteString value) { + public Builder setZoneBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> clusterLabels_; + private com.google.protobuf.MapField clusterLabels_; + private com.google.protobuf.MapField - internalGetClusterLabels() { + internalGetClusterLabels() { if (clusterLabels_ == null) { return com.google.protobuf.MapField.emptyMapField( ClusterLabelsDefaultEntryHolder.defaultEntry); } return clusterLabels_; } + private com.google.protobuf.MapField - internalGetMutableClusterLabels() { - onChanged();; + internalGetMutableClusterLabels() { + onChanged(); + ; if (clusterLabels_ == null) { - clusterLabels_ = com.google.protobuf.MapField.newMapField( - ClusterLabelsDefaultEntryHolder.defaultEntry); + clusterLabels_ = + com.google.protobuf.MapField.newMapField(ClusterLabelsDefaultEntryHolder.defaultEntry); } if (!clusterLabels_.isMutable()) { clusterLabels_ = clusterLabels_.copy(); @@ -729,74 +776,81 @@ public int getClusterLabelsCount() { return internalGetClusterLabels().getMap().size(); } /** + * + * *
      * Required. The cluster labels. Cluster must have all labels
      * to match.
      * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - @java.lang.Override - public boolean containsClusterLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsClusterLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetClusterLabels().getMap().containsKey(key); } - /** - * Use {@link #getClusterLabelsMap()} instead. - */ + /** Use {@link #getClusterLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getClusterLabels() { return getClusterLabelsMap(); } /** + * + * *
      * Required. The cluster labels. Cluster must have all labels
      * to match.
      * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.Map getClusterLabelsMap() { return internalGetClusterLabels().getMap(); } /** + * + * *
      * Required. The cluster labels. Cluster must have all labels
      * to match.
      * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.lang.String getClusterLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetClusterLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetClusterLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Required. The cluster labels. Cluster must have all labels
      * to match.
      * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - - public java.lang.String getClusterLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetClusterLabels().getMap(); + public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetClusterLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -804,72 +858,72 @@ public java.lang.String getClusterLabelsOrThrow( } public Builder clearClusterLabels() { - internalGetMutableClusterLabels().getMutableMap() - .clear(); + internalGetMutableClusterLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Required. The cluster labels. Cluster must have all labels
      * to match.
      * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - - public Builder removeClusterLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableClusterLabels().getMutableMap() - .remove(key); + public Builder removeClusterLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableClusterLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableClusterLabels() { + public java.util.Map getMutableClusterLabels() { return internalGetMutableClusterLabels().getMutableMap(); } /** + * + * *
      * Required. The cluster labels. Cluster must have all labels
      * to match.
      * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder putClusterLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putClusterLabels(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"); + } - internalGetMutableClusterLabels().getMutableMap() - .put(key, value); + internalGetMutableClusterLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Required. The cluster labels. Cluster must have all labels
      * to match.
      * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - - public Builder putAllClusterLabels( - java.util.Map values) { - internalGetMutableClusterLabels().getMutableMap() - .putAll(values); + public Builder putAllClusterLabels(java.util.Map values) { + internalGetMutableClusterLabels().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); } @@ -879,12 +933,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ClusterSelector) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterSelector) private static final com.google.cloud.dataproc.v1.ClusterSelector DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterSelector(); } @@ -893,27 +947,27 @@ public static com.google.cloud.dataproc.v1.ClusterSelector getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterSelector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterSelector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -928,6 +982,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ClusterSelector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java similarity index 59% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java index df7c1d6f9ecd..41485dec836a 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface ClusterSelectorOrBuilder extends +public interface ClusterSelectorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterSelector) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The zone where workflow process executes. This parameter does not
    * affect the selection of the cluster.
@@ -16,10 +34,13 @@ public interface ClusterSelectorOrBuilder extends
    * 
* * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The zone. */ java.lang.String getZone(); /** + * + * *
    * Optional. The zone where workflow process executes. This parameter does not
    * affect the selection of the cluster.
@@ -28,69 +49,77 @@ public interface ClusterSelectorOrBuilder extends
    * 
* * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for zone. */ - com.google.protobuf.ByteString - getZoneBytes(); + com.google.protobuf.ByteString getZoneBytes(); /** + * + * *
    * Required. The cluster labels. Cluster must have all labels
    * to match.
    * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ int getClusterLabelsCount(); /** + * + * *
    * Required. The cluster labels. Cluster must have all labels
    * to match.
    * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - boolean containsClusterLabels( - java.lang.String key); - /** - * Use {@link #getClusterLabelsMap()} instead. + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ + boolean containsClusterLabels(java.lang.String key); + /** Use {@link #getClusterLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getClusterLabels(); + java.util.Map getClusterLabels(); /** + * + * *
    * Required. The cluster labels. Cluster must have all labels
    * to match.
    * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.Map - getClusterLabelsMap(); + java.util.Map getClusterLabelsMap(); /** + * + * *
    * Required. The cluster labels. Cluster must have all labels
    * to match.
    * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ /* nullable */ -java.lang.String getClusterLabelsOrDefault( + java.lang.String getClusterLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Required. The cluster labels. Cluster must have all labels
    * to match.
    * 
* - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - - java.lang.String getClusterLabelsOrThrow( - java.lang.String key); + java.lang.String getClusterLabelsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java similarity index 66% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java index fb5b079b19c5..9dd67ad2f0c5 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * The status of a cluster and its instances.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterStatus} */ -public final class ClusterStatus extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ClusterStatus extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterStatus) ClusterStatusOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClusterStatus.newBuilder() to construct. private ClusterStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ClusterStatus() { state_ = 0; detail_ = ""; @@ -27,39 +45,43 @@ private ClusterStatus() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ClusterStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterStatus.class, com.google.cloud.dataproc.v1.ClusterStatus.Builder.class); + com.google.cloud.dataproc.v1.ClusterStatus.class, + com.google.cloud.dataproc.v1.ClusterStatus.Builder.class); } /** + * + * *
    * The cluster state.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.ClusterStatus.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The cluster state is unknown.
      * 
@@ -68,6 +90,8 @@ public enum State */ UNKNOWN(0), /** + * + * *
      * The cluster is being created and set up. It is not ready for use.
      * 
@@ -76,6 +100,8 @@ public enum State */ CREATING(1), /** + * + * *
      * The cluster is currently running and healthy. It is ready for use.
      * **Note:** The cluster state changes from "creating" to "running" status
@@ -87,6 +113,8 @@ public enum State
      */
     RUNNING(2),
     /**
+     *
+     *
      * 
      * The cluster encountered an error. It is not ready for use.
      * 
@@ -95,6 +123,8 @@ public enum State */ ERROR(3), /** + * + * *
      * The cluster has encountered an error while being updated. Jobs can
      * be submitted to the cluster, but the cluster cannot be updated.
@@ -104,6 +134,8 @@ public enum State
      */
     ERROR_DUE_TO_UPDATE(9),
     /**
+     *
+     *
      * 
      * The cluster is being deleted. It cannot be used.
      * 
@@ -112,6 +144,8 @@ public enum State */ DELETING(4), /** + * + * *
      * The cluster is being updated. It continues to accept and process jobs.
      * 
@@ -120,6 +154,8 @@ public enum State */ UPDATING(5), /** + * + * *
      * The cluster is being stopped. It cannot be used.
      * 
@@ -128,6 +164,8 @@ public enum State */ STOPPING(6), /** + * + * *
      * The cluster is currently stopped. It is not ready for use.
      * 
@@ -136,6 +174,8 @@ public enum State */ STOPPED(7), /** + * + * *
      * The cluster is being started. It is not ready for use.
      * 
@@ -147,6 +187,8 @@ public enum State ; /** + * + * *
      * The cluster state is unknown.
      * 
@@ -155,6 +197,8 @@ public enum State */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
      * The cluster is being created and set up. It is not ready for use.
      * 
@@ -163,6 +207,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * The cluster is currently running and healthy. It is ready for use.
      * **Note:** The cluster state changes from "creating" to "running" status
@@ -174,6 +220,8 @@ public enum State
      */
     public static final int RUNNING_VALUE = 2;
     /**
+     *
+     *
      * 
      * The cluster encountered an error. It is not ready for use.
      * 
@@ -182,6 +230,8 @@ public enum State */ public static final int ERROR_VALUE = 3; /** + * + * *
      * The cluster has encountered an error while being updated. Jobs can
      * be submitted to the cluster, but the cluster cannot be updated.
@@ -191,6 +241,8 @@ public enum State
      */
     public static final int ERROR_DUE_TO_UPDATE_VALUE = 9;
     /**
+     *
+     *
      * 
      * The cluster is being deleted. It cannot be used.
      * 
@@ -199,6 +251,8 @@ public enum State */ public static final int DELETING_VALUE = 4; /** + * + * *
      * The cluster is being updated. It continues to accept and process jobs.
      * 
@@ -207,6 +261,8 @@ public enum State */ public static final int UPDATING_VALUE = 5; /** + * + * *
      * The cluster is being stopped. It cannot be used.
      * 
@@ -215,6 +271,8 @@ public enum State */ public static final int STOPPING_VALUE = 6; /** + * + * *
      * The cluster is currently stopped. It is not ready for use.
      * 
@@ -223,6 +281,8 @@ public enum State */ public static final int STOPPED_VALUE = 7; /** + * + * *
      * The cluster is being started. It is not ready for use.
      * 
@@ -231,7 +291,6 @@ public enum State */ public static final int STARTING_VALUE = 8; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -256,56 +315,63 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return CREATING; - case 2: return RUNNING; - case 3: return ERROR; - case 9: return ERROR_DUE_TO_UPDATE; - case 4: return DELETING; - case 5: return UPDATING; - case 6: return STOPPING; - case 7: return STOPPED; - case 8: return STARTING; - default: return null; + case 0: + return UNKNOWN; + case 1: + return CREATING; + case 2: + return RUNNING; + case 3: + return ERROR; + case 9: + return ERROR_DUE_TO_UPDATE; + case 4: + return DELETING; + case 5: + return UPDATING; + case 6: + return STOPPING; + case 7: + return STOPPED; + case 8: + return STARTING; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataproc.v1.ClusterStatus.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; @@ -323,15 +389,18 @@ private State(int value) { } /** + * + * *
    * The cluster substate.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.ClusterStatus.Substate} */ - public enum Substate - implements com.google.protobuf.ProtocolMessageEnum { + public enum Substate implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The cluster substate is unknown.
      * 
@@ -340,6 +409,8 @@ public enum Substate */ UNSPECIFIED(0), /** + * + * *
      * The cluster is known to be in an unhealthy state
      * (for example, critical daemons are not running or HDFS capacity is
@@ -351,6 +422,8 @@ public enum Substate
      */
     UNHEALTHY(1),
     /**
+     *
+     *
      * 
      * The agent-reported status is out of date (may occur if
      * Dataproc loses communication with Agent).
@@ -364,6 +437,8 @@ public enum Substate
     ;
 
     /**
+     *
+     *
      * 
      * The cluster substate is unknown.
      * 
@@ -372,6 +447,8 @@ public enum Substate */ public static final int UNSPECIFIED_VALUE = 0; /** + * + * *
      * The cluster is known to be in an unhealthy state
      * (for example, critical daemons are not running or HDFS capacity is
@@ -383,6 +460,8 @@ public enum Substate
      */
     public static final int UNHEALTHY_VALUE = 1;
     /**
+     *
+     *
      * 
      * The agent-reported status is out of date (may occur if
      * Dataproc loses communication with Agent).
@@ -393,7 +472,6 @@ public enum Substate
      */
     public static final int STALE_STATUS_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -418,49 +496,49 @@ public static Substate valueOf(int value) {
      */
     public static Substate forNumber(int value) {
       switch (value) {
-        case 0: return UNSPECIFIED;
-        case 1: return UNHEALTHY;
-        case 2: return STALE_STATUS;
-        default: return null;
+        case 0:
+          return UNSPECIFIED;
+        case 1:
+          return UNHEALTHY;
+        case 2:
+          return STALE_STATUS;
+        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<
-        Substate> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Substate findValueByNumber(int number) {
-              return Substate.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Substate findValueByNumber(int number) {
+            return Substate.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.dataproc.v1.ClusterStatus.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Substate[] VALUES = values();
 
-    public static Substate valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Substate 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;
@@ -480,38 +558,56 @@ private Substate(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
+   *
+   *
    * 
    * Output only. The cluster's state.
    * 
* - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The cluster's state.
    * 
* - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.dataproc.v1.ClusterStatus.State getState() { + @java.lang.Override + public com.google.cloud.dataproc.v1.ClusterStatus.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ClusterStatus.State result = com.google.cloud.dataproc.v1.ClusterStatus.State.valueOf(state_); + com.google.cloud.dataproc.v1.ClusterStatus.State result = + com.google.cloud.dataproc.v1.ClusterStatus.State.valueOf(state_); return result == null ? com.google.cloud.dataproc.v1.ClusterStatus.State.UNRECOGNIZED : result; } public static final int DETAIL_FIELD_NUMBER = 2; private volatile java.lang.Object detail_; /** + * + * *
    * Optional. Output only. Details of cluster's state.
    * 
* - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The detail. */ @java.lang.Override @@ -520,29 +616,31 @@ public java.lang.String getDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detail_ = s; return s; } } /** + * + * *
    * Optional. Output only. Details of cluster's state.
    * 
* - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for detail. */ @java.lang.Override - public com.google.protobuf.ByteString - getDetailBytes() { + public com.google.protobuf.ByteString getDetailBytes() { java.lang.Object ref = detail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detail_ = b; return b; } else { @@ -553,12 +651,17 @@ public java.lang.String getDetail() { public static final int STATE_START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp stateStartTime_; /** + * + * *
    * Output only. Time when this state was entered (see JSON representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateStartTime field is set. */ @java.lang.Override @@ -566,25 +669,36 @@ public boolean hasStateStartTime() { return stateStartTime_ != null; } /** + * + * *
    * Output only. Time when this state was entered (see JSON representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStateStartTime() { - return stateStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; + return stateStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateStartTime_; } /** + * + * *
    * Output only. Time when this state was entered (see JSON representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { @@ -594,33 +708,49 @@ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { public static final int SUBSTATE_FIELD_NUMBER = 4; private int substate_; /** + * + * *
    * Output only. Additional state information that includes
    * status reported by the agent.
    * 
* - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for substate. */ - @java.lang.Override public int getSubstateValue() { + @java.lang.Override + public int getSubstateValue() { return substate_; } /** + * + * *
    * Output only. Additional state information that includes
    * status reported by the agent.
    * 
* - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The substate. */ - @java.lang.Override public com.google.cloud.dataproc.v1.ClusterStatus.Substate getSubstate() { + @java.lang.Override + public com.google.cloud.dataproc.v1.ClusterStatus.Substate getSubstate() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ClusterStatus.Substate result = com.google.cloud.dataproc.v1.ClusterStatus.Substate.valueOf(substate_); - return result == null ? com.google.cloud.dataproc.v1.ClusterStatus.Substate.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.ClusterStatus.Substate result = + com.google.cloud.dataproc.v1.ClusterStatus.Substate.valueOf(substate_); + return result == null + ? com.google.cloud.dataproc.v1.ClusterStatus.Substate.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -632,8 +762,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (state_ != com.google.cloud.dataproc.v1.ClusterStatus.State.UNKNOWN.getNumber()) { output.writeEnum(1, state_); } @@ -656,19 +785,16 @@ public int getSerializedSize() { size = 0; if (state_ != com.google.cloud.dataproc.v1.ClusterStatus.State.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, detail_); } if (stateStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStateStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStateStartTime()); } if (substate_ != com.google.cloud.dataproc.v1.ClusterStatus.Substate.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, substate_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, substate_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -678,20 +804,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.dataproc.v1.ClusterStatus)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ClusterStatus other = (com.google.cloud.dataproc.v1.ClusterStatus) obj; + com.google.cloud.dataproc.v1.ClusterStatus other = + (com.google.cloud.dataproc.v1.ClusterStatus) obj; if (state_ != other.state_) return false; - if (!getDetail() - .equals(other.getDetail())) return false; + if (!getDetail().equals(other.getDetail())) return false; if (hasStateStartTime() != other.hasStateStartTime()) return false; if (hasStateStartTime()) { - if (!getStateStartTime() - .equals(other.getStateStartTime())) return false; + if (!getStateStartTime().equals(other.getStateStartTime())) return false; } if (substate_ != other.substate_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -720,130 +845,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ClusterStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ClusterStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.ClusterStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 status of a cluster and its instances.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ClusterStatus} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterStatus) com.google.cloud.dataproc.v1.ClusterStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterStatus.class, com.google.cloud.dataproc.v1.ClusterStatus.Builder.class); + com.google.cloud.dataproc.v1.ClusterStatus.class, + com.google.cloud.dataproc.v1.ClusterStatus.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ClusterStatus.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -863,9 +994,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; } @java.lang.Override @@ -884,7 +1015,8 @@ public com.google.cloud.dataproc.v1.ClusterStatus build() { @java.lang.Override public com.google.cloud.dataproc.v1.ClusterStatus buildPartial() { - com.google.cloud.dataproc.v1.ClusterStatus result = new com.google.cloud.dataproc.v1.ClusterStatus(this); + com.google.cloud.dataproc.v1.ClusterStatus result = + new com.google.cloud.dataproc.v1.ClusterStatus(this); result.state_ = state_; result.detail_ = detail_; if (stateStartTimeBuilder_ == null) { @@ -901,38 +1033,39 @@ public com.google.cloud.dataproc.v1.ClusterStatus buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ClusterStatus) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterStatus)other); + return mergeFrom((com.google.cloud.dataproc.v1.ClusterStatus) other); } else { super.mergeFrom(other); return this; @@ -980,34 +1113,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - state_ = input.readEnum(); - - break; - } // case 8 - case 18: { - detail_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - input.readMessage( - getStateStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 32: { - substate_ = input.readEnum(); - - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + state_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + detail_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getStateStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 32: + { + substate_ = input.readEnum(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1020,51 +1156,75 @@ public Builder mergeFrom( private int state_ = 0; /** + * + * *
      * Output only. The cluster's state.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The cluster's state.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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; } /** + * + * *
      * Output only. The cluster's state.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterStatus.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ClusterStatus.State result = com.google.cloud.dataproc.v1.ClusterStatus.State.valueOf(state_); - return result == null ? com.google.cloud.dataproc.v1.ClusterStatus.State.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.ClusterStatus.State result = + com.google.cloud.dataproc.v1.ClusterStatus.State.valueOf(state_); + return result == null + ? com.google.cloud.dataproc.v1.ClusterStatus.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The cluster's state.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1072,21 +1232,26 @@ public Builder setState(com.google.cloud.dataproc.v1.ClusterStatus.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The cluster's state.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1094,18 +1259,22 @@ public Builder clearState() { private java.lang.Object detail_ = ""; /** + * + * *
      * Optional. Output only. Details of cluster's state.
      * 
* - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The detail. */ public java.lang.String getDetail() { java.lang.Object ref = detail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detail_ = s; return s; @@ -1114,20 +1283,23 @@ public java.lang.String getDetail() { } } /** + * + * *
      * Optional. Output only. Details of cluster's state.
      * 
* - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for detail. */ - public com.google.protobuf.ByteString - getDetailBytes() { + public com.google.protobuf.ByteString getDetailBytes() { java.lang.Object ref = detail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detail_ = b; return b; } else { @@ -1135,54 +1307,67 @@ public java.lang.String getDetail() { } } /** + * + * *
      * Optional. Output only. Details of cluster's state.
      * 
* - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The detail to set. * @return This builder for chaining. */ - public Builder setDetail( - java.lang.String value) { + public Builder setDetail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + detail_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Output only. Details of cluster's state.
      * 
* - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearDetail() { - + detail_ = getDefaultInstance().getDetail(); onChanged(); return this; } /** + * + * *
      * Optional. Output only. Details of cluster's state.
      * 
* - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes for detail to set. * @return This builder for chaining. */ - public Builder setDetailBytes( - com.google.protobuf.ByteString value) { + public Builder setDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detail_ = value; onChanged(); return this; @@ -1190,42 +1375,61 @@ public Builder setDetailBytes( private com.google.protobuf.Timestamp stateStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> stateStartTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + stateStartTimeBuilder_; /** + * + * *
      * Output only. Time when this state was entered (see JSON representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateStartTime field is set. */ public boolean hasStateStartTime() { return stateStartTimeBuilder_ != null || stateStartTime_ != null; } /** + * + * *
      * Output only. Time when this state was entered (see JSON representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateStartTime. */ public com.google.protobuf.Timestamp getStateStartTime() { if (stateStartTimeBuilder_ == null) { - return stateStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; + return stateStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateStartTime_; } else { return stateStartTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this state was entered (see JSON representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStateStartTime(com.google.protobuf.Timestamp value) { if (stateStartTimeBuilder_ == null) { @@ -1241,15 +1445,18 @@ public Builder setStateStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this state was entered (see JSON representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStateStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (stateStartTimeBuilder_ == null) { stateStartTime_ = builderForValue.build(); onChanged(); @@ -1260,18 +1467,24 @@ public Builder setStateStartTime( return this; } /** + * + * *
      * Output only. Time when this state was entered (see JSON representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { if (stateStartTimeBuilder_ == null) { if (stateStartTime_ != null) { stateStartTime_ = - com.google.protobuf.Timestamp.newBuilder(stateStartTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(stateStartTime_) + .mergeFrom(value) + .buildPartial(); } else { stateStartTime_ = value; } @@ -1283,12 +1496,16 @@ public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this state was entered (see JSON representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStateStartTime() { if (stateStartTimeBuilder_ == null) { @@ -1302,51 +1519,67 @@ public Builder clearStateStartTime() { return this; } /** + * + * *
      * Output only. Time when this state was entered (see JSON representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStateStartTimeBuilder() { - + onChanged(); return getStateStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this state was entered (see JSON representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { if (stateStartTimeBuilder_ != null) { return stateStartTimeBuilder_.getMessageOrBuilder(); } else { - return stateStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; + return stateStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateStartTime_; } } /** + * + * *
      * Output only. Time when this state was entered (see JSON representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.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> getStateStartTimeFieldBuilder() { if (stateStartTimeBuilder_ == null) { - stateStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStateStartTime(), - getParentForChildren(), - isClean()); + stateStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStateStartTime(), getParentForChildren(), isClean()); stateStartTime_ = null; } return stateStartTimeBuilder_; @@ -1354,55 +1587,79 @@ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { private int substate_ = 0; /** + * + * *
      * Output only. Additional state information that includes
      * status reported by the agent.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for substate. */ - @java.lang.Override public int getSubstateValue() { + @java.lang.Override + public int getSubstateValue() { return substate_; } /** + * + * *
      * Output only. Additional state information that includes
      * status reported by the agent.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for substate to set. * @return This builder for chaining. */ public Builder setSubstateValue(int value) { - + substate_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Additional state information that includes
      * status reported by the agent.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The substate. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterStatus.Substate getSubstate() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ClusterStatus.Substate result = com.google.cloud.dataproc.v1.ClusterStatus.Substate.valueOf(substate_); - return result == null ? com.google.cloud.dataproc.v1.ClusterStatus.Substate.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.ClusterStatus.Substate result = + com.google.cloud.dataproc.v1.ClusterStatus.Substate.valueOf(substate_); + return result == null + ? com.google.cloud.dataproc.v1.ClusterStatus.Substate.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Additional state information that includes
      * status reported by the agent.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The substate to set. * @return This builder for chaining. */ @@ -1410,29 +1667,34 @@ public Builder setSubstate(com.google.cloud.dataproc.v1.ClusterStatus.Substate v if (value == null) { throw new NullPointerException(); } - + substate_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Additional state information that includes
      * status reported by the agent.
      * 
* - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearSubstate() { - + substate_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1442,12 +1704,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ClusterStatus) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterStatus) private static final com.google.cloud.dataproc.v1.ClusterStatus DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterStatus(); } @@ -1456,27 +1718,27 @@ public static com.google.cloud.dataproc.v1.ClusterStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1491,6 +1753,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ClusterStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java similarity index 52% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java index a47e138599d6..9abedcb68530 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java @@ -1,98 +1,157 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface ClusterStatusOrBuilder extends +public interface ClusterStatusOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterStatus) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The cluster's state.
    * 
* - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The cluster's state.
    * 
* - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.dataproc.v1.ClusterStatus.State getState(); /** + * + * *
    * Optional. Output only. Details of cluster's state.
    * 
* - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The detail. */ java.lang.String getDetail(); /** + * + * *
    * Optional. Output only. Details of cluster's state.
    * 
* - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for detail. */ - com.google.protobuf.ByteString - getDetailBytes(); + com.google.protobuf.ByteString getDetailBytes(); /** + * + * *
    * Output only. Time when this state was entered (see JSON representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateStartTime field is set. */ boolean hasStateStartTime(); /** + * + * *
    * Output only. Time when this state was entered (see JSON representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateStartTime. */ com.google.protobuf.Timestamp getStateStartTime(); /** + * + * *
    * Output only. Time when this state was entered (see JSON representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder(); /** + * + * *
    * Output only. Additional state information that includes
    * status reported by the agent.
    * 
* - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for substate. */ int getSubstateValue(); /** + * + * *
    * Output only. Additional state information that includes
    * status reported by the agent.
    * 
* - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The substate. */ com.google.cloud.dataproc.v1.ClusterStatus.Substate getSubstate(); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java new file mode 100644 index 000000000000..89f52ba40d65 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java @@ -0,0 +1,1025 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public final class ClustersProto { + private ClustersProto() {} + + 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_dataproc_v1_Cluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_NodeGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_NodeGroup_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_NodeGroup_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ReservationAffinity_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/dataproc/v1/clusters.prot" + + "o\022\030google.cloud.dataproc.v1\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032%google/cloud/dat" + + "aproc/v1/shared.proto\032#google/longrunnin" + + "g/operations.proto\032\036google/protobuf/dura" + + "tion.proto\032 google/protobuf/field_mask.p" + + "roto\032\037google/protobuf/timestamp.proto\"\242\004" + + "\n\007Cluster\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\031\n\014cl" + + "uster_name\030\002 \001(\tB\003\340A\002\022<\n\006config\030\003 \001(\0132\'." + + "google.cloud.dataproc.v1.ClusterConfigB\003" + + "\340A\001\022S\n\026virtual_cluster_config\030\n \001(\0132..go" + + "ogle.cloud.dataproc.v1.VirtualClusterCon" + + "figB\003\340A\001\022B\n\006labels\030\010 \003(\0132-.google.cloud." + + "dataproc.v1.Cluster.LabelsEntryB\003\340A\001\022<\n\006" + + "status\030\004 \001(\0132\'.google.cloud.dataproc.v1." + + "ClusterStatusB\003\340A\003\022D\n\016status_history\030\007 \003" + + "(\0132\'.google.cloud.dataproc.v1.ClusterSta" + + "tusB\003\340A\003\022\031\n\014cluster_uuid\030\006 \001(\tB\003\340A\003\022>\n\007m" + + "etrics\030\t \001(\0132(.google.cloud.dataproc.v1." + + "ClusterMetricsB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\t\n\rClusterCo" + + "nfig\022\032\n\rconfig_bucket\030\001 \001(\tB\003\340A\001\022\030\n\013temp" + + "_bucket\030\002 \001(\tB\003\340A\001\022K\n\022gce_cluster_config" + + "\030\010 \001(\0132*.google.cloud.dataproc.v1.GceClu" + + "sterConfigB\003\340A\001\022I\n\rmaster_config\030\t \001(\0132-" + + ".google.cloud.dataproc.v1.InstanceGroupC" + + "onfigB\003\340A\001\022I\n\rworker_config\030\n \001(\0132-.goog" + + "le.cloud.dataproc.v1.InstanceGroupConfig" + + "B\003\340A\001\022S\n\027secondary_worker_config\030\014 \001(\0132-" + + ".google.cloud.dataproc.v1.InstanceGroupC" + + "onfigB\003\340A\001\022F\n\017software_config\030\r \001(\0132(.go" + + "ogle.cloud.dataproc.v1.SoftwareConfigB\003\340" + + "A\001\022W\n\026initialization_actions\030\013 \003(\01322.goo" + + "gle.cloud.dataproc.v1.NodeInitialization" + + "ActionB\003\340A\001\022J\n\021encryption_config\030\017 \001(\0132*" + + ".google.cloud.dataproc.v1.EncryptionConf" + + "igB\003\340A\001\022L\n\022autoscaling_config\030\022 \001(\0132+.go" + + "ogle.cloud.dataproc.v1.AutoscalingConfig" + + "B\003\340A\001\022F\n\017security_config\030\020 \001(\0132(.google." + + "cloud.dataproc.v1.SecurityConfigB\003\340A\001\022H\n" + + "\020lifecycle_config\030\021 \001(\0132).google.cloud.d" + + "ataproc.v1.LifecycleConfigB\003\340A\001\022F\n\017endpo" + + "int_config\030\023 \001(\0132(.google.cloud.dataproc" + + ".v1.EndpointConfigB\003\340A\001\022H\n\020metastore_con" + + "fig\030\024 \001(\0132).google.cloud.dataproc.v1.Met" + + "astoreConfigB\003\340A\001\022S\n\026dataproc_metric_con" + + "fig\030\027 \001(\0132..google.cloud.dataproc.v1.Dat" + + "aprocMetricConfigB\003\340A\001\022P\n\025auxiliary_node" + + "_groups\030\031 \003(\0132,.google.cloud.dataproc.v1" + + ".AuxiliaryNodeGroupB\003\340A\001\"\204\002\n\024VirtualClus" + + "terConfig\022\033\n\016staging_bucket\030\001 \001(\tB\003\340A\001\022[" + + "\n\031kubernetes_cluster_config\030\006 \001(\01321.goog" + + "le.cloud.dataproc.v1.KubernetesClusterCo" + + "nfigB\003\340A\002H\000\022Y\n\031auxiliary_services_config" + + "\030\007 \001(\01321.google.cloud.dataproc.v1.Auxili" + + "aryServicesConfigB\003\340A\001B\027\n\025infrastructure" + + "_config\"\301\001\n\027AuxiliaryServicesConfig\022H\n\020m" + + "etastore_config\030\001 \001(\0132).google.cloud.dat" + + "aproc.v1.MetastoreConfigB\003\340A\001\022\\\n\033spark_h" + + "istory_server_config\030\002 \001(\01322.google.clou" + + "d.dataproc.v1.SparkHistoryServerConfigB\003" + + "\340A\001\"\272\001\n\016EndpointConfig\022P\n\nhttp_ports\030\001 \003" + + "(\01327.google.cloud.dataproc.v1.EndpointCo" + + "nfig.HttpPortsEntryB\003\340A\003\022$\n\027enable_http_" + + "port_access\030\002 \001(\010B\003\340A\001\0320\n\016HttpPortsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\",\n\021Auto" + + "scalingConfig\022\027\n\npolicy_uri\030\001 \001(\tB\003\340A\001\"4" + + "\n\020EncryptionConfig\022 \n\023gce_pd_kms_key_nam" + + "e\030\001 \001(\tB\003\340A\001\"\233\007\n\020GceClusterConfig\022\025\n\010zon" + + "e_uri\030\001 \001(\tB\003\340A\001\022\030\n\013network_uri\030\002 \001(\tB\003\340" + + "A\001\022\033\n\016subnetwork_uri\030\006 \001(\tB\003\340A\001\022\035\n\020inter" + + "nal_ip_only\030\007 \001(\010B\003\340A\001\022k\n\032private_ipv6_g" + + "oogle_access\030\014 \001(\0162B.google.cloud.datapr" + + "oc.v1.GceClusterConfig.PrivateIpv6Google" + + "AccessB\003\340A\001\022\034\n\017service_account\030\010 \001(\tB\003\340A" + + "\001\022#\n\026service_account_scopes\030\003 \003(\tB\003\340A\001\022\014" + + "\n\004tags\030\004 \003(\t\022J\n\010metadata\030\005 \003(\01328.google." + + "cloud.dataproc.v1.GceClusterConfig.Metad" + + "ataEntry\022P\n\024reservation_affinity\030\013 \001(\0132-" + + ".google.cloud.dataproc.v1.ReservationAff" + + "inityB\003\340A\001\022M\n\023node_group_affinity\030\r \001(\0132" + + "+.google.cloud.dataproc.v1.NodeGroupAffi" + + "nityB\003\340A\001\022W\n\030shielded_instance_config\030\016 " + + "\001(\01320.google.cloud.dataproc.v1.ShieldedI" + + "nstanceConfigB\003\340A\001\022_\n\034confidential_insta" + + "nce_config\030\017 \001(\01324.google.cloud.dataproc" + + ".v1.ConfidentialInstanceConfigB\003\340A\001\032/\n\rM" + + "etadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"\203\001\n\027PrivateIpv6GoogleAccess\022*\n&PRIV" + + "ATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\020\000\022\033\n\027" + + "INHERIT_FROM_SUBNETWORK\020\001\022\014\n\010OUTBOUND\020\002\022" + + "\021\n\rBIDIRECTIONAL\020\003\"0\n\021NodeGroupAffinity\022" + + "\033\n\016node_group_uri\030\001 \001(\tB\003\340A\002\"}\n\026Shielded" + + "InstanceConfig\022\037\n\022enable_secure_boot\030\001 \001" + + "(\010B\003\340A\001\022\030\n\013enable_vtpm\030\002 \001(\010B\003\340A\001\022(\n\033ena" + + "ble_integrity_monitoring\030\003 \001(\010B\003\340A\001\"F\n\032C" + + "onfidentialInstanceConfig\022(\n\033enable_conf" + + "idential_compute\030\001 \001(\010B\003\340A\001\"\315\004\n\023Instance" + + "GroupConfig\022\032\n\rnum_instances\030\001 \001(\005B\003\340A\001\022" + + "\033\n\016instance_names\030\002 \003(\tB\003\340A\003\022\026\n\timage_ur" + + "i\030\003 \001(\tB\003\340A\001\022\035\n\020machine_type_uri\030\004 \001(\tB\003" + + "\340A\001\022>\n\013disk_config\030\005 \001(\0132$.google.cloud." + + "dataproc.v1.DiskConfigB\003\340A\001\022\033\n\016is_preemp" + + "tible\030\006 \001(\010B\003\340A\003\022Y\n\016preemptibility\030\n \001(\016" + + "2<.google.cloud.dataproc.v1.InstanceGrou" + + "pConfig.PreemptibilityB\003\340A\001\022O\n\024managed_g" + + "roup_config\030\007 \001(\0132,.google.cloud.datapro" + + "c.v1.ManagedGroupConfigB\003\340A\003\022F\n\014accelera" + + "tors\030\010 \003(\0132+.google.cloud.dataproc.v1.Ac" + + "celeratorConfigB\003\340A\001\022\035\n\020min_cpu_platform" + + "\030\t \001(\tB\003\340A\001\"V\n\016Preemptibility\022\036\n\032PREEMPT" + + "IBILITY_UNSPECIFIED\020\000\022\023\n\017NON_PREEMPTIBLE" + + "\020\001\022\017\n\013PREEMPTIBLE\020\002\"c\n\022ManagedGroupConfi" + + "g\022#\n\026instance_template_name\030\001 \001(\tB\003\340A\003\022(" + + "\n\033instance_group_manager_name\030\002 \001(\tB\003\340A\003" + + "\"L\n\021AcceleratorConfig\022\034\n\024accelerator_typ" + + "e_uri\030\001 \001(\t\022\031\n\021accelerator_count\030\002 \001(\005\"\210" + + "\001\n\nDiskConfig\022\033\n\016boot_disk_type\030\003 \001(\tB\003\340" + + "A\001\022\036\n\021boot_disk_size_gb\030\001 \001(\005B\003\340A\001\022\033\n\016nu" + + "m_local_ssds\030\002 \001(\005B\003\340A\001\022 \n\023local_ssd_int" + + "erface\030\004 \001(\tB\003\340A\001\"n\n\022AuxiliaryNodeGroup\022" + + "<\n\nnode_group\030\001 \001(\0132#.google.cloud.datap" + + "roc.v1.NodeGroupB\003\340A\002\022\032\n\rnode_group_id\030\002" + + " \001(\tB\003\340A\001\"\275\003\n\tNodeGroup\022\014\n\004name\030\001 \001(\t\022<\n" + + "\005roles\030\002 \003(\0162(.google.cloud.dataproc.v1." + + "NodeGroup.RoleB\003\340A\002\022M\n\021node_group_config" + + "\030\003 \001(\0132-.google.cloud.dataproc.v1.Instan" + + "ceGroupConfigB\003\340A\001\022D\n\006labels\030\004 \003(\0132/.goo" + + "gle.cloud.dataproc.v1.NodeGroup.LabelsEn" + + "tryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"(\n\004Role\022\024\n\020ROLE_UNSPECIF" + + "IED\020\000\022\n\n\006DRIVER\020\001:v\352As\n!dataproc.googlea" + + "pis.com/NodeGroup\022Nprojects/{project}/re" + + "gions/{region}/clusters/{cluster}/nodeGr" + + "oups/{node_group}\"s\n\030NodeInitializationA" + + "ction\022\034\n\017executable_file\030\001 \001(\tB\003\340A\002\0229\n\021e" + + "xecution_timeout\030\002 \001(\0132\031.google.protobuf" + + ".DurationB\003\340A\001\"\307\003\n\rClusterStatus\022A\n\005stat" + + "e\030\001 \001(\0162-.google.cloud.dataproc.v1.Clust" + + "erStatus.StateB\003\340A\003\022\026\n\006detail\030\002 \001(\tB\006\340A\003" + + "\340A\001\0229\n\020state_start_time\030\003 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022G\n\010substate\030\004 \001(\016" + + "20.google.cloud.dataproc.v1.ClusterStatu" + + "s.SubstateB\003\340A\003\"\230\001\n\005State\022\013\n\007UNKNOWN\020\000\022\014" + + "\n\010CREATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003\022\027\n\023" + + "ERROR_DUE_TO_UPDATE\020\t\022\014\n\010DELETING\020\004\022\014\n\010U" + + "PDATING\020\005\022\014\n\010STOPPING\020\006\022\013\n\007STOPPED\020\007\022\014\n\010" + + "STARTING\020\010\"<\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022" + + "\r\n\tUNHEALTHY\020\001\022\020\n\014STALE_STATUS\020\002\"\240\001\n\016Sec" + + "urityConfig\022F\n\017kerberos_config\030\001 \001(\0132(.g" + + "oogle.cloud.dataproc.v1.KerberosConfigB\003" + + "\340A\001\022F\n\017identity_config\030\002 \001(\0132(.google.cl" + + "oud.dataproc.v1.IdentityConfigB\003\340A\001\"\220\004\n\016" + + "KerberosConfig\022\034\n\017enable_kerberos\030\001 \001(\010B" + + "\003\340A\001\022(\n\033root_principal_password_uri\030\002 \001(" + + "\tB\003\340A\001\022\030\n\013kms_key_uri\030\003 \001(\tB\003\340A\001\022\031\n\014keys" + + "tore_uri\030\004 \001(\tB\003\340A\001\022\033\n\016truststore_uri\030\005 " + + "\001(\tB\003\340A\001\022\"\n\025keystore_password_uri\030\006 \001(\tB" + + "\003\340A\001\022\035\n\020key_password_uri\030\007 \001(\tB\003\340A\001\022$\n\027t" + + "ruststore_password_uri\030\010 \001(\tB\003\340A\001\022$\n\027cro" + + "ss_realm_trust_realm\030\t \001(\tB\003\340A\001\022\"\n\025cross" + + "_realm_trust_kdc\030\n \001(\tB\003\340A\001\022+\n\036cross_rea" + + "lm_trust_admin_server\030\013 \001(\tB\003\340A\001\0222\n%cros" + + "s_realm_trust_shared_password_uri\030\014 \001(\tB" + + "\003\340A\001\022\033\n\016kdc_db_key_uri\030\r \001(\tB\003\340A\001\022\037\n\022tgt" + + "_lifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n\005realm\030\017 \001(" + + "\tB\003\340A\001\"\306\001\n\016IdentityConfig\022r\n\034user_servic" + + "e_account_mapping\030\001 \003(\0132G.google.cloud.d" + + "ataproc.v1.IdentityConfig.UserServiceAcc" + + "ountMappingEntryB\003\340A\002\032@\n\036UserServiceAcco" + + "untMappingEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"\371\001\n\016SoftwareConfig\022\032\n\rimage_vers" + + "ion\030\001 \001(\tB\003\340A\001\022Q\n\nproperties\030\002 \003(\01328.goo" + + "gle.cloud.dataproc.v1.SoftwareConfig.Pro" + + "pertiesEntryB\003\340A\001\022E\n\023optional_components" + + "\030\003 \003(\0162#.google.cloud.dataproc.v1.Compon" + + "entB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\002\n\017LifecycleConfig\022" + + "7\n\017idle_delete_ttl\030\001 \001(\0132\031.google.protob" + + "uf.DurationB\003\340A\001\022;\n\020auto_delete_time\030\002 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\001H\000\0229\n" + + "\017auto_delete_ttl\030\003 \001(\0132\031.google.protobuf" + + ".DurationB\003\340A\001H\000\0228\n\017idle_start_time\030\004 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003B\005\n\003tt" + + "l\"_\n\017MetastoreConfig\022L\n\032dataproc_metasto" + + "re_service\030\001 \001(\tB(\340A\002\372A\"\n metastore.goog" + + "leapis.com/Service\"\377\002\n\024DataprocMetricCon" + + "fig\022K\n\007metrics\030\001 \003(\01325.google.cloud.data" + + "proc.v1.DataprocMetricConfig.MetricB\003\340A\002" + + "\032\200\001\n\006Metric\022W\n\rmetric_source\030\001 \001(\0162;.goo" + + "gle.cloud.dataproc.v1.DataprocMetricConf" + + "ig.MetricSourceB\003\340A\002\022\035\n\020metric_overrides" + + "\030\002 \003(\tB\003\340A\001\"\226\001\n\014MetricSource\022\035\n\031METRIC_S" + + "OURCE_UNSPECIFIED\020\000\022\035\n\031MONITORING_AGENT_" + + "DEFAULTS\020\001\022\010\n\004HDFS\020\002\022\t\n\005SPARK\020\003\022\010\n\004YARN\020" + + "\004\022\030\n\024SPARK_HISTORY_SERVER\020\005\022\017\n\013HIVESERVE" + + "R2\020\006\"\232\002\n\016ClusterMetrics\022O\n\014hdfs_metrics\030" + + "\001 \003(\01329.google.cloud.dataproc.v1.Cluster" + + "Metrics.HdfsMetricsEntry\022O\n\014yarn_metrics" + + "\030\002 \003(\01329.google.cloud.dataproc.v1.Cluste" + + "rMetrics.YarnMetricsEntry\0322\n\020HdfsMetrics" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0322\n" + + "\020YarnMetricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\003:\0028\001\"\356\001\n\024CreateClusterRequest\022\027\n\npr" + + "oject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002" + + "\0227\n\007cluster\030\002 \001(\0132!.google.cloud.datapro" + + "c.v1.ClusterB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340" + + "A\001\022V\n action_on_failed_primary_workers\030\005" + + " \001(\0162\'.google.cloud.dataproc.v1.FailureA" + + "ctionB\003\340A\001\"\256\002\n\024UpdateClusterRequest\022\027\n\np" + + "roject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\005 \001(\tB\003\340A" + + "\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\0227\n\007cluster\030" + + "\003 \001(\0132!.google.cloud.dataproc.v1.Cluster" + + "B\003\340A\002\022E\n\035graceful_decommission_timeout\030\006" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\0224\n\013" + + "update_mask\030\004 \001(\0132\032.google.protobuf.Fiel" + + "dMaskB\003\340A\002\022\027\n\nrequest_id\030\007 \001(\tB\003\340A\001\"\221\001\n\022" + + "StopClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003" + + "\340A\002\022\023\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_name" + + "\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027" + + "\n\nrequest_id\030\005 \001(\tB\003\340A\001\"\222\001\n\023StartCluster" + + "Request\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006regi" + + "on\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\003 \001(\tB\003\340A\002" + + "\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_i" + + "d\030\005 \001(\tB\003\340A\001\"\223\001\n\024DeleteClusterRequest\022\027\n" + + "\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003" + + "\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\022\031\n\014cluste" + + "r_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340" + + "A\001\"\\\n\021GetClusterRequest\022\027\n\nproject_id\030\001 " + + "\001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster" + + "_name\030\002 \001(\tB\003\340A\002\"\211\001\n\023ListClustersRequest" + + "\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\004 \001(" + + "\tB\003\340A\002\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\026\n\tpage_size" + + "\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"n\n\024" + + "ListClustersResponse\0228\n\010clusters\030\001 \003(\0132!" + + ".google.cloud.dataproc.v1.ClusterB\003\340A\003\022\034" + + "\n\017next_page_token\030\002 \001(\tB\003\340A\003\"a\n\026Diagnose" + + "ClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022" + + "\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001" + + "(\tB\003\340A\002\"1\n\026DiagnoseClusterResults\022\027\n\nout" + + "put_uri\030\001 \001(\tB\003\340A\003\"\370\001\n\023ReservationAffini" + + "ty\022Y\n\030consume_reservation_type\030\001 \001(\01622.g" + + "oogle.cloud.dataproc.v1.ReservationAffin" + + "ity.TypeB\003\340A\001\022\020\n\003key\030\002 \001(\tB\003\340A\001\022\023\n\006value" + + "s\030\003 \003(\tB\003\340A\001\"_\n\004Type\022\024\n\020TYPE_UNSPECIFIED" + + "\020\000\022\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY_RESERVATIO" + + "N\020\002\022\030\n\024SPECIFIC_RESERVATION\020\0032\344\020\n\021Cluste" + + "rController\022\200\002\n\rCreateCluster\022..google.c" + + "loud.dataproc.v1.CreateClusterRequest\032\035." + + "google.longrunning.Operation\"\237\001\202\323\344\223\002>\"3/" + + "v1/projects/{project_id}/regions/{region" + + "}/clusters:\007cluster\332A\031project_id,region," + + "cluster\312A<\n\007Cluster\0221google.cloud.datapr" + + "oc.v1.ClusterOperationMetadata\022\250\002\n\rUpdat" + + "eCluster\022..google.cloud.dataproc.v1.Upda" + + "teClusterRequest\032\035.google.longrunning.Op" + + "eration\"\307\001\202\323\344\223\002M2B/v1/projects/{project_" + + "id}/regions/{region}/clusters/{cluster_n" + + "ame}:\007cluster\332A2project_id,region,cluste" + + "r_name,cluster,update_mask\312A<\n\007Cluster\0221" + + "google.cloud.dataproc.v1.ClusterOperatio" + + "nMetadata\022\356\001\n\013StopCluster\022,.google.cloud" + + ".dataproc.v1.StopClusterRequest\032\035.google" + + ".longrunning.Operation\"\221\001\202\323\344\223\002L\"G/v1/pro" + + "jects/{project_id}/regions/{region}/clus" + + "ters/{cluster_name}:stop:\001*\312A<\n\007Cluster\022" + + "1google.cloud.dataproc.v1.ClusterOperati" + + "onMetadata\022\361\001\n\014StartCluster\022-.google.clo" + + "ud.dataproc.v1.StartClusterRequest\032\035.goo" + + "gle.longrunning.Operation\"\222\001\202\323\344\223\002M\"H/v1/" + + "projects/{project_id}/regions/{region}/c" + + "lusters/{cluster_name}:start:\001*\312A<\n\007Clus" + + "ter\0221google.cloud.dataproc.v1.ClusterOpe" + + "rationMetadata\022\231\002\n\rDeleteCluster\022..googl" + + "e.cloud.dataproc.v1.DeleteClusterRequest" + + "\032\035.google.longrunning.Operation\"\270\001\202\323\344\223\002D" + + "*B/v1/projects/{project_id}/regions/{reg" + + "ion}/clusters/{cluster_name}\332A\036project_i" + + "d,region,cluster_name\312AJ\n\025google.protobu" + + "f.Empty\0221google.cloud.dataproc.v1.Cluste" + + "rOperationMetadata\022\311\001\n\nGetCluster\022+.goog" + + "le.cloud.dataproc.v1.GetClusterRequest\032!" + + ".google.cloud.dataproc.v1.Cluster\"k\202\323\344\223\002" + + "D\022B/v1/projects/{project_id}/regions/{re" + + "gion}/clusters/{cluster_name}\332A\036project_" + + "id,region,cluster_name\022\331\001\n\014ListClusters\022" + + "-.google.cloud.dataproc.v1.ListClustersR" + + "equest\032..google.cloud.dataproc.v1.ListCl" + + "ustersResponse\"j\202\323\344\223\0025\0223/v1/projects/{pr" + + "oject_id}/regions/{region}/clusters\332A\021pr" + + "oject_id,region\332A\030project_id,region,filt" + + "er\022\252\002\n\017DiagnoseCluster\0220.google.cloud.da" + + "taproc.v1.DiagnoseClusterRequest\032\035.googl" + + "e.longrunning.Operation\"\305\001\202\323\344\223\002P\"K/v1/pr" + + "ojects/{project_id}/regions/{region}/clu" + + "sters/{cluster_name}:diagnose:\001*\332A\036proje" + + "ct_id,region,cluster_name\312AK\n\026DiagnoseCl" + + "usterResults\0221google.cloud.dataproc.v1.C" + + "lusterOperationMetadata\032K\312A\027dataproc.goo" + + "gleapis.com\322A.https://www.googleapis.com" + + "/auth/cloud-platformB\263\002\n\034com.google.clou" + + "d.dataproc.v1B\rClustersProtoP\001Z@google.g" + + "olang.org/genproto/googleapis/cloud/data" + + "proc/v1;dataproc\352A^\n container.googleapi" + + "s.com/Cluster\022:projects/{project}/locati" + + "ons/{location}/clusters/{cluster}\352A^\n me" + + "tastore.googleapis.com/Service\022:projects" + + "/{project}/locations/{location}/services" + + "/{service}b\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.dataproc.v1.SharedProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dataproc_v1_Cluster_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_Cluster_descriptor, + new java.lang.String[] { + "ProjectId", + "ClusterName", + "Config", + "VirtualClusterConfig", + "Labels", + "Status", + "StatusHistory", + "ClusterUuid", + "Metrics", + }); + internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_Cluster_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor, + new java.lang.String[] { + "ConfigBucket", + "TempBucket", + "GceClusterConfig", + "MasterConfig", + "WorkerConfig", + "SecondaryWorkerConfig", + "SoftwareConfig", + "InitializationActions", + "EncryptionConfig", + "AutoscalingConfig", + "SecurityConfig", + "LifecycleConfig", + "EndpointConfig", + "MetastoreConfig", + "DataprocMetricConfig", + "AuxiliaryNodeGroups", + }); + internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor, + new java.lang.String[] { + "StagingBucket", + "KubernetesClusterConfig", + "AuxiliaryServicesConfig", + "InfrastructureConfig", + }); + internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor, + new java.lang.String[] { + "MetastoreConfig", "SparkHistoryServerConfig", + }); + internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor, + new java.lang.String[] { + "HttpPorts", "EnableHttpPortAccess", + }); + internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor, + new java.lang.String[] { + "PolicyUri", + }); + internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor, + new java.lang.String[] { + "GcePdKmsKeyName", + }); + internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor, + new java.lang.String[] { + "ZoneUri", + "NetworkUri", + "SubnetworkUri", + "InternalIpOnly", + "PrivateIpv6GoogleAccess", + "ServiceAccount", + "ServiceAccountScopes", + "Tags", + "Metadata", + "ReservationAffinity", + "NodeGroupAffinity", + "ShieldedInstanceConfig", + "ConfidentialInstanceConfig", + }); + internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor = + internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor, + new java.lang.String[] { + "NodeGroupUri", + }); + internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor, + new java.lang.String[] { + "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", + }); + internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor, + new java.lang.String[] { + "EnableConfidentialCompute", + }); + internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor, + new java.lang.String[] { + "NumInstances", + "InstanceNames", + "ImageUri", + "MachineTypeUri", + "DiskConfig", + "IsPreemptible", + "Preemptibility", + "ManagedGroupConfig", + "Accelerators", + "MinCpuPlatform", + }); + internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor, + new java.lang.String[] { + "InstanceTemplateName", "InstanceGroupManagerName", + }); + internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor, + new java.lang.String[] { + "AcceleratorTypeUri", "AcceleratorCount", + }); + internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor, + new java.lang.String[] { + "BootDiskType", "BootDiskSizeGb", "NumLocalSsds", "LocalSsdInterface", + }); + internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor, + new java.lang.String[] { + "NodeGroup", "NodeGroupId", + }); + internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_dataproc_v1_NodeGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor, + new java.lang.String[] { + "Name", "Roles", "NodeGroupConfig", "Labels", + }); + internal_static_google_cloud_dataproc_v1_NodeGroup_LabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_NodeGroup_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_NodeGroup_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor, + new java.lang.String[] { + "ExecutableFile", "ExecutionTimeout", + }); + internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor, + new java.lang.String[] { + "State", "Detail", "StateStartTime", "Substate", + }); + internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor, + new java.lang.String[] { + "KerberosConfig", "IdentityConfig", + }); + internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor, + new java.lang.String[] { + "EnableKerberos", + "RootPrincipalPasswordUri", + "KmsKeyUri", + "KeystoreUri", + "TruststoreUri", + "KeystorePasswordUri", + "KeyPasswordUri", + "TruststorePasswordUri", + "CrossRealmTrustRealm", + "CrossRealmTrustKdc", + "CrossRealmTrustAdminServer", + "CrossRealmTrustSharedPasswordUri", + "KdcDbKeyUri", + "TgtLifetimeHours", + "Realm", + }); + internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor, + new java.lang.String[] { + "UserServiceAccountMapping", + }); + internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor = + internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor, + new java.lang.String[] { + "ImageVersion", "Properties", "OptionalComponents", + }); + internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor, + new java.lang.String[] { + "IdleDeleteTtl", "AutoDeleteTime", "AutoDeleteTtl", "IdleStartTime", "Ttl", + }); + internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor, + new java.lang.String[] { + "DataprocMetastoreService", + }); + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor, + new java.lang.String[] { + "Metrics", + }); + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor = + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor, + new java.lang.String[] { + "MetricSource", "MetricOverrides", + }); + internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor, + new java.lang.String[] { + "HdfsMetrics", "YarnMetrics", + }); + internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor, + new java.lang.String[] { + "ProjectId", "Region", "Cluster", "RequestId", "ActionOnFailedPrimaryWorkers", + }); + internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor, + new java.lang.String[] { + "ProjectId", + "Region", + "ClusterName", + "Cluster", + "GracefulDecommissionTimeout", + "UpdateMask", + "RequestId", + }); + internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor, + new java.lang.String[] { + "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", + }); + internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor, + new java.lang.String[] { + "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", + }); + internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor, + new java.lang.String[] { + "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", + }); + internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor, + new java.lang.String[] { + "ProjectId", "Region", "ClusterName", + }); + internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor, + new java.lang.String[] { + "ProjectId", "Region", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor, + new java.lang.String[] { + "Clusters", "NextPageToken", + }); + internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor, + new java.lang.String[] { + "ProjectId", "Region", "ClusterName", + }); + internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor, + new java.lang.String[] { + "OutputUri", + }); + internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor, + new java.lang.String[] { + "ConsumeReservationType", "Key", "Values", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + 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.dataproc.v1.SharedProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java similarity index 74% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java index d6af1047de6d..95757b56f701 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Cluster components that can be activated.
  * 
* * Protobuf enum {@code google.cloud.dataproc.v1.Component} */ -public enum Component - implements com.google.protobuf.ProtocolMessageEnum { +public enum Component implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unspecified component. Specifying this will cause Cluster creation to fail.
    * 
@@ -21,6 +39,8 @@ public enum Component */ COMPONENT_UNSPECIFIED(0), /** + * + * *
    * The Anaconda python distribution. The Anaconda component is not supported
    * in the Dataproc
@@ -33,6 +53,8 @@ public enum Component
    */
   ANACONDA(5),
   /**
+   *
+   *
    * 
    * Docker
    * 
@@ -41,6 +63,8 @@ public enum Component */ DOCKER(13), /** + * + * *
    * The Druid query engine. (alpha)
    * 
@@ -49,6 +73,8 @@ public enum Component */ DRUID(9), /** + * + * *
    * Flink
    * 
@@ -57,6 +83,8 @@ public enum Component */ FLINK(14), /** + * + * *
    * HBase. (beta)
    * 
@@ -65,6 +93,8 @@ public enum Component */ HBASE(11), /** + * + * *
    * The Hive Web HCatalog (the REST service for accessing HCatalog).
    * 
@@ -73,6 +103,8 @@ public enum Component */ HIVE_WEBHCAT(3), /** + * + * *
    * The Jupyter Notebook.
    * 
@@ -81,6 +113,8 @@ public enum Component */ JUPYTER(1), /** + * + * *
    * The Presto query engine.
    * 
@@ -89,6 +123,8 @@ public enum Component */ PRESTO(6), /** + * + * *
    * The Ranger service.
    * 
@@ -97,6 +133,8 @@ public enum Component */ RANGER(12), /** + * + * *
    * The Solr service.
    * 
@@ -105,6 +143,8 @@ public enum Component */ SOLR(10), /** + * + * *
    * The Zeppelin notebook.
    * 
@@ -113,6 +153,8 @@ public enum Component */ ZEPPELIN(4), /** + * + * *
    * The Zookeeper service.
    * 
@@ -124,6 +166,8 @@ public enum Component ; /** + * + * *
    * Unspecified component. Specifying this will cause Cluster creation to fail.
    * 
@@ -132,6 +176,8 @@ public enum Component */ public static final int COMPONENT_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The Anaconda python distribution. The Anaconda component is not supported
    * in the Dataproc
@@ -144,6 +190,8 @@ public enum Component
    */
   public static final int ANACONDA_VALUE = 5;
   /**
+   *
+   *
    * 
    * Docker
    * 
@@ -152,6 +200,8 @@ public enum Component */ public static final int DOCKER_VALUE = 13; /** + * + * *
    * The Druid query engine. (alpha)
    * 
@@ -160,6 +210,8 @@ public enum Component */ public static final int DRUID_VALUE = 9; /** + * + * *
    * Flink
    * 
@@ -168,6 +220,8 @@ public enum Component */ public static final int FLINK_VALUE = 14; /** + * + * *
    * HBase. (beta)
    * 
@@ -176,6 +230,8 @@ public enum Component */ public static final int HBASE_VALUE = 11; /** + * + * *
    * The Hive Web HCatalog (the REST service for accessing HCatalog).
    * 
@@ -184,6 +240,8 @@ public enum Component */ public static final int HIVE_WEBHCAT_VALUE = 3; /** + * + * *
    * The Jupyter Notebook.
    * 
@@ -192,6 +250,8 @@ public enum Component */ public static final int JUPYTER_VALUE = 1; /** + * + * *
    * The Presto query engine.
    * 
@@ -200,6 +260,8 @@ public enum Component */ public static final int PRESTO_VALUE = 6; /** + * + * *
    * The Ranger service.
    * 
@@ -208,6 +270,8 @@ public enum Component */ public static final int RANGER_VALUE = 12; /** + * + * *
    * The Solr service.
    * 
@@ -216,6 +280,8 @@ public enum Component */ public static final int SOLR_VALUE = 10; /** + * + * *
    * The Zeppelin notebook.
    * 
@@ -224,6 +290,8 @@ public enum Component */ public static final int ZEPPELIN_VALUE = 4; /** + * + * *
    * The Zookeeper service.
    * 
@@ -232,7 +300,6 @@ public enum Component */ public static final int ZOOKEEPER_VALUE = 8; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -257,59 +324,69 @@ public static Component valueOf(int value) { */ public static Component forNumber(int value) { switch (value) { - case 0: return COMPONENT_UNSPECIFIED; - case 5: return ANACONDA; - case 13: return DOCKER; - case 9: return DRUID; - case 14: return FLINK; - case 11: return HBASE; - case 3: return HIVE_WEBHCAT; - case 1: return JUPYTER; - case 6: return PRESTO; - case 12: return RANGER; - case 10: return SOLR; - case 4: return ZEPPELIN; - case 8: return ZOOKEEPER; - default: return null; + case 0: + return COMPONENT_UNSPECIFIED; + case 5: + return ANACONDA; + case 13: + return DOCKER; + case 9: + return DRUID; + case 14: + return FLINK; + case 11: + return HBASE; + case 3: + return HIVE_WEBHCAT; + case 1: + return JUPYTER; + case 6: + return PRESTO; + case 12: + return RANGER; + case 10: + return SOLR; + case 4: + return ZEPPELIN; + case 8: + return ZOOKEEPER; + 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< - Component> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Component findValueByNumber(int number) { - return Component.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Component findValueByNumber(int number) { + return Component.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataproc.v1.SharedProto.getDescriptor().getEnumTypes().get(0); } private static final Component[] VALUES = values(); - public static Component valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Component valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -325,4 +402,3 @@ private Component(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.Component) } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java index 7d9b97ef3420..0e7c53d6728e 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Confidential Instance Config for clusters using [Confidential
  * VMs](https://cloud.google.com/compute/confidential-vm/docs)
@@ -11,52 +28,56 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.ConfidentialInstanceConfig}
  */
-public final class ConfidentialInstanceConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ConfidentialInstanceConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ConfidentialInstanceConfig)
     ConfidentialInstanceConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ConfidentialInstanceConfig.newBuilder() to construct.
   private ConfidentialInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ConfidentialInstanceConfig() {
-  }
+
+  private ConfidentialInstanceConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ConfidentialInstanceConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.class, com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder.class);
+            com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.class,
+            com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder.class);
   }
 
   public static final int ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER = 1;
   private boolean enableConfidentialCompute_;
   /**
+   *
+   *
    * 
    * Optional. Defines whether the instance should have confidential compute
    * enabled.
    * 
* * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableConfidentialCompute. */ @java.lang.Override @@ -65,6 +86,7 @@ public boolean getEnableConfidentialCompute() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -76,8 +98,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enableConfidentialCompute_ != false) { output.writeBool(1, enableConfidentialCompute_); } @@ -91,8 +112,7 @@ public int getSerializedSize() { size = 0; if (enableConfidentialCompute_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableConfidentialCompute_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableConfidentialCompute_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -102,15 +122,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.dataproc.v1.ConfidentialInstanceConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig other = (com.google.cloud.dataproc.v1.ConfidentialInstanceConfig) obj; + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig other = + (com.google.cloud.dataproc.v1.ConfidentialInstanceConfig) obj; - if (getEnableConfidentialCompute() - != other.getEnableConfidentialCompute()) return false; + if (getEnableConfidentialCompute() != other.getEnableConfidentialCompute()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -123,104 +143,111 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableConfidentialCompute()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableConfidentialCompute()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig 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.dataproc.v1.ConfidentialInstanceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ConfidentialInstanceConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Confidential Instance Config for clusters using [Confidential
    * VMs](https://cloud.google.com/compute/confidential-vm/docs)
@@ -228,33 +255,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.ConfidentialInstanceConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ConfidentialInstanceConfig)
       com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.class, com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder.class);
+              com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.class,
+              com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -264,9 +290,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor;
     }
 
     @java.lang.Override
@@ -285,7 +311,8 @@ public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig buildPartial() {
-      com.google.cloud.dataproc.v1.ConfidentialInstanceConfig result = new com.google.cloud.dataproc.v1.ConfidentialInstanceConfig(this);
+      com.google.cloud.dataproc.v1.ConfidentialInstanceConfig result =
+          new com.google.cloud.dataproc.v1.ConfidentialInstanceConfig(this);
       result.enableConfidentialCompute_ = enableConfidentialCompute_;
       onBuilt();
       return result;
@@ -295,38 +322,39 @@ public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.ConfidentialInstanceConfig) {
-        return mergeFrom((com.google.cloud.dataproc.v1.ConfidentialInstanceConfig)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.ConfidentialInstanceConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -334,7 +362,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.ConfidentialInstanceConfig other) {
-      if (other == com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance())
+        return this;
       if (other.getEnableConfidentialCompute() != false) {
         setEnableConfidentialCompute(other.getEnableConfidentialCompute());
       }
@@ -364,17 +393,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              enableConfidentialCompute_ = input.readBool();
-
-              break;
-            } // case 8
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                enableConfidentialCompute_ = input.readBool();
+
+                break;
+              } // case 8
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -385,14 +416,17 @@ public Builder mergeFrom(
       return this;
     }
 
-    private boolean enableConfidentialCompute_ ;
+    private boolean enableConfidentialCompute_;
     /**
+     *
+     *
      * 
      * Optional. Defines whether the instance should have confidential compute
      * enabled.
      * 
* * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableConfidentialCompute. */ @java.lang.Override @@ -400,39 +434,45 @@ public boolean getEnableConfidentialCompute() { return enableConfidentialCompute_; } /** + * + * *
      * Optional. Defines whether the instance should have confidential compute
      * enabled.
      * 
* * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The enableConfidentialCompute to set. * @return This builder for chaining. */ public Builder setEnableConfidentialCompute(boolean value) { - + enableConfidentialCompute_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Defines whether the instance should have confidential compute
      * enabled.
      * 
* * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEnableConfidentialCompute() { - + enableConfidentialCompute_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -442,12 +482,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ConfidentialInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ConfidentialInstanceConfig) private static final com.google.cloud.dataproc.v1.ConfidentialInstanceConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ConfidentialInstanceConfig(); } @@ -456,27 +496,27 @@ public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfidentialInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfidentialInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -491,6 +531,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java new file mode 100644 index 000000000000..767898d599b9 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java @@ -0,0 +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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface ConfidentialInstanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ConfidentialInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Defines whether the instance should have confidential compute
+   * enabled.
+   * 
+ * + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableConfidentialCompute. + */ + boolean getEnableConfidentialCompute(); +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java similarity index 64% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java index 02058b33af5f..f907627d4e5c 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java @@ -1,56 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to create an autoscaling policy.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest} */ -public final class CreateAutoscalingPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) CreateAutoscalingPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateAutoscalingPolicyRequest.newBuilder() to construct. - private CreateAutoscalingPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateAutoscalingPolicyRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateAutoscalingPolicyRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateAutoscalingPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.class, com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.Builder.class); + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.class, + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The "resource name" of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -62,7 +84,10 @@ protected java.lang.Object newInstance(
    *   `projects/{project_id}/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 @@ -71,14 +96,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The "resource name" of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -90,17 +116,18 @@ public java.lang.String getParent() {
    *   `projects/{project_id}/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 { @@ -111,11 +138,16 @@ public java.lang.String getParent() { public static final int POLICY_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.AutoscalingPolicy policy_; /** + * + * *
    * Required. The autoscaling policy to create.
    * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the policy field is set. */ @java.lang.Override @@ -123,23 +155,34 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
    * Required. The autoscaling policy to create.
    * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The policy. */ @java.lang.Override public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy() { - return policy_ == null ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() : policy_; + return policy_ == null + ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() + : policy_; } /** + * + * *
    * Required. The autoscaling policy to create.
    * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder() { @@ -147,6 +190,7 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -179,8 +222,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -190,19 +232,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.dataproc.v1.CreateAutoscalingPolicyRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest other = (com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) obj; + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest other = + (com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { - if (!getPolicy() - .equals(other.getPolicy())) return false; + if (!getPolicy().equals(other.getPolicy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -227,129 +268,136 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest 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.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to create an autoscaling policy.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.class, com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.Builder.class); + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.class, + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -365,9 +413,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; } @java.lang.Override @@ -386,7 +434,8 @@ public com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest buildPartial() { - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest result = new com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest(this); + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest result = + new com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest(this); result.parent_ = parent_; if (policyBuilder_ == null) { result.policy_ = policy_; @@ -401,38 +450,39 @@ public com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -440,7 +490,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest other) { - if (other == com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -474,24 +525,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getPolicyFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -504,6 +556,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -515,14 +569,16 @@ public Builder mergeFrom(
      *   `projects/{project_id}/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; @@ -531,6 +587,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -542,16 +600,17 @@ public java.lang.String getParent() {
      *   `projects/{project_id}/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 { @@ -559,6 +618,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -570,21 +631,25 @@ public java.lang.String getParent() {
      *   `projects/{project_id}/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 "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -596,16 +661,21 @@ public Builder setParent(
      *   `projects/{project_id}/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 "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -617,17 +687,19 @@ public Builder clearParent() {
      *   `projects/{project_id}/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; @@ -635,39 +707,58 @@ public Builder setParentBytes( private com.google.cloud.dataproc.v1.AutoscalingPolicy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> policyBuilder_; + com.google.cloud.dataproc.v1.AutoscalingPolicy, + com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, + com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> + policyBuilder_; /** + * + * *
      * Required. The autoscaling policy to create.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** + * + * *
      * Required. The autoscaling policy to create.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The policy. */ public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy() { if (policyBuilder_ == null) { - return policy_ == null ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() : policy_; + return policy_ == null + ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() + : policy_; } else { return policyBuilder_.getMessage(); } } /** + * + * *
      * Required. The autoscaling policy to create.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { if (policyBuilder_ == null) { @@ -683,11 +774,15 @@ public Builder setPolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { return this; } /** + * + * *
      * Required. The autoscaling policy to create.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPolicy( com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder builderForValue) { @@ -701,17 +796,23 @@ public Builder setPolicy( return this; } /** + * + * *
      * Required. The autoscaling policy to create.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { if (policyBuilder_ == null) { if (policy_ != null) { policy_ = - com.google.cloud.dataproc.v1.AutoscalingPolicy.newBuilder(policy_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.AutoscalingPolicy.newBuilder(policy_) + .mergeFrom(value) + .buildPartial(); } else { policy_ = value; } @@ -723,11 +824,15 @@ public Builder mergePolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) return this; } /** + * + * *
      * Required. The autoscaling policy to create.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPolicy() { if (policyBuilder_ == null) { @@ -741,55 +846,71 @@ public Builder clearPolicy() { return this; } /** + * + * *
      * Required. The autoscaling policy to create.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder getPolicyBuilder() { - + onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The autoscaling policy to create.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { - return policy_ == null ? - com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() : policy_; + return policy_ == null + ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() + : policy_; } } /** + * + * *
      * Required. The autoscaling policy to create.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> + com.google.cloud.dataproc.v1.AutoscalingPolicy, + com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, + com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { - policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder>( - getPolicy(), - getParentForChildren(), - isClean()); + policyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.AutoscalingPolicy, + com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, + com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder>( + getPolicy(), getParentForChildren(), isClean()); policy_ = null; } return policyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -799,12 +920,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) private static final com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest(); } @@ -813,27 +934,27 @@ public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAutoscalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAutoscalingPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -848,6 +969,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.java index b0e8aef377ca..a7571aef21eb 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; -public interface CreateAutoscalingPolicyRequestOrBuilder extends +public interface CreateAutoscalingPolicyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The "resource name" of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -19,11 +37,16 @@ public interface CreateAutoscalingPolicyRequestOrBuilder extends
    *   `projects/{project_id}/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 "resource name" of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -35,36 +58,52 @@ public interface CreateAutoscalingPolicyRequestOrBuilder extends
    *   `projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The autoscaling policy to create.
    * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
    * Required. The autoscaling policy to create.
    * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The policy. */ com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy(); /** + * + * *
    * Required. The autoscaling policy to create.
    * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java similarity index 71% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java index ffecc55e6ee9..043efdce2355 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to create a batch workload.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.CreateBatchRequest} */ -public final class CreateBatchRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateBatchRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.CreateBatchRequest) CreateBatchRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateBatchRequest.newBuilder() to construct. private CreateBatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateBatchRequest() { parent_ = ""; batchId_ = ""; @@ -27,37 +45,43 @@ private CreateBatchRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateBatchRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateBatchRequest.class, com.google.cloud.dataproc.v1.CreateBatchRequest.Builder.class); + com.google.cloud.dataproc.v1.CreateBatchRequest.class, + com.google.cloud.dataproc.v1.CreateBatchRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource where this batch will be created.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,29 +90,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource where this batch will be created.
    * 
* - * 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 { @@ -99,11 +125,15 @@ public java.lang.String getParent() { public static final int BATCH_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.Batch batch_; /** + * + * *
    * Required. The batch to create.
    * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the batch field is set. */ @java.lang.Override @@ -111,11 +141,15 @@ public boolean hasBatch() { return batch_ != null; } /** + * + * *
    * Required. The batch to create.
    * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The batch. */ @java.lang.Override @@ -123,11 +157,14 @@ public com.google.cloud.dataproc.v1.Batch getBatch() { return batch_ == null ? com.google.cloud.dataproc.v1.Batch.getDefaultInstance() : batch_; } /** + * + * *
    * Required. The batch to create.
    * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder() { @@ -137,6 +174,8 @@ public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder() { public static final int BATCH_ID_FIELD_NUMBER = 3; private volatile java.lang.Object batchId_; /** + * + * *
    * Optional. The ID to use for the batch, which will become the final component of
    * the batch's resource name.
@@ -144,6 +183,7 @@ public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder() {
    * 
* * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The batchId. */ @java.lang.Override @@ -152,14 +192,15 @@ public java.lang.String getBatchId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batchId_ = s; return s; } } /** + * + * *
    * Optional. The ID to use for the batch, which will become the final component of
    * the batch's resource name.
@@ -167,16 +208,15 @@ public java.lang.String getBatchId() {
    * 
* * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for batchId. */ @java.lang.Override - public com.google.protobuf.ByteString - getBatchIdBytes() { + public com.google.protobuf.ByteString getBatchIdBytes() { java.lang.Object ref = batchId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); batchId_ = b; return b; } else { @@ -187,6 +227,8 @@ public java.lang.String getBatchId() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A unique ID used to identify the request. If the service
    * receives two
@@ -201,6 +243,7 @@ public java.lang.String getBatchId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -209,14 +252,15 @@ 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. A unique ID used to identify the request. If the service
    * receives two
@@ -231,16 +275,15 @@ 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 { @@ -249,6 +292,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,8 +304,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -287,8 +330,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (batch_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBatch()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBatch()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, batchId_); @@ -304,24 +346,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.dataproc.v1.CreateBatchRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.CreateBatchRequest other = (com.google.cloud.dataproc.v1.CreateBatchRequest) obj; + com.google.cloud.dataproc.v1.CreateBatchRequest other = + (com.google.cloud.dataproc.v1.CreateBatchRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasBatch() != other.hasBatch()) return false; if (hasBatch()) { - if (!getBatch() - .equals(other.getBatch())) return false; + if (!getBatch().equals(other.getBatch())) return false; } - if (!getBatchId() - .equals(other.getBatchId())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getBatchId().equals(other.getBatchId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,130 +387,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.CreateBatchRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to create a batch workload.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.CreateBatchRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.CreateBatchRequest) com.google.cloud.dataproc.v1.CreateBatchRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateBatchRequest.class, com.google.cloud.dataproc.v1.CreateBatchRequest.Builder.class); + com.google.cloud.dataproc.v1.CreateBatchRequest.class, + com.google.cloud.dataproc.v1.CreateBatchRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.CreateBatchRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -491,9 +536,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; } @java.lang.Override @@ -512,7 +557,8 @@ public com.google.cloud.dataproc.v1.CreateBatchRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.CreateBatchRequest buildPartial() { - com.google.cloud.dataproc.v1.CreateBatchRequest result = new com.google.cloud.dataproc.v1.CreateBatchRequest(this); + com.google.cloud.dataproc.v1.CreateBatchRequest result = + new com.google.cloud.dataproc.v1.CreateBatchRequest(this); result.parent_ = parent_; if (batchBuilder_ == null) { result.batch_ = batch_; @@ -529,38 +575,39 @@ public com.google.cloud.dataproc.v1.CreateBatchRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.CreateBatchRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.CreateBatchRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.CreateBatchRequest) other); } else { super.mergeFrom(other); return this; @@ -568,7 +615,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateBatchRequest other) { - if (other == com.google.cloud.dataproc.v1.CreateBatchRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.CreateBatchRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -610,34 +658,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getBatchFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getBatchFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - batchId_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + batchId_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,18 +701,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource where this batch will be created.
      * 
* - * 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; @@ -670,20 +725,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this batch will be created.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -691,54 +749,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this batch will be created.
      * 
* - * 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 where this batch will be created.
      * 
* - * 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 where this batch will be created.
      * 
* - * 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; @@ -746,24 +817,35 @@ public Builder setParentBytes( private com.google.cloud.dataproc.v1.Batch batch_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch, com.google.cloud.dataproc.v1.Batch.Builder, com.google.cloud.dataproc.v1.BatchOrBuilder> batchBuilder_; + com.google.cloud.dataproc.v1.Batch, + com.google.cloud.dataproc.v1.Batch.Builder, + com.google.cloud.dataproc.v1.BatchOrBuilder> + batchBuilder_; /** + * + * *
      * Required. The batch to create.
      * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the batch field is set. */ public boolean hasBatch() { return batchBuilder_ != null || batch_ != null; } /** + * + * *
      * Required. The batch to create.
      * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The batch. */ public com.google.cloud.dataproc.v1.Batch getBatch() { @@ -774,11 +856,14 @@ public com.google.cloud.dataproc.v1.Batch getBatch() { } } /** + * + * *
      * Required. The batch to create.
      * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBatch(com.google.cloud.dataproc.v1.Batch value) { if (batchBuilder_ == null) { @@ -794,14 +879,16 @@ public Builder setBatch(com.google.cloud.dataproc.v1.Batch value) { return this; } /** + * + * *
      * Required. The batch to create.
      * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setBatch( - com.google.cloud.dataproc.v1.Batch.Builder builderForValue) { + public Builder setBatch(com.google.cloud.dataproc.v1.Batch.Builder builderForValue) { if (batchBuilder_ == null) { batch_ = builderForValue.build(); onChanged(); @@ -812,17 +899,20 @@ public Builder setBatch( return this; } /** + * + * *
      * Required. The batch to create.
      * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBatch(com.google.cloud.dataproc.v1.Batch value) { if (batchBuilder_ == null) { if (batch_ != null) { batch_ = - com.google.cloud.dataproc.v1.Batch.newBuilder(batch_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.Batch.newBuilder(batch_).mergeFrom(value).buildPartial(); } else { batch_ = value; } @@ -834,11 +924,14 @@ public Builder mergeBatch(com.google.cloud.dataproc.v1.Batch value) { return this; } /** + * + * *
      * Required. The batch to create.
      * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBatch() { if (batchBuilder_ == null) { @@ -852,48 +945,59 @@ public Builder clearBatch() { return this; } /** + * + * *
      * Required. The batch to create.
      * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.Batch.Builder getBatchBuilder() { - + onChanged(); return getBatchFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The batch to create.
      * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder() { if (batchBuilder_ != null) { return batchBuilder_.getMessageOrBuilder(); } else { - return batch_ == null ? - com.google.cloud.dataproc.v1.Batch.getDefaultInstance() : batch_; + return batch_ == null ? com.google.cloud.dataproc.v1.Batch.getDefaultInstance() : batch_; } } /** + * + * *
      * Required. The batch to create.
      * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch, com.google.cloud.dataproc.v1.Batch.Builder, com.google.cloud.dataproc.v1.BatchOrBuilder> + com.google.cloud.dataproc.v1.Batch, + com.google.cloud.dataproc.v1.Batch.Builder, + com.google.cloud.dataproc.v1.BatchOrBuilder> getBatchFieldBuilder() { if (batchBuilder_ == null) { - batchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch, com.google.cloud.dataproc.v1.Batch.Builder, com.google.cloud.dataproc.v1.BatchOrBuilder>( - getBatch(), - getParentForChildren(), - isClean()); + batchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.Batch, + com.google.cloud.dataproc.v1.Batch.Builder, + com.google.cloud.dataproc.v1.BatchOrBuilder>( + getBatch(), getParentForChildren(), isClean()); batch_ = null; } return batchBuilder_; @@ -901,6 +1005,8 @@ public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder() { private java.lang.Object batchId_ = ""; /** + * + * *
      * Optional. The ID to use for the batch, which will become the final component of
      * the batch's resource name.
@@ -908,13 +1014,13 @@ public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder() {
      * 
* * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The batchId. */ public java.lang.String getBatchId() { java.lang.Object ref = batchId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batchId_ = s; return s; @@ -923,6 +1029,8 @@ public java.lang.String getBatchId() { } } /** + * + * *
      * Optional. The ID to use for the batch, which will become the final component of
      * the batch's resource name.
@@ -930,15 +1038,14 @@ public java.lang.String getBatchId() {
      * 
* * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for batchId. */ - public com.google.protobuf.ByteString - getBatchIdBytes() { + public com.google.protobuf.ByteString getBatchIdBytes() { java.lang.Object ref = batchId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); batchId_ = b; return b; } else { @@ -946,6 +1053,8 @@ public java.lang.String getBatchId() { } } /** + * + * *
      * Optional. The ID to use for the batch, which will become the final component of
      * the batch's resource name.
@@ -953,20 +1062,22 @@ public java.lang.String getBatchId() {
      * 
* * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The batchId to set. * @return This builder for chaining. */ - public Builder setBatchId( - java.lang.String value) { + public Builder setBatchId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + batchId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The ID to use for the batch, which will become the final component of
      * the batch's resource name.
@@ -974,15 +1085,18 @@ public Builder setBatchId(
      * 
* * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearBatchId() { - + batchId_ = getDefaultInstance().getBatchId(); onChanged(); return this; } /** + * + * *
      * Optional. The ID to use for the batch, which will become the final component of
      * the batch's resource name.
@@ -990,16 +1104,16 @@ public Builder clearBatchId() {
      * 
* * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for batchId to set. * @return This builder for chaining. */ - public Builder setBatchIdBytes( - com.google.protobuf.ByteString value) { + public Builder setBatchIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + batchId_ = value; onChanged(); return this; @@ -1007,6 +1121,8 @@ public Builder setBatchIdBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique ID used to identify the request. If the service
      * receives two
@@ -1021,13 +1137,13 @@ public Builder setBatchIdBytes(
      * 
* * 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; @@ -1036,6 +1152,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique ID used to identify the request. If the service
      * receives two
@@ -1050,15 +1168,14 @@ 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 { @@ -1066,6 +1183,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique ID used to identify the request. If the service
      * receives two
@@ -1080,20 +1199,22 @@ public java.lang.String getRequestId() {
      * 
* * 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. A unique ID used to identify the request. If the service
      * receives two
@@ -1108,15 +1229,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A unique ID used to identify the request. If the service
      * receives two
@@ -1131,23 +1255,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); } @@ -1157,12 +1281,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.CreateBatchRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CreateBatchRequest) private static final com.google.cloud.dataproc.v1.CreateBatchRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.CreateBatchRequest(); } @@ -1171,27 +1295,27 @@ public static com.google.cloud.dataproc.v1.CreateBatchRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBatchRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBatchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1206,6 +1330,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.CreateBatchRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java index 19ca6e82c6ab..0ea10ac4b77b 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java @@ -1,60 +1,98 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; -public interface CreateBatchRequestOrBuilder extends +public interface CreateBatchRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.CreateBatchRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource where this batch will be created.
    * 
* - * 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 where this batch will be created.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The batch to create.
    * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the batch field is set. */ boolean hasBatch(); /** + * + * *
    * Required. The batch to create.
    * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The batch. */ com.google.cloud.dataproc.v1.Batch getBatch(); /** + * + * *
    * Required. The batch to create.
    * 
* - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder(); /** + * + * *
    * Optional. The ID to use for the batch, which will become the final component of
    * the batch's resource name.
@@ -62,10 +100,13 @@ public interface CreateBatchRequestOrBuilder extends
    * 
* * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The batchId. */ java.lang.String getBatchId(); /** + * + * *
    * Optional. The ID to use for the batch, which will become the final component of
    * the batch's resource name.
@@ -73,12 +114,14 @@ public interface CreateBatchRequestOrBuilder extends
    * 
* * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for batchId. */ - com.google.protobuf.ByteString - getBatchIdBytes(); + com.google.protobuf.ByteString getBatchIdBytes(); /** + * + * *
    * Optional. A unique ID used to identify the request. If the service
    * receives two
@@ -93,10 +136,13 @@ public interface CreateBatchRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique ID used to identify the request. If the service
    * receives two
@@ -111,8 +157,8 @@ public interface CreateBatchRequestOrBuilder extends
    * 
* * 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/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java index 70905b40a572..f8214ad4744d 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to create a cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.CreateClusterRequest} */ -public final class CreateClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.CreateClusterRequest) CreateClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateClusterRequest.newBuilder() to construct. private CreateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateClusterRequest() { projectId_ = ""; region_ = ""; @@ -28,38 +46,42 @@ private CreateClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateClusterRequest.class, com.google.cloud.dataproc.v1.CreateClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.CreateClusterRequest.class, + com.google.cloud.dataproc.v1.CreateClusterRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -68,30 +90,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -102,11 +124,14 @@ public java.lang.String getProjectId() { public static final int REGION_FIELD_NUMBER = 3; private volatile java.lang.Object region_; /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ @java.lang.Override @@ -115,29 +140,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -148,11 +173,15 @@ public java.lang.String getRegion() { public static final int CLUSTER_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.Cluster cluster_; /** + * + * *
    * Required. The cluster to create.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the cluster field is set. */ @java.lang.Override @@ -160,11 +189,15 @@ public boolean hasCluster() { return cluster_ != null; } /** + * + * *
    * Required. The cluster to create.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The cluster. */ @java.lang.Override @@ -172,11 +205,14 @@ public com.google.cloud.dataproc.v1.Cluster getCluster() { return cluster_ == null ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() : cluster_; } /** + * + * *
    * Required. The cluster to create.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { @@ -186,6 +222,8 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A unique ID used to identify the request. If the server receives
    * two
@@ -200,6 +238,7 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -208,14 +247,15 @@ 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. A unique ID used to identify the request. If the server receives
    * two
@@ -230,16 +270,15 @@ 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 { @@ -250,31 +289,45 @@ public java.lang.String getRequestId() { public static final int ACTION_ON_FAILED_PRIMARY_WORKERS_FIELD_NUMBER = 5; private int actionOnFailedPrimaryWorkers_; /** + * + * *
    * Optional. Failure action when primary worker creation fails.
    * 
* - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for actionOnFailedPrimaryWorkers. */ - @java.lang.Override public int getActionOnFailedPrimaryWorkersValue() { + @java.lang.Override + public int getActionOnFailedPrimaryWorkersValue() { return actionOnFailedPrimaryWorkers_; } /** + * + * *
    * Optional. Failure action when primary worker creation fails.
    * 
* - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The actionOnFailedPrimaryWorkers. */ - @java.lang.Override public com.google.cloud.dataproc.v1.FailureAction getActionOnFailedPrimaryWorkers() { + @java.lang.Override + public com.google.cloud.dataproc.v1.FailureAction getActionOnFailedPrimaryWorkers() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.FailureAction result = com.google.cloud.dataproc.v1.FailureAction.valueOf(actionOnFailedPrimaryWorkers_); + com.google.cloud.dataproc.v1.FailureAction result = + com.google.cloud.dataproc.v1.FailureAction.valueOf(actionOnFailedPrimaryWorkers_); return result == null ? com.google.cloud.dataproc.v1.FailureAction.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,8 +339,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -300,7 +352,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); } - if (actionOnFailedPrimaryWorkers_ != com.google.cloud.dataproc.v1.FailureAction.FAILURE_ACTION_UNSPECIFIED.getNumber()) { + if (actionOnFailedPrimaryWorkers_ + != com.google.cloud.dataproc.v1.FailureAction.FAILURE_ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(5, actionOnFailedPrimaryWorkers_); } getUnknownFields().writeTo(output); @@ -316,8 +369,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } if (cluster_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCluster()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCluster()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); @@ -325,9 +377,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } - if (actionOnFailedPrimaryWorkers_ != com.google.cloud.dataproc.v1.FailureAction.FAILURE_ACTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, actionOnFailedPrimaryWorkers_); + if (actionOnFailedPrimaryWorkers_ + != com.google.cloud.dataproc.v1.FailureAction.FAILURE_ACTION_UNSPECIFIED.getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(5, actionOnFailedPrimaryWorkers_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -337,24 +390,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.dataproc.v1.CreateClusterRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.CreateClusterRequest other = (com.google.cloud.dataproc.v1.CreateClusterRequest) obj; + com.google.cloud.dataproc.v1.CreateClusterRequest other = + (com.google.cloud.dataproc.v1.CreateClusterRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getRegion() - .equals(other.getRegion())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) return false; if (hasCluster() != other.hasCluster()) return false; if (hasCluster()) { - if (!getCluster() - .equals(other.getCluster())) return false; + if (!getCluster().equals(other.getCluster())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (actionOnFailedPrimaryWorkers_ != other.actionOnFailedPrimaryWorkers_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -385,129 +435,135 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.CreateClusterRequest 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.dataproc.v1.CreateClusterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.CreateClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.CreateClusterRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.CreateClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to create a cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.CreateClusterRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.CreateClusterRequest) com.google.cloud.dataproc.v1.CreateClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateClusterRequest.class, com.google.cloud.dataproc.v1.CreateClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.CreateClusterRequest.class, + com.google.cloud.dataproc.v1.CreateClusterRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.CreateClusterRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -529,9 +585,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; } @java.lang.Override @@ -550,7 +606,8 @@ public com.google.cloud.dataproc.v1.CreateClusterRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.CreateClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.CreateClusterRequest result = new com.google.cloud.dataproc.v1.CreateClusterRequest(this); + com.google.cloud.dataproc.v1.CreateClusterRequest result = + new com.google.cloud.dataproc.v1.CreateClusterRequest(this); result.projectId_ = projectId_; result.region_ = region_; if (clusterBuilder_ == null) { @@ -568,38 +625,39 @@ public com.google.cloud.dataproc.v1.CreateClusterRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.CreateClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.CreateClusterRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.CreateClusterRequest) other); } else { super.mergeFrom(other); return this; @@ -607,7 +665,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.CreateClusterRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.CreateClusterRequest.getDefaultInstance()) + return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -652,39 +711,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - projectId_ = input.readStringRequireUtf8(); + case 10: + { + projectId_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getClusterFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getClusterFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - region_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + region_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 40: { - actionOnFailedPrimaryWorkers_ = input.readEnum(); + break; + } // case 34 + case 40: + { + actionOnFailedPrimaryWorkers_ = input.readEnum(); - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -697,19 +760,21 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -718,21 +783,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -740,57 +806,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -798,18 +871,20 @@ public Builder setProjectIdBytes( private java.lang.Object region_ = ""; /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -818,20 +893,21 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -839,54 +915,61 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion( - java.lang.String value) { + public Builder setRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -894,39 +977,58 @@ public Builder setRegionBytes( private com.google.cloud.dataproc.v1.Cluster cluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, com.google.cloud.dataproc.v1.Cluster.Builder, com.google.cloud.dataproc.v1.ClusterOrBuilder> clusterBuilder_; + com.google.cloud.dataproc.v1.Cluster, + com.google.cloud.dataproc.v1.Cluster.Builder, + com.google.cloud.dataproc.v1.ClusterOrBuilder> + clusterBuilder_; /** + * + * *
      * Required. The cluster to create.
      * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the cluster field is set. */ public boolean hasCluster() { return clusterBuilder_ != null || cluster_ != null; } /** + * + * *
      * Required. The cluster to create.
      * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The cluster. */ public com.google.cloud.dataproc.v1.Cluster getCluster() { if (clusterBuilder_ == null) { - return cluster_ == null ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() : cluster_; + return cluster_ == null + ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() + : cluster_; } else { return clusterBuilder_.getMessage(); } } /** + * + * *
      * Required. The cluster to create.
      * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCluster(com.google.cloud.dataproc.v1.Cluster value) { if (clusterBuilder_ == null) { @@ -942,14 +1044,17 @@ public Builder setCluster(com.google.cloud.dataproc.v1.Cluster value) { return this; } /** + * + * *
      * Required. The cluster to create.
      * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCluster( - com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { + public Builder setCluster(com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { if (clusterBuilder_ == null) { cluster_ = builderForValue.build(); onChanged(); @@ -960,17 +1065,23 @@ public Builder setCluster( return this; } /** + * + * *
      * Required. The cluster to create.
      * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCluster(com.google.cloud.dataproc.v1.Cluster value) { if (clusterBuilder_ == null) { if (cluster_ != null) { cluster_ = - com.google.cloud.dataproc.v1.Cluster.newBuilder(cluster_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.Cluster.newBuilder(cluster_) + .mergeFrom(value) + .buildPartial(); } else { cluster_ = value; } @@ -982,11 +1093,15 @@ public Builder mergeCluster(com.google.cloud.dataproc.v1.Cluster value) { return this; } /** + * + * *
      * Required. The cluster to create.
      * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCluster() { if (clusterBuilder_ == null) { @@ -1000,48 +1115,64 @@ public Builder clearCluster() { return this; } /** + * + * *
      * Required. The cluster to create.
      * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.Cluster.Builder getClusterBuilder() { - + onChanged(); return getClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The cluster to create.
      * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { if (clusterBuilder_ != null) { return clusterBuilder_.getMessageOrBuilder(); } else { - return cluster_ == null ? - com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() : cluster_; + return cluster_ == null + ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() + : cluster_; } } /** + * + * *
      * Required. The cluster to create.
      * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, com.google.cloud.dataproc.v1.Cluster.Builder, com.google.cloud.dataproc.v1.ClusterOrBuilder> + com.google.cloud.dataproc.v1.Cluster, + com.google.cloud.dataproc.v1.Cluster.Builder, + com.google.cloud.dataproc.v1.ClusterOrBuilder> getClusterFieldBuilder() { if (clusterBuilder_ == null) { - clusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, com.google.cloud.dataproc.v1.Cluster.Builder, com.google.cloud.dataproc.v1.ClusterOrBuilder>( - getCluster(), - getParentForChildren(), - isClean()); + clusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.Cluster, + com.google.cloud.dataproc.v1.Cluster.Builder, + com.google.cloud.dataproc.v1.ClusterOrBuilder>( + getCluster(), getParentForChildren(), isClean()); cluster_ = null; } return clusterBuilder_; @@ -1049,6 +1180,8 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique ID used to identify the request. If the server receives
      * two
@@ -1063,13 +1196,13 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() {
      * 
* * 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; @@ -1078,6 +1211,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server receives
      * two
@@ -1092,15 +1227,14 @@ 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 { @@ -1108,6 +1242,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server receives
      * two
@@ -1122,20 +1258,22 @@ public java.lang.String getRequestId() {
      * 
* * 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. A unique ID used to identify the request. If the server receives
      * two
@@ -1150,15 +1288,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server receives
      * two
@@ -1173,16 +1314,16 @@ 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; @@ -1190,80 +1331,108 @@ public Builder setRequestIdBytes( private int actionOnFailedPrimaryWorkers_ = 0; /** + * + * *
      * Optional. Failure action when primary worker creation fails.
      * 
* - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for actionOnFailedPrimaryWorkers. */ - @java.lang.Override public int getActionOnFailedPrimaryWorkersValue() { + @java.lang.Override + public int getActionOnFailedPrimaryWorkersValue() { return actionOnFailedPrimaryWorkers_; } /** + * + * *
      * Optional. Failure action when primary worker creation fails.
      * 
* - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for actionOnFailedPrimaryWorkers to set. * @return This builder for chaining. */ public Builder setActionOnFailedPrimaryWorkersValue(int value) { - + actionOnFailedPrimaryWorkers_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Failure action when primary worker creation fails.
      * 
* - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The actionOnFailedPrimaryWorkers. */ @java.lang.Override public com.google.cloud.dataproc.v1.FailureAction getActionOnFailedPrimaryWorkers() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.FailureAction result = com.google.cloud.dataproc.v1.FailureAction.valueOf(actionOnFailedPrimaryWorkers_); + com.google.cloud.dataproc.v1.FailureAction result = + com.google.cloud.dataproc.v1.FailureAction.valueOf(actionOnFailedPrimaryWorkers_); return result == null ? com.google.cloud.dataproc.v1.FailureAction.UNRECOGNIZED : result; } /** + * + * *
      * Optional. Failure action when primary worker creation fails.
      * 
* - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The actionOnFailedPrimaryWorkers to set. * @return This builder for chaining. */ - public Builder setActionOnFailedPrimaryWorkers(com.google.cloud.dataproc.v1.FailureAction value) { + public Builder setActionOnFailedPrimaryWorkers( + com.google.cloud.dataproc.v1.FailureAction value) { if (value == null) { throw new NullPointerException(); } - + actionOnFailedPrimaryWorkers_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. Failure action when primary worker creation fails.
      * 
* - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearActionOnFailedPrimaryWorkers() { - + actionOnFailedPrimaryWorkers_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1273,12 +1442,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.CreateClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CreateClusterRequest) private static final com.google.cloud.dataproc.v1.CreateClusterRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.CreateClusterRequest(); } @@ -1287,27 +1456,27 @@ public static com.google.cloud.dataproc.v1.CreateClusterRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1322,6 +1491,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.CreateClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java similarity index 74% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java index d0f8bcf25998..e0fced7656a6 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java @@ -1,82 +1,121 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface CreateClusterRequestOrBuilder extends +public interface CreateClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.CreateClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ java.lang.String getRegion(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - com.google.protobuf.ByteString - getRegionBytes(); + com.google.protobuf.ByteString getRegionBytes(); /** + * + * *
    * Required. The cluster to create.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the cluster field is set. */ boolean hasCluster(); /** + * + * *
    * Required. The cluster to create.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The cluster. */ com.google.cloud.dataproc.v1.Cluster getCluster(); /** + * + * *
    * Required. The cluster to create.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder(); /** + * + * *
    * Optional. A unique ID used to identify the request. If the server receives
    * two
@@ -91,10 +130,13 @@ public interface CreateClusterRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique ID used to identify the request. If the server receives
    * two
@@ -109,26 +151,36 @@ public interface CreateClusterRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * Optional. Failure action when primary worker creation fails.
    * 
* - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for actionOnFailedPrimaryWorkers. */ int getActionOnFailedPrimaryWorkersValue(); /** + * + * *
    * Optional. Failure action when primary worker creation fails.
    * 
* - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The actionOnFailedPrimaryWorkers. */ com.google.cloud.dataproc.v1.FailureAction getActionOnFailedPrimaryWorkers(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequest.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequest.java index d90fa65bb2cb..4f36cb6439ec 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/node_groups.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to create a node group.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.CreateNodeGroupRequest} */ -public final class CreateNodeGroupRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateNodeGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.CreateNodeGroupRequest) CreateNodeGroupRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateNodeGroupRequest.newBuilder() to construct. private CreateNodeGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateNodeGroupRequest() { parent_ = ""; nodeGroupId_ = ""; @@ -27,38 +45,44 @@ private CreateNodeGroupRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateNodeGroupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.NodeGroupsProto + .internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.NodeGroupsProto + .internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateNodeGroupRequest.class, com.google.cloud.dataproc.v1.CreateNodeGroupRequest.Builder.class); + com.google.cloud.dataproc.v1.CreateNodeGroupRequest.class, + com.google.cloud.dataproc.v1.CreateNodeGroupRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource where this node group will be created.
    * Format: `projects/{project}/regions/{region}/clusters/{cluster}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,30 +91,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource where this node group will be created.
    * Format: `projects/{project}/regions/{region}/clusters/{cluster}`
    * 
* - * 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 { @@ -101,11 +127,16 @@ public java.lang.String getParent() { public static final int NODE_GROUP_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.NodeGroup nodeGroup_; /** + * + * *
    * Required. The node group to create.
    * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nodeGroup field is set. */ @java.lang.Override @@ -113,23 +144,34 @@ public boolean hasNodeGroup() { return nodeGroup_ != null; } /** + * + * *
    * Required. The node group to create.
    * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nodeGroup. */ @java.lang.Override public com.google.cloud.dataproc.v1.NodeGroup getNodeGroup() { - return nodeGroup_ == null ? com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance() : nodeGroup_; + return nodeGroup_ == null + ? com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance() + : nodeGroup_; } /** + * + * *
    * Required. The node group to create.
    * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder() { @@ -139,6 +181,8 @@ public com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder() { public static final int NODE_GROUP_ID_FIELD_NUMBER = 4; private volatile java.lang.Object nodeGroupId_; /** + * + * *
    * Optional. An optional node group ID. Generated if not specified.
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -147,6 +191,7 @@ public com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder() {
    * 
* * string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nodeGroupId. */ @java.lang.Override @@ -155,14 +200,15 @@ public java.lang.String getNodeGroupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeGroupId_ = s; return s; } } /** + * + * *
    * Optional. An optional node group ID. Generated if not specified.
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -171,16 +217,15 @@ public java.lang.String getNodeGroupId() {
    * 
* * string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nodeGroupId. */ @java.lang.Override - public com.google.protobuf.ByteString - getNodeGroupIdBytes() { + public com.google.protobuf.ByteString getNodeGroupIdBytes() { java.lang.Object ref = nodeGroupId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeGroupId_ = b; return b; } else { @@ -191,6 +236,8 @@ public java.lang.String getNodeGroupId() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A unique ID used to identify the request. If the server receives
    * two
@@ -205,6 +252,7 @@ public java.lang.String getNodeGroupId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -213,14 +261,15 @@ 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. A unique ID used to identify the request. If the server receives
    * two
@@ -235,16 +284,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.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 { @@ -253,6 +301,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,8 +313,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,8 +339,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (nodeGroup_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getNodeGroup()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNodeGroup()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -308,24 +355,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.dataproc.v1.CreateNodeGroupRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.CreateNodeGroupRequest other = (com.google.cloud.dataproc.v1.CreateNodeGroupRequest) obj; + com.google.cloud.dataproc.v1.CreateNodeGroupRequest other = + (com.google.cloud.dataproc.v1.CreateNodeGroupRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasNodeGroup() != other.hasNodeGroup()) return false; if (hasNodeGroup()) { - if (!getNodeGroup() - .equals(other.getNodeGroup())) return false; + if (!getNodeGroup().equals(other.getNodeGroup())) return false; } - if (!getNodeGroupId() - .equals(other.getNodeGroupId())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getNodeGroupId().equals(other.getNodeGroupId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -353,129 +397,135 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest 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.dataproc.v1.CreateNodeGroupRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.CreateNodeGroupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to create a node group.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.CreateNodeGroupRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.CreateNodeGroupRequest) com.google.cloud.dataproc.v1.CreateNodeGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.NodeGroupsProto + .internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.NodeGroupsProto + .internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateNodeGroupRequest.class, com.google.cloud.dataproc.v1.CreateNodeGroupRequest.Builder.class); + com.google.cloud.dataproc.v1.CreateNodeGroupRequest.class, + com.google.cloud.dataproc.v1.CreateNodeGroupRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.CreateNodeGroupRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -495,9 +545,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.NodeGroupsProto + .internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_descriptor; } @java.lang.Override @@ -516,7 +566,8 @@ public com.google.cloud.dataproc.v1.CreateNodeGroupRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.CreateNodeGroupRequest buildPartial() { - com.google.cloud.dataproc.v1.CreateNodeGroupRequest result = new com.google.cloud.dataproc.v1.CreateNodeGroupRequest(this); + com.google.cloud.dataproc.v1.CreateNodeGroupRequest result = + new com.google.cloud.dataproc.v1.CreateNodeGroupRequest(this); result.parent_ = parent_; if (nodeGroupBuilder_ == null) { result.nodeGroup_ = nodeGroup_; @@ -533,38 +584,39 @@ public com.google.cloud.dataproc.v1.CreateNodeGroupRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.CreateNodeGroupRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.CreateNodeGroupRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.CreateNodeGroupRequest) other); } else { super.mergeFrom(other); return this; @@ -572,7 +624,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateNodeGroupRequest other) { - if (other == com.google.cloud.dataproc.v1.CreateNodeGroupRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.CreateNodeGroupRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -614,34 +667,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getNodeGroupFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getNodeGroupFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - nodeGroupId_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + nodeGroupId_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -654,19 +710,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource where this node group will be created.
      * Format: `projects/{project}/regions/{region}/clusters/{cluster}`
      * 
* - * 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; @@ -675,21 +735,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this node group will be created.
      * Format: `projects/{project}/regions/{region}/clusters/{cluster}`
      * 
* - * 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 { @@ -697,57 +760,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this node group will be created.
      * Format: `projects/{project}/regions/{region}/clusters/{cluster}`
      * 
* - * 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 where this node group will be created.
      * Format: `projects/{project}/regions/{region}/clusters/{cluster}`
      * 
* - * 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 where this node group will be created.
      * Format: `projects/{project}/regions/{region}/clusters/{cluster}`
      * 
* - * 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; @@ -755,39 +831,58 @@ public Builder setParentBytes( private com.google.cloud.dataproc.v1.NodeGroup nodeGroup_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeGroup, com.google.cloud.dataproc.v1.NodeGroup.Builder, com.google.cloud.dataproc.v1.NodeGroupOrBuilder> nodeGroupBuilder_; + com.google.cloud.dataproc.v1.NodeGroup, + com.google.cloud.dataproc.v1.NodeGroup.Builder, + com.google.cloud.dataproc.v1.NodeGroupOrBuilder> + nodeGroupBuilder_; /** + * + * *
      * Required. The node group to create.
      * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nodeGroup field is set. */ public boolean hasNodeGroup() { return nodeGroupBuilder_ != null || nodeGroup_ != null; } /** + * + * *
      * Required. The node group to create.
      * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nodeGroup. */ public com.google.cloud.dataproc.v1.NodeGroup getNodeGroup() { if (nodeGroupBuilder_ == null) { - return nodeGroup_ == null ? com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance() : nodeGroup_; + return nodeGroup_ == null + ? com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance() + : nodeGroup_; } else { return nodeGroupBuilder_.getMessage(); } } /** + * + * *
      * Required. The node group to create.
      * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNodeGroup(com.google.cloud.dataproc.v1.NodeGroup value) { if (nodeGroupBuilder_ == null) { @@ -803,14 +898,17 @@ public Builder setNodeGroup(com.google.cloud.dataproc.v1.NodeGroup value) { return this; } /** + * + * *
      * Required. The node group to create.
      * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setNodeGroup( - com.google.cloud.dataproc.v1.NodeGroup.Builder builderForValue) { + public Builder setNodeGroup(com.google.cloud.dataproc.v1.NodeGroup.Builder builderForValue) { if (nodeGroupBuilder_ == null) { nodeGroup_ = builderForValue.build(); onChanged(); @@ -821,17 +919,23 @@ public Builder setNodeGroup( return this; } /** + * + * *
      * Required. The node group to create.
      * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeNodeGroup(com.google.cloud.dataproc.v1.NodeGroup value) { if (nodeGroupBuilder_ == null) { if (nodeGroup_ != null) { nodeGroup_ = - com.google.cloud.dataproc.v1.NodeGroup.newBuilder(nodeGroup_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.NodeGroup.newBuilder(nodeGroup_) + .mergeFrom(value) + .buildPartial(); } else { nodeGroup_ = value; } @@ -843,11 +947,15 @@ public Builder mergeNodeGroup(com.google.cloud.dataproc.v1.NodeGroup value) { return this; } /** + * + * *
      * Required. The node group to create.
      * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNodeGroup() { if (nodeGroupBuilder_ == null) { @@ -861,48 +969,64 @@ public Builder clearNodeGroup() { return this; } /** + * + * *
      * Required. The node group to create.
      * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.NodeGroup.Builder getNodeGroupBuilder() { - + onChanged(); return getNodeGroupFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The node group to create.
      * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder() { if (nodeGroupBuilder_ != null) { return nodeGroupBuilder_.getMessageOrBuilder(); } else { - return nodeGroup_ == null ? - com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance() : nodeGroup_; + return nodeGroup_ == null + ? com.google.cloud.dataproc.v1.NodeGroup.getDefaultInstance() + : nodeGroup_; } } /** + * + * *
      * Required. The node group to create.
      * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeGroup, com.google.cloud.dataproc.v1.NodeGroup.Builder, com.google.cloud.dataproc.v1.NodeGroupOrBuilder> + com.google.cloud.dataproc.v1.NodeGroup, + com.google.cloud.dataproc.v1.NodeGroup.Builder, + com.google.cloud.dataproc.v1.NodeGroupOrBuilder> getNodeGroupFieldBuilder() { if (nodeGroupBuilder_ == null) { - nodeGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeGroup, com.google.cloud.dataproc.v1.NodeGroup.Builder, com.google.cloud.dataproc.v1.NodeGroupOrBuilder>( - getNodeGroup(), - getParentForChildren(), - isClean()); + nodeGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.NodeGroup, + com.google.cloud.dataproc.v1.NodeGroup.Builder, + com.google.cloud.dataproc.v1.NodeGroupOrBuilder>( + getNodeGroup(), getParentForChildren(), isClean()); nodeGroup_ = null; } return nodeGroupBuilder_; @@ -910,6 +1034,8 @@ public com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder() { private java.lang.Object nodeGroupId_ = ""; /** + * + * *
      * Optional. An optional node group ID. Generated if not specified.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -918,13 +1044,13 @@ public com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder() {
      * 
* * string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nodeGroupId. */ public java.lang.String getNodeGroupId() { java.lang.Object ref = nodeGroupId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeGroupId_ = s; return s; @@ -933,6 +1059,8 @@ public java.lang.String getNodeGroupId() { } } /** + * + * *
      * Optional. An optional node group ID. Generated if not specified.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -941,15 +1069,14 @@ public java.lang.String getNodeGroupId() {
      * 
* * string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nodeGroupId. */ - public com.google.protobuf.ByteString - getNodeGroupIdBytes() { + public com.google.protobuf.ByteString getNodeGroupIdBytes() { java.lang.Object ref = nodeGroupId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeGroupId_ = b; return b; } else { @@ -957,6 +1084,8 @@ public java.lang.String getNodeGroupId() { } } /** + * + * *
      * Optional. An optional node group ID. Generated if not specified.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -965,20 +1094,22 @@ public java.lang.String getNodeGroupId() {
      * 
* * string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The nodeGroupId to set. * @return This builder for chaining. */ - public Builder setNodeGroupId( - java.lang.String value) { + public Builder setNodeGroupId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeGroupId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An optional node group ID. Generated if not specified.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -987,15 +1118,18 @@ public Builder setNodeGroupId(
      * 
* * string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNodeGroupId() { - + nodeGroupId_ = getDefaultInstance().getNodeGroupId(); onChanged(); return this; } /** + * + * *
      * Optional. An optional node group ID. Generated if not specified.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1004,16 +1138,16 @@ public Builder clearNodeGroupId() {
      * 
* * string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for nodeGroupId to set. * @return This builder for chaining. */ - public Builder setNodeGroupIdBytes( - com.google.protobuf.ByteString value) { + public Builder setNodeGroupIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeGroupId_ = value; onChanged(); return this; @@ -1021,6 +1155,8 @@ public Builder setNodeGroupIdBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique ID used to identify the request. If the server receives
      * two
@@ -1035,13 +1171,13 @@ public Builder setNodeGroupIdBytes(
      * 
* * string request_id = 3 [(.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; @@ -1050,6 +1186,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server receives
      * two
@@ -1064,15 +1202,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.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 { @@ -1080,6 +1217,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server receives
      * two
@@ -1094,20 +1233,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.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. A unique ID used to identify the request. If the server receives
      * two
@@ -1122,15 +1263,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server receives
      * two
@@ -1145,23 +1289,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.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); } @@ -1171,12 +1315,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.CreateNodeGroupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CreateNodeGroupRequest) private static final com.google.cloud.dataproc.v1.CreateNodeGroupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.CreateNodeGroupRequest(); } @@ -1185,27 +1329,27 @@ public static com.google.cloud.dataproc.v1.CreateNodeGroupRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateNodeGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNodeGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1220,6 +1364,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.CreateNodeGroupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequestOrBuilder.java index 2b066d010fa3..8eb012f1c3fe 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateNodeGroupRequestOrBuilder.java @@ -1,62 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/node_groups.proto package com.google.cloud.dataproc.v1; -public interface CreateNodeGroupRequestOrBuilder extends +public interface CreateNodeGroupRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.CreateNodeGroupRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource where this node group will be created.
    * Format: `projects/{project}/regions/{region}/clusters/{cluster}`
    * 
* - * 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 where this node group will be created.
    * Format: `projects/{project}/regions/{region}/clusters/{cluster}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The node group to create.
    * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nodeGroup field is set. */ boolean hasNodeGroup(); /** + * + * *
    * Required. The node group to create.
    * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nodeGroup. */ com.google.cloud.dataproc.v1.NodeGroup getNodeGroup(); /** + * + * *
    * Required. The node group to create.
    * 
* - * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.dataproc.v1.NodeGroupOrBuilder getNodeGroupOrBuilder(); /** + * + * *
    * Optional. An optional node group ID. Generated if not specified.
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -65,10 +106,13 @@ public interface CreateNodeGroupRequestOrBuilder extends
    * 
* * string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nodeGroupId. */ java.lang.String getNodeGroupId(); /** + * + * *
    * Optional. An optional node group ID. Generated if not specified.
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -77,12 +121,14 @@ public interface CreateNodeGroupRequestOrBuilder extends
    * 
* * string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nodeGroupId. */ - com.google.protobuf.ByteString - getNodeGroupIdBytes(); + com.google.protobuf.ByteString getNodeGroupIdBytes(); /** + * + * *
    * Optional. A unique ID used to identify the request. If the server receives
    * two
@@ -97,10 +143,13 @@ public interface CreateNodeGroupRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique ID used to identify the request. If the server receives
    * two
@@ -115,8 +164,8 @@ public interface CreateNodeGroupRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java similarity index 64% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java index 78fa47b9f9aa..54383a352114 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to create a workflow template.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.CreateWorkflowTemplateRequest} */ -public final class CreateWorkflowTemplateRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) CreateWorkflowTemplateRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWorkflowTemplateRequest.newBuilder() to construct. private CreateWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWorkflowTemplateRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWorkflowTemplateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.class, + com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -62,7 +83,10 @@ protected java.lang.Object newInstance(
    *   `projects/{project_id}/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 @@ -71,14 +95,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -90,17 +115,18 @@ public java.lang.String getParent() {
    *   `projects/{project_id}/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 { @@ -111,11 +137,16 @@ public java.lang.String getParent() { public static final int TEMPLATE_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.WorkflowTemplate template_; /** + * + * *
    * Required. The Dataproc workflow template to create.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the template field is set. */ @java.lang.Override @@ -123,23 +154,34 @@ public boolean hasTemplate() { return template_ != null; } /** + * + * *
    * Required. The Dataproc workflow template to create.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The template. */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate() { - return template_ == null ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() + : template_; } /** + * + * *
    * Required. The Dataproc workflow template to create.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder() { @@ -147,6 +189,7 @@ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuild } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -179,8 +221,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTemplate()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTemplate()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -190,19 +231,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.dataproc.v1.CreateWorkflowTemplateRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest other = (com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) obj; + com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest other = + (com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) return false; + if (!getTemplate().equals(other.getTemplate())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -227,129 +267,136 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest 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.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to create a workflow template.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.CreateWorkflowTemplateRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.class, + com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -365,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; } @java.lang.Override @@ -386,7 +433,8 @@ public com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest result = new com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest(this); + com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest result = + new com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest(this); result.parent_ = parent_; if (templateBuilder_ == null) { result.template_ = template_; @@ -401,38 +449,39 @@ public com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) other); } else { super.mergeFrom(other); return this; @@ -440,7 +489,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest other) { - if (other == com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -474,24 +524,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getTemplateFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getTemplateFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -504,6 +555,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -515,14 +568,16 @@ public Builder mergeFrom(
      *   `projects/{project_id}/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; @@ -531,6 +586,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -542,16 +599,17 @@ public java.lang.String getParent() {
      *   `projects/{project_id}/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 { @@ -559,6 +617,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -570,21 +630,25 @@ public java.lang.String getParent() {
      *   `projects/{project_id}/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 resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -596,16 +660,21 @@ public Builder setParent(
      *   `projects/{project_id}/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 resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -617,17 +686,19 @@ public Builder clearParent() {
      *   `projects/{project_id}/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; @@ -635,39 +706,58 @@ public Builder setParentBytes( private com.google.cloud.dataproc.v1.WorkflowTemplate template_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> templateBuilder_; + com.google.cloud.dataproc.v1.WorkflowTemplate, + com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, + com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> + templateBuilder_; /** + * + * *
      * Required. The Dataproc workflow template to create.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the template field is set. */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** + * + * *
      * Required. The Dataproc workflow template to create.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The template. */ public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate() { if (templateBuilder_ == null) { - return template_ == null ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() + : template_; } else { return templateBuilder_.getMessage(); } } /** + * + * *
      * Required. The Dataproc workflow template to create.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) { if (templateBuilder_ == null) { @@ -683,11 +773,15 @@ public Builder setTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) return this; } /** + * + * *
      * Required. The Dataproc workflow template to create.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTemplate( com.google.cloud.dataproc.v1.WorkflowTemplate.Builder builderForValue) { @@ -701,17 +795,23 @@ public Builder setTemplate( return this; } /** + * + * *
      * Required. The Dataproc workflow template to create.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = - com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder(template_) + .mergeFrom(value) + .buildPartial(); } else { template_ = value; } @@ -723,11 +823,15 @@ public Builder mergeTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value return this; } /** + * + * *
      * Required. The Dataproc workflow template to create.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTemplate() { if (templateBuilder_ == null) { @@ -741,55 +845,71 @@ public Builder clearTemplate() { return this; } /** + * + * *
      * Required. The Dataproc workflow template to create.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder getTemplateBuilder() { - + onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Dataproc workflow template to create.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { - return template_ == null ? - com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() + : template_; } } /** + * + * *
      * Required. The Dataproc workflow template to create.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> + com.google.cloud.dataproc.v1.WorkflowTemplate, + com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, + com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); + templateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.WorkflowTemplate, + com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, + com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( + getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -799,12 +919,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) private static final com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest(); } @@ -813,27 +933,27 @@ public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkflowTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -848,6 +968,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java index 7ab711136762..0c4883bb13e3 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface CreateWorkflowTemplateRequestOrBuilder extends +public interface CreateWorkflowTemplateRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -19,11 +37,16 @@ public interface CreateWorkflowTemplateRequestOrBuilder extends
    *   `projects/{project_id}/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 resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -35,36 +58,52 @@ public interface CreateWorkflowTemplateRequestOrBuilder extends
    *   `projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The Dataproc workflow template to create.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the template field is set. */ boolean hasTemplate(); /** + * + * *
    * Required. The Dataproc workflow template to create.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The template. */ com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate(); /** + * + * *
    * Required. The Dataproc workflow template to create.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java similarity index 74% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java index 3e7cc99163be..5215d1c9c867 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java @@ -1,54 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Dataproc metric config.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.DataprocMetricConfig} */ -public final class DataprocMetricConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DataprocMetricConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DataprocMetricConfig) DataprocMetricConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DataprocMetricConfig.newBuilder() to construct. private DataprocMetricConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DataprocMetricConfig() { metrics_ = 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 DataprocMetricConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DataprocMetricConfig.class, com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder.class); + com.google.cloud.dataproc.v1.DataprocMetricConfig.class, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder.class); } /** + * + * *
    * A source for the collection of Dataproc OSS metrics (see [available OSS
    * metrics]
@@ -57,9 +78,10 @@ protected java.lang.Object newInstance(
    *
    * Protobuf enum {@code google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource}
    */
-  public enum MetricSource
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum MetricSource implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Required unspecified metric source.
      * 
@@ -68,6 +90,8 @@ public enum MetricSource */ METRIC_SOURCE_UNSPECIFIED(0), /** + * + * *
      * Default monitoring agent metrics. If this source is enabled,
      * Dataproc enables the monitoring agent in Compute Engine,
@@ -79,6 +103,8 @@ public enum MetricSource
      */
     MONITORING_AGENT_DEFAULTS(1),
     /**
+     *
+     *
      * 
      * HDFS metric source.
      * 
@@ -87,6 +113,8 @@ public enum MetricSource */ HDFS(2), /** + * + * *
      * Spark metric source.
      * 
@@ -95,6 +123,8 @@ public enum MetricSource */ SPARK(3), /** + * + * *
      * YARN metric source.
      * 
@@ -103,6 +133,8 @@ public enum MetricSource */ YARN(4), /** + * + * *
      * Spark History Server metric source.
      * 
@@ -111,6 +143,8 @@ public enum MetricSource */ SPARK_HISTORY_SERVER(5), /** + * + * *
      * Hiveserver2 metric source.
      * 
@@ -122,6 +156,8 @@ public enum MetricSource ; /** + * + * *
      * Required unspecified metric source.
      * 
@@ -130,6 +166,8 @@ public enum MetricSource */ public static final int METRIC_SOURCE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Default monitoring agent metrics. If this source is enabled,
      * Dataproc enables the monitoring agent in Compute Engine,
@@ -141,6 +179,8 @@ public enum MetricSource
      */
     public static final int MONITORING_AGENT_DEFAULTS_VALUE = 1;
     /**
+     *
+     *
      * 
      * HDFS metric source.
      * 
@@ -149,6 +189,8 @@ public enum MetricSource */ public static final int HDFS_VALUE = 2; /** + * + * *
      * Spark metric source.
      * 
@@ -157,6 +199,8 @@ public enum MetricSource */ public static final int SPARK_VALUE = 3; /** + * + * *
      * YARN metric source.
      * 
@@ -165,6 +209,8 @@ public enum MetricSource */ public static final int YARN_VALUE = 4; /** + * + * *
      * Spark History Server metric source.
      * 
@@ -173,6 +219,8 @@ public enum MetricSource */ public static final int SPARK_HISTORY_SERVER_VALUE = 5; /** + * + * *
      * Hiveserver2 metric source.
      * 
@@ -181,7 +229,6 @@ public enum MetricSource */ public static final int HIVESERVER2_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -206,53 +253,59 @@ public static MetricSource valueOf(int value) { */ public static MetricSource forNumber(int value) { switch (value) { - case 0: return METRIC_SOURCE_UNSPECIFIED; - case 1: return MONITORING_AGENT_DEFAULTS; - case 2: return HDFS; - case 3: return SPARK; - case 4: return YARN; - case 5: return SPARK_HISTORY_SERVER; - case 6: return HIVESERVER2; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return METRIC_SOURCE_UNSPECIFIED; + case 1: + return MONITORING_AGENT_DEFAULTS; + case 2: + return HDFS; + case 3: + return SPARK; + case 4: + return YARN; + case 5: + return SPARK_HISTORY_SERVER; + case 6: + return HIVESERVER2; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - MetricSource> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MetricSource findValueByNumber(int number) { - return MetricSource.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MetricSource findValueByNumber(int number) { + return MetricSource.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.DataprocMetricConfig.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataproc.v1.DataprocMetricConfig.getDescriptor() + .getEnumTypes() + .get(0); } private static final MetricSource[] VALUES = values(); - public static MetricSource valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static MetricSource valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -269,11 +322,14 @@ private MetricSource(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource) } - public interface MetricOrBuilder extends + public interface MetricOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DataprocMetricConfig.Metric) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Default metrics are collected unless `metricOverrides` are
      * specified for the metric source (see [Available OSS metrics]
@@ -281,11 +337,16 @@ public interface MetricOrBuilder extends
      * for more information).
      * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for metricSource. */ int getMetricSourceValue(); /** + * + * *
      * Required. Default metrics are collected unless `metricOverrides` are
      * specified for the metric source (see [Available OSS metrics]
@@ -293,12 +354,17 @@ public interface MetricOrBuilder extends
      * for more information).
      * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The metricSource. */ com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource getMetricSource(); /** + * + * *
      * Optional. Specify one or more [available OSS metrics]
      * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -327,11 +393,13 @@ public interface MetricOrBuilder extends
      * 
* * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the metricOverrides. */ - java.util.List - getMetricOverridesList(); + java.util.List getMetricOverridesList(); /** + * + * *
      * Optional. Specify one or more [available OSS metrics]
      * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -360,10 +428,13 @@ public interface MetricOrBuilder extends
      * 
* * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of metricOverrides. */ int getMetricOverridesCount(); /** + * + * *
      * Optional. Specify one or more [available OSS metrics]
      * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -392,11 +463,14 @@ public interface MetricOrBuilder extends
      * 
* * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The metricOverrides at the given index. */ java.lang.String getMetricOverrides(int index); /** + * + * *
      * Optional. Specify one or more [available OSS metrics]
      * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -425,28 +499,31 @@ public interface MetricOrBuilder extends
      * 
* * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the metricOverrides at the given index. */ - com.google.protobuf.ByteString - getMetricOverridesBytes(int index); + com.google.protobuf.ByteString getMetricOverridesBytes(int index); } /** + * + * *
    * A Dataproc OSS metric.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.DataprocMetricConfig.Metric} */ - public static final class Metric extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Metric extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DataprocMetricConfig.Metric) MetricOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Metric.newBuilder() to construct. private Metric(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Metric() { metricSource_ = 0; metricOverrides_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -454,32 +531,35 @@ private Metric() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Metric(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.class, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder.class); + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.class, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder.class); } public static final int METRIC_SOURCE_FIELD_NUMBER = 1; private int metricSource_; /** + * + * *
      * Required. Default metrics are collected unless `metricOverrides` are
      * specified for the metric source (see [Available OSS metrics]
@@ -487,13 +567,19 @@ protected java.lang.Object newInstance(
      * for more information).
      * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for metricSource. */ - @java.lang.Override public int getMetricSourceValue() { + @java.lang.Override + public int getMetricSourceValue() { return metricSource_; } /** + * + * *
      * Required. Default metrics are collected unless `metricOverrides` are
      * specified for the metric source (see [Available OSS metrics]
@@ -501,18 +587,27 @@ protected java.lang.Object newInstance(
      * for more information).
      * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The metricSource. */ - @java.lang.Override public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource getMetricSource() { + @java.lang.Override + public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource getMetricSource() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource result = com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.valueOf(metricSource_); - return result == null ? com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource result = + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.valueOf(metricSource_); + return result == null + ? com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.UNRECOGNIZED + : result; } public static final int METRIC_OVERRIDES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList metricOverrides_; /** + * + * *
      * Optional. Specify one or more [available OSS metrics]
      * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -541,13 +636,15 @@ protected java.lang.Object newInstance(
      * 
* * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the metricOverrides. */ - public com.google.protobuf.ProtocolStringList - getMetricOverridesList() { + public com.google.protobuf.ProtocolStringList getMetricOverridesList() { return metricOverrides_; } /** + * + * *
      * Optional. Specify one or more [available OSS metrics]
      * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -576,12 +673,15 @@ protected java.lang.Object newInstance(
      * 
* * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of metricOverrides. */ public int getMetricOverridesCount() { return metricOverrides_.size(); } /** + * + * *
      * Optional. Specify one or more [available OSS metrics]
      * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -610,6 +710,7 @@ public int getMetricOverridesCount() {
      * 
* * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The metricOverrides at the given index. */ @@ -617,6 +718,8 @@ public java.lang.String getMetricOverrides(int index) { return metricOverrides_.get(index); } /** + * + * *
      * Optional. Specify one or more [available OSS metrics]
      * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -645,15 +748,16 @@ public java.lang.String getMetricOverrides(int index) {
      * 
* * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the metricOverrides at the given index. */ - public com.google.protobuf.ByteString - getMetricOverridesBytes(int index) { + public com.google.protobuf.ByteString getMetricOverridesBytes(int index) { return metricOverrides_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -665,9 +769,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (metricSource_ != com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.METRIC_SOURCE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (metricSource_ + != com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource + .METRIC_SOURCE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, metricSource_); } for (int i = 0; i < metricOverrides_.size(); i++) { @@ -682,9 +788,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (metricSource_ != com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.METRIC_SOURCE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, metricSource_); + if (metricSource_ + != com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource + .METRIC_SOURCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, metricSource_); } { int dataSize = 0; @@ -702,16 +810,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric other = (com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric) obj; + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric other = + (com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric) obj; if (metricSource_ != other.metricSource_) return false; - if (!getMetricOverridesList() - .equals(other.getMetricOverridesList())) return false; + if (!getMetricOverridesList().equals(other.getMetricOverridesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -735,87 +843,94 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric 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.dataproc.v1.DataprocMetricConfig.Metric parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -825,39 +940,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A Dataproc OSS metric.
      * 
* * Protobuf type {@code google.cloud.dataproc.v1.DataprocMetricConfig.Metric} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DataprocMetricConfig.Metric) com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.class, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder.class); + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.class, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder.class); } // Construct using com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -869,9 +986,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; } @java.lang.Override @@ -890,7 +1007,8 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric build() { @java.lang.Override public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric buildPartial() { - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric result = new com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric(this); + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric result = + new com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric(this); int from_bitField0_ = bitField0_; result.metricSource_ = metricSource_; if (((bitField0_ & 0x00000001) != 0)) { @@ -906,38 +1024,41 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.dataproc.v1.DataprocMetricConfig.Metric) { - return mergeFrom((com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric)other); + return mergeFrom((com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric) other); } else { super.mergeFrom(other); return this; @@ -945,7 +1066,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric other) { - if (other == com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance()) + return this; if (other.metricSource_ != 0) { setMetricSourceValue(other.getMetricSourceValue()); } @@ -985,23 +1107,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - metricSource_ = input.readEnum(); - - break; - } // case 8 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureMetricOverridesIsMutable(); - metricOverrides_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + metricSource_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureMetricOverridesIsMutable(); + metricOverrides_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1011,10 +1136,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int metricSource_ = 0; /** + * + * *
        * Required. Default metrics are collected unless `metricOverrides` are
        * specified for the metric source (see [Available OSS metrics]
@@ -1022,13 +1150,19 @@ public Builder mergeFrom(
        * for more information).
        * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for metricSource. */ - @java.lang.Override public int getMetricSourceValue() { + @java.lang.Override + public int getMetricSourceValue() { return metricSource_; } /** + * + * *
        * Required. Default metrics are collected unless `metricOverrides` are
        * specified for the metric source (see [Available OSS metrics]
@@ -1036,17 +1170,22 @@ public Builder mergeFrom(
        * for more information).
        * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for metricSource to set. * @return This builder for chaining. */ public Builder setMetricSourceValue(int value) { - + metricSource_ = value; onChanged(); return this; } /** + * + * *
        * Required. Default metrics are collected unless `metricOverrides` are
        * specified for the metric source (see [Available OSS metrics]
@@ -1054,16 +1193,24 @@ public Builder setMetricSourceValue(int value) {
        * for more information).
        * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The metricSource. */ @java.lang.Override public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource getMetricSource() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource result = com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.valueOf(metricSource_); - return result == null ? com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource result = + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.valueOf(metricSource_); + return result == null + ? com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.UNRECOGNIZED + : result; } /** + * + * *
        * Required. Default metrics are collected unless `metricOverrides` are
        * specified for the metric source (see [Available OSS metrics]
@@ -1071,20 +1218,26 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource getMetricS
        * for more information).
        * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The metricSource to set. * @return This builder for chaining. */ - public Builder setMetricSource(com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource value) { + public Builder setMetricSource( + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource value) { if (value == null) { throw new NullPointerException(); } - + metricSource_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Required. Default metrics are collected unless `metricOverrides` are
        * specified for the metric source (see [Available OSS metrics]
@@ -1092,24 +1245,31 @@ public Builder setMetricSource(com.google.cloud.dataproc.v1.DataprocMetricConfig
        * for more information).
        * 
* - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearMetricSource() { - + metricSource_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList metricOverrides_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList metricOverrides_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMetricOverridesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { metricOverrides_ = new com.google.protobuf.LazyStringArrayList(metricOverrides_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * Optional. Specify one or more [available OSS metrics]
        * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -1137,14 +1297,17 @@ private void ensureMetricOverridesIsMutable() {
        *   all default YARN metrics will be collected.
        * 
* - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the metricOverrides. */ - public com.google.protobuf.ProtocolStringList - getMetricOverridesList() { + public com.google.protobuf.ProtocolStringList getMetricOverridesList() { return metricOverrides_.getUnmodifiableView(); } /** + * + * *
        * Optional. Specify one or more [available OSS metrics]
        * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -1172,13 +1335,17 @@ private void ensureMetricOverridesIsMutable() {
        *   all default YARN metrics will be collected.
        * 
* - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of metricOverrides. */ public int getMetricOverridesCount() { return metricOverrides_.size(); } /** + * + * *
        * Optional. Specify one or more [available OSS metrics]
        * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -1206,7 +1373,9 @@ public int getMetricOverridesCount() {
        *   all default YARN metrics will be collected.
        * 
* - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The metricOverrides at the given index. */ @@ -1214,6 +1383,8 @@ public java.lang.String getMetricOverrides(int index) { return metricOverrides_.get(index); } /** + * + * *
        * Optional. Specify one or more [available OSS metrics]
        * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -1241,15 +1412,18 @@ public java.lang.String getMetricOverrides(int index) {
        *   all default YARN metrics will be collected.
        * 
* - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the metricOverrides at the given index. */ - public com.google.protobuf.ByteString - getMetricOverridesBytes(int index) { + public com.google.protobuf.ByteString getMetricOverridesBytes(int index) { return metricOverrides_.getByteString(index); } /** + * + * *
        * Optional. Specify one or more [available OSS metrics]
        * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -1277,22 +1451,25 @@ public java.lang.String getMetricOverrides(int index) {
        *   all default YARN metrics will be collected.
        * 
* - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The metricOverrides to set. * @return This builder for chaining. */ - public Builder setMetricOverrides( - int index, java.lang.String value) { + public Builder setMetricOverrides(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMetricOverridesIsMutable(); + throw new NullPointerException(); + } + ensureMetricOverridesIsMutable(); metricOverrides_.set(index, value); onChanged(); return this; } /** + * + * *
        * Optional. Specify one or more [available OSS metrics]
        * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -1320,21 +1497,24 @@ public Builder setMetricOverrides(
        *   all default YARN metrics will be collected.
        * 
* - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The metricOverrides to add. * @return This builder for chaining. */ - public Builder addMetricOverrides( - java.lang.String value) { + public Builder addMetricOverrides(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMetricOverridesIsMutable(); + throw new NullPointerException(); + } + ensureMetricOverridesIsMutable(); metricOverrides_.add(value); onChanged(); return this; } /** + * + * *
        * Optional. Specify one or more [available OSS metrics]
        * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -1362,19 +1542,21 @@ public Builder addMetricOverrides(
        *   all default YARN metrics will be collected.
        * 
* - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The metricOverrides to add. * @return This builder for chaining. */ - public Builder addAllMetricOverrides( - java.lang.Iterable values) { + public Builder addAllMetricOverrides(java.lang.Iterable values) { ensureMetricOverridesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metricOverrides_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricOverrides_); onChanged(); return this; } /** + * + * *
        * Optional. Specify one or more [available OSS metrics]
        * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -1402,7 +1584,9 @@ public Builder addAllMetricOverrides(
        *   all default YARN metrics will be collected.
        * 
* - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearMetricOverrides() { @@ -1412,6 +1596,8 @@ public Builder clearMetricOverrides() { return this; } /** + * + * *
        * Optional. Specify one or more [available OSS metrics]
        * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
@@ -1439,21 +1625,23 @@ public Builder clearMetricOverrides() {
        *   all default YARN metrics will be collected.
        * 
* - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the metricOverrides to add. * @return This builder for chaining. */ - public Builder addMetricOverridesBytes( - com.google.protobuf.ByteString value) { + public Builder addMetricOverridesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMetricOverridesIsMutable(); metricOverrides_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1466,12 +1654,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DataprocMetricConfig.Metric) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DataprocMetricConfig.Metric) private static final com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric(); } @@ -1480,27 +1668,28 @@ public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Metric parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1515,62 +1704,81 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int METRICS_FIELD_NUMBER = 1; private java.util.List metrics_; /** + * + * *
    * Required. Metrics sources to enable.
    * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getMetricsList() { return metrics_; } /** + * + * *
    * Required. Metrics sources to enable.
    * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getMetricsOrBuilderList() { return metrics_; } /** + * + * *
    * Required. Metrics sources to enable.
    * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getMetricsCount() { return metrics_.size(); } /** + * + * *
    * Required. Metrics sources to enable.
    * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getMetrics(int index) { return metrics_.get(index); } /** + * + * *
    * Required. Metrics sources to enable.
    * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder getMetricsOrBuilder( @@ -1579,6 +1787,7 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder getMetr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1590,8 +1799,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < metrics_.size(); i++) { output.writeMessage(1, metrics_.get(i)); } @@ -1605,8 +1813,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < metrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, metrics_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, metrics_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1616,15 +1823,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.dataproc.v1.DataprocMetricConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DataprocMetricConfig other = (com.google.cloud.dataproc.v1.DataprocMetricConfig) obj; + com.google.cloud.dataproc.v1.DataprocMetricConfig other = + (com.google.cloud.dataproc.v1.DataprocMetricConfig) obj; - if (!getMetricsList() - .equals(other.getMetricsList())) return false; + if (!getMetricsList().equals(other.getMetricsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1646,129 +1853,135 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.DataprocMetricConfig 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.dataproc.v1.DataprocMetricConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.DataprocMetricConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Dataproc metric config.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.DataprocMetricConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DataprocMetricConfig) com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DataprocMetricConfig.class, com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder.class); + com.google.cloud.dataproc.v1.DataprocMetricConfig.class, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.DataprocMetricConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1783,9 +1996,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; } @java.lang.Override @@ -1804,7 +2017,8 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.DataprocMetricConfig buildPartial() { - com.google.cloud.dataproc.v1.DataprocMetricConfig result = new com.google.cloud.dataproc.v1.DataprocMetricConfig(this); + com.google.cloud.dataproc.v1.DataprocMetricConfig result = + new com.google.cloud.dataproc.v1.DataprocMetricConfig(this); int from_bitField0_ = bitField0_; if (metricsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1823,38 +2037,39 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.DataprocMetricConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.DataprocMetricConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.DataprocMetricConfig) other); } else { super.mergeFrom(other); return this; @@ -1862,7 +2077,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.DataprocMetricConfig other) { - if (other == com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance()) + return this; if (metricsBuilder_ == null) { if (!other.metrics_.isEmpty()) { if (metrics_.isEmpty()) { @@ -1881,9 +2097,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.DataprocMetricConfig other metricsBuilder_ = null; metrics_ = other.metrics_; bitField0_ = (bitField0_ & ~0x00000001); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetricsFieldBuilder() : null; + metricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricsFieldBuilder() + : null; } else { metricsBuilder_.addAllMessages(other.metrics_); } @@ -1915,25 +2132,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric m = - input.readMessage( - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.parser(), - extensionRegistry); - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(m); - } else { - metricsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric m = + input.readMessage( + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.parser(), + extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1943,28 +2162,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List metrics_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMetricsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - metrics_ = new java.util.ArrayList(metrics_); + metrics_ = + new java.util.ArrayList( + metrics_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder, com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder> metricsBuilder_; + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder, + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder> + metricsBuilder_; /** + * + * *
      * Required. Metrics sources to enable.
      * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getMetricsList() { + public java.util.List + getMetricsList() { if (metricsBuilder_ == null) { return java.util.Collections.unmodifiableList(metrics_); } else { @@ -1972,11 +2203,15 @@ public java.util.List } } /** + * + * *
      * Required. Metrics sources to enable.
      * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getMetricsCount() { if (metricsBuilder_ == null) { @@ -1986,11 +2221,15 @@ public int getMetricsCount() { } } /** + * + * *
      * Required. Metrics sources to enable.
      * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getMetrics(int index) { if (metricsBuilder_ == null) { @@ -2000,11 +2239,15 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getMetrics(int i } } /** + * + * *
      * Required. Metrics sources to enable.
      * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMetrics( int index, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric value) { @@ -2021,14 +2264,19 @@ public Builder setMetrics( return this; } /** + * + * *
      * Required. Metrics sources to enable.
      * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMetrics( - int index, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder builderForValue) { + int index, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.set(index, builderForValue.build()); @@ -2039,11 +2287,15 @@ public Builder setMetrics( return this; } /** + * + * *
      * Required. Metrics sources to enable.
      * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addMetrics(com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric value) { if (metricsBuilder_ == null) { @@ -2059,11 +2311,15 @@ public Builder addMetrics(com.google.cloud.dataproc.v1.DataprocMetricConfig.Metr return this; } /** + * + * *
      * Required. Metrics sources to enable.
      * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addMetrics( int index, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric value) { @@ -2080,11 +2336,15 @@ public Builder addMetrics( return this; } /** + * + * *
      * Required. Metrics sources to enable.
      * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addMetrics( com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder builderForValue) { @@ -2098,14 +2358,19 @@ public Builder addMetrics( return this; } /** + * + * *
      * Required. Metrics sources to enable.
      * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addMetrics( - int index, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder builderForValue) { + int index, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.add(index, builderForValue.build()); @@ -2116,18 +2381,22 @@ public Builder addMetrics( return this; } /** + * + * *
      * Required. Metrics sources to enable.
      * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllMetrics( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metrics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); onChanged(); } else { metricsBuilder_.addAllMessages(values); @@ -2135,11 +2404,15 @@ public Builder addAllMetrics( return this; } /** + * + * *
      * Required. Metrics sources to enable.
      * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMetrics() { if (metricsBuilder_ == null) { @@ -2152,11 +2425,15 @@ public Builder clearMetrics() { return this; } /** + * + * *
      * Required. Metrics sources to enable.
      * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeMetrics(int index) { if (metricsBuilder_ == null) { @@ -2169,39 +2446,53 @@ public Builder removeMetrics(int index) { return this; } /** + * + * *
      * Required. Metrics sources to enable.
      * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder getMetricsBuilder( int index) { return getMetricsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Metrics sources to enable.
      * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder getMetricsOrBuilder( int index) { if (metricsBuilder_ == null) { - return metrics_.get(index); } else { + return metrics_.get(index); + } else { return metricsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Metrics sources to enable.
      * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getMetricsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder> + getMetricsOrBuilderList() { if (metricsBuilder_ != null) { return metricsBuilder_.getMessageOrBuilderList(); } else { @@ -2209,56 +2500,73 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder getMetr } } /** + * + * *
      * Required. Metrics sources to enable.
      * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance()); + return getMetricsFieldBuilder() + .addBuilder( + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance()); } /** + * + * *
      * Required. Metrics sources to enable.
      * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder addMetricsBuilder( int index) { - return getMetricsFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance()); + return getMetricsFieldBuilder() + .addBuilder( + index, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance()); } /** + * + * *
      * Required. Metrics sources to enable.
      * 
* - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getMetricsBuilderList() { + public java.util.List + getMetricsBuilderList() { return getMetricsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder, com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder> + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder, + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder> getMetricsFieldBuilder() { if (metricsBuilder_ == null) { - metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder, com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder>( - metrics_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + metricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder, + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder>( + metrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2268,12 +2576,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DataprocMetricConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DataprocMetricConfig) private static final com.google.cloud.dataproc.v1.DataprocMetricConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DataprocMetricConfig(); } @@ -2282,27 +2590,27 @@ public static com.google.cloud.dataproc.v1.DataprocMetricConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataprocMetricConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataprocMetricConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2317,6 +2625,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.DataprocMetricConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java new file mode 100644 index 000000000000..63851c5bfd63 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java @@ -0,0 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface DataprocMetricConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DataprocMetricConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getMetricsList(); + /** + * + * + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getMetrics(int index); + /** + * + * + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getMetricsCount(); + /** + * + * + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getMetricsOrBuilderList(); + /** + * + * + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder getMetricsOrBuilder(int index); +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java similarity index 67% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java index 1549afc1a75a..57592d4fee01 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to delete an autoscaling policy.
  * Autoscaling policies in use by one or more clusters will not be deleted.
@@ -11,47 +28,52 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest}
  */
-public final class DeleteAutoscalingPolicyRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest)
     DeleteAutoscalingPolicyRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteAutoscalingPolicyRequest.newBuilder() to construct.
-  private DeleteAutoscalingPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private DeleteAutoscalingPolicyRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteAutoscalingPolicyRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteAutoscalingPolicyRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
+        .internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
+        .internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.class, com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.Builder.class);
+            com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.class,
+            com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -63,7 +85,10 @@ protected java.lang.Object newInstance(
    *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
    * 
* - * 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 @@ -72,14 +97,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -91,17 +117,18 @@ public java.lang.String getName() {
    *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
    * 
* - * 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 { @@ -110,6 +137,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +149,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -146,15 +173,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.dataproc.v1.DeleteAutoscalingPolicyRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest other = (com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) obj; + com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest other = + (com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -174,96 +201,104 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest 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.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to delete an autoscaling policy.
    * Autoscaling policies in use by one or more clusters will not be deleted.
@@ -271,33 +306,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest)
       com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
+          .internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
+          .internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.class, com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.Builder.class);
+              com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.class,
+              com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -307,9 +341,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
+          .internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor;
     }
 
     @java.lang.Override
@@ -328,7 +362,8 @@ public com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest buildPartial() {
-      com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest result = new com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest(this);
+      com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest result =
+          new com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -338,38 +373,39 @@ public com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest buildPartial(
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) {
-        return mergeFrom((com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -377,7 +413,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest other) {
-      if (other == com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -408,17 +445,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -431,6 +470,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -442,14 +483,16 @@ public Builder mergeFrom(
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * 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; @@ -458,6 +501,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -469,16 +514,17 @@ public java.lang.String getName() {
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * 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 { @@ -486,6 +532,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -497,21 +545,25 @@ public java.lang.String getName() {
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -523,16 +575,21 @@ public Builder setName(
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -544,24 +601,26 @@ public Builder clearName() {
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * 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); } @@ -571,12 +630,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) private static final com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest(); } @@ -585,27 +644,27 @@ public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAutoscalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAutoscalingPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -620,6 +679,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.java index 6a1a1dd5af08..9d97b3f95e9f 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; -public interface DeleteAutoscalingPolicyRequestOrBuilder extends +public interface DeleteAutoscalingPolicyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -19,11 +37,16 @@ public interface DeleteAutoscalingPolicyRequestOrBuilder extends
    *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -35,9 +58,11 @@ public interface DeleteAutoscalingPolicyRequestOrBuilder extends
    *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java similarity index 61% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java index 50f1c297049e..6a9d419b4d42 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java @@ -1,61 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to delete a batch workload.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.DeleteBatchRequest} */ -public final class DeleteBatchRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteBatchRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DeleteBatchRequest) DeleteBatchRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteBatchRequest.newBuilder() to construct. private DeleteBatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteBatchRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteBatchRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteBatchRequest.class, com.google.cloud.dataproc.v1.DeleteBatchRequest.Builder.class); + com.google.cloud.dataproc.v1.DeleteBatchRequest.class, + com.google.cloud.dataproc.v1.DeleteBatchRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the batch resource to delete.
    * 
* - * 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 @@ -64,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the batch resource to delete.
    * 
* - * 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 { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.DeleteBatchRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DeleteBatchRequest other = (com.google.cloud.dataproc.v1.DeleteBatchRequest) obj; + com.google.cloud.dataproc.v1.DeleteBatchRequest other = + (com.google.cloud.dataproc.v1.DeleteBatchRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +184,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.DeleteBatchRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to delete a batch workload.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.DeleteBatchRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DeleteBatchRequest) com.google.cloud.dataproc.v1.DeleteBatchRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteBatchRequest.class, com.google.cloud.dataproc.v1.DeleteBatchRequest.Builder.class); + com.google.cloud.dataproc.v1.DeleteBatchRequest.class, + com.google.cloud.dataproc.v1.DeleteBatchRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.DeleteBatchRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; } @java.lang.Override @@ -312,7 +344,8 @@ public com.google.cloud.dataproc.v1.DeleteBatchRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.DeleteBatchRequest buildPartial() { - com.google.cloud.dataproc.v1.DeleteBatchRequest result = new com.google.cloud.dataproc.v1.DeleteBatchRequest(this); + com.google.cloud.dataproc.v1.DeleteBatchRequest result = + new com.google.cloud.dataproc.v1.DeleteBatchRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +355,39 @@ public com.google.cloud.dataproc.v1.DeleteBatchRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.DeleteBatchRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.DeleteBatchRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.DeleteBatchRequest) other); } else { super.mergeFrom(other); return this; @@ -361,7 +395,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteBatchRequest other) { - if (other == com.google.cloud.dataproc.v1.DeleteBatchRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.DeleteBatchRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -392,17 +427,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +452,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the batch resource to delete.
      * 
* - * 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; @@ -435,20 +476,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the batch resource to delete.
      * 
* - * 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 { @@ -456,61 +500,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the batch resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the batch resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the batch resource to delete.
      * 
* - * 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); } @@ -520,12 +577,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DeleteBatchRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteBatchRequest) private static final com.google.cloud.dataproc.v1.DeleteBatchRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DeleteBatchRequest(); } @@ -534,27 +591,27 @@ public static com.google.cloud.dataproc.v1.DeleteBatchRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBatchRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBatchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +626,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.DeleteBatchRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java new file mode 100644 index 000000000000..55c734caa408 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +public interface DeleteBatchRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DeleteBatchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the batch resource to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the batch resource to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java similarity index 74% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java index 755ba31c4074..0f9b3477c471 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to delete a cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.DeleteClusterRequest} */ -public final class DeleteClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DeleteClusterRequest) DeleteClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteClusterRequest.newBuilder() to construct. private DeleteClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteClusterRequest() { projectId_ = ""; region_ = ""; @@ -29,38 +47,42 @@ private DeleteClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteClusterRequest.class, com.google.cloud.dataproc.v1.DeleteClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.DeleteClusterRequest.class, + com.google.cloud.dataproc.v1.DeleteClusterRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -69,30 +91,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -103,11 +125,14 @@ public java.lang.String getProjectId() { public static final int REGION_FIELD_NUMBER = 3; private volatile java.lang.Object region_; /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ @java.lang.Override @@ -116,29 +141,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -149,11 +174,14 @@ public java.lang.String getRegion() { public static final int CLUSTER_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object clusterName_; /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ @java.lang.Override @@ -162,29 +190,29 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -195,12 +223,15 @@ public java.lang.String getClusterName() { public static final int CLUSTER_UUID_FIELD_NUMBER = 4; private volatile java.lang.Object clusterUuid_; /** + * + * *
    * Optional. Specifying the `cluster_uuid` means the RPC should fail
    * (with error NOT_FOUND) if cluster with specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The clusterUuid. */ @java.lang.Override @@ -209,30 +240,30 @@ public java.lang.String getClusterUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; } } /** + * + * *
    * Optional. Specifying the `cluster_uuid` means the RPC should fail
    * (with error NOT_FOUND) if cluster with specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for clusterUuid. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterUuidBytes() { + public com.google.protobuf.ByteString getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -243,6 +274,8 @@ public java.lang.String getClusterUuid() { public static final int REQUEST_ID_FIELD_NUMBER = 5; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
@@ -257,6 +290,7 @@ public java.lang.String getClusterUuid() {
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -265,14 +299,15 @@ 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. A unique ID used to identify the request. If the server
    * receives two
@@ -287,16 +322,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 5 [(.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 { @@ -305,6 +339,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -316,8 +351,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -365,23 +399,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.dataproc.v1.DeleteClusterRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DeleteClusterRequest other = (com.google.cloud.dataproc.v1.DeleteClusterRequest) obj; - - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getRegion() - .equals(other.getRegion())) return false; - if (!getClusterName() - .equals(other.getClusterName())) return false; - if (!getClusterUuid() - .equals(other.getClusterUuid())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + com.google.cloud.dataproc.v1.DeleteClusterRequest other = + (com.google.cloud.dataproc.v1.DeleteClusterRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getClusterName().equals(other.getClusterName())) return false; + if (!getClusterUuid().equals(other.getClusterUuid())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -409,129 +439,135 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.DeleteClusterRequest 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.dataproc.v1.DeleteClusterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.DeleteClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to delete a cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.DeleteClusterRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DeleteClusterRequest) com.google.cloud.dataproc.v1.DeleteClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteClusterRequest.class, com.google.cloud.dataproc.v1.DeleteClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.DeleteClusterRequest.class, + com.google.cloud.dataproc.v1.DeleteClusterRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.DeleteClusterRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -549,9 +585,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; } @java.lang.Override @@ -570,7 +606,8 @@ public com.google.cloud.dataproc.v1.DeleteClusterRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.DeleteClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.DeleteClusterRequest result = new com.google.cloud.dataproc.v1.DeleteClusterRequest(this); + com.google.cloud.dataproc.v1.DeleteClusterRequest result = + new com.google.cloud.dataproc.v1.DeleteClusterRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.clusterName_ = clusterName_; @@ -584,38 +621,39 @@ public com.google.cloud.dataproc.v1.DeleteClusterRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.DeleteClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.DeleteClusterRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.DeleteClusterRequest) other); } else { super.mergeFrom(other); return this; @@ -623,7 +661,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.DeleteClusterRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.DeleteClusterRequest.getDefaultInstance()) + return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -670,37 +709,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - projectId_ = input.readStringRequireUtf8(); + case 10: + { + projectId_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - clusterName_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + clusterName_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - region_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + region_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - clusterUuid_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + clusterUuid_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: + { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -713,19 +758,21 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -734,21 +781,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -756,57 +804,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -814,18 +869,20 @@ public Builder setProjectIdBytes( private java.lang.Object region_ = ""; /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -834,20 +891,21 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -855,54 +913,61 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion( - java.lang.String value) { + public Builder setRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -910,18 +975,20 @@ public Builder setRegionBytes( private java.lang.Object clusterName_ = ""; /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -930,20 +997,21 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -951,54 +1019,61 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName( - java.lang.String value) { + public Builder setClusterName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1006,19 +1081,21 @@ public Builder setClusterNameBytes( private java.lang.Object clusterUuid_ = ""; /** + * + * *
      * Optional. Specifying the `cluster_uuid` means the RPC should fail
      * (with error NOT_FOUND) if cluster with specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The clusterUuid. */ public java.lang.String getClusterUuid() { java.lang.Object ref = clusterUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; @@ -1027,21 +1104,22 @@ public java.lang.String getClusterUuid() { } } /** + * + * *
      * Optional. Specifying the `cluster_uuid` means the RPC should fail
      * (with error NOT_FOUND) if cluster with specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for clusterUuid. */ - public com.google.protobuf.ByteString - getClusterUuidBytes() { + public com.google.protobuf.ByteString getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -1049,57 +1127,64 @@ public java.lang.String getClusterUuid() { } } /** + * + * *
      * Optional. Specifying the `cluster_uuid` means the RPC should fail
      * (with error NOT_FOUND) if cluster with specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuid( - java.lang.String value) { + public Builder setClusterUuid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterUuid_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Specifying the `cluster_uuid` means the RPC should fail
      * (with error NOT_FOUND) if cluster with specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearClusterUuid() { - + clusterUuid_ = getDefaultInstance().getClusterUuid(); onChanged(); return this; } /** + * + * *
      * Optional. Specifying the `cluster_uuid` means the RPC should fail
      * (with error NOT_FOUND) if cluster with specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuidBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUuid_ = value; onChanged(); return this; @@ -1107,6 +1192,8 @@ public Builder setClusterUuidBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
@@ -1121,13 +1208,13 @@ public Builder setClusterUuidBytes(
      * 
* * string request_id = 5 [(.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; @@ -1136,6 +1223,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
@@ -1150,15 +1239,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 5 [(.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 { @@ -1166,6 +1254,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
@@ -1180,20 +1270,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 5 [(.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. A unique ID used to identify the request. If the server
      * receives two
@@ -1208,15 +1300,18 @@ public Builder setRequestId(
      * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
@@ -1231,23 +1326,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 5 [(.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); } @@ -1257,12 +1352,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DeleteClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteClusterRequest) private static final com.google.cloud.dataproc.v1.DeleteClusterRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DeleteClusterRequest(); } @@ -1271,27 +1366,27 @@ public static com.google.cloud.dataproc.v1.DeleteClusterRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1306,6 +1401,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.DeleteClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java index f6f9655208bd..5b61a5ff90e8 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java @@ -1,97 +1,135 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface DeleteClusterRequestOrBuilder extends +public interface DeleteClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DeleteClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ java.lang.String getRegion(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - com.google.protobuf.ByteString - getRegionBytes(); + com.google.protobuf.ByteString getRegionBytes(); /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ java.lang.String getClusterName(); /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString - getClusterNameBytes(); + com.google.protobuf.ByteString getClusterNameBytes(); /** + * + * *
    * Optional. Specifying the `cluster_uuid` means the RPC should fail
    * (with error NOT_FOUND) if cluster with specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The clusterUuid. */ java.lang.String getClusterUuid(); /** + * + * *
    * Optional. Specifying the `cluster_uuid` means the RPC should fail
    * (with error NOT_FOUND) if cluster with specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for clusterUuid. */ - com.google.protobuf.ByteString - getClusterUuidBytes(); + com.google.protobuf.ByteString getClusterUuidBytes(); /** + * + * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
@@ -106,10 +144,13 @@ public interface DeleteClusterRequestOrBuilder extends
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
@@ -124,8 +165,8 @@ public interface DeleteClusterRequestOrBuilder extends
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java index 44f93117487b..6c4b1f96210c 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to delete a job.
  * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.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() { projectId_ = ""; region_ = ""; @@ -27,38 +45,42 @@ private DeleteJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DeleteJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_DeleteJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteJobRequest.class, com.google.cloud.dataproc.v1.DeleteJobRequest.Builder.class); + com.google.cloud.dataproc.v1.DeleteJobRequest.class, + com.google.cloud.dataproc.v1.DeleteJobRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -67,30 +89,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -101,11 +123,14 @@ public java.lang.String getProjectId() { public static final int REGION_FIELD_NUMBER = 3; private volatile java.lang.Object region_; /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ @java.lang.Override @@ -114,29 +139,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -147,11 +172,14 @@ public java.lang.String getRegion() { public static final int JOB_ID_FIELD_NUMBER = 2; private volatile java.lang.Object jobId_; /** + * + * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The jobId. */ @java.lang.Override @@ -160,29 +188,29 @@ public java.lang.String getJobId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; } } /** + * + * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for jobId. */ @java.lang.Override - public com.google.protobuf.ByteString - getJobIdBytes() { + public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobId_ = b; return b; } else { @@ -191,6 +219,7 @@ public java.lang.String getJobId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +231,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -239,19 +267,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.dataproc.v1.DeleteJobRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DeleteJobRequest other = (com.google.cloud.dataproc.v1.DeleteJobRequest) obj; + com.google.cloud.dataproc.v1.DeleteJobRequest other = + (com.google.cloud.dataproc.v1.DeleteJobRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getRegion() - .equals(other.getRegion())) return false; - if (!getJobId() - .equals(other.getJobId())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getJobId().equals(other.getJobId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -274,130 +300,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.DeleteJobRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.DeleteJobRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.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.dataproc.v1.DeleteJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.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.dataproc.v1.DeleteJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.v1.DeleteJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DeleteJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.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; } /** + * + * *
    * A request to delete a job.
    * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.v1.DeleteJobRequest) com.google.cloud.dataproc.v1.DeleteJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DeleteJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_DeleteJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteJobRequest.class, com.google.cloud.dataproc.v1.DeleteJobRequest.Builder.class); + com.google.cloud.dataproc.v1.DeleteJobRequest.class, + com.google.cloud.dataproc.v1.DeleteJobRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.DeleteJobRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; } @java.lang.Override @@ -432,7 +464,8 @@ public com.google.cloud.dataproc.v1.DeleteJobRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.DeleteJobRequest buildPartial() { - com.google.cloud.dataproc.v1.DeleteJobRequest result = new com.google.cloud.dataproc.v1.DeleteJobRequest(this); + com.google.cloud.dataproc.v1.DeleteJobRequest result = + new com.google.cloud.dataproc.v1.DeleteJobRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.jobId_ = jobId_; @@ -444,38 +477,39 @@ public com.google.cloud.dataproc.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.dataproc.v1.DeleteJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.DeleteJobRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.DeleteJobRequest) other); } else { super.mergeFrom(other); return this; @@ -522,27 +556,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - region_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,19 +593,21 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -576,21 +616,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -598,57 +639,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -656,18 +704,20 @@ public Builder setProjectIdBytes( private java.lang.Object region_ = ""; /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -676,20 +726,21 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -697,54 +748,61 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion( - java.lang.String value) { + public Builder setRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -752,18 +810,20 @@ public Builder setRegionBytes( private java.lang.Object jobId_ = ""; /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The jobId. */ public java.lang.String getJobId() { java.lang.Object ref = jobId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; @@ -772,20 +832,21 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for jobId. */ - public com.google.protobuf.ByteString - getJobIdBytes() { + public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobId_ = b; return b; } else { @@ -793,61 +854,68 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The jobId to set. * @return This builder for chaining. */ - public Builder setJobId( - java.lang.String value) { + public Builder setJobId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearJobId() { - + jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for jobId to set. * @return This builder for chaining. */ - public Builder setJobIdBytes( - com.google.protobuf.ByteString value) { + public Builder setJobIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -857,12 +925,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DeleteJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteJobRequest) private static final com.google.cloud.dataproc.v1.DeleteJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DeleteJobRequest(); } @@ -871,27 +939,27 @@ public static com.google.cloud.dataproc.v1.DeleteJobRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -906,6 +974,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.DeleteJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java index 848af41d9a0d..6fb9ce0e7737 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java @@ -1,71 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface DeleteJobRequestOrBuilder extends +public interface DeleteJobRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DeleteJobRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ java.lang.String getRegion(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - com.google.protobuf.ByteString - getRegionBytes(); + com.google.protobuf.ByteString getRegionBytes(); /** + * + * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The jobId. */ java.lang.String getJobId(); /** + * + * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for jobId. */ - com.google.protobuf.ByteString - getJobIdBytes(); + com.google.protobuf.ByteString getJobIdBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java index a29d5993cf16..a937bf797393 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to delete a workflow template.
  * Currently started workflows will remain running.
@@ -11,47 +28,51 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest}
  */
-public final class DeleteWorkflowTemplateRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest)
     DeleteWorkflowTemplateRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteWorkflowTemplateRequest.newBuilder() to construct.
   private DeleteWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteWorkflowTemplateRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteWorkflowTemplateRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
+        .internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
+        .internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.Builder.class);
+            com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.class,
+            com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -63,7 +84,10 @@ protected java.lang.Object newInstance(
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * 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 @@ -72,14 +96,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -91,17 +116,18 @@ public java.lang.String getName() {
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * 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 { @@ -112,6 +138,8 @@ public java.lang.String getName() { public static final int VERSION_FIELD_NUMBER = 2; private int version_; /** + * + * *
    * Optional. The version of workflow template to delete. If specified,
    * will only delete the template if the current server version matches
@@ -119,6 +147,7 @@ public java.lang.String getName() {
    * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ @java.lang.Override @@ -127,6 +156,7 @@ public int getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +168,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,8 +188,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, version_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -170,17 +198,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest other = (com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) obj; + com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest other = + (com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getVersion() - != other.getVersion()) return false; + if (!getName().equals(other.getName())) return false; + if (getVersion() != other.getVersion()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -202,96 +229,104 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest 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.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to delete a workflow template.
    * Currently started workflows will remain running.
@@ -299,33 +334,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest)
       com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
+          .internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
+          .internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.Builder.class);
+              com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.class,
+              com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -337,9 +371,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
+          .internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor;
     }
 
     @java.lang.Override
@@ -358,7 +392,8 @@ public com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest buildPartial() {
-      com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest result = new com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest(this);
+      com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest result =
+          new com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest(this);
       result.name_ = name_;
       result.version_ = version_;
       onBuilt();
@@ -369,38 +404,39 @@ public com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) {
-        return mergeFrom((com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -408,7 +444,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest other) {
-      if (other == com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -442,22 +479,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 16: {
-              version_ = input.readInt32();
-
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 16:
+              {
+                version_ = input.readInt32();
+
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -470,6 +510,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -481,14 +523,16 @@ public Builder mergeFrom(
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * 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; @@ -497,6 +541,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -508,16 +554,17 @@ public java.lang.String getName() {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * 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 { @@ -525,6 +572,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -536,21 +585,25 @@ public java.lang.String getName() {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -562,16 +615,21 @@ public Builder setName(
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -583,24 +641,28 @@ public Builder clearName() {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int version_ ; + private int version_; /** + * + * *
      * Optional. The version of workflow template to delete. If specified,
      * will only delete the template if the current server version matches
@@ -608,6 +670,7 @@ public Builder setNameBytes(
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ @java.lang.Override @@ -615,6 +678,8 @@ public int getVersion() { return version_; } /** + * + * *
      * Optional. The version of workflow template to delete. If specified,
      * will only delete the template if the current server version matches
@@ -622,16 +687,19 @@ public int getVersion() {
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { - + version_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The version of workflow template to delete. If specified,
      * will only delete the template if the current server version matches
@@ -639,17 +707,18 @@ public Builder setVersion(int value) {
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -659,12 +728,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) private static final com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest(); } @@ -673,27 +742,27 @@ public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkflowTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -708,6 +777,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.java index b67256a5a211..70f037aa1324 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface DeleteWorkflowTemplateRequestOrBuilder extends +public interface DeleteWorkflowTemplateRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -19,11 +37,16 @@ public interface DeleteWorkflowTemplateRequestOrBuilder extends
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -35,13 +58,17 @@ public interface DeleteWorkflowTemplateRequestOrBuilder extends
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. The version of workflow template to delete. If specified,
    * will only delete the template if the current server version matches
@@ -49,6 +76,7 @@ public interface DeleteWorkflowTemplateRequestOrBuilder extends
    * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ int getVersion(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java index 441f6e1bee37..658ad524e629 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to collect cluster diagnostic information.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.DiagnoseClusterRequest} */ -public final class DiagnoseClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DiagnoseClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DiagnoseClusterRequest) DiagnoseClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DiagnoseClusterRequest.newBuilder() to construct. private DiagnoseClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DiagnoseClusterRequest() { projectId_ = ""; region_ = ""; @@ -27,38 +45,42 @@ private DiagnoseClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DiagnoseClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DiagnoseClusterRequest.class, com.google.cloud.dataproc.v1.DiagnoseClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.DiagnoseClusterRequest.class, + com.google.cloud.dataproc.v1.DiagnoseClusterRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -67,30 +89,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -101,11 +123,14 @@ public java.lang.String getProjectId() { public static final int REGION_FIELD_NUMBER = 3; private volatile java.lang.Object region_; /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ @java.lang.Override @@ -114,29 +139,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -147,11 +172,14 @@ public java.lang.String getRegion() { public static final int CLUSTER_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object clusterName_; /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ @java.lang.Override @@ -160,29 +188,29 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -191,6 +219,7 @@ public java.lang.String getClusterName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +231,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -239,19 +267,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.dataproc.v1.DiagnoseClusterRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DiagnoseClusterRequest other = (com.google.cloud.dataproc.v1.DiagnoseClusterRequest) obj; + com.google.cloud.dataproc.v1.DiagnoseClusterRequest other = + (com.google.cloud.dataproc.v1.DiagnoseClusterRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getRegion() - .equals(other.getRegion())) return false; - if (!getClusterName() - .equals(other.getClusterName())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getClusterName().equals(other.getClusterName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,129 +301,135 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest 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.dataproc.v1.DiagnoseClusterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.DiagnoseClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to collect cluster diagnostic information.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.DiagnoseClusterRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DiagnoseClusterRequest) com.google.cloud.dataproc.v1.DiagnoseClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DiagnoseClusterRequest.class, com.google.cloud.dataproc.v1.DiagnoseClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.DiagnoseClusterRequest.class, + com.google.cloud.dataproc.v1.DiagnoseClusterRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.DiagnoseClusterRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; } @java.lang.Override @@ -432,7 +464,8 @@ public com.google.cloud.dataproc.v1.DiagnoseClusterRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.DiagnoseClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.DiagnoseClusterRequest result = new com.google.cloud.dataproc.v1.DiagnoseClusterRequest(this); + com.google.cloud.dataproc.v1.DiagnoseClusterRequest result = + new com.google.cloud.dataproc.v1.DiagnoseClusterRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.clusterName_ = clusterName_; @@ -444,38 +477,39 @@ public com.google.cloud.dataproc.v1.DiagnoseClusterRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.DiagnoseClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.DiagnoseClusterRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.DiagnoseClusterRequest) other); } else { super.mergeFrom(other); return this; @@ -483,7 +517,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.DiagnoseClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.DiagnoseClusterRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.DiagnoseClusterRequest.getDefaultInstance()) + return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -522,27 +557,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - region_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,19 +594,21 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -576,21 +617,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -598,57 +640,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -656,18 +705,20 @@ public Builder setProjectIdBytes( private java.lang.Object region_ = ""; /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -676,20 +727,21 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -697,54 +749,61 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion( - java.lang.String value) { + public Builder setRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -752,18 +811,20 @@ public Builder setRegionBytes( private java.lang.Object clusterName_ = ""; /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -772,20 +833,21 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -793,61 +855,68 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName( - java.lang.String value) { + public Builder setClusterName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = 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); } @@ -857,12 +926,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DiagnoseClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DiagnoseClusterRequest) private static final com.google.cloud.dataproc.v1.DiagnoseClusterRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DiagnoseClusterRequest(); } @@ -871,27 +940,27 @@ public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiagnoseClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiagnoseClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -906,6 +975,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.DiagnoseClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java index 4a0fa5f468e1..52409f34ce4a 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java @@ -1,71 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface DiagnoseClusterRequestOrBuilder extends +public interface DiagnoseClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DiagnoseClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ java.lang.String getRegion(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - com.google.protobuf.ByteString - getRegionBytes(); + com.google.protobuf.ByteString getRegionBytes(); /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ java.lang.String getClusterName(); /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString - getClusterNameBytes(); + com.google.protobuf.ByteString getClusterNameBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java similarity index 66% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java index 41c892d53e4a..5af437c3716a 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * The location of diagnostic output.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.DiagnoseClusterResults} */ -public final class DiagnoseClusterResults extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DiagnoseClusterResults extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DiagnoseClusterResults) DiagnoseClusterResultsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DiagnoseClusterResults.newBuilder() to construct. private DiagnoseClusterResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DiagnoseClusterResults() { outputUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DiagnoseClusterResults(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DiagnoseClusterResults.class, com.google.cloud.dataproc.v1.DiagnoseClusterResults.Builder.class); + com.google.cloud.dataproc.v1.DiagnoseClusterResults.class, + com.google.cloud.dataproc.v1.DiagnoseClusterResults.Builder.class); } public static final int OUTPUT_URI_FIELD_NUMBER = 1; private volatile java.lang.Object outputUri_; /** + * + * *
    * Output only. The Cloud Storage URI of the diagnostic output.
    * The output report is a plain text file with a summary of collected
@@ -58,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The outputUri. */ @java.lang.Override @@ -66,14 +88,15 @@ public java.lang.String getOutputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUri_ = s; return s; } } /** + * + * *
    * Output only. The Cloud Storage URI of the diagnostic output.
    * The output report is a plain text file with a summary of collected
@@ -81,16 +104,15 @@ public java.lang.String getOutputUri() {
    * 
* * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for outputUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputUriBytes() { + public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUri_ = b; return b; } else { @@ -99,6 +121,7 @@ public java.lang.String getOutputUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUri_); } @@ -135,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.DiagnoseClusterResults)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DiagnoseClusterResults other = (com.google.cloud.dataproc.v1.DiagnoseClusterResults) obj; + com.google.cloud.dataproc.v1.DiagnoseClusterResults other = + (com.google.cloud.dataproc.v1.DiagnoseClusterResults) obj; - if (!getOutputUri() - .equals(other.getOutputUri())) return false; + if (!getOutputUri().equals(other.getOutputUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -163,129 +185,135 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.DiagnoseClusterResults 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.dataproc.v1.DiagnoseClusterResults parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.DiagnoseClusterResults prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 location of diagnostic output.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.DiagnoseClusterResults} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DiagnoseClusterResults) com.google.cloud.dataproc.v1.DiagnoseClusterResultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DiagnoseClusterResults.class, com.google.cloud.dataproc.v1.DiagnoseClusterResults.Builder.class); + com.google.cloud.dataproc.v1.DiagnoseClusterResults.class, + com.google.cloud.dataproc.v1.DiagnoseClusterResults.Builder.class); } // Construct using com.google.cloud.dataproc.v1.DiagnoseClusterResults.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -295,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; } @java.lang.Override @@ -316,7 +344,8 @@ public com.google.cloud.dataproc.v1.DiagnoseClusterResults build() { @java.lang.Override public com.google.cloud.dataproc.v1.DiagnoseClusterResults buildPartial() { - com.google.cloud.dataproc.v1.DiagnoseClusterResults result = new com.google.cloud.dataproc.v1.DiagnoseClusterResults(this); + com.google.cloud.dataproc.v1.DiagnoseClusterResults result = + new com.google.cloud.dataproc.v1.DiagnoseClusterResults(this); result.outputUri_ = outputUri_; onBuilt(); return result; @@ -326,38 +355,39 @@ public com.google.cloud.dataproc.v1.DiagnoseClusterResults buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.DiagnoseClusterResults) { - return mergeFrom((com.google.cloud.dataproc.v1.DiagnoseClusterResults)other); + return mergeFrom((com.google.cloud.dataproc.v1.DiagnoseClusterResults) other); } else { super.mergeFrom(other); return this; @@ -365,7 +395,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.DiagnoseClusterResults other) { - if (other == com.google.cloud.dataproc.v1.DiagnoseClusterResults.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.DiagnoseClusterResults.getDefaultInstance()) + return this; if (!other.getOutputUri().isEmpty()) { outputUri_ = other.outputUri_; onChanged(); @@ -396,17 +427,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - outputUri_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + outputUri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -419,6 +452,8 @@ public Builder mergeFrom( private java.lang.Object outputUri_ = ""; /** + * + * *
      * Output only. The Cloud Storage URI of the diagnostic output.
      * The output report is a plain text file with a summary of collected
@@ -426,13 +461,13 @@ public Builder mergeFrom(
      * 
* * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The outputUri. */ public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUri_ = s; return s; @@ -441,6 +476,8 @@ public java.lang.String getOutputUri() { } } /** + * + * *
      * Output only. The Cloud Storage URI of the diagnostic output.
      * The output report is a plain text file with a summary of collected
@@ -448,15 +485,14 @@ public java.lang.String getOutputUri() {
      * 
* * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for outputUri. */ - public com.google.protobuf.ByteString - getOutputUriBytes() { + public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUri_ = b; return b; } else { @@ -464,6 +500,8 @@ public java.lang.String getOutputUri() { } } /** + * + * *
      * Output only. The Cloud Storage URI of the diagnostic output.
      * The output report is a plain text file with a summary of collected
@@ -471,20 +509,22 @@ public java.lang.String getOutputUri() {
      * 
* * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The outputUri to set. * @return This builder for chaining. */ - public Builder setOutputUri( - java.lang.String value) { + public Builder setOutputUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The Cloud Storage URI of the diagnostic output.
      * The output report is a plain text file with a summary of collected
@@ -492,15 +532,18 @@ public Builder setOutputUri(
      * 
* * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearOutputUri() { - + outputUri_ = getDefaultInstance().getOutputUri(); onChanged(); return this; } /** + * + * *
      * Output only. The Cloud Storage URI of the diagnostic output.
      * The output report is a plain text file with a summary of collected
@@ -508,23 +551,23 @@ public Builder clearOutputUri() {
      * 
* * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for outputUri to set. * @return This builder for chaining. */ - public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { + public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -534,12 +577,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DiagnoseClusterResults) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DiagnoseClusterResults) private static final com.google.cloud.dataproc.v1.DiagnoseClusterResults DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DiagnoseClusterResults(); } @@ -548,27 +591,27 @@ public static com.google.cloud.dataproc.v1.DiagnoseClusterResults getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiagnoseClusterResults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiagnoseClusterResults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,6 +626,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.DiagnoseClusterResults getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.java similarity index 56% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.java index 643310d3540c..a377eeedef41 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface DiagnoseClusterResultsOrBuilder extends +public interface DiagnoseClusterResultsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DiagnoseClusterResults) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The Cloud Storage URI of the diagnostic output.
    * The output report is a plain text file with a summary of collected
@@ -15,10 +33,13 @@ public interface DiagnoseClusterResultsOrBuilder extends
    * 
* * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The outputUri. */ java.lang.String getOutputUri(); /** + * + * *
    * Output only. The Cloud Storage URI of the diagnostic output.
    * The output report is a plain text file with a summary of collected
@@ -26,8 +47,8 @@ public interface DiagnoseClusterResultsOrBuilder extends
    * 
* * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for outputUri. */ - com.google.protobuf.ByteString - getOutputUriBytes(); + com.google.protobuf.ByteString getOutputUriBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java similarity index 74% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java index 8fc4b7d972f8..ebc46f643d2a 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Specifies the config of disk options for a group of VM instances.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.DiskConfig} */ -public final class DiskConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DiskConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DiskConfig) DiskConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DiskConfig.newBuilder() to construct. private DiskConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DiskConfig() { bootDiskType_ = ""; localSsdInterface_ = ""; @@ -26,32 +44,35 @@ private DiskConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DiskConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DiskConfig.class, com.google.cloud.dataproc.v1.DiskConfig.Builder.class); + com.google.cloud.dataproc.v1.DiskConfig.class, + com.google.cloud.dataproc.v1.DiskConfig.Builder.class); } public static final int BOOT_DISK_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object bootDiskType_; /** + * + * *
    * Optional. Type of the boot disk (default is "pd-standard").
    * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
@@ -61,6 +82,7 @@ protected java.lang.Object newInstance(
    * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bootDiskType. */ @java.lang.Override @@ -69,14 +91,15 @@ public java.lang.String getBootDiskType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bootDiskType_ = s; return s; } } /** + * + * *
    * Optional. Type of the boot disk (default is "pd-standard").
    * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
@@ -86,16 +109,15 @@ public java.lang.String getBootDiskType() {
    * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for bootDiskType. */ @java.lang.Override - public com.google.protobuf.ByteString - getBootDiskTypeBytes() { + public com.google.protobuf.ByteString getBootDiskTypeBytes() { java.lang.Object ref = bootDiskType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bootDiskType_ = b; return b; } else { @@ -106,11 +128,14 @@ public java.lang.String getBootDiskType() { public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER = 1; private int bootDiskSizeGb_; /** + * + * *
    * Optional. Size in GB of the boot disk (default is 500GB).
    * 
* * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -121,6 +146,8 @@ public int getBootDiskSizeGb() { public static final int NUM_LOCAL_SSDS_FIELD_NUMBER = 2; private int numLocalSsds_; /** + * + * *
    * Optional. Number of attached SSDs, from 0 to 8 (default is 0).
    * If SSDs are not attached, the boot disk is used to store runtime logs and
@@ -131,6 +158,7 @@ public int getBootDiskSizeGb() {
    * 
* * int32 num_local_ssds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The numLocalSsds. */ @java.lang.Override @@ -141,6 +169,8 @@ public int getNumLocalSsds() { public static final int LOCAL_SSD_INTERFACE_FIELD_NUMBER = 4; private volatile java.lang.Object localSsdInterface_; /** + * + * *
    * Optional. Interface type of local SSDs (default is "scsi").
    * Valid values: "scsi" (Small Computer System Interface),
@@ -150,6 +180,7 @@ public int getNumLocalSsds() {
    * 
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The localSsdInterface. */ @java.lang.Override @@ -158,14 +189,15 @@ public java.lang.String getLocalSsdInterface() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); localSsdInterface_ = s; return s; } } /** + * + * *
    * Optional. Interface type of local SSDs (default is "scsi").
    * Valid values: "scsi" (Small Computer System Interface),
@@ -175,16 +207,15 @@ public java.lang.String getLocalSsdInterface() {
    * 
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for localSsdInterface. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocalSsdInterfaceBytes() { + public com.google.protobuf.ByteString getLocalSsdInterfaceBytes() { java.lang.Object ref = localSsdInterface_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); localSsdInterface_ = b; return b; } else { @@ -193,6 +224,7 @@ public java.lang.String getLocalSsdInterface() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +236,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (bootDiskSizeGb_ != 0) { output.writeInt32(1, bootDiskSizeGb_); } @@ -228,12 +259,10 @@ public int getSerializedSize() { size = 0; if (bootDiskSizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, bootDiskSizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, bootDiskSizeGb_); } if (numLocalSsds_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, numLocalSsds_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, numLocalSsds_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bootDiskType_); @@ -249,21 +278,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.dataproc.v1.DiskConfig)) { return super.equals(obj); } com.google.cloud.dataproc.v1.DiskConfig other = (com.google.cloud.dataproc.v1.DiskConfig) obj; - if (!getBootDiskType() - .equals(other.getBootDiskType())) return false; - if (getBootDiskSizeGb() - != other.getBootDiskSizeGb()) return false; - if (getNumLocalSsds() - != other.getNumLocalSsds()) return false; - if (!getLocalSsdInterface() - .equals(other.getLocalSsdInterface())) return false; + if (!getBootDiskType().equals(other.getBootDiskType())) return false; + if (getBootDiskSizeGb() != other.getBootDiskSizeGb()) return false; + if (getNumLocalSsds() != other.getNumLocalSsds()) return false; + if (!getLocalSsdInterface().equals(other.getLocalSsdInterface())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -288,130 +313,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.DiskConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DiskConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DiskConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DiskConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DiskConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DiskConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.DiskConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specifies the config of disk options for a group of VM instances.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.DiskConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DiskConfig) com.google.cloud.dataproc.v1.DiskConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DiskConfig.class, com.google.cloud.dataproc.v1.DiskConfig.Builder.class); + com.google.cloud.dataproc.v1.DiskConfig.class, + com.google.cloud.dataproc.v1.DiskConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.DiskConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -427,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; } @java.lang.Override @@ -448,7 +479,8 @@ public com.google.cloud.dataproc.v1.DiskConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.DiskConfig buildPartial() { - com.google.cloud.dataproc.v1.DiskConfig result = new com.google.cloud.dataproc.v1.DiskConfig(this); + com.google.cloud.dataproc.v1.DiskConfig result = + new com.google.cloud.dataproc.v1.DiskConfig(this); result.bootDiskType_ = bootDiskType_; result.bootDiskSizeGb_ = bootDiskSizeGb_; result.numLocalSsds_ = numLocalSsds_; @@ -461,38 +493,39 @@ public com.google.cloud.dataproc.v1.DiskConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.DiskConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.DiskConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.DiskConfig) other); } else { super.mergeFrom(other); return this; @@ -541,32 +574,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - bootDiskSizeGb_ = input.readInt32(); + case 8: + { + bootDiskSizeGb_ = input.readInt32(); - break; - } // case 8 - case 16: { - numLocalSsds_ = input.readInt32(); + break; + } // case 8 + case 16: + { + numLocalSsds_ = input.readInt32(); - break; - } // case 16 - case 26: { - bootDiskType_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + bootDiskType_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - localSsdInterface_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + localSsdInterface_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -579,6 +617,8 @@ public Builder mergeFrom( private java.lang.Object bootDiskType_ = ""; /** + * + * *
      * Optional. Type of the boot disk (default is "pd-standard").
      * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
@@ -588,13 +628,13 @@ public Builder mergeFrom(
      * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bootDiskType. */ public java.lang.String getBootDiskType() { java.lang.Object ref = bootDiskType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bootDiskType_ = s; return s; @@ -603,6 +643,8 @@ public java.lang.String getBootDiskType() { } } /** + * + * *
      * Optional. Type of the boot disk (default is "pd-standard").
      * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
@@ -612,15 +654,14 @@ public java.lang.String getBootDiskType() {
      * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for bootDiskType. */ - public com.google.protobuf.ByteString - getBootDiskTypeBytes() { + public com.google.protobuf.ByteString getBootDiskTypeBytes() { java.lang.Object ref = bootDiskType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bootDiskType_ = b; return b; } else { @@ -628,6 +669,8 @@ public java.lang.String getBootDiskType() { } } /** + * + * *
      * Optional. Type of the boot disk (default is "pd-standard").
      * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
@@ -637,20 +680,22 @@ public java.lang.String getBootDiskType() {
      * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bootDiskType to set. * @return This builder for chaining. */ - public Builder setBootDiskType( - java.lang.String value) { + public Builder setBootDiskType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + bootDiskType_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Type of the boot disk (default is "pd-standard").
      * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
@@ -660,15 +705,18 @@ public Builder setBootDiskType(
      * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearBootDiskType() { - + bootDiskType_ = getDefaultInstance().getBootDiskType(); onChanged(); return this; } /** + * + * *
      * Optional. Type of the boot disk (default is "pd-standard").
      * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
@@ -678,28 +726,31 @@ public Builder clearBootDiskType() {
      * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for bootDiskType to set. * @return This builder for chaining. */ - public Builder setBootDiskTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setBootDiskTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bootDiskType_ = value; onChanged(); return this; } - private int bootDiskSizeGb_ ; + private int bootDiskSizeGb_; /** + * + * *
      * Optional. Size in GB of the boot disk (default is 500GB).
      * 
* * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -707,37 +758,45 @@ public int getBootDiskSizeGb() { return bootDiskSizeGb_; } /** + * + * *
      * Optional. Size in GB of the boot disk (default is 500GB).
      * 
* * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bootDiskSizeGb to set. * @return This builder for chaining. */ public Builder setBootDiskSizeGb(int value) { - + bootDiskSizeGb_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Size in GB of the boot disk (default is 500GB).
      * 
* * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearBootDiskSizeGb() { - + bootDiskSizeGb_ = 0; onChanged(); return this; } - private int numLocalSsds_ ; + private int numLocalSsds_; /** + * + * *
      * Optional. Number of attached SSDs, from 0 to 8 (default is 0).
      * If SSDs are not attached, the boot disk is used to store runtime logs and
@@ -748,6 +807,7 @@ public Builder clearBootDiskSizeGb() {
      * 
* * int32 num_local_ssds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The numLocalSsds. */ @java.lang.Override @@ -755,6 +815,8 @@ public int getNumLocalSsds() { return numLocalSsds_; } /** + * + * *
      * Optional. Number of attached SSDs, from 0 to 8 (default is 0).
      * If SSDs are not attached, the boot disk is used to store runtime logs and
@@ -765,16 +827,19 @@ public int getNumLocalSsds() {
      * 
* * int32 num_local_ssds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The numLocalSsds to set. * @return This builder for chaining. */ public Builder setNumLocalSsds(int value) { - + numLocalSsds_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Number of attached SSDs, from 0 to 8 (default is 0).
      * If SSDs are not attached, the boot disk is used to store runtime logs and
@@ -785,10 +850,11 @@ public Builder setNumLocalSsds(int value) {
      * 
* * int32 num_local_ssds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNumLocalSsds() { - + numLocalSsds_ = 0; onChanged(); return this; @@ -796,6 +862,8 @@ public Builder clearNumLocalSsds() { private java.lang.Object localSsdInterface_ = ""; /** + * + * *
      * Optional. Interface type of local SSDs (default is "scsi").
      * Valid values: "scsi" (Small Computer System Interface),
@@ -805,13 +873,13 @@ public Builder clearNumLocalSsds() {
      * 
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The localSsdInterface. */ public java.lang.String getLocalSsdInterface() { java.lang.Object ref = localSsdInterface_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); localSsdInterface_ = s; return s; @@ -820,6 +888,8 @@ public java.lang.String getLocalSsdInterface() { } } /** + * + * *
      * Optional. Interface type of local SSDs (default is "scsi").
      * Valid values: "scsi" (Small Computer System Interface),
@@ -829,15 +899,14 @@ public java.lang.String getLocalSsdInterface() {
      * 
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for localSsdInterface. */ - public com.google.protobuf.ByteString - getLocalSsdInterfaceBytes() { + public com.google.protobuf.ByteString getLocalSsdInterfaceBytes() { java.lang.Object ref = localSsdInterface_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); localSsdInterface_ = b; return b; } else { @@ -845,6 +914,8 @@ public java.lang.String getLocalSsdInterface() { } } /** + * + * *
      * Optional. Interface type of local SSDs (default is "scsi").
      * Valid values: "scsi" (Small Computer System Interface),
@@ -854,20 +925,22 @@ public java.lang.String getLocalSsdInterface() {
      * 
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The localSsdInterface to set. * @return This builder for chaining. */ - public Builder setLocalSsdInterface( - java.lang.String value) { + public Builder setLocalSsdInterface(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + localSsdInterface_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Interface type of local SSDs (default is "scsi").
      * Valid values: "scsi" (Small Computer System Interface),
@@ -877,15 +950,18 @@ public Builder setLocalSsdInterface(
      * 
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLocalSsdInterface() { - + localSsdInterface_ = getDefaultInstance().getLocalSsdInterface(); onChanged(); return this; } /** + * + * *
      * Optional. Interface type of local SSDs (default is "scsi").
      * Valid values: "scsi" (Small Computer System Interface),
@@ -895,23 +971,23 @@ public Builder clearLocalSsdInterface() {
      * 
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for localSsdInterface to set. * @return This builder for chaining. */ - public Builder setLocalSsdInterfaceBytes( - com.google.protobuf.ByteString value) { + public Builder setLocalSsdInterfaceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + localSsdInterface_ = 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); } @@ -921,12 +997,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DiskConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DiskConfig) private static final com.google.cloud.dataproc.v1.DiskConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DiskConfig(); } @@ -935,27 +1011,27 @@ public static com.google.cloud.dataproc.v1.DiskConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiskConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiskConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -970,6 +1046,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.DiskConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java similarity index 78% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java index b92f0d04c899..6a1918bf0faa 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface DiskConfigOrBuilder extends +public interface DiskConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DiskConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Type of the boot disk (default is "pd-standard").
    * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
@@ -17,10 +35,13 @@ public interface DiskConfigOrBuilder extends
    * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bootDiskType. */ java.lang.String getBootDiskType(); /** + * + * *
    * Optional. Type of the boot disk (default is "pd-standard").
    * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
@@ -30,22 +51,27 @@ public interface DiskConfigOrBuilder extends
    * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for bootDiskType. */ - com.google.protobuf.ByteString - getBootDiskTypeBytes(); + com.google.protobuf.ByteString getBootDiskTypeBytes(); /** + * + * *
    * Optional. Size in GB of the boot disk (default is 500GB).
    * 
* * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bootDiskSizeGb. */ int getBootDiskSizeGb(); /** + * + * *
    * Optional. Number of attached SSDs, from 0 to 8 (default is 0).
    * If SSDs are not attached, the boot disk is used to store runtime logs and
@@ -56,11 +82,14 @@ public interface DiskConfigOrBuilder extends
    * 
* * int32 num_local_ssds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The numLocalSsds. */ int getNumLocalSsds(); /** + * + * *
    * Optional. Interface type of local SSDs (default is "scsi").
    * Valid values: "scsi" (Small Computer System Interface),
@@ -70,10 +99,13 @@ public interface DiskConfigOrBuilder extends
    * 
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The localSsdInterface. */ java.lang.String getLocalSsdInterface(); /** + * + * *
    * Optional. Interface type of local SSDs (default is "scsi").
    * Valid values: "scsi" (Small Computer System Interface),
@@ -83,8 +115,8 @@ public interface DiskConfigOrBuilder extends
    * 
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for localSsdInterface. */ - com.google.protobuf.ByteString - getLocalSsdInterfaceBytes(); + com.google.protobuf.ByteString getLocalSsdInterfaceBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfig.java similarity index 66% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfig.java index d143a0647b62..09096b2e21a1 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfig.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Driver scheduling configuration.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.DriverSchedulingConfig} */ -public final class DriverSchedulingConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DriverSchedulingConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DriverSchedulingConfig) DriverSchedulingConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DriverSchedulingConfig.newBuilder() to construct. private DriverSchedulingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DriverSchedulingConfig() { - } + + private DriverSchedulingConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DriverSchedulingConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DriverSchedulingConfig.class, com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder.class); + com.google.cloud.dataproc.v1.DriverSchedulingConfig.class, + com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder.class); } public static final int MEMORY_MB_FIELD_NUMBER = 1; private int memoryMb_; /** + * + * *
    * Required. The amount of memory in MB the driver is requesting.
    * 
* * int32 memory_mb = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The memoryMb. */ @java.lang.Override @@ -65,11 +86,14 @@ public int getMemoryMb() { public static final int VCORES_FIELD_NUMBER = 2; private int vcores_; /** + * + * *
    * Required. The number of vCPUs the driver is requesting.
    * 
* * int32 vcores = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vcores. */ @java.lang.Override @@ -78,6 +102,7 @@ public int getVcores() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -89,8 +114,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (memoryMb_ != 0) { output.writeInt32(1, memoryMb_); } @@ -107,12 +131,10 @@ public int getSerializedSize() { size = 0; if (memoryMb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, memoryMb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, memoryMb_); } if (vcores_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, vcores_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, vcores_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -122,17 +144,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.DriverSchedulingConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.DriverSchedulingConfig other = (com.google.cloud.dataproc.v1.DriverSchedulingConfig) obj; + com.google.cloud.dataproc.v1.DriverSchedulingConfig other = + (com.google.cloud.dataproc.v1.DriverSchedulingConfig) obj; - if (getMemoryMb() - != other.getMemoryMb()) return false; - if (getVcores() - != other.getVcores()) return false; + if (getMemoryMb() != other.getMemoryMb()) return false; + if (getVcores() != other.getVcores()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -154,129 +175,135 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.DriverSchedulingConfig 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.dataproc.v1.DriverSchedulingConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.DriverSchedulingConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.DriverSchedulingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Driver scheduling configuration.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.DriverSchedulingConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DriverSchedulingConfig) com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DriverSchedulingConfig.class, com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder.class); + com.google.cloud.dataproc.v1.DriverSchedulingConfig.class, + com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.DriverSchedulingConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -288,9 +315,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_descriptor; } @java.lang.Override @@ -309,7 +336,8 @@ public com.google.cloud.dataproc.v1.DriverSchedulingConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.DriverSchedulingConfig buildPartial() { - com.google.cloud.dataproc.v1.DriverSchedulingConfig result = new com.google.cloud.dataproc.v1.DriverSchedulingConfig(this); + com.google.cloud.dataproc.v1.DriverSchedulingConfig result = + new com.google.cloud.dataproc.v1.DriverSchedulingConfig(this); result.memoryMb_ = memoryMb_; result.vcores_ = vcores_; onBuilt(); @@ -320,38 +348,39 @@ public com.google.cloud.dataproc.v1.DriverSchedulingConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.DriverSchedulingConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.DriverSchedulingConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.DriverSchedulingConfig) other); } else { super.mergeFrom(other); return this; @@ -359,7 +388,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.DriverSchedulingConfig other) { - if (other == com.google.cloud.dataproc.v1.DriverSchedulingConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.DriverSchedulingConfig.getDefaultInstance()) + return this; if (other.getMemoryMb() != 0) { setMemoryMb(other.getMemoryMb()); } @@ -392,22 +422,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - memoryMb_ = input.readInt32(); - - break; - } // case 8 - case 16: { - vcores_ = input.readInt32(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + memoryMb_ = input.readInt32(); + + break; + } // case 8 + case 16: + { + vcores_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,13 +451,16 @@ public Builder mergeFrom( return this; } - private int memoryMb_ ; + private int memoryMb_; /** + * + * *
      * Required. The amount of memory in MB the driver is requesting.
      * 
* * int32 memory_mb = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The memoryMb. */ @java.lang.Override @@ -432,42 +468,51 @@ public int getMemoryMb() { return memoryMb_; } /** + * + * *
      * Required. The amount of memory in MB the driver is requesting.
      * 
* * int32 memory_mb = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The memoryMb to set. * @return This builder for chaining. */ public Builder setMemoryMb(int value) { - + memoryMb_ = value; onChanged(); return this; } /** + * + * *
      * Required. The amount of memory in MB the driver is requesting.
      * 
* * int32 memory_mb = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMemoryMb() { - + memoryMb_ = 0; onChanged(); return this; } - private int vcores_ ; + private int vcores_; /** + * + * *
      * Required. The number of vCPUs the driver is requesting.
      * 
* * int32 vcores = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vcores. */ @java.lang.Override @@ -475,37 +520,43 @@ public int getVcores() { return vcores_; } /** + * + * *
      * Required. The number of vCPUs the driver is requesting.
      * 
* * int32 vcores = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The vcores to set. * @return This builder for chaining. */ public Builder setVcores(int value) { - + vcores_ = value; onChanged(); return this; } /** + * + * *
      * Required. The number of vCPUs the driver is requesting.
      * 
* * int32 vcores = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearVcores() { - + vcores_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -515,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.DriverSchedulingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DriverSchedulingConfig) private static final com.google.cloud.dataproc.v1.DriverSchedulingConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DriverSchedulingConfig(); } @@ -529,27 +580,27 @@ public static com.google.cloud.dataproc.v1.DriverSchedulingConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DriverSchedulingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DriverSchedulingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -564,6 +615,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.DriverSchedulingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfigOrBuilder.java similarity index 52% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfigOrBuilder.java index fc15efd039c5..71dfc1092dad 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DriverSchedulingConfigOrBuilder.java @@ -1,28 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface DriverSchedulingConfigOrBuilder extends +public interface DriverSchedulingConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DriverSchedulingConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The amount of memory in MB the driver is requesting.
    * 
* * int32 memory_mb = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The memoryMb. */ int getMemoryMb(); /** + * + * *
    * Required. The number of vCPUs the driver is requesting.
    * 
* * int32 vcores = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vcores. */ int getVcores(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java similarity index 67% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java index cb0194a65870..b0c5a1902282 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Encryption settings for the cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.EncryptionConfig} */ -public final class EncryptionConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EncryptionConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.EncryptionConfig) EncryptionConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EncryptionConfig.newBuilder() to construct. private EncryptionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EncryptionConfig() { gcePdKmsKeyName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EncryptionConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.EncryptionConfig.class, com.google.cloud.dataproc.v1.EncryptionConfig.Builder.class); + com.google.cloud.dataproc.v1.EncryptionConfig.class, + com.google.cloud.dataproc.v1.EncryptionConfig.Builder.class); } public static final int GCE_PD_KMS_KEY_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object gcePdKmsKeyName_; /** + * + * *
    * Optional. The Cloud KMS key name to use for PD disk encryption for all
    * instances in the cluster.
    * 
* * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The gcePdKmsKeyName. */ @java.lang.Override @@ -65,30 +87,30 @@ public java.lang.String getGcePdKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcePdKmsKeyName_ = s; return s; } } /** + * + * *
    * Optional. The Cloud KMS key name to use for PD disk encryption for all
    * instances in the cluster.
    * 
* * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for gcePdKmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcePdKmsKeyNameBytes() { + public com.google.protobuf.ByteString getGcePdKmsKeyNameBytes() { java.lang.Object ref = gcePdKmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcePdKmsKeyName_ = b; return b; } else { @@ -97,6 +119,7 @@ public java.lang.String getGcePdKmsKeyName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcePdKmsKeyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcePdKmsKeyName_); } @@ -133,15 +155,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.dataproc.v1.EncryptionConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.EncryptionConfig other = (com.google.cloud.dataproc.v1.EncryptionConfig) obj; + com.google.cloud.dataproc.v1.EncryptionConfig other = + (com.google.cloud.dataproc.v1.EncryptionConfig) obj; - if (!getGcePdKmsKeyName() - .equals(other.getGcePdKmsKeyName())) return false; + if (!getGcePdKmsKeyName().equals(other.getGcePdKmsKeyName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,130 +182,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.EncryptionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.EncryptionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.EncryptionConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.EncryptionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Encryption settings for the cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.EncryptionConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.EncryptionConfig) com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.EncryptionConfig.class, com.google.cloud.dataproc.v1.EncryptionConfig.Builder.class); + com.google.cloud.dataproc.v1.EncryptionConfig.class, + com.google.cloud.dataproc.v1.EncryptionConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.EncryptionConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; } @java.lang.Override @@ -314,7 +342,8 @@ public com.google.cloud.dataproc.v1.EncryptionConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.EncryptionConfig buildPartial() { - com.google.cloud.dataproc.v1.EncryptionConfig result = new com.google.cloud.dataproc.v1.EncryptionConfig(this); + com.google.cloud.dataproc.v1.EncryptionConfig result = + new com.google.cloud.dataproc.v1.EncryptionConfig(this); result.gcePdKmsKeyName_ = gcePdKmsKeyName_; onBuilt(); return result; @@ -324,38 +353,39 @@ public com.google.cloud.dataproc.v1.EncryptionConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.EncryptionConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.EncryptionConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.EncryptionConfig) other); } else { super.mergeFrom(other); return this; @@ -394,17 +424,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - gcePdKmsKeyName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + gcePdKmsKeyName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -417,19 +449,21 @@ public Builder mergeFrom( private java.lang.Object gcePdKmsKeyName_ = ""; /** + * + * *
      * Optional. The Cloud KMS key name to use for PD disk encryption for all
      * instances in the cluster.
      * 
* * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The gcePdKmsKeyName. */ public java.lang.String getGcePdKmsKeyName() { java.lang.Object ref = gcePdKmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcePdKmsKeyName_ = s; return s; @@ -438,21 +472,22 @@ public java.lang.String getGcePdKmsKeyName() { } } /** + * + * *
      * Optional. The Cloud KMS key name to use for PD disk encryption for all
      * instances in the cluster.
      * 
* * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for gcePdKmsKeyName. */ - public com.google.protobuf.ByteString - getGcePdKmsKeyNameBytes() { + public com.google.protobuf.ByteString getGcePdKmsKeyNameBytes() { java.lang.Object ref = gcePdKmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcePdKmsKeyName_ = b; return b; } else { @@ -460,64 +495,71 @@ public java.lang.String getGcePdKmsKeyName() { } } /** + * + * *
      * Optional. The Cloud KMS key name to use for PD disk encryption for all
      * instances in the cluster.
      * 
* * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The gcePdKmsKeyName to set. * @return This builder for chaining. */ - public Builder setGcePdKmsKeyName( - java.lang.String value) { + public Builder setGcePdKmsKeyName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcePdKmsKeyName_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Cloud KMS key name to use for PD disk encryption for all
      * instances in the cluster.
      * 
* * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearGcePdKmsKeyName() { - + gcePdKmsKeyName_ = getDefaultInstance().getGcePdKmsKeyName(); onChanged(); return this; } /** + * + * *
      * Optional. The Cloud KMS key name to use for PD disk encryption for all
      * instances in the cluster.
      * 
* * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for gcePdKmsKeyName to set. * @return This builder for chaining. */ - public Builder setGcePdKmsKeyNameBytes( - com.google.protobuf.ByteString value) { + public Builder setGcePdKmsKeyNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcePdKmsKeyName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -527,12 +569,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.EncryptionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.EncryptionConfig) private static final com.google.cloud.dataproc.v1.EncryptionConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.EncryptionConfig(); } @@ -541,27 +583,27 @@ public static com.google.cloud.dataproc.v1.EncryptionConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EncryptionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncryptionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,6 +618,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.EncryptionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.java similarity index 54% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.java index 7a6a01dcca03..151b7c7e15dc 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.java @@ -1,31 +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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface EncryptionConfigOrBuilder extends +public interface EncryptionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.EncryptionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The Cloud KMS key name to use for PD disk encryption for all
    * instances in the cluster.
    * 
* * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The gcePdKmsKeyName. */ java.lang.String getGcePdKmsKeyName(); /** + * + * *
    * Optional. The Cloud KMS key name to use for PD disk encryption for all
    * instances in the cluster.
    * 
* * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for gcePdKmsKeyName. */ - com.google.protobuf.ByteString - getGcePdKmsKeyNameBytes(); + com.google.protobuf.ByteString getGcePdKmsKeyNameBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java similarity index 60% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java index a77f8e2b8deb..bad319e400df 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java @@ -1,83 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Endpoint config for this cluster
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.EndpointConfig} */ -public final class EndpointConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EndpointConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.EndpointConfig) EndpointConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EndpointConfig.newBuilder() to construct. private EndpointConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EndpointConfig() { - } + + private EndpointConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EndpointConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_EndpointConfig_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 internalGetHttpPorts(); 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.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.EndpointConfig.class, com.google.cloud.dataproc.v1.EndpointConfig.Builder.class); + com.google.cloud.dataproc.v1.EndpointConfig.class, + com.google.cloud.dataproc.v1.EndpointConfig.Builder.class); } public static final int HTTP_PORTS_FIELD_NUMBER = 1; + private static final class HttpPortsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> httpPorts_; - private com.google.protobuf.MapField - internalGetHttpPorts() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField httpPorts_; + + private com.google.protobuf.MapField internalGetHttpPorts() { if (httpPorts_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HttpPortsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(HttpPortsDefaultEntryHolder.defaultEntry); } return httpPorts_; } @@ -86,74 +102,81 @@ public int getHttpPortsCount() { return internalGetHttpPorts().getMap().size(); } /** + * + * *
    * Output only. The map of port descriptions to URLs. Will only be populated
    * if enable_http_port_access is true.
    * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsHttpPorts( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsHttpPorts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetHttpPorts().getMap().containsKey(key); } - /** - * Use {@link #getHttpPortsMap()} instead. - */ + /** Use {@link #getHttpPortsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHttpPorts() { return getHttpPortsMap(); } /** + * + * *
    * Output only. The map of port descriptions to URLs. Will only be populated
    * if enable_http_port_access is true.
    * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.Map getHttpPortsMap() { return internalGetHttpPorts().getMap(); } /** + * + * *
    * Output only. The map of port descriptions to URLs. Will only be populated
    * if enable_http_port_access is true.
    * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.lang.String getHttpPortsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetHttpPorts().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetHttpPorts().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Output only. The map of port descriptions to URLs. Will only be populated
    * if enable_http_port_access is true.
    * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - - public java.lang.String getHttpPortsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetHttpPorts().getMap(); + public java.lang.String getHttpPortsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetHttpPorts().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -163,12 +186,15 @@ public java.lang.String getHttpPortsOrThrow( public static final int ENABLE_HTTP_PORT_ACCESS_FIELD_NUMBER = 2; private boolean enableHttpPortAccess_; /** + * + * *
    * Optional. If true, enable http access to specific ports on the cluster
    * from external sources. Defaults to false.
    * 
* * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableHttpPortAccess. */ @java.lang.Override @@ -177,6 +203,7 @@ public boolean getEnableHttpPortAccess() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,14 +215,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetHttpPorts(), - HttpPortsDefaultEntryHolder.defaultEntry, - 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetHttpPorts(), HttpPortsDefaultEntryHolder.defaultEntry, 1); if (enableHttpPortAccess_ != false) { output.writeBool(2, enableHttpPortAccess_); } @@ -208,19 +230,18 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetHttpPorts().getMap().entrySet()) { - com.google.protobuf.MapEntry - httpPorts__ = HttpPortsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, httpPorts__); + for (java.util.Map.Entry entry : + internalGetHttpPorts().getMap().entrySet()) { + com.google.protobuf.MapEntry httpPorts__ = + HttpPortsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, httpPorts__); } if (enableHttpPortAccess_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enableHttpPortAccess_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableHttpPortAccess_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -230,17 +251,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.EndpointConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.EndpointConfig other = (com.google.cloud.dataproc.v1.EndpointConfig) obj; + com.google.cloud.dataproc.v1.EndpointConfig other = + (com.google.cloud.dataproc.v1.EndpointConfig) obj; - if (!internalGetHttpPorts().equals( - other.internalGetHttpPorts())) return false; - if (getEnableHttpPortAccess() - != other.getEnableHttpPortAccess()) return false; + if (!internalGetHttpPorts().equals(other.internalGetHttpPorts())) return false; + if (getEnableHttpPortAccess() != other.getEnableHttpPortAccess()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -257,159 +277,162 @@ public int hashCode() { hash = (53 * hash) + internalGetHttpPorts().hashCode(); } hash = (37 * hash) + ENABLE_HTTP_PORT_ACCESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableHttpPortAccess()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableHttpPortAccess()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.EndpointConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.EndpointConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.EndpointConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.EndpointConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Endpoint config for this cluster
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.EndpointConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.EndpointConfig) com.google.cloud.dataproc.v1.EndpointConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetHttpPorts(); 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 internalGetMutableHttpPorts(); 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.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.EndpointConfig.class, com.google.cloud.dataproc.v1.EndpointConfig.Builder.class); + com.google.cloud.dataproc.v1.EndpointConfig.class, + com.google.cloud.dataproc.v1.EndpointConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.EndpointConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; } @java.lang.Override @@ -441,7 +464,8 @@ public com.google.cloud.dataproc.v1.EndpointConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.EndpointConfig buildPartial() { - com.google.cloud.dataproc.v1.EndpointConfig result = new com.google.cloud.dataproc.v1.EndpointConfig(this); + com.google.cloud.dataproc.v1.EndpointConfig result = + new com.google.cloud.dataproc.v1.EndpointConfig(this); int from_bitField0_ = bitField0_; result.httpPorts_ = internalGetHttpPorts(); result.httpPorts_.makeImmutable(); @@ -454,38 +478,39 @@ public com.google.cloud.dataproc.v1.EndpointConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.EndpointConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.EndpointConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.EndpointConfig) other); } else { super.mergeFrom(other); return this; @@ -494,8 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.dataproc.v1.EndpointConfig other) { if (other == com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance()) return this; - internalGetMutableHttpPorts().mergeFrom( - other.internalGetHttpPorts()); + internalGetMutableHttpPorts().mergeFrom(other.internalGetHttpPorts()); if (other.getEnableHttpPortAccess() != false) { setEnableHttpPortAccess(other.getEnableHttpPortAccess()); } @@ -525,25 +549,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.MapEntry - httpPorts__ = input.readMessage( - HttpPortsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableHttpPorts().getMutableMap().put( - httpPorts__.getKey(), httpPorts__.getValue()); - break; - } // case 10 - case 16: { - enableHttpPortAccess_ = input.readBool(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.MapEntry httpPorts__ = + input.readMessage( + HttpPortsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableHttpPorts() + .getMutableMap() + .put(httpPorts__.getKey(), httpPorts__.getValue()); + break; + } // case 10 + case 16: + { + enableHttpPortAccess_ = input.readBool(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -553,24 +582,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> httpPorts_; + private com.google.protobuf.MapField httpPorts_; + private com.google.protobuf.MapField - internalGetHttpPorts() { + internalGetHttpPorts() { if (httpPorts_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HttpPortsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(HttpPortsDefaultEntryHolder.defaultEntry); } return httpPorts_; } + private com.google.protobuf.MapField - internalGetMutableHttpPorts() { - onChanged();; + internalGetMutableHttpPorts() { + onChanged(); + ; if (httpPorts_ == null) { - httpPorts_ = com.google.protobuf.MapField.newMapField( - HttpPortsDefaultEntryHolder.defaultEntry); + httpPorts_ = + com.google.protobuf.MapField.newMapField(HttpPortsDefaultEntryHolder.defaultEntry); } if (!httpPorts_.isMutable()) { httpPorts_ = httpPorts_.copy(); @@ -582,74 +613,81 @@ public int getHttpPortsCount() { return internalGetHttpPorts().getMap().size(); } /** + * + * *
      * Output only. The map of port descriptions to URLs. Will only be populated
      * if enable_http_port_access is true.
      * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsHttpPorts( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsHttpPorts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetHttpPorts().getMap().containsKey(key); } - /** - * Use {@link #getHttpPortsMap()} instead. - */ + /** Use {@link #getHttpPortsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHttpPorts() { return getHttpPortsMap(); } /** + * + * *
      * Output only. The map of port descriptions to URLs. Will only be populated
      * if enable_http_port_access is true.
      * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.Map getHttpPortsMap() { return internalGetHttpPorts().getMap(); } /** + * + * *
      * Output only. The map of port descriptions to URLs. Will only be populated
      * if enable_http_port_access is true.
      * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.lang.String getHttpPortsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetHttpPorts().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetHttpPorts().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Output only. The map of port descriptions to URLs. Will only be populated
      * if enable_http_port_access is true.
      * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - - public java.lang.String getHttpPortsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetHttpPorts().getMap(); + public java.lang.String getHttpPortsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetHttpPorts().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -657,78 +695,81 @@ public java.lang.String getHttpPortsOrThrow( } public Builder clearHttpPorts() { - internalGetMutableHttpPorts().getMutableMap() - .clear(); + internalGetMutableHttpPorts().getMutableMap().clear(); return this; } /** + * + * *
      * Output only. The map of port descriptions to URLs. Will only be populated
      * if enable_http_port_access is true.
      * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - public Builder removeHttpPorts( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableHttpPorts().getMutableMap() - .remove(key); + public Builder removeHttpPorts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableHttpPorts().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableHttpPorts() { + public java.util.Map getMutableHttpPorts() { return internalGetMutableHttpPorts().getMutableMap(); } /** + * + * *
      * Output only. The map of port descriptions to URLs. Will only be populated
      * if enable_http_port_access is true.
      * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putHttpPorts( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putHttpPorts(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"); + } - internalGetMutableHttpPorts().getMutableMap() - .put(key, value); + internalGetMutableHttpPorts().getMutableMap().put(key, value); return this; } /** + * + * *
      * Output only. The map of port descriptions to URLs. Will only be populated
      * if enable_http_port_access is true.
      * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - public Builder putAllHttpPorts( - java.util.Map values) { - internalGetMutableHttpPorts().getMutableMap() - .putAll(values); + public Builder putAllHttpPorts(java.util.Map values) { + internalGetMutableHttpPorts().getMutableMap().putAll(values); return this; } - private boolean enableHttpPortAccess_ ; + private boolean enableHttpPortAccess_; /** + * + * *
      * Optional. If true, enable http access to specific ports on the cluster
      * from external sources. Defaults to false.
      * 
* * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableHttpPortAccess. */ @java.lang.Override @@ -736,39 +777,45 @@ public boolean getEnableHttpPortAccess() { return enableHttpPortAccess_; } /** + * + * *
      * Optional. If true, enable http access to specific ports on the cluster
      * from external sources. Defaults to false.
      * 
* * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The enableHttpPortAccess to set. * @return This builder for chaining. */ public Builder setEnableHttpPortAccess(boolean value) { - + enableHttpPortAccess_ = value; onChanged(); return this; } /** + * + * *
      * Optional. If true, enable http access to specific ports on the cluster
      * from external sources. Defaults to false.
      * 
* * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEnableHttpPortAccess() { - + enableHttpPortAccess_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -778,12 +825,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.EndpointConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.EndpointConfig) private static final com.google.cloud.dataproc.v1.EndpointConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.EndpointConfig(); } @@ -792,27 +839,27 @@ public static com.google.cloud.dataproc.v1.EndpointConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EndpointConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndpointConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -827,6 +874,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.EndpointConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java similarity index 58% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java index 98168574bb77..1facc5b83166 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java @@ -1,80 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface EndpointConfigOrBuilder extends +public interface EndpointConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.EndpointConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The map of port descriptions to URLs. Will only be populated
    * if enable_http_port_access is true.
    * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getHttpPortsCount(); /** + * + * *
    * Output only. The map of port descriptions to URLs. Will only be populated
    * if enable_http_port_access is true.
    * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - boolean containsHttpPorts( - java.lang.String key); - /** - * Use {@link #getHttpPortsMap()} instead. + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ + boolean containsHttpPorts(java.lang.String key); + /** Use {@link #getHttpPortsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getHttpPorts(); + java.util.Map getHttpPorts(); /** + * + * *
    * Output only. The map of port descriptions to URLs. Will only be populated
    * if enable_http_port_access is true.
    * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.Map - getHttpPortsMap(); + java.util.Map getHttpPortsMap(); /** + * + * *
    * Output only. The map of port descriptions to URLs. Will only be populated
    * if enable_http_port_access is true.
    * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ /* nullable */ -java.lang.String getHttpPortsOrDefault( + java.lang.String getHttpPortsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Output only. The map of port descriptions to URLs. Will only be populated
    * if enable_http_port_access is true.
    * 
* - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - java.lang.String getHttpPortsOrThrow( - java.lang.String key); + java.lang.String getHttpPortsOrThrow(java.lang.String key); /** + * + * *
    * Optional. If true, enable http access to specific ports on the cluster
    * from external sources. Defaults to false.
    * 
* * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableHttpPortAccess. */ boolean getEnableHttpPortAccess(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java similarity index 60% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java index 59ccc6336fd0..531a9b8831da 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java @@ -1,60 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Environment configuration for a workload.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.EnvironmentConfig} */ -public final class EnvironmentConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EnvironmentConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.EnvironmentConfig) EnvironmentConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EnvironmentConfig.newBuilder() to construct. private EnvironmentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EnvironmentConfig() { - } + + private EnvironmentConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EnvironmentConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.EnvironmentConfig.class, com.google.cloud.dataproc.v1.EnvironmentConfig.Builder.class); + com.google.cloud.dataproc.v1.EnvironmentConfig.class, + com.google.cloud.dataproc.v1.EnvironmentConfig.Builder.class); } public static final int EXECUTION_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.dataproc.v1.ExecutionConfig executionConfig_; /** + * + * *
    * Optional. Execution configuration for a workload.
    * 
* - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the executionConfig field is set. */ @java.lang.Override @@ -62,23 +85,34 @@ public boolean hasExecutionConfig() { return executionConfig_ != null; } /** + * + * *
    * Optional. Execution configuration for a workload.
    * 
* - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The executionConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.ExecutionConfig getExecutionConfig() { - return executionConfig_ == null ? com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance() : executionConfig_; + return executionConfig_ == null + ? com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance() + : executionConfig_; } /** + * + * *
    * Optional. Execution configuration for a workload.
    * 
* - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder getExecutionConfigOrBuilder() { @@ -88,11 +122,16 @@ public com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder getExecutionConfigO public static final int PERIPHERALS_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.PeripheralsConfig peripheralsConfig_; /** + * + * *
    * Optional. Peripherals configuration that workload has access to.
    * 
* - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the peripheralsConfig field is set. */ @java.lang.Override @@ -100,23 +139,34 @@ public boolean hasPeripheralsConfig() { return peripheralsConfig_ != null; } /** + * + * *
    * Optional. Peripherals configuration that workload has access to.
    * 
* - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The peripheralsConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.PeripheralsConfig getPeripheralsConfig() { - return peripheralsConfig_ == null ? com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance() : peripheralsConfig_; + return peripheralsConfig_ == null + ? com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance() + : peripheralsConfig_; } /** + * + * *
    * Optional. Peripherals configuration that workload has access to.
    * 
* - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder getPeripheralsConfigOrBuilder() { @@ -124,6 +174,7 @@ public com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder getPeripheralsCon } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,8 +186,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (executionConfig_ != null) { output.writeMessage(1, getExecutionConfig()); } @@ -153,12 +203,10 @@ public int getSerializedSize() { size = 0; if (executionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getExecutionConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExecutionConfig()); } if (peripheralsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPeripheralsConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPeripheralsConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -168,22 +216,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.dataproc.v1.EnvironmentConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.EnvironmentConfig other = (com.google.cloud.dataproc.v1.EnvironmentConfig) obj; + com.google.cloud.dataproc.v1.EnvironmentConfig other = + (com.google.cloud.dataproc.v1.EnvironmentConfig) obj; if (hasExecutionConfig() != other.hasExecutionConfig()) return false; if (hasExecutionConfig()) { - if (!getExecutionConfig() - .equals(other.getExecutionConfig())) return false; + if (!getExecutionConfig().equals(other.getExecutionConfig())) return false; } if (hasPeripheralsConfig() != other.hasPeripheralsConfig()) return false; if (hasPeripheralsConfig()) { - if (!getPeripheralsConfig() - .equals(other.getPeripheralsConfig())) return false; + if (!getPeripheralsConfig().equals(other.getPeripheralsConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -209,130 +256,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.EnvironmentConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Environment configuration for a workload.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.EnvironmentConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.EnvironmentConfig) com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.EnvironmentConfig.class, com.google.cloud.dataproc.v1.EnvironmentConfig.Builder.class); + com.google.cloud.dataproc.v1.EnvironmentConfig.class, + com.google.cloud.dataproc.v1.EnvironmentConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.EnvironmentConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -352,9 +405,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; } @java.lang.Override @@ -373,7 +426,8 @@ public com.google.cloud.dataproc.v1.EnvironmentConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.EnvironmentConfig buildPartial() { - com.google.cloud.dataproc.v1.EnvironmentConfig result = new com.google.cloud.dataproc.v1.EnvironmentConfig(this); + com.google.cloud.dataproc.v1.EnvironmentConfig result = + new com.google.cloud.dataproc.v1.EnvironmentConfig(this); if (executionConfigBuilder_ == null) { result.executionConfig_ = executionConfig_; } else { @@ -392,38 +446,39 @@ public com.google.cloud.dataproc.v1.EnvironmentConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.EnvironmentConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.EnvironmentConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.EnvironmentConfig) other); } else { super.mergeFrom(other); return this; @@ -464,26 +519,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getExecutionConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - input.readMessage( - getPeripheralsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getExecutionConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage( + getPeripheralsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -496,39 +551,58 @@ public Builder mergeFrom( private com.google.cloud.dataproc.v1.ExecutionConfig executionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ExecutionConfig, com.google.cloud.dataproc.v1.ExecutionConfig.Builder, com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder> executionConfigBuilder_; + com.google.cloud.dataproc.v1.ExecutionConfig, + com.google.cloud.dataproc.v1.ExecutionConfig.Builder, + com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder> + executionConfigBuilder_; /** + * + * *
      * Optional. Execution configuration for a workload.
      * 
* - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the executionConfig field is set. */ public boolean hasExecutionConfig() { return executionConfigBuilder_ != null || executionConfig_ != null; } /** + * + * *
      * Optional. Execution configuration for a workload.
      * 
* - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The executionConfig. */ public com.google.cloud.dataproc.v1.ExecutionConfig getExecutionConfig() { if (executionConfigBuilder_ == null) { - return executionConfig_ == null ? com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance() : executionConfig_; + return executionConfig_ == null + ? com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance() + : executionConfig_; } else { return executionConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Execution configuration for a workload.
      * 
* - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setExecutionConfig(com.google.cloud.dataproc.v1.ExecutionConfig value) { if (executionConfigBuilder_ == null) { @@ -544,11 +618,15 @@ public Builder setExecutionConfig(com.google.cloud.dataproc.v1.ExecutionConfig v return this; } /** + * + * *
      * Optional. Execution configuration for a workload.
      * 
* - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setExecutionConfig( com.google.cloud.dataproc.v1.ExecutionConfig.Builder builderForValue) { @@ -562,17 +640,23 @@ public Builder setExecutionConfig( return this; } /** + * + * *
      * Optional. Execution configuration for a workload.
      * 
* - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeExecutionConfig(com.google.cloud.dataproc.v1.ExecutionConfig value) { if (executionConfigBuilder_ == null) { if (executionConfig_ != null) { executionConfig_ = - com.google.cloud.dataproc.v1.ExecutionConfig.newBuilder(executionConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.ExecutionConfig.newBuilder(executionConfig_) + .mergeFrom(value) + .buildPartial(); } else { executionConfig_ = value; } @@ -584,11 +668,15 @@ public Builder mergeExecutionConfig(com.google.cloud.dataproc.v1.ExecutionConfig return this; } /** + * + * *
      * Optional. Execution configuration for a workload.
      * 
* - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearExecutionConfig() { if (executionConfigBuilder_ == null) { @@ -602,48 +690,64 @@ public Builder clearExecutionConfig() { return this; } /** + * + * *
      * Optional. Execution configuration for a workload.
      * 
* - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.ExecutionConfig.Builder getExecutionConfigBuilder() { - + onChanged(); return getExecutionConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Execution configuration for a workload.
      * 
* - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder getExecutionConfigOrBuilder() { if (executionConfigBuilder_ != null) { return executionConfigBuilder_.getMessageOrBuilder(); } else { - return executionConfig_ == null ? - com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance() : executionConfig_; + return executionConfig_ == null + ? com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance() + : executionConfig_; } } /** + * + * *
      * Optional. Execution configuration for a workload.
      * 
* - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ExecutionConfig, com.google.cloud.dataproc.v1.ExecutionConfig.Builder, com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder> + com.google.cloud.dataproc.v1.ExecutionConfig, + com.google.cloud.dataproc.v1.ExecutionConfig.Builder, + com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder> getExecutionConfigFieldBuilder() { if (executionConfigBuilder_ == null) { - executionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ExecutionConfig, com.google.cloud.dataproc.v1.ExecutionConfig.Builder, com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder>( - getExecutionConfig(), - getParentForChildren(), - isClean()); + executionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ExecutionConfig, + com.google.cloud.dataproc.v1.ExecutionConfig.Builder, + com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder>( + getExecutionConfig(), getParentForChildren(), isClean()); executionConfig_ = null; } return executionConfigBuilder_; @@ -651,39 +755,58 @@ public com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder getExecutionConfigO private com.google.cloud.dataproc.v1.PeripheralsConfig peripheralsConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PeripheralsConfig, com.google.cloud.dataproc.v1.PeripheralsConfig.Builder, com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder> peripheralsConfigBuilder_; + com.google.cloud.dataproc.v1.PeripheralsConfig, + com.google.cloud.dataproc.v1.PeripheralsConfig.Builder, + com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder> + peripheralsConfigBuilder_; /** + * + * *
      * Optional. Peripherals configuration that workload has access to.
      * 
* - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the peripheralsConfig field is set. */ public boolean hasPeripheralsConfig() { return peripheralsConfigBuilder_ != null || peripheralsConfig_ != null; } /** + * + * *
      * Optional. Peripherals configuration that workload has access to.
      * 
* - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The peripheralsConfig. */ public com.google.cloud.dataproc.v1.PeripheralsConfig getPeripheralsConfig() { if (peripheralsConfigBuilder_ == null) { - return peripheralsConfig_ == null ? com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance() : peripheralsConfig_; + return peripheralsConfig_ == null + ? com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance() + : peripheralsConfig_; } else { return peripheralsConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Peripherals configuration that workload has access to.
      * 
* - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPeripheralsConfig(com.google.cloud.dataproc.v1.PeripheralsConfig value) { if (peripheralsConfigBuilder_ == null) { @@ -699,11 +822,15 @@ public Builder setPeripheralsConfig(com.google.cloud.dataproc.v1.PeripheralsConf return this; } /** + * + * *
      * Optional. Peripherals configuration that workload has access to.
      * 
* - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPeripheralsConfig( com.google.cloud.dataproc.v1.PeripheralsConfig.Builder builderForValue) { @@ -717,17 +844,23 @@ public Builder setPeripheralsConfig( return this; } /** + * + * *
      * Optional. Peripherals configuration that workload has access to.
      * 
* - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePeripheralsConfig(com.google.cloud.dataproc.v1.PeripheralsConfig value) { if (peripheralsConfigBuilder_ == null) { if (peripheralsConfig_ != null) { peripheralsConfig_ = - com.google.cloud.dataproc.v1.PeripheralsConfig.newBuilder(peripheralsConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.PeripheralsConfig.newBuilder(peripheralsConfig_) + .mergeFrom(value) + .buildPartial(); } else { peripheralsConfig_ = value; } @@ -739,11 +872,15 @@ public Builder mergePeripheralsConfig(com.google.cloud.dataproc.v1.PeripheralsCo return this; } /** + * + * *
      * Optional. Peripherals configuration that workload has access to.
      * 
* - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPeripheralsConfig() { if (peripheralsConfigBuilder_ == null) { @@ -757,55 +894,71 @@ public Builder clearPeripheralsConfig() { return this; } /** + * + * *
      * Optional. Peripherals configuration that workload has access to.
      * 
* - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.PeripheralsConfig.Builder getPeripheralsConfigBuilder() { - + onChanged(); return getPeripheralsConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Peripherals configuration that workload has access to.
      * 
* - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder getPeripheralsConfigOrBuilder() { if (peripheralsConfigBuilder_ != null) { return peripheralsConfigBuilder_.getMessageOrBuilder(); } else { - return peripheralsConfig_ == null ? - com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance() : peripheralsConfig_; + return peripheralsConfig_ == null + ? com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance() + : peripheralsConfig_; } } /** + * + * *
      * Optional. Peripherals configuration that workload has access to.
      * 
* - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PeripheralsConfig, com.google.cloud.dataproc.v1.PeripheralsConfig.Builder, com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder> + com.google.cloud.dataproc.v1.PeripheralsConfig, + com.google.cloud.dataproc.v1.PeripheralsConfig.Builder, + com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder> getPeripheralsConfigFieldBuilder() { if (peripheralsConfigBuilder_ == null) { - peripheralsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PeripheralsConfig, com.google.cloud.dataproc.v1.PeripheralsConfig.Builder, com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder>( - getPeripheralsConfig(), - getParentForChildren(), - isClean()); + peripheralsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PeripheralsConfig, + com.google.cloud.dataproc.v1.PeripheralsConfig.Builder, + com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder>( + getPeripheralsConfig(), getParentForChildren(), isClean()); peripheralsConfig_ = null; } return peripheralsConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -815,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.EnvironmentConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.EnvironmentConfig) private static final com.google.cloud.dataproc.v1.EnvironmentConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.EnvironmentConfig(); } @@ -829,27 +982,27 @@ public static com.google.cloud.dataproc.v1.EnvironmentConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnvironmentConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnvironmentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -864,6 +1017,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.EnvironmentConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java new file mode 100644 index 000000000000..3ffbd5d84964 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +public interface EnvironmentConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.EnvironmentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Execution configuration for a workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the executionConfig field is set. + */ + boolean hasExecutionConfig(); + /** + * + * + *
+   * Optional. Execution configuration for a workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executionConfig. + */ + com.google.cloud.dataproc.v1.ExecutionConfig getExecutionConfig(); + /** + * + * + *
+   * Optional. Execution configuration for a workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder getExecutionConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Peripherals configuration that workload has access to.
+   * 
+ * + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the peripheralsConfig field is set. + */ + boolean hasPeripheralsConfig(); + /** + * + * + *
+   * Optional. Peripherals configuration that workload has access to.
+   * 
+ * + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The peripheralsConfig. + */ + com.google.cloud.dataproc.v1.PeripheralsConfig getPeripheralsConfig(); + /** + * + * + *
+   * Optional. Peripherals configuration that workload has access to.
+   * 
+ * + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder getPeripheralsConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java similarity index 72% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java index db1afaf571d8..a3d13e0b0da1 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Execution configuration for a workload.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ExecutionConfig} */ -public final class ExecutionConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExecutionConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ExecutionConfig) ExecutionConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExecutionConfig.newBuilder() to construct. private ExecutionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExecutionConfig() { serviceAccount_ = ""; networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -27,38 +45,42 @@ private ExecutionConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExecutionConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ExecutionConfig.class, com.google.cloud.dataproc.v1.ExecutionConfig.Builder.class); + com.google.cloud.dataproc.v1.ExecutionConfig.class, + com.google.cloud.dataproc.v1.ExecutionConfig.Builder.class); } private int networkCase_ = 0; private java.lang.Object network_; + public enum NetworkCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NETWORK_URI(4), SUBNETWORK_URI(5), NETWORK_NOT_SET(0); private final int value; + private NetworkCase(int value) { this.value = value; } @@ -74,31 +96,37 @@ public static NetworkCase valueOf(int value) { public static NetworkCase forNumber(int value) { switch (value) { - case 4: return NETWORK_URI; - case 5: return SUBNETWORK_URI; - case 0: return NETWORK_NOT_SET; - default: return null; + case 4: + return NETWORK_URI; + case 5: + return SUBNETWORK_URI; + case 0: + return NETWORK_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public NetworkCase - getNetworkCase() { - return NetworkCase.forNumber( - networkCase_); + public NetworkCase getNetworkCase() { + return NetworkCase.forNumber(networkCase_); } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; private volatile java.lang.Object serviceAccount_; /** + * + * *
    * Optional. Service account that used to execute workload.
    * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccount. */ @java.lang.Override @@ -107,29 +135,29 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** + * + * *
    * Optional. Service account that used to execute workload.
    * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -139,22 +167,28 @@ public java.lang.String getServiceAccount() { public static final int NETWORK_URI_FIELD_NUMBER = 4; /** + * + * *
    * Optional. Network URI to connect workload to.
    * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the networkUri field is set. */ public boolean hasNetworkUri() { return networkCase_ == 4; } /** + * + * *
    * Optional. Network URI to connect workload to.
    * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The networkUri. */ public java.lang.String getNetworkUri() { @@ -165,8 +199,7 @@ public java.lang.String getNetworkUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (networkCase_ == 4) { network_ = s; @@ -175,23 +208,24 @@ public java.lang.String getNetworkUri() { } } /** + * + * *
    * Optional. Network URI to connect workload to.
    * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for networkUri. */ - public com.google.protobuf.ByteString - getNetworkUriBytes() { + public com.google.protobuf.ByteString getNetworkUriBytes() { java.lang.Object ref = ""; if (networkCase_ == 4) { 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); if (networkCase_ == 4) { network_ = b; } @@ -203,22 +237,28 @@ public java.lang.String getNetworkUri() { public static final int SUBNETWORK_URI_FIELD_NUMBER = 5; /** + * + * *
    * Optional. Subnetwork URI to connect workload to.
    * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the subnetworkUri field is set. */ public boolean hasSubnetworkUri() { return networkCase_ == 5; } /** + * + * *
    * Optional. Subnetwork URI to connect workload to.
    * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The subnetworkUri. */ public java.lang.String getSubnetworkUri() { @@ -229,8 +269,7 @@ public java.lang.String getSubnetworkUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (networkCase_ == 5) { network_ = s; @@ -239,23 +278,24 @@ public java.lang.String getSubnetworkUri() { } } /** + * + * *
    * Optional. Subnetwork URI to connect workload to.
    * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for subnetworkUri. */ - public com.google.protobuf.ByteString - getSubnetworkUriBytes() { + public com.google.protobuf.ByteString getSubnetworkUriBytes() { java.lang.Object ref = ""; if (networkCase_ == 5) { 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); if (networkCase_ == 5) { network_ = b; } @@ -268,34 +308,42 @@ public java.lang.String getSubnetworkUri() { public static final int NETWORK_TAGS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList networkTags_; /** + * + * *
    * Optional. Tags used for network traffic control.
    * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the networkTags. */ - public com.google.protobuf.ProtocolStringList - getNetworkTagsList() { + public com.google.protobuf.ProtocolStringList getNetworkTagsList() { return networkTags_; } /** + * + * *
    * Optional. Tags used for network traffic control.
    * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of networkTags. */ public int getNetworkTagsCount() { return networkTags_.size(); } /** + * + * *
    * Optional. Tags used for network traffic control.
    * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The networkTags at the given index. */ @@ -303,27 +351,32 @@ public java.lang.String getNetworkTags(int index) { return networkTags_.get(index); } /** + * + * *
    * Optional. Tags used for network traffic control.
    * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ - public com.google.protobuf.ByteString - getNetworkTagsBytes(int index) { + public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { return networkTags_.getByteString(index); } public static final int KMS_KEY_FIELD_NUMBER = 7; private volatile java.lang.Object kmsKey_; /** + * + * *
    * Optional. The Cloud KMS key to use for encryption.
    * 
* * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kmsKey. */ @java.lang.Override @@ -332,29 +385,29 @@ public java.lang.String getKmsKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; } } /** + * + * *
    * Optional. The Cloud KMS key to use for encryption.
    * 
* * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for kmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyBytes() { + public com.google.protobuf.ByteString getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKey_ = b; return b; } else { @@ -363,6 +416,7 @@ public java.lang.String getKmsKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -374,8 +428,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); } @@ -428,28 +481,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.dataproc.v1.ExecutionConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ExecutionConfig other = (com.google.cloud.dataproc.v1.ExecutionConfig) obj; + com.google.cloud.dataproc.v1.ExecutionConfig other = + (com.google.cloud.dataproc.v1.ExecutionConfig) obj; - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; - if (!getNetworkTagsList() - .equals(other.getNetworkTagsList())) return false; - if (!getKmsKey() - .equals(other.getKmsKey())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false; + if (!getKmsKey().equals(other.getKmsKey())) return false; if (!getNetworkCase().equals(other.getNetworkCase())) return false; switch (networkCase_) { case 4: - if (!getNetworkUri() - .equals(other.getNetworkUri())) return false; + if (!getNetworkUri().equals(other.getNetworkUri())) return false; break; case 5: - if (!getSubnetworkUri() - .equals(other.getSubnetworkUri())) return false; + if (!getSubnetworkUri().equals(other.getSubnetworkUri())) return false; break; case 0: default: @@ -490,130 +539,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ExecutionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ExecutionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ExecutionConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.ExecutionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Execution configuration for a workload.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ExecutionConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ExecutionConfig) com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ExecutionConfig.class, com.google.cloud.dataproc.v1.ExecutionConfig.Builder.class); + com.google.cloud.dataproc.v1.ExecutionConfig.class, + com.google.cloud.dataproc.v1.ExecutionConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ExecutionConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -629,9 +684,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; } @java.lang.Override @@ -650,7 +705,8 @@ public com.google.cloud.dataproc.v1.ExecutionConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.ExecutionConfig buildPartial() { - com.google.cloud.dataproc.v1.ExecutionConfig result = new com.google.cloud.dataproc.v1.ExecutionConfig(this); + com.google.cloud.dataproc.v1.ExecutionConfig result = + new com.google.cloud.dataproc.v1.ExecutionConfig(this); int from_bitField0_ = bitField0_; result.serviceAccount_ = serviceAccount_; if (networkCase_ == 4) { @@ -674,38 +730,39 @@ public com.google.cloud.dataproc.v1.ExecutionConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ExecutionConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.ExecutionConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.ExecutionConfig) other); } else { super.mergeFrom(other); return this; @@ -733,21 +790,24 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ExecutionConfig other) { onChanged(); } switch (other.getNetworkCase()) { - case NETWORK_URI: { - networkCase_ = 4; - network_ = other.network_; - onChanged(); - break; - } - case SUBNETWORK_URI: { - networkCase_ = 5; - network_ = other.network_; - onChanged(); - break; - } - case NETWORK_NOT_SET: { - break; - } + case NETWORK_URI: + { + networkCase_ = 4; + network_ = other.network_; + onChanged(); + break; + } + case SUBNETWORK_URI: + { + networkCase_ = 5; + network_ = other.network_; + onChanged(); + break; + } + case NETWORK_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -775,40 +835,46 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - serviceAccount_ = input.readStringRequireUtf8(); + case 18: + { + serviceAccount_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - networkCase_ = 4; - network_ = s; - break; - } // case 34 - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - networkCase_ = 5; - network_ = s; - break; - } // case 42 - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - ensureNetworkTagsIsMutable(); - networkTags_.add(s); - break; - } // case 50 - case 58: { - kmsKey_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + networkCase_ = 4; + network_ = s; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + networkCase_ = 5; + network_ = s; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNetworkTagsIsMutable(); + networkTags_.add(s); + break; + } // case 50 + case 58: + { + kmsKey_ = input.readStringRequireUtf8(); - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -818,12 +884,12 @@ public Builder mergeFrom( } // finally return this; } + private int networkCase_ = 0; private java.lang.Object network_; - public NetworkCase - getNetworkCase() { - return NetworkCase.forNumber( - networkCase_); + + public NetworkCase getNetworkCase() { + return NetworkCase.forNumber(networkCase_); } public Builder clearNetwork() { @@ -837,18 +903,20 @@ public Builder clearNetwork() { private java.lang.Object serviceAccount_ = ""; /** + * + * *
      * Optional. Service account that used to execute workload.
      * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -857,20 +925,21 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Optional. Service account that used to execute workload.
      * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -878,65 +947,75 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Optional. Service account that used to execute workload.
      * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount( - java.lang.String value) { + public Builder setServiceAccount(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccount_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Service account that used to execute workload.
      * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearServiceAccount() { - + serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** + * + * *
      * Optional. Service account that used to execute workload.
      * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Network URI to connect workload to.
      * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the networkUri field is set. */ @java.lang.Override @@ -944,11 +1023,14 @@ public boolean hasNetworkUri() { return networkCase_ == 4; } /** + * + * *
      * Optional. Network URI to connect workload to.
      * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The networkUri. */ @java.lang.Override @@ -958,8 +1040,7 @@ public java.lang.String getNetworkUri() { 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(); if (networkCase_ == 4) { network_ = s; @@ -970,24 +1051,25 @@ public java.lang.String getNetworkUri() { } } /** + * + * *
      * Optional. Network URI to connect workload to.
      * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for networkUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkUriBytes() { + public com.google.protobuf.ByteString getNetworkUriBytes() { java.lang.Object ref = ""; if (networkCase_ == 4) { 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); if (networkCase_ == 4) { network_ = b; } @@ -997,30 +1079,35 @@ public java.lang.String getNetworkUri() { } } /** + * + * *
      * Optional. Network URI to connect workload to.
      * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The networkUri to set. * @return This builder for chaining. */ - public Builder setNetworkUri( - java.lang.String value) { + public Builder setNetworkUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - networkCase_ = 4; + throw new NullPointerException(); + } + networkCase_ = 4; network_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Network URI to connect workload to.
      * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNetworkUri() { @@ -1032,20 +1119,22 @@ public Builder clearNetworkUri() { return this; } /** + * + * *
      * Optional. Network URI to connect workload to.
      * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for networkUri to set. * @return This builder for chaining. */ - public Builder setNetworkUriBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); networkCase_ = 4; network_ = value; onChanged(); @@ -1053,11 +1142,14 @@ public Builder setNetworkUriBytes( } /** + * + * *
      * Optional. Subnetwork URI to connect workload to.
      * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the subnetworkUri field is set. */ @java.lang.Override @@ -1065,11 +1157,14 @@ public boolean hasSubnetworkUri() { return networkCase_ == 5; } /** + * + * *
      * Optional. Subnetwork URI to connect workload to.
      * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The subnetworkUri. */ @java.lang.Override @@ -1079,8 +1174,7 @@ public java.lang.String getSubnetworkUri() { 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(); if (networkCase_ == 5) { network_ = s; @@ -1091,24 +1185,25 @@ public java.lang.String getSubnetworkUri() { } } /** + * + * *
      * Optional. Subnetwork URI to connect workload to.
      * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for subnetworkUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubnetworkUriBytes() { + public com.google.protobuf.ByteString getSubnetworkUriBytes() { java.lang.Object ref = ""; if (networkCase_ == 5) { 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); if (networkCase_ == 5) { network_ = b; } @@ -1118,30 +1213,35 @@ public java.lang.String getSubnetworkUri() { } } /** + * + * *
      * Optional. Subnetwork URI to connect workload to.
      * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The subnetworkUri to set. * @return This builder for chaining. */ - public Builder setSubnetworkUri( - java.lang.String value) { + public Builder setSubnetworkUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - networkCase_ = 5; + throw new NullPointerException(); + } + networkCase_ = 5; network_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Subnetwork URI to connect workload to.
      * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSubnetworkUri() { @@ -1153,62 +1253,74 @@ public Builder clearSubnetworkUri() { return this; } /** + * + * *
      * Optional. Subnetwork URI to connect workload to.
      * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for subnetworkUri to set. * @return This builder for chaining. */ - public Builder setSubnetworkUriBytes( - com.google.protobuf.ByteString value) { + public Builder setSubnetworkUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); networkCase_ = 5; network_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList networkTags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureNetworkTagsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { networkTags_ = new com.google.protobuf.LazyStringArrayList(networkTags_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. Tags used for network traffic control.
      * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the networkTags. */ - public com.google.protobuf.ProtocolStringList - getNetworkTagsList() { + public com.google.protobuf.ProtocolStringList getNetworkTagsList() { return networkTags_.getUnmodifiableView(); } /** + * + * *
      * Optional. Tags used for network traffic control.
      * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of networkTags. */ public int getNetworkTagsCount() { return networkTags_.size(); } /** + * + * *
      * Optional. Tags used for network traffic control.
      * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The networkTags at the given index. */ @@ -1216,80 +1328,90 @@ public java.lang.String getNetworkTags(int index) { return networkTags_.get(index); } /** + * + * *
      * Optional. Tags used for network traffic control.
      * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ - public com.google.protobuf.ByteString - getNetworkTagsBytes(int index) { + public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { return networkTags_.getByteString(index); } /** + * + * *
      * Optional. Tags used for network traffic control.
      * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The networkTags to set. * @return This builder for chaining. */ - public Builder setNetworkTags( - int index, java.lang.String value) { + public Builder setNetworkTags(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNetworkTagsIsMutable(); + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); networkTags_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. Tags used for network traffic control.
      * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The networkTags to add. * @return This builder for chaining. */ - public Builder addNetworkTags( - java.lang.String value) { + public Builder addNetworkTags(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNetworkTagsIsMutable(); + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); networkTags_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. Tags used for network traffic control.
      * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The networkTags to add. * @return This builder for chaining. */ - public Builder addAllNetworkTags( - java.lang.Iterable values) { + public Builder addAllNetworkTags(java.lang.Iterable values) { ensureNetworkTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, networkTags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkTags_); onChanged(); return this; } /** + * + * *
      * Optional. Tags used for network traffic control.
      * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNetworkTags() { @@ -1299,20 +1421,22 @@ public Builder clearNetworkTags() { return this; } /** + * + * *
      * Optional. Tags used for network traffic control.
      * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the networkTags to add. * @return This builder for chaining. */ - public Builder addNetworkTagsBytes( - com.google.protobuf.ByteString value) { + public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNetworkTagsIsMutable(); networkTags_.add(value); onChanged(); @@ -1321,18 +1445,20 @@ public Builder addNetworkTagsBytes( private java.lang.Object kmsKey_ = ""; /** + * + * *
      * Optional. The Cloud KMS key to use for encryption.
      * 
* * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kmsKey. */ public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; @@ -1341,20 +1467,21 @@ public java.lang.String getKmsKey() { } } /** + * + * *
      * Optional. The Cloud KMS key to use for encryption.
      * 
* * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for kmsKey. */ - public com.google.protobuf.ByteString - getKmsKeyBytes() { + public com.google.protobuf.ByteString getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKey_ = b; return b; } else { @@ -1362,61 +1489,68 @@ public java.lang.String getKmsKey() { } } /** + * + * *
      * Optional. The Cloud KMS key to use for encryption.
      * 
* * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKey( - java.lang.String value) { + public Builder setKmsKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKey_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Cloud KMS key to use for encryption.
      * 
* * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearKmsKey() { - + kmsKey_ = getDefaultInstance().getKmsKey(); onChanged(); return this; } /** + * + * *
      * Optional. The Cloud KMS key to use for encryption.
      * 
* * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKey_ = 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); } @@ -1426,12 +1560,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ExecutionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ExecutionConfig) private static final com.google.cloud.dataproc.v1.ExecutionConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ExecutionConfig(); } @@ -1440,27 +1574,27 @@ public static com.google.cloud.dataproc.v1.ExecutionConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1475,6 +1609,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ExecutionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java similarity index 76% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java index 20a8dc429395..51aab728f4ca 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java @@ -1,150 +1,202 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; -public interface ExecutionConfigOrBuilder extends +public interface ExecutionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ExecutionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Service account that used to execute workload.
    * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
    * Optional. Service account that used to execute workload.
    * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
    * Optional. Network URI to connect workload to.
    * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the networkUri field is set. */ boolean hasNetworkUri(); /** + * + * *
    * Optional. Network URI to connect workload to.
    * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The networkUri. */ java.lang.String getNetworkUri(); /** + * + * *
    * Optional. Network URI to connect workload to.
    * 
* * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for networkUri. */ - com.google.protobuf.ByteString - getNetworkUriBytes(); + com.google.protobuf.ByteString getNetworkUriBytes(); /** + * + * *
    * Optional. Subnetwork URI to connect workload to.
    * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the subnetworkUri field is set. */ boolean hasSubnetworkUri(); /** + * + * *
    * Optional. Subnetwork URI to connect workload to.
    * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The subnetworkUri. */ java.lang.String getSubnetworkUri(); /** + * + * *
    * Optional. Subnetwork URI to connect workload to.
    * 
* * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for subnetworkUri. */ - com.google.protobuf.ByteString - getSubnetworkUriBytes(); + com.google.protobuf.ByteString getSubnetworkUriBytes(); /** + * + * *
    * Optional. Tags used for network traffic control.
    * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the networkTags. */ - java.util.List - getNetworkTagsList(); + java.util.List getNetworkTagsList(); /** + * + * *
    * Optional. Tags used for network traffic control.
    * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of networkTags. */ int getNetworkTagsCount(); /** + * + * *
    * Optional. Tags used for network traffic control.
    * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The networkTags at the given index. */ java.lang.String getNetworkTags(int index); /** + * + * *
    * Optional. Tags used for network traffic control.
    * 
* * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ - com.google.protobuf.ByteString - getNetworkTagsBytes(int index); + com.google.protobuf.ByteString getNetworkTagsBytes(int index); /** + * + * *
    * Optional. The Cloud KMS key to use for encryption.
    * 
* * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kmsKey. */ java.lang.String getKmsKey(); /** + * + * *
    * Optional. The Cloud KMS key to use for encryption.
    * 
* * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for kmsKey. */ - com.google.protobuf.ByteString - getKmsKeyBytes(); + com.google.protobuf.ByteString getKmsKeyBytes(); public com.google.cloud.dataproc.v1.ExecutionConfig.NetworkCase getNetworkCase(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java similarity index 68% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java index 9173cb5ea8e1..b6a86610f189 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Actions in response to failure of a resource associated with a cluster.
  * 
* * Protobuf enum {@code google.cloud.dataproc.v1.FailureAction} */ -public enum FailureAction - implements com.google.protobuf.ProtocolMessageEnum { +public enum FailureAction implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * When FailureAction is unspecified, failure action defaults to NO_ACTION.
    * 
@@ -21,6 +39,8 @@ public enum FailureAction */ FAILURE_ACTION_UNSPECIFIED(0), /** + * + * *
    * Take no action on failure to create a cluster resource. NO_ACTION is the
    * default.
@@ -30,6 +50,8 @@ public enum FailureAction
    */
   NO_ACTION(1),
   /**
+   *
+   *
    * 
    * Delete the failed cluster resource.
    * 
@@ -41,6 +63,8 @@ public enum FailureAction ; /** + * + * *
    * When FailureAction is unspecified, failure action defaults to NO_ACTION.
    * 
@@ -49,6 +73,8 @@ public enum FailureAction */ public static final int FAILURE_ACTION_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Take no action on failure to create a cluster resource. NO_ACTION is the
    * default.
@@ -58,6 +84,8 @@ public enum FailureAction
    */
   public static final int NO_ACTION_VALUE = 1;
   /**
+   *
+   *
    * 
    * Delete the failed cluster resource.
    * 
@@ -66,7 +94,6 @@ public enum FailureAction */ public static final int DELETE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -91,49 +118,49 @@ public static FailureAction valueOf(int value) { */ public static FailureAction forNumber(int value) { switch (value) { - case 0: return FAILURE_ACTION_UNSPECIFIED; - case 1: return NO_ACTION; - case 2: return DELETE; - default: return null; + case 0: + return FAILURE_ACTION_UNSPECIFIED; + case 1: + return NO_ACTION; + case 2: + return DELETE; + 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< - FailureAction> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FailureAction findValueByNumber(int number) { - return FailureAction.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FailureAction findValueByNumber(int number) { + return FailureAction.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataproc.v1.SharedProto.getDescriptor().getEnumTypes().get(1); } private static final FailureAction[] VALUES = values(); - public static FailureAction valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static FailureAction 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; @@ -149,4 +176,3 @@ private FailureAction(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.FailureAction) } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java similarity index 71% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java index 585d1f2fb2bf..e15fdcbc7265 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Common config settings for resources of Compute Engine cluster
  * instances, applicable to all instances in the cluster.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.GceClusterConfig}
  */
-public final class GceClusterConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GceClusterConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GceClusterConfig)
     GceClusterConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GceClusterConfig.newBuilder() to construct.
   private GceClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GceClusterConfig() {
     zoneUri_ = "";
     networkUri_ = "";
@@ -32,42 +50,44 @@ private GceClusterConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GceClusterConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 5:
         return internalGetMetadata();
       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.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.GceClusterConfig.class, com.google.cloud.dataproc.v1.GceClusterConfig.Builder.class);
+            com.google.cloud.dataproc.v1.GceClusterConfig.class,
+            com.google.cloud.dataproc.v1.GceClusterConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * `PrivateIpv6GoogleAccess` controls whether and how Dataproc cluster nodes
    * can communicate with Google Services through gRPC over IPv6.
@@ -78,9 +98,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf enum {@code google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess}
    */
-  public enum PrivateIpv6GoogleAccess
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum PrivateIpv6GoogleAccess implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * If unspecified, Compute Engine default behavior will apply, which
      * is the same as
@@ -91,6 +112,8 @@ public enum PrivateIpv6GoogleAccess
      */
     PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Private access to and from Google Services configuration
      * inherited from the subnetwork configuration. This is the
@@ -101,6 +124,8 @@ public enum PrivateIpv6GoogleAccess
      */
     INHERIT_FROM_SUBNETWORK(1),
     /**
+     *
+     *
      * 
      * Enables outbound private IPv6 access to Google Services from the Dataproc
      * cluster.
@@ -110,6 +135,8 @@ public enum PrivateIpv6GoogleAccess
      */
     OUTBOUND(2),
     /**
+     *
+     *
      * 
      * Enables bidirectional private IPv6 access between Google Services and the
      * Dataproc cluster.
@@ -122,6 +149,8 @@ public enum PrivateIpv6GoogleAccess
     ;
 
     /**
+     *
+     *
      * 
      * If unspecified, Compute Engine default behavior will apply, which
      * is the same as
@@ -132,6 +161,8 @@ public enum PrivateIpv6GoogleAccess
      */
     public static final int PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Private access to and from Google Services configuration
      * inherited from the subnetwork configuration. This is the
@@ -142,6 +173,8 @@ public enum PrivateIpv6GoogleAccess
      */
     public static final int INHERIT_FROM_SUBNETWORK_VALUE = 1;
     /**
+     *
+     *
      * 
      * Enables outbound private IPv6 access to Google Services from the Dataproc
      * cluster.
@@ -151,6 +184,8 @@ public enum PrivateIpv6GoogleAccess
      */
     public static final int OUTBOUND_VALUE = 2;
     /**
+     *
+     *
      * 
      * Enables bidirectional private IPv6 access between Google Services and the
      * Dataproc cluster.
@@ -160,7 +195,6 @@ public enum PrivateIpv6GoogleAccess
      */
     public static final int BIDIRECTIONAL_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -185,11 +219,16 @@ public static PrivateIpv6GoogleAccess valueOf(int value) {
      */
     public static PrivateIpv6GoogleAccess forNumber(int value) {
       switch (value) {
-        case 0: return PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED;
-        case 1: return INHERIT_FROM_SUBNETWORK;
-        case 2: return OUTBOUND;
-        case 3: return BIDIRECTIONAL;
-        default: return null;
+        case 0:
+          return PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED;
+        case 1:
+          return INHERIT_FROM_SUBNETWORK;
+        case 2:
+          return OUTBOUND;
+        case 3:
+          return BIDIRECTIONAL;
+        default:
+          return null;
       }
     }
 
@@ -197,28 +236,28 @@ public static PrivateIpv6GoogleAccess forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        PrivateIpv6GoogleAccess> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public PrivateIpv6GoogleAccess findValueByNumber(int number) {
-              return PrivateIpv6GoogleAccess.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public PrivateIpv6GoogleAccess findValueByNumber(int number) {
+                return PrivateIpv6GoogleAccess.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.dataproc.v1.GceClusterConfig.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -227,8 +266,7 @@ public PrivateIpv6GoogleAccess findValueByNumber(int number) {
     public static PrivateIpv6GoogleAccess 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;
@@ -248,6 +286,8 @@ private PrivateIpv6GoogleAccess(int value) {
   public static final int ZONE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object zoneUri_;
   /**
+   *
+   *
    * 
    * Optional. The zone where the Compute Engine cluster will be located.
    * On a create request, it is required in the "global" region. If omitted
@@ -261,6 +301,7 @@ private PrivateIpv6GoogleAccess(int value) {
    * 
* * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The zoneUri. */ @java.lang.Override @@ -269,14 +310,15 @@ public java.lang.String getZoneUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zoneUri_ = s; return s; } } /** + * + * *
    * Optional. The zone where the Compute Engine cluster will be located.
    * On a create request, it is required in the "global" region. If omitted
@@ -290,16 +332,15 @@ public java.lang.String getZoneUri() {
    * 
* * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for zoneUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getZoneUriBytes() { + public com.google.protobuf.ByteString getZoneUriBytes() { java.lang.Object ref = zoneUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); zoneUri_ = b; return b; } else { @@ -310,6 +351,8 @@ public java.lang.String getZoneUri() { public static final int NETWORK_URI_FIELD_NUMBER = 2; private volatile java.lang.Object networkUri_; /** + * + * *
    * Optional. The Compute Engine network to be used for machine
    * communications. Cannot be specified with subnetwork_uri. If neither
@@ -324,6 +367,7 @@ public java.lang.String getZoneUri() {
    * 
* * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The networkUri. */ @java.lang.Override @@ -332,14 +376,15 @@ public java.lang.String getNetworkUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkUri_ = s; return s; } } /** + * + * *
    * Optional. The Compute Engine network to be used for machine
    * communications. Cannot be specified with subnetwork_uri. If neither
@@ -354,16 +399,15 @@ public java.lang.String getNetworkUri() {
    * 
* * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for networkUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkUriBytes() { + public com.google.protobuf.ByteString getNetworkUriBytes() { java.lang.Object ref = networkUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); networkUri_ = b; return b; } else { @@ -374,6 +418,8 @@ public java.lang.String getNetworkUri() { public static final int SUBNETWORK_URI_FIELD_NUMBER = 6; private volatile java.lang.Object subnetworkUri_; /** + * + * *
    * Optional. The Compute Engine subnetwork to be used for machine
    * communications. Cannot be specified with network_uri.
@@ -384,6 +430,7 @@ public java.lang.String getNetworkUri() {
    * 
* * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The subnetworkUri. */ @java.lang.Override @@ -392,14 +439,15 @@ public java.lang.String getSubnetworkUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetworkUri_ = s; return s; } } /** + * + * *
    * Optional. The Compute Engine subnetwork to be used for machine
    * communications. Cannot be specified with network_uri.
@@ -410,16 +458,15 @@ public java.lang.String getSubnetworkUri() {
    * 
* * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for subnetworkUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubnetworkUriBytes() { + public com.google.protobuf.ByteString getSubnetworkUriBytes() { java.lang.Object ref = subnetworkUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnetworkUri_ = b; return b; } else { @@ -430,6 +477,8 @@ public java.lang.String getSubnetworkUri() { public static final int INTERNAL_IP_ONLY_FIELD_NUMBER = 7; private boolean internalIpOnly_; /** + * + * *
    * Optional. If true, all instances in the cluster will only have internal IP
    * addresses. By default, clusters are not restricted to internal IP
@@ -440,6 +489,7 @@ public java.lang.String getSubnetworkUri() {
    * 
* * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The internalIpOnly. */ @java.lang.Override @@ -450,33 +500,52 @@ public boolean getInternalIpOnly() { public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 12; private int privateIpv6GoogleAccess_; /** + * + * *
    * Optional. The type of IPv6 access for a cluster.
    * 
* - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for privateIpv6GoogleAccess. */ - @java.lang.Override public int getPrivateIpv6GoogleAccessValue() { + @java.lang.Override + public int getPrivateIpv6GoogleAccessValue() { return privateIpv6GoogleAccess_; } /** + * + * *
    * Optional. The type of IPv6 access for a cluster.
    * 
* - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The privateIpv6GoogleAccess. */ - @java.lang.Override public com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess getPrivateIpv6GoogleAccess() { + @java.lang.Override + public com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess + getPrivateIpv6GoogleAccess() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess result = com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.valueOf(privateIpv6GoogleAccess_); - return result == null ? com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess result = + com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.valueOf( + privateIpv6GoogleAccess_); + return result == null + ? com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.UNRECOGNIZED + : result; } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 8; private volatile java.lang.Object serviceAccount_; /** + * + * *
    * Optional. The [Dataproc service
    * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
@@ -491,6 +560,7 @@ public boolean getInternalIpOnly() {
    * 
* * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccount. */ @java.lang.Override @@ -499,14 +569,15 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** + * + * *
    * Optional. The [Dataproc service
    * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
@@ -521,16 +592,15 @@ public java.lang.String getServiceAccount() {
    * 
* * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -541,6 +611,8 @@ public java.lang.String getServiceAccount() { public static final int SERVICE_ACCOUNT_SCOPES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList serviceAccountScopes_; /** + * + * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances. The following base set of scopes is always
@@ -555,14 +627,17 @@ public java.lang.String getServiceAccount() {
    * * https://www.googleapis.com/auth/devstorage.full_control
    * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the serviceAccountScopes. */ - public com.google.protobuf.ProtocolStringList - getServiceAccountScopesList() { + public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() { return serviceAccountScopes_; } /** + * + * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances. The following base set of scopes is always
@@ -577,13 +652,17 @@ public java.lang.String getServiceAccount() {
    * * https://www.googleapis.com/auth/devstorage.full_control
    * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of serviceAccountScopes. */ public int getServiceAccountScopesCount() { return serviceAccountScopes_.size(); } /** + * + * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances. The following base set of scopes is always
@@ -598,7 +677,9 @@ public int getServiceAccountScopesCount() {
    * * https://www.googleapis.com/auth/devstorage.full_control
    * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ @@ -606,6 +687,8 @@ public java.lang.String getServiceAccountScopes(int index) { return serviceAccountScopes_.get(index); } /** + * + * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances. The following base set of scopes is always
@@ -620,49 +703,58 @@ public java.lang.String getServiceAccountScopes(int index) {
    * * https://www.googleapis.com/auth/devstorage.full_control
    * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - public com.google.protobuf.ByteString - getServiceAccountScopesBytes(int index) { + public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) { return serviceAccountScopes_.getByteString(index); } public static final int TAGS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList tags_; /** + * + * *
    * The Compute Engine tags to add to all instances (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 4; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** + * + * *
    * The Compute Engine tags to add to all instances (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 4; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
    * The Compute Engine tags to add to all instances (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 4; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -670,39 +762,40 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
    * The Compute Engine tags to add to all instances (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 4; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int METADATA_FIELD_NUMBER = 5; + private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } @@ -711,6 +804,8 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
    * The Compute Engine metadata entries to add to all instances (see
    * [Project and instance
@@ -719,22 +814,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 5;
    */
-
   @java.lang.Override
-  public boolean containsMetadata(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsMetadata(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
+   *
+   *
    * 
    * The Compute Engine metadata entries to add to all instances (see
    * [Project and instance
@@ -744,11 +839,12 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 5;
    */
   @java.lang.Override
-
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
+   *
+   *
    * 
    * The Compute Engine metadata entries to add to all instances (see
    * [Project and instance
@@ -758,16 +854,17 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 5;
    */
   @java.lang.Override
-
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * The Compute Engine metadata entries to add to all instances (see
    * [Project and instance
@@ -777,12 +874,11 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 5;
    */
   @java.lang.Override
-
-  public java.lang.String getMetadataOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+  public java.lang.String getMetadataOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -792,11 +888,16 @@ public java.lang.String getMetadataOrThrow(
   public static final int RESERVATION_AFFINITY_FIELD_NUMBER = 11;
   private com.google.cloud.dataproc.v1.ReservationAffinity reservationAffinity_;
   /**
+   *
+   *
    * 
    * Optional. Reservation Affinity for consuming Zonal reservation.
    * 
* - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the reservationAffinity field is set. */ @java.lang.Override @@ -804,37 +905,54 @@ public boolean hasReservationAffinity() { return reservationAffinity_ != null; } /** + * + * *
    * Optional. Reservation Affinity for consuming Zonal reservation.
    * 
* - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reservationAffinity. */ @java.lang.Override public com.google.cloud.dataproc.v1.ReservationAffinity getReservationAffinity() { - return reservationAffinity_ == null ? com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; + return reservationAffinity_ == null + ? com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; } /** + * + * *
    * Optional. Reservation Affinity for consuming Zonal reservation.
    * 
* - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { + public com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder + getReservationAffinityOrBuilder() { return getReservationAffinity(); } public static final int NODE_GROUP_AFFINITY_FIELD_NUMBER = 13; private com.google.cloud.dataproc.v1.NodeGroupAffinity nodeGroupAffinity_; /** + * + * *
    * Optional. Node Group Affinity for sole-tenant clusters.
    * 
* - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the nodeGroupAffinity field is set. */ @java.lang.Override @@ -842,23 +960,34 @@ public boolean hasNodeGroupAffinity() { return nodeGroupAffinity_ != null; } /** + * + * *
    * Optional. Node Group Affinity for sole-tenant clusters.
    * 
* - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nodeGroupAffinity. */ @java.lang.Override public com.google.cloud.dataproc.v1.NodeGroupAffinity getNodeGroupAffinity() { - return nodeGroupAffinity_ == null ? com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance() : nodeGroupAffinity_; + return nodeGroupAffinity_ == null + ? com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance() + : nodeGroupAffinity_; } /** + * + * *
    * Optional. Node Group Affinity for sole-tenant clusters.
    * 
* - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffinityOrBuilder() { @@ -868,13 +997,18 @@ public com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffin public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 14; private com.google.cloud.dataproc.v1.ShieldedInstanceConfig shieldedInstanceConfig_; /** + * + * *
    * Optional. Shielded Instance Config for clusters using [Compute Engine
    * Shielded
    * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
    * 
* - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the shieldedInstanceConfig field is set. */ @java.lang.Override @@ -882,42 +1016,59 @@ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfig_ != null; } /** + * + * *
    * Optional. Shielded Instance Config for clusters using [Compute Engine
    * Shielded
    * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
    * 
* - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The shieldedInstanceConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null ? com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } /** + * + * *
    * Optional. Shielded Instance Config for clusters using [Compute Engine
    * Shielded
    * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
    * 
* - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { return getShieldedInstanceConfig(); } public static final int CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER = 15; private com.google.cloud.dataproc.v1.ConfidentialInstanceConfig confidentialInstanceConfig_; /** + * + * *
    * Optional. Confidential Instance Config for clusters using [Confidential
    * VMs](https://cloud.google.com/compute/confidential-vm/docs).
    * 
* - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the confidentialInstanceConfig field is set. */ @java.lang.Override @@ -925,32 +1076,45 @@ public boolean hasConfidentialInstanceConfig() { return confidentialInstanceConfig_ != null; } /** + * + * *
    * Optional. Confidential Instance Config for clusters using [Confidential
    * VMs](https://cloud.google.com/compute/confidential-vm/docs).
    * 
* - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The confidentialInstanceConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getConfidentialInstanceConfig() { - return confidentialInstanceConfig_ == null ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null + ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } /** + * + * *
    * Optional. Confidential Instance Config for clusters using [Confidential
    * VMs](https://cloud.google.com/compute/confidential-vm/docs).
    * 
* - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { + public com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder + getConfidentialInstanceConfigOrBuilder() { return getConfidentialInstanceConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -962,8 +1126,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, zoneUri_); } @@ -971,17 +1134,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 2, networkUri_); } for (int i = 0; i < serviceAccountScopes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceAccountScopes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, serviceAccountScopes_.getRaw(i)); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMetadata(), - MetadataDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 5); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, subnetworkUri_); } @@ -994,7 +1154,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (reservationAffinity_ != null) { output.writeMessage(11, getReservationAffinity()); } - if (privateIpv6GoogleAccess_ != com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED.getNumber()) { + if (privateIpv6GoogleAccess_ + != com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess + .PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED + .getNumber()) { output.writeEnum(12, privateIpv6GoogleAccess_); } if (nodeGroupAffinity_ != null) { @@ -1037,45 +1200,46 @@ public int getSerializedSize() { size += dataSize; size += 1 * getTagsList().size(); } - for (java.util.Map.Entry entry - : internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, metadata__); + for (java.util.Map.Entry entry : + internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry metadata__ = + MetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, metadata__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, subnetworkUri_); } if (internalIpOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, internalIpOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, internalIpOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, serviceAccount_); } if (reservationAffinity_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getReservationAffinity()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(11, getReservationAffinity()); } - if (privateIpv6GoogleAccess_ != com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, privateIpv6GoogleAccess_); + if (privateIpv6GoogleAccess_ + != com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess + .PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, privateIpv6GoogleAccess_); } if (nodeGroupAffinity_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getNodeGroupAffinity()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getNodeGroupAffinity()); } if (shieldedInstanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getShieldedInstanceConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, getShieldedInstanceConfig()); } if (confidentialInstanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getConfidentialInstanceConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getConfidentialInstanceConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1085,49 +1249,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.GceClusterConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GceClusterConfig other = (com.google.cloud.dataproc.v1.GceClusterConfig) obj; + com.google.cloud.dataproc.v1.GceClusterConfig other = + (com.google.cloud.dataproc.v1.GceClusterConfig) obj; - if (!getZoneUri() - .equals(other.getZoneUri())) return false; - if (!getNetworkUri() - .equals(other.getNetworkUri())) return false; - if (!getSubnetworkUri() - .equals(other.getSubnetworkUri())) return false; - if (getInternalIpOnly() - != other.getInternalIpOnly()) return false; + if (!getZoneUri().equals(other.getZoneUri())) return false; + if (!getNetworkUri().equals(other.getNetworkUri())) return false; + if (!getSubnetworkUri().equals(other.getSubnetworkUri())) return false; + if (getInternalIpOnly() != other.getInternalIpOnly()) return false; if (privateIpv6GoogleAccess_ != other.privateIpv6GoogleAccess_) return false; - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; - if (!getServiceAccountScopesList() - .equals(other.getServiceAccountScopesList())) return false; - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (!internalGetMetadata().equals( - other.internalGetMetadata())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getServiceAccountScopesList().equals(other.getServiceAccountScopesList())) return false; + if (!getTagsList().equals(other.getTagsList())) return false; + if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; if (hasReservationAffinity() != other.hasReservationAffinity()) return false; if (hasReservationAffinity()) { - if (!getReservationAffinity() - .equals(other.getReservationAffinity())) return false; + if (!getReservationAffinity().equals(other.getReservationAffinity())) return false; } if (hasNodeGroupAffinity() != other.hasNodeGroupAffinity()) return false; if (hasNodeGroupAffinity()) { - if (!getNodeGroupAffinity() - .equals(other.getNodeGroupAffinity())) return false; + if (!getNodeGroupAffinity().equals(other.getNodeGroupAffinity())) return false; } if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; if (hasShieldedInstanceConfig()) { - if (!getShieldedInstanceConfig() - .equals(other.getShieldedInstanceConfig())) return false; + if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; } if (hasConfidentialInstanceConfig() != other.hasConfidentialInstanceConfig()) return false; if (hasConfidentialInstanceConfig()) { - if (!getConfidentialInstanceConfig() - .equals(other.getConfidentialInstanceConfig())) return false; + if (!getConfidentialInstanceConfig().equals(other.getConfidentialInstanceConfig())) + return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1147,8 +1301,7 @@ public int hashCode() { hash = (37 * hash) + SUBNETWORK_URI_FIELD_NUMBER; hash = (53 * hash) + getSubnetworkUri().hashCode(); hash = (37 * hash) + INTERNAL_IP_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInternalIpOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInternalIpOnly()); hash = (37 * hash) + PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER; hash = (53 * hash) + privateIpv6GoogleAccess_; hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; @@ -1186,97 +1339,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GceClusterConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GceClusterConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GceClusterConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.GceClusterConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Common config settings for resources of Compute Engine cluster
    * instances, applicable to all instances in the cluster.
@@ -1284,55 +1444,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.GceClusterConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GceClusterConfig)
       com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 5:
           return internalGetMetadata();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 5:
           return internalGetMutableMetadata();
         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.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.GceClusterConfig.class, com.google.cloud.dataproc.v1.GceClusterConfig.Builder.class);
+              com.google.cloud.dataproc.v1.GceClusterConfig.class,
+              com.google.cloud.dataproc.v1.GceClusterConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.GceClusterConfig.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1381,9 +1538,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1402,7 +1559,8 @@ public com.google.cloud.dataproc.v1.GceClusterConfig build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.GceClusterConfig buildPartial() {
-      com.google.cloud.dataproc.v1.GceClusterConfig result = new com.google.cloud.dataproc.v1.GceClusterConfig(this);
+      com.google.cloud.dataproc.v1.GceClusterConfig result =
+          new com.google.cloud.dataproc.v1.GceClusterConfig(this);
       int from_bitField0_ = bitField0_;
       result.zoneUri_ = zoneUri_;
       result.networkUri_ = networkUri_;
@@ -1450,38 +1608,39 @@ public com.google.cloud.dataproc.v1.GceClusterConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.GceClusterConfig) {
-        return mergeFrom((com.google.cloud.dataproc.v1.GceClusterConfig)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.GceClusterConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1532,8 +1691,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) {
         }
         onChanged();
       }
-      internalGetMutableMetadata().mergeFrom(
-          other.internalGetMetadata());
+      internalGetMutableMetadata().mergeFrom(other.internalGetMetadata());
       if (other.hasReservationAffinity()) {
         mergeReservationAffinity(other.getReservationAffinity());
       }
@@ -1572,90 +1730,102 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              zoneUri_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                zoneUri_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              networkUri_ = input.readStringRequireUtf8();
+                break;
+              } // case 10
+            case 18:
+              {
+                networkUri_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureServiceAccountScopesIsMutable();
-              serviceAccountScopes_.add(s);
-              break;
-            } // case 26
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureTagsIsMutable();
-              tags_.add(s);
-              break;
-            } // case 34
-            case 42: {
-              com.google.protobuf.MapEntry
-              metadata__ = input.readMessage(
-                  MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableMetadata().getMutableMap().put(
-                  metadata__.getKey(), metadata__.getValue());
-              break;
-            } // case 42
-            case 50: {
-              subnetworkUri_ = input.readStringRequireUtf8();
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureServiceAccountScopesIsMutable();
+                serviceAccountScopes_.add(s);
+                break;
+              } // case 26
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureTagsIsMutable();
+                tags_.add(s);
+                break;
+              } // case 34
+            case 42:
+              {
+                com.google.protobuf.MapEntry metadata__ =
+                    input.readMessage(
+                        MetadataDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableMetadata()
+                    .getMutableMap()
+                    .put(metadata__.getKey(), metadata__.getValue());
+                break;
+              } // case 42
+            case 50:
+              {
+                subnetworkUri_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 50
-            case 56: {
-              internalIpOnly_ = input.readBool();
+                break;
+              } // case 50
+            case 56:
+              {
+                internalIpOnly_ = input.readBool();
 
-              break;
-            } // case 56
-            case 66: {
-              serviceAccount_ = input.readStringRequireUtf8();
+                break;
+              } // case 56
+            case 66:
+              {
+                serviceAccount_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 66
-            case 90: {
-              input.readMessage(
-                  getReservationAffinityFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 66
+            case 90:
+              {
+                input.readMessage(
+                    getReservationAffinityFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 90
-            case 96: {
-              privateIpv6GoogleAccess_ = input.readEnum();
+                break;
+              } // case 90
+            case 96:
+              {
+                privateIpv6GoogleAccess_ = input.readEnum();
 
-              break;
-            } // case 96
-            case 106: {
-              input.readMessage(
-                  getNodeGroupAffinityFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 96
+            case 106:
+              {
+                input.readMessage(
+                    getNodeGroupAffinityFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 106
-            case 114: {
-              input.readMessage(
-                  getShieldedInstanceConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 106
+            case 114:
+              {
+                input.readMessage(
+                    getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 114
-            case 122: {
-              input.readMessage(
-                  getConfidentialInstanceConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 114
+            case 122:
+              {
+                input.readMessage(
+                    getConfidentialInstanceConfigFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 122
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 122
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1665,10 +1835,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object zoneUri_ = "";
     /**
+     *
+     *
      * 
      * Optional. The zone where the Compute Engine cluster will be located.
      * On a create request, it is required in the "global" region. If omitted
@@ -1682,13 +1855,13 @@ public Builder mergeFrom(
      * 
* * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The zoneUri. */ public java.lang.String getZoneUri() { java.lang.Object ref = zoneUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zoneUri_ = s; return s; @@ -1697,6 +1870,8 @@ public java.lang.String getZoneUri() { } } /** + * + * *
      * Optional. The zone where the Compute Engine cluster will be located.
      * On a create request, it is required in the "global" region. If omitted
@@ -1710,15 +1885,14 @@ public java.lang.String getZoneUri() {
      * 
* * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for zoneUri. */ - public com.google.protobuf.ByteString - getZoneUriBytes() { + public com.google.protobuf.ByteString getZoneUriBytes() { java.lang.Object ref = zoneUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); zoneUri_ = b; return b; } else { @@ -1726,6 +1900,8 @@ public java.lang.String getZoneUri() { } } /** + * + * *
      * Optional. The zone where the Compute Engine cluster will be located.
      * On a create request, it is required in the "global" region. If omitted
@@ -1739,20 +1915,22 @@ public java.lang.String getZoneUri() {
      * 
* * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The zoneUri to set. * @return This builder for chaining. */ - public Builder setZoneUri( - java.lang.String value) { + public Builder setZoneUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + zoneUri_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The zone where the Compute Engine cluster will be located.
      * On a create request, it is required in the "global" region. If omitted
@@ -1766,15 +1944,18 @@ public Builder setZoneUri(
      * 
* * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearZoneUri() { - + zoneUri_ = getDefaultInstance().getZoneUri(); onChanged(); return this; } /** + * + * *
      * Optional. The zone where the Compute Engine cluster will be located.
      * On a create request, it is required in the "global" region. If omitted
@@ -1788,16 +1969,16 @@ public Builder clearZoneUri() {
      * 
* * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for zoneUri to set. * @return This builder for chaining. */ - public Builder setZoneUriBytes( - com.google.protobuf.ByteString value) { + public Builder setZoneUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zoneUri_ = value; onChanged(); return this; @@ -1805,6 +1986,8 @@ public Builder setZoneUriBytes( private java.lang.Object networkUri_ = ""; /** + * + * *
      * Optional. The Compute Engine network to be used for machine
      * communications. Cannot be specified with subnetwork_uri. If neither
@@ -1819,13 +2002,13 @@ public Builder setZoneUriBytes(
      * 
* * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The networkUri. */ public java.lang.String getNetworkUri() { java.lang.Object ref = networkUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkUri_ = s; return s; @@ -1834,6 +2017,8 @@ public java.lang.String getNetworkUri() { } } /** + * + * *
      * Optional. The Compute Engine network to be used for machine
      * communications. Cannot be specified with subnetwork_uri. If neither
@@ -1848,15 +2033,14 @@ public java.lang.String getNetworkUri() {
      * 
* * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for networkUri. */ - public com.google.protobuf.ByteString - getNetworkUriBytes() { + public com.google.protobuf.ByteString getNetworkUriBytes() { java.lang.Object ref = networkUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); networkUri_ = b; return b; } else { @@ -1864,6 +2048,8 @@ public java.lang.String getNetworkUri() { } } /** + * + * *
      * Optional. The Compute Engine network to be used for machine
      * communications. Cannot be specified with subnetwork_uri. If neither
@@ -1878,20 +2064,22 @@ public java.lang.String getNetworkUri() {
      * 
* * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The networkUri to set. * @return This builder for chaining. */ - public Builder setNetworkUri( - java.lang.String value) { + public Builder setNetworkUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + networkUri_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Compute Engine network to be used for machine
      * communications. Cannot be specified with subnetwork_uri. If neither
@@ -1906,15 +2094,18 @@ public Builder setNetworkUri(
      * 
* * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNetworkUri() { - + networkUri_ = getDefaultInstance().getNetworkUri(); onChanged(); return this; } /** + * + * *
      * Optional. The Compute Engine network to be used for machine
      * communications. Cannot be specified with subnetwork_uri. If neither
@@ -1929,16 +2120,16 @@ public Builder clearNetworkUri() {
      * 
* * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for networkUri to set. * @return This builder for chaining. */ - public Builder setNetworkUriBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkUri_ = value; onChanged(); return this; @@ -1946,6 +2137,8 @@ public Builder setNetworkUriBytes( private java.lang.Object subnetworkUri_ = ""; /** + * + * *
      * Optional. The Compute Engine subnetwork to be used for machine
      * communications. Cannot be specified with network_uri.
@@ -1956,13 +2149,13 @@ public Builder setNetworkUriBytes(
      * 
* * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The subnetworkUri. */ public java.lang.String getSubnetworkUri() { java.lang.Object ref = subnetworkUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetworkUri_ = s; return s; @@ -1971,6 +2164,8 @@ public java.lang.String getSubnetworkUri() { } } /** + * + * *
      * Optional. The Compute Engine subnetwork to be used for machine
      * communications. Cannot be specified with network_uri.
@@ -1981,15 +2176,14 @@ public java.lang.String getSubnetworkUri() {
      * 
* * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for subnetworkUri. */ - public com.google.protobuf.ByteString - getSubnetworkUriBytes() { + public com.google.protobuf.ByteString getSubnetworkUriBytes() { java.lang.Object ref = subnetworkUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnetworkUri_ = b; return b; } else { @@ -1997,7 +2191,9 @@ public java.lang.String getSubnetworkUri() { } } /** - *
+     *
+     *
+     * 
      * Optional. The Compute Engine subnetwork to be used for machine
      * communications. Cannot be specified with network_uri.
      * A full URL, partial URI, or short name are valid. Examples:
@@ -2007,20 +2203,22 @@ public java.lang.String getSubnetworkUri() {
      * 
* * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The subnetworkUri to set. * @return This builder for chaining. */ - public Builder setSubnetworkUri( - java.lang.String value) { + public Builder setSubnetworkUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subnetworkUri_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Compute Engine subnetwork to be used for machine
      * communications. Cannot be specified with network_uri.
@@ -2031,15 +2229,18 @@ public Builder setSubnetworkUri(
      * 
* * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSubnetworkUri() { - + subnetworkUri_ = getDefaultInstance().getSubnetworkUri(); onChanged(); return this; } /** + * + * *
      * Optional. The Compute Engine subnetwork to be used for machine
      * communications. Cannot be specified with network_uri.
@@ -2050,23 +2251,25 @@ public Builder clearSubnetworkUri() {
      * 
* * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for subnetworkUri to set. * @return This builder for chaining. */ - public Builder setSubnetworkUriBytes( - com.google.protobuf.ByteString value) { + public Builder setSubnetworkUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnetworkUri_ = value; onChanged(); return this; } - private boolean internalIpOnly_ ; + private boolean internalIpOnly_; /** + * + * *
      * Optional. If true, all instances in the cluster will only have internal IP
      * addresses. By default, clusters are not restricted to internal IP
@@ -2077,6 +2280,7 @@ public Builder setSubnetworkUriBytes(
      * 
* * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The internalIpOnly. */ @java.lang.Override @@ -2084,6 +2288,8 @@ public boolean getInternalIpOnly() { return internalIpOnly_; } /** + * + * *
      * Optional. If true, all instances in the cluster will only have internal IP
      * addresses. By default, clusters are not restricted to internal IP
@@ -2094,16 +2300,19 @@ public boolean getInternalIpOnly() {
      * 
* * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The internalIpOnly to set. * @return This builder for chaining. */ public Builder setInternalIpOnly(boolean value) { - + internalIpOnly_ = value; onChanged(); return this; } /** + * + * *
      * Optional. If true, all instances in the cluster will only have internal IP
      * addresses. By default, clusters are not restricted to internal IP
@@ -2114,10 +2323,11 @@ public Builder setInternalIpOnly(boolean value) {
      * 
* * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearInternalIpOnly() { - + internalIpOnly_ = false; onChanged(); return this; @@ -2125,73 +2335,105 @@ public Builder clearInternalIpOnly() { private int privateIpv6GoogleAccess_ = 0; /** + * + * *
      * Optional. The type of IPv6 access for a cluster.
      * 
* - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for privateIpv6GoogleAccess. */ - @java.lang.Override public int getPrivateIpv6GoogleAccessValue() { + @java.lang.Override + public int getPrivateIpv6GoogleAccessValue() { return privateIpv6GoogleAccess_; } /** + * + * *
      * Optional. The type of IPv6 access for a cluster.
      * 
* - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for privateIpv6GoogleAccess to set. * @return This builder for chaining. */ public Builder setPrivateIpv6GoogleAccessValue(int value) { - + privateIpv6GoogleAccess_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The type of IPv6 access for a cluster.
      * 
* - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The privateIpv6GoogleAccess. */ @java.lang.Override - public com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess getPrivateIpv6GoogleAccess() { + public com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess + getPrivateIpv6GoogleAccess() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess result = com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.valueOf(privateIpv6GoogleAccess_); - return result == null ? com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess result = + com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.valueOf( + privateIpv6GoogleAccess_); + return result == null + ? com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The type of IPv6 access for a cluster.
      * 
* - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The privateIpv6GoogleAccess to set. * @return This builder for chaining. */ - public Builder setPrivateIpv6GoogleAccess(com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess value) { + public Builder setPrivateIpv6GoogleAccess( + com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess value) { if (value == null) { throw new NullPointerException(); } - + privateIpv6GoogleAccess_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The type of IPv6 access for a cluster.
      * 
* - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearPrivateIpv6GoogleAccess() { - + privateIpv6GoogleAccess_ = 0; onChanged(); return this; @@ -2199,6 +2441,8 @@ public Builder clearPrivateIpv6GoogleAccess() { private java.lang.Object serviceAccount_ = ""; /** + * + * *
      * Optional. The [Dataproc service
      * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
@@ -2213,13 +2457,13 @@ public Builder clearPrivateIpv6GoogleAccess() {
      * 
* * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -2228,6 +2472,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Optional. The [Dataproc service
      * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
@@ -2242,15 +2488,14 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -2258,6 +2503,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Optional. The [Dataproc service
      * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
@@ -2272,20 +2519,22 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount( - java.lang.String value) { + public Builder setServiceAccount(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccount_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The [Dataproc service
      * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
@@ -2300,15 +2549,18 @@ public Builder setServiceAccount(
      * 
* * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearServiceAccount() { - + serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** + * + * *
      * Optional. The [Dataproc service
      * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
@@ -2323,29 +2575,33 @@ public Builder clearServiceAccount() {
      * 
* * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList serviceAccountScopes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureServiceAccountScopesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { serviceAccountScopes_ = new com.google.protobuf.LazyStringArrayList(serviceAccountScopes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances. The following base set of scopes is always
@@ -2360,14 +2616,17 @@ private void ensureServiceAccountScopesIsMutable() {
      * * https://www.googleapis.com/auth/devstorage.full_control
      * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the serviceAccountScopes. */ - public com.google.protobuf.ProtocolStringList - getServiceAccountScopesList() { + public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() { return serviceAccountScopes_.getUnmodifiableView(); } /** + * + * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances. The following base set of scopes is always
@@ -2382,13 +2641,17 @@ private void ensureServiceAccountScopesIsMutable() {
      * * https://www.googleapis.com/auth/devstorage.full_control
      * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of serviceAccountScopes. */ public int getServiceAccountScopesCount() { return serviceAccountScopes_.size(); } /** + * + * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances. The following base set of scopes is always
@@ -2403,7 +2666,9 @@ public int getServiceAccountScopesCount() {
      * * https://www.googleapis.com/auth/devstorage.full_control
      * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ @@ -2411,6 +2676,8 @@ public java.lang.String getServiceAccountScopes(int index) { return serviceAccountScopes_.get(index); } /** + * + * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances. The following base set of scopes is always
@@ -2425,15 +2692,18 @@ public java.lang.String getServiceAccountScopes(int index) {
      * * https://www.googleapis.com/auth/devstorage.full_control
      * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - public com.google.protobuf.ByteString - getServiceAccountScopesBytes(int index) { + public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) { return serviceAccountScopes_.getByteString(index); } /** + * + * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances. The following base set of scopes is always
@@ -2448,22 +2718,25 @@ public java.lang.String getServiceAccountScopes(int index) {
      * * https://www.googleapis.com/auth/devstorage.full_control
      * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The serviceAccountScopes to set. * @return This builder for chaining. */ - public Builder setServiceAccountScopes( - int index, java.lang.String value) { + public Builder setServiceAccountScopes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureServiceAccountScopesIsMutable(); + throw new NullPointerException(); + } + ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances. The following base set of scopes is always
@@ -2478,21 +2751,24 @@ public Builder setServiceAccountScopes(
      * * https://www.googleapis.com/auth/devstorage.full_control
      * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addServiceAccountScopes( - java.lang.String value) { + public Builder addServiceAccountScopes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureServiceAccountScopesIsMutable(); + throw new NullPointerException(); + } + ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances. The following base set of scopes is always
@@ -2507,19 +2783,21 @@ public Builder addServiceAccountScopes(
      * * https://www.googleapis.com/auth/devstorage.full_control
      * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addAllServiceAccountScopes( - java.lang.Iterable values) { + public Builder addAllServiceAccountScopes(java.lang.Iterable values) { ensureServiceAccountScopesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, serviceAccountScopes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceAccountScopes_); onChanged(); return this; } /** + * + * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances. The following base set of scopes is always
@@ -2534,7 +2812,9 @@ public Builder addAllServiceAccountScopes(
      * * https://www.googleapis.com/auth/devstorage.full_control
      * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearServiceAccountScopes() { @@ -2544,6 +2824,8 @@ public Builder clearServiceAccountScopes() { return this; } /** + * + * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances. The following base set of scopes is always
@@ -2558,61 +2840,72 @@ public Builder clearServiceAccountScopes() {
      * * https://www.googleapis.com/auth/devstorage.full_control
      * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addServiceAccountScopesBytes( - com.google.protobuf.ByteString value) { + public Builder addServiceAccountScopesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList tags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * The Compute Engine tags to add to all instances (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 4; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** + * + * *
      * The Compute Engine tags to add to all instances (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 4; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
      * The Compute Engine tags to add to all instances (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 4; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -2620,85 +2913,95 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
      * The Compute Engine tags to add to all instances (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 4; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** + * + * *
      * The Compute Engine tags to add to all instances (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 4; + * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags( - int index, java.lang.String value) { + public Builder setTags(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** + * + * *
      * The Compute Engine tags to add to all instances (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 4; + * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags( - java.lang.String value) { + public Builder addTags(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** + * + * *
      * The Compute Engine tags to add to all instances (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 4; + * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags( - java.lang.Iterable values) { + public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); onChanged(); return this; } /** + * + * *
      * The Compute Engine tags to add to all instances (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 4; + * * @return This builder for chaining. */ public Builder clearTags() { @@ -2708,43 +3011,45 @@ public Builder clearTags() { return this; } /** + * + * *
      * The Compute Engine tags to add to all instances (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 4; + * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { + public Builder addTagsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } + private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged();; + internalGetMutableMetadata() { + onChanged(); + ; if (metadata_ == null) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); + metadata_ = + com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); @@ -2756,6 +3061,8 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
      * The Compute Engine metadata entries to add to all instances (see
      * [Project and instance
@@ -2764,22 +3071,22 @@ public int getMetadataCount() {
      *
      * map<string, string> metadata = 5;
      */
-
     @java.lang.Override
-    public boolean containsMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetMetadata().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getMetadataMap()} instead.
-     */
+    /** Use {@link #getMetadataMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMetadata() {
       return getMetadataMap();
     }
     /**
+     *
+     *
      * 
      * The Compute Engine metadata entries to add to all instances (see
      * [Project and instance
@@ -2789,11 +3096,12 @@ public java.util.Map getMetadata() {
      * map<string, string> metadata = 5;
      */
     @java.lang.Override
-
     public java.util.Map getMetadataMap() {
       return internalGetMetadata().getMap();
     }
     /**
+     *
+     *
      * 
      * The Compute Engine metadata entries to add to all instances (see
      * [Project and instance
@@ -2803,16 +3111,17 @@ public java.util.Map getMetadataMap() {
      * map<string, string> metadata = 5;
      */
     @java.lang.Override
-
     public java.lang.String getMetadataOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * The Compute Engine metadata entries to add to all instances (see
      * [Project and instance
@@ -2822,12 +3131,11 @@ public java.lang.String getMetadataOrDefault(
      * map<string, string> metadata = 5;
      */
     @java.lang.Override
-
-    public java.lang.String getMetadataOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+    public java.lang.String getMetadataOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2835,11 +3143,12 @@ public java.lang.String getMetadataOrThrow(
     }
 
     public Builder clearMetadata() {
-      internalGetMutableMetadata().getMutableMap()
-          .clear();
+      internalGetMutableMetadata().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * The Compute Engine metadata entries to add to all instances (see
      * [Project and instance
@@ -2848,23 +3157,21 @@ public Builder clearMetadata() {
      *
      * map<string, string> metadata = 5;
      */
-
-    public Builder removeMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableMetadata().getMutableMap()
-          .remove(key);
+    public Builder removeMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableMetadata().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableMetadata() {
+    public java.util.Map getMutableMetadata() {
       return internalGetMutableMetadata().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * The Compute Engine metadata entries to add to all instances (see
      * [Project and instance
@@ -2873,19 +3180,20 @@ public Builder removeMetadata(
      *
      * map<string, string> metadata = 5;
      */
-    public Builder putMetadata(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putMetadata(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");
+      }
 
-      internalGetMutableMetadata().getMutableMap()
-          .put(key, value);
+      internalGetMutableMetadata().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * The Compute Engine metadata entries to add to all instances (see
      * [Project and instance
@@ -2894,49 +3202,65 @@ public Builder putMetadata(
      *
      * map<string, string> metadata = 5;
      */
-
-    public Builder putAllMetadata(
-        java.util.Map values) {
-      internalGetMutableMetadata().getMutableMap()
-          .putAll(values);
+    public Builder putAllMetadata(java.util.Map values) {
+      internalGetMutableMetadata().getMutableMap().putAll(values);
       return this;
     }
 
     private com.google.cloud.dataproc.v1.ReservationAffinity reservationAffinity_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.dataproc.v1.ReservationAffinity, com.google.cloud.dataproc.v1.ReservationAffinity.Builder, com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder> reservationAffinityBuilder_;
+            com.google.cloud.dataproc.v1.ReservationAffinity,
+            com.google.cloud.dataproc.v1.ReservationAffinity.Builder,
+            com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder>
+        reservationAffinityBuilder_;
     /**
+     *
+     *
      * 
      * Optional. Reservation Affinity for consuming Zonal reservation.
      * 
* - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the reservationAffinity field is set. */ public boolean hasReservationAffinity() { return reservationAffinityBuilder_ != null || reservationAffinity_ != null; } /** + * + * *
      * Optional. Reservation Affinity for consuming Zonal reservation.
      * 
* - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reservationAffinity. */ public com.google.cloud.dataproc.v1.ReservationAffinity getReservationAffinity() { if (reservationAffinityBuilder_ == null) { - return reservationAffinity_ == null ? com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; + return reservationAffinity_ == null + ? com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; } else { return reservationAffinityBuilder_.getMessage(); } } /** + * + * *
      * Optional. Reservation Affinity for consuming Zonal reservation.
      * 
* - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReservationAffinity(com.google.cloud.dataproc.v1.ReservationAffinity value) { if (reservationAffinityBuilder_ == null) { @@ -2952,11 +3276,15 @@ public Builder setReservationAffinity(com.google.cloud.dataproc.v1.ReservationAf return this; } /** + * + * *
      * Optional. Reservation Affinity for consuming Zonal reservation.
      * 
* - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReservationAffinity( com.google.cloud.dataproc.v1.ReservationAffinity.Builder builderForValue) { @@ -2970,17 +3298,24 @@ public Builder setReservationAffinity( return this; } /** + * + * *
      * Optional. Reservation Affinity for consuming Zonal reservation.
      * 
* - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeReservationAffinity(com.google.cloud.dataproc.v1.ReservationAffinity value) { + public Builder mergeReservationAffinity( + com.google.cloud.dataproc.v1.ReservationAffinity value) { if (reservationAffinityBuilder_ == null) { if (reservationAffinity_ != null) { reservationAffinity_ = - com.google.cloud.dataproc.v1.ReservationAffinity.newBuilder(reservationAffinity_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.ReservationAffinity.newBuilder(reservationAffinity_) + .mergeFrom(value) + .buildPartial(); } else { reservationAffinity_ = value; } @@ -2992,11 +3327,15 @@ public Builder mergeReservationAffinity(com.google.cloud.dataproc.v1.Reservation return this; } /** + * + * *
      * Optional. Reservation Affinity for consuming Zonal reservation.
      * 
* - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReservationAffinity() { if (reservationAffinityBuilder_ == null) { @@ -3010,48 +3349,66 @@ public Builder clearReservationAffinity() { return this; } /** + * + * *
      * Optional. Reservation Affinity for consuming Zonal reservation.
      * 
* - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.ReservationAffinity.Builder getReservationAffinityBuilder() { - + public com.google.cloud.dataproc.v1.ReservationAffinity.Builder + getReservationAffinityBuilder() { + onChanged(); return getReservationAffinityFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Reservation Affinity for consuming Zonal reservation.
      * 
* - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { + public com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder + getReservationAffinityOrBuilder() { if (reservationAffinityBuilder_ != null) { return reservationAffinityBuilder_.getMessageOrBuilder(); } else { - return reservationAffinity_ == null ? - com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; + return reservationAffinity_ == null + ? com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; } } /** + * + * *
      * Optional. Reservation Affinity for consuming Zonal reservation.
      * 
* - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ReservationAffinity, com.google.cloud.dataproc.v1.ReservationAffinity.Builder, com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder> + com.google.cloud.dataproc.v1.ReservationAffinity, + com.google.cloud.dataproc.v1.ReservationAffinity.Builder, + com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder> getReservationAffinityFieldBuilder() { if (reservationAffinityBuilder_ == null) { - reservationAffinityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ReservationAffinity, com.google.cloud.dataproc.v1.ReservationAffinity.Builder, com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder>( - getReservationAffinity(), - getParentForChildren(), - isClean()); + reservationAffinityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ReservationAffinity, + com.google.cloud.dataproc.v1.ReservationAffinity.Builder, + com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder>( + getReservationAffinity(), getParentForChildren(), isClean()); reservationAffinity_ = null; } return reservationAffinityBuilder_; @@ -3059,39 +3416,58 @@ public com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder getReservationA private com.google.cloud.dataproc.v1.NodeGroupAffinity nodeGroupAffinity_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeGroupAffinity, com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder, com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder> nodeGroupAffinityBuilder_; + com.google.cloud.dataproc.v1.NodeGroupAffinity, + com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder, + com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder> + nodeGroupAffinityBuilder_; /** + * + * *
      * Optional. Node Group Affinity for sole-tenant clusters.
      * 
* - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the nodeGroupAffinity field is set. */ public boolean hasNodeGroupAffinity() { return nodeGroupAffinityBuilder_ != null || nodeGroupAffinity_ != null; } /** + * + * *
      * Optional. Node Group Affinity for sole-tenant clusters.
      * 
* - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nodeGroupAffinity. */ public com.google.cloud.dataproc.v1.NodeGroupAffinity getNodeGroupAffinity() { if (nodeGroupAffinityBuilder_ == null) { - return nodeGroupAffinity_ == null ? com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance() : nodeGroupAffinity_; + return nodeGroupAffinity_ == null + ? com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance() + : nodeGroupAffinity_; } else { return nodeGroupAffinityBuilder_.getMessage(); } } /** + * + * *
      * Optional. Node Group Affinity for sole-tenant clusters.
      * 
* - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNodeGroupAffinity(com.google.cloud.dataproc.v1.NodeGroupAffinity value) { if (nodeGroupAffinityBuilder_ == null) { @@ -3107,11 +3483,15 @@ public Builder setNodeGroupAffinity(com.google.cloud.dataproc.v1.NodeGroupAffini return this; } /** + * + * *
      * Optional. Node Group Affinity for sole-tenant clusters.
      * 
* - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNodeGroupAffinity( com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder builderForValue) { @@ -3125,17 +3505,23 @@ public Builder setNodeGroupAffinity( return this; } /** + * + * *
      * Optional. Node Group Affinity for sole-tenant clusters.
      * 
* - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeNodeGroupAffinity(com.google.cloud.dataproc.v1.NodeGroupAffinity value) { if (nodeGroupAffinityBuilder_ == null) { if (nodeGroupAffinity_ != null) { nodeGroupAffinity_ = - com.google.cloud.dataproc.v1.NodeGroupAffinity.newBuilder(nodeGroupAffinity_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.NodeGroupAffinity.newBuilder(nodeGroupAffinity_) + .mergeFrom(value) + .buildPartial(); } else { nodeGroupAffinity_ = value; } @@ -3147,11 +3533,15 @@ public Builder mergeNodeGroupAffinity(com.google.cloud.dataproc.v1.NodeGroupAffi return this; } /** + * + * *
      * Optional. Node Group Affinity for sole-tenant clusters.
      * 
* - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearNodeGroupAffinity() { if (nodeGroupAffinityBuilder_ == null) { @@ -3165,48 +3555,64 @@ public Builder clearNodeGroupAffinity() { return this; } /** + * + * *
      * Optional. Node Group Affinity for sole-tenant clusters.
      * 
* - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder getNodeGroupAffinityBuilder() { - + onChanged(); return getNodeGroupAffinityFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Node Group Affinity for sole-tenant clusters.
      * 
* - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffinityOrBuilder() { if (nodeGroupAffinityBuilder_ != null) { return nodeGroupAffinityBuilder_.getMessageOrBuilder(); } else { - return nodeGroupAffinity_ == null ? - com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance() : nodeGroupAffinity_; + return nodeGroupAffinity_ == null + ? com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance() + : nodeGroupAffinity_; } } /** + * + * *
      * Optional. Node Group Affinity for sole-tenant clusters.
      * 
* - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeGroupAffinity, com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder, com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder> + com.google.cloud.dataproc.v1.NodeGroupAffinity, + com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder, + com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder> getNodeGroupAffinityFieldBuilder() { if (nodeGroupAffinityBuilder_ == null) { - nodeGroupAffinityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeGroupAffinity, com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder, com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder>( - getNodeGroupAffinity(), - getParentForChildren(), - isClean()); + nodeGroupAffinityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.NodeGroupAffinity, + com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder, + com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder>( + getNodeGroupAffinity(), getParentForChildren(), isClean()); nodeGroupAffinity_ = null; } return nodeGroupAffinityBuilder_; @@ -3214,47 +3620,67 @@ public com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffin private com.google.cloud.dataproc.v1.ShieldedInstanceConfig shieldedInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ShieldedInstanceConfig, com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder, com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; + com.google.cloud.dataproc.v1.ShieldedInstanceConfig, + com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder, + com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; /** + * + * *
      * Optional. Shielded Instance Config for clusters using [Compute Engine
      * Shielded
      * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
      * 
* - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the shieldedInstanceConfig field is set. */ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; } /** + * + * *
      * Optional. Shielded Instance Config for clusters using [Compute Engine
      * Shielded
      * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
      * 
* - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The shieldedInstanceConfig. */ public com.google.cloud.dataproc.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null ? com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } else { return shieldedInstanceConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Shielded Instance Config for clusters using [Compute Engine
      * Shielded
      * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
      * 
* - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setShieldedInstanceConfig(com.google.cloud.dataproc.v1.ShieldedInstanceConfig value) { + public Builder setShieldedInstanceConfig( + com.google.cloud.dataproc.v1.ShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3268,13 +3694,17 @@ public Builder setShieldedInstanceConfig(com.google.cloud.dataproc.v1.ShieldedIn return this; } /** + * + * *
      * Optional. Shielded Instance Config for clusters using [Compute Engine
      * Shielded
      * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
      * 
* - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setShieldedInstanceConfig( com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder builderForValue) { @@ -3288,19 +3718,27 @@ public Builder setShieldedInstanceConfig( return this; } /** + * + * *
      * Optional. Shielded Instance Config for clusters using [Compute Engine
      * Shielded
      * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
      * 
* - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeShieldedInstanceConfig(com.google.cloud.dataproc.v1.ShieldedInstanceConfig value) { + public Builder mergeShieldedInstanceConfig( + com.google.cloud.dataproc.v1.ShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { if (shieldedInstanceConfig_ != null) { shieldedInstanceConfig_ = - com.google.cloud.dataproc.v1.ShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.ShieldedInstanceConfig.newBuilder( + shieldedInstanceConfig_) + .mergeFrom(value) + .buildPartial(); } else { shieldedInstanceConfig_ = value; } @@ -3312,13 +3750,17 @@ public Builder mergeShieldedInstanceConfig(com.google.cloud.dataproc.v1.Shielded return this; } /** + * + * *
      * Optional. Shielded Instance Config for clusters using [Compute Engine
      * Shielded
      * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
      * 
* - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { @@ -3332,54 +3774,72 @@ public Builder clearShieldedInstanceConfig() { return this; } /** + * + * *
      * Optional. Shielded Instance Config for clusters using [Compute Engine
      * Shielded
      * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
      * 
* - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { - + public com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { + onChanged(); return getShieldedInstanceConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Shielded Instance Config for clusters using [Compute Engine
      * Shielded
      * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
      * 
* - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { if (shieldedInstanceConfigBuilder_ != null) { return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return shieldedInstanceConfig_ == null ? - com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } } /** + * + * *
      * Optional. Shielded Instance Config for clusters using [Compute Engine
      * Shielded
      * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
      * 
* - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ShieldedInstanceConfig, com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder, com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder> + com.google.cloud.dataproc.v1.ShieldedInstanceConfig, + com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder, + com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder> getShieldedInstanceConfigFieldBuilder() { if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ShieldedInstanceConfig, com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder, com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), - getParentForChildren(), - isClean()); + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ShieldedInstanceConfig, + com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder, + com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); shieldedInstanceConfig_ = null; } return shieldedInstanceConfigBuilder_; @@ -3387,44 +3847,64 @@ public com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder getShieldedI private com.google.cloud.dataproc.v1.ConfidentialInstanceConfig confidentialInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig, com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder, com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder> confidentialInstanceConfigBuilder_; + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig, + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder, + com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder> + confidentialInstanceConfigBuilder_; /** + * + * *
      * Optional. Confidential Instance Config for clusters using [Confidential
      * VMs](https://cloud.google.com/compute/confidential-vm/docs).
      * 
* - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the confidentialInstanceConfig field is set. */ public boolean hasConfidentialInstanceConfig() { return confidentialInstanceConfigBuilder_ != null || confidentialInstanceConfig_ != null; } /** + * + * *
      * Optional. Confidential Instance Config for clusters using [Confidential
      * VMs](https://cloud.google.com/compute/confidential-vm/docs).
      * 
* - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The confidentialInstanceConfig. */ public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getConfidentialInstanceConfig() { if (confidentialInstanceConfigBuilder_ == null) { - return confidentialInstanceConfig_ == null ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null + ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } else { return confidentialInstanceConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Confidential Instance Config for clusters using [Confidential
      * VMs](https://cloud.google.com/compute/confidential-vm/docs).
      * 
* - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setConfidentialInstanceConfig(com.google.cloud.dataproc.v1.ConfidentialInstanceConfig value) { + public Builder setConfidentialInstanceConfig( + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig value) { if (confidentialInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3438,12 +3918,16 @@ public Builder setConfidentialInstanceConfig(com.google.cloud.dataproc.v1.Confid return this; } /** + * + * *
      * Optional. Confidential Instance Config for clusters using [Confidential
      * VMs](https://cloud.google.com/compute/confidential-vm/docs).
      * 
* - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setConfidentialInstanceConfig( com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder builderForValue) { @@ -3457,18 +3941,26 @@ public Builder setConfidentialInstanceConfig( return this; } /** + * + * *
      * Optional. Confidential Instance Config for clusters using [Confidential
      * VMs](https://cloud.google.com/compute/confidential-vm/docs).
      * 
* - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeConfidentialInstanceConfig(com.google.cloud.dataproc.v1.ConfidentialInstanceConfig value) { + public Builder mergeConfidentialInstanceConfig( + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig value) { if (confidentialInstanceConfigBuilder_ == null) { if (confidentialInstanceConfig_ != null) { confidentialInstanceConfig_ = - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.newBuilder(confidentialInstanceConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.newBuilder( + confidentialInstanceConfig_) + .mergeFrom(value) + .buildPartial(); } else { confidentialInstanceConfig_ = value; } @@ -3480,12 +3972,16 @@ public Builder mergeConfidentialInstanceConfig(com.google.cloud.dataproc.v1.Conf return this; } /** + * + * *
      * Optional. Confidential Instance Config for clusters using [Confidential
      * VMs](https://cloud.google.com/compute/confidential-vm/docs).
      * 
* - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearConfidentialInstanceConfig() { if (confidentialInstanceConfigBuilder_ == null) { @@ -3499,58 +3995,76 @@ public Builder clearConfidentialInstanceConfig() { return this; } /** + * + * *
      * Optional. Confidential Instance Config for clusters using [Confidential
      * VMs](https://cloud.google.com/compute/confidential-vm/docs).
      * 
* - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder getConfidentialInstanceConfigBuilder() { - + public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder + getConfidentialInstanceConfigBuilder() { + onChanged(); return getConfidentialInstanceConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Confidential Instance Config for clusters using [Confidential
      * VMs](https://cloud.google.com/compute/confidential-vm/docs).
      * 
* - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { + public com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder + getConfidentialInstanceConfigOrBuilder() { if (confidentialInstanceConfigBuilder_ != null) { return confidentialInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return confidentialInstanceConfig_ == null ? - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null + ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } } /** + * + * *
      * Optional. Confidential Instance Config for clusters using [Confidential
      * VMs](https://cloud.google.com/compute/confidential-vm/docs).
      * 
* - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig, com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder, com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder> + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig, + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder, + com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder> getConfidentialInstanceConfigFieldBuilder() { if (confidentialInstanceConfigBuilder_ == null) { - confidentialInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig, com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder, com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder>( - getConfidentialInstanceConfig(), - getParentForChildren(), - isClean()); + confidentialInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig, + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder, + com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder>( + getConfidentialInstanceConfig(), getParentForChildren(), isClean()); confidentialInstanceConfig_ = null; } return confidentialInstanceConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3560,12 +4074,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GceClusterConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GceClusterConfig) private static final com.google.cloud.dataproc.v1.GceClusterConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GceClusterConfig(); } @@ -3574,27 +4088,27 @@ public static com.google.cloud.dataproc.v1.GceClusterConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3609,6 +4123,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.GceClusterConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java similarity index 78% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java index baa15201051d..2768c077482f 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface GceClusterConfigOrBuilder extends +public interface GceClusterConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GceClusterConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The zone where the Compute Engine cluster will be located.
    * On a create request, it is required in the "global" region. If omitted
@@ -21,10 +39,13 @@ public interface GceClusterConfigOrBuilder extends
    * 
* * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The zoneUri. */ java.lang.String getZoneUri(); /** + * + * *
    * Optional. The zone where the Compute Engine cluster will be located.
    * On a create request, it is required in the "global" region. If omitted
@@ -38,12 +59,14 @@ public interface GceClusterConfigOrBuilder extends
    * 
* * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for zoneUri. */ - com.google.protobuf.ByteString - getZoneUriBytes(); + com.google.protobuf.ByteString getZoneUriBytes(); /** + * + * *
    * Optional. The Compute Engine network to be used for machine
    * communications. Cannot be specified with subnetwork_uri. If neither
@@ -58,10 +81,13 @@ public interface GceClusterConfigOrBuilder extends
    * 
* * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The networkUri. */ java.lang.String getNetworkUri(); /** + * + * *
    * Optional. The Compute Engine network to be used for machine
    * communications. Cannot be specified with subnetwork_uri. If neither
@@ -76,12 +102,14 @@ public interface GceClusterConfigOrBuilder extends
    * 
* * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for networkUri. */ - com.google.protobuf.ByteString - getNetworkUriBytes(); + com.google.protobuf.ByteString getNetworkUriBytes(); /** + * + * *
    * Optional. The Compute Engine subnetwork to be used for machine
    * communications. Cannot be specified with network_uri.
@@ -92,10 +120,13 @@ public interface GceClusterConfigOrBuilder extends
    * 
* * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The subnetworkUri. */ java.lang.String getSubnetworkUri(); /** + * + * *
    * Optional. The Compute Engine subnetwork to be used for machine
    * communications. Cannot be specified with network_uri.
@@ -106,12 +137,14 @@ public interface GceClusterConfigOrBuilder extends
    * 
* * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for subnetworkUri. */ - com.google.protobuf.ByteString - getSubnetworkUriBytes(); + com.google.protobuf.ByteString getSubnetworkUriBytes(); /** + * + * *
    * Optional. If true, all instances in the cluster will only have internal IP
    * addresses. By default, clusters are not restricted to internal IP
@@ -122,30 +155,44 @@ public interface GceClusterConfigOrBuilder extends
    * 
* * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The internalIpOnly. */ boolean getInternalIpOnly(); /** + * + * *
    * Optional. The type of IPv6 access for a cluster.
    * 
* - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for privateIpv6GoogleAccess. */ int getPrivateIpv6GoogleAccessValue(); /** + * + * *
    * Optional. The type of IPv6 access for a cluster.
    * 
* - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The privateIpv6GoogleAccess. */ - com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess getPrivateIpv6GoogleAccess(); + com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess + getPrivateIpv6GoogleAccess(); /** + * + * *
    * Optional. The [Dataproc service
    * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
@@ -160,10 +207,13 @@ public interface GceClusterConfigOrBuilder extends
    * 
* * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
    * Optional. The [Dataproc service
    * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
@@ -178,12 +228,14 @@ public interface GceClusterConfigOrBuilder extends
    * 
* * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances. The following base set of scopes is always
@@ -198,12 +250,15 @@ public interface GceClusterConfigOrBuilder extends
    * * https://www.googleapis.com/auth/devstorage.full_control
    * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the serviceAccountScopes. */ - java.util.List - getServiceAccountScopesList(); + java.util.List getServiceAccountScopesList(); /** + * + * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances. The following base set of scopes is always
@@ -218,11 +273,15 @@ public interface GceClusterConfigOrBuilder extends
    * * https://www.googleapis.com/auth/devstorage.full_control
    * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of serviceAccountScopes. */ int getServiceAccountScopesCount(); /** + * + * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances. The following base set of scopes is always
@@ -237,12 +296,16 @@ public interface GceClusterConfigOrBuilder extends
    * * https://www.googleapis.com/auth/devstorage.full_control
    * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ java.lang.String getServiceAccountScopes(int index); /** + * + * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances. The following base set of scopes is always
@@ -257,59 +320,72 @@ public interface GceClusterConfigOrBuilder extends
    * * https://www.googleapis.com/auth/devstorage.full_control
    * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - com.google.protobuf.ByteString - getServiceAccountScopesBytes(int index); + com.google.protobuf.ByteString getServiceAccountScopesBytes(int index); /** + * + * *
    * The Compute Engine tags to add to all instances (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 4; + * * @return A list containing the tags. */ - java.util.List - getTagsList(); + java.util.List getTagsList(); /** + * + * *
    * The Compute Engine tags to add to all instances (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 4; + * * @return The count of tags. */ int getTagsCount(); /** + * + * *
    * The Compute Engine tags to add to all instances (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 4; + * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** + * + * *
    * The Compute Engine tags to add to all instances (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 4; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString - getTagsBytes(int index); + com.google.protobuf.ByteString getTagsBytes(int index); /** + * + * *
    * The Compute Engine metadata entries to add to all instances (see
    * [Project and instance
@@ -320,6 +396,8 @@ public interface GceClusterConfigOrBuilder extends
    */
   int getMetadataCount();
   /**
+   *
+   *
    * 
    * The Compute Engine metadata entries to add to all instances (see
    * [Project and instance
@@ -328,15 +406,13 @@ public interface GceClusterConfigOrBuilder extends
    *
    * map<string, string> metadata = 5;
    */
-  boolean containsMetadata(
-      java.lang.String key);
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  boolean containsMetadata(java.lang.String key);
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getMetadata();
+  java.util.Map getMetadata();
   /**
+   *
+   *
    * 
    * The Compute Engine metadata entries to add to all instances (see
    * [Project and instance
@@ -345,9 +421,10 @@ boolean containsMetadata(
    *
    * map<string, string> metadata = 5;
    */
-  java.util.Map
-  getMetadataMap();
+  java.util.Map getMetadataMap();
   /**
+   *
+   *
    * 
    * The Compute Engine metadata entries to add to all instances (see
    * [Project and instance
@@ -358,11 +435,13 @@ boolean containsMetadata(
    */
 
   /* nullable */
-java.lang.String getMetadataOrDefault(
+  java.lang.String getMetadataOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * The Compute Engine metadata entries to add to all instances (see
    * [Project and instance
@@ -371,124 +450,179 @@ java.lang.String getMetadataOrDefault(
    *
    * map<string, string> metadata = 5;
    */
-
-  java.lang.String getMetadataOrThrow(
-      java.lang.String key);
+  java.lang.String getMetadataOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. Reservation Affinity for consuming Zonal reservation.
    * 
* - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the reservationAffinity field is set. */ boolean hasReservationAffinity(); /** + * + * *
    * Optional. Reservation Affinity for consuming Zonal reservation.
    * 
* - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reservationAffinity. */ com.google.cloud.dataproc.v1.ReservationAffinity getReservationAffinity(); /** + * + * *
    * Optional. Reservation Affinity for consuming Zonal reservation.
    * 
* - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder(); /** + * + * *
    * Optional. Node Group Affinity for sole-tenant clusters.
    * 
* - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the nodeGroupAffinity field is set. */ boolean hasNodeGroupAffinity(); /** + * + * *
    * Optional. Node Group Affinity for sole-tenant clusters.
    * 
* - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nodeGroupAffinity. */ com.google.cloud.dataproc.v1.NodeGroupAffinity getNodeGroupAffinity(); /** + * + * *
    * Optional. Node Group Affinity for sole-tenant clusters.
    * 
* - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffinityOrBuilder(); /** + * + * *
    * Optional. Shielded Instance Config for clusters using [Compute Engine
    * Shielded
    * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
    * 
* - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the shieldedInstanceConfig field is set. */ boolean hasShieldedInstanceConfig(); /** + * + * *
    * Optional. Shielded Instance Config for clusters using [Compute Engine
    * Shielded
    * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
    * 
* - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The shieldedInstanceConfig. */ com.google.cloud.dataproc.v1.ShieldedInstanceConfig getShieldedInstanceConfig(); /** + * + * *
    * Optional. Shielded Instance Config for clusters using [Compute Engine
    * Shielded
    * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
    * 
* - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); /** + * + * *
    * Optional. Confidential Instance Config for clusters using [Confidential
    * VMs](https://cloud.google.com/compute/confidential-vm/docs).
    * 
* - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the confidentialInstanceConfig field is set. */ boolean hasConfidentialInstanceConfig(); /** + * + * *
    * Optional. Confidential Instance Config for clusters using [Confidential
    * VMs](https://cloud.google.com/compute/confidential-vm/docs).
    * 
* - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The confidentialInstanceConfig. */ com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getConfidentialInstanceConfig(); /** + * + * *
    * Optional. Confidential Instance Config for clusters using [Confidential
    * VMs](https://cloud.google.com/compute/confidential-vm/docs).
    * 
* - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder(); + com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder + getConfidentialInstanceConfigOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java similarity index 68% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java index 9d27bc752548..7912ad40fa76 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to fetch an autoscaling policy.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.GetAutoscalingPolicyRequest} */ -public final class GetAutoscalingPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) GetAutoscalingPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetAutoscalingPolicyRequest.newBuilder() to construct. private GetAutoscalingPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetAutoscalingPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetAutoscalingPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.class, com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.Builder.class); + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.class, + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -62,7 +83,10 @@ protected java.lang.Object newInstance(
    *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
    * 
* - * 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 @@ -71,14 +95,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -90,17 +115,18 @@ public java.lang.String getName() {
    *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
    * 
* - * 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 { @@ -109,6 +135,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +147,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -145,15 +171,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.dataproc.v1.GetAutoscalingPolicyRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest other = (com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) obj; + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest other = + (com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -173,129 +199,136 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest 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.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to fetch an autoscaling policy.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.GetAutoscalingPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.class, com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.Builder.class); + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.class, + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -305,9 +338,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; } @java.lang.Override @@ -326,7 +359,8 @@ public com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest buildPartial() { - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest result = new com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest(this); + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest result = + new com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -336,38 +370,39 @@ public com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -375,7 +410,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest other) { - if (other == com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -406,17 +442,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -429,6 +467,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -440,14 +480,16 @@ public Builder mergeFrom(
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * 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; @@ -456,6 +498,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -467,16 +511,17 @@ public java.lang.String getName() {
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * 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 { @@ -484,6 +529,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -495,21 +542,25 @@ public java.lang.String getName() {
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -521,16 +572,21 @@ public Builder setName(
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The "resource name" of the autoscaling policy, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -542,24 +598,26 @@ public Builder clearName() {
      *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
      * 
* - * 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); } @@ -569,12 +627,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) private static final com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest(); } @@ -583,27 +641,27 @@ public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAutoscalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAutoscalingPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -618,6 +676,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.java index 1e5ac6ac155f..e2dd358bc07f 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; -public interface GetAutoscalingPolicyRequestOrBuilder extends +public interface GetAutoscalingPolicyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -19,11 +37,16 @@ public interface GetAutoscalingPolicyRequestOrBuilder extends
    *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The "resource name" of the autoscaling policy, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -35,9 +58,11 @@ public interface GetAutoscalingPolicyRequestOrBuilder extends
    *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java similarity index 61% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java index 1ce57a240f26..2f3639514f73 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java @@ -1,61 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to get the resource representation for a batch workload.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.GetBatchRequest} */ -public final class GetBatchRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetBatchRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GetBatchRequest) GetBatchRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetBatchRequest.newBuilder() to construct. private GetBatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetBatchRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetBatchRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetBatchRequest.class, com.google.cloud.dataproc.v1.GetBatchRequest.Builder.class); + com.google.cloud.dataproc.v1.GetBatchRequest.class, + com.google.cloud.dataproc.v1.GetBatchRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the batch to retrieve.
    * 
* - * 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 @@ -64,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the batch to retrieve.
    * 
* - * 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 { @@ -95,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.GetBatchRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GetBatchRequest other = (com.google.cloud.dataproc.v1.GetBatchRequest) obj; + com.google.cloud.dataproc.v1.GetBatchRequest other = + (com.google.cloud.dataproc.v1.GetBatchRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +184,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetBatchRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GetBatchRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GetBatchRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.GetBatchRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to get the resource representation for a batch workload.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.GetBatchRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GetBatchRequest) com.google.cloud.dataproc.v1.GetBatchRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetBatchRequest.class, com.google.cloud.dataproc.v1.GetBatchRequest.Builder.class); + com.google.cloud.dataproc.v1.GetBatchRequest.class, + com.google.cloud.dataproc.v1.GetBatchRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.GetBatchRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; } @java.lang.Override @@ -312,7 +344,8 @@ public com.google.cloud.dataproc.v1.GetBatchRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.GetBatchRequest buildPartial() { - com.google.cloud.dataproc.v1.GetBatchRequest result = new com.google.cloud.dataproc.v1.GetBatchRequest(this); + com.google.cloud.dataproc.v1.GetBatchRequest result = + new com.google.cloud.dataproc.v1.GetBatchRequest(this); result.name_ = name_; onBuilt(); return result; @@ -322,38 +355,39 @@ public com.google.cloud.dataproc.v1.GetBatchRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.GetBatchRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.GetBatchRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.GetBatchRequest) other); } else { super.mergeFrom(other); return this; @@ -392,17 +426,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +451,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the batch to retrieve.
      * 
* - * 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; @@ -435,20 +475,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the batch to retrieve.
      * 
* - * 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 { @@ -456,61 +499,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the batch to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the batch to retrieve.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the batch to retrieve.
      * 
* - * 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); } @@ -520,12 +576,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GetBatchRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetBatchRequest) private static final com.google.cloud.dataproc.v1.GetBatchRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GetBatchRequest(); } @@ -534,27 +590,27 @@ public static com.google.cloud.dataproc.v1.GetBatchRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBatchRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBatchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +625,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.GetBatchRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java new file mode 100644 index 000000000000..e8b97dd46998 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +public interface GetBatchRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetBatchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the batch to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the batch to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java index ca9c942096a9..153525a7b6e4 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Request to get the resource representation for a cluster in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.GetClusterRequest} */ -public final class GetClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GetClusterRequest) GetClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetClusterRequest.newBuilder() to construct. private GetClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetClusterRequest() { projectId_ = ""; region_ = ""; @@ -27,38 +45,42 @@ private GetClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetClusterRequest.class, com.google.cloud.dataproc.v1.GetClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.GetClusterRequest.class, + com.google.cloud.dataproc.v1.GetClusterRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -67,30 +89,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -101,11 +123,14 @@ public java.lang.String getProjectId() { public static final int REGION_FIELD_NUMBER = 3; private volatile java.lang.Object region_; /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ @java.lang.Override @@ -114,29 +139,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -147,11 +172,14 @@ public java.lang.String getRegion() { public static final int CLUSTER_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object clusterName_; /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ @java.lang.Override @@ -160,29 +188,29 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -191,6 +219,7 @@ public java.lang.String getClusterName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +231,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -239,19 +267,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.dataproc.v1.GetClusterRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GetClusterRequest other = (com.google.cloud.dataproc.v1.GetClusterRequest) obj; + com.google.cloud.dataproc.v1.GetClusterRequest other = + (com.google.cloud.dataproc.v1.GetClusterRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getRegion() - .equals(other.getRegion())) return false; - if (!getClusterName() - .equals(other.getClusterName())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getClusterName().equals(other.getClusterName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -274,130 +300,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GetClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GetClusterRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.GetClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 to get the resource representation for a cluster in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.GetClusterRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GetClusterRequest) com.google.cloud.dataproc.v1.GetClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetClusterRequest.class, com.google.cloud.dataproc.v1.GetClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.GetClusterRequest.class, + com.google.cloud.dataproc.v1.GetClusterRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.GetClusterRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; } @java.lang.Override @@ -432,7 +464,8 @@ public com.google.cloud.dataproc.v1.GetClusterRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.GetClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.GetClusterRequest result = new com.google.cloud.dataproc.v1.GetClusterRequest(this); + com.google.cloud.dataproc.v1.GetClusterRequest result = + new com.google.cloud.dataproc.v1.GetClusterRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.clusterName_ = clusterName_; @@ -444,38 +477,39 @@ public com.google.cloud.dataproc.v1.GetClusterRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.GetClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.GetClusterRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.GetClusterRequest) other); } else { super.mergeFrom(other); return this; @@ -522,27 +556,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - region_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,19 +593,21 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -576,21 +616,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -598,57 +639,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -656,18 +704,20 @@ public Builder setProjectIdBytes( private java.lang.Object region_ = ""; /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -676,20 +726,21 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -697,54 +748,61 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion( - java.lang.String value) { + public Builder setRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -752,18 +810,20 @@ public Builder setRegionBytes( private java.lang.Object clusterName_ = ""; /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -772,20 +832,21 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -793,61 +854,68 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName( - java.lang.String value) { + public Builder setClusterName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = 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); } @@ -857,12 +925,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GetClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetClusterRequest) private static final com.google.cloud.dataproc.v1.GetClusterRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GetClusterRequest(); } @@ -871,27 +939,27 @@ public static com.google.cloud.dataproc.v1.GetClusterRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -906,6 +974,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.GetClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java index 717cef22eded..fba9993e20e3 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java @@ -1,71 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface GetClusterRequestOrBuilder extends +public interface GetClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ java.lang.String getRegion(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - com.google.protobuf.ByteString - getRegionBytes(); + com.google.protobuf.ByteString getRegionBytes(); /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ java.lang.String getClusterName(); /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString - getClusterNameBytes(); + com.google.protobuf.ByteString getClusterNameBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java index 7f110783cc5d..1f16649ac48a 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to get the resource representation for a job in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.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() { projectId_ = ""; region_ = ""; @@ -27,38 +45,42 @@ private GetJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetJobRequest.class, com.google.cloud.dataproc.v1.GetJobRequest.Builder.class); + com.google.cloud.dataproc.v1.GetJobRequest.class, + com.google.cloud.dataproc.v1.GetJobRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -67,30 +89,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -101,11 +123,14 @@ public java.lang.String getProjectId() { public static final int REGION_FIELD_NUMBER = 3; private volatile java.lang.Object region_; /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ @java.lang.Override @@ -114,29 +139,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -147,11 +172,14 @@ public java.lang.String getRegion() { public static final int JOB_ID_FIELD_NUMBER = 2; private volatile java.lang.Object jobId_; /** + * + * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The jobId. */ @java.lang.Override @@ -160,29 +188,29 @@ public java.lang.String getJobId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; } } /** + * + * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for jobId. */ @java.lang.Override - public com.google.protobuf.ByteString - getJobIdBytes() { + public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobId_ = b; return b; } else { @@ -191,6 +219,7 @@ public java.lang.String getJobId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +231,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -239,19 +267,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.dataproc.v1.GetJobRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GetJobRequest other = (com.google.cloud.dataproc.v1.GetJobRequest) obj; + com.google.cloud.dataproc.v1.GetJobRequest other = + (com.google.cloud.dataproc.v1.GetJobRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getRegion() - .equals(other.getRegion())) return false; - if (!getJobId() - .equals(other.getJobId())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getJobId().equals(other.getJobId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -274,130 +300,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GetJobRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.GetJobRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.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.dataproc.v1.GetJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.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.dataproc.v1.GetJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.v1.GetJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GetJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.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; } /** + * + * *
    * A request to get the resource representation for a job in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.v1.GetJobRequest) com.google.cloud.dataproc.v1.GetJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetJobRequest.class, com.google.cloud.dataproc.v1.GetJobRequest.Builder.class); + com.google.cloud.dataproc.v1.GetJobRequest.class, + com.google.cloud.dataproc.v1.GetJobRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.GetJobRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; } @java.lang.Override @@ -432,7 +464,8 @@ public com.google.cloud.dataproc.v1.GetJobRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.GetJobRequest buildPartial() { - com.google.cloud.dataproc.v1.GetJobRequest result = new com.google.cloud.dataproc.v1.GetJobRequest(this); + com.google.cloud.dataproc.v1.GetJobRequest result = + new com.google.cloud.dataproc.v1.GetJobRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.jobId_ = jobId_; @@ -444,38 +477,39 @@ public com.google.cloud.dataproc.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.dataproc.v1.GetJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.GetJobRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.GetJobRequest) other); } else { super.mergeFrom(other); return this; @@ -522,27 +556,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - region_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,19 +593,21 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -576,21 +616,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -598,57 +639,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -656,18 +704,20 @@ public Builder setProjectIdBytes( private java.lang.Object region_ = ""; /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -676,20 +726,21 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -697,54 +748,61 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion( - java.lang.String value) { + public Builder setRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -752,18 +810,20 @@ public Builder setRegionBytes( private java.lang.Object jobId_ = ""; /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The jobId. */ public java.lang.String getJobId() { java.lang.Object ref = jobId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; @@ -772,20 +832,21 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for jobId. */ - public com.google.protobuf.ByteString - getJobIdBytes() { + public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobId_ = b; return b; } else { @@ -793,61 +854,68 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The jobId to set. * @return This builder for chaining. */ - public Builder setJobId( - java.lang.String value) { + public Builder setJobId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearJobId() { - + jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for jobId to set. * @return This builder for chaining. */ - public Builder setJobIdBytes( - com.google.protobuf.ByteString value) { + public Builder setJobIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -857,12 +925,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GetJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetJobRequest) private static final com.google.cloud.dataproc.v1.GetJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GetJobRequest(); } @@ -871,27 +939,27 @@ public static com.google.cloud.dataproc.v1.GetJobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -906,6 +974,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.GetJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java index 3d7dcd20d0f8..013ec48a9baa 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java @@ -1,71 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface GetJobRequestOrBuilder extends +public interface GetJobRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetJobRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ java.lang.String getRegion(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - com.google.protobuf.ByteString - getRegionBytes(); + com.google.protobuf.ByteString getRegionBytes(); /** + * + * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The jobId. */ java.lang.String getJobId(); /** + * + * *
    * Required. The job ID.
    * 
* * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for jobId. */ - com.google.protobuf.ByteString - getJobIdBytes(); + com.google.protobuf.ByteString getJobIdBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequest.java similarity index 62% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequest.java index a722e63919ee..1e980ee6f70f 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequest.java @@ -1,63 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/node_groups.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to get a node group .
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.GetNodeGroupRequest} */ -public final class GetNodeGroupRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetNodeGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GetNodeGroupRequest) GetNodeGroupRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetNodeGroupRequest.newBuilder() to construct. private GetNodeGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetNodeGroupRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNodeGroupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.NodeGroupsProto + .internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.NodeGroupsProto + .internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetNodeGroupRequest.class, com.google.cloud.dataproc.v1.GetNodeGroupRequest.Builder.class); + com.google.cloud.dataproc.v1.GetNodeGroupRequest.class, + com.google.cloud.dataproc.v1.GetNodeGroupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the node group to retrieve.
    * Format:
    * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,31 +90,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the node group to retrieve.
    * Format:
    * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -99,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +137,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -135,15 +161,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.GetNodeGroupRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GetNodeGroupRequest other = (com.google.cloud.dataproc.v1.GetNodeGroupRequest) obj; + com.google.cloud.dataproc.v1.GetNodeGroupRequest other = + (com.google.cloud.dataproc.v1.GetNodeGroupRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,130 +188,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GetNodeGroupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.GetNodeGroupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to get a node group .
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.GetNodeGroupRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GetNodeGroupRequest) com.google.cloud.dataproc.v1.GetNodeGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.NodeGroupsProto + .internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.NodeGroupsProto + .internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetNodeGroupRequest.class, com.google.cloud.dataproc.v1.GetNodeGroupRequest.Builder.class); + com.google.cloud.dataproc.v1.GetNodeGroupRequest.class, + com.google.cloud.dataproc.v1.GetNodeGroupRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.GetNodeGroupRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -295,9 +327,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.NodeGroupsProto + .internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_descriptor; } @java.lang.Override @@ -316,7 +348,8 @@ public com.google.cloud.dataproc.v1.GetNodeGroupRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.GetNodeGroupRequest buildPartial() { - com.google.cloud.dataproc.v1.GetNodeGroupRequest result = new com.google.cloud.dataproc.v1.GetNodeGroupRequest(this); + com.google.cloud.dataproc.v1.GetNodeGroupRequest result = + new com.google.cloud.dataproc.v1.GetNodeGroupRequest(this); result.name_ = name_; onBuilt(); return result; @@ -326,38 +359,39 @@ public com.google.cloud.dataproc.v1.GetNodeGroupRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.GetNodeGroupRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.GetNodeGroupRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.GetNodeGroupRequest) other); } else { super.mergeFrom(other); return this; @@ -365,7 +399,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.GetNodeGroupRequest other) { - if (other == com.google.cloud.dataproc.v1.GetNodeGroupRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.GetNodeGroupRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -396,17 +431,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -419,20 +456,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the node group to retrieve.
      * Format:
      * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -441,22 +482,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the node group to retrieve.
      * Format:
      * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -464,67 +508,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the node group to retrieve.
      * Format:
      * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the node group to retrieve.
      * Format:
      * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the node group to retrieve.
      * Format:
      * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -534,12 +591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GetNodeGroupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetNodeGroupRequest) private static final com.google.cloud.dataproc.v1.GetNodeGroupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GetNodeGroupRequest(); } @@ -548,27 +605,27 @@ public static com.google.cloud.dataproc.v1.GetNodeGroupRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNodeGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNodeGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,6 +640,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.GetNodeGroupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequestOrBuilder.java new file mode 100644 index 000000000000..c1e0a686d19f --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/node_groups.proto + +package com.google.cloud.dataproc.v1; + +public interface GetNodeGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetNodeGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the node group to retrieve.
+   * Format:
+   * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the node group to retrieve.
+   * Format:
+   * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java index d13a318ef76d..eb818575bd03 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to fetch a workflow template.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.GetWorkflowTemplateRequest} */ -public final class GetWorkflowTemplateRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GetWorkflowTemplateRequest) GetWorkflowTemplateRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetWorkflowTemplateRequest.newBuilder() to construct. private GetWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetWorkflowTemplateRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetWorkflowTemplateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.class, + com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -62,7 +83,10 @@ protected java.lang.Object newInstance(
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * 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 @@ -71,14 +95,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -90,17 +115,18 @@ public java.lang.String getName() {
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * 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 { @@ -111,6 +137,8 @@ public java.lang.String getName() { public static final int VERSION_FIELD_NUMBER = 2; private int version_; /** + * + * *
    * Optional. The version of workflow template to retrieve. Only previously
    * instantiated versions can be retrieved.
@@ -118,6 +146,7 @@ public java.lang.String getName() {
    * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ @java.lang.Override @@ -126,6 +155,7 @@ public int getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,8 +167,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -158,8 +187,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, version_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -169,17 +197,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest other = (com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest) obj; + com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest other = + (com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getVersion() - != other.getVersion()) return false; + if (!getName().equals(other.getName())) return false; + if (getVersion() != other.getVersion()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -201,129 +228,136 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest 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.dataproc.v1.GetWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to fetch a workflow template.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.GetWorkflowTemplateRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GetWorkflowTemplateRequest) com.google.cloud.dataproc.v1.GetWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.class, + com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -335,9 +369,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; } @java.lang.Override @@ -356,7 +390,8 @@ public com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest result = new com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest(this); + com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest result = + new com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest(this); result.name_ = name_; result.version_ = version_; onBuilt(); @@ -367,38 +402,39 @@ public com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest) other); } else { super.mergeFrom(other); return this; @@ -406,7 +442,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest other) { - if (other == com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -440,22 +477,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - version_ = input.readInt32(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + version_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -468,6 +508,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -479,14 +521,16 @@ public Builder mergeFrom(
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * 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; @@ -495,6 +539,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -506,16 +552,17 @@ public java.lang.String getName() {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * 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 { @@ -523,6 +570,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -534,21 +583,25 @@ public java.lang.String getName() {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -560,16 +613,21 @@ public Builder setName(
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -581,24 +639,28 @@ public Builder clearName() {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int version_ ; + private int version_; /** + * + * *
      * Optional. The version of workflow template to retrieve. Only previously
      * instantiated versions can be retrieved.
@@ -606,6 +668,7 @@ public Builder setNameBytes(
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ @java.lang.Override @@ -613,6 +676,8 @@ public int getVersion() { return version_; } /** + * + * *
      * Optional. The version of workflow template to retrieve. Only previously
      * instantiated versions can be retrieved.
@@ -620,16 +685,19 @@ public int getVersion() {
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { - + version_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The version of workflow template to retrieve. Only previously
      * instantiated versions can be retrieved.
@@ -637,17 +705,18 @@ public Builder setVersion(int value) {
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -657,12 +726,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GetWorkflowTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetWorkflowTemplateRequest) private static final com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest(); } @@ -671,27 +740,27 @@ public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkflowTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -706,6 +775,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java index 7c353d7006a3..41a72a2d1e01 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface GetWorkflowTemplateRequestOrBuilder extends +public interface GetWorkflowTemplateRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetWorkflowTemplateRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -19,11 +37,16 @@ public interface GetWorkflowTemplateRequestOrBuilder extends
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -35,13 +58,17 @@ public interface GetWorkflowTemplateRequestOrBuilder extends
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. The version of workflow template to retrieve. Only previously
    * instantiated versions can be retrieved.
@@ -49,6 +76,7 @@ public interface GetWorkflowTemplateRequestOrBuilder extends
    * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ int getVersion(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java similarity index 71% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java index 046cdb0491e2..2cfbf5c73b57 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * The cluster's GKE config.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.GkeClusterConfig} */ -public final class GkeClusterConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GkeClusterConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeClusterConfig) GkeClusterConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GkeClusterConfig.newBuilder() to construct. private GkeClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GkeClusterConfig() { gkeClusterTarget_ = ""; nodePoolTarget_ = java.util.Collections.emptyList(); @@ -26,32 +44,35 @@ private GkeClusterConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GkeClusterConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeClusterConfig.class, com.google.cloud.dataproc.v1.GkeClusterConfig.Builder.class); + com.google.cloud.dataproc.v1.GkeClusterConfig.class, + com.google.cloud.dataproc.v1.GkeClusterConfig.Builder.class); } public static final int GKE_CLUSTER_TARGET_FIELD_NUMBER = 2; private volatile java.lang.Object gkeClusterTarget_; /** + * + * *
    * Optional. A target GKE cluster to deploy to. It must be in the same project and
    * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
@@ -59,6 +80,7 @@ protected java.lang.Object newInstance(
    * 
* * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The gkeClusterTarget. */ @java.lang.Override @@ -67,14 +89,15 @@ public java.lang.String getGkeClusterTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gkeClusterTarget_ = s; return s; } } /** + * + * *
    * Optional. A target GKE cluster to deploy to. It must be in the same project and
    * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
@@ -82,16 +105,15 @@ public java.lang.String getGkeClusterTarget() {
    * 
* * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for gkeClusterTarget. */ @java.lang.Override - public com.google.protobuf.ByteString - getGkeClusterTargetBytes() { + public com.google.protobuf.ByteString getGkeClusterTargetBytes() { java.lang.Object ref = gkeClusterTarget_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gkeClusterTarget_ = b; return b; } else { @@ -102,6 +124,8 @@ public java.lang.String getGkeClusterTarget() { public static final int NODE_POOL_TARGET_FIELD_NUMBER = 3; private java.util.List nodePoolTarget_; /** + * + * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -110,13 +134,17 @@ public java.lang.String getGkeClusterTarget() {
    * nodePoolTarget.
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getNodePoolTargetList() { return nodePoolTarget_; } /** + * + * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -125,14 +153,18 @@ public java.util.List getNodePoo
    * nodePoolTarget.
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getNodePoolTargetOrBuilderList() { return nodePoolTarget_; } /** + * + * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -141,13 +173,17 @@ public java.util.List getNodePoo
    * nodePoolTarget.
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getNodePoolTargetCount() { return nodePoolTarget_.size(); } /** + * + * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -156,13 +192,17 @@ public int getNodePoolTargetCount() {
    * nodePoolTarget.
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.GkeNodePoolTarget getNodePoolTarget(int index) { return nodePoolTarget_.get(index); } /** + * + * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -171,7 +211,9 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget getNodePoolTarget(int inde
    * nodePoolTarget.
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTargetOrBuilder( @@ -180,6 +222,7 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTarget } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +234,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gkeClusterTarget_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gkeClusterTarget_); } @@ -212,8 +254,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gkeClusterTarget_); } for (int i = 0; i < nodePoolTarget_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, nodePoolTarget_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, nodePoolTarget_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -223,17 +264,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.GkeClusterConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GkeClusterConfig other = (com.google.cloud.dataproc.v1.GkeClusterConfig) obj; + com.google.cloud.dataproc.v1.GkeClusterConfig other = + (com.google.cloud.dataproc.v1.GkeClusterConfig) obj; - if (!getGkeClusterTarget() - .equals(other.getGkeClusterTarget())) return false; - if (!getNodePoolTargetList() - .equals(other.getNodePoolTargetList())) return false; + if (!getGkeClusterTarget().equals(other.getGkeClusterTarget())) return false; + if (!getNodePoolTargetList().equals(other.getNodePoolTargetList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -256,130 +296,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.GkeClusterConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 cluster's GKE config.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.GkeClusterConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeClusterConfig) com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeClusterConfig.class, com.google.cloud.dataproc.v1.GkeClusterConfig.Builder.class); + com.google.cloud.dataproc.v1.GkeClusterConfig.class, + com.google.cloud.dataproc.v1.GkeClusterConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.GkeClusterConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -396,9 +442,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; } @java.lang.Override @@ -417,7 +463,8 @@ public com.google.cloud.dataproc.v1.GkeClusterConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.GkeClusterConfig buildPartial() { - com.google.cloud.dataproc.v1.GkeClusterConfig result = new com.google.cloud.dataproc.v1.GkeClusterConfig(this); + com.google.cloud.dataproc.v1.GkeClusterConfig result = + new com.google.cloud.dataproc.v1.GkeClusterConfig(this); int from_bitField0_ = bitField0_; result.gkeClusterTarget_ = gkeClusterTarget_; if (nodePoolTargetBuilder_ == null) { @@ -437,38 +484,39 @@ public com.google.cloud.dataproc.v1.GkeClusterConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.GkeClusterConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.GkeClusterConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.GkeClusterConfig) other); } else { super.mergeFrom(other); return this; @@ -499,9 +547,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeClusterConfig other) { nodePoolTargetBuilder_ = null; nodePoolTarget_ = other.nodePoolTarget_; bitField0_ = (bitField0_ & ~0x00000001); - nodePoolTargetBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodePoolTargetFieldBuilder() : null; + nodePoolTargetBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodePoolTargetFieldBuilder() + : null; } else { nodePoolTargetBuilder_.addAllMessages(other.nodePoolTarget_); } @@ -533,30 +582,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - gkeClusterTarget_ = input.readStringRequireUtf8(); + case 18: + { + gkeClusterTarget_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - com.google.cloud.dataproc.v1.GkeNodePoolTarget m = - input.readMessage( - com.google.cloud.dataproc.v1.GkeNodePoolTarget.parser(), - extensionRegistry); - if (nodePoolTargetBuilder_ == null) { - ensureNodePoolTargetIsMutable(); - nodePoolTarget_.add(m); - } else { - nodePoolTargetBuilder_.addMessage(m); - } - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + com.google.cloud.dataproc.v1.GkeNodePoolTarget m = + input.readMessage( + com.google.cloud.dataproc.v1.GkeNodePoolTarget.parser(), extensionRegistry); + if (nodePoolTargetBuilder_ == null) { + ensureNodePoolTargetIsMutable(); + nodePoolTarget_.add(m); + } else { + nodePoolTargetBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -566,10 +617,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object gkeClusterTarget_ = ""; /** + * + * *
      * Optional. A target GKE cluster to deploy to. It must be in the same project and
      * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
@@ -577,13 +631,13 @@ public Builder mergeFrom(
      * 
* * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The gkeClusterTarget. */ public java.lang.String getGkeClusterTarget() { java.lang.Object ref = gkeClusterTarget_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gkeClusterTarget_ = s; return s; @@ -592,6 +646,8 @@ public java.lang.String getGkeClusterTarget() { } } /** + * + * *
      * Optional. A target GKE cluster to deploy to. It must be in the same project and
      * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
@@ -599,15 +655,14 @@ public java.lang.String getGkeClusterTarget() {
      * 
* * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for gkeClusterTarget. */ - public com.google.protobuf.ByteString - getGkeClusterTargetBytes() { + public com.google.protobuf.ByteString getGkeClusterTargetBytes() { java.lang.Object ref = gkeClusterTarget_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gkeClusterTarget_ = b; return b; } else { @@ -615,6 +670,8 @@ public java.lang.String getGkeClusterTarget() { } } /** + * + * *
      * Optional. A target GKE cluster to deploy to. It must be in the same project and
      * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
@@ -622,20 +679,22 @@ public java.lang.String getGkeClusterTarget() {
      * 
* * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The gkeClusterTarget to set. * @return This builder for chaining. */ - public Builder setGkeClusterTarget( - java.lang.String value) { + public Builder setGkeClusterTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gkeClusterTarget_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A target GKE cluster to deploy to. It must be in the same project and
      * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
@@ -643,15 +702,18 @@ public Builder setGkeClusterTarget(
      * 
* * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearGkeClusterTarget() { - + gkeClusterTarget_ = getDefaultInstance().getGkeClusterTarget(); onChanged(); return this; } /** + * + * *
      * Optional. A target GKE cluster to deploy to. It must be in the same project and
      * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
@@ -659,34 +721,42 @@ public Builder clearGkeClusterTarget() {
      * 
* * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for gkeClusterTarget to set. * @return This builder for chaining. */ - public Builder setGkeClusterTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setGkeClusterTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gkeClusterTarget_ = value; onChanged(); return this; } private java.util.List nodePoolTarget_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNodePoolTargetIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - nodePoolTarget_ = new java.util.ArrayList(nodePoolTarget_); + nodePoolTarget_ = + new java.util.ArrayList( + nodePoolTarget_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolTarget, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder, com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder> nodePoolTargetBuilder_; + com.google.cloud.dataproc.v1.GkeNodePoolTarget, + com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder> + nodePoolTargetBuilder_; /** + * + * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -695,7 +765,9 @@ private void ensureNodePoolTargetIsMutable() {
      * nodePoolTarget.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getNodePoolTargetList() { if (nodePoolTargetBuilder_ == null) { @@ -705,6 +777,8 @@ public java.util.List getNodePoo } } /** + * + * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -713,7 +787,9 @@ public java.util.List getNodePoo
      * nodePoolTarget.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getNodePoolTargetCount() { if (nodePoolTargetBuilder_ == null) { @@ -723,6 +799,8 @@ public int getNodePoolTargetCount() { } } /** + * + * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -731,7 +809,9 @@ public int getNodePoolTargetCount() {
      * nodePoolTarget.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.GkeNodePoolTarget getNodePoolTarget(int index) { if (nodePoolTargetBuilder_ == null) { @@ -741,6 +821,8 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget getNodePoolTarget(int inde } } /** + * + * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -749,7 +831,9 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget getNodePoolTarget(int inde
      * nodePoolTarget.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNodePoolTarget( int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget value) { @@ -766,6 +850,8 @@ public Builder setNodePoolTarget( return this; } /** + * + * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -774,7 +860,9 @@ public Builder setNodePoolTarget(
      * nodePoolTarget.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNodePoolTarget( int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder builderForValue) { @@ -788,6 +876,8 @@ public Builder setNodePoolTarget( return this; } /** + * + * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -796,7 +886,9 @@ public Builder setNodePoolTarget(
      * nodePoolTarget.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addNodePoolTarget(com.google.cloud.dataproc.v1.GkeNodePoolTarget value) { if (nodePoolTargetBuilder_ == null) { @@ -812,6 +904,8 @@ public Builder addNodePoolTarget(com.google.cloud.dataproc.v1.GkeNodePoolTarget return this; } /** + * + * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -820,7 +914,9 @@ public Builder addNodePoolTarget(com.google.cloud.dataproc.v1.GkeNodePoolTarget
      * nodePoolTarget.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addNodePoolTarget( int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget value) { @@ -837,6 +933,8 @@ public Builder addNodePoolTarget( return this; } /** + * + * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -845,7 +943,9 @@ public Builder addNodePoolTarget(
      * nodePoolTarget.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addNodePoolTarget( com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder builderForValue) { @@ -859,6 +959,8 @@ public Builder addNodePoolTarget( return this; } /** + * + * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -867,7 +969,9 @@ public Builder addNodePoolTarget(
      * nodePoolTarget.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addNodePoolTarget( int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder builderForValue) { @@ -881,6 +985,8 @@ public Builder addNodePoolTarget( return this; } /** + * + * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -889,14 +995,15 @@ public Builder addNodePoolTarget(
      * nodePoolTarget.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllNodePoolTarget( java.lang.Iterable values) { if (nodePoolTargetBuilder_ == null) { ensureNodePoolTargetIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodePoolTarget_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodePoolTarget_); onChanged(); } else { nodePoolTargetBuilder_.addAllMessages(values); @@ -904,6 +1011,8 @@ public Builder addAllNodePoolTarget( return this; } /** + * + * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -912,7 +1021,9 @@ public Builder addAllNodePoolTarget(
      * nodePoolTarget.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearNodePoolTarget() { if (nodePoolTargetBuilder_ == null) { @@ -925,6 +1036,8 @@ public Builder clearNodePoolTarget() { return this; } /** + * + * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -933,7 +1046,9 @@ public Builder clearNodePoolTarget() {
      * nodePoolTarget.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeNodePoolTarget(int index) { if (nodePoolTargetBuilder_ == null) { @@ -946,6 +1061,8 @@ public Builder removeNodePoolTarget(int index) { return this; } /** + * + * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -954,13 +1071,17 @@ public Builder removeNodePoolTarget(int index) {
      * nodePoolTarget.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder getNodePoolTargetBuilder( int index) { return getNodePoolTargetFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -969,16 +1090,21 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder getNodePoolTargetB
      * nodePoolTarget.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTargetOrBuilder( int index) { if (nodePoolTargetBuilder_ == null) { - return nodePoolTarget_.get(index); } else { + return nodePoolTarget_.get(index); + } else { return nodePoolTargetBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -987,10 +1113,12 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTarget
      * nodePoolTarget.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getNodePoolTargetOrBuilderList() { + public java.util.List + getNodePoolTargetOrBuilderList() { if (nodePoolTargetBuilder_ != null) { return nodePoolTargetBuilder_.getMessageOrBuilderList(); } else { @@ -998,6 +1126,8 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTarget } } /** + * + * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -1006,13 +1136,17 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTarget
      * nodePoolTarget.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder addNodePoolTargetBuilder() { - return getNodePoolTargetFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.GkeNodePoolTarget.getDefaultInstance()); + return getNodePoolTargetFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.GkeNodePoolTarget.getDefaultInstance()); } /** + * + * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -1021,14 +1155,18 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder addNodePoolTargetB
      * nodePoolTarget.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder addNodePoolTargetBuilder( int index) { - return getNodePoolTargetFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.getDefaultInstance()); + return getNodePoolTargetFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.getDefaultInstance()); } /** + * + * *
      * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
      * must be assigned the 'default' role. Each role can be given to only a
@@ -1037,18 +1175,26 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder addNodePoolTargetB
      * nodePoolTarget.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getNodePoolTargetBuilderList() { + public java.util.List + getNodePoolTargetBuilderList() { return getNodePoolTargetFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolTarget, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder, com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder> + com.google.cloud.dataproc.v1.GkeNodePoolTarget, + com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder> getNodePoolTargetFieldBuilder() { if (nodePoolTargetBuilder_ == null) { - nodePoolTargetBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolTarget, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder, com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder>( + nodePoolTargetBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolTarget, + com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder>( nodePoolTarget_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1057,9 +1203,9 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder addNodePoolTargetB } return nodePoolTargetBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1069,12 +1215,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GkeClusterConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeClusterConfig) private static final com.google.cloud.dataproc.v1.GkeClusterConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeClusterConfig(); } @@ -1083,27 +1229,27 @@ public static com.google.cloud.dataproc.v1.GkeClusterConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1118,6 +1264,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.GkeClusterConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java similarity index 67% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java index 314144fa81df..bc7bd12ad43b 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; -public interface GkeClusterConfigOrBuilder extends +public interface GkeClusterConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeClusterConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. A target GKE cluster to deploy to. It must be in the same project and
    * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
@@ -15,10 +33,13 @@ public interface GkeClusterConfigOrBuilder extends
    * 
* * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The gkeClusterTarget. */ java.lang.String getGkeClusterTarget(); /** + * + * *
    * Optional. A target GKE cluster to deploy to. It must be in the same project and
    * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
@@ -26,12 +47,14 @@ public interface GkeClusterConfigOrBuilder extends
    * 
* * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for gkeClusterTarget. */ - com.google.protobuf.ByteString - getGkeClusterTargetBytes(); + com.google.protobuf.ByteString getGkeClusterTargetBytes(); /** + * + * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -40,11 +63,14 @@ public interface GkeClusterConfigOrBuilder extends
    * nodePoolTarget.
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getNodePoolTargetList(); + java.util.List getNodePoolTargetList(); /** + * + * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -53,10 +79,14 @@ public interface GkeClusterConfigOrBuilder extends
    * nodePoolTarget.
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.GkeNodePoolTarget getNodePoolTarget(int index); /** + * + * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -65,10 +95,14 @@ public interface GkeClusterConfigOrBuilder extends
    * nodePoolTarget.
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getNodePoolTargetCount(); /** + * + * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -77,11 +111,15 @@ public interface GkeClusterConfigOrBuilder extends
    * nodePoolTarget.
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getNodePoolTargetOrBuilderList(); /** + * + * *
    * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
    * must be assigned the 'default' role. Each role can be given to only a
@@ -90,8 +128,9 @@ public interface GkeClusterConfigOrBuilder extends
    * nodePoolTarget.
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTargetOrBuilder( - int index); + com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTargetOrBuilder(int index); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java index edfe143d8cb9..a25537d17a3d 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * The configuration of a GKE NodePool used by a [Dataproc-on-GKE
  * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
@@ -11,82 +28,95 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig}
  */
-public final class GkeNodePoolConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GkeNodePoolConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolConfig)
     GkeNodePoolConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GkeNodePoolConfig.newBuilder() to construct.
   private GkeNodePoolConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GkeNodePoolConfig() {
     locations_ = 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 GkeNodePoolConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.SharedProto
+        .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.SharedProto
+        .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.GkeNodePoolConfig.class, com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder.class);
+            com.google.cloud.dataproc.v1.GkeNodePoolConfig.class,
+            com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder.class);
   }
 
-  public interface GkeNodeConfigOrBuilder extends
+  public interface GkeNodeConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Optional. The name of a Compute Engine [machine
      * type](https://cloud.google.com/compute/docs/machine-types).
      * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The machineType. */ java.lang.String getMachineType(); /** + * + * *
      * Optional. The name of a Compute Engine [machine
      * type](https://cloud.google.com/compute/docs/machine-types).
      * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for machineType. */ - com.google.protobuf.ByteString - getMachineTypeBytes(); + com.google.protobuf.ByteString getMachineTypeBytes(); /** + * + * *
      * Optional. Whether the nodes are created as [preemptible VM
      * instances](https://cloud.google.com/compute/docs/instances/preemptible).
      * 
* * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The preemptible. */ boolean getPreemptible(); /** + * + * *
      * Optional. The number of local SSD disks to attach to the node, which is limited by
      * the maximum number of disks allowable per zone (see [Adding Local
@@ -94,65 +124,92 @@ public interface GkeNodeConfigOrBuilder extends
      * 
* * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The localSsdCount. */ int getLocalSsdCount(); /** + * + * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getAcceleratorsList(); /** + * + * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getAccelerators(int index); + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getAccelerators( + int index); /** + * + * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAcceleratorsCount(); /** + * + * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.dataproc.v1.GkeNodePoolConfig + .GkeNodePoolAcceleratorConfigOrBuilder> getAcceleratorsOrBuilderList(); /** + * + * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder getAcceleratorsOrBuilder( - int index); + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder + getAcceleratorsOrBuilder(int index); /** + * + * *
      * Optional. [Minimum CPU
      * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
@@ -162,10 +219,13 @@ com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBui
      * 
* * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The minCpuPlatform. */ java.lang.String getMinCpuPlatform(); /** + * + * *
      * Optional. [Minimum CPU
      * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
@@ -175,27 +235,30 @@ com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBui
      * 
* * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for minCpuPlatform. */ - com.google.protobuf.ByteString - getMinCpuPlatformBytes(); + com.google.protobuf.ByteString getMinCpuPlatformBytes(); } /** + * + * *
    * Parameters that describe cluster nodes.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig} */ - public static final class GkeNodeConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GkeNodeConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) GkeNodeConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GkeNodeConfig.newBuilder() to construct. private GkeNodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GkeNodeConfig() { machineType_ = ""; accelerators_ = java.util.Collections.emptyList(); @@ -204,38 +267,42 @@ private GkeNodeConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GkeNodeConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.class, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder.class); + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.class, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder.class); } public static final int MACHINE_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object machineType_; /** + * + * *
      * Optional. The name of a Compute Engine [machine
      * type](https://cloud.google.com/compute/docs/machine-types).
      * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The machineType. */ @java.lang.Override @@ -244,30 +311,30 @@ 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; } } /** + * + * *
      * Optional. The name of a Compute Engine [machine
      * type](https://cloud.google.com/compute/docs/machine-types).
      * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -278,12 +345,15 @@ public java.lang.String getMachineType() { public static final int PREEMPTIBLE_FIELD_NUMBER = 10; private boolean preemptible_; /** + * + * *
      * Optional. Whether the nodes are created as [preemptible VM
      * instances](https://cloud.google.com/compute/docs/instances/preemptible).
      * 
* * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The preemptible. */ @java.lang.Override @@ -294,6 +364,8 @@ public boolean getPreemptible() { public static final int LOCAL_SSD_COUNT_FIELD_NUMBER = 7; private int localSsdCount_; /** + * + * *
      * Optional. The number of local SSD disks to attach to the node, which is limited by
      * the maximum number of disks allowable per zone (see [Adding Local
@@ -301,6 +373,7 @@ public boolean getPreemptible() {
      * 
* * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The localSsdCount. */ @java.lang.Override @@ -309,78 +382,108 @@ public int getLocalSsdCount() { } public static final int ACCELERATORS_FIELD_NUMBER = 11; - private java.util.List accelerators_; + private java.util.List< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> + accelerators_; /** + * + * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getAcceleratorsList() { + public java.util.List< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> + getAcceleratorsList() { return accelerators_; } /** + * + * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.dataproc.v1.GkeNodePoolConfig + .GkeNodePoolAcceleratorConfigOrBuilder> getAcceleratorsOrBuilderList() { return accelerators_; } /** + * + * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getAcceleratorsCount() { return accelerators_.size(); } /** + * + * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getAccelerators(int index) { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + getAccelerators(int index) { return accelerators_.get(index); } /** + * + * *
      * Optional. A list of [hardware
      * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
      * each node.
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder getAcceleratorsOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder + getAcceleratorsOrBuilder(int index) { return accelerators_.get(index); } public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 13; private volatile java.lang.Object minCpuPlatform_; /** + * + * *
      * Optional. [Minimum CPU
      * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
@@ -390,6 +493,7 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConf
      * 
* * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The minCpuPlatform. */ @java.lang.Override @@ -398,14 +502,15 @@ 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; } } /** + * + * *
      * Optional. [Minimum CPU
      * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
@@ -415,16 +520,15 @@ public java.lang.String getMinCpuPlatform() {
      * 
* * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -433,6 +537,7 @@ public java.lang.String getMinCpuPlatform() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -444,8 +549,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_); } @@ -474,16 +578,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, machineType_); } if (localSsdCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, localSsdCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, localSsdCount_); } if (preemptible_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, preemptible_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, preemptible_); } for (int i = 0; i < accelerators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, accelerators_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, accelerators_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, minCpuPlatform_); @@ -496,23 +597,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.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig other = (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) obj; - - if (!getMachineType() - .equals(other.getMachineType())) return false; - if (getPreemptible() - != other.getPreemptible()) return false; - if (getLocalSsdCount() - != other.getLocalSsdCount()) return false; - if (!getAcceleratorsList() - .equals(other.getAcceleratorsList())) return false; - if (!getMinCpuPlatform() - .equals(other.getMinCpuPlatform())) return false; + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig other = + (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) obj; + + if (!getMachineType().equals(other.getMachineType())) return false; + if (getPreemptible() != other.getPreemptible()) return false; + if (getLocalSsdCount() != other.getLocalSsdCount()) return false; + if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; + if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -527,8 +624,7 @@ public int hashCode() { hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getMachineType().hashCode(); hash = (37 * hash) + PREEMPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPreemptible()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreemptible()); hash = (37 * hash) + LOCAL_SSD_COUNT_FIELD_NUMBER; hash = (53 * hash) + getLocalSsdCount(); if (getAcceleratorsCount() > 0) { @@ -543,87 +639,94 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig 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.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -633,39 +736,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Parameters that describe cluster nodes.
      * 
* * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.class, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder.class); + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.class, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -688,13 +793,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; } @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getDefaultInstanceForType() { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig + getDefaultInstanceForType() { return com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance(); } @@ -709,7 +815,8 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig buildPartial() { - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig result = new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig(this); + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig result = + new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig(this); int from_bitField0_ = bitField0_; result.machineType_ = machineType_; result.preemptible_ = preemptible_; @@ -732,38 +839,41 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) other); } else { super.mergeFrom(other); return this; @@ -771,7 +881,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig other) { - if (other == com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance()) return this; + if (other + == com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance()) + return this; if (!other.getMachineType().isEmpty()) { machineType_ = other.machineType_; onChanged(); @@ -800,9 +912,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeC 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_); } @@ -838,45 +951,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - machineType_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 56: { - localSsdCount_ = input.readInt32(); - - break; - } // case 56 - case 80: { - preemptible_ = input.readBool(); - - break; - } // case 80 - case 90: { - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig m = - input.readMessage( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.parser(), - extensionRegistry); - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(m); - } else { - acceleratorsBuilder_.addMessage(m); - } - break; - } // case 90 - case 106: { - minCpuPlatform_ = input.readStringRequireUtf8(); - - break; - } // case 106 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + machineType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 56: + { + localSsdCount_ = input.readInt32(); + + break; + } // case 56 + case 80: + { + preemptible_ = input.readBool(); + + break; + } // case 80 + case 90: + { + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig m = + input.readMessage( + com.google.cloud.dataproc.v1.GkeNodePoolConfig + .GkeNodePoolAcceleratorConfig.parser(), + extensionRegistry); + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(m); + } else { + acceleratorsBuilder_.addMessage(m); + } + break; + } // case 90 + case 106: + { + minCpuPlatform_ = input.readStringRequireUtf8(); + + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -886,23 +1006,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object machineType_ = ""; /** + * + * *
        * Optional. The name of a Compute Engine [machine
        * type](https://cloud.google.com/compute/docs/machine-types).
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -911,21 +1034,22 @@ public java.lang.String getMachineType() { } } /** + * + * *
        * Optional. The name of a Compute Engine [machine
        * type](https://cloud.google.com/compute/docs/machine-types).
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -933,70 +1057,80 @@ public java.lang.String getMachineType() { } } /** + * + * *
        * Optional. The name of a Compute Engine [machine
        * type](https://cloud.google.com/compute/docs/machine-types).
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
        * Optional. The name of a Compute Engine [machine
        * type](https://cloud.google.com/compute/docs/machine-types).
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMachineType() { - + machineType_ = getDefaultInstance().getMachineType(); onChanged(); return this; } /** + * + * *
        * Optional. The name of a Compute Engine [machine
        * type](https://cloud.google.com/compute/docs/machine-types).
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } - private boolean preemptible_ ; + private boolean preemptible_; /** + * + * *
        * Optional. Whether the nodes are created as [preemptible VM
        * instances](https://cloud.google.com/compute/docs/instances/preemptible).
        * 
* * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The preemptible. */ @java.lang.Override @@ -1004,39 +1138,47 @@ public boolean getPreemptible() { return preemptible_; } /** + * + * *
        * Optional. Whether the nodes are created as [preemptible VM
        * instances](https://cloud.google.com/compute/docs/instances/preemptible).
        * 
* * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The preemptible to set. * @return This builder for chaining. */ public Builder setPreemptible(boolean value) { - + preemptible_ = value; onChanged(); return this; } /** + * + * *
        * Optional. Whether the nodes are created as [preemptible VM
        * instances](https://cloud.google.com/compute/docs/instances/preemptible).
        * 
* * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPreemptible() { - + preemptible_ = false; onChanged(); return this; } - private int localSsdCount_ ; + private int localSsdCount_; /** + * + * *
        * Optional. The number of local SSD disks to attach to the node, which is limited by
        * the maximum number of disks allowable per zone (see [Adding Local
@@ -1044,6 +1186,7 @@ public Builder clearPreemptible() {
        * 
* * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The localSsdCount. */ @java.lang.Override @@ -1051,6 +1194,8 @@ public int getLocalSsdCount() { return localSsdCount_; } /** + * + * *
        * Optional. The number of local SSD disks to attach to the node, which is limited by
        * the maximum number of disks allowable per zone (see [Adding Local
@@ -1058,16 +1203,19 @@ public int getLocalSsdCount() {
        * 
* * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The localSsdCount to set. * @return This builder for chaining. */ public Builder setLocalSsdCount(int value) { - + localSsdCount_ = value; onChanged(); return this; } /** + * + * *
        * Optional. The number of local SSD disks to attach to the node, which is limited by
        * the maximum number of disks allowable per zone (see [Adding Local
@@ -1075,37 +1223,52 @@ public Builder setLocalSsdCount(int value) {
        * 
* * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLocalSsdCount() { - + localSsdCount_ = 0; onChanged(); return this; } - private java.util.List accelerators_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> + accelerators_ = java.util.Collections.emptyList(); + private void ensureAcceleratorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - accelerators_ = new java.util.ArrayList(accelerators_); + accelerators_ = + new java.util.ArrayList< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig>( + accelerators_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder> acceleratorsBuilder_; + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder> + acceleratorsBuilder_; /** + * + * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getAcceleratorsList() { + public java.util.List< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> + getAcceleratorsList() { if (acceleratorsBuilder_ == null) { return java.util.Collections.unmodifiableList(accelerators_); } else { @@ -1113,13 +1276,17 @@ public java.util.List * Optional. A list of [hardware * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to * each node. *
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getAcceleratorsCount() { if (acceleratorsBuilder_ == null) { @@ -1129,15 +1296,20 @@ public int getAcceleratorsCount() { } } /** + * + * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getAccelerators(int index) { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + getAccelerators(int index) { if (acceleratorsBuilder_ == null) { return accelerators_.get(index); } else { @@ -1145,16 +1317,21 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConf } } /** + * + * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAccelerators( - int index, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value) { + int index, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value) { if (acceleratorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1168,16 +1345,22 @@ public Builder setAccelerators( return this; } /** + * + * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAccelerators( - int index, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder builderForValue) { + int index, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder + builderForValue) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.set(index, builderForValue.build()); @@ -1188,15 +1371,20 @@ public Builder setAccelerators( return this; } /** + * + * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addAccelerators(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value) { + public Builder addAccelerators( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value) { if (acceleratorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1210,16 +1398,21 @@ public Builder addAccelerators(com.google.cloud.dataproc.v1.GkeNodePoolConfig.Gk return this; } /** + * + * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAccelerators( - int index, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value) { + int index, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value) { if (acceleratorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1233,16 +1426,21 @@ public Builder addAccelerators( return this; } /** + * + * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAccelerators( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder builderForValue) { + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder + builderForValue) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.add(builderForValue.build()); @@ -1253,16 +1451,22 @@ public Builder addAccelerators( return this; } /** + * + * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAccelerators( - int index, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder builderForValue) { + int index, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder + builderForValue) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.add(index, builderForValue.build()); @@ -1273,20 +1477,26 @@ public Builder addAccelerators( return this; } /** + * + * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllAccelerators( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> + 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); @@ -1294,13 +1504,17 @@ public Builder addAllAccelerators( return this; } /** + * + * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAccelerators() { if (acceleratorsBuilder_ == null) { @@ -1313,13 +1527,17 @@ public Builder clearAccelerators() { return this; } /** + * + * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeAccelerators(int index) { if (acceleratorsBuilder_ == null) { @@ -1332,45 +1550,61 @@ public Builder removeAccelerators(int index) { return this; } /** + * + * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder getAcceleratorsBuilder( - int index) { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder + getAcceleratorsBuilder(int index) { return getAcceleratorsFieldBuilder().getBuilder(index); } /** + * + * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder getAcceleratorsOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder + getAcceleratorsOrBuilder(int index) { if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); } else { + return accelerators_.get(index); + } else { return acceleratorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAcceleratorsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.dataproc.v1.GkeNodePoolConfig + .GkeNodePoolAcceleratorConfigOrBuilder> + getAcceleratorsOrBuilderList() { if (acceleratorsBuilder_ != null) { return acceleratorsBuilder_.getMessageOrBuilderList(); } else { @@ -1378,51 +1612,78 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConf } } /** + * + * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder addAcceleratorsBuilder() { - return getAcceleratorsFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.getDefaultInstance()); + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder + addAcceleratorsBuilder() { + return getAcceleratorsFieldBuilder() + .addBuilder( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + .getDefaultInstance()); } /** + * + * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder addAcceleratorsBuilder( - int index) { - return getAcceleratorsFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.getDefaultInstance()); + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder + addAcceleratorsBuilder(int index) { + return getAcceleratorsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + .getDefaultInstance()); } /** + * + * *
        * Optional. A list of [hardware
        * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
        * each node.
        * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAcceleratorsBuilderList() { + public java.util.List< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder> + getAcceleratorsBuilderList() { return getAcceleratorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder> + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder> getAcceleratorsFieldBuilder() { if (acceleratorsBuilder_ == null) { - acceleratorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder>( + acceleratorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + .Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfig + .GkeNodePoolAcceleratorConfigOrBuilder>( accelerators_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1434,6 +1695,8 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConf private java.lang.Object minCpuPlatform_ = ""; /** + * + * *
        * Optional. [Minimum CPU
        * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
@@ -1443,13 +1706,13 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConf
        * 
* * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1458,6 +1721,8 @@ public java.lang.String getMinCpuPlatform() { } } /** + * + * *
        * Optional. [Minimum CPU
        * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
@@ -1467,15 +1732,14 @@ public java.lang.String getMinCpuPlatform() {
        * 
* * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1483,6 +1747,8 @@ public java.lang.String getMinCpuPlatform() { } } /** + * + * *
        * Optional. [Minimum CPU
        * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
@@ -1492,20 +1758,22 @@ public java.lang.String getMinCpuPlatform() {
        * 
* * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
        * Optional. [Minimum CPU
        * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
@@ -1515,15 +1783,18 @@ public Builder setMinCpuPlatform(
        * 
* * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMinCpuPlatform() { - + minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); onChanged(); return this; } /** + * + * *
        * Optional. [Minimum CPU
        * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
@@ -1533,20 +1804,21 @@ public Builder clearMinCpuPlatform() {
        * 
* * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1559,41 +1831,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) - private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig DEFAULT_INSTANCE; + private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig(); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getDefaultInstance() { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeNodeConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeNodeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1605,47 +1880,58 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getDefaultInstanceForType() { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface GkeNodePoolAcceleratorConfigOrBuilder extends + public interface GkeNodePoolAcceleratorConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The number of accelerator cards exposed to an instance.
      * 
* * int64 accelerator_count = 1; + * * @return The acceleratorCount. */ long getAcceleratorCount(); /** + * + * *
      * The accelerator type resource namename (see GPUs on Compute Engine).
      * 
* * string accelerator_type = 2; + * * @return The acceleratorType. */ java.lang.String getAcceleratorType(); /** + * + * *
      * The accelerator type resource namename (see GPUs on Compute Engine).
      * 
* * string accelerator_type = 2; + * * @return The bytes for acceleratorType. */ - com.google.protobuf.ByteString - getAcceleratorTypeBytes(); + com.google.protobuf.ByteString getAcceleratorTypeBytes(); } /** + * + * *
    * A GkeNodeConfigAcceleratorConfig represents a Hardware Accelerator request
    * for a NodePool.
@@ -1653,52 +1939,60 @@ public interface GkeNodePoolAcceleratorConfigOrBuilder extends
    *
    * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig}
    */
-  public static final class GkeNodePoolAcceleratorConfig extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class GkeNodePoolAcceleratorConfig
+      extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig)
       GkeNodePoolAcceleratorConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use GkeNodePoolAcceleratorConfig.newBuilder() to construct.
-    private GkeNodePoolAcceleratorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    private GkeNodePoolAcceleratorConfig(
+        com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private GkeNodePoolAcceleratorConfig() {
       acceleratorType_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new GkeNodePoolAcceleratorConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.SharedProto
+          .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.SharedProto
+          .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.class, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder.class);
+              com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.class,
+              com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder
+                  .class);
     }
 
     public static final int ACCELERATOR_COUNT_FIELD_NUMBER = 1;
     private long acceleratorCount_;
     /**
+     *
+     *
      * 
      * The number of accelerator cards exposed to an instance.
      * 
* * int64 accelerator_count = 1; + * * @return The acceleratorCount. */ @java.lang.Override @@ -1709,11 +2003,14 @@ public long getAcceleratorCount() { public static final int ACCELERATOR_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object acceleratorType_; /** + * + * *
      * The accelerator type resource namename (see GPUs on Compute Engine).
      * 
* * string accelerator_type = 2; + * * @return The acceleratorType. */ @java.lang.Override @@ -1722,29 +2019,29 @@ public java.lang.String getAcceleratorType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); acceleratorType_ = s; return s; } } /** + * + * *
      * The accelerator type resource namename (see GPUs on Compute Engine).
      * 
* * string accelerator_type = 2; + * * @return The bytes for acceleratorType. */ @java.lang.Override - public com.google.protobuf.ByteString - getAcceleratorTypeBytes() { + public com.google.protobuf.ByteString getAcceleratorTypeBytes() { java.lang.Object ref = acceleratorType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); acceleratorType_ = b; return b; } else { @@ -1753,6 +2050,7 @@ public java.lang.String getAcceleratorType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1764,8 +2062,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (acceleratorCount_ != 0L) { output.writeInt64(1, acceleratorCount_); } @@ -1782,8 +2079,7 @@ public int getSerializedSize() { size = 0; if (acceleratorCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, acceleratorCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, acceleratorCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acceleratorType_); @@ -1796,17 +2092,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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig)) { + if (!(obj + instanceof com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig other = (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) obj; + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig other = + (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) obj; - if (getAcceleratorCount() - != other.getAcceleratorCount()) return false; - if (!getAcceleratorType() - .equals(other.getAcceleratorType())) return false; + if (getAcceleratorCount() != other.getAcceleratorCount()) return false; + if (!getAcceleratorType().equals(other.getAcceleratorType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1819,8 +2115,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCELERATOR_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAcceleratorCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAcceleratorCount()); hash = (37 * hash) + ACCELERATOR_TYPE_FIELD_NUMBER; hash = (53 * hash) + getAcceleratorType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -1828,88 +2123,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1919,6 +2227,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A GkeNodeConfigAcceleratorConfig represents a Hardware Accelerator request
      * for a NodePool.
@@ -1926,33 +2236,35 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig)
         com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.dataproc.v1.SharedProto
+            .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable
+        return com.google.cloud.dataproc.v1.SharedProto
+            .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.class, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder.class);
+                com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.class,
+                com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.newBuilder()
-      private Builder() {
-
-      }
+      // Construct using
+      // com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.newBuilder()
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1964,19 +2276,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.dataproc.v1.SharedProto
+            .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getDefaultInstanceForType() {
-        return com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.getDefaultInstance();
+      public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig
+          getDefaultInstanceForType() {
+        return com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig build() {
-        com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig result = buildPartial();
+        com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -1984,8 +2299,10 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConf
       }
 
       @java.lang.Override
-      public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig buildPartial() {
-        com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig result = new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig(this);
+      public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig
+          buildPartial() {
+        com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig result =
+            new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig(this);
         result.acceleratorCount_ = acceleratorCount_;
         result.acceleratorType_ = acceleratorType_;
         onBuilt();
@@ -1996,46 +2313,55 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConf
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) {
-          return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig)other);
+        if (other
+            instanceof
+            com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) {
+          return mergeFrom(
+              (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig other) {
-        if (other == com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig other) {
+        if (other
+            == com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig
+                .getDefaultInstance()) return this;
         if (other.getAcceleratorCount() != 0L) {
           setAcceleratorCount(other.getAcceleratorCount());
         }
@@ -2069,22 +2395,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8: {
-                acceleratorCount_ = input.readInt64();
-
-                break;
-              } // case 8
-              case 18: {
-                acceleratorType_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 18
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 8:
+                {
+                  acceleratorCount_ = input.readInt64();
+
+                  break;
+                } // case 8
+              case 18:
+                {
+                  acceleratorType_ = input.readStringRequireUtf8();
+
+                  break;
+                } // case 18
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2095,13 +2424,16 @@ public Builder mergeFrom(
         return this;
       }
 
-      private long acceleratorCount_ ;
+      private long acceleratorCount_;
       /**
+       *
+       *
        * 
        * The number of accelerator cards exposed to an instance.
        * 
* * int64 accelerator_count = 1; + * * @return The acceleratorCount. */ @java.lang.Override @@ -2109,30 +2441,36 @@ public long getAcceleratorCount() { return acceleratorCount_; } /** + * + * *
        * The number of accelerator cards exposed to an instance.
        * 
* * int64 accelerator_count = 1; + * * @param value The acceleratorCount to set. * @return This builder for chaining. */ public Builder setAcceleratorCount(long value) { - + acceleratorCount_ = value; onChanged(); return this; } /** + * + * *
        * The number of accelerator cards exposed to an instance.
        * 
* * int64 accelerator_count = 1; + * * @return This builder for chaining. */ public Builder clearAcceleratorCount() { - + acceleratorCount_ = 0L; onChanged(); return this; @@ -2140,18 +2478,20 @@ public Builder clearAcceleratorCount() { private java.lang.Object acceleratorType_ = ""; /** + * + * *
        * The accelerator type resource namename (see GPUs on Compute Engine).
        * 
* * string accelerator_type = 2; + * * @return The acceleratorType. */ public java.lang.String getAcceleratorType() { java.lang.Object ref = acceleratorType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); acceleratorType_ = s; return s; @@ -2160,20 +2500,21 @@ public java.lang.String getAcceleratorType() { } } /** + * + * *
        * The accelerator type resource namename (see GPUs on Compute Engine).
        * 
* * string accelerator_type = 2; + * * @return The bytes for acceleratorType. */ - public com.google.protobuf.ByteString - getAcceleratorTypeBytes() { + public com.google.protobuf.ByteString getAcceleratorTypeBytes() { java.lang.Object ref = acceleratorType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); acceleratorType_ = b; return b; } else { @@ -2181,58 +2522,66 @@ public java.lang.String getAcceleratorType() { } } /** + * + * *
        * The accelerator type resource namename (see GPUs on Compute Engine).
        * 
* * string accelerator_type = 2; + * * @param value The acceleratorType to set. * @return This builder for chaining. */ - public Builder setAcceleratorType( - java.lang.String value) { + public Builder setAcceleratorType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + acceleratorType_ = value; onChanged(); return this; } /** + * + * *
        * The accelerator type resource namename (see GPUs on Compute Engine).
        * 
* * string accelerator_type = 2; + * * @return This builder for chaining. */ public Builder clearAcceleratorType() { - + acceleratorType_ = getDefaultInstance().getAcceleratorType(); onChanged(); return this; } /** + * + * *
        * The accelerator type resource namename (see GPUs on Compute Engine).
        * 
* * string accelerator_type = 2; + * * @param value The bytes for acceleratorType to set. * @return This builder for chaining. */ - public Builder setAcceleratorTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setAcceleratorTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + acceleratorType_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2245,41 +2594,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) - private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig DEFAULT_INSTANCE; + private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig(); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getDefaultInstance() { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeNodePoolAcceleratorConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeNodePoolAcceleratorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2291,39 +2644,48 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getDefaultInstanceForType() { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface GkeNodePoolAutoscalingConfigOrBuilder extends + public interface GkeNodePoolAutoscalingConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The minimum number of nodes in the NodePool. Must be >= 0 and <=
      * max_node_count.
      * 
* * int32 min_node_count = 2; + * * @return The minNodeCount. */ int getMinNodeCount(); /** + * + * *
      * The maximum number of nodes in the NodePool. Must be >= min_node_count.
      * **Note:** Quota must be sufficient to scale up the cluster.
      * 
* * int32 max_node_count = 3; + * * @return The maxNodeCount. */ int getMaxNodeCount(); } /** + * + * *
    * GkeNodePoolAutoscaling contains information the cluster autoscaler needs to
    * adjust the size of the node pool to the current cluster usage.
@@ -2331,52 +2693,59 @@ public interface GkeNodePoolAutoscalingConfigOrBuilder extends
    *
    * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig}
    */
-  public static final class GkeNodePoolAutoscalingConfig extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class GkeNodePoolAutoscalingConfig
+      extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig)
       GkeNodePoolAutoscalingConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use GkeNodePoolAutoscalingConfig.newBuilder() to construct.
-    private GkeNodePoolAutoscalingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    private GkeNodePoolAutoscalingConfig(
+        com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private GkeNodePoolAutoscalingConfig() {
-    }
+
+    private GkeNodePoolAutoscalingConfig() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new GkeNodePoolAutoscalingConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.SharedProto
+          .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.SharedProto
+          .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.class, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder.class);
+              com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.class,
+              com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder
+                  .class);
     }
 
     public static final int MIN_NODE_COUNT_FIELD_NUMBER = 2;
     private int minNodeCount_;
     /**
+     *
+     *
      * 
      * The minimum number of nodes in the NodePool. Must be >= 0 and <=
      * max_node_count.
      * 
* * int32 min_node_count = 2; + * * @return The minNodeCount. */ @java.lang.Override @@ -2387,12 +2756,15 @@ public int getMinNodeCount() { public static final int MAX_NODE_COUNT_FIELD_NUMBER = 3; private int maxNodeCount_; /** + * + * *
      * The maximum number of nodes in the NodePool. Must be >= min_node_count.
      * **Note:** Quota must be sufficient to scale up the cluster.
      * 
* * int32 max_node_count = 3; + * * @return The maxNodeCount. */ @java.lang.Override @@ -2401,6 +2773,7 @@ public int getMaxNodeCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2412,8 +2785,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (minNodeCount_ != 0) { output.writeInt32(2, minNodeCount_); } @@ -2430,12 +2802,10 @@ public int getSerializedSize() { size = 0; if (minNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, minNodeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minNodeCount_); } if (maxNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, maxNodeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxNodeCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2445,17 +2815,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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig)) { + if (!(obj + instanceof com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig other = (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) obj; + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig other = + (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) obj; - if (getMinNodeCount() - != other.getMinNodeCount()) return false; - if (getMaxNodeCount() - != other.getMaxNodeCount()) return false; + if (getMinNodeCount() != other.getMinNodeCount()) return false; + if (getMaxNodeCount() != other.getMaxNodeCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2476,88 +2846,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2567,6 +2950,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * GkeNodePoolAutoscaling contains information the cluster autoscaler needs to
      * adjust the size of the node pool to the current cluster usage.
@@ -2574,33 +2959,35 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig)
         com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.dataproc.v1.SharedProto
+            .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable
+        return com.google.cloud.dataproc.v1.SharedProto
+            .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.class, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder.class);
+                com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.class,
+                com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.newBuilder()
-      private Builder() {
-
-      }
+      // Construct using
+      // com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.newBuilder()
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2612,19 +2999,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.dataproc.v1.SharedProto
+            .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig getDefaultInstanceForType() {
-        return com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.getDefaultInstance();
+      public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig
+          getDefaultInstanceForType() {
+        return com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig build() {
-        com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig result = buildPartial();
+        com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -2632,8 +3022,10 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConf
       }
 
       @java.lang.Override
-      public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig buildPartial() {
-        com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig result = new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig(this);
+      public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig
+          buildPartial() {
+        com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig result =
+            new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig(this);
         result.minNodeCount_ = minNodeCount_;
         result.maxNodeCount_ = maxNodeCount_;
         onBuilt();
@@ -2644,46 +3036,55 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConf
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) {
-          return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig)other);
+        if (other
+            instanceof
+            com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) {
+          return mergeFrom(
+              (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig other) {
-        if (other == com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig other) {
+        if (other
+            == com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig
+                .getDefaultInstance()) return this;
         if (other.getMinNodeCount() != 0) {
           setMinNodeCount(other.getMinNodeCount());
         }
@@ -2716,22 +3117,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 16: {
-                minNodeCount_ = input.readInt32();
-
-                break;
-              } // case 16
-              case 24: {
-                maxNodeCount_ = input.readInt32();
-
-                break;
-              } // case 24
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 16:
+                {
+                  minNodeCount_ = input.readInt32();
+
+                  break;
+                } // case 16
+              case 24:
+                {
+                  maxNodeCount_ = input.readInt32();
+
+                  break;
+                } // case 24
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2742,14 +3146,17 @@ public Builder mergeFrom(
         return this;
       }
 
-      private int minNodeCount_ ;
+      private int minNodeCount_;
       /**
+       *
+       *
        * 
        * The minimum number of nodes in the NodePool. Must be >= 0 and <=
        * max_node_count.
        * 
* * int32 min_node_count = 2; + * * @return The minNodeCount. */ @java.lang.Override @@ -2757,45 +3164,54 @@ public int getMinNodeCount() { return minNodeCount_; } /** + * + * *
        * The minimum number of nodes in the NodePool. Must be >= 0 and <=
        * max_node_count.
        * 
* * int32 min_node_count = 2; + * * @param value The minNodeCount to set. * @return This builder for chaining. */ public Builder setMinNodeCount(int value) { - + minNodeCount_ = value; onChanged(); return this; } /** + * + * *
        * The minimum number of nodes in the NodePool. Must be >= 0 and <=
        * max_node_count.
        * 
* * int32 min_node_count = 2; + * * @return This builder for chaining. */ public Builder clearMinNodeCount() { - + minNodeCount_ = 0; onChanged(); return this; } - private int maxNodeCount_ ; + private int maxNodeCount_; /** + * + * *
        * The maximum number of nodes in the NodePool. Must be >= min_node_count.
        * **Note:** Quota must be sufficient to scale up the cluster.
        * 
* * int32 max_node_count = 3; + * * @return The maxNodeCount. */ @java.lang.Override @@ -2803,36 +3219,43 @@ public int getMaxNodeCount() { return maxNodeCount_; } /** + * + * *
        * The maximum number of nodes in the NodePool. Must be >= min_node_count.
        * **Note:** Quota must be sufficient to scale up the cluster.
        * 
* * int32 max_node_count = 3; + * * @param value The maxNodeCount to set. * @return This builder for chaining. */ public Builder setMaxNodeCount(int value) { - + maxNodeCount_ = value; onChanged(); return this; } /** + * + * *
        * The maximum number of nodes in the NodePool. Must be >= min_node_count.
        * **Note:** Quota must be sufficient to scale up the cluster.
        * 
* * int32 max_node_count = 3; + * * @return This builder for chaining. */ public Builder clearMaxNodeCount() { - + maxNodeCount_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2845,41 +3268,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) - private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig DEFAULT_INSTANCE; + private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig(); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig getDefaultInstance() { + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeNodePoolAutoscalingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeNodePoolAutoscalingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2891,20 +3318,25 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig getDefaultInstanceForType() { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int CONFIG_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config_; /** + * + * *
    * Optional. The node pool configuration.
    * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -2912,32 +3344,46 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Optional. The node pool configuration.
    * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getConfig() { - return config_ == null ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Optional. The node pool configuration.
    * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder getConfigOrBuilder() { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder + getConfigOrBuilder() { return getConfig(); } public static final int LOCATIONS_FIELD_NUMBER = 13; private com.google.protobuf.LazyStringList locations_; /** + * + * *
    * Optional. The list of Compute Engine
    * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -2948,13 +3394,15 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder get
    * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the locations. */ - public com.google.protobuf.ProtocolStringList - getLocationsList() { + public com.google.protobuf.ProtocolStringList getLocationsList() { return locations_; } /** + * + * *
    * Optional. The list of Compute Engine
    * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -2965,12 +3413,15 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder get
    * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of locations. */ public int getLocationsCount() { return locations_.size(); } /** + * + * *
    * Optional. The list of Compute Engine
    * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -2981,6 +3432,7 @@ public int getLocationsCount() {
    * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The locations at the given index. */ @@ -2988,6 +3440,8 @@ public java.lang.String getLocations(int index) { return locations_.get(index); } /** + * + * *
    * Optional. The list of Compute Engine
    * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -2998,23 +3452,28 @@ public java.lang.String getLocations(int index) {
    * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the locations at the given index. */ - public com.google.protobuf.ByteString - getLocationsBytes(int index) { + public com.google.protobuf.ByteString getLocationsBytes(int index) { return locations_.getByteString(index); } public static final int AUTOSCALING_FIELD_NUMBER = 4; private com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling_; /** + * + * *
    * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
    * only when a valid configuration is present.
    * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the autoscaling field is set. */ @java.lang.Override @@ -3022,32 +3481,47 @@ public boolean hasAutoscaling() { return autoscaling_ != null; } /** + * + * *
    * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
    * only when a valid configuration is present.
    * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The autoscaling. */ @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig getAutoscaling() { - return autoscaling_ == null ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.getDefaultInstance() : autoscaling_; + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + getAutoscaling() { + return autoscaling_ == null + ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + .getDefaultInstance() + : autoscaling_; } /** + * + * *
    * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
    * only when a valid configuration is present.
    * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder getAutoscalingOrBuilder() { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder + getAutoscalingOrBuilder() { return getAutoscaling(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3059,8 +3533,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (config_ != null) { output.writeMessage(2, getConfig()); } @@ -3080,12 +3553,10 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); } if (autoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAutoscaling()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAutoscaling()); } { int dataSize = 0; @@ -3103,24 +3574,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.dataproc.v1.GkeNodePoolConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GkeNodePoolConfig other = (com.google.cloud.dataproc.v1.GkeNodePoolConfig) obj; + com.google.cloud.dataproc.v1.GkeNodePoolConfig other = + (com.google.cloud.dataproc.v1.GkeNodePoolConfig) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } - if (!getLocationsList() - .equals(other.getLocationsList())) return false; + if (!getLocationsList().equals(other.getLocationsList())) return false; if (hasAutoscaling() != other.hasAutoscaling()) return false; if (hasAutoscaling()) { - if (!getAutoscaling() - .equals(other.getAutoscaling())) return false; + if (!getAutoscaling().equals(other.getAutoscaling())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3150,97 +3619,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.GkeNodePoolConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 configuration of a GKE NodePool used by a [Dataproc-on-GKE
    * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
@@ -3248,33 +3724,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolConfig)
       com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.SharedProto
+          .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.SharedProto
+          .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.GkeNodePoolConfig.class, com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder.class);
+              com.google.cloud.dataproc.v1.GkeNodePoolConfig.class,
+              com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.GkeNodePoolConfig.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3296,9 +3771,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.SharedProto
+          .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor;
     }
 
     @java.lang.Override
@@ -3317,7 +3792,8 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.GkeNodePoolConfig buildPartial() {
-      com.google.cloud.dataproc.v1.GkeNodePoolConfig result = new com.google.cloud.dataproc.v1.GkeNodePoolConfig(this);
+      com.google.cloud.dataproc.v1.GkeNodePoolConfig result =
+          new com.google.cloud.dataproc.v1.GkeNodePoolConfig(this);
       int from_bitField0_ = bitField0_;
       if (configBuilder_ == null) {
         result.config_ = config_;
@@ -3342,38 +3818,39 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.GkeNodePoolConfig) {
-        return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolConfig)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3424,32 +3901,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              input.readMessage(
-                  getConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
+            case 18:
+              {
+                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 18
-            case 34: {
-              input.readMessage(
-                  getAutoscalingFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 18
+            case 34:
+              {
+                input.readMessage(getAutoscalingFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 34
-            case 106: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureLocationsIsMutable();
-              locations_.add(s);
-              break;
-            } // case 106
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 34
+            case 106:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureLocationsIsMutable();
+                locations_.add(s);
+                break;
+              } // case 106
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3459,43 +3936,63 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder> configBuilder_;
+            com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig,
+            com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder,
+            com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder>
+        configBuilder_;
     /**
+     *
+     *
      * 
      * Optional. The node pool configuration.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Optional. The node pool configuration.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The config. */ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Optional. The node pool configuration.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig value) { if (configBuilder_ == null) { @@ -3511,11 +4008,15 @@ public Builder setConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeC return this; } /** + * + * *
      * Optional. The node pool configuration.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setConfig( com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder builderForValue) { @@ -3529,17 +4030,23 @@ public Builder setConfig( return this; } /** + * + * *
      * Optional. The node pool configuration.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -3551,11 +4058,15 @@ public Builder mergeConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNod return this; } /** + * + * *
      * Optional. The node pool configuration.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -3569,61 +4080,82 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Optional. The node pool configuration.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The node pool configuration.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder getConfigOrBuilder() { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder + getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Optional. The node pool configuration.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder> + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } - private com.google.protobuf.LazyStringList locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList locations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLocationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { locations_ = new com.google.protobuf.LazyStringArrayList(locations_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. The list of Compute Engine
      * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -3634,13 +4166,15 @@ private void ensureLocationsIsMutable() {
      * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the locations. */ - public com.google.protobuf.ProtocolStringList - getLocationsList() { + public com.google.protobuf.ProtocolStringList getLocationsList() { return locations_.getUnmodifiableView(); } /** + * + * *
      * Optional. The list of Compute Engine
      * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -3651,12 +4185,15 @@ private void ensureLocationsIsMutable() {
      * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of locations. */ public int getLocationsCount() { return locations_.size(); } /** + * + * *
      * Optional. The list of Compute Engine
      * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -3667,6 +4204,7 @@ public int getLocationsCount() {
      * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The locations at the given index. */ @@ -3674,6 +4212,8 @@ public java.lang.String getLocations(int index) { return locations_.get(index); } /** + * + * *
      * Optional. The list of Compute Engine
      * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -3684,14 +4224,16 @@ public java.lang.String getLocations(int index) {
      * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the locations at the given index. */ - public com.google.protobuf.ByteString - getLocationsBytes(int index) { + public com.google.protobuf.ByteString getLocationsBytes(int index) { return locations_.getByteString(index); } /** + * + * *
      * Optional. The list of Compute Engine
      * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -3702,21 +4244,23 @@ public java.lang.String getLocations(int index) {
      * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The locations to set. * @return This builder for chaining. */ - public Builder setLocations( - int index, java.lang.String value) { + public Builder setLocations(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); + throw new NullPointerException(); + } + ensureLocationsIsMutable(); locations_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. The list of Compute Engine
      * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -3727,20 +4271,22 @@ public Builder setLocations(
      * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The locations to add. * @return This builder for chaining. */ - public Builder addLocations( - java.lang.String value) { + public Builder addLocations(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); + throw new NullPointerException(); + } + ensureLocationsIsMutable(); locations_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. The list of Compute Engine
      * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -3751,18 +4297,19 @@ public Builder addLocations(
      * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The locations to add. * @return This builder for chaining. */ - public Builder addAllLocations( - java.lang.Iterable values) { + public Builder addAllLocations(java.lang.Iterable values) { ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, locations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); onChanged(); return this; } /** + * + * *
      * Optional. The list of Compute Engine
      * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -3773,6 +4320,7 @@ public Builder addAllLocations(
      * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLocations() { @@ -3782,6 +4330,8 @@ public Builder clearLocations() { return this; } /** + * + * *
      * Optional. The list of Compute Engine
      * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -3792,61 +4342,84 @@ public Builder clearLocations() {
      * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the locations to add. * @return This builder for chaining. */ - public Builder addLocationsBytes( - com.google.protobuf.ByteString value) { + public Builder addLocationsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLocationsIsMutable(); locations_.add(value); onChanged(); return this; } - private com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling_; + private com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + autoscaling_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder> autoscalingBuilder_; + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder> + autoscalingBuilder_; /** + * + * *
      * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
      * only when a valid configuration is present.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the autoscaling field is set. */ public boolean hasAutoscaling() { return autoscalingBuilder_ != null || autoscaling_ != null; } /** + * + * *
      * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
      * only when a valid configuration is present.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The autoscaling. */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig getAutoscaling() { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + getAutoscaling() { if (autoscalingBuilder_ == null) { - return autoscaling_ == null ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.getDefaultInstance() : autoscaling_; + return autoscaling_ == null + ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + .getDefaultInstance() + : autoscaling_; } else { return autoscalingBuilder_.getMessage(); } } /** + * + * *
      * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
      * only when a valid configuration is present.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAutoscaling(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value) { + public Builder setAutoscaling( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value) { if (autoscalingBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3860,15 +4433,20 @@ public Builder setAutoscaling(com.google.cloud.dataproc.v1.GkeNodePoolConfig.Gke return this; } /** + * + * *
      * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
      * only when a valid configuration is present.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAutoscaling( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder builderForValue) { + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder + builderForValue) { if (autoscalingBuilder_ == null) { autoscaling_ = builderForValue.build(); onChanged(); @@ -3879,18 +4457,26 @@ public Builder setAutoscaling( return this; } /** + * + * *
      * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
      * only when a valid configuration is present.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeAutoscaling(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value) { + public Builder mergeAutoscaling( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value) { if (autoscalingBuilder_ == null) { if (autoscaling_ != null) { autoscaling_ = - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.newBuilder(autoscaling_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + .newBuilder(autoscaling_) + .mergeFrom(value) + .buildPartial(); } else { autoscaling_ = value; } @@ -3902,12 +4488,16 @@ public Builder mergeAutoscaling(com.google.cloud.dataproc.v1.GkeNodePoolConfig.G return this; } /** + * + * *
      * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
      * only when a valid configuration is present.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAutoscaling() { if (autoscalingBuilder_ == null) { @@ -3921,58 +4511,78 @@ public Builder clearAutoscaling() { return this; } /** + * + * *
      * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
      * only when a valid configuration is present.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder getAutoscalingBuilder() { - + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder + getAutoscalingBuilder() { + onChanged(); return getAutoscalingFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
      * only when a valid configuration is present.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder getAutoscalingOrBuilder() { + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder + getAutoscalingOrBuilder() { if (autoscalingBuilder_ != null) { return autoscalingBuilder_.getMessageOrBuilder(); } else { - return autoscaling_ == null ? - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.getDefaultInstance() : autoscaling_; + return autoscaling_ == null + ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + .getDefaultInstance() + : autoscaling_; } } /** + * + * *
      * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
      * only when a valid configuration is present.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder> + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder> getAutoscalingFieldBuilder() { if (autoscalingBuilder_ == null) { - autoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder>( - getAutoscaling(), - getParentForChildren(), - isClean()); + autoscalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfig + .GkeNodePoolAutoscalingConfigOrBuilder>( + getAutoscaling(), getParentForChildren(), isClean()); autoscaling_ = null; } return autoscalingBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3982,12 +4592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GkeNodePoolConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolConfig) private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeNodePoolConfig(); } @@ -3996,27 +4606,27 @@ public static com.google.cloud.dataproc.v1.GkeNodePoolConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeNodePoolConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeNodePoolConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4031,6 +4641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.GkeNodePoolConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java similarity index 66% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java index f26db58007a5..81c1de166bee 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java @@ -1,40 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; -public interface GkeNodePoolConfigOrBuilder extends +public interface GkeNodePoolConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The node pool configuration.
    * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Optional. The node pool configuration.
    * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The config. */ com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getConfig(); /** + * + * *
    * Optional. The node pool configuration.
    * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * Optional. The list of Compute Engine
    * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -45,11 +77,13 @@ public interface GkeNodePoolConfigOrBuilder extends
    * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the locations. */ - java.util.List - getLocationsList(); + java.util.List getLocationsList(); /** + * + * *
    * Optional. The list of Compute Engine
    * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -60,10 +94,13 @@ public interface GkeNodePoolConfigOrBuilder extends
    * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of locations. */ int getLocationsCount(); /** + * + * *
    * Optional. The list of Compute Engine
    * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -74,11 +111,14 @@ public interface GkeNodePoolConfigOrBuilder extends
    * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The locations at the given index. */ java.lang.String getLocations(int index); /** + * + * *
    * Optional. The list of Compute Engine
    * [zones](https://cloud.google.com/compute/docs/zones#available) where
@@ -89,39 +129,54 @@ public interface GkeNodePoolConfigOrBuilder extends
    * 
* * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the locations at the given index. */ - com.google.protobuf.ByteString - getLocationsBytes(int index); + com.google.protobuf.ByteString getLocationsBytes(int index); /** + * + * *
    * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
    * only when a valid configuration is present.
    * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the autoscaling field is set. */ boolean hasAutoscaling(); /** + * + * *
    * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
    * only when a valid configuration is present.
    * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The autoscaling. */ com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig getAutoscaling(); /** + * + * *
    * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
    * only when a valid configuration is present.
    * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder getAutoscalingOrBuilder(); + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder + getAutoscalingOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java index 3b9dd9f3dc70..40aa3a4bd047 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * GKE NodePools that Dataproc workloads run on.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolTarget} */ -public final class GkeNodePoolTarget extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GkeNodePoolTarget extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolTarget) GkeNodePoolTargetOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GkeNodePoolTarget.newBuilder() to construct. private GkeNodePoolTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GkeNodePoolTarget() { nodePool_ = ""; roles_ = java.util.Collections.emptyList(); @@ -26,30 +44,33 @@ private GkeNodePoolTarget() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GkeNodePoolTarget(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeNodePoolTarget.class, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder.class); + com.google.cloud.dataproc.v1.GkeNodePoolTarget.class, + com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder.class); } /** + * + * *
    * `Role` specifies whose tasks will run on the NodePool. The roles can be
    * specific to workloads. Exactly one GkeNodePoolTarget within the
@@ -59,9 +80,10 @@ protected java.lang.Object newInstance(
    *
    * Protobuf enum {@code google.cloud.dataproc.v1.GkeNodePoolTarget.Role}
    */
-  public enum Role
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Role implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Role is unspecified.
      * 
@@ -70,6 +92,8 @@ public enum Role */ ROLE_UNSPECIFIED(0), /** + * + * *
      * Any roles that are not directly assigned to a NodePool run on the
      * `default` role's NodePool.
@@ -79,6 +103,8 @@ public enum Role
      */
     DEFAULT(1),
     /**
+     *
+     *
      * 
      * Run controllers and webhooks.
      * 
@@ -87,6 +113,8 @@ public enum Role */ CONTROLLER(2), /** + * + * *
      * Run spark driver.
      * 
@@ -95,6 +123,8 @@ public enum Role */ SPARK_DRIVER(3), /** + * + * *
      * Run spark executors.
      * 
@@ -106,6 +136,8 @@ public enum Role ; /** + * + * *
      * Role is unspecified.
      * 
@@ -114,6 +146,8 @@ public enum Role */ public static final int ROLE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Any roles that are not directly assigned to a NodePool run on the
      * `default` role's NodePool.
@@ -123,6 +157,8 @@ public enum Role
      */
     public static final int DEFAULT_VALUE = 1;
     /**
+     *
+     *
      * 
      * Run controllers and webhooks.
      * 
@@ -131,6 +167,8 @@ public enum Role */ public static final int CONTROLLER_VALUE = 2; /** + * + * *
      * Run spark driver.
      * 
@@ -139,6 +177,8 @@ public enum Role */ public static final int SPARK_DRIVER_VALUE = 3; /** + * + * *
      * Run spark executors.
      * 
@@ -147,7 +187,6 @@ public enum Role */ public static final int SPARK_EXECUTOR_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -172,51 +211,53 @@ public static Role valueOf(int value) { */ public static Role forNumber(int value) { switch (value) { - case 0: return ROLE_UNSPECIFIED; - case 1: return DEFAULT; - case 2: return CONTROLLER; - case 3: return SPARK_DRIVER; - case 4: return SPARK_EXECUTOR; - default: return null; + case 0: + return ROLE_UNSPECIFIED; + case 1: + return DEFAULT; + case 2: + return CONTROLLER; + case 3: + return SPARK_DRIVER; + case 4: + return SPARK_EXECUTOR; + 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< - Role> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Role findValueByNumber(int number) { - return Role.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Role findValueByNumber(int number) { + return Role.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataproc.v1.GkeNodePoolTarget.getDescriptor().getEnumTypes().get(0); } private static final Role[] VALUES = values(); - public static Role valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Role 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; @@ -236,6 +277,8 @@ private Role(int value) { public static final int NODE_POOL_FIELD_NUMBER = 1; private volatile java.lang.Object nodePool_; /** + * + * *
    * Required. The target GKE NodePool.
    * Format:
@@ -243,6 +286,7 @@ private Role(int value) {
    * 
* * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The nodePool. */ @java.lang.Override @@ -251,14 +295,15 @@ public java.lang.String getNodePool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodePool_ = s; return s; } } /** + * + * *
    * Required. The target GKE NodePool.
    * Format:
@@ -266,16 +311,15 @@ public java.lang.String getNodePool() {
    * 
* * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for nodePool. */ @java.lang.Override - public com.google.protobuf.ByteString - getNodePoolBytes() { + public com.google.protobuf.ByteString getNodePoolBytes() { java.lang.Object ref = nodePool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodePool_ = b; return b; } else { @@ -286,34 +330,50 @@ public java.lang.String getNodePool() { public static final int ROLES_FIELD_NUMBER = 2; private java.util.List roles_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role> roles_converter_ = + java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role> + roles_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role>() { - public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role convert(java.lang.Integer from) { + public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role convert( + java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role result = com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role.valueOf(from); - return result == null ? com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role result = + com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role.valueOf(from); + return result == null + ? com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role.UNRECOGNIZED + : result; } }; /** + * + * *
    * Required. The types of role for a GKE NodePool
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the roles. */ @java.lang.Override public java.util.List getRolesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role>(roles_, roles_converter_); + java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role>( + roles_, roles_converter_); } /** + * + * *
    * Required. The types of role for a GKE NodePool
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of roles. */ @java.lang.Override @@ -321,11 +381,16 @@ public int getRolesCount() { return roles_.size(); } /** + * + * *
    * Required. The types of role for a GKE NodePool
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The roles at the given index. */ @@ -334,24 +399,33 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role getRoles(int index) { return roles_converter_.convert(roles_.get(index)); } /** + * + * *
    * Required. The types of role for a GKE NodePool
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the enum numeric values on the wire for roles. */ @java.lang.Override - public java.util.List - getRolesValueList() { + public java.util.List getRolesValueList() { return roles_; } /** + * + * *
    * Required. The types of role for a GKE NodePool
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of roles at the given index. */ @@ -359,11 +433,14 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role getRoles(int index) { public int getRolesValue(int index) { return roles_.get(index); } + private int rolesMemoizedSerializedSize; public static final int NODE_POOL_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.dataproc.v1.GkeNodePoolConfig nodePoolConfig_; /** + * + * *
    * Optional. The configuration for the GKE NodePool.
    * If specified, Dataproc attempts to create a NodePool with the
@@ -375,7 +452,10 @@ public int getRolesValue(int index) {
    * with default values.
    * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the nodePoolConfig field is set. */ @java.lang.Override @@ -383,6 +463,8 @@ public boolean hasNodePoolConfig() { return nodePoolConfig_ != null; } /** + * + * *
    * Optional. The configuration for the GKE NodePool.
    * If specified, Dataproc attempts to create a NodePool with the
@@ -394,14 +476,21 @@ public boolean hasNodePoolConfig() {
    * with default values.
    * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nodePoolConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.GkeNodePoolConfig getNodePoolConfig() { - return nodePoolConfig_ == null ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance() : nodePoolConfig_; + return nodePoolConfig_ == null + ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance() + : nodePoolConfig_; } /** + * + * *
    * Optional. The configuration for the GKE NodePool.
    * If specified, Dataproc attempts to create a NodePool with the
@@ -413,7 +502,9 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig getNodePoolConfig() {
    * with default values.
    * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder getNodePoolConfigOrBuilder() { @@ -421,6 +512,7 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder getNodePoolConfig } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -432,8 +524,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePool_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodePool_); @@ -463,18 +554,17 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < roles_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(roles_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(roles_.get(i)); } size += dataSize; - if (!getRolesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }rolesMemoizedSerializedSize = dataSize; + if (!getRolesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + rolesMemoizedSerializedSize = dataSize; } if (nodePoolConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getNodePoolConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNodePoolConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -484,20 +574,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.dataproc.v1.GkeNodePoolTarget)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.GkeNodePoolTarget other = (com.google.cloud.dataproc.v1.GkeNodePoolTarget) obj; + com.google.cloud.dataproc.v1.GkeNodePoolTarget other = + (com.google.cloud.dataproc.v1.GkeNodePoolTarget) obj; - if (!getNodePool() - .equals(other.getNodePool())) return false; + if (!getNodePool().equals(other.getNodePool())) return false; if (!roles_.equals(other.roles_)) return false; if (hasNodePoolConfig() != other.hasNodePoolConfig()) return false; if (hasNodePoolConfig()) { - if (!getNodePoolConfig() - .equals(other.getNodePoolConfig())) return false; + if (!getNodePoolConfig().equals(other.getNodePoolConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -525,130 +614,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.GkeNodePoolTarget prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * GKE NodePools that Dataproc workloads run on.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolTarget} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolTarget) com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeNodePoolTarget.class, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder.class); + com.google.cloud.dataproc.v1.GkeNodePoolTarget.class, + com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder.class); } // Construct using com.google.cloud.dataproc.v1.GkeNodePoolTarget.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -666,9 +761,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; } @java.lang.Override @@ -687,7 +782,8 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget build() { @java.lang.Override public com.google.cloud.dataproc.v1.GkeNodePoolTarget buildPartial() { - com.google.cloud.dataproc.v1.GkeNodePoolTarget result = new com.google.cloud.dataproc.v1.GkeNodePoolTarget(this); + com.google.cloud.dataproc.v1.GkeNodePoolTarget result = + new com.google.cloud.dataproc.v1.GkeNodePoolTarget(this); int from_bitField0_ = bitField0_; result.nodePool_ = nodePool_; if (((bitField0_ & 0x00000001) != 0)) { @@ -708,38 +804,39 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.GkeNodePoolTarget) { - return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolTarget)other); + return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolTarget) other); } else { super.mergeFrom(other); return this; @@ -791,41 +888,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - nodePool_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - int tmpRaw = input.readEnum(); - ensureRolesIsMutable(); - roles_.add(tmpRaw); - break; - } // case 16 - case 18: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 10: + { + nodePool_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { int tmpRaw = input.readEnum(); ensureRolesIsMutable(); roles_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 18 - case 26: { - input.readMessage( - getNodePoolConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureRolesIsMutable(); + roles_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 18 + case 26: + { + input.readMessage(getNodePoolConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -835,10 +935,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object nodePool_ = ""; /** + * + * *
      * Required. The target GKE NodePool.
      * Format:
@@ -846,13 +949,13 @@ public Builder mergeFrom(
      * 
* * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The nodePool. */ public java.lang.String getNodePool() { java.lang.Object ref = nodePool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodePool_ = s; return s; @@ -861,6 +964,8 @@ public java.lang.String getNodePool() { } } /** + * + * *
      * Required. The target GKE NodePool.
      * Format:
@@ -868,15 +973,14 @@ public java.lang.String getNodePool() {
      * 
* * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for nodePool. */ - public com.google.protobuf.ByteString - getNodePoolBytes() { + public com.google.protobuf.ByteString getNodePoolBytes() { java.lang.Object ref = nodePool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodePool_ = b; return b; } else { @@ -884,6 +988,8 @@ public java.lang.String getNodePool() { } } /** + * + * *
      * Required. The target GKE NodePool.
      * Format:
@@ -891,20 +997,22 @@ public java.lang.String getNodePool() {
      * 
* * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The nodePool to set. * @return This builder for chaining. */ - public Builder setNodePool( - java.lang.String value) { + public Builder setNodePool(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodePool_ = value; onChanged(); return this; } /** + * + * *
      * Required. The target GKE NodePool.
      * Format:
@@ -912,15 +1020,18 @@ public Builder setNodePool(
      * 
* * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearNodePool() { - + nodePool_ = getDefaultInstance().getNodePool(); onChanged(); return this; } /** + * + * *
      * Required. The target GKE NodePool.
      * Format:
@@ -928,23 +1039,23 @@ public Builder clearNodePool() {
      * 
* * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for nodePool to set. * @return This builder for chaining. */ - public Builder setNodePoolBytes( - com.google.protobuf.ByteString value) { + public Builder setNodePoolBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodePool_ = value; onChanged(); return this; } - private java.util.List roles_ = - java.util.Collections.emptyList(); + private java.util.List roles_ = java.util.Collections.emptyList(); + private void ensureRolesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { roles_ = new java.util.ArrayList(roles_); @@ -952,34 +1063,50 @@ private void ensureRolesIsMutable() { } } /** + * + * *
      * Required. The types of role for a GKE NodePool
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the roles. */ public java.util.List getRolesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role>(roles_, roles_converter_); + java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role>( + roles_, roles_converter_); } /** + * + * *
      * Required. The types of role for a GKE NodePool
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of roles. */ public int getRolesCount() { return roles_.size(); } /** + * + * *
      * Required. The types of role for a GKE NodePool
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The roles at the given index. */ @@ -987,17 +1114,21 @@ public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role getRoles(int index) { return roles_converter_.convert(roles_.get(index)); } /** + * + * *
      * Required. The types of role for a GKE NodePool
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index to set the value at. * @param value The roles to set. * @return This builder for chaining. */ - public Builder setRoles( - int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role value) { + public Builder setRoles(int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role value) { if (value == null) { throw new NullPointerException(); } @@ -1007,11 +1138,16 @@ public Builder setRoles( return this; } /** + * + * *
      * Required. The types of role for a GKE NodePool
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The roles to add. * @return This builder for chaining. */ @@ -1025,11 +1161,16 @@ public Builder addRoles(com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role valu return this; } /** + * + * *
      * Required. The types of role for a GKE NodePool
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param values The roles to add. * @return This builder for chaining. */ @@ -1043,11 +1184,16 @@ public Builder addAllRoles( return this; } /** + * + * *
      * Required. The types of role for a GKE NodePool
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearRoles() { @@ -1057,23 +1203,32 @@ public Builder clearRoles() { return this; } /** + * + * *
      * Required. The types of role for a GKE NodePool
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the enum numeric values on the wire for roles. */ - public java.util.List - getRolesValueList() { + public java.util.List getRolesValueList() { return java.util.Collections.unmodifiableList(roles_); } /** + * + * *
      * Required. The types of role for a GKE NodePool
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of roles at the given index. */ @@ -1081,28 +1236,37 @@ public int getRolesValue(int index) { return roles_.get(index); } /** + * + * *
      * Required. The types of role for a GKE NodePool
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for roles to set. * @return This builder for chaining. */ - public Builder setRolesValue( - int index, int value) { + public Builder setRolesValue(int index, int value) { ensureRolesIsMutable(); roles_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. The types of role for a GKE NodePool
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for roles to add. * @return This builder for chaining. */ @@ -1113,16 +1277,20 @@ public Builder addRolesValue(int value) { return this; } /** + * + * *
      * Required. The types of role for a GKE NodePool
      * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param values The enum numeric values on the wire for roles to add. * @return This builder for chaining. */ - public Builder addAllRolesValue( - java.lang.Iterable values) { + public Builder addAllRolesValue(java.lang.Iterable values) { ensureRolesIsMutable(); for (int value : values) { roles_.add(value); @@ -1133,8 +1301,13 @@ public Builder addAllRolesValue( private com.google.cloud.dataproc.v1.GkeNodePoolConfig nodePoolConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder> nodePoolConfigBuilder_; + com.google.cloud.dataproc.v1.GkeNodePoolConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder> + nodePoolConfigBuilder_; /** + * + * *
      * Optional. The configuration for the GKE NodePool.
      * If specified, Dataproc attempts to create a NodePool with the
@@ -1146,13 +1319,18 @@ public Builder addAllRolesValue(
      * with default values.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the nodePoolConfig field is set. */ public boolean hasNodePoolConfig() { return nodePoolConfigBuilder_ != null || nodePoolConfig_ != null; } /** + * + * *
      * Optional. The configuration for the GKE NodePool.
      * If specified, Dataproc attempts to create a NodePool with the
@@ -1164,17 +1342,24 @@ public boolean hasNodePoolConfig() {
      * with default values.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nodePoolConfig. */ public com.google.cloud.dataproc.v1.GkeNodePoolConfig getNodePoolConfig() { if (nodePoolConfigBuilder_ == null) { - return nodePoolConfig_ == null ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance() : nodePoolConfig_; + return nodePoolConfig_ == null + ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance() + : nodePoolConfig_; } else { return nodePoolConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The configuration for the GKE NodePool.
      * If specified, Dataproc attempts to create a NodePool with the
@@ -1186,7 +1371,9 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig getNodePoolConfig() {
      * with default values.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNodePoolConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig value) { if (nodePoolConfigBuilder_ == null) { @@ -1202,6 +1389,8 @@ public Builder setNodePoolConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig return this; } /** + * + * *
      * Optional. The configuration for the GKE NodePool.
      * If specified, Dataproc attempts to create a NodePool with the
@@ -1213,7 +1402,9 @@ public Builder setNodePoolConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig
      * with default values.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNodePoolConfig( com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder builderForValue) { @@ -1227,6 +1418,8 @@ public Builder setNodePoolConfig( return this; } /** + * + * *
      * Optional. The configuration for the GKE NodePool.
      * If specified, Dataproc attempts to create a NodePool with the
@@ -1238,13 +1431,17 @@ public Builder setNodePoolConfig(
      * with default values.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeNodePoolConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig value) { if (nodePoolConfigBuilder_ == null) { if (nodePoolConfig_ != null) { nodePoolConfig_ = - com.google.cloud.dataproc.v1.GkeNodePoolConfig.newBuilder(nodePoolConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.GkeNodePoolConfig.newBuilder(nodePoolConfig_) + .mergeFrom(value) + .buildPartial(); } else { nodePoolConfig_ = value; } @@ -1256,6 +1453,8 @@ public Builder mergeNodePoolConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfi return this; } /** + * + * *
      * Optional. The configuration for the GKE NodePool.
      * If specified, Dataproc attempts to create a NodePool with the
@@ -1267,7 +1466,9 @@ public Builder mergeNodePoolConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfi
      * with default values.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearNodePoolConfig() { if (nodePoolConfigBuilder_ == null) { @@ -1281,6 +1482,8 @@ public Builder clearNodePoolConfig() { return this; } /** + * + * *
      * Optional. The configuration for the GKE NodePool.
      * If specified, Dataproc attempts to create a NodePool with the
@@ -1292,14 +1495,18 @@ public Builder clearNodePoolConfig() {
      * with default values.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder getNodePoolConfigBuilder() { - + onChanged(); return getNodePoolConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The configuration for the GKE NodePool.
      * If specified, Dataproc attempts to create a NodePool with the
@@ -1311,17 +1518,22 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder getNodePoolConfigB
      * with default values.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder getNodePoolConfigOrBuilder() { if (nodePoolConfigBuilder_ != null) { return nodePoolConfigBuilder_.getMessageOrBuilder(); } else { - return nodePoolConfig_ == null ? - com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance() : nodePoolConfig_; + return nodePoolConfig_ == null + ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance() + : nodePoolConfig_; } } /** + * + * *
      * Optional. The configuration for the GKE NodePool.
      * If specified, Dataproc attempts to create a NodePool with the
@@ -1333,24 +1545,29 @@ public com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder getNodePoolConfig
      * with default values.
      * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder> + com.google.cloud.dataproc.v1.GkeNodePoolConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder> getNodePoolConfigFieldBuilder() { if (nodePoolConfigBuilder_ == null) { - nodePoolConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig, com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder, com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder>( - getNodePoolConfig(), - getParentForChildren(), - isClean()); + nodePoolConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder>( + getNodePoolConfig(), getParentForChildren(), isClean()); nodePoolConfig_ = null; } return nodePoolConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1360,12 +1577,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GkeNodePoolTarget) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolTarget) private static final com.google.cloud.dataproc.v1.GkeNodePoolTarget DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeNodePoolTarget(); } @@ -1374,27 +1591,27 @@ public static com.google.cloud.dataproc.v1.GkeNodePoolTarget getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeNodePoolTarget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeNodePoolTarget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1409,6 +1626,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.GkeNodePoolTarget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java index dd9cab6c8234..64b301fb4178 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; -public interface GkeNodePoolTargetOrBuilder extends +public interface GkeNodePoolTargetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolTarget) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The target GKE NodePool.
    * Format:
@@ -15,10 +33,13 @@ public interface GkeNodePoolTargetOrBuilder extends
    * 
* * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The nodePool. */ java.lang.String getNodePool(); /** + * + * *
    * Required. The target GKE NodePool.
    * Format:
@@ -26,61 +47,87 @@ public interface GkeNodePoolTargetOrBuilder extends
    * 
* * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for nodePool. */ - com.google.protobuf.ByteString - getNodePoolBytes(); + com.google.protobuf.ByteString getNodePoolBytes(); /** + * + * *
    * Required. The types of role for a GKE NodePool
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the roles. */ java.util.List getRolesList(); /** + * + * *
    * Required. The types of role for a GKE NodePool
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of roles. */ int getRolesCount(); /** + * + * *
    * Required. The types of role for a GKE NodePool
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The roles at the given index. */ com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role getRoles(int index); /** + * + * *
    * Required. The types of role for a GKE NodePool
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the enum numeric values on the wire for roles. */ - java.util.List - getRolesValueList(); + java.util.List getRolesValueList(); /** + * + * *
    * Required. The types of role for a GKE NodePool
    * 
* - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of roles at the given index. */ int getRolesValue(int index); /** + * + * *
    * Optional. The configuration for the GKE NodePool.
    * If specified, Dataproc attempts to create a NodePool with the
@@ -92,11 +139,16 @@ public interface GkeNodePoolTargetOrBuilder extends
    * with default values.
    * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the nodePoolConfig field is set. */ boolean hasNodePoolConfig(); /** + * + * *
    * Optional. The configuration for the GKE NodePool.
    * If specified, Dataproc attempts to create a NodePool with the
@@ -108,11 +160,16 @@ public interface GkeNodePoolTargetOrBuilder extends
    * with default values.
    * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nodePoolConfig. */ com.google.cloud.dataproc.v1.GkeNodePoolConfig getNodePoolConfig(); /** + * + * *
    * Optional. The configuration for the GKE NodePool.
    * If specified, Dataproc attempts to create a NodePool with the
@@ -124,7 +181,9 @@ public interface GkeNodePoolTargetOrBuilder extends
    * with default values.
    * 
* - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder getNodePoolConfigOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java similarity index 73% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java index 99536a4a3bae..c0bd8537a53d 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A Dataproc job for running
  * [Apache Hadoop
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.HadoopJob}
  */
-public final class HadoopJob extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class HadoopJob extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.HadoopJob)
     HadoopJobOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use HadoopJob.newBuilder() to construct.
   private HadoopJob(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private HadoopJob() {
     args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -32,50 +50,53 @@ private HadoopJob() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new HadoopJob();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.JobsProto
+        .internal_static_google_cloud_dataproc_v1_HadoopJob_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 7:
         return internalGetProperties();
       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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.JobsProto
+        .internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.HadoopJob.class, com.google.cloud.dataproc.v1.HadoopJob.Builder.class);
+            com.google.cloud.dataproc.v1.HadoopJob.class,
+            com.google.cloud.dataproc.v1.HadoopJob.Builder.class);
   }
 
   private int driverCase_ = 0;
   private java.lang.Object driver_;
+
   public enum DriverCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     MAIN_JAR_FILE_URI(1),
     MAIN_CLASS(2),
     DRIVER_NOT_SET(0);
     private final int value;
+
     private DriverCase(int value) {
       this.value = value;
     }
@@ -91,25 +112,30 @@ public static DriverCase valueOf(int value) {
 
     public static DriverCase forNumber(int value) {
       switch (value) {
-        case 1: return MAIN_JAR_FILE_URI;
-        case 2: return MAIN_CLASS;
-        case 0: return DRIVER_NOT_SET;
-        default: return null;
+        case 1:
+          return MAIN_JAR_FILE_URI;
+        case 2:
+          return MAIN_CLASS;
+        case 0:
+          return DRIVER_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DriverCase
-  getDriverCase() {
-    return DriverCase.forNumber(
-        driverCase_);
+  public DriverCase getDriverCase() {
+    return DriverCase.forNumber(driverCase_);
   }
 
   public static final int MAIN_JAR_FILE_URI_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * The HCFS URI of the jar file containing the main class.
    * Examples:
@@ -119,12 +145,15 @@ public int getNumber() {
    * 
* * string main_jar_file_uri = 1; + * * @return Whether the mainJarFileUri field is set. */ public boolean hasMainJarFileUri() { return driverCase_ == 1; } /** + * + * *
    * The HCFS URI of the jar file containing the main class.
    * Examples:
@@ -134,6 +163,7 @@ public boolean hasMainJarFileUri() {
    * 
* * string main_jar_file_uri = 1; + * * @return The mainJarFileUri. */ public java.lang.String getMainJarFileUri() { @@ -144,8 +174,7 @@ public java.lang.String getMainJarFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (driverCase_ == 1) { driver_ = s; @@ -154,6 +183,8 @@ public java.lang.String getMainJarFileUri() { } } /** + * + * *
    * The HCFS URI of the jar file containing the main class.
    * Examples:
@@ -163,18 +194,17 @@ public java.lang.String getMainJarFileUri() {
    * 
* * string main_jar_file_uri = 1; + * * @return The bytes for mainJarFileUri. */ - public com.google.protobuf.ByteString - getMainJarFileUriBytes() { + public com.google.protobuf.ByteString getMainJarFileUriBytes() { java.lang.Object ref = ""; if (driverCase_ == 1) { ref = driver_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (driverCase_ == 1) { driver_ = b; } @@ -186,24 +216,30 @@ public java.lang.String getMainJarFileUri() { public static final int MAIN_CLASS_FIELD_NUMBER = 2; /** + * + * *
    * The name of the driver's main class. The jar file containing the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; + * * @return Whether the mainClass field is set. */ public boolean hasMainClass() { return driverCase_ == 2; } /** + * + * *
    * The name of the driver's main class. The jar file containing the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; + * * @return The mainClass. */ public java.lang.String getMainClass() { @@ -214,8 +250,7 @@ public java.lang.String getMainClass() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (driverCase_ == 2) { driver_ = s; @@ -224,24 +259,25 @@ public java.lang.String getMainClass() { } } /** + * + * *
    * The name of the driver's main class. The jar file containing the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; + * * @return The bytes for mainClass. */ - public com.google.protobuf.ByteString - getMainClassBytes() { + public com.google.protobuf.ByteString getMainClassBytes() { java.lang.Object ref = ""; if (driverCase_ == 2) { ref = driver_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (driverCase_ == 2) { driver_ = b; } @@ -254,6 +290,8 @@ public java.lang.String getMainClass() { public static final int ARGS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList args_; /** + * + * *
    * Optional. The arguments to pass to the driver. Do not
    * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -262,13 +300,15 @@ public java.lang.String getMainClass() {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_; } /** + * + * *
    * Optional. The arguments to pass to the driver. Do not
    * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -277,12 +317,15 @@ public java.lang.String getMainClass() {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
    * Optional. The arguments to pass to the driver. Do not
    * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -291,6 +334,7 @@ public int getArgsCount() {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -298,6 +342,8 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
    * Optional. The arguments to pass to the driver. Do not
    * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -306,48 +352,56 @@ public java.lang.String getArgs(int index) {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList jarFileUris_; /** + * + * *
    * Optional. Jar file URIs to add to the CLASSPATHs of the
    * Hadoop driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList - getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { return jarFileUris_; } /** + * + * *
    * Optional. Jar file URIs to add to the CLASSPATHs of the
    * Hadoop driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** + * + * *
    * Optional. Jar file URIs to add to the CLASSPATHs of the
    * Hadoop driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -355,23 +409,27 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** + * + * *
    * Optional. Jar file URIs to add to the CLASSPATHs of the
    * Hadoop driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString - getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } public static final int FILE_URIS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList fileUris_; /** + * + * *
    * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
    * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -379,13 +437,15 @@ public java.lang.String getJarFileUris(int index) {
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList - getFileUrisList() { + public com.google.protobuf.ProtocolStringList getFileUrisList() { return fileUris_; } /** + * + * *
    * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
    * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -393,12 +453,15 @@ public java.lang.String getJarFileUris(int index) {
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** + * + * *
    * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
    * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -406,6 +469,7 @@ public int getFileUrisCount() {
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -413,6 +477,8 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** + * + * *
    * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
    * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -420,17 +486,19 @@ public java.lang.String getFileUris(int index) {
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString - getFileUrisBytes(int index) { + public com.google.protobuf.ByteString getFileUrisBytes(int index) { return fileUris_.getByteString(index); } public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList archiveUris_; /** + * + * *
    * Optional. HCFS URIs of archives to be extracted in the working directory of
    * Hadoop drivers and tasks. Supported file types:
@@ -438,13 +506,15 @@ public java.lang.String getFileUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList - getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { return archiveUris_; } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted in the working directory of
    * Hadoop drivers and tasks. Supported file types:
@@ -452,12 +522,15 @@ public java.lang.String getFileUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted in the working directory of
    * Hadoop drivers and tasks. Supported file types:
@@ -465,6 +538,7 @@ public int getArchiveUrisCount() {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -472,6 +546,8 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted in the working directory of
    * Hadoop drivers and tasks. Supported file types:
@@ -479,33 +555,32 @@ public java.lang.String getArchiveUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString - getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } public static final int PROPERTIES_FIELD_NUMBER = 7; + private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; - private com.google.protobuf.MapField - internalGetProperties() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -514,6 +589,8 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
    * Optional. A mapping of property names to values, used to configure Hadoop.
    * Properties that conflict with values set by the Dataproc API may be
@@ -521,24 +598,25 @@ public int getPropertiesCount() {
    * classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
    * Optional. A mapping of property names to values, used to configure Hadoop.
    * Properties that conflict with values set by the Dataproc API may be
@@ -546,14 +624,16 @@ public java.util.Map getProperties() {
    * classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
    * Optional. A mapping of property names to values, used to configure Hadoop.
    * Properties that conflict with values set by the Dataproc API may be
@@ -561,19 +641,21 @@ public java.util.Map getPropertiesMap() {
    * classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. A mapping of property names to values, used to configure Hadoop.
    * Properties that conflict with values set by the Dataproc API may be
@@ -581,15 +663,15 @@ public java.lang.String getPropertiesOrDefault(
    * classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -599,11 +681,16 @@ public java.lang.String getPropertiesOrThrow( public static final int LOGGING_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ @java.lang.Override @@ -611,23 +698,34 @@ public boolean hasLoggingConfig() { return loggingConfig_ != null; } /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { @@ -635,6 +733,7 @@ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBui } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -646,8 +745,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (driverCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); } @@ -666,12 +764,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < archiveUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetProperties(), - PropertiesDefaultEntryHolder.defaultEntry, - 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 7); if (loggingConfig_ != null) { output.writeMessage(8, getLoggingConfig()); } @@ -722,19 +816,18 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArchiveUrisList().size(); } - for (java.util.Map.Entry entry - : internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry - properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, properties__); + for (java.util.Map.Entry entry : + internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, properties__); } if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getLoggingConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLoggingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -744,37 +837,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.dataproc.v1.HadoopJob)) { return super.equals(obj); } com.google.cloud.dataproc.v1.HadoopJob other = (com.google.cloud.dataproc.v1.HadoopJob) obj; - if (!getArgsList() - .equals(other.getArgsList())) return false; - if (!getJarFileUrisList() - .equals(other.getJarFileUrisList())) return false; - if (!getFileUrisList() - .equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList() - .equals(other.getArchiveUrisList())) return false; - if (!internalGetProperties().equals( - other.internalGetProperties())) return false; + if (!getArgsList().equals(other.getArgsList())) return false; + if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; + if (!getFileUrisList().equals(other.getFileUrisList())) return false; + if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; + if (!internalGetProperties().equals(other.internalGetProperties())) return false; if (hasLoggingConfig() != other.hasLoggingConfig()) return false; if (hasLoggingConfig()) { - if (!getLoggingConfig() - .equals(other.getLoggingConfig())) return false; + if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; } if (!getDriverCase().equals(other.getDriverCase())) return false; switch (driverCase_) { case 1: - if (!getMainJarFileUri() - .equals(other.getMainJarFileUri())) return false; + if (!getMainJarFileUri().equals(other.getMainJarFileUri())) return false; break; case 2: - if (!getMainClass() - .equals(other.getMainClass())) return false; + if (!getMainClass().equals(other.getMainClass())) return false; break; case 0: default: @@ -831,97 +916,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.HadoopJob parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.HadoopJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.HadoopJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.HadoopJob 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.dataproc.v1.HadoopJob parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.HadoopJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc job for running
    * [Apache Hadoop
@@ -932,55 +1024,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.HadoopJob}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.HadoopJob)
       com.google.cloud.dataproc.v1.HadoopJobOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 7:
           return internalGetProperties();
         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 7:
           return internalGetMutableProperties();
         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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.HadoopJob.class, com.google.cloud.dataproc.v1.HadoopJob.Builder.class);
+              com.google.cloud.dataproc.v1.HadoopJob.class,
+              com.google.cloud.dataproc.v1.HadoopJob.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.HadoopJob.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1005,9 +1094,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor;
     }
 
     @java.lang.Override
@@ -1026,7 +1115,8 @@ public com.google.cloud.dataproc.v1.HadoopJob build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.HadoopJob buildPartial() {
-      com.google.cloud.dataproc.v1.HadoopJob result = new com.google.cloud.dataproc.v1.HadoopJob(this);
+      com.google.cloud.dataproc.v1.HadoopJob result =
+          new com.google.cloud.dataproc.v1.HadoopJob(this);
       int from_bitField0_ = bitField0_;
       if (driverCase_ == 1) {
         result.driver_ = driver_;
@@ -1070,38 +1160,39 @@ public com.google.cloud.dataproc.v1.HadoopJob buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.HadoopJob) {
-        return mergeFrom((com.google.cloud.dataproc.v1.HadoopJob)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.HadoopJob) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1150,27 +1241,29 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.HadoopJob other) {
         }
         onChanged();
       }
-      internalGetMutableProperties().mergeFrom(
-          other.internalGetProperties());
+      internalGetMutableProperties().mergeFrom(other.internalGetProperties());
       if (other.hasLoggingConfig()) {
         mergeLoggingConfig(other.getLoggingConfig());
       }
       switch (other.getDriverCase()) {
-        case MAIN_JAR_FILE_URI: {
-          driverCase_ = 1;
-          driver_ = other.driver_;
-          onChanged();
-          break;
-        }
-        case MAIN_CLASS: {
-          driverCase_ = 2;
-          driver_ = other.driver_;
-          onChanged();
-          break;
-        }
-        case DRIVER_NOT_SET: {
-          break;
-        }
+        case MAIN_JAR_FILE_URI:
+          {
+            driverCase_ = 1;
+            driver_ = other.driver_;
+            onChanged();
+            break;
+          }
+        case MAIN_CLASS:
+          {
+            driverCase_ = 2;
+            driver_ = other.driver_;
+            onChanged();
+            break;
+          }
+        case DRIVER_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1198,63 +1291,72 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              driverCase_ = 1;
-              driver_ = s;
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              driverCase_ = 2;
-              driver_ = s;
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureArgsIsMutable();
-              args_.add(s);
-              break;
-            } // case 26
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureJarFileUrisIsMutable();
-              jarFileUris_.add(s);
-              break;
-            } // case 34
-            case 42: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureFileUrisIsMutable();
-              fileUris_.add(s);
-              break;
-            } // case 42
-            case 50: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureArchiveUrisIsMutable();
-              archiveUris_.add(s);
-              break;
-            } // case 50
-            case 58: {
-              com.google.protobuf.MapEntry
-              properties__ = input.readMessage(
-                  PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableProperties().getMutableMap().put(
-                  properties__.getKey(), properties__.getValue());
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getLoggingConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 66
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                driverCase_ = 1;
+                driver_ = s;
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                driverCase_ = 2;
+                driver_ = s;
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureArgsIsMutable();
+                args_.add(s);
+                break;
+              } // case 26
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureJarFileUrisIsMutable();
+                jarFileUris_.add(s);
+                break;
+              } // case 34
+            case 42:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureFileUrisIsMutable();
+                fileUris_.add(s);
+                break;
+              } // case 42
+            case 50:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureArchiveUrisIsMutable();
+                archiveUris_.add(s);
+                break;
+              } // case 50
+            case 58:
+              {
+                com.google.protobuf.MapEntry properties__ =
+                    input.readMessage(
+                        PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableProperties()
+                    .getMutableMap()
+                    .put(properties__.getKey(), properties__.getValue());
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 66
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1264,12 +1366,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int driverCase_ = 0;
     private java.lang.Object driver_;
-    public DriverCase
-        getDriverCase() {
-      return DriverCase.forNumber(
-          driverCase_);
+
+    public DriverCase getDriverCase() {
+      return DriverCase.forNumber(driverCase_);
     }
 
     public Builder clearDriver() {
@@ -1282,6 +1384,8 @@ public Builder clearDriver() {
     private int bitField0_;
 
     /**
+     *
+     *
      * 
      * The HCFS URI of the jar file containing the main class.
      * Examples:
@@ -1291,6 +1395,7 @@ public Builder clearDriver() {
      * 
* * string main_jar_file_uri = 1; + * * @return Whether the mainJarFileUri field is set. */ @java.lang.Override @@ -1298,6 +1403,8 @@ public boolean hasMainJarFileUri() { return driverCase_ == 1; } /** + * + * *
      * The HCFS URI of the jar file containing the main class.
      * Examples:
@@ -1307,6 +1414,7 @@ public boolean hasMainJarFileUri() {
      * 
* * string main_jar_file_uri = 1; + * * @return The mainJarFileUri. */ @java.lang.Override @@ -1316,8 +1424,7 @@ public java.lang.String getMainJarFileUri() { ref = driver_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (driverCase_ == 1) { driver_ = s; @@ -1328,6 +1435,8 @@ public java.lang.String getMainJarFileUri() { } } /** + * + * *
      * The HCFS URI of the jar file containing the main class.
      * Examples:
@@ -1337,19 +1446,18 @@ public java.lang.String getMainJarFileUri() {
      * 
* * string main_jar_file_uri = 1; + * * @return The bytes for mainJarFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getMainJarFileUriBytes() { + public com.google.protobuf.ByteString getMainJarFileUriBytes() { java.lang.Object ref = ""; if (driverCase_ == 1) { ref = driver_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (driverCase_ == 1) { driver_ = b; } @@ -1359,6 +1467,8 @@ public java.lang.String getMainJarFileUri() { } } /** + * + * *
      * The HCFS URI of the jar file containing the main class.
      * Examples:
@@ -1368,20 +1478,22 @@ public java.lang.String getMainJarFileUri() {
      * 
* * string main_jar_file_uri = 1; + * * @param value The mainJarFileUri to set. * @return This builder for chaining. */ - public Builder setMainJarFileUri( - java.lang.String value) { + public Builder setMainJarFileUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 1; + throw new NullPointerException(); + } + driverCase_ = 1; driver_ = value; onChanged(); return this; } /** + * + * *
      * The HCFS URI of the jar file containing the main class.
      * Examples:
@@ -1391,6 +1503,7 @@ public Builder setMainJarFileUri(
      * 
* * string main_jar_file_uri = 1; + * * @return This builder for chaining. */ public Builder clearMainJarFileUri() { @@ -1402,6 +1515,8 @@ public Builder clearMainJarFileUri() { return this; } /** + * + * *
      * The HCFS URI of the jar file containing the main class.
      * Examples:
@@ -1411,15 +1526,15 @@ public Builder clearMainJarFileUri() {
      * 
* * string main_jar_file_uri = 1; + * * @param value The bytes for mainJarFileUri to set. * @return This builder for chaining. */ - public Builder setMainJarFileUriBytes( - com.google.protobuf.ByteString value) { + public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); driverCase_ = 1; driver_ = value; onChanged(); @@ -1427,12 +1542,15 @@ public Builder setMainJarFileUriBytes( } /** + * + * *
      * The name of the driver's main class. The jar file containing the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; + * * @return Whether the mainClass field is set. */ @java.lang.Override @@ -1440,12 +1558,15 @@ public boolean hasMainClass() { return driverCase_ == 2; } /** + * + * *
      * The name of the driver's main class. The jar file containing the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; + * * @return The mainClass. */ @java.lang.Override @@ -1455,8 +1576,7 @@ public java.lang.String getMainClass() { ref = driver_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (driverCase_ == 2) { driver_ = s; @@ -1467,25 +1587,26 @@ public java.lang.String getMainClass() { } } /** + * + * *
      * The name of the driver's main class. The jar file containing the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; + * * @return The bytes for mainClass. */ @java.lang.Override - public com.google.protobuf.ByteString - getMainClassBytes() { + public com.google.protobuf.ByteString getMainClassBytes() { java.lang.Object ref = ""; if (driverCase_ == 2) { ref = driver_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (driverCase_ == 2) { driver_ = b; } @@ -1495,32 +1616,37 @@ public java.lang.String getMainClass() { } } /** + * + * *
      * The name of the driver's main class. The jar file containing the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; + * * @param value The mainClass to set. * @return This builder for chaining. */ - public Builder setMainClass( - java.lang.String value) { + public Builder setMainClass(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 2; + throw new NullPointerException(); + } + driverCase_ = 2; driver_ = value; onChanged(); return this; } /** + * + * *
      * The name of the driver's main class. The jar file containing the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; + * * @return This builder for chaining. */ public Builder clearMainClass() { @@ -1532,35 +1658,41 @@ public Builder clearMainClass() { return this; } /** + * + * *
      * The name of the driver's main class. The jar file containing the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; + * * @param value The bytes for mainClass to set. * @return This builder for chaining. */ - public Builder setMainClassBytes( - com.google.protobuf.ByteString value) { + public Builder setMainClassBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); driverCase_ = 2; driver_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList args_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not
      * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -1569,13 +1701,15 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_.getUnmodifiableView(); } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not
      * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -1584,12 +1718,15 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not
      * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -1598,6 +1735,7 @@ public int getArgsCount() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1605,6 +1743,8 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not
      * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -1613,14 +1753,16 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not
      * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -1629,21 +1771,23 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs( - int index, java.lang.String value) { + public Builder setArgs(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not
      * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -1652,20 +1796,22 @@ public Builder setArgs(
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs( - java.lang.String value) { + public Builder addArgs(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not
      * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -1674,18 +1820,19 @@ public Builder addArgs(
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs( - java.lang.Iterable values) { + public Builder addAllArgs(java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not
      * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -1694,6 +1841,7 @@ public Builder addAllArgs(
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearArgs() { @@ -1703,6 +1851,8 @@ public Builder clearArgs() { return this; } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not
      * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -1711,60 +1861,70 @@ public Builder clearArgs() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes( - com.google.protobuf.ByteString value) { + public Builder addArgsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList jarFileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureJarFileUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Optional. Jar file URIs to add to the CLASSPATHs of the
      * Hadoop driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList - getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { return jarFileUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. Jar file URIs to add to the CLASSPATHs of the
      * Hadoop driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** + * + * *
      * Optional. Jar file URIs to add to the CLASSPATHs of the
      * Hadoop driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -1772,85 +1932,95 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** + * + * *
      * Optional. Jar file URIs to add to the CLASSPATHs of the
      * Hadoop driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString - getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } /** + * + * *
      * Optional. Jar file URIs to add to the CLASSPATHs of the
      * Hadoop driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The jarFileUris to set. * @return This builder for chaining. */ - public Builder setJarFileUris( - int index, java.lang.String value) { + public Builder setJarFileUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. Jar file URIs to add to the CLASSPATHs of the
      * Hadoop driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUris( - java.lang.String value) { + public Builder addJarFileUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. Jar file URIs to add to the CLASSPATHs of the
      * Hadoop driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The jarFileUris to add. * @return This builder for chaining. */ - public Builder addAllJarFileUris( - java.lang.Iterable values) { + public Builder addAllJarFileUris(java.lang.Iterable values) { ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, jarFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); onChanged(); return this; } /** + * + * *
      * Optional. Jar file URIs to add to the CLASSPATHs of the
      * Hadoop driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearJarFileUris() { @@ -1860,35 +2030,41 @@ public Builder clearJarFileUris() { return this; } /** + * + * *
      * Optional. Jar file URIs to add to the CLASSPATHs of the
      * Hadoop driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList fileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFileUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
      * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -1896,13 +2072,15 @@ private void ensureFileUrisIsMutable() {
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList - getFileUrisList() { + public com.google.protobuf.ProtocolStringList getFileUrisList() { return fileUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
      * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -1910,12 +2088,15 @@ private void ensureFileUrisIsMutable() {
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** + * + * *
      * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
      * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -1923,6 +2104,7 @@ public int getFileUrisCount() {
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -1930,6 +2112,8 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** + * + * *
      * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
      * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -1937,14 +2121,16 @@ public java.lang.String getFileUris(int index) {
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString - getFileUrisBytes(int index) { + public com.google.protobuf.ByteString getFileUrisBytes(int index) { return fileUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
      * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -1952,21 +2138,23 @@ public java.lang.String getFileUris(int index) {
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The fileUris to set. * @return This builder for chaining. */ - public Builder setFileUris( - int index, java.lang.String value) { + public Builder setFileUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
      * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -1974,20 +2162,22 @@ public Builder setFileUris(
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The fileUris to add. * @return This builder for chaining. */ - public Builder addFileUris( - java.lang.String value) { + public Builder addFileUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
      * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -1995,18 +2185,19 @@ public Builder addFileUris(
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The fileUris to add. * @return This builder for chaining. */ - public Builder addAllFileUris( - java.lang.Iterable values) { + public Builder addAllFileUris(java.lang.Iterable values) { ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
      * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -2014,6 +2205,7 @@ public Builder addAllFileUris(
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFileUris() { @@ -2023,6 +2215,8 @@ public Builder clearFileUris() { return this; } /** + * + * *
      * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
      * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -2030,29 +2224,33 @@ public Builder clearFileUris() {
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the fileUris to add. * @return This builder for chaining. */ - public Builder addFileUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList archiveUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArchiveUrisIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); bitField0_ |= 0x00000008; - } + } } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted in the working directory of
      * Hadoop drivers and tasks. Supported file types:
@@ -2060,13 +2258,15 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList - getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { return archiveUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted in the working directory of
      * Hadoop drivers and tasks. Supported file types:
@@ -2074,12 +2274,15 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted in the working directory of
      * Hadoop drivers and tasks. Supported file types:
@@ -2087,6 +2290,7 @@ public int getArchiveUrisCount() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -2094,6 +2298,8 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted in the working directory of
      * Hadoop drivers and tasks. Supported file types:
@@ -2101,14 +2307,16 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString - getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted in the working directory of
      * Hadoop drivers and tasks. Supported file types:
@@ -2116,21 +2324,23 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The archiveUris to set. * @return This builder for chaining. */ - public Builder setArchiveUris( - int index, java.lang.String value) { + public Builder setArchiveUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted in the working directory of
      * Hadoop drivers and tasks. Supported file types:
@@ -2138,20 +2348,22 @@ public Builder setArchiveUris(
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUris( - java.lang.String value) { + public Builder addArchiveUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted in the working directory of
      * Hadoop drivers and tasks. Supported file types:
@@ -2159,18 +2371,19 @@ public Builder addArchiveUris(
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The archiveUris to add. * @return This builder for chaining. */ - public Builder addAllArchiveUris( - java.lang.Iterable values) { + public Builder addAllArchiveUris(java.lang.Iterable values) { ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, archiveUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted in the working directory of
      * Hadoop drivers and tasks. Supported file types:
@@ -2178,6 +2391,7 @@ public Builder addAllArchiveUris(
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearArchiveUris() { @@ -2187,6 +2401,8 @@ public Builder clearArchiveUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted in the working directory of
      * Hadoop drivers and tasks. Supported file types:
@@ -2194,37 +2410,39 @@ public Builder clearArchiveUris() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField properties_; + private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } + private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged();; + internalGetMutableProperties() { + onChanged(); + ; if (properties_ == null) { - properties_ = com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); + properties_ = + com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -2236,6 +2454,8 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Hadoop.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2243,24 +2463,25 @@ public int getPropertiesCount() {
      * classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Hadoop.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2268,14 +2489,16 @@ public java.util.Map getProperties() {
      * classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Hadoop.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2283,19 +2506,21 @@ public java.util.Map getPropertiesMap() {
      * classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Hadoop.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2303,15 +2528,15 @@ public java.lang.String getPropertiesOrDefault(
      * classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2319,11 +2544,12 @@ public java.lang.String getPropertiesOrThrow( } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap() - .clear(); + internalGetMutableProperties().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Hadoop.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2331,25 +2557,24 @@ public Builder clearProperties() {
      * classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableProperties().getMutableMap() - .remove(key); + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProperties().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableProperties() { + public java.util.Map getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Hadoop.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2357,21 +2582,23 @@ public Builder removeProperties(
      * classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putProperties( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putProperties(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"); + } - internalGetMutableProperties().getMutableMap() - .put(key, value); + internalGetMutableProperties().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Hadoop.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2379,51 +2606,68 @@ public Builder putProperties(
      * classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllProperties( - java.util.Map values) { - internalGetMutableProperties().getMutableMap() - .putAll(values); + public Builder putAllProperties(java.util.Map values) { + internalGetMutableProperties().getMutableMap().putAll(values); return this; } private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> loggingConfigBuilder_; + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + loggingConfigBuilder_; /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ public boolean hasLoggingConfig() { return loggingConfigBuilder_ != null || loggingConfig_ != null; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } else { return loggingConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { @@ -2439,11 +2683,15 @@ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLoggingConfig( com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { @@ -2457,17 +2705,23 @@ public Builder setLoggingConfig( return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { if (loggingConfig_ != null) { loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) + .mergeFrom(value) + .buildPartial(); } else { loggingConfig_ = value; } @@ -2479,11 +2733,15 @@ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig val return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearLoggingConfig() { if (loggingConfigBuilder_ == null) { @@ -2497,55 +2755,71 @@ public Builder clearLoggingConfig() { return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - + onChanged(); return getLoggingConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { if (loggingConfigBuilder_ != null) { return loggingConfigBuilder_.getMessageOrBuilder(); } else { - return loggingConfig_ == null ? - com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> getLoggingConfigFieldBuilder() { if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), - getParentForChildren(), - isClean()); + loggingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( + getLoggingConfig(), getParentForChildren(), isClean()); loggingConfig_ = null; } return loggingConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2555,12 +2829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.HadoopJob) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.HadoopJob) private static final com.google.cloud.dataproc.v1.HadoopJob DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.HadoopJob(); } @@ -2569,27 +2843,27 @@ public static com.google.cloud.dataproc.v1.HadoopJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HadoopJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HadoopJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2604,6 +2878,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.HadoopJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java similarity index 81% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java index 93ffbbda3315..8d14389afed2 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface HadoopJobOrBuilder extends +public interface HadoopJobOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.HadoopJob) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The HCFS URI of the jar file containing the main class.
    * Examples:
@@ -17,10 +35,13 @@ public interface HadoopJobOrBuilder extends
    * 
* * string main_jar_file_uri = 1; + * * @return Whether the mainJarFileUri field is set. */ boolean hasMainJarFileUri(); /** + * + * *
    * The HCFS URI of the jar file containing the main class.
    * Examples:
@@ -30,10 +51,13 @@ public interface HadoopJobOrBuilder extends
    * 
* * string main_jar_file_uri = 1; + * * @return The mainJarFileUri. */ java.lang.String getMainJarFileUri(); /** + * + * *
    * The HCFS URI of the jar file containing the main class.
    * Examples:
@@ -43,44 +67,54 @@ public interface HadoopJobOrBuilder extends
    * 
* * string main_jar_file_uri = 1; + * * @return The bytes for mainJarFileUri. */ - com.google.protobuf.ByteString - getMainJarFileUriBytes(); + com.google.protobuf.ByteString getMainJarFileUriBytes(); /** + * + * *
    * The name of the driver's main class. The jar file containing the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; + * * @return Whether the mainClass field is set. */ boolean hasMainClass(); /** + * + * *
    * The name of the driver's main class. The jar file containing the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; + * * @return The mainClass. */ java.lang.String getMainClass(); /** + * + * *
    * The name of the driver's main class. The jar file containing the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; + * * @return The bytes for mainClass. */ - com.google.protobuf.ByteString - getMainClassBytes(); + com.google.protobuf.ByteString getMainClassBytes(); /** + * + * *
    * Optional. The arguments to pass to the driver. Do not
    * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -89,11 +123,13 @@ public interface HadoopJobOrBuilder extends
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - java.util.List - getArgsList(); + java.util.List getArgsList(); /** + * + * *
    * Optional. The arguments to pass to the driver. Do not
    * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -102,10 +138,13 @@ public interface HadoopJobOrBuilder extends
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ int getArgsCount(); /** + * + * *
    * Optional. The arguments to pass to the driver. Do not
    * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -114,11 +153,14 @@ public interface HadoopJobOrBuilder extends
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** + * + * *
    * Optional. The arguments to pass to the driver. Do not
    * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
@@ -127,58 +169,70 @@ public interface HadoopJobOrBuilder extends
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString - getArgsBytes(int index); + com.google.protobuf.ByteString getArgsBytes(int index); /** + * + * *
    * Optional. Jar file URIs to add to the CLASSPATHs of the
    * Hadoop driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - java.util.List - getJarFileUrisList(); + java.util.List getJarFileUrisList(); /** + * + * *
    * Optional. Jar file URIs to add to the CLASSPATHs of the
    * Hadoop driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ int getJarFileUrisCount(); /** + * + * *
    * Optional. Jar file URIs to add to the CLASSPATHs of the
    * Hadoop driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ java.lang.String getJarFileUris(int index); /** + * + * *
    * Optional. Jar file URIs to add to the CLASSPATHs of the
    * Hadoop driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - com.google.protobuf.ByteString - getJarFileUrisBytes(int index); + com.google.protobuf.ByteString getJarFileUrisBytes(int index); /** + * + * *
    * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
    * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -186,11 +240,13 @@ public interface HadoopJobOrBuilder extends
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - java.util.List - getFileUrisList(); + java.util.List getFileUrisList(); /** + * + * *
    * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
    * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -198,10 +254,13 @@ public interface HadoopJobOrBuilder extends
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ int getFileUrisCount(); /** + * + * *
    * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
    * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -209,11 +268,14 @@ public interface HadoopJobOrBuilder extends
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ java.lang.String getFileUris(int index); /** + * + * *
    * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
    * to the working directory of Hadoop drivers and distributed tasks. Useful
@@ -221,13 +283,15 @@ public interface HadoopJobOrBuilder extends
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - com.google.protobuf.ByteString - getFileUrisBytes(int index); + com.google.protobuf.ByteString getFileUrisBytes(int index); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted in the working directory of
    * Hadoop drivers and tasks. Supported file types:
@@ -235,11 +299,13 @@ public interface HadoopJobOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - java.util.List - getArchiveUrisList(); + java.util.List getArchiveUrisList(); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted in the working directory of
    * Hadoop drivers and tasks. Supported file types:
@@ -247,10 +313,13 @@ public interface HadoopJobOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ int getArchiveUrisCount(); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted in the working directory of
    * Hadoop drivers and tasks. Supported file types:
@@ -258,11 +327,14 @@ public interface HadoopJobOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ java.lang.String getArchiveUris(int index); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted in the working directory of
    * Hadoop drivers and tasks. Supported file types:
@@ -270,13 +342,15 @@ public interface HadoopJobOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - com.google.protobuf.ByteString - getArchiveUrisBytes(int index); + com.google.protobuf.ByteString getArchiveUrisBytes(int index); /** + * + * *
    * Optional. A mapping of property names to values, used to configure Hadoop.
    * Properties that conflict with values set by the Dataproc API may be
@@ -284,10 +358,13 @@ public interface HadoopJobOrBuilder extends
    * classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getPropertiesCount(); /** + * + * *
    * Optional. A mapping of property names to values, used to configure Hadoop.
    * Properties that conflict with values set by the Dataproc API may be
@@ -295,17 +372,16 @@ public interface HadoopJobOrBuilder extends
    * classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsProperties( - java.lang.String key); - /** - * Use {@link #getPropertiesMap()} instead. + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsProperties(java.lang.String key); + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getProperties(); + java.util.Map getProperties(); /** + * + * *
    * Optional. A mapping of property names to values, used to configure Hadoop.
    * Properties that conflict with values set by the Dataproc API may be
@@ -313,11 +389,13 @@ boolean containsProperties(
    * classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getPropertiesMap(); + java.util.Map getPropertiesMap(); /** + * + * *
    * Optional. A mapping of property names to values, used to configure Hadoop.
    * Properties that conflict with values set by the Dataproc API may be
@@ -325,15 +403,18 @@ boolean containsProperties(
    * classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getPropertiesOrDefault( + java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. A mapping of property names to values, used to configure Hadoop.
    * Properties that conflict with values set by the Dataproc API may be
@@ -341,36 +422,49 @@ java.lang.String getPropertiesOrDefault(
    * classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - java.lang.String getPropertiesOrThrow( - java.lang.String key); + java.lang.String getPropertiesOrThrow(java.lang.String key); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ boolean hasLoggingConfig(); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java similarity index 66% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java index c8cabc8f68c1..b8fac6073a0b 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A Dataproc job for running [Apache Hive](https://hive.apache.org/)
  * queries on YARN.
@@ -11,67 +28,71 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.HiveJob}
  */
-public final class HiveJob extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class HiveJob extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.HiveJob)
     HiveJobOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use HiveJob.newBuilder() to construct.
   private HiveJob(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private HiveJob() {
     jarFileUris_ = 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 HiveJob();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HiveJob_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.JobsProto
+        .internal_static_google_cloud_dataproc_v1_HiveJob_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 internalGetScriptVariables();
       case 5:
         return internalGetProperties();
       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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.JobsProto
+        .internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.HiveJob.class, com.google.cloud.dataproc.v1.HiveJob.Builder.class);
+            com.google.cloud.dataproc.v1.HiveJob.class,
+            com.google.cloud.dataproc.v1.HiveJob.Builder.class);
   }
 
   private int queriesCase_ = 0;
   private java.lang.Object queries_;
+
   public enum QueriesCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     QUERY_FILE_URI(1),
     QUERY_LIST(2),
     QUERIES_NOT_SET(0);
     private final int value;
+
     private QueriesCase(int value) {
       this.value = value;
     }
@@ -87,41 +108,50 @@ public static QueriesCase valueOf(int value) {
 
     public static QueriesCase forNumber(int value) {
       switch (value) {
-        case 1: return QUERY_FILE_URI;
-        case 2: return QUERY_LIST;
-        case 0: return QUERIES_NOT_SET;
-        default: return null;
+        case 1:
+          return QUERY_FILE_URI;
+        case 2:
+          return QUERY_LIST;
+        case 0:
+          return QUERIES_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public QueriesCase
-  getQueriesCase() {
-    return QueriesCase.forNumber(
-        queriesCase_);
+  public QueriesCase getQueriesCase() {
+    return QueriesCase.forNumber(queriesCase_);
   }
 
   public static final int QUERY_FILE_URI_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * The HCFS URI of the script that contains Hive queries.
    * 
* * string query_file_uri = 1; + * * @return Whether the queryFileUri field is set. */ public boolean hasQueryFileUri() { return queriesCase_ == 1; } /** + * + * *
    * The HCFS URI of the script that contains Hive queries.
    * 
* * string query_file_uri = 1; + * * @return The queryFileUri. */ public java.lang.String getQueryFileUri() { @@ -132,8 +162,7 @@ public java.lang.String getQueryFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (queriesCase_ == 1) { queries_ = s; @@ -142,23 +171,24 @@ public java.lang.String getQueryFileUri() { } } /** + * + * *
    * The HCFS URI of the script that contains Hive queries.
    * 
* * string query_file_uri = 1; + * * @return The bytes for queryFileUri. */ - public com.google.protobuf.ByteString - getQueryFileUriBytes() { + public com.google.protobuf.ByteString getQueryFileUriBytes() { java.lang.Object ref = ""; if (queriesCase_ == 1) { ref = queries_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (queriesCase_ == 1) { queries_ = b; } @@ -170,11 +200,14 @@ public java.lang.String getQueryFileUri() { public static final int QUERY_LIST_FIELD_NUMBER = 2; /** + * + * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return Whether the queryList field is set. */ @java.lang.Override @@ -182,21 +215,26 @@ public boolean hasQueryList() { return queriesCase_ == 2; } /** + * + * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return The queryList. */ @java.lang.Override public com.google.cloud.dataproc.v1.QueryList getQueryList() { if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; + return (com.google.cloud.dataproc.v1.QueryList) queries_; } return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } /** + * + * *
    * A list of queries.
    * 
@@ -206,7 +244,7 @@ public com.google.cloud.dataproc.v1.QueryList getQueryList() { @java.lang.Override public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; + return (com.google.cloud.dataproc.v1.QueryList) queries_; } return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } @@ -214,6 +252,8 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER = 3; private boolean continueOnFailure_; /** + * + * *
    * Optional. Whether to continue executing queries if a query fails.
    * The default value is `false`. Setting to `true` can be useful when
@@ -221,6 +261,7 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() {
    * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The continueOnFailure. */ @java.lang.Override @@ -229,21 +270,22 @@ public boolean getContinueOnFailure() { } public static final int SCRIPT_VARIABLES_FIELD_NUMBER = 4; + private static final class ScriptVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> scriptVariables_; + + private com.google.protobuf.MapField scriptVariables_; + private com.google.protobuf.MapField - internalGetScriptVariables() { + internalGetScriptVariables() { if (scriptVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( ScriptVariablesDefaultEntryHolder.defaultEntry); @@ -255,74 +297,81 @@ public int getScriptVariablesCount() { return internalGetScriptVariables().getMap().size(); } /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Hive command: `SET name="value";`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsScriptVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsScriptVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetScriptVariables().getMap().containsKey(key); } - /** - * Use {@link #getScriptVariablesMap()} instead. - */ + /** Use {@link #getScriptVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getScriptVariables() { return getScriptVariablesMap(); } /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Hive command: `SET name="value";`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getScriptVariablesMap() { return internalGetScriptVariables().getMap(); } /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Hive command: `SET name="value";`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetScriptVariables().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetScriptVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Hive command: `SET name="value";`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getScriptVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetScriptVariables().getMap(); + public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetScriptVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -330,24 +379,23 @@ public java.lang.String getScriptVariablesOrThrow( } public static final int PROPERTIES_FIELD_NUMBER = 5; + private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; - private com.google.protobuf.MapField - internalGetProperties() { + + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -356,6 +404,8 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
    * Optional. A mapping of property names and values, used to configure Hive.
    * Properties that conflict with values set by the Dataproc API may be
@@ -363,24 +413,25 @@ public int getPropertiesCount() {
    * /etc/hive/conf/hive-site.xml, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
    * Optional. A mapping of property names and values, used to configure Hive.
    * Properties that conflict with values set by the Dataproc API may be
@@ -388,14 +439,16 @@ public java.util.Map getProperties() {
    * /etc/hive/conf/hive-site.xml, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
    * Optional. A mapping of property names and values, used to configure Hive.
    * Properties that conflict with values set by the Dataproc API may be
@@ -403,19 +456,21 @@ public java.util.Map getPropertiesMap() {
    * /etc/hive/conf/hive-site.xml, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. A mapping of property names and values, used to configure Hive.
    * Properties that conflict with values set by the Dataproc API may be
@@ -423,15 +478,15 @@ public java.lang.String getPropertiesOrDefault(
    * /etc/hive/conf/hive-site.xml, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -441,6 +496,8 @@ public java.lang.String getPropertiesOrThrow( public static final int JAR_FILE_URIS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList jarFileUris_; /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -448,13 +505,15 @@ public java.lang.String getPropertiesOrThrow(
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList - getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { return jarFileUris_; } /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -462,12 +521,15 @@ public java.lang.String getPropertiesOrThrow(
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -475,6 +537,7 @@ public int getJarFileUrisCount() {
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -482,6 +545,8 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -489,15 +554,16 @@ public java.lang.String getJarFileUris(int index) {
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString - getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -509,8 +575,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (queriesCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_); } @@ -520,18 +585,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (continueOnFailure_ != false) { output.writeBool(3, continueOnFailure_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetScriptVariables(), - ScriptVariablesDefaultEntryHolder.defaultEntry, - 4); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetProperties(), - PropertiesDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetScriptVariables(), ScriptVariablesDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 5); for (int i = 0; i < jarFileUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jarFileUris_.getRaw(i)); } @@ -548,32 +605,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queries_); } if (queriesCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.dataproc.v1.QueryList) queries_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataproc.v1.QueryList) queries_); } if (continueOnFailure_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, continueOnFailure_); - } - for (java.util.Map.Entry entry - : internalGetScriptVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry - scriptVariables__ = ScriptVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, scriptVariables__); - } - for (java.util.Map.Entry entry - : internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry - properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, properties__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, continueOnFailure_); + } + for (java.util.Map.Entry entry : + internalGetScriptVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry scriptVariables__ = + ScriptVariablesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, scriptVariables__); + } + for (java.util.Map.Entry entry : + internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, properties__); } { int dataSize = 0; @@ -591,30 +648,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.dataproc.v1.HiveJob)) { return super.equals(obj); } com.google.cloud.dataproc.v1.HiveJob other = (com.google.cloud.dataproc.v1.HiveJob) obj; - if (getContinueOnFailure() - != other.getContinueOnFailure()) return false; - if (!internalGetScriptVariables().equals( - other.internalGetScriptVariables())) return false; - if (!internalGetProperties().equals( - other.internalGetProperties())) return false; - if (!getJarFileUrisList() - .equals(other.getJarFileUrisList())) return false; + if (getContinueOnFailure() != other.getContinueOnFailure()) return false; + if (!internalGetScriptVariables().equals(other.internalGetScriptVariables())) return false; + if (!internalGetProperties().equals(other.internalGetProperties())) return false; + if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; if (!getQueriesCase().equals(other.getQueriesCase())) return false; switch (queriesCase_) { case 1: - if (!getQueryFileUri() - .equals(other.getQueryFileUri())) return false; + if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; break; case 2: - if (!getQueryList() - .equals(other.getQueryList())) return false; + if (!getQueryList().equals(other.getQueryList())) return false; break; case 0: default: @@ -631,8 +682,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONTINUE_ON_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getContinueOnFailure()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContinueOnFailure()); if (!internalGetScriptVariables().getMap().isEmpty()) { hash = (37 * hash) + SCRIPT_VARIABLES_FIELD_NUMBER; hash = (53 * hash) + internalGetScriptVariables().hashCode(); @@ -662,97 +712,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.HiveJob parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.HiveJob parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.HiveJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.HiveJob parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.dataproc.v1.HiveJob parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.HiveJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.HiveJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.HiveJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.HiveJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.HiveJob parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.HiveJob 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.dataproc.v1.HiveJob parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.HiveJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.HiveJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.HiveJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc job for running [Apache Hive](https://hive.apache.org/)
    * queries on YARN.
@@ -760,59 +816,56 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.HiveJob}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.HiveJob)
       com.google.cloud.dataproc.v1.HiveJobOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HiveJob_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_HiveJob_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetScriptVariables();
         case 5:
           return internalGetProperties();
         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 internalGetMutableScriptVariables();
         case 5:
           return internalGetMutableProperties();
         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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.HiveJob.class, com.google.cloud.dataproc.v1.HiveJob.Builder.class);
+              com.google.cloud.dataproc.v1.HiveJob.class,
+              com.google.cloud.dataproc.v1.HiveJob.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.HiveJob.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -831,9 +884,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_HiveJob_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_HiveJob_descriptor;
     }
 
     @java.lang.Override
@@ -883,38 +936,39 @@ public com.google.cloud.dataproc.v1.HiveJob buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.HiveJob) {
-        return mergeFrom((com.google.cloud.dataproc.v1.HiveJob)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.HiveJob) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -926,10 +980,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.HiveJob other) {
       if (other.getContinueOnFailure() != false) {
         setContinueOnFailure(other.getContinueOnFailure());
       }
-      internalGetMutableScriptVariables().mergeFrom(
-          other.internalGetScriptVariables());
-      internalGetMutableProperties().mergeFrom(
-          other.internalGetProperties());
+      internalGetMutableScriptVariables().mergeFrom(other.internalGetScriptVariables());
+      internalGetMutableProperties().mergeFrom(other.internalGetProperties());
       if (!other.jarFileUris_.isEmpty()) {
         if (jarFileUris_.isEmpty()) {
           jarFileUris_ = other.jarFileUris_;
@@ -941,19 +993,22 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.HiveJob other) {
         onChanged();
       }
       switch (other.getQueriesCase()) {
-        case QUERY_FILE_URI: {
-          queriesCase_ = 1;
-          queries_ = other.queries_;
-          onChanged();
-          break;
-        }
-        case QUERY_LIST: {
-          mergeQueryList(other.getQueryList());
-          break;
-        }
-        case QUERIES_NOT_SET: {
-          break;
-        }
+        case QUERY_FILE_URI:
+          {
+            queriesCase_ = 1;
+            queries_ = other.queries_;
+            onChanged();
+            break;
+          }
+        case QUERY_LIST:
+          {
+            mergeQueryList(other.getQueryList());
+            break;
+          }
+        case QUERIES_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -981,52 +1036,61 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              queriesCase_ = 1;
-              queries_ = s;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getQueryListFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              queriesCase_ = 2;
-              break;
-            } // case 18
-            case 24: {
-              continueOnFailure_ = input.readBool();
-
-              break;
-            } // case 24
-            case 34: {
-              com.google.protobuf.MapEntry
-              scriptVariables__ = input.readMessage(
-                  ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableScriptVariables().getMutableMap().put(
-                  scriptVariables__.getKey(), scriptVariables__.getValue());
-              break;
-            } // case 34
-            case 42: {
-              com.google.protobuf.MapEntry
-              properties__ = input.readMessage(
-                  PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableProperties().getMutableMap().put(
-                  properties__.getKey(), properties__.getValue());
-              break;
-            } // case 42
-            case 50: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureJarFileUrisIsMutable();
-              jarFileUris_.add(s);
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                queriesCase_ = 1;
+                queries_ = s;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getQueryListFieldBuilder().getBuilder(), extensionRegistry);
+                queriesCase_ = 2;
+                break;
+              } // case 18
+            case 24:
+              {
+                continueOnFailure_ = input.readBool();
+
+                break;
+              } // case 24
+            case 34:
+              {
+                com.google.protobuf.MapEntry scriptVariables__ =
+                    input.readMessage(
+                        ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableScriptVariables()
+                    .getMutableMap()
+                    .put(scriptVariables__.getKey(), scriptVariables__.getValue());
+                break;
+              } // case 34
+            case 42:
+              {
+                com.google.protobuf.MapEntry properties__ =
+                    input.readMessage(
+                        PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableProperties()
+                    .getMutableMap()
+                    .put(properties__.getKey(), properties__.getValue());
+                break;
+              } // case 42
+            case 50:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureJarFileUrisIsMutable();
+                jarFileUris_.add(s);
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1036,12 +1100,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int queriesCase_ = 0;
     private java.lang.Object queries_;
-    public QueriesCase
-        getQueriesCase() {
-      return QueriesCase.forNumber(
-          queriesCase_);
+
+    public QueriesCase getQueriesCase() {
+      return QueriesCase.forNumber(queriesCase_);
     }
 
     public Builder clearQueries() {
@@ -1054,11 +1118,14 @@ public Builder clearQueries() {
     private int bitField0_;
 
     /**
+     *
+     *
      * 
      * The HCFS URI of the script that contains Hive queries.
      * 
* * string query_file_uri = 1; + * * @return Whether the queryFileUri field is set. */ @java.lang.Override @@ -1066,11 +1133,14 @@ public boolean hasQueryFileUri() { return queriesCase_ == 1; } /** + * + * *
      * The HCFS URI of the script that contains Hive queries.
      * 
* * string query_file_uri = 1; + * * @return The queryFileUri. */ @java.lang.Override @@ -1080,8 +1150,7 @@ public java.lang.String getQueryFileUri() { ref = queries_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (queriesCase_ == 1) { queries_ = s; @@ -1092,24 +1161,25 @@ public java.lang.String getQueryFileUri() { } } /** + * + * *
      * The HCFS URI of the script that contains Hive queries.
      * 
* * string query_file_uri = 1; + * * @return The bytes for queryFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryFileUriBytes() { + public com.google.protobuf.ByteString getQueryFileUriBytes() { java.lang.Object ref = ""; if (queriesCase_ == 1) { ref = queries_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (queriesCase_ == 1) { queries_ = b; } @@ -1119,30 +1189,35 @@ public java.lang.String getQueryFileUri() { } } /** + * + * *
      * The HCFS URI of the script that contains Hive queries.
      * 
* * string query_file_uri = 1; + * * @param value The queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUri( - java.lang.String value) { + public Builder setQueryFileUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - queriesCase_ = 1; + throw new NullPointerException(); + } + queriesCase_ = 1; queries_ = value; onChanged(); return this; } /** + * + * *
      * The HCFS URI of the script that contains Hive queries.
      * 
* * string query_file_uri = 1; + * * @return This builder for chaining. */ public Builder clearQueryFileUri() { @@ -1154,20 +1229,22 @@ public Builder clearQueryFileUri() { return this; } /** + * + * *
      * The HCFS URI of the script that contains Hive queries.
      * 
* * string query_file_uri = 1; + * * @param value The bytes for queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUriBytes( - com.google.protobuf.ByteString value) { + public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); queriesCase_ = 1; queries_ = value; onChanged(); @@ -1175,13 +1252,19 @@ public Builder setQueryFileUriBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder> queryListBuilder_; + com.google.cloud.dataproc.v1.QueryList, + com.google.cloud.dataproc.v1.QueryList.Builder, + com.google.cloud.dataproc.v1.QueryListOrBuilder> + queryListBuilder_; /** + * + * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return Whether the queryList field is set. */ @java.lang.Override @@ -1189,11 +1272,14 @@ public boolean hasQueryList() { return queriesCase_ == 2; } /** + * + * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return The queryList. */ @java.lang.Override @@ -1211,6 +1297,8 @@ public com.google.cloud.dataproc.v1.QueryList getQueryList() { } } /** + * + * *
      * A list of queries.
      * 
@@ -1231,14 +1319,15 @@ public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList value) { return this; } /** + * + * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; */ - public Builder setQueryList( - com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { + public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { if (queryListBuilder_ == null) { queries_ = builderForValue.build(); onChanged(); @@ -1249,6 +1338,8 @@ public Builder setQueryList( return this; } /** + * + * *
      * A list of queries.
      * 
@@ -1257,10 +1348,13 @@ public Builder setQueryList( */ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { if (queryListBuilder_ == null) { - if (queriesCase_ == 2 && - queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { - queries_ = com.google.cloud.dataproc.v1.QueryList.newBuilder((com.google.cloud.dataproc.v1.QueryList) queries_) - .mergeFrom(value).buildPartial(); + if (queriesCase_ == 2 + && queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { + queries_ = + com.google.cloud.dataproc.v1.QueryList.newBuilder( + (com.google.cloud.dataproc.v1.QueryList) queries_) + .mergeFrom(value) + .buildPartial(); } else { queries_ = value; } @@ -1276,6 +1370,8 @@ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { return this; } /** + * + * *
      * A list of queries.
      * 
@@ -1299,6 +1395,8 @@ public Builder clearQueryList() { return this; } /** + * + * *
      * A list of queries.
      * 
@@ -1309,6 +1407,8 @@ public com.google.cloud.dataproc.v1.QueryList.Builder getQueryListBuilder() { return getQueryListFieldBuilder().getBuilder(); } /** + * + * *
      * A list of queries.
      * 
@@ -1327,6 +1427,8 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { } } /** + * + * *
      * A list of queries.
      * 
@@ -1334,26 +1436,34 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { * .google.cloud.dataproc.v1.QueryList query_list = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder> + com.google.cloud.dataproc.v1.QueryList, + com.google.cloud.dataproc.v1.QueryList.Builder, + com.google.cloud.dataproc.v1.QueryListOrBuilder> getQueryListFieldBuilder() { if (queryListBuilder_ == null) { if (!(queriesCase_ == 2)) { queries_ = com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } - queryListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder>( + queryListBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.QueryList, + com.google.cloud.dataproc.v1.QueryList.Builder, + com.google.cloud.dataproc.v1.QueryListOrBuilder>( (com.google.cloud.dataproc.v1.QueryList) queries_, getParentForChildren(), isClean()); queries_ = null; } queriesCase_ = 2; - onChanged();; + onChanged(); + ; return queryListBuilder_; } - private boolean continueOnFailure_ ; + private boolean continueOnFailure_; /** + * + * *
      * Optional. Whether to continue executing queries if a query fails.
      * The default value is `false`. Setting to `true` can be useful when
@@ -1361,6 +1471,7 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() {
      * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The continueOnFailure. */ @java.lang.Override @@ -1368,6 +1479,8 @@ public boolean getContinueOnFailure() { return continueOnFailure_; } /** + * + * *
      * Optional. Whether to continue executing queries if a query fails.
      * The default value is `false`. Setting to `true` can be useful when
@@ -1375,16 +1488,19 @@ public boolean getContinueOnFailure() {
      * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The continueOnFailure to set. * @return This builder for chaining. */ public Builder setContinueOnFailure(boolean value) { - + continueOnFailure_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Whether to continue executing queries if a query fails.
      * The default value is `false`. Setting to `true` can be useful when
@@ -1392,31 +1508,35 @@ public Builder setContinueOnFailure(boolean value) {
      * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearContinueOnFailure() { - + continueOnFailure_ = false; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> scriptVariables_; + private com.google.protobuf.MapField scriptVariables_; + private com.google.protobuf.MapField - internalGetScriptVariables() { + internalGetScriptVariables() { if (scriptVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( ScriptVariablesDefaultEntryHolder.defaultEntry); } return scriptVariables_; } + private com.google.protobuf.MapField - internalGetMutableScriptVariables() { - onChanged();; + internalGetMutableScriptVariables() { + onChanged(); + ; if (scriptVariables_ == null) { - scriptVariables_ = com.google.protobuf.MapField.newMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); + scriptVariables_ = + com.google.protobuf.MapField.newMapField( + ScriptVariablesDefaultEntryHolder.defaultEntry); } if (!scriptVariables_.isMutable()) { scriptVariables_ = scriptVariables_.copy(); @@ -1428,74 +1548,85 @@ public int getScriptVariablesCount() { return internalGetScriptVariables().getMap().size(); } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Hive command: `SET name="value";`).
      * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsScriptVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsScriptVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetScriptVariables().getMap().containsKey(key); } - /** - * Use {@link #getScriptVariablesMap()} instead. - */ + /** Use {@link #getScriptVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getScriptVariables() { return getScriptVariablesMap(); } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Hive command: `SET name="value";`).
      * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getScriptVariablesMap() { return internalGetScriptVariables().getMap(); } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Hive command: `SET name="value";`).
      * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetScriptVariables().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetScriptVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Hive command: `SET name="value";`).
      * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getScriptVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetScriptVariables().getMap(); + public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetScriptVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1503,86 +1634,91 @@ public java.lang.String getScriptVariablesOrThrow( } public Builder clearScriptVariables() { - internalGetMutableScriptVariables().getMutableMap() - .clear(); + internalGetMutableScriptVariables().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Hive command: `SET name="value";`).
      * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeScriptVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableScriptVariables().getMutableMap() - .remove(key); + public Builder removeScriptVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableScriptVariables().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableScriptVariables() { + public java.util.Map getMutableScriptVariables() { return internalGetMutableScriptVariables().getMutableMap(); } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Hive command: `SET name="value";`).
      * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putScriptVariables( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putScriptVariables(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"); + } - internalGetMutableScriptVariables().getMutableMap() - .put(key, value); + internalGetMutableScriptVariables().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Hive command: `SET name="value";`).
      * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllScriptVariables( - java.util.Map values) { - internalGetMutableScriptVariables().getMutableMap() - .putAll(values); + public Builder putAllScriptVariables(java.util.Map values) { + internalGetMutableScriptVariables().getMutableMap().putAll(values); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField properties_; + private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } + private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged();; + internalGetMutableProperties() { + onChanged(); + ; if (properties_ == null) { - properties_ = com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); + properties_ = + com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -1594,6 +1730,8 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
      * Optional. A mapping of property names and values, used to configure Hive.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1601,24 +1739,25 @@ public int getPropertiesCount() {
      * /etc/hive/conf/hive-site.xml, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
      * Optional. A mapping of property names and values, used to configure Hive.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1626,14 +1765,16 @@ public java.util.Map getProperties() {
      * /etc/hive/conf/hive-site.xml, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
      * Optional. A mapping of property names and values, used to configure Hive.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1641,19 +1782,21 @@ public java.util.Map getPropertiesMap() {
      * /etc/hive/conf/hive-site.xml, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. A mapping of property names and values, used to configure Hive.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1661,15 +1804,15 @@ public java.lang.String getPropertiesOrDefault(
      * /etc/hive/conf/hive-site.xml, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1677,11 +1820,12 @@ public java.lang.String getPropertiesOrThrow( } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap() - .clear(); + internalGetMutableProperties().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. A mapping of property names and values, used to configure Hive.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1689,25 +1833,24 @@ public Builder clearProperties() {
      * /etc/hive/conf/hive-site.xml, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableProperties().getMutableMap() - .remove(key); + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProperties().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableProperties() { + public java.util.Map getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** + * + * *
      * Optional. A mapping of property names and values, used to configure Hive.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1715,21 +1858,23 @@ public Builder removeProperties(
      * /etc/hive/conf/hive-site.xml, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putProperties( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putProperties(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"); + } - internalGetMutableProperties().getMutableMap() - .put(key, value); + internalGetMutableProperties().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. A mapping of property names and values, used to configure Hive.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1737,24 +1882,26 @@ public Builder putProperties(
      * /etc/hive/conf/hive-site.xml, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllProperties( - java.util.Map values) { - internalGetMutableProperties().getMutableMap() - .putAll(values); + public Builder putAllProperties(java.util.Map values) { + internalGetMutableProperties().getMutableMap().putAll(values); return this; } - private com.google.protobuf.LazyStringList jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList jarFileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureJarFileUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -1762,13 +1909,15 @@ private void ensureJarFileUrisIsMutable() {
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList - getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { return jarFileUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -1776,12 +1925,15 @@ private void ensureJarFileUrisIsMutable() {
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -1789,6 +1941,7 @@ public int getJarFileUrisCount() {
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -1796,6 +1949,8 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -1803,14 +1958,16 @@ public java.lang.String getJarFileUris(int index) {
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString - getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -1818,21 +1975,23 @@ public java.lang.String getJarFileUris(int index) {
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The jarFileUris to set. * @return This builder for chaining. */ - public Builder setJarFileUris( - int index, java.lang.String value) { + public Builder setJarFileUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -1840,20 +1999,22 @@ public Builder setJarFileUris(
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUris( - java.lang.String value) { + public Builder addJarFileUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -1861,18 +2022,19 @@ public Builder addJarFileUris(
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The jarFileUris to add. * @return This builder for chaining. */ - public Builder addAllJarFileUris( - java.lang.Iterable values) { + public Builder addAllJarFileUris(java.lang.Iterable values) { ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, jarFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -1880,6 +2042,7 @@ public Builder addAllJarFileUris(
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearJarFileUris() { @@ -1889,6 +2052,8 @@ public Builder clearJarFileUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
      * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -1896,23 +2061,23 @@ public Builder clearJarFileUris() {
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureJarFileUrisIsMutable(); jarFileUris_.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); } @@ -1922,12 +2087,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.HiveJob) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.HiveJob) private static final com.google.cloud.dataproc.v1.HiveJob DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.HiveJob(); } @@ -1936,27 +2101,27 @@ public static com.google.cloud.dataproc.v1.HiveJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HiveJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HiveJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1971,6 +2136,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.HiveJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java similarity index 74% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java index 53a081d6fe00..3ec982082294 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java @@ -1,60 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface HiveJobOrBuilder extends +public interface HiveJobOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.HiveJob) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The HCFS URI of the script that contains Hive queries.
    * 
* * string query_file_uri = 1; + * * @return Whether the queryFileUri field is set. */ boolean hasQueryFileUri(); /** + * + * *
    * The HCFS URI of the script that contains Hive queries.
    * 
* * string query_file_uri = 1; + * * @return The queryFileUri. */ java.lang.String getQueryFileUri(); /** + * + * *
    * The HCFS URI of the script that contains Hive queries.
    * 
* * string query_file_uri = 1; + * * @return The bytes for queryFileUri. */ - com.google.protobuf.ByteString - getQueryFileUriBytes(); + com.google.protobuf.ByteString getQueryFileUriBytes(); /** + * + * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return Whether the queryList field is set. */ boolean hasQueryList(); /** + * + * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return The queryList. */ com.google.cloud.dataproc.v1.QueryList getQueryList(); /** + * + * *
    * A list of queries.
    * 
@@ -64,6 +96,8 @@ public interface HiveJobOrBuilder extends com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder(); /** + * + * *
    * Optional. Whether to continue executing queries if a query fails.
    * The default value is `false`. Setting to `true` can be useful when
@@ -71,72 +105,83 @@ public interface HiveJobOrBuilder extends
    * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The continueOnFailure. */ boolean getContinueOnFailure(); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Hive command: `SET name="value";`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getScriptVariablesCount(); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Hive command: `SET name="value";`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsScriptVariables( - java.lang.String key); - /** - * Use {@link #getScriptVariablesMap()} instead. + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsScriptVariables(java.lang.String key); + /** Use {@link #getScriptVariablesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getScriptVariables(); + java.util.Map getScriptVariables(); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Hive command: `SET name="value";`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getScriptVariablesMap(); + java.util.Map getScriptVariablesMap(); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Hive command: `SET name="value";`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getScriptVariablesOrDefault( + java.lang.String getScriptVariablesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Hive command: `SET name="value";`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - java.lang.String getScriptVariablesOrThrow( - java.lang.String key); + java.lang.String getScriptVariablesOrThrow(java.lang.String key); /** + * + * *
    * Optional. A mapping of property names and values, used to configure Hive.
    * Properties that conflict with values set by the Dataproc API may be
@@ -144,10 +189,13 @@ java.lang.String getScriptVariablesOrThrow(
    * /etc/hive/conf/hive-site.xml, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getPropertiesCount(); /** + * + * *
    * Optional. A mapping of property names and values, used to configure Hive.
    * Properties that conflict with values set by the Dataproc API may be
@@ -155,17 +203,16 @@ java.lang.String getScriptVariablesOrThrow(
    * /etc/hive/conf/hive-site.xml, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsProperties( - java.lang.String key); - /** - * Use {@link #getPropertiesMap()} instead. + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsProperties(java.lang.String key); + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getProperties(); + java.util.Map getProperties(); /** + * + * *
    * Optional. A mapping of property names and values, used to configure Hive.
    * Properties that conflict with values set by the Dataproc API may be
@@ -173,11 +220,13 @@ boolean containsProperties(
    * /etc/hive/conf/hive-site.xml, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getPropertiesMap(); + java.util.Map getPropertiesMap(); /** + * + * *
    * Optional. A mapping of property names and values, used to configure Hive.
    * Properties that conflict with values set by the Dataproc API may be
@@ -185,15 +234,18 @@ boolean containsProperties(
    * /etc/hive/conf/hive-site.xml, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getPropertiesOrDefault( + java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. A mapping of property names and values, used to configure Hive.
    * Properties that conflict with values set by the Dataproc API may be
@@ -201,13 +253,14 @@ java.lang.String getPropertiesOrDefault(
    * /etc/hive/conf/hive-site.xml, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - java.lang.String getPropertiesOrThrow( - java.lang.String key); + java.lang.String getPropertiesOrThrow(java.lang.String key); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -215,11 +268,13 @@ java.lang.String getPropertiesOrThrow(
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - java.util.List - getJarFileUrisList(); + java.util.List getJarFileUrisList(); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -227,10 +282,13 @@ java.lang.String getPropertiesOrThrow(
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ int getJarFileUrisCount(); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -238,11 +296,14 @@ java.lang.String getPropertiesOrThrow(
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ java.lang.String getJarFileUris(int index); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
    * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
@@ -250,11 +311,11 @@ java.lang.String getPropertiesOrThrow(
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - com.google.protobuf.ByteString - getJarFileUrisBytes(int index); + com.google.protobuf.ByteString getJarFileUrisBytes(int index); public com.google.cloud.dataproc.v1.HiveJob.QueriesCase getQueriesCase(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java similarity index 57% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java index 087adc016f52..6b707e4e0c2b 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Identity related configuration, including service account based
  * secure multi-tenancy user mappings.
@@ -11,71 +28,73 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.IdentityConfig}
  */
-public final class IdentityConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class IdentityConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.IdentityConfig)
     IdentityConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use IdentityConfig.newBuilder() to construct.
   private IdentityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private IdentityConfig() {
-  }
+
+  private IdentityConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new IdentityConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_IdentityConfig_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 internalGetUserServiceAccountMapping();
       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.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.IdentityConfig.class, com.google.cloud.dataproc.v1.IdentityConfig.Builder.class);
+            com.google.cloud.dataproc.v1.IdentityConfig.class,
+            com.google.cloud.dataproc.v1.IdentityConfig.Builder.class);
   }
 
   public static final int USER_SERVICE_ACCOUNT_MAPPING_FIELD_NUMBER = 1;
+
   private static final class UserServiceAccountMappingDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "");
-  }
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> userServiceAccountMapping_;
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.cloud.dataproc.v1.ClustersProto
+                .internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
+  }
+
+  private com.google.protobuf.MapField
+      userServiceAccountMapping_;
+
   private com.google.protobuf.MapField
-  internalGetUserServiceAccountMapping() {
+      internalGetUserServiceAccountMapping() {
     if (userServiceAccountMapping_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
           UserServiceAccountMappingDefaultEntryHolder.defaultEntry);
@@ -87,68 +106,81 @@ public int getUserServiceAccountMappingCount() {
     return internalGetUserServiceAccountMapping().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Required. Map of user to service account.
    * 
* - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - @java.lang.Override - public boolean containsUserServiceAccountMapping( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsUserServiceAccountMapping(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetUserServiceAccountMapping().getMap().containsKey(key); } - /** - * Use {@link #getUserServiceAccountMappingMap()} instead. - */ + /** Use {@link #getUserServiceAccountMappingMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getUserServiceAccountMapping() { return getUserServiceAccountMappingMap(); } /** + * + * *
    * Required. Map of user to service account.
    * 
* - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.Map getUserServiceAccountMappingMap() { return internalGetUserServiceAccountMapping().getMap(); } /** + * + * *
    * Required. Map of user to service account.
    * 
* - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.lang.String getUserServiceAccountMappingOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetUserServiceAccountMapping().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Required. Map of user to service account.
    * 
* - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - - public java.lang.String getUserServiceAccountMappingOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getUserServiceAccountMappingOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetUserServiceAccountMapping().getMap(); if (!map.containsKey(key)) { @@ -158,6 +190,7 @@ public java.lang.String getUserServiceAccountMappingOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,10 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetUserServiceAccountMapping(), UserServiceAccountMappingDefaultEntryHolder.defaultEntry, @@ -186,15 +217,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetUserServiceAccountMapping().getMap().entrySet()) { - com.google.protobuf.MapEntry - userServiceAccountMapping__ = UserServiceAccountMappingDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, userServiceAccountMapping__); + for (java.util.Map.Entry entry : + internalGetUserServiceAccountMapping().getMap().entrySet()) { + com.google.protobuf.MapEntry userServiceAccountMapping__ = + UserServiceAccountMappingDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, userServiceAccountMapping__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -204,15 +236,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.IdentityConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.IdentityConfig other = (com.google.cloud.dataproc.v1.IdentityConfig) obj; + com.google.cloud.dataproc.v1.IdentityConfig other = + (com.google.cloud.dataproc.v1.IdentityConfig) obj; - if (!internalGetUserServiceAccountMapping().equals( - other.internalGetUserServiceAccountMapping())) return false; + if (!internalGetUserServiceAccountMapping() + .equals(other.internalGetUserServiceAccountMapping())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,97 +266,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.IdentityConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.IdentityConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.IdentityConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.IdentityConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Identity related configuration, including service account based
    * secure multi-tenancy user mappings.
@@ -331,55 +371,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.IdentityConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.IdentityConfig)
       com.google.cloud.dataproc.v1.IdentityConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 1:
           return internalGetUserServiceAccountMapping();
         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 internalGetMutableUserServiceAccountMapping();
         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.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.IdentityConfig.class, com.google.cloud.dataproc.v1.IdentityConfig.Builder.class);
+              com.google.cloud.dataproc.v1.IdentityConfig.class,
+              com.google.cloud.dataproc.v1.IdentityConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.IdentityConfig.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -388,9 +425,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor;
     }
 
     @java.lang.Override
@@ -409,7 +446,8 @@ public com.google.cloud.dataproc.v1.IdentityConfig build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.IdentityConfig buildPartial() {
-      com.google.cloud.dataproc.v1.IdentityConfig result = new com.google.cloud.dataproc.v1.IdentityConfig(this);
+      com.google.cloud.dataproc.v1.IdentityConfig result =
+          new com.google.cloud.dataproc.v1.IdentityConfig(this);
       int from_bitField0_ = bitField0_;
       result.userServiceAccountMapping_ = internalGetUserServiceAccountMapping();
       result.userServiceAccountMapping_.makeImmutable();
@@ -421,38 +459,39 @@ public com.google.cloud.dataproc.v1.IdentityConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.IdentityConfig) {
-        return mergeFrom((com.google.cloud.dataproc.v1.IdentityConfig)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.IdentityConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -461,8 +500,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.IdentityConfig other) {
       if (other == com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance()) return this;
-      internalGetMutableUserServiceAccountMapping().mergeFrom(
-          other.internalGetUserServiceAccountMapping());
+      internalGetMutableUserServiceAccountMapping()
+          .mergeFrom(other.internalGetUserServiceAccountMapping());
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -489,20 +528,28 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.protobuf.MapEntry
-              userServiceAccountMapping__ = input.readMessage(
-                  UserServiceAccountMappingDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableUserServiceAccountMapping().getMutableMap().put(
-                  userServiceAccountMapping__.getKey(), userServiceAccountMapping__.getValue());
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.protobuf.MapEntry
+                    userServiceAccountMapping__ =
+                        input.readMessage(
+                            UserServiceAccountMappingDefaultEntryHolder.defaultEntry
+                                .getParserForType(),
+                            extensionRegistry);
+                internalGetMutableUserServiceAccountMapping()
+                    .getMutableMap()
+                    .put(
+                        userServiceAccountMapping__.getKey(),
+                        userServiceAccountMapping__.getValue());
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -512,24 +559,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.String> userServiceAccountMapping_;
     private com.google.protobuf.MapField
-    internalGetUserServiceAccountMapping() {
+        userServiceAccountMapping_;
+
+    private com.google.protobuf.MapField
+        internalGetUserServiceAccountMapping() {
       if (userServiceAccountMapping_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             UserServiceAccountMappingDefaultEntryHolder.defaultEntry);
       }
       return userServiceAccountMapping_;
     }
+
     private com.google.protobuf.MapField
-    internalGetMutableUserServiceAccountMapping() {
-      onChanged();;
+        internalGetMutableUserServiceAccountMapping() {
+      onChanged();
+      ;
       if (userServiceAccountMapping_ == null) {
-        userServiceAccountMapping_ = com.google.protobuf.MapField.newMapField(
-            UserServiceAccountMappingDefaultEntryHolder.defaultEntry);
+        userServiceAccountMapping_ =
+            com.google.protobuf.MapField.newMapField(
+                UserServiceAccountMappingDefaultEntryHolder.defaultEntry);
       }
       if (!userServiceAccountMapping_.isMutable()) {
         userServiceAccountMapping_ = userServiceAccountMapping_.copy();
@@ -541,68 +593,81 @@ public int getUserServiceAccountMappingCount() {
       return internalGetUserServiceAccountMapping().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Required. Map of user to service account.
      * 
* - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - @java.lang.Override - public boolean containsUserServiceAccountMapping( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsUserServiceAccountMapping(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetUserServiceAccountMapping().getMap().containsKey(key); } - /** - * Use {@link #getUserServiceAccountMappingMap()} instead. - */ + /** Use {@link #getUserServiceAccountMappingMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getUserServiceAccountMapping() { return getUserServiceAccountMappingMap(); } /** + * + * *
      * Required. Map of user to service account.
      * 
* - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.Map getUserServiceAccountMappingMap() { return internalGetUserServiceAccountMapping().getMap(); } /** + * + * *
      * Required. Map of user to service account.
      * 
* - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.lang.String getUserServiceAccountMappingOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetUserServiceAccountMapping().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Required. Map of user to service account.
      * 
* - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - - public java.lang.String getUserServiceAccountMappingOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getUserServiceAccountMappingOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetUserServiceAccountMapping().getMap(); if (!map.containsKey(key)) { @@ -612,69 +677,73 @@ public java.lang.String getUserServiceAccountMappingOrThrow( } public Builder clearUserServiceAccountMapping() { - internalGetMutableUserServiceAccountMapping().getMutableMap() - .clear(); + internalGetMutableUserServiceAccountMapping().getMutableMap().clear(); return this; } /** + * + * *
      * Required. Map of user to service account.
      * 
* - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - - public Builder removeUserServiceAccountMapping( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableUserServiceAccountMapping().getMutableMap() - .remove(key); + public Builder removeUserServiceAccountMapping(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableUserServiceAccountMapping().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableUserServiceAccountMapping() { + public java.util.Map getMutableUserServiceAccountMapping() { return internalGetMutableUserServiceAccountMapping().getMutableMap(); } /** + * + * *
      * Required. Map of user to service account.
      * 
* - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder putUserServiceAccountMapping( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putUserServiceAccountMapping(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"); + } - internalGetMutableUserServiceAccountMapping().getMutableMap() - .put(key, value); + internalGetMutableUserServiceAccountMapping().getMutableMap().put(key, value); return this; } /** + * + * *
      * Required. Map of user to service account.
      * 
* - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder putAllUserServiceAccountMapping( java.util.Map values) { - internalGetMutableUserServiceAccountMapping().getMutableMap() - .putAll(values); + internalGetMutableUserServiceAccountMapping().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); } @@ -684,12 +753,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.IdentityConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.IdentityConfig) private static final com.google.cloud.dataproc.v1.IdentityConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.IdentityConfig(); } @@ -698,27 +767,27 @@ public static com.google.cloud.dataproc.v1.IdentityConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IdentityConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdentityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -733,6 +802,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.IdentityConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java new file mode 100644 index 000000000000..023e87a5431a --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface IdentityConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.IdentityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Map of user to service account.
+   * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getUserServiceAccountMappingCount(); + /** + * + * + *
+   * Required. Map of user to service account.
+   * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + boolean containsUserServiceAccountMapping(java.lang.String key); + /** Use {@link #getUserServiceAccountMappingMap()} instead. */ + @java.lang.Deprecated + java.util.Map getUserServiceAccountMapping(); + /** + * + * + *
+   * Required. Map of user to service account.
+   * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.Map getUserServiceAccountMappingMap(); + /** + * + * + *
+   * Required. Map of user to service account.
+   * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + + /* nullable */ + java.lang.String getUserServiceAccountMappingOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Required. Map of user to service account.
+   * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.lang.String getUserServiceAccountMappingOrThrow(java.lang.String key); +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java similarity index 72% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java index 2c944db83700..6e4db50dec29 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Configuration for the size bounds of an instance group, including its
  * proportional size to other groups.
@@ -11,46 +28,51 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig}
  */
-public final class InstanceGroupAutoscalingPolicyConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class InstanceGroupAutoscalingPolicyConfig
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig)
     InstanceGroupAutoscalingPolicyConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use InstanceGroupAutoscalingPolicyConfig.newBuilder() to construct.
-  private InstanceGroupAutoscalingPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private InstanceGroupAutoscalingPolicyConfig(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private InstanceGroupAutoscalingPolicyConfig() {
-  }
+
+  private InstanceGroupAutoscalingPolicyConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new InstanceGroupAutoscalingPolicyConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
+        .internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
+        .internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.class, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder.class);
+            com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.class,
+            com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder.class);
   }
 
   public static final int MIN_INSTANCES_FIELD_NUMBER = 1;
   private int minInstances_;
   /**
+   *
+   *
    * 
    * Optional. Minimum number of instances for this group.
    * Primary workers - Bounds: [2, max_instances]. Default: 2.
@@ -58,6 +80,7 @@ protected java.lang.Object newInstance(
    * 
* * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The minInstances. */ @java.lang.Override @@ -68,6 +91,8 @@ public int getMinInstances() { public static final int MAX_INSTANCES_FIELD_NUMBER = 2; private int maxInstances_; /** + * + * *
    * Required. Maximum number of instances for this group. Required for primary
    * workers. Note that by default, clusters will not use secondary workers.
@@ -77,6 +102,7 @@ public int getMinInstances() {
    * 
* * int32 max_instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The maxInstances. */ @java.lang.Override @@ -87,6 +113,8 @@ public int getMaxInstances() { public static final int WEIGHT_FIELD_NUMBER = 3; private int weight_; /** + * + * *
    * Optional. Weight for the instance group, which is used to determine the
    * fraction of total workers in the cluster from this instance group.
@@ -107,6 +135,7 @@ public int getMaxInstances() {
    * 
* * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The weight. */ @java.lang.Override @@ -115,6 +144,7 @@ public int getWeight() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,8 +156,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (minInstances_ != 0) { output.writeInt32(1, minInstances_); } @@ -147,16 +176,13 @@ public int getSerializedSize() { size = 0; if (minInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, minInstances_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, minInstances_); } if (maxInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, maxInstances_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxInstances_); } if (weight_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, weight_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, weight_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -166,19 +192,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig other = (com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) obj; + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig other = + (com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) obj; - if (getMinInstances() - != other.getMinInstances()) return false; - if (getMaxInstances() - != other.getMaxInstances()) return false; - if (getWeight() - != other.getWeight()) return false; + if (getMinInstances() != other.getMinInstances()) return false; + if (getMaxInstances() != other.getMaxInstances()) return false; + if (getWeight() != other.getWeight()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -202,96 +226,105 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig 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.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig 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.dataproc.v1.InstanceGroupAutoscalingPolicyConfig + 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.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration for the size bounds of an instance group, including its
    * proportional size to other groups.
@@ -299,33 +332,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig)
       com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
+          .internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
+          .internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.class, com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder.class);
+              com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.class,
+              com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder.class);
     }
 
-    // Construct using com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.newBuilder()
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -339,13 +372,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
+          .internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getDefaultInstanceForType() {
+    public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig
+        getDefaultInstanceForType() {
       return com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance();
     }
 
@@ -360,7 +394,8 @@ public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig build()
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig buildPartial() {
-      com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig result = new com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig(this);
+      com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig result =
+          new com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig(this);
       result.minInstances_ = minInstances_;
       result.maxInstances_ = maxInstances_;
       result.weight_ = weight_;
@@ -372,46 +407,50 @@ public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig buildPa
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) {
-        return mergeFrom((com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig other) {
-      if (other == com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig other) {
+      if (other
+          == com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance())
+        return this;
       if (other.getMinInstances() != 0) {
         setMinInstances(other.getMinInstances());
       }
@@ -447,27 +486,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              minInstances_ = input.readInt32();
-
-              break;
-            } // case 8
-            case 16: {
-              maxInstances_ = input.readInt32();
-
-              break;
-            } // case 16
-            case 24: {
-              weight_ = input.readInt32();
-
-              break;
-            } // case 24
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                minInstances_ = input.readInt32();
+
+                break;
+              } // case 8
+            case 16:
+              {
+                maxInstances_ = input.readInt32();
+
+                break;
+              } // case 16
+            case 24:
+              {
+                weight_ = input.readInt32();
+
+                break;
+              } // case 24
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -478,8 +521,10 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int minInstances_ ;
+    private int minInstances_;
     /**
+     *
+     *
      * 
      * Optional. Minimum number of instances for this group.
      * Primary workers - Bounds: [2, max_instances]. Default: 2.
@@ -487,6 +532,7 @@ public Builder mergeFrom(
      * 
* * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The minInstances. */ @java.lang.Override @@ -494,6 +540,8 @@ public int getMinInstances() { return minInstances_; } /** + * + * *
      * Optional. Minimum number of instances for this group.
      * Primary workers - Bounds: [2, max_instances]. Default: 2.
@@ -501,16 +549,19 @@ public int getMinInstances() {
      * 
* * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The minInstances to set. * @return This builder for chaining. */ public Builder setMinInstances(int value) { - + minInstances_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Minimum number of instances for this group.
      * Primary workers - Bounds: [2, max_instances]. Default: 2.
@@ -518,17 +569,20 @@ public Builder setMinInstances(int value) {
      * 
* * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMinInstances() { - + minInstances_ = 0; onChanged(); return this; } - private int maxInstances_ ; + private int maxInstances_; /** + * + * *
      * Required. Maximum number of instances for this group. Required for primary
      * workers. Note that by default, clusters will not use secondary workers.
@@ -538,6 +592,7 @@ public Builder clearMinInstances() {
      * 
* * int32 max_instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The maxInstances. */ @java.lang.Override @@ -545,6 +600,8 @@ public int getMaxInstances() { return maxInstances_; } /** + * + * *
      * Required. Maximum number of instances for this group. Required for primary
      * workers. Note that by default, clusters will not use secondary workers.
@@ -554,16 +611,19 @@ public int getMaxInstances() {
      * 
* * int32 max_instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The maxInstances to set. * @return This builder for chaining. */ public Builder setMaxInstances(int value) { - + maxInstances_ = value; onChanged(); return this; } /** + * + * *
      * Required. Maximum number of instances for this group. Required for primary
      * workers. Note that by default, clusters will not use secondary workers.
@@ -573,17 +633,20 @@ public Builder setMaxInstances(int value) {
      * 
* * int32 max_instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMaxInstances() { - + maxInstances_ = 0; onChanged(); return this; } - private int weight_ ; + private int weight_; /** + * + * *
      * Optional. Weight for the instance group, which is used to determine the
      * fraction of total workers in the cluster from this instance group.
@@ -604,6 +667,7 @@ public Builder clearMaxInstances() {
      * 
* * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The weight. */ @java.lang.Override @@ -611,6 +675,8 @@ public int getWeight() { return weight_; } /** + * + * *
      * Optional. Weight for the instance group, which is used to determine the
      * fraction of total workers in the cluster from this instance group.
@@ -631,16 +697,19 @@ public int getWeight() {
      * 
* * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The weight to set. * @return This builder for chaining. */ public Builder setWeight(int value) { - + weight_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Weight for the instance group, which is used to determine the
      * fraction of total workers in the cluster from this instance group.
@@ -661,17 +730,18 @@ public Builder setWeight(int value) {
      * 
* * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearWeight() { - + weight_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -681,41 +751,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) - private static final com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig DEFAULT_INSTANCE; + private static final com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig(); } - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getDefaultInstance() { + public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstanceGroupAutoscalingPolicyConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceGroupAutoscalingPolicyConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -727,9 +799,8 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getDefaultInstanceForType() { + public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java similarity index 77% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java index d3f668050172..6076ba8db912 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; -public interface InstanceGroupAutoscalingPolicyConfigOrBuilder extends +public interface InstanceGroupAutoscalingPolicyConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Minimum number of instances for this group.
    * Primary workers - Bounds: [2, max_instances]. Default: 2.
@@ -15,11 +33,14 @@ public interface InstanceGroupAutoscalingPolicyConfigOrBuilder extends
    * 
* * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The minInstances. */ int getMinInstances(); /** + * + * *
    * Required. Maximum number of instances for this group. Required for primary
    * workers. Note that by default, clusters will not use secondary workers.
@@ -29,11 +50,14 @@ public interface InstanceGroupAutoscalingPolicyConfigOrBuilder extends
    * 
* * int32 max_instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The maxInstances. */ int getMaxInstances(); /** + * + * *
    * Optional. Weight for the instance group, which is used to determine the
    * fraction of total workers in the cluster from this instance group.
@@ -54,6 +78,7 @@ public interface InstanceGroupAutoscalingPolicyConfigOrBuilder extends
    * 
* * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The weight. */ int getWeight(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java similarity index 72% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java index b33c53a1bcd7..6a8d0418355e 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * The config settings for Compute Engine resources in
  * an instance group, such as a master or worker group.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.InstanceGroupConfig}
  */
-public final class InstanceGroupConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class InstanceGroupConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.InstanceGroupConfig)
     InstanceGroupConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use InstanceGroupConfig.newBuilder() to construct.
   private InstanceGroupConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private InstanceGroupConfig() {
     instanceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     imageUri_ = "";
@@ -31,39 +49,43 @@ private InstanceGroupConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new InstanceGroupConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.InstanceGroupConfig.class, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder.class);
+            com.google.cloud.dataproc.v1.InstanceGroupConfig.class,
+            com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Controls the use of preemptible instances within the group.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility} */ - public enum Preemptibility - implements com.google.protobuf.ProtocolMessageEnum { + public enum Preemptibility implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Preemptibility is unspecified, the system will choose the
      * appropriate setting for each instance group.
@@ -73,6 +95,8 @@ public enum Preemptibility
      */
     PREEMPTIBILITY_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Instances are non-preemptible.
      * This option is allowed for all instance groups and is the only valid
@@ -83,6 +107,8 @@ public enum Preemptibility
      */
     NON_PREEMPTIBLE(1),
     /**
+     *
+     *
      * 
      * Instances are [preemptible]
      * (https://cloud.google.com/compute/docs/instances/preemptible).
@@ -98,6 +124,8 @@ public enum Preemptibility
     ;
 
     /**
+     *
+     *
      * 
      * Preemptibility is unspecified, the system will choose the
      * appropriate setting for each instance group.
@@ -107,6 +135,8 @@ public enum Preemptibility
      */
     public static final int PREEMPTIBILITY_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Instances are non-preemptible.
      * This option is allowed for all instance groups and is the only valid
@@ -117,6 +147,8 @@ public enum Preemptibility
      */
     public static final int NON_PREEMPTIBLE_VALUE = 1;
     /**
+     *
+     *
      * 
      * Instances are [preemptible]
      * (https://cloud.google.com/compute/docs/instances/preemptible).
@@ -129,7 +161,6 @@ public enum Preemptibility
      */
     public static final int PREEMPTIBLE_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -154,49 +185,49 @@ public static Preemptibility valueOf(int value) {
      */
     public static Preemptibility forNumber(int value) {
       switch (value) {
-        case 0: return PREEMPTIBILITY_UNSPECIFIED;
-        case 1: return NON_PREEMPTIBLE;
-        case 2: return PREEMPTIBLE;
-        default: return null;
+        case 0:
+          return PREEMPTIBILITY_UNSPECIFIED;
+        case 1:
+          return NON_PREEMPTIBLE;
+        case 2:
+          return PREEMPTIBLE;
+        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<
-        Preemptibility> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Preemptibility findValueByNumber(int number) {
-              return Preemptibility.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Preemptibility findValueByNumber(int number) {
+            return Preemptibility.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.dataproc.v1.InstanceGroupConfig.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Preemptibility[] VALUES = values();
 
-    public static Preemptibility valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Preemptibility 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;
@@ -216,6 +247,8 @@ private Preemptibility(int value) {
   public static final int NUM_INSTANCES_FIELD_NUMBER = 1;
   private int numInstances_;
   /**
+   *
+   *
    * 
    * Optional. The number of VM instances in the instance group.
    * For [HA
@@ -226,6 +259,7 @@ private Preemptibility(int value) {
    * 
* * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The numInstances. */ @java.lang.Override @@ -236,37 +270,45 @@ public int getNumInstances() { public static final int INSTANCE_NAMES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList instanceNames_; /** + * + * *
    * Output only. The list of instance names. Dataproc derives the names
    * from `cluster_name`, `num_instances`, and the instance group.
    * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the instanceNames. */ - public com.google.protobuf.ProtocolStringList - getInstanceNamesList() { + public com.google.protobuf.ProtocolStringList getInstanceNamesList() { return instanceNames_; } /** + * + * *
    * Output only. The list of instance names. Dataproc derives the names
    * from `cluster_name`, `num_instances`, and the instance group.
    * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of instanceNames. */ public int getInstanceNamesCount() { return instanceNames_.size(); } /** + * + * *
    * Output only. The list of instance names. Dataproc derives the names
    * from `cluster_name`, `num_instances`, and the instance group.
    * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The instanceNames at the given index. */ @@ -274,23 +316,27 @@ public java.lang.String getInstanceNames(int index) { return instanceNames_.get(index); } /** + * + * *
    * Output only. The list of instance names. Dataproc derives the names
    * from `cluster_name`, `num_instances`, and the instance group.
    * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the instanceNames at the given index. */ - public com.google.protobuf.ByteString - getInstanceNamesBytes(int index) { + public com.google.protobuf.ByteString getInstanceNamesBytes(int index) { return instanceNames_.getByteString(index); } public static final int IMAGE_URI_FIELD_NUMBER = 3; private volatile java.lang.Object imageUri_; /** + * + * *
    * Optional. The Compute Engine image resource used for cluster instances.
    * The URI can represent an image or image family.
@@ -307,6 +353,7 @@ public java.lang.String getInstanceNames(int index) {
    * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The imageUri. */ @java.lang.Override @@ -315,14 +362,15 @@ 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; } } /** + * + * *
    * Optional. The Compute Engine image resource used for cluster instances.
    * The URI can represent an image or image family.
@@ -339,16 +387,15 @@ public java.lang.String getImageUri() {
    * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -359,6 +406,8 @@ public java.lang.String getImageUri() { public static final int MACHINE_TYPE_URI_FIELD_NUMBER = 4; private volatile java.lang.Object machineTypeUri_; /** + * + * *
    * Optional. The Compute Engine machine type used for cluster instances.
    * A full URL, partial URI, or short name are valid. Examples:
@@ -373,6 +422,7 @@ public java.lang.String getImageUri() {
    * 
* * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The machineTypeUri. */ @java.lang.Override @@ -381,14 +431,15 @@ public java.lang.String getMachineTypeUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineTypeUri_ = s; return s; } } /** + * + * *
    * Optional. The Compute Engine machine type used for cluster instances.
    * A full URL, partial URI, or short name are valid. Examples:
@@ -403,16 +454,15 @@ public java.lang.String getMachineTypeUri() {
    * 
* * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for machineTypeUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getMachineTypeUriBytes() { + public com.google.protobuf.ByteString getMachineTypeUriBytes() { java.lang.Object ref = machineTypeUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); machineTypeUri_ = b; return b; } else { @@ -423,11 +473,16 @@ public java.lang.String getMachineTypeUri() { public static final int DISK_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.dataproc.v1.DiskConfig diskConfig_; /** + * + * *
    * Optional. Disk option config settings.
    * 
* - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the diskConfig field is set. */ @java.lang.Override @@ -435,23 +490,34 @@ public boolean hasDiskConfig() { return diskConfig_ != null; } /** + * + * *
    * Optional. Disk option config settings.
    * 
* - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The diskConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.DiskConfig getDiskConfig() { - return diskConfig_ == null ? com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() : diskConfig_; + return diskConfig_ == null + ? com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() + : diskConfig_; } /** + * + * *
    * Optional. Disk option config settings.
    * 
* - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.DiskConfigOrBuilder getDiskConfigOrBuilder() { @@ -461,12 +527,15 @@ public com.google.cloud.dataproc.v1.DiskConfigOrBuilder getDiskConfigOrBuilder() public static final int IS_PREEMPTIBLE_FIELD_NUMBER = 6; private boolean isPreemptible_; /** + * + * *
    * Output only. Specifies that this instance group contains preemptible
    * instances.
    * 
* * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The isPreemptible. */ @java.lang.Override @@ -477,6 +546,8 @@ public boolean getIsPreemptible() { public static final int PREEMPTIBILITY_FIELD_NUMBER = 10; private int preemptibility_; /** + * + * *
    * Optional. Specifies the preemptibility of the instance group.
    * The default value for master and worker groups is
@@ -485,13 +556,19 @@ public boolean getIsPreemptible() {
    * `PREEMPTIBLE`.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for preemptibility. */ - @java.lang.Override public int getPreemptibilityValue() { + @java.lang.Override + public int getPreemptibilityValue() { return preemptibility_; } /** + * + * *
    * Optional. Specifies the preemptibility of the instance group.
    * The default value for master and worker groups is
@@ -500,25 +577,37 @@ public boolean getIsPreemptible() {
    * `PREEMPTIBLE`.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The preemptibility. */ - @java.lang.Override public com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility getPreemptibility() { + @java.lang.Override + public com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility getPreemptibility() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility result = com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.valueOf(preemptibility_); - return result == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility result = + com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.valueOf(preemptibility_); + return result == null + ? com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.UNRECOGNIZED + : result; } public static final int MANAGED_GROUP_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.dataproc.v1.ManagedGroupConfig managedGroupConfig_; /** + * + * *
    * Output only. The config for Compute Engine Instance Group
    * Manager that manages this group.
    * This is only used for preemptible instance groups.
    * 
* - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the managedGroupConfig field is set. */ @java.lang.Override @@ -526,27 +615,38 @@ public boolean hasManagedGroupConfig() { return managedGroupConfig_ != null; } /** + * + * *
    * Output only. The config for Compute Engine Instance Group
    * Manager that manages this group.
    * This is only used for preemptible instance groups.
    * 
* - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The managedGroupConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.ManagedGroupConfig getManagedGroupConfig() { - return managedGroupConfig_ == null ? com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance() : managedGroupConfig_; + return managedGroupConfig_ == null + ? com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance() + : managedGroupConfig_; } /** + * + * *
    * Output only. The config for Compute Engine Instance Group
    * Manager that manages this group.
    * This is only used for preemptible instance groups.
    * 
* - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder getManagedGroupConfigOrBuilder() { @@ -556,61 +656,81 @@ public com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder getManagedGroupC public static final int ACCELERATORS_FIELD_NUMBER = 8; private java.util.List accelerators_; /** + * + * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getAcceleratorsList() { return accelerators_; } /** + * + * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getAcceleratorsOrBuilderList() { return accelerators_; } /** + * + * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getAcceleratorsCount() { return accelerators_.size(); } /** + * + * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.AcceleratorConfig getAccelerators(int index) { return accelerators_.get(index); } /** + * + * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( @@ -621,6 +741,8 @@ public com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOr public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 9; private volatile java.lang.Object minCpuPlatform_; /** + * + * *
    * Optional. Specifies the minimum cpu platform for the Instance Group.
    * See [Dataproc -> Minimum CPU
@@ -628,6 +750,7 @@ public com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOr
    * 
* * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The minCpuPlatform. */ @java.lang.Override @@ -636,14 +759,15 @@ 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; } } /** + * + * *
    * Optional. Specifies the minimum cpu platform for the Instance Group.
    * See [Dataproc -> Minimum CPU
@@ -651,16 +775,15 @@ public java.lang.String getMinCpuPlatform() {
    * 
* * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -669,6 +792,7 @@ public java.lang.String getMinCpuPlatform() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -680,8 +804,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (numInstances_ != 0) { output.writeInt32(1, numInstances_); } @@ -709,7 +832,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, minCpuPlatform_); } - if (preemptibility_ != com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.PREEMPTIBILITY_UNSPECIFIED.getNumber()) { + if (preemptibility_ + != com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility + .PREEMPTIBILITY_UNSPECIFIED + .getNumber()) { output.writeEnum(10, preemptibility_); } getUnknownFields().writeTo(output); @@ -722,8 +848,7 @@ public int getSerializedSize() { size = 0; if (numInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, numInstances_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, numInstances_); } { int dataSize = 0; @@ -740,27 +865,25 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, machineTypeUri_); } if (diskConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getDiskConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDiskConfig()); } if (isPreemptible_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, isPreemptible_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, isPreemptible_); } if (managedGroupConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getManagedGroupConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getManagedGroupConfig()); } for (int i = 0; i < accelerators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, accelerators_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, accelerators_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, minCpuPlatform_); } - if (preemptibility_ != com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.PREEMPTIBILITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, preemptibility_); + if (preemptibility_ + != com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility + .PREEMPTIBILITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, preemptibility_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -770,38 +893,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.InstanceGroupConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.InstanceGroupConfig other = (com.google.cloud.dataproc.v1.InstanceGroupConfig) obj; + com.google.cloud.dataproc.v1.InstanceGroupConfig other = + (com.google.cloud.dataproc.v1.InstanceGroupConfig) obj; - if (getNumInstances() - != other.getNumInstances()) return false; - if (!getInstanceNamesList() - .equals(other.getInstanceNamesList())) return false; - if (!getImageUri() - .equals(other.getImageUri())) return false; - if (!getMachineTypeUri() - .equals(other.getMachineTypeUri())) return false; + if (getNumInstances() != other.getNumInstances()) return false; + if (!getInstanceNamesList().equals(other.getInstanceNamesList())) return false; + if (!getImageUri().equals(other.getImageUri())) return false; + if (!getMachineTypeUri().equals(other.getMachineTypeUri())) return false; if (hasDiskConfig() != other.hasDiskConfig()) return false; if (hasDiskConfig()) { - if (!getDiskConfig() - .equals(other.getDiskConfig())) return false; + if (!getDiskConfig().equals(other.getDiskConfig())) return false; } - if (getIsPreemptible() - != other.getIsPreemptible()) return false; + if (getIsPreemptible() != other.getIsPreemptible()) return false; if (preemptibility_ != other.preemptibility_) return false; if (hasManagedGroupConfig() != other.hasManagedGroupConfig()) return false; if (hasManagedGroupConfig()) { - if (!getManagedGroupConfig() - .equals(other.getManagedGroupConfig())) return false; + if (!getManagedGroupConfig().equals(other.getManagedGroupConfig())) return false; } - if (!getAcceleratorsList() - .equals(other.getAcceleratorsList())) return false; - if (!getMinCpuPlatform() - .equals(other.getMinCpuPlatform())) return false; + if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; + if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -828,8 +943,7 @@ public int hashCode() { hash = (53 * hash) + getDiskConfig().hashCode(); } hash = (37 * hash) + IS_PREEMPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsPreemptible()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPreemptible()); hash = (37 * hash) + PREEMPTIBILITY_FIELD_NUMBER; hash = (53 * hash) + preemptibility_; if (hasManagedGroupConfig()) { @@ -847,97 +961,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.InstanceGroupConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 config settings for Compute Engine resources in
    * an instance group, such as a master or worker group.
@@ -945,33 +1066,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.InstanceGroupConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.InstanceGroupConfig)
       com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.InstanceGroupConfig.class, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder.class);
+              com.google.cloud.dataproc.v1.InstanceGroupConfig.class,
+              com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1012,9 +1132,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1033,7 +1153,8 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfig build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.InstanceGroupConfig buildPartial() {
-      com.google.cloud.dataproc.v1.InstanceGroupConfig result = new com.google.cloud.dataproc.v1.InstanceGroupConfig(this);
+      com.google.cloud.dataproc.v1.InstanceGroupConfig result =
+          new com.google.cloud.dataproc.v1.InstanceGroupConfig(this);
       int from_bitField0_ = bitField0_;
       result.numInstances_ = numInstances_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -1073,38 +1194,39 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.InstanceGroupConfig) {
-        return mergeFrom((com.google.cloud.dataproc.v1.InstanceGroupConfig)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.InstanceGroupConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1112,7 +1234,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.InstanceGroupConfig other) {
-      if (other == com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance())
+        return this;
       if (other.getNumInstances() != 0) {
         setNumInstances(other.getNumInstances());
       }
@@ -1164,9 +1287,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.InstanceGroupConfig other)
             acceleratorsBuilder_ = null;
             accelerators_ = other.accelerators_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            acceleratorsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getAcceleratorsFieldBuilder() : null;
+            acceleratorsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getAcceleratorsFieldBuilder()
+                    : null;
           } else {
             acceleratorsBuilder_.addAllMessages(other.accelerators_);
           }
@@ -1202,75 +1326,82 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              numInstances_ = input.readInt32();
-
-              break;
-            } // case 8
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureInstanceNamesIsMutable();
-              instanceNames_.add(s);
-              break;
-            } // case 18
-            case 26: {
-              imageUri_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 26
-            case 34: {
-              machineTypeUri_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getDiskConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 42
-            case 48: {
-              isPreemptible_ = input.readBool();
-
-              break;
-            } // case 48
-            case 58: {
-              input.readMessage(
-                  getManagedGroupConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 58
-            case 66: {
-              com.google.cloud.dataproc.v1.AcceleratorConfig m =
-                  input.readMessage(
-                      com.google.cloud.dataproc.v1.AcceleratorConfig.parser(),
-                      extensionRegistry);
-              if (acceleratorsBuilder_ == null) {
-                ensureAcceleratorsIsMutable();
-                accelerators_.add(m);
-              } else {
-                acceleratorsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 66
-            case 74: {
-              minCpuPlatform_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 74
-            case 80: {
-              preemptibility_ = input.readEnum();
-
-              break;
-            } // case 80
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                numInstances_ = input.readInt32();
+
+                break;
+              } // case 8
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureInstanceNamesIsMutable();
+                instanceNames_.add(s);
+                break;
+              } // case 18
+            case 26:
+              {
+                imageUri_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 26
+            case 34:
+              {
+                machineTypeUri_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getDiskConfigFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 42
+            case 48:
+              {
+                isPreemptible_ = input.readBool();
+
+                break;
+              } // case 48
+            case 58:
+              {
+                input.readMessage(
+                    getManagedGroupConfigFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 58
+            case 66:
+              {
+                com.google.cloud.dataproc.v1.AcceleratorConfig m =
+                    input.readMessage(
+                        com.google.cloud.dataproc.v1.AcceleratorConfig.parser(), extensionRegistry);
+                if (acceleratorsBuilder_ == null) {
+                  ensureAcceleratorsIsMutable();
+                  accelerators_.add(m);
+                } else {
+                  acceleratorsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 66
+            case 74:
+              {
+                minCpuPlatform_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 74
+            case 80:
+              {
+                preemptibility_ = input.readEnum();
+
+                break;
+              } // case 80
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1280,10 +1411,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private int numInstances_ ;
+    private int numInstances_;
     /**
+     *
+     *
      * 
      * Optional. The number of VM instances in the instance group.
      * For [HA
@@ -1294,6 +1428,7 @@ public Builder mergeFrom(
      * 
* * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The numInstances. */ @java.lang.Override @@ -1301,6 +1436,8 @@ public int getNumInstances() { return numInstances_; } /** + * + * *
      * Optional. The number of VM instances in the instance group.
      * For [HA
@@ -1311,16 +1448,19 @@ public int getNumInstances() {
      * 
* * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The numInstances to set. * @return This builder for chaining. */ public Builder setNumInstances(int value) { - + numInstances_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The number of VM instances in the instance group.
      * For [HA
@@ -1331,54 +1471,65 @@ public Builder setNumInstances(int value) {
      * 
* * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNumInstances() { - + numInstances_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList instanceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList instanceNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureInstanceNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { instanceNames_ = new com.google.protobuf.LazyStringArrayList(instanceNames_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Output only. The list of instance names. Dataproc derives the names
      * from `cluster_name`, `num_instances`, and the instance group.
      * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the instanceNames. */ - public com.google.protobuf.ProtocolStringList - getInstanceNamesList() { + public com.google.protobuf.ProtocolStringList getInstanceNamesList() { return instanceNames_.getUnmodifiableView(); } /** + * + * *
      * Output only. The list of instance names. Dataproc derives the names
      * from `cluster_name`, `num_instances`, and the instance group.
      * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of instanceNames. */ public int getInstanceNamesCount() { return instanceNames_.size(); } /** + * + * *
      * Output only. The list of instance names. Dataproc derives the names
      * from `cluster_name`, `num_instances`, and the instance group.
      * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The instanceNames at the given index. */ @@ -1386,85 +1537,95 @@ public java.lang.String getInstanceNames(int index) { return instanceNames_.get(index); } /** + * + * *
      * Output only. The list of instance names. Dataproc derives the names
      * from `cluster_name`, `num_instances`, and the instance group.
      * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the instanceNames at the given index. */ - public com.google.protobuf.ByteString - getInstanceNamesBytes(int index) { + public com.google.protobuf.ByteString getInstanceNamesBytes(int index) { return instanceNames_.getByteString(index); } /** + * + * *
      * Output only. The list of instance names. Dataproc derives the names
      * from `cluster_name`, `num_instances`, and the instance group.
      * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index to set the value at. * @param value The instanceNames to set. * @return This builder for chaining. */ - public Builder setInstanceNames( - int index, java.lang.String value) { + public Builder setInstanceNames(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInstanceNamesIsMutable(); + throw new NullPointerException(); + } + ensureInstanceNamesIsMutable(); instanceNames_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. The list of instance names. Dataproc derives the names
      * from `cluster_name`, `num_instances`, and the instance group.
      * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The instanceNames to add. * @return This builder for chaining. */ - public Builder addInstanceNames( - java.lang.String value) { + public Builder addInstanceNames(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInstanceNamesIsMutable(); + throw new NullPointerException(); + } + ensureInstanceNamesIsMutable(); instanceNames_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. The list of instance names. Dataproc derives the names
      * from `cluster_name`, `num_instances`, and the instance group.
      * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param values The instanceNames to add. * @return This builder for chaining. */ - public Builder addAllInstanceNames( - java.lang.Iterable values) { + public Builder addAllInstanceNames(java.lang.Iterable values) { ensureInstanceNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, instanceNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceNames_); onChanged(); return this; } /** + * + * *
      * Output only. The list of instance names. Dataproc derives the names
      * from `cluster_name`, `num_instances`, and the instance group.
      * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearInstanceNames() { @@ -1474,21 +1635,23 @@ public Builder clearInstanceNames() { return this; } /** + * + * *
      * Output only. The list of instance names. Dataproc derives the names
      * from `cluster_name`, `num_instances`, and the instance group.
      * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes of the instanceNames to add. * @return This builder for chaining. */ - public Builder addInstanceNamesBytes( - com.google.protobuf.ByteString value) { + public Builder addInstanceNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureInstanceNamesIsMutable(); instanceNames_.add(value); onChanged(); @@ -1497,6 +1660,8 @@ public Builder addInstanceNamesBytes( private java.lang.Object imageUri_ = ""; /** + * + * *
      * Optional. The Compute Engine image resource used for cluster instances.
      * The URI can represent an image or image family.
@@ -1513,13 +1678,13 @@ public Builder addInstanceNamesBytes(
      * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1528,6 +1693,8 @@ public java.lang.String getImageUri() { } } /** + * + * *
      * Optional. The Compute Engine image resource used for cluster instances.
      * The URI can represent an image or image family.
@@ -1544,15 +1711,14 @@ public java.lang.String getImageUri() {
      * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1560,6 +1726,8 @@ public java.lang.String getImageUri() { } } /** + * + * *
      * Optional. The Compute Engine image resource used for cluster instances.
      * The URI can represent an image or image family.
@@ -1576,20 +1744,22 @@ public java.lang.String getImageUri() {
      * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. The Compute Engine image resource used for cluster instances.
      * The URI can represent an image or image family.
@@ -1606,15 +1776,18 @@ public Builder setImageUri(
      * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearImageUri() { - + imageUri_ = getDefaultInstance().getImageUri(); onChanged(); return this; } /** + * + * *
      * Optional. The Compute Engine image resource used for cluster instances.
      * The URI can represent an image or image family.
@@ -1631,16 +1804,16 @@ public Builder clearImageUri() {
      * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1648,6 +1821,8 @@ public Builder setImageUriBytes( private java.lang.Object machineTypeUri_ = ""; /** + * + * *
      * Optional. The Compute Engine machine type used for cluster instances.
      * A full URL, partial URI, or short name are valid. Examples:
@@ -1662,13 +1837,13 @@ public Builder setImageUriBytes(
      * 
* * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The machineTypeUri. */ public java.lang.String getMachineTypeUri() { java.lang.Object ref = machineTypeUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineTypeUri_ = s; return s; @@ -1677,6 +1852,8 @@ public java.lang.String getMachineTypeUri() { } } /** + * + * *
      * Optional. The Compute Engine machine type used for cluster instances.
      * A full URL, partial URI, or short name are valid. Examples:
@@ -1691,15 +1868,14 @@ public java.lang.String getMachineTypeUri() {
      * 
* * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for machineTypeUri. */ - public com.google.protobuf.ByteString - getMachineTypeUriBytes() { + public com.google.protobuf.ByteString getMachineTypeUriBytes() { java.lang.Object ref = machineTypeUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); machineTypeUri_ = b; return b; } else { @@ -1707,6 +1883,8 @@ public java.lang.String getMachineTypeUri() { } } /** + * + * *
      * Optional. The Compute Engine machine type used for cluster instances.
      * A full URL, partial URI, or short name are valid. Examples:
@@ -1721,20 +1899,22 @@ public java.lang.String getMachineTypeUri() {
      * 
* * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The machineTypeUri to set. * @return This builder for chaining. */ - public Builder setMachineTypeUri( - java.lang.String value) { + public Builder setMachineTypeUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + machineTypeUri_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Compute Engine machine type used for cluster instances.
      * A full URL, partial URI, or short name are valid. Examples:
@@ -1749,15 +1929,18 @@ public Builder setMachineTypeUri(
      * 
* * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMachineTypeUri() { - + machineTypeUri_ = getDefaultInstance().getMachineTypeUri(); onChanged(); return this; } /** + * + * *
      * Optional. The Compute Engine machine type used for cluster instances.
      * A full URL, partial URI, or short name are valid. Examples:
@@ -1772,16 +1955,16 @@ public Builder clearMachineTypeUri() {
      * 
* * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for machineTypeUri to set. * @return This builder for chaining. */ - public Builder setMachineTypeUriBytes( - com.google.protobuf.ByteString value) { + public Builder setMachineTypeUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineTypeUri_ = value; onChanged(); return this; @@ -1789,39 +1972,58 @@ public Builder setMachineTypeUriBytes( private com.google.cloud.dataproc.v1.DiskConfig diskConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DiskConfig, com.google.cloud.dataproc.v1.DiskConfig.Builder, com.google.cloud.dataproc.v1.DiskConfigOrBuilder> diskConfigBuilder_; + com.google.cloud.dataproc.v1.DiskConfig, + com.google.cloud.dataproc.v1.DiskConfig.Builder, + com.google.cloud.dataproc.v1.DiskConfigOrBuilder> + diskConfigBuilder_; /** + * + * *
      * Optional. Disk option config settings.
      * 
* - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the diskConfig field is set. */ public boolean hasDiskConfig() { return diskConfigBuilder_ != null || diskConfig_ != null; } /** + * + * *
      * Optional. Disk option config settings.
      * 
* - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The diskConfig. */ public com.google.cloud.dataproc.v1.DiskConfig getDiskConfig() { if (diskConfigBuilder_ == null) { - return diskConfig_ == null ? com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() : diskConfig_; + return diskConfig_ == null + ? com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() + : diskConfig_; } else { return diskConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Disk option config settings.
      * 
* - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDiskConfig(com.google.cloud.dataproc.v1.DiskConfig value) { if (diskConfigBuilder_ == null) { @@ -1837,14 +2039,17 @@ public Builder setDiskConfig(com.google.cloud.dataproc.v1.DiskConfig value) { return this; } /** + * + * *
      * Optional. Disk option config settings.
      * 
* - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDiskConfig( - com.google.cloud.dataproc.v1.DiskConfig.Builder builderForValue) { + public Builder setDiskConfig(com.google.cloud.dataproc.v1.DiskConfig.Builder builderForValue) { if (diskConfigBuilder_ == null) { diskConfig_ = builderForValue.build(); onChanged(); @@ -1855,17 +2060,23 @@ public Builder setDiskConfig( return this; } /** + * + * *
      * Optional. Disk option config settings.
      * 
* - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeDiskConfig(com.google.cloud.dataproc.v1.DiskConfig value) { if (diskConfigBuilder_ == null) { if (diskConfig_ != null) { diskConfig_ = - com.google.cloud.dataproc.v1.DiskConfig.newBuilder(diskConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.DiskConfig.newBuilder(diskConfig_) + .mergeFrom(value) + .buildPartial(); } else { diskConfig_ = value; } @@ -1877,11 +2088,15 @@ public Builder mergeDiskConfig(com.google.cloud.dataproc.v1.DiskConfig value) { return this; } /** + * + * *
      * Optional. Disk option config settings.
      * 
* - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearDiskConfig() { if (diskConfigBuilder_ == null) { @@ -1895,61 +2110,80 @@ public Builder clearDiskConfig() { return this; } /** + * + * *
      * Optional. Disk option config settings.
      * 
* - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.DiskConfig.Builder getDiskConfigBuilder() { - + onChanged(); return getDiskConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Disk option config settings.
      * 
* - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.DiskConfigOrBuilder getDiskConfigOrBuilder() { if (diskConfigBuilder_ != null) { return diskConfigBuilder_.getMessageOrBuilder(); } else { - return diskConfig_ == null ? - com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() : diskConfig_; + return diskConfig_ == null + ? com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() + : diskConfig_; } } /** + * + * *
      * Optional. Disk option config settings.
      * 
* - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DiskConfig, com.google.cloud.dataproc.v1.DiskConfig.Builder, com.google.cloud.dataproc.v1.DiskConfigOrBuilder> + com.google.cloud.dataproc.v1.DiskConfig, + com.google.cloud.dataproc.v1.DiskConfig.Builder, + com.google.cloud.dataproc.v1.DiskConfigOrBuilder> getDiskConfigFieldBuilder() { if (diskConfigBuilder_ == null) { - diskConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DiskConfig, com.google.cloud.dataproc.v1.DiskConfig.Builder, com.google.cloud.dataproc.v1.DiskConfigOrBuilder>( - getDiskConfig(), - getParentForChildren(), - isClean()); + diskConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.DiskConfig, + com.google.cloud.dataproc.v1.DiskConfig.Builder, + com.google.cloud.dataproc.v1.DiskConfigOrBuilder>( + getDiskConfig(), getParentForChildren(), isClean()); diskConfig_ = null; } return diskConfigBuilder_; } - private boolean isPreemptible_ ; + private boolean isPreemptible_; /** + * + * *
      * Output only. Specifies that this instance group contains preemptible
      * instances.
      * 
* * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The isPreemptible. */ @java.lang.Override @@ -1957,32 +2191,38 @@ public boolean getIsPreemptible() { return isPreemptible_; } /** + * + * *
      * Output only. Specifies that this instance group contains preemptible
      * instances.
      * 
* * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The isPreemptible to set. * @return This builder for chaining. */ public Builder setIsPreemptible(boolean value) { - + isPreemptible_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Specifies that this instance group contains preemptible
      * instances.
      * 
* * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearIsPreemptible() { - + isPreemptible_ = false; onChanged(); return this; @@ -1990,6 +2230,8 @@ public Builder clearIsPreemptible() { private int preemptibility_ = 0; /** + * + * *
      * Optional. Specifies the preemptibility of the instance group.
      * The default value for master and worker groups is
@@ -1998,13 +2240,19 @@ public Builder clearIsPreemptible() {
      * `PREEMPTIBLE`.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for preemptibility. */ - @java.lang.Override public int getPreemptibilityValue() { + @java.lang.Override + public int getPreemptibilityValue() { return preemptibility_; } /** + * + * *
      * Optional. Specifies the preemptibility of the instance group.
      * The default value for master and worker groups is
@@ -2013,17 +2261,22 @@ public Builder clearIsPreemptible() {
      * `PREEMPTIBLE`.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for preemptibility to set. * @return This builder for chaining. */ public Builder setPreemptibilityValue(int value) { - + preemptibility_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Specifies the preemptibility of the instance group.
      * The default value for master and worker groups is
@@ -2032,16 +2285,24 @@ public Builder setPreemptibilityValue(int value) {
      * `PREEMPTIBLE`.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The preemptibility. */ @java.lang.Override public com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility getPreemptibility() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility result = com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.valueOf(preemptibility_); - return result == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility result = + com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.valueOf(preemptibility_); + return result == null + ? com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. Specifies the preemptibility of the instance group.
      * The default value for master and worker groups is
@@ -2050,20 +2311,26 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility getPreemp
      * `PREEMPTIBLE`.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The preemptibility to set. * @return This builder for chaining. */ - public Builder setPreemptibility(com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility value) { + public Builder setPreemptibility( + com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility value) { if (value == null) { throw new NullPointerException(); } - + preemptibility_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. Specifies the preemptibility of the instance group.
      * The default value for master and worker groups is
@@ -2072,11 +2339,14 @@ public Builder setPreemptibility(com.google.cloud.dataproc.v1.InstanceGroupConfi
      * `PREEMPTIBLE`.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearPreemptibility() { - + preemptibility_ = 0; onChanged(); return this; @@ -2084,45 +2354,64 @@ public Builder clearPreemptibility() { private com.google.cloud.dataproc.v1.ManagedGroupConfig managedGroupConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ManagedGroupConfig, com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder, com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder> managedGroupConfigBuilder_; + com.google.cloud.dataproc.v1.ManagedGroupConfig, + com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder, + com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder> + managedGroupConfigBuilder_; /** + * + * *
      * Output only. The config for Compute Engine Instance Group
      * Manager that manages this group.
      * This is only used for preemptible instance groups.
      * 
* - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the managedGroupConfig field is set. */ public boolean hasManagedGroupConfig() { return managedGroupConfigBuilder_ != null || managedGroupConfig_ != null; } /** + * + * *
      * Output only. The config for Compute Engine Instance Group
      * Manager that manages this group.
      * This is only used for preemptible instance groups.
      * 
* - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The managedGroupConfig. */ public com.google.cloud.dataproc.v1.ManagedGroupConfig getManagedGroupConfig() { if (managedGroupConfigBuilder_ == null) { - return managedGroupConfig_ == null ? com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance() : managedGroupConfig_; + return managedGroupConfig_ == null + ? com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance() + : managedGroupConfig_; } else { return managedGroupConfigBuilder_.getMessage(); } } /** + * + * *
      * Output only. The config for Compute Engine Instance Group
      * Manager that manages this group.
      * This is only used for preemptible instance groups.
      * 
* - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setManagedGroupConfig(com.google.cloud.dataproc.v1.ManagedGroupConfig value) { if (managedGroupConfigBuilder_ == null) { @@ -2138,13 +2427,17 @@ public Builder setManagedGroupConfig(com.google.cloud.dataproc.v1.ManagedGroupCo return this; } /** + * + * *
      * Output only. The config for Compute Engine Instance Group
      * Manager that manages this group.
      * This is only used for preemptible instance groups.
      * 
* - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setManagedGroupConfig( com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder builderForValue) { @@ -2158,19 +2451,25 @@ public Builder setManagedGroupConfig( return this; } /** + * + * *
      * Output only. The config for Compute Engine Instance Group
      * Manager that manages this group.
      * This is only used for preemptible instance groups.
      * 
* - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeManagedGroupConfig(com.google.cloud.dataproc.v1.ManagedGroupConfig value) { if (managedGroupConfigBuilder_ == null) { if (managedGroupConfig_ != null) { managedGroupConfig_ = - com.google.cloud.dataproc.v1.ManagedGroupConfig.newBuilder(managedGroupConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.ManagedGroupConfig.newBuilder(managedGroupConfig_) + .mergeFrom(value) + .buildPartial(); } else { managedGroupConfig_ = value; } @@ -2182,13 +2481,17 @@ public Builder mergeManagedGroupConfig(com.google.cloud.dataproc.v1.ManagedGroup return this; } /** + * + * *
      * Output only. The config for Compute Engine Instance Group
      * Manager that manages this group.
      * This is only used for preemptible instance groups.
      * 
* - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearManagedGroupConfig() { if (managedGroupConfigBuilder_ == null) { @@ -2202,78 +2505,104 @@ public Builder clearManagedGroupConfig() { return this; } /** + * + * *
      * Output only. The config for Compute Engine Instance Group
      * Manager that manages this group.
      * This is only used for preemptible instance groups.
      * 
* - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder getManagedGroupConfigBuilder() { - + onChanged(); return getManagedGroupConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The config for Compute Engine Instance Group
      * Manager that manages this group.
      * This is only used for preemptible instance groups.
      * 
* - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder getManagedGroupConfigOrBuilder() { + public com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder + getManagedGroupConfigOrBuilder() { if (managedGroupConfigBuilder_ != null) { return managedGroupConfigBuilder_.getMessageOrBuilder(); } else { - return managedGroupConfig_ == null ? - com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance() : managedGroupConfig_; + return managedGroupConfig_ == null + ? com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance() + : managedGroupConfig_; } } /** + * + * *
      * Output only. The config for Compute Engine Instance Group
      * Manager that manages this group.
      * This is only used for preemptible instance groups.
      * 
* - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ManagedGroupConfig, com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder, com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder> + com.google.cloud.dataproc.v1.ManagedGroupConfig, + com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder, + com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder> getManagedGroupConfigFieldBuilder() { if (managedGroupConfigBuilder_ == null) { - managedGroupConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ManagedGroupConfig, com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder, com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder>( - getManagedGroupConfig(), - getParentForChildren(), - isClean()); + managedGroupConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ManagedGroupConfig, + com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder, + com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder>( + getManagedGroupConfig(), getParentForChildren(), isClean()); managedGroupConfig_ = null; } return managedGroupConfigBuilder_; } private java.util.List accelerators_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAcceleratorsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - accelerators_ = new java.util.ArrayList(accelerators_); + accelerators_ = + new java.util.ArrayList(accelerators_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AcceleratorConfig, com.google.cloud.dataproc.v1.AcceleratorConfig.Builder, com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder> acceleratorsBuilder_; + com.google.cloud.dataproc.v1.AcceleratorConfig, + com.google.cloud.dataproc.v1.AcceleratorConfig.Builder, + com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder> + acceleratorsBuilder_; /** + * + * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getAcceleratorsList() { if (acceleratorsBuilder_ == null) { @@ -2283,12 +2612,16 @@ public java.util.List getAcceler } } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getAcceleratorsCount() { if (acceleratorsBuilder_ == null) { @@ -2298,12 +2631,16 @@ public int getAcceleratorsCount() { } } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.AcceleratorConfig getAccelerators(int index) { if (acceleratorsBuilder_ == null) { @@ -2313,12 +2650,16 @@ public com.google.cloud.dataproc.v1.AcceleratorConfig getAccelerators(int index) } } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAccelerators( int index, com.google.cloud.dataproc.v1.AcceleratorConfig value) { @@ -2335,12 +2676,16 @@ public Builder setAccelerators( return this; } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAccelerators( int index, com.google.cloud.dataproc.v1.AcceleratorConfig.Builder builderForValue) { @@ -2354,12 +2699,16 @@ public Builder setAccelerators( return this; } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAccelerators(com.google.cloud.dataproc.v1.AcceleratorConfig value) { if (acceleratorsBuilder_ == null) { @@ -2375,12 +2724,16 @@ public Builder addAccelerators(com.google.cloud.dataproc.v1.AcceleratorConfig va return this; } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAccelerators( int index, com.google.cloud.dataproc.v1.AcceleratorConfig value) { @@ -2397,12 +2750,16 @@ public Builder addAccelerators( return this; } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAccelerators( com.google.cloud.dataproc.v1.AcceleratorConfig.Builder builderForValue) { @@ -2416,12 +2773,16 @@ public Builder addAccelerators( return this; } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAccelerators( int index, com.google.cloud.dataproc.v1.AcceleratorConfig.Builder builderForValue) { @@ -2435,19 +2796,22 @@ public Builder addAccelerators( return this; } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllAccelerators( 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); @@ -2455,12 +2819,16 @@ public Builder addAllAccelerators( return this; } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAccelerators() { if (acceleratorsBuilder_ == null) { @@ -2473,12 +2841,16 @@ public Builder clearAccelerators() { return this; } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeAccelerators(int index) { if (acceleratorsBuilder_ == null) { @@ -2491,42 +2863,55 @@ public Builder removeAccelerators(int index) { return this; } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.AcceleratorConfig.Builder getAcceleratorsBuilder( int index) { return getAcceleratorsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( int index) { if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); } else { + return accelerators_.get(index); + } else { return acceleratorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAcceleratorsOrBuilderList() { + public java.util.List + getAcceleratorsOrBuilderList() { if (acceleratorsBuilder_ != null) { return acceleratorsBuilder_.getMessageOrBuilderList(); } else { @@ -2534,52 +2919,67 @@ public com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOr } } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.AcceleratorConfig.Builder addAcceleratorsBuilder() { - return getAcceleratorsFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.AcceleratorConfig.getDefaultInstance()); + return getAcceleratorsFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.AcceleratorConfig.getDefaultInstance()); } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.AcceleratorConfig.Builder addAcceleratorsBuilder( int index) { - return getAcceleratorsFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.AcceleratorConfig.getDefaultInstance()); + return getAcceleratorsFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.AcceleratorConfig.getDefaultInstance()); } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for these
      * instances.
      * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAcceleratorsBuilderList() { + public java.util.List + getAcceleratorsBuilderList() { return getAcceleratorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AcceleratorConfig, com.google.cloud.dataproc.v1.AcceleratorConfig.Builder, com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder> + com.google.cloud.dataproc.v1.AcceleratorConfig, + com.google.cloud.dataproc.v1.AcceleratorConfig.Builder, + com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder> getAcceleratorsFieldBuilder() { if (acceleratorsBuilder_ == null) { - acceleratorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AcceleratorConfig, com.google.cloud.dataproc.v1.AcceleratorConfig.Builder, com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder>( - accelerators_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + acceleratorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.AcceleratorConfig, + com.google.cloud.dataproc.v1.AcceleratorConfig.Builder, + com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder>( + accelerators_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); accelerators_ = null; } return acceleratorsBuilder_; @@ -2587,6 +2987,8 @@ public com.google.cloud.dataproc.v1.AcceleratorConfig.Builder addAcceleratorsBui private java.lang.Object minCpuPlatform_ = ""; /** + * + * *
      * Optional. Specifies the minimum cpu platform for the Instance Group.
      * See [Dataproc -> Minimum CPU
@@ -2594,13 +2996,13 @@ public com.google.cloud.dataproc.v1.AcceleratorConfig.Builder addAcceleratorsBui
      * 
* * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -2609,6 +3011,8 @@ public java.lang.String getMinCpuPlatform() { } } /** + * + * *
      * Optional. Specifies the minimum cpu platform for the Instance Group.
      * See [Dataproc -> Minimum CPU
@@ -2616,15 +3020,14 @@ public java.lang.String getMinCpuPlatform() {
      * 
* * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -2632,6 +3035,8 @@ public java.lang.String getMinCpuPlatform() { } } /** + * + * *
      * Optional. Specifies the minimum cpu platform for the Instance Group.
      * See [Dataproc -> Minimum CPU
@@ -2639,20 +3044,22 @@ public java.lang.String getMinCpuPlatform() {
      * 
* * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. Specifies the minimum cpu platform for the Instance Group.
      * See [Dataproc -> Minimum CPU
@@ -2660,15 +3067,18 @@ public Builder setMinCpuPlatform(
      * 
* * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMinCpuPlatform() { - + minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); onChanged(); return this; } /** + * + * *
      * Optional. Specifies the minimum cpu platform for the Instance Group.
      * See [Dataproc -> Minimum CPU
@@ -2676,23 +3086,23 @@ public Builder clearMinCpuPlatform() {
      * 
* * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2702,12 +3112,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.InstanceGroupConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.InstanceGroupConfig) private static final com.google.cloud.dataproc.v1.InstanceGroupConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.InstanceGroupConfig(); } @@ -2716,27 +3126,27 @@ public static com.google.cloud.dataproc.v1.InstanceGroupConfig getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstanceGroupConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceGroupConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2751,6 +3161,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.InstanceGroupConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java similarity index 75% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java index 5a72056930dc..77f65b6d89a0 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface InstanceGroupConfigOrBuilder extends +public interface InstanceGroupConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.InstanceGroupConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The number of VM instances in the instance group.
    * For [HA
@@ -18,56 +36,69 @@ public interface InstanceGroupConfigOrBuilder extends
    * 
* * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The numInstances. */ int getNumInstances(); /** + * + * *
    * Output only. The list of instance names. Dataproc derives the names
    * from `cluster_name`, `num_instances`, and the instance group.
    * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the instanceNames. */ - java.util.List - getInstanceNamesList(); + java.util.List getInstanceNamesList(); /** + * + * *
    * Output only. The list of instance names. Dataproc derives the names
    * from `cluster_name`, `num_instances`, and the instance group.
    * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of instanceNames. */ int getInstanceNamesCount(); /** + * + * *
    * Output only. The list of instance names. Dataproc derives the names
    * from `cluster_name`, `num_instances`, and the instance group.
    * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The instanceNames at the given index. */ java.lang.String getInstanceNames(int index); /** + * + * *
    * Output only. The list of instance names. Dataproc derives the names
    * from `cluster_name`, `num_instances`, and the instance group.
    * 
* * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the instanceNames at the given index. */ - com.google.protobuf.ByteString - getInstanceNamesBytes(int index); + com.google.protobuf.ByteString getInstanceNamesBytes(int index); /** + * + * *
    * Optional. The Compute Engine image resource used for cluster instances.
    * The URI can represent an image or image family.
@@ -84,10 +115,13 @@ public interface InstanceGroupConfigOrBuilder extends
    * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The imageUri. */ java.lang.String getImageUri(); /** + * + * *
    * Optional. The Compute Engine image resource used for cluster instances.
    * The URI can represent an image or image family.
@@ -104,12 +138,14 @@ public interface InstanceGroupConfigOrBuilder extends
    * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for imageUri. */ - com.google.protobuf.ByteString - getImageUriBytes(); + com.google.protobuf.ByteString getImageUriBytes(); /** + * + * *
    * Optional. The Compute Engine machine type used for cluster instances.
    * A full URL, partial URI, or short name are valid. Examples:
@@ -124,10 +160,13 @@ public interface InstanceGroupConfigOrBuilder extends
    * 
* * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The machineTypeUri. */ java.lang.String getMachineTypeUri(); /** + * + * *
    * Optional. The Compute Engine machine type used for cluster instances.
    * A full URL, partial URI, or short name are valid. Examples:
@@ -142,50 +181,69 @@ public interface InstanceGroupConfigOrBuilder extends
    * 
* * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for machineTypeUri. */ - com.google.protobuf.ByteString - getMachineTypeUriBytes(); + com.google.protobuf.ByteString getMachineTypeUriBytes(); /** + * + * *
    * Optional. Disk option config settings.
    * 
* - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the diskConfig field is set. */ boolean hasDiskConfig(); /** + * + * *
    * Optional. Disk option config settings.
    * 
* - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The diskConfig. */ com.google.cloud.dataproc.v1.DiskConfig getDiskConfig(); /** + * + * *
    * Optional. Disk option config settings.
    * 
* - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.DiskConfigOrBuilder getDiskConfigOrBuilder(); /** + * + * *
    * Output only. Specifies that this instance group contains preemptible
    * instances.
    * 
* * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The isPreemptible. */ boolean getIsPreemptible(); /** + * + * *
    * Optional. Specifies the preemptibility of the instance group.
    * The default value for master and worker groups is
@@ -194,11 +252,16 @@ public interface InstanceGroupConfigOrBuilder extends
    * `PREEMPTIBLE`.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for preemptibility. */ int getPreemptibilityValue(); /** + * + * *
    * Optional. Specifies the preemptibility of the instance group.
    * The default value for master and worker groups is
@@ -207,94 +270,131 @@ public interface InstanceGroupConfigOrBuilder extends
    * `PREEMPTIBLE`.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The preemptibility. */ com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility getPreemptibility(); /** + * + * *
    * Output only. The config for Compute Engine Instance Group
    * Manager that manages this group.
    * This is only used for preemptible instance groups.
    * 
* - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the managedGroupConfig field is set. */ boolean hasManagedGroupConfig(); /** + * + * *
    * Output only. The config for Compute Engine Instance Group
    * Manager that manages this group.
    * This is only used for preemptible instance groups.
    * 
* - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The managedGroupConfig. */ com.google.cloud.dataproc.v1.ManagedGroupConfig getManagedGroupConfig(); /** + * + * *
    * Output only. The config for Compute Engine Instance Group
    * Manager that manages this group.
    * This is only used for preemptible instance groups.
    * 
* - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder getManagedGroupConfigOrBuilder(); /** + * + * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getAcceleratorsList(); + java.util.List getAcceleratorsList(); /** + * + * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.AcceleratorConfig getAccelerators(int index); /** + * + * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAcceleratorsCount(); /** + * + * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getAcceleratorsOrBuilderList(); /** + * + * *
    * Optional. The Compute Engine accelerator configuration for these
    * instances.
    * 
* - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( - int index); + com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index); /** + * + * *
    * Optional. Specifies the minimum cpu platform for the Instance Group.
    * See [Dataproc -> Minimum CPU
@@ -302,10 +402,13 @@ com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder
    * 
* * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The minCpuPlatform. */ java.lang.String getMinCpuPlatform(); /** + * + * *
    * Optional. Specifies the minimum cpu platform for the Instance Group.
    * See [Dataproc -> Minimum CPU
@@ -313,8 +416,8 @@ com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder
    * 
* * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for minCpuPlatform. */ - com.google.protobuf.ByteString - getMinCpuPlatformBytes(); + com.google.protobuf.ByteString getMinCpuPlatformBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java similarity index 66% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java index b3ad8cbb0499..ef441e5bf093 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java @@ -1,24 +1,44 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to instantiate an inline workflow template.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest} */ -public final class InstantiateInlineWorkflowTemplateRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InstantiateInlineWorkflowTemplateRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) InstantiateInlineWorkflowTemplateRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InstantiateInlineWorkflowTemplateRequest.newBuilder() to construct. - private InstantiateInlineWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private InstantiateInlineWorkflowTemplateRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InstantiateInlineWorkflowTemplateRequest() { parent_ = ""; requestId_ = ""; @@ -26,32 +46,35 @@ private InstantiateInlineWorkflowTemplateRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InstantiateInlineWorkflowTemplateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.class, + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -63,7 +86,10 @@ protected java.lang.Object newInstance(
    *   `projects/{project_id}/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 @@ -72,14 +98,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -91,17 +118,18 @@ public java.lang.String getParent() {
    *   `projects/{project_id}/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 { @@ -112,11 +140,16 @@ public java.lang.String getParent() { public static final int TEMPLATE_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.WorkflowTemplate template_; /** + * + * *
    * Required. The workflow template to instantiate.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the template field is set. */ @java.lang.Override @@ -124,23 +157,34 @@ public boolean hasTemplate() { return template_ != null; } /** + * + * *
    * Required. The workflow template to instantiate.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The template. */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate() { - return template_ == null ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() + : template_; } /** + * + * *
    * Required. The workflow template to instantiate.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder() { @@ -150,6 +194,8 @@ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuild public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A tag that prevents multiple concurrent workflow
    * instances with the same tag from running. This mitigates risk of
@@ -161,6 +207,7 @@ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuild
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -169,14 +216,15 @@ 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. A tag that prevents multiple concurrent workflow
    * instances with the same tag from running. This mitigates risk of
@@ -188,16 +236,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.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 { @@ -206,6 +253,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,8 +265,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -241,8 +288,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTemplate()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTemplate()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -255,22 +301,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest other = (com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) obj; + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest other = + (com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) return false; + if (!getTemplate().equals(other.getTemplate())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -296,129 +340,138 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest 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.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest 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.dataproc.v1.InstantiateInlineWorkflowTemplateRequest + 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.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to instantiate an inline workflow template.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.class, + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.Builder.class); } - // Construct using com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -436,14 +489,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; } @java.lang.Override - public com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.getDefaultInstance(); + public com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest + .getDefaultInstance(); } @java.lang.Override @@ -457,7 +512,8 @@ public com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest bui @java.lang.Override public com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest result = new com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest(this); + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest result = + new com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest(this); result.parent_ = parent_; if (templateBuilder_ == null) { result.template_ = template_; @@ -473,46 +529,51 @@ public com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest bui public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest)other); + return mergeFrom( + (com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest other) { - if (other == com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest other) { + if (other + == com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -550,29 +611,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getTemplateFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getTemplateFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -585,6 +648,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -596,14 +661,16 @@ public Builder mergeFrom(
      *   `projects/{project_id}/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; @@ -612,6 +679,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -623,16 +692,17 @@ public java.lang.String getParent() {
      *   `projects/{project_id}/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 { @@ -640,6 +710,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -651,21 +723,25 @@ public java.lang.String getParent() {
      *   `projects/{project_id}/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 resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -677,16 +753,21 @@ public Builder setParent(
      *   `projects/{project_id}/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 resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -698,17 +779,19 @@ public Builder clearParent() {
      *   `projects/{project_id}/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; @@ -716,39 +799,58 @@ public Builder setParentBytes( private com.google.cloud.dataproc.v1.WorkflowTemplate template_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> templateBuilder_; + com.google.cloud.dataproc.v1.WorkflowTemplate, + com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, + com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> + templateBuilder_; /** + * + * *
      * Required. The workflow template to instantiate.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the template field is set. */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** + * + * *
      * Required. The workflow template to instantiate.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The template. */ public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate() { if (templateBuilder_ == null) { - return template_ == null ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() + : template_; } else { return templateBuilder_.getMessage(); } } /** + * + * *
      * Required. The workflow template to instantiate.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) { if (templateBuilder_ == null) { @@ -764,11 +866,15 @@ public Builder setTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) return this; } /** + * + * *
      * Required. The workflow template to instantiate.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTemplate( com.google.cloud.dataproc.v1.WorkflowTemplate.Builder builderForValue) { @@ -782,17 +888,23 @@ public Builder setTemplate( return this; } /** + * + * *
      * Required. The workflow template to instantiate.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = - com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder(template_) + .mergeFrom(value) + .buildPartial(); } else { template_ = value; } @@ -804,11 +916,15 @@ public Builder mergeTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value return this; } /** + * + * *
      * Required. The workflow template to instantiate.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTemplate() { if (templateBuilder_ == null) { @@ -822,48 +938,64 @@ public Builder clearTemplate() { return this; } /** + * + * *
      * Required. The workflow template to instantiate.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder getTemplateBuilder() { - + onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The workflow template to instantiate.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { - return template_ == null ? - com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() + : template_; } } /** + * + * *
      * Required. The workflow template to instantiate.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> + com.google.cloud.dataproc.v1.WorkflowTemplate, + com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, + com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); + templateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.WorkflowTemplate, + com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, + com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( + getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; @@ -871,6 +1003,8 @@ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuild private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -882,13 +1016,13 @@ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuild
      * 
* * string request_id = 3 [(.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; @@ -897,6 +1031,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -908,15 +1044,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.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 { @@ -924,6 +1059,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -935,20 +1072,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.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. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -960,15 +1099,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -980,23 +1122,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.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); } @@ -1006,41 +1148,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) - private static final com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest DEFAULT_INSTANCE; + private static final com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest(); } - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest getDefaultInstance() { + public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstantiateInlineWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstantiateInlineWorkflowTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1052,9 +1196,8 @@ public com.google.protobuf.Parser getP } @java.lang.Override - public com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest getDefaultInstanceForType() { + public com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.java index 7539068ffd87..0a96c1712c77 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface InstantiateInlineWorkflowTemplateRequestOrBuilder extends +public interface InstantiateInlineWorkflowTemplateRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -19,11 +37,16 @@ public interface InstantiateInlineWorkflowTemplateRequestOrBuilder extends
    *   `projects/{project_id}/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 resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -35,40 +58,58 @@ public interface InstantiateInlineWorkflowTemplateRequestOrBuilder extends
    *   `projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The workflow template to instantiate.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the template field is set. */ boolean hasTemplate(); /** + * + * *
    * Required. The workflow template to instantiate.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The template. */ com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate(); /** + * + * *
    * Required. The workflow template to instantiate.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder(); /** + * + * *
    * Optional. A tag that prevents multiple concurrent workflow
    * instances with the same tag from running. This mitigates risk of
@@ -80,10 +121,13 @@ public interface InstantiateInlineWorkflowTemplateRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A tag that prevents multiple concurrent workflow
    * instances with the same tag from running. This mitigates risk of
@@ -95,8 +139,8 @@ public interface InstantiateInlineWorkflowTemplateRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java similarity index 66% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java index 4c4d41f8daa7..4118db209f09 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to instantiate a workflow template.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest} */ -public final class InstantiateWorkflowTemplateRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InstantiateWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) InstantiateWorkflowTemplateRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InstantiateWorkflowTemplateRequest.newBuilder() to construct. - private InstantiateWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private InstantiateWorkflowTemplateRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InstantiateWorkflowTemplateRequest() { name_ = ""; requestId_ = ""; @@ -26,44 +45,46 @@ private InstantiateWorkflowTemplateRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InstantiateWorkflowTemplateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_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 internalGetParameters(); 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.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.class, + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -75,7 +96,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * 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 @@ -84,14 +108,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -103,17 +128,18 @@ public java.lang.String getName() {
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * 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 { @@ -124,6 +150,8 @@ public java.lang.String getName() { public static final int VERSION_FIELD_NUMBER = 2; private int version_; /** + * + * *
    * Optional. The version of workflow template to instantiate. If specified,
    * the workflow will be instantiated only if the current version of
@@ -133,6 +161,7 @@ public java.lang.String getName() {
    * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ @java.lang.Override @@ -143,6 +172,8 @@ public int getVersion() { public static final int REQUEST_ID_FIELD_NUMBER = 5; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A tag that prevents multiple concurrent workflow
    * instances with the same tag from running. This mitigates risk of
@@ -154,6 +185,7 @@ public int getVersion() {
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -162,14 +194,15 @@ 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. A tag that prevents multiple concurrent workflow
    * instances with the same tag from running. This mitigates risk of
@@ -181,16 +214,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 5 [(.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 { @@ -199,24 +231,23 @@ public java.lang.String getRequestId() { } public static final int PARAMETERS_FIELD_NUMBER = 6; + private static final class ParametersDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_ParametersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_ParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> parameters_; - private com.google.protobuf.MapField - internalGetParameters() { + + private com.google.protobuf.MapField parameters_; + + private com.google.protobuf.MapField internalGetParameters() { if (parameters_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParametersDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParametersDefaultEntryHolder.defaultEntry); } return parameters_; } @@ -225,74 +256,81 @@ public int getParametersCount() { return internalGetParameters().getMap().size(); } /** + * + * *
    * Optional. Map from parameter names to values that should be used for those
    * parameters. Values may not exceed 1000 characters.
    * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsParameters( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsParameters(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetParameters().getMap().containsKey(key); } - /** - * Use {@link #getParametersMap()} instead. - */ + /** Use {@link #getParametersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParameters() { return getParametersMap(); } /** + * + * *
    * Optional. Map from parameter names to values that should be used for those
    * parameters. Values may not exceed 1000 characters.
    * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } /** + * + * *
    * Optional. Map from parameter names to values that should be used for those
    * parameters. Values may not exceed 1000 characters.
    * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getParametersOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParameters().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Map from parameter names to values that should be used for those
    * parameters. Values may not exceed 1000 characters.
    * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getParametersOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParameters().getMap(); + public java.lang.String getParametersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParameters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -300,6 +338,7 @@ public java.lang.String getParametersOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,8 +350,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -322,12 +360,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetParameters(), - ParametersDefaultEntryHolder.defaultEntry, - 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 6); getUnknownFields().writeTo(output); } @@ -341,21 +375,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, version_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); } - for (java.util.Map.Entry entry - : internalGetParameters().getMap().entrySet()) { - com.google.protobuf.MapEntry - parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, parameters__); + for (java.util.Map.Entry entry : + internalGetParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry parameters__ = + ParametersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, parameters__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -365,21 +398,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.dataproc.v1.InstantiateWorkflowTemplateRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest other = (com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) obj; + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest other = + (com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getVersion() - != other.getVersion()) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (!internalGetParameters().equals( - other.internalGetParameters())) return false; + if (!getName().equals(other.getName())) return false; + if (getVersion() != other.getVersion()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!internalGetParameters().equals(other.internalGetParameters())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -407,151 +437,156 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest 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.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to instantiate a workflow template.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetParameters(); 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 internalGetMutableParameters(); 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.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.class, + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -566,13 +601,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor; } @java.lang.Override - public com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest getDefaultInstanceForType() { + public com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest + getDefaultInstanceForType() { return com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.getDefaultInstance(); } @@ -587,7 +623,8 @@ public com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest result = new com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest(this); + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest result = + new com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.version_ = version_; @@ -602,46 +639,50 @@ public com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest other) { - if (other == com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest other) { + if (other + == com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -653,8 +694,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.InstantiateWorkflowTemplat requestId_ = other.requestId_; onChanged(); } - internalGetMutableParameters().mergeFrom( - other.internalGetParameters()); + internalGetMutableParameters().mergeFrom(other.internalGetParameters()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -681,35 +721,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - version_ = input.readInt32(); - - break; - } // case 16 - case 42: { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - parameters__ = input.readMessage( - ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableParameters().getMutableMap().put( - parameters__.getKey(), parameters__.getValue()); - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + version_ = input.readInt32(); + + break; + } // case 16 + case 42: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry parameters__ = + input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableParameters() + .getMutableMap() + .put(parameters__.getKey(), parameters__.getValue()); + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -719,10 +766,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -734,14 +784,16 @@ public Builder mergeFrom(
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * 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; @@ -750,6 +802,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -761,16 +815,17 @@ public java.lang.String getName() {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * 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 { @@ -778,6 +833,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -789,21 +846,25 @@ public java.lang.String getName() {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -815,16 +876,21 @@ public Builder setName(
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -836,24 +902,28 @@ public Builder clearName() {
      *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int version_ ; + private int version_; /** + * + * *
      * Optional. The version of workflow template to instantiate. If specified,
      * the workflow will be instantiated only if the current version of
@@ -863,6 +933,7 @@ public Builder setNameBytes(
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ @java.lang.Override @@ -870,6 +941,8 @@ public int getVersion() { return version_; } /** + * + * *
      * Optional. The version of workflow template to instantiate. If specified,
      * the workflow will be instantiated only if the current version of
@@ -879,16 +952,19 @@ public int getVersion() {
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { - + version_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The version of workflow template to instantiate. If specified,
      * the workflow will be instantiated only if the current version of
@@ -898,10 +974,11 @@ public Builder setVersion(int value) {
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = 0; onChanged(); return this; @@ -909,6 +986,8 @@ public Builder clearVersion() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -920,13 +999,13 @@ public Builder clearVersion() {
      * 
* * string request_id = 5 [(.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; @@ -935,6 +1014,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -946,15 +1027,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 5 [(.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 { @@ -962,6 +1042,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -973,20 +1055,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 5 [(.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. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -998,15 +1082,18 @@ public Builder setRequestId(
      * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A tag that prevents multiple concurrent workflow
      * instances with the same tag from running. This mitigates risk of
@@ -1018,37 +1105,39 @@ public Builder clearRequestId() {
      * 
* * string request_id = 5 [(.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; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> parameters_; + private com.google.protobuf.MapField parameters_; + private com.google.protobuf.MapField - internalGetParameters() { + internalGetParameters() { if (parameters_ == null) { return com.google.protobuf.MapField.emptyMapField( ParametersDefaultEntryHolder.defaultEntry); } return parameters_; } + private com.google.protobuf.MapField - internalGetMutableParameters() { - onChanged();; + internalGetMutableParameters() { + onChanged(); + ; if (parameters_ == null) { - parameters_ = com.google.protobuf.MapField.newMapField( - ParametersDefaultEntryHolder.defaultEntry); + parameters_ = + com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); } if (!parameters_.isMutable()) { parameters_ = parameters_.copy(); @@ -1060,74 +1149,81 @@ public int getParametersCount() { return internalGetParameters().getMap().size(); } /** + * + * *
      * Optional. Map from parameter names to values that should be used for those
      * parameters. Values may not exceed 1000 characters.
      * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsParameters( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsParameters(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetParameters().getMap().containsKey(key); } - /** - * Use {@link #getParametersMap()} instead. - */ + /** Use {@link #getParametersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParameters() { return getParametersMap(); } /** + * + * *
      * Optional. Map from parameter names to values that should be used for those
      * parameters. Values may not exceed 1000 characters.
      * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } /** + * + * *
      * Optional. Map from parameter names to values that should be used for those
      * parameters. Values may not exceed 1000 characters.
      * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getParametersOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParameters().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Map from parameter names to values that should be used for those
      * parameters. Values may not exceed 1000 characters.
      * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getParametersOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParameters().getMap(); + public java.lang.String getParametersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParameters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1135,72 +1231,72 @@ public java.lang.String getParametersOrThrow( } public Builder clearParameters() { - internalGetMutableParameters().getMutableMap() - .clear(); + internalGetMutableParameters().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Map from parameter names to values that should be used for those
      * parameters. Values may not exceed 1000 characters.
      * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeParameters( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableParameters().getMutableMap() - .remove(key); + public Builder removeParameters(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableParameters().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableParameters() { + public java.util.Map getMutableParameters() { return internalGetMutableParameters().getMutableMap(); } /** + * + * *
      * Optional. Map from parameter names to values that should be used for those
      * parameters. Values may not exceed 1000 characters.
      * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putParameters( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putParameters(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"); + } - internalGetMutableParameters().getMutableMap() - .put(key, value); + internalGetMutableParameters().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Map from parameter names to values that should be used for those
      * parameters. Values may not exceed 1000 characters.
      * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllParameters( - java.util.Map values) { - internalGetMutableParameters().getMutableMap() - .putAll(values); + public Builder putAllParameters(java.util.Map values) { + internalGetMutableParameters().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); } @@ -1210,41 +1306,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) - private static final com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest DEFAULT_INSTANCE; + private static final com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest(); } - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest getDefaultInstance() { + public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstantiateWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstantiateWorkflowTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1256,9 +1354,8 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest getDefaultInstanceForType() { + public com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java index b3d9ccba46da..5ef0491fa3a2 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface InstantiateWorkflowTemplateRequestOrBuilder extends +public interface InstantiateWorkflowTemplateRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -19,11 +37,16 @@ public interface InstantiateWorkflowTemplateRequestOrBuilder extends
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -35,13 +58,17 @@ public interface InstantiateWorkflowTemplateRequestOrBuilder extends
    *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. The version of workflow template to instantiate. If specified,
    * the workflow will be instantiated only if the current version of
@@ -51,11 +78,14 @@ public interface InstantiateWorkflowTemplateRequestOrBuilder extends
    * 
* * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ int getVersion(); /** + * + * *
    * Optional. A tag that prevents multiple concurrent workflow
    * instances with the same tag from running. This mitigates risk of
@@ -67,10 +97,13 @@ public interface InstantiateWorkflowTemplateRequestOrBuilder extends
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A tag that prevents multiple concurrent workflow
    * instances with the same tag from running. This mitigates risk of
@@ -82,69 +115,77 @@ public interface InstantiateWorkflowTemplateRequestOrBuilder extends
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * Optional. Map from parameter names to values that should be used for those
    * parameters. Values may not exceed 1000 characters.
    * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getParametersCount(); /** + * + * *
    * Optional. Map from parameter names to values that should be used for those
    * parameters. Values may not exceed 1000 characters.
    * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsParameters( - java.lang.String key); - /** - * Use {@link #getParametersMap()} instead. + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsParameters(java.lang.String key); + /** Use {@link #getParametersMap()} instead. */ @java.lang.Deprecated - java.util.Map - getParameters(); + java.util.Map getParameters(); /** + * + * *
    * Optional. Map from parameter names to values that should be used for those
    * parameters. Values may not exceed 1000 characters.
    * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getParametersMap(); + java.util.Map getParametersMap(); /** + * + * *
    * Optional. Map from parameter names to values that should be used for those
    * parameters. Values may not exceed 1000 characters.
    * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getParametersOrDefault( + java.lang.String getParametersOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Map from parameter names to values that should be used for those
    * parameters. Values may not exceed 1000 characters.
    * 
* - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - java.lang.String getParametersOrThrow( - java.lang.String key); + java.lang.String getParametersOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java index 362d47ec56bf..6ea08a4538ca 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A Dataproc job resource.
  * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.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() { statusHistory_ = java.util.Collections.emptyList(); yarnApplications_ = java.util.Collections.emptyList(); @@ -29,45 +47,46 @@ private Job() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Job(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_Job_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_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 18: 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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataproc.v1.Job.class, com.google.cloud.dataproc.v1.Job.Builder.class); } private int typeJobCase_ = 0; private java.lang.Object typeJob_; + public enum TypeJobCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { HADOOP_JOB(3), SPARK_JOB(4), @@ -79,6 +98,7 @@ public enum TypeJobCase PRESTO_JOB(23), TYPEJOB_NOT_SET(0); private final int value; + private TypeJobCase(int value) { this.value = value; } @@ -94,32 +114,43 @@ public static TypeJobCase valueOf(int value) { public static TypeJobCase forNumber(int value) { switch (value) { - case 3: return HADOOP_JOB; - case 4: return SPARK_JOB; - case 5: return PYSPARK_JOB; - case 6: return HIVE_JOB; - case 7: return PIG_JOB; - case 21: return SPARK_R_JOB; - case 12: return SPARK_SQL_JOB; - case 23: return PRESTO_JOB; - case 0: return TYPEJOB_NOT_SET; - default: return null; + case 3: + return HADOOP_JOB; + case 4: + return SPARK_JOB; + case 5: + return PYSPARK_JOB; + case 6: + return HIVE_JOB; + case 7: + return PIG_JOB; + case 21: + return SPARK_R_JOB; + case 12: + return SPARK_SQL_JOB; + case 23: + return PRESTO_JOB; + case 0: + return TYPEJOB_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public TypeJobCase - getTypeJobCase() { - return TypeJobCase.forNumber( - typeJobCase_); + public TypeJobCase getTypeJobCase() { + return TypeJobCase.forNumber(typeJobCase_); } public static final int REFERENCE_FIELD_NUMBER = 1; private com.google.cloud.dataproc.v1.JobReference reference_; /** + * + * *
    * Optional. The fully qualified reference to the job, which can be used to
    * obtain the equivalent REST path of the job resource. If this property
@@ -127,7 +158,10 @@ public int getNumber() {
    * <code>job_id</code>.
    * 
* - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the reference field is set. */ @java.lang.Override @@ -135,6 +169,8 @@ public boolean hasReference() { return reference_ != null; } /** + * + * *
    * Optional. The fully qualified reference to the job, which can be used to
    * obtain the equivalent REST path of the job resource. If this property
@@ -142,14 +178,21 @@ public boolean hasReference() {
    * <code>job_id</code>.
    * 
* - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reference. */ @java.lang.Override public com.google.cloud.dataproc.v1.JobReference getReference() { - return reference_ == null ? com.google.cloud.dataproc.v1.JobReference.getDefaultInstance() : reference_; + return reference_ == null + ? com.google.cloud.dataproc.v1.JobReference.getDefaultInstance() + : reference_; } /** + * + * *
    * Optional. The fully qualified reference to the job, which can be used to
    * obtain the equivalent REST path of the job resource. If this property
@@ -157,7 +200,9 @@ public com.google.cloud.dataproc.v1.JobReference getReference() {
    * <code>job_id</code>.
    * 
* - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.JobReferenceOrBuilder getReferenceOrBuilder() { @@ -167,12 +212,17 @@ public com.google.cloud.dataproc.v1.JobReferenceOrBuilder getReferenceOrBuilder( public static final int PLACEMENT_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.JobPlacement placement_; /** + * + * *
    * Required. Job information, including how, when, and where to
    * run the job.
    * 
* - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the placement field is set. */ @java.lang.Override @@ -180,25 +230,36 @@ public boolean hasPlacement() { return placement_ != null; } /** + * + * *
    * Required. Job information, including how, when, and where to
    * run the job.
    * 
* - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The placement. */ @java.lang.Override public com.google.cloud.dataproc.v1.JobPlacement getPlacement() { - return placement_ == null ? com.google.cloud.dataproc.v1.JobPlacement.getDefaultInstance() : placement_; + return placement_ == null + ? com.google.cloud.dataproc.v1.JobPlacement.getDefaultInstance() + : placement_; } /** + * + * *
    * Required. Job information, including how, when, and where to
    * run the job.
    * 
* - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.JobPlacementOrBuilder getPlacementOrBuilder() { @@ -207,11 +268,16 @@ public com.google.cloud.dataproc.v1.JobPlacementOrBuilder getPlacementOrBuilder( public static final int HADOOP_JOB_FIELD_NUMBER = 3; /** + * + * *
    * Optional. Job is a Hadoop job.
    * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the hadoopJob field is set. */ @java.lang.Override @@ -219,42 +285,56 @@ public boolean hasHadoopJob() { return typeJobCase_ == 3; } /** + * + * *
    * Optional. Job is a Hadoop job.
    * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The hadoopJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.HadoopJob getHadoopJob() { if (typeJobCase_ == 3) { - return (com.google.cloud.dataproc.v1.HadoopJob) typeJob_; + return (com.google.cloud.dataproc.v1.HadoopJob) typeJob_; } return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); } /** + * + * *
    * Optional. Job is a Hadoop job.
    * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder() { if (typeJobCase_ == 3) { - return (com.google.cloud.dataproc.v1.HadoopJob) typeJob_; + return (com.google.cloud.dataproc.v1.HadoopJob) typeJob_; } return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); } public static final int SPARK_JOB_FIELD_NUMBER = 4; /** + * + * *
    * Optional. Job is a Spark job.
    * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkJob field is set. */ @java.lang.Override @@ -262,42 +342,56 @@ public boolean hasSparkJob() { return typeJobCase_ == 4; } /** + * + * *
    * Optional. Job is a Spark job.
    * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkJob getSparkJob() { if (typeJobCase_ == 4) { - return (com.google.cloud.dataproc.v1.SparkJob) typeJob_; + return (com.google.cloud.dataproc.v1.SparkJob) typeJob_; } return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); } /** + * + * *
    * Optional. Job is a Spark job.
    * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder() { if (typeJobCase_ == 4) { - return (com.google.cloud.dataproc.v1.SparkJob) typeJob_; + return (com.google.cloud.dataproc.v1.SparkJob) typeJob_; } return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); } public static final int PYSPARK_JOB_FIELD_NUMBER = 5; /** + * + * *
    * Optional. Job is a PySpark job.
    * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pysparkJob field is set. */ @java.lang.Override @@ -305,42 +399,55 @@ public boolean hasPysparkJob() { return typeJobCase_ == 5; } /** + * + * *
    * Optional. Job is a PySpark job.
    * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pysparkJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.PySparkJob getPysparkJob() { if (typeJobCase_ == 5) { - return (com.google.cloud.dataproc.v1.PySparkJob) typeJob_; + return (com.google.cloud.dataproc.v1.PySparkJob) typeJob_; } return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); } /** + * + * *
    * Optional. Job is a PySpark job.
    * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder() { if (typeJobCase_ == 5) { - return (com.google.cloud.dataproc.v1.PySparkJob) typeJob_; + return (com.google.cloud.dataproc.v1.PySparkJob) typeJob_; } return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); } public static final int HIVE_JOB_FIELD_NUMBER = 6; /** + * + * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the hiveJob field is set. */ @java.lang.Override @@ -348,42 +455,53 @@ public boolean hasHiveJob() { return typeJobCase_ == 6; } /** + * + * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The hiveJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.HiveJob getHiveJob() { if (typeJobCase_ == 6) { - return (com.google.cloud.dataproc.v1.HiveJob) typeJob_; + return (com.google.cloud.dataproc.v1.HiveJob) typeJob_; } return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); } /** + * + * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder() { if (typeJobCase_ == 6) { - return (com.google.cloud.dataproc.v1.HiveJob) typeJob_; + return (com.google.cloud.dataproc.v1.HiveJob) typeJob_; } return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); } public static final int PIG_JOB_FIELD_NUMBER = 7; /** + * + * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pigJob field is set. */ @java.lang.Override @@ -391,42 +509,54 @@ public boolean hasPigJob() { return typeJobCase_ == 7; } /** + * + * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pigJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.PigJob getPigJob() { if (typeJobCase_ == 7) { - return (com.google.cloud.dataproc.v1.PigJob) typeJob_; + return (com.google.cloud.dataproc.v1.PigJob) typeJob_; } return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); } /** + * + * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder() { if (typeJobCase_ == 7) { - return (com.google.cloud.dataproc.v1.PigJob) typeJob_; + return (com.google.cloud.dataproc.v1.PigJob) typeJob_; } return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); } public static final int SPARK_R_JOB_FIELD_NUMBER = 21; /** + * + * *
    * Optional. Job is a SparkR job.
    * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkRJob field is set. */ @java.lang.Override @@ -434,42 +564,56 @@ public boolean hasSparkRJob() { return typeJobCase_ == 21; } /** + * + * *
    * Optional. Job is a SparkR job.
    * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkRJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkRJob getSparkRJob() { if (typeJobCase_ == 21) { - return (com.google.cloud.dataproc.v1.SparkRJob) typeJob_; + return (com.google.cloud.dataproc.v1.SparkRJob) typeJob_; } return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); } /** + * + * *
    * Optional. Job is a SparkR job.
    * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder() { if (typeJobCase_ == 21) { - return (com.google.cloud.dataproc.v1.SparkRJob) typeJob_; + return (com.google.cloud.dataproc.v1.SparkRJob) typeJob_; } return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); } public static final int SPARK_SQL_JOB_FIELD_NUMBER = 12; /** + * + * *
    * Optional. Job is a SparkSql job.
    * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkSqlJob field is set. */ @java.lang.Override @@ -477,42 +621,56 @@ public boolean hasSparkSqlJob() { return typeJobCase_ == 12; } /** + * + * *
    * Optional. Job is a SparkSql job.
    * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkSqlJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlJob getSparkSqlJob() { if (typeJobCase_ == 12) { - return (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_; + return (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_; } return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); } /** + * + * *
    * Optional. Job is a SparkSql job.
    * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder() { if (typeJobCase_ == 12) { - return (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_; + return (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_; } return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); } public static final int PRESTO_JOB_FIELD_NUMBER = 23; /** + * + * *
    * Optional. Job is a Presto job.
    * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the prestoJob field is set. */ @java.lang.Override @@ -520,31 +678,40 @@ public boolean hasPrestoJob() { return typeJobCase_ == 23; } /** + * + * *
    * Optional. Job is a Presto job.
    * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The prestoJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.PrestoJob getPrestoJob() { if (typeJobCase_ == 23) { - return (com.google.cloud.dataproc.v1.PrestoJob) typeJob_; + return (com.google.cloud.dataproc.v1.PrestoJob) typeJob_; } return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); } /** + * + * *
    * Optional. Job is a Presto job.
    * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder() { if (typeJobCase_ == 23) { - return (com.google.cloud.dataproc.v1.PrestoJob) typeJob_; + return (com.google.cloud.dataproc.v1.PrestoJob) typeJob_; } return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); } @@ -552,13 +719,18 @@ public com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder() { public static final int STATUS_FIELD_NUMBER = 8; private com.google.cloud.dataproc.v1.JobStatus status_; /** + * + * *
    * Output only. The job status. Additional application-specific
    * status information may be contained in the <code>type_job</code>
    * and <code>yarn_applications</code> fields.
    * 
* - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the status field is set. */ @java.lang.Override @@ -566,13 +738,18 @@ public boolean hasStatus() { return status_ != null; } /** + * + * *
    * Output only. The job status. Additional application-specific
    * status information may be contained in the <code>type_job</code>
    * and <code>yarn_applications</code> fields.
    * 
* - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ @java.lang.Override @@ -580,13 +757,17 @@ public com.google.cloud.dataproc.v1.JobStatus getStatus() { return status_ == null ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() : status_; } /** + * + * *
    * Output only. The job status. Additional application-specific
    * status information may be contained in the <code>type_job</code>
    * and <code>yarn_applications</code> fields.
    * 
* - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder() { @@ -596,126 +777,165 @@ public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder() { public static final int STATUS_HISTORY_FIELD_NUMBER = 13; private java.util.List statusHistory_; /** + * + * *
    * Output only. The previous job status.
    * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getStatusHistoryList() { return statusHistory_; } /** + * + * *
    * Output only. The previous job status.
    * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getStatusHistoryOrBuilderList() { return statusHistory_; } /** + * + * *
    * Output only. The previous job status.
    * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getStatusHistoryCount() { return statusHistory_.size(); } /** + * + * *
    * Output only. The previous job status.
    * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.JobStatus getStatusHistory(int index) { return statusHistory_.get(index); } /** + * + * *
    * Output only. The previous job status.
    * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusHistoryOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusHistoryOrBuilder(int index) { return statusHistory_.get(index); } public static final int YARN_APPLICATIONS_FIELD_NUMBER = 9; private java.util.List yarnApplications_; /** + * + * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getYarnApplicationsList() { return yarnApplications_; } /** + * + * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getYarnApplicationsOrBuilderList() { return yarnApplications_; } /** + * + * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getYarnApplicationsCount() { return yarnApplications_.size(); } /** + * + * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.YarnApplication getYarnApplications(int index) { return yarnApplications_.get(index); } /** + * + * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplicationsOrBuilder( @@ -726,12 +946,16 @@ public com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplications public static final int DRIVER_OUTPUT_RESOURCE_URI_FIELD_NUMBER = 17; private volatile java.lang.Object driverOutputResourceUri_; /** + * + * *
    * Output only. A URI pointing to the location of the stdout of the job's
    * driver program.
    * 
* - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The driverOutputResourceUri. */ @java.lang.Override @@ -740,30 +964,31 @@ public java.lang.String getDriverOutputResourceUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); driverOutputResourceUri_ = s; return s; } } /** + * + * *
    * Output only. A URI pointing to the location of the stdout of the job's
    * driver program.
    * 
* - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for driverOutputResourceUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getDriverOutputResourceUriBytes() { + public com.google.protobuf.ByteString getDriverOutputResourceUriBytes() { java.lang.Object ref = driverOutputResourceUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); driverOutputResourceUri_ = b; return b; } else { @@ -774,6 +999,8 @@ public java.lang.String getDriverOutputResourceUri() { public static final int DRIVER_CONTROL_FILES_URI_FIELD_NUMBER = 15; private volatile java.lang.Object driverControlFilesUri_; /** + * + * *
    * Output only. If present, the location of miscellaneous control files
    * which may be used as part of job setup and handling. If not present,
@@ -781,6 +1008,7 @@ public java.lang.String getDriverOutputResourceUri() {
    * 
* * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The driverControlFilesUri. */ @java.lang.Override @@ -789,14 +1017,15 @@ public java.lang.String getDriverControlFilesUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); driverControlFilesUri_ = s; return s; } } /** + * + * *
    * Output only. If present, the location of miscellaneous control files
    * which may be used as part of job setup and handling. If not present,
@@ -804,16 +1033,15 @@ public java.lang.String getDriverControlFilesUri() {
    * 
* * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for driverControlFilesUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getDriverControlFilesUriBytes() { + public com.google.protobuf.ByteString getDriverControlFilesUriBytes() { java.lang.Object ref = driverControlFilesUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); driverControlFilesUri_ = b; return b; } else { @@ -822,24 +1050,23 @@ public java.lang.String getDriverControlFilesUri() { } public static final int LABELS_FIELD_NUMBER = 18; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_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() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -848,6 +1075,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels to associate with this job.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -860,22 +1089,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-
   @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();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this job.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -889,11 +1118,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this job.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -907,16 +1137,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this job.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -930,12 +1160,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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();
     }
@@ -945,11 +1174,16 @@ public java.lang.String getLabelsOrThrow(
   public static final int SCHEDULING_FIELD_NUMBER = 20;
   private com.google.cloud.dataproc.v1.JobScheduling scheduling_;
   /**
+   *
+   *
    * 
    * Optional. Job scheduling configuration.
    * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the scheduling field is set. */ @java.lang.Override @@ -957,23 +1191,34 @@ public boolean hasScheduling() { return scheduling_ != null; } /** + * + * *
    * Optional. Job scheduling configuration.
    * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The scheduling. */ @java.lang.Override public com.google.cloud.dataproc.v1.JobScheduling getScheduling() { - return scheduling_ == null ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() : scheduling_; + return scheduling_ == null + ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() + : scheduling_; } /** + * + * *
    * Optional. Job scheduling configuration.
    * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilder() { @@ -983,6 +1228,8 @@ public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilde public static final int JOB_UUID_FIELD_NUMBER = 22; private volatile java.lang.Object jobUuid_; /** + * + * *
    * Output only. A UUID that uniquely identifies a job within the project
    * over time. This is in contrast to a user-settable reference.job_id that
@@ -990,6 +1237,7 @@ public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilde
    * 
* * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The jobUuid. */ @java.lang.Override @@ -998,14 +1246,15 @@ public java.lang.String getJobUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobUuid_ = s; return s; } } /** + * + * *
    * Output only. A UUID that uniquely identifies a job within the project
    * over time. This is in contrast to a user-settable reference.job_id that
@@ -1013,16 +1262,15 @@ public java.lang.String getJobUuid() {
    * 
* * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for jobUuid. */ @java.lang.Override - public com.google.protobuf.ByteString - getJobUuidBytes() { + public com.google.protobuf.ByteString getJobUuidBytes() { java.lang.Object ref = jobUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobUuid_ = b; return b; } else { @@ -1033,6 +1281,8 @@ public java.lang.String getJobUuid() { public static final int DONE_FIELD_NUMBER = 24; private boolean done_; /** + * + * *
    * Output only. Indicates whether the job is completed. If the value is
    * `false`, the job is still in progress. If `true`, the job is completed, and
@@ -1041,6 +1291,7 @@ public java.lang.String getJobUuid() {
    * 
* * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The done. */ @java.lang.Override @@ -1051,11 +1302,16 @@ public boolean getDone() { public static final int DRIVER_SCHEDULING_CONFIG_FIELD_NUMBER = 27; private com.google.cloud.dataproc.v1.DriverSchedulingConfig driverSchedulingConfig_; /** + * + * *
    * Optional. Driver scheduling configuration.
    * 
* - * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the driverSchedulingConfig field is set. */ @java.lang.Override @@ -1063,30 +1319,43 @@ public boolean hasDriverSchedulingConfig() { return driverSchedulingConfig_ != null; } /** + * + * *
    * Optional. Driver scheduling configuration.
    * 
* - * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The driverSchedulingConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.DriverSchedulingConfig getDriverSchedulingConfig() { - return driverSchedulingConfig_ == null ? com.google.cloud.dataproc.v1.DriverSchedulingConfig.getDefaultInstance() : driverSchedulingConfig_; + return driverSchedulingConfig_ == null + ? com.google.cloud.dataproc.v1.DriverSchedulingConfig.getDefaultInstance() + : driverSchedulingConfig_; } /** + * + * *
    * Optional. Driver scheduling configuration.
    * 
* - * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder getDriverSchedulingConfigOrBuilder() { + public com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder + getDriverSchedulingConfigOrBuilder() { return getDriverSchedulingConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1098,8 +1367,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (reference_ != null) { output.writeMessage(1, getReference()); } @@ -1139,12 +1407,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(driverOutputResourceUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, driverOutputResourceUri_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 18); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 18); if (scheduling_ != null) { output.writeMessage(20, getScheduling()); } @@ -1173,87 +1437,89 @@ public int getSerializedSize() { size = 0; if (reference_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getReference()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReference()); } if (placement_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPlacement()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPlacement()); } if (typeJobCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.dataproc.v1.HadoopJob) typeJob_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.dataproc.v1.HadoopJob) typeJob_); } if (typeJobCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.dataproc.v1.SparkJob) typeJob_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.dataproc.v1.SparkJob) typeJob_); } if (typeJobCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.dataproc.v1.PySparkJob) typeJob_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.dataproc.v1.PySparkJob) typeJob_); } if (typeJobCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.dataproc.v1.HiveJob) typeJob_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.dataproc.v1.HiveJob) typeJob_); } if (typeJobCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.dataproc.v1.PigJob) typeJob_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.dataproc.v1.PigJob) typeJob_); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getStatus()); } for (int i = 0; i < yarnApplications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, yarnApplications_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, yarnApplications_.get(i)); } if (typeJobCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_); } for (int i = 0; i < statusHistory_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, statusHistory_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, statusHistory_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(driverControlFilesUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, driverControlFilesUri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(driverOutputResourceUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, driverOutputResourceUri_); - } - 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(18, labels__); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(17, driverOutputResourceUri_); + } + 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(18, labels__); } if (scheduling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getScheduling()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getScheduling()); } if (typeJobCase_ == 21) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, (com.google.cloud.dataproc.v1.SparkRJob) typeJob_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, (com.google.cloud.dataproc.v1.SparkRJob) typeJob_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobUuid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, jobUuid_); } if (typeJobCase_ == 23) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, (com.google.cloud.dataproc.v1.PrestoJob) typeJob_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, (com.google.cloud.dataproc.v1.PrestoJob) typeJob_); } if (done_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(24, done_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, done_); } if (driverSchedulingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(27, getDriverSchedulingConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(27, getDriverSchedulingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1263,7 +1529,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.dataproc.v1.Job)) { return super.equals(obj); @@ -1272,76 +1538,56 @@ public boolean equals(final java.lang.Object obj) { if (hasReference() != other.hasReference()) return false; if (hasReference()) { - if (!getReference() - .equals(other.getReference())) return false; + if (!getReference().equals(other.getReference())) return false; } if (hasPlacement() != other.hasPlacement()) return false; if (hasPlacement()) { - if (!getPlacement() - .equals(other.getPlacement())) return false; + if (!getPlacement().equals(other.getPlacement())) return false; } if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus() - .equals(other.getStatus())) return false; - } - if (!getStatusHistoryList() - .equals(other.getStatusHistoryList())) return false; - if (!getYarnApplicationsList() - .equals(other.getYarnApplicationsList())) return false; - if (!getDriverOutputResourceUri() - .equals(other.getDriverOutputResourceUri())) return false; - if (!getDriverControlFilesUri() - .equals(other.getDriverControlFilesUri())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getStatus().equals(other.getStatus())) return false; + } + if (!getStatusHistoryList().equals(other.getStatusHistoryList())) return false; + if (!getYarnApplicationsList().equals(other.getYarnApplicationsList())) return false; + if (!getDriverOutputResourceUri().equals(other.getDriverOutputResourceUri())) return false; + if (!getDriverControlFilesUri().equals(other.getDriverControlFilesUri())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasScheduling() != other.hasScheduling()) return false; if (hasScheduling()) { - if (!getScheduling() - .equals(other.getScheduling())) return false; + if (!getScheduling().equals(other.getScheduling())) return false; } - if (!getJobUuid() - .equals(other.getJobUuid())) return false; - if (getDone() - != other.getDone()) return false; + if (!getJobUuid().equals(other.getJobUuid())) return false; + if (getDone() != other.getDone()) return false; if (hasDriverSchedulingConfig() != other.hasDriverSchedulingConfig()) return false; if (hasDriverSchedulingConfig()) { - if (!getDriverSchedulingConfig() - .equals(other.getDriverSchedulingConfig())) return false; + if (!getDriverSchedulingConfig().equals(other.getDriverSchedulingConfig())) return false; } if (!getTypeJobCase().equals(other.getTypeJobCase())) return false; switch (typeJobCase_) { case 3: - if (!getHadoopJob() - .equals(other.getHadoopJob())) return false; + if (!getHadoopJob().equals(other.getHadoopJob())) return false; break; case 4: - if (!getSparkJob() - .equals(other.getSparkJob())) return false; + if (!getSparkJob().equals(other.getSparkJob())) return false; break; case 5: - if (!getPysparkJob() - .equals(other.getPysparkJob())) return false; + if (!getPysparkJob().equals(other.getPysparkJob())) return false; break; case 6: - if (!getHiveJob() - .equals(other.getHiveJob())) return false; + if (!getHiveJob().equals(other.getHiveJob())) return false; break; case 7: - if (!getPigJob() - .equals(other.getPigJob())) return false; + if (!getPigJob().equals(other.getPigJob())) return false; break; case 21: - if (!getSparkRJob() - .equals(other.getSparkRJob())) return false; + if (!getSparkRJob().equals(other.getSparkRJob())) return false; break; case 12: - if (!getSparkSqlJob() - .equals(other.getSparkSqlJob())) return false; + if (!getSparkSqlJob().equals(other.getSparkSqlJob())) return false; break; case 23: - if (!getPrestoJob() - .equals(other.getPrestoJob())) return false; + if (!getPrestoJob().equals(other.getPrestoJob())) return false; break; case 0: default: @@ -1392,8 +1638,7 @@ public int hashCode() { hash = (37 * hash) + JOB_UUID_FIELD_NUMBER; hash = (53 * hash) + getJobUuid().hashCode(); hash = (37 * hash) + DONE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDone()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDone()); if (hasDriverSchedulingConfig()) { hash = (37 * hash) + DRIVER_SCHEDULING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDriverSchedulingConfig().hashCode(); @@ -1439,152 +1684,155 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.Job parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.Job parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.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.dataproc.v1.Job parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.dataproc.v1.Job parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.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.dataproc.v1.Job parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.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.dataproc.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.dataproc.v1.Job parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.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.dataproc.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; } /** + * + * *
    * A Dataproc job resource.
    * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.v1.Job) com.google.cloud.dataproc.v1.JobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_Job_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_Job_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 18: 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 18: 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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.Job.class, com.google.cloud.dataproc.v1.Job.Builder.class); + com.google.cloud.dataproc.v1.Job.class, + com.google.cloud.dataproc.v1.Job.Builder.class); } // Construct using com.google.cloud.dataproc.v1.Job.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1671,9 +1919,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_Job_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_Job_descriptor; } @java.lang.Override @@ -1808,38 +2056,39 @@ public com.google.cloud.dataproc.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.dataproc.v1.Job) { - return mergeFrom((com.google.cloud.dataproc.v1.Job)other); + return mergeFrom((com.google.cloud.dataproc.v1.Job) other); } else { super.mergeFrom(other); return this; @@ -1875,9 +2124,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Job other) { statusHistoryBuilder_ = null; statusHistory_ = other.statusHistory_; bitField0_ = (bitField0_ & ~0x00000001); - statusHistoryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStatusHistoryFieldBuilder() : null; + statusHistoryBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStatusHistoryFieldBuilder() + : null; } else { statusHistoryBuilder_.addAllMessages(other.statusHistory_); } @@ -1901,9 +2151,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Job other) { yarnApplicationsBuilder_ = null; yarnApplications_ = other.yarnApplications_; bitField0_ = (bitField0_ & ~0x00000002); - yarnApplicationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getYarnApplicationsFieldBuilder() : null; + yarnApplicationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getYarnApplicationsFieldBuilder() + : null; } else { yarnApplicationsBuilder_.addAllMessages(other.yarnApplications_); } @@ -1917,8 +2168,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Job other) { driverControlFilesUri_ = other.driverControlFilesUri_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasScheduling()) { mergeScheduling(other.getScheduling()); } @@ -1933,41 +2183,50 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Job other) { mergeDriverSchedulingConfig(other.getDriverSchedulingConfig()); } switch (other.getTypeJobCase()) { - case HADOOP_JOB: { - mergeHadoopJob(other.getHadoopJob()); - break; - } - case SPARK_JOB: { - mergeSparkJob(other.getSparkJob()); - break; - } - case PYSPARK_JOB: { - mergePysparkJob(other.getPysparkJob()); - break; - } - case HIVE_JOB: { - mergeHiveJob(other.getHiveJob()); - break; - } - case PIG_JOB: { - mergePigJob(other.getPigJob()); - break; - } - case SPARK_R_JOB: { - mergeSparkRJob(other.getSparkRJob()); - break; - } - case SPARK_SQL_JOB: { - mergeSparkSqlJob(other.getSparkSqlJob()); - break; - } - case PRESTO_JOB: { - mergePrestoJob(other.getPrestoJob()); - break; - } - case TYPEJOB_NOT_SET: { - break; - } + case HADOOP_JOB: + { + mergeHadoopJob(other.getHadoopJob()); + break; + } + case SPARK_JOB: + { + mergeSparkJob(other.getSparkJob()); + break; + } + case PYSPARK_JOB: + { + mergePysparkJob(other.getPysparkJob()); + break; + } + case HIVE_JOB: + { + mergeHiveJob(other.getHiveJob()); + break; + } + case PIG_JOB: + { + mergePigJob(other.getPigJob()); + break; + } + case SPARK_R_JOB: + { + mergeSparkRJob(other.getSparkRJob()); + break; + } + case SPARK_SQL_JOB: + { + mergeSparkSqlJob(other.getSparkSqlJob()); + break; + } + case PRESTO_JOB: + { + mergePrestoJob(other.getPrestoJob()); + break; + } + case TYPEJOB_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1995,173 +2254,169 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getReferenceFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getReferenceFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getPlacementFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getHadoopJobFieldBuilder().getBuilder(), extensionRegistry); + typeJobCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getSparkJobFieldBuilder().getBuilder(), extensionRegistry); + typeJobCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getPysparkJobFieldBuilder().getBuilder(), extensionRegistry); + typeJobCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getHiveJobFieldBuilder().getBuilder(), extensionRegistry); + typeJobCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getPigJobFieldBuilder().getBuilder(), extensionRegistry); + typeJobCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 74: + { + com.google.cloud.dataproc.v1.YarnApplication m = + input.readMessage( + com.google.cloud.dataproc.v1.YarnApplication.parser(), extensionRegistry); + if (yarnApplicationsBuilder_ == null) { + ensureYarnApplicationsIsMutable(); + yarnApplications_.add(m); + } else { + yarnApplicationsBuilder_.addMessage(m); + } + break; + } // case 74 + case 98: + { + input.readMessage(getSparkSqlJobFieldBuilder().getBuilder(), extensionRegistry); + typeJobCase_ = 12; + break; + } // case 98 + case 106: + { + com.google.cloud.dataproc.v1.JobStatus m = + input.readMessage( + com.google.cloud.dataproc.v1.JobStatus.parser(), extensionRegistry); + if (statusHistoryBuilder_ == null) { + ensureStatusHistoryIsMutable(); + statusHistory_.add(m); + } else { + statusHistoryBuilder_.addMessage(m); + } + break; + } // case 106 + case 122: + { + driverControlFilesUri_ = input.readStringRequireUtf8(); + + break; + } // case 122 + case 138: + { + driverOutputResourceUri_ = input.readStringRequireUtf8(); + + break; + } // case 138 + case 146: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 146 + case 162: + { + input.readMessage(getSchedulingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 162 + case 170: + { + input.readMessage(getSparkRJobFieldBuilder().getBuilder(), extensionRegistry); + typeJobCase_ = 21; + break; + } // case 170 + case 178: + { + jobUuid_ = input.readStringRequireUtf8(); + + break; + } // case 178 + case 186: + { + input.readMessage(getPrestoJobFieldBuilder().getBuilder(), extensionRegistry); + typeJobCase_ = 23; + break; + } // case 186 + case 192: + { + done_ = input.readBool(); + + break; + } // case 192 + case 218: + { + input.readMessage( + getDriverSchedulingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 218 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } - break; - } // case 10 - case 18: { - input.readMessage( - getPlacementFieldBuilder().getBuilder(), - extensionRegistry); + private int typeJobCase_ = 0; + private java.lang.Object typeJob_; - break; - } // case 18 - case 26: { - input.readMessage( - getHadoopJobFieldBuilder().getBuilder(), - extensionRegistry); - typeJobCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getSparkJobFieldBuilder().getBuilder(), - extensionRegistry); - typeJobCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getPysparkJobFieldBuilder().getBuilder(), - extensionRegistry); - typeJobCase_ = 5; - break; - } // case 42 - case 50: { - input.readMessage( - getHiveJobFieldBuilder().getBuilder(), - extensionRegistry); - typeJobCase_ = 6; - break; - } // case 50 - case 58: { - input.readMessage( - getPigJobFieldBuilder().getBuilder(), - extensionRegistry); - typeJobCase_ = 7; - break; - } // case 58 - case 66: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 66 - case 74: { - com.google.cloud.dataproc.v1.YarnApplication m = - input.readMessage( - com.google.cloud.dataproc.v1.YarnApplication.parser(), - extensionRegistry); - if (yarnApplicationsBuilder_ == null) { - ensureYarnApplicationsIsMutable(); - yarnApplications_.add(m); - } else { - yarnApplicationsBuilder_.addMessage(m); - } - break; - } // case 74 - case 98: { - input.readMessage( - getSparkSqlJobFieldBuilder().getBuilder(), - extensionRegistry); - typeJobCase_ = 12; - break; - } // case 98 - case 106: { - com.google.cloud.dataproc.v1.JobStatus m = - input.readMessage( - com.google.cloud.dataproc.v1.JobStatus.parser(), - extensionRegistry); - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(m); - } else { - statusHistoryBuilder_.addMessage(m); - } - break; - } // case 106 - case 122: { - driverControlFilesUri_ = input.readStringRequireUtf8(); - - break; - } // case 122 - case 138: { - driverOutputResourceUri_ = input.readStringRequireUtf8(); - - break; - } // case 138 - case 146: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 146 - case 162: { - input.readMessage( - getSchedulingFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 162 - case 170: { - input.readMessage( - getSparkRJobFieldBuilder().getBuilder(), - extensionRegistry); - typeJobCase_ = 21; - break; - } // case 170 - case 178: { - jobUuid_ = input.readStringRequireUtf8(); - - break; - } // case 178 - case 186: { - input.readMessage( - getPrestoJobFieldBuilder().getBuilder(), - extensionRegistry); - typeJobCase_ = 23; - break; - } // case 186 - case 192: { - done_ = input.readBool(); - - break; - } // case 192 - case 218: { - input.readMessage( - getDriverSchedulingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 218 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int typeJobCase_ = 0; - private java.lang.Object typeJob_; - public TypeJobCase - getTypeJobCase() { - return TypeJobCase.forNumber( - typeJobCase_); - } + public TypeJobCase getTypeJobCase() { + return TypeJobCase.forNumber(typeJobCase_); + } public Builder clearTypeJob() { typeJobCase_ = 0; @@ -2174,8 +2429,13 @@ public Builder clearTypeJob() { private com.google.cloud.dataproc.v1.JobReference reference_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobReference, com.google.cloud.dataproc.v1.JobReference.Builder, com.google.cloud.dataproc.v1.JobReferenceOrBuilder> referenceBuilder_; + com.google.cloud.dataproc.v1.JobReference, + com.google.cloud.dataproc.v1.JobReference.Builder, + com.google.cloud.dataproc.v1.JobReferenceOrBuilder> + referenceBuilder_; /** + * + * *
      * Optional. The fully qualified reference to the job, which can be used to
      * obtain the equivalent REST path of the job resource. If this property
@@ -2183,13 +2443,18 @@ public Builder clearTypeJob() {
      * <code>job_id</code>.
      * 
* - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the reference field is set. */ public boolean hasReference() { return referenceBuilder_ != null || reference_ != null; } /** + * + * *
      * Optional. The fully qualified reference to the job, which can be used to
      * obtain the equivalent REST path of the job resource. If this property
@@ -2197,17 +2462,24 @@ public boolean hasReference() {
      * <code>job_id</code>.
      * 
* - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reference. */ public com.google.cloud.dataproc.v1.JobReference getReference() { if (referenceBuilder_ == null) { - return reference_ == null ? com.google.cloud.dataproc.v1.JobReference.getDefaultInstance() : reference_; + return reference_ == null + ? com.google.cloud.dataproc.v1.JobReference.getDefaultInstance() + : reference_; } else { return referenceBuilder_.getMessage(); } } /** + * + * *
      * Optional. The fully qualified reference to the job, which can be used to
      * obtain the equivalent REST path of the job resource. If this property
@@ -2215,7 +2487,9 @@ public com.google.cloud.dataproc.v1.JobReference getReference() {
      * <code>job_id</code>.
      * 
* - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReference(com.google.cloud.dataproc.v1.JobReference value) { if (referenceBuilder_ == null) { @@ -2231,6 +2505,8 @@ public Builder setReference(com.google.cloud.dataproc.v1.JobReference value) { return this; } /** + * + * *
      * Optional. The fully qualified reference to the job, which can be used to
      * obtain the equivalent REST path of the job resource. If this property
@@ -2238,10 +2514,11 @@ public Builder setReference(com.google.cloud.dataproc.v1.JobReference value) {
      * <code>job_id</code>.
      * 
* - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setReference( - com.google.cloud.dataproc.v1.JobReference.Builder builderForValue) { + public Builder setReference(com.google.cloud.dataproc.v1.JobReference.Builder builderForValue) { if (referenceBuilder_ == null) { reference_ = builderForValue.build(); onChanged(); @@ -2252,6 +2529,8 @@ public Builder setReference( return this; } /** + * + * *
      * Optional. The fully qualified reference to the job, which can be used to
      * obtain the equivalent REST path of the job resource. If this property
@@ -2259,13 +2538,17 @@ public Builder setReference(
      * <code>job_id</code>.
      * 
* - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeReference(com.google.cloud.dataproc.v1.JobReference value) { if (referenceBuilder_ == null) { if (reference_ != null) { reference_ = - com.google.cloud.dataproc.v1.JobReference.newBuilder(reference_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.JobReference.newBuilder(reference_) + .mergeFrom(value) + .buildPartial(); } else { reference_ = value; } @@ -2277,6 +2560,8 @@ public Builder mergeReference(com.google.cloud.dataproc.v1.JobReference value) { return this; } /** + * + * *
      * Optional. The fully qualified reference to the job, which can be used to
      * obtain the equivalent REST path of the job resource. If this property
@@ -2284,7 +2569,9 @@ public Builder mergeReference(com.google.cloud.dataproc.v1.JobReference value) {
      * <code>job_id</code>.
      * 
* - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReference() { if (referenceBuilder_ == null) { @@ -2298,6 +2585,8 @@ public Builder clearReference() { return this; } /** + * + * *
      * Optional. The fully qualified reference to the job, which can be used to
      * obtain the equivalent REST path of the job resource. If this property
@@ -2305,14 +2594,18 @@ public Builder clearReference() {
      * <code>job_id</code>.
      * 
* - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.JobReference.Builder getReferenceBuilder() { - + onChanged(); return getReferenceFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The fully qualified reference to the job, which can be used to
      * obtain the equivalent REST path of the job resource. If this property
@@ -2320,17 +2613,22 @@ public com.google.cloud.dataproc.v1.JobReference.Builder getReferenceBuilder() {
      * <code>job_id</code>.
      * 
* - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.JobReferenceOrBuilder getReferenceOrBuilder() { if (referenceBuilder_ != null) { return referenceBuilder_.getMessageOrBuilder(); } else { - return reference_ == null ? - com.google.cloud.dataproc.v1.JobReference.getDefaultInstance() : reference_; + return reference_ == null + ? com.google.cloud.dataproc.v1.JobReference.getDefaultInstance() + : reference_; } } /** + * + * *
      * Optional. The fully qualified reference to the job, which can be used to
      * obtain the equivalent REST path of the job resource. If this property
@@ -2338,17 +2636,22 @@ public com.google.cloud.dataproc.v1.JobReferenceOrBuilder getReferenceOrBuilder(
      * <code>job_id</code>.
      * 
* - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobReference, com.google.cloud.dataproc.v1.JobReference.Builder, com.google.cloud.dataproc.v1.JobReferenceOrBuilder> + com.google.cloud.dataproc.v1.JobReference, + com.google.cloud.dataproc.v1.JobReference.Builder, + com.google.cloud.dataproc.v1.JobReferenceOrBuilder> getReferenceFieldBuilder() { if (referenceBuilder_ == null) { - referenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobReference, com.google.cloud.dataproc.v1.JobReference.Builder, com.google.cloud.dataproc.v1.JobReferenceOrBuilder>( - getReference(), - getParentForChildren(), - isClean()); + referenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.JobReference, + com.google.cloud.dataproc.v1.JobReference.Builder, + com.google.cloud.dataproc.v1.JobReferenceOrBuilder>( + getReference(), getParentForChildren(), isClean()); reference_ = null; } return referenceBuilder_; @@ -2356,42 +2659,61 @@ public com.google.cloud.dataproc.v1.JobReferenceOrBuilder getReferenceOrBuilder( private com.google.cloud.dataproc.v1.JobPlacement placement_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobPlacement, com.google.cloud.dataproc.v1.JobPlacement.Builder, com.google.cloud.dataproc.v1.JobPlacementOrBuilder> placementBuilder_; + com.google.cloud.dataproc.v1.JobPlacement, + com.google.cloud.dataproc.v1.JobPlacement.Builder, + com.google.cloud.dataproc.v1.JobPlacementOrBuilder> + placementBuilder_; /** + * + * *
      * Required. Job information, including how, when, and where to
      * run the job.
      * 
* - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the placement field is set. */ public boolean hasPlacement() { return placementBuilder_ != null || placement_ != null; } /** + * + * *
      * Required. Job information, including how, when, and where to
      * run the job.
      * 
* - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The placement. */ public com.google.cloud.dataproc.v1.JobPlacement getPlacement() { if (placementBuilder_ == null) { - return placement_ == null ? com.google.cloud.dataproc.v1.JobPlacement.getDefaultInstance() : placement_; + return placement_ == null + ? com.google.cloud.dataproc.v1.JobPlacement.getDefaultInstance() + : placement_; } else { return placementBuilder_.getMessage(); } } /** + * + * *
      * Required. Job information, including how, when, and where to
      * run the job.
      * 
* - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPlacement(com.google.cloud.dataproc.v1.JobPlacement value) { if (placementBuilder_ == null) { @@ -2407,15 +2729,18 @@ public Builder setPlacement(com.google.cloud.dataproc.v1.JobPlacement value) { return this; } /** + * + * *
      * Required. Job information, including how, when, and where to
      * run the job.
      * 
* - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setPlacement( - com.google.cloud.dataproc.v1.JobPlacement.Builder builderForValue) { + public Builder setPlacement(com.google.cloud.dataproc.v1.JobPlacement.Builder builderForValue) { if (placementBuilder_ == null) { placement_ = builderForValue.build(); onChanged(); @@ -2426,18 +2751,24 @@ public Builder setPlacement( return this; } /** + * + * *
      * Required. Job information, including how, when, and where to
      * run the job.
      * 
* - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePlacement(com.google.cloud.dataproc.v1.JobPlacement value) { if (placementBuilder_ == null) { if (placement_ != null) { placement_ = - com.google.cloud.dataproc.v1.JobPlacement.newBuilder(placement_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.JobPlacement.newBuilder(placement_) + .mergeFrom(value) + .buildPartial(); } else { placement_ = value; } @@ -2449,12 +2780,16 @@ public Builder mergePlacement(com.google.cloud.dataproc.v1.JobPlacement value) { return this; } /** + * + * *
      * Required. Job information, including how, when, and where to
      * run the job.
      * 
* - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPlacement() { if (placementBuilder_ == null) { @@ -2468,64 +2803,88 @@ public Builder clearPlacement() { return this; } /** + * + * *
      * Required. Job information, including how, when, and where to
      * run the job.
      * 
* - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.JobPlacement.Builder getPlacementBuilder() { - + onChanged(); return getPlacementFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Job information, including how, when, and where to
      * run the job.
      * 
* - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.JobPlacementOrBuilder getPlacementOrBuilder() { if (placementBuilder_ != null) { return placementBuilder_.getMessageOrBuilder(); } else { - return placement_ == null ? - com.google.cloud.dataproc.v1.JobPlacement.getDefaultInstance() : placement_; + return placement_ == null + ? com.google.cloud.dataproc.v1.JobPlacement.getDefaultInstance() + : placement_; } } /** + * + * *
      * Required. Job information, including how, when, and where to
      * run the job.
      * 
* - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobPlacement, com.google.cloud.dataproc.v1.JobPlacement.Builder, com.google.cloud.dataproc.v1.JobPlacementOrBuilder> + com.google.cloud.dataproc.v1.JobPlacement, + com.google.cloud.dataproc.v1.JobPlacement.Builder, + com.google.cloud.dataproc.v1.JobPlacementOrBuilder> getPlacementFieldBuilder() { if (placementBuilder_ == null) { - placementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobPlacement, com.google.cloud.dataproc.v1.JobPlacement.Builder, com.google.cloud.dataproc.v1.JobPlacementOrBuilder>( - getPlacement(), - getParentForChildren(), - isClean()); + placementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.JobPlacement, + com.google.cloud.dataproc.v1.JobPlacement.Builder, + com.google.cloud.dataproc.v1.JobPlacementOrBuilder>( + getPlacement(), getParentForChildren(), isClean()); placement_ = null; } return placementBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HadoopJob, com.google.cloud.dataproc.v1.HadoopJob.Builder, com.google.cloud.dataproc.v1.HadoopJobOrBuilder> hadoopJobBuilder_; + com.google.cloud.dataproc.v1.HadoopJob, + com.google.cloud.dataproc.v1.HadoopJob.Builder, + com.google.cloud.dataproc.v1.HadoopJobOrBuilder> + hadoopJobBuilder_; /** + * + * *
      * Optional. Job is a Hadoop job.
      * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the hadoopJob field is set. */ @java.lang.Override @@ -2533,11 +2892,16 @@ public boolean hasHadoopJob() { return typeJobCase_ == 3; } /** + * + * *
      * Optional. Job is a Hadoop job.
      * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The hadoopJob. */ @java.lang.Override @@ -2555,11 +2919,15 @@ public com.google.cloud.dataproc.v1.HadoopJob getHadoopJob() { } } /** + * + * *
      * Optional. Job is a Hadoop job.
      * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { if (hadoopJobBuilder_ == null) { @@ -2575,14 +2943,17 @@ public Builder setHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { return this; } /** + * + * *
      * Optional. Job is a Hadoop job.
      * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setHadoopJob( - com.google.cloud.dataproc.v1.HadoopJob.Builder builderForValue) { + public Builder setHadoopJob(com.google.cloud.dataproc.v1.HadoopJob.Builder builderForValue) { if (hadoopJobBuilder_ == null) { typeJob_ = builderForValue.build(); onChanged(); @@ -2593,18 +2964,25 @@ public Builder setHadoopJob( return this; } /** + * + * *
      * Optional. Job is a Hadoop job.
      * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { if (hadoopJobBuilder_ == null) { - if (typeJobCase_ == 3 && - typeJob_ != com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance()) { - typeJob_ = com.google.cloud.dataproc.v1.HadoopJob.newBuilder((com.google.cloud.dataproc.v1.HadoopJob) typeJob_) - .mergeFrom(value).buildPartial(); + if (typeJobCase_ == 3 + && typeJob_ != com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance()) { + typeJob_ = + com.google.cloud.dataproc.v1.HadoopJob.newBuilder( + (com.google.cloud.dataproc.v1.HadoopJob) typeJob_) + .mergeFrom(value) + .buildPartial(); } else { typeJob_ = value; } @@ -2620,11 +2998,15 @@ public Builder mergeHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { return this; } /** + * + * *
      * Optional. Job is a Hadoop job.
      * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearHadoopJob() { if (hadoopJobBuilder_ == null) { @@ -2643,21 +3025,29 @@ public Builder clearHadoopJob() { return this; } /** + * + * *
      * Optional. Job is a Hadoop job.
      * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.HadoopJob.Builder getHadoopJobBuilder() { return getHadoopJobFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Job is a Hadoop job.
      * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder() { @@ -2671,39 +3061,57 @@ public com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder() { } } /** + * + * *
      * Optional. Job is a Hadoop job.
      * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HadoopJob, com.google.cloud.dataproc.v1.HadoopJob.Builder, com.google.cloud.dataproc.v1.HadoopJobOrBuilder> + com.google.cloud.dataproc.v1.HadoopJob, + com.google.cloud.dataproc.v1.HadoopJob.Builder, + com.google.cloud.dataproc.v1.HadoopJobOrBuilder> getHadoopJobFieldBuilder() { if (hadoopJobBuilder_ == null) { if (!(typeJobCase_ == 3)) { typeJob_ = com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); } - hadoopJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HadoopJob, com.google.cloud.dataproc.v1.HadoopJob.Builder, com.google.cloud.dataproc.v1.HadoopJobOrBuilder>( + hadoopJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.HadoopJob, + com.google.cloud.dataproc.v1.HadoopJob.Builder, + com.google.cloud.dataproc.v1.HadoopJobOrBuilder>( (com.google.cloud.dataproc.v1.HadoopJob) typeJob_, getParentForChildren(), isClean()); typeJob_ = null; } typeJobCase_ = 3; - onChanged();; + onChanged(); + ; return hadoopJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkJob, com.google.cloud.dataproc.v1.SparkJob.Builder, com.google.cloud.dataproc.v1.SparkJobOrBuilder> sparkJobBuilder_; + com.google.cloud.dataproc.v1.SparkJob, + com.google.cloud.dataproc.v1.SparkJob.Builder, + com.google.cloud.dataproc.v1.SparkJobOrBuilder> + sparkJobBuilder_; /** + * + * *
      * Optional. Job is a Spark job.
      * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkJob field is set. */ @java.lang.Override @@ -2711,11 +3119,16 @@ public boolean hasSparkJob() { return typeJobCase_ == 4; } /** + * + * *
      * Optional. Job is a Spark job.
      * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkJob. */ @java.lang.Override @@ -2733,11 +3146,15 @@ public com.google.cloud.dataproc.v1.SparkJob getSparkJob() { } } /** + * + * *
      * Optional. Job is a Spark job.
      * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { if (sparkJobBuilder_ == null) { @@ -2753,14 +3170,17 @@ public Builder setSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { return this; } /** + * + * *
      * Optional. Job is a Spark job.
      * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSparkJob( - com.google.cloud.dataproc.v1.SparkJob.Builder builderForValue) { + public Builder setSparkJob(com.google.cloud.dataproc.v1.SparkJob.Builder builderForValue) { if (sparkJobBuilder_ == null) { typeJob_ = builderForValue.build(); onChanged(); @@ -2771,18 +3191,25 @@ public Builder setSparkJob( return this; } /** + * + * *
      * Optional. Job is a Spark job.
      * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { if (sparkJobBuilder_ == null) { - if (typeJobCase_ == 4 && - typeJob_ != com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance()) { - typeJob_ = com.google.cloud.dataproc.v1.SparkJob.newBuilder((com.google.cloud.dataproc.v1.SparkJob) typeJob_) - .mergeFrom(value).buildPartial(); + if (typeJobCase_ == 4 + && typeJob_ != com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance()) { + typeJob_ = + com.google.cloud.dataproc.v1.SparkJob.newBuilder( + (com.google.cloud.dataproc.v1.SparkJob) typeJob_) + .mergeFrom(value) + .buildPartial(); } else { typeJob_ = value; } @@ -2798,11 +3225,15 @@ public Builder mergeSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { return this; } /** + * + * *
      * Optional. Job is a Spark job.
      * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSparkJob() { if (sparkJobBuilder_ == null) { @@ -2821,21 +3252,29 @@ public Builder clearSparkJob() { return this; } /** + * + * *
      * Optional. Job is a Spark job.
      * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.SparkJob.Builder getSparkJobBuilder() { return getSparkJobFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Job is a Spark job.
      * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder() { @@ -2849,39 +3288,57 @@ public com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder() { } } /** + * + * *
      * Optional. Job is a Spark job.
      * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkJob, com.google.cloud.dataproc.v1.SparkJob.Builder, com.google.cloud.dataproc.v1.SparkJobOrBuilder> + com.google.cloud.dataproc.v1.SparkJob, + com.google.cloud.dataproc.v1.SparkJob.Builder, + com.google.cloud.dataproc.v1.SparkJobOrBuilder> getSparkJobFieldBuilder() { if (sparkJobBuilder_ == null) { if (!(typeJobCase_ == 4)) { typeJob_ = com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); } - sparkJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkJob, com.google.cloud.dataproc.v1.SparkJob.Builder, com.google.cloud.dataproc.v1.SparkJobOrBuilder>( + sparkJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkJob, + com.google.cloud.dataproc.v1.SparkJob.Builder, + com.google.cloud.dataproc.v1.SparkJobOrBuilder>( (com.google.cloud.dataproc.v1.SparkJob) typeJob_, getParentForChildren(), isClean()); typeJob_ = null; } typeJobCase_ = 4; - onChanged();; + onChanged(); + ; return sparkJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkJob, com.google.cloud.dataproc.v1.PySparkJob.Builder, com.google.cloud.dataproc.v1.PySparkJobOrBuilder> pysparkJobBuilder_; + com.google.cloud.dataproc.v1.PySparkJob, + com.google.cloud.dataproc.v1.PySparkJob.Builder, + com.google.cloud.dataproc.v1.PySparkJobOrBuilder> + pysparkJobBuilder_; /** + * + * *
      * Optional. Job is a PySpark job.
      * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pysparkJob field is set. */ @java.lang.Override @@ -2889,11 +3346,16 @@ public boolean hasPysparkJob() { return typeJobCase_ == 5; } /** + * + * *
      * Optional. Job is a PySpark job.
      * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pysparkJob. */ @java.lang.Override @@ -2911,11 +3373,15 @@ public com.google.cloud.dataproc.v1.PySparkJob getPysparkJob() { } } /** + * + * *
      * Optional. Job is a PySpark job.
      * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { if (pysparkJobBuilder_ == null) { @@ -2931,14 +3397,17 @@ public Builder setPysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { return this; } /** + * + * *
      * Optional. Job is a PySpark job.
      * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPysparkJob( - com.google.cloud.dataproc.v1.PySparkJob.Builder builderForValue) { + public Builder setPysparkJob(com.google.cloud.dataproc.v1.PySparkJob.Builder builderForValue) { if (pysparkJobBuilder_ == null) { typeJob_ = builderForValue.build(); onChanged(); @@ -2949,18 +3418,25 @@ public Builder setPysparkJob( return this; } /** + * + * *
      * Optional. Job is a PySpark job.
      * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { if (pysparkJobBuilder_ == null) { - if (typeJobCase_ == 5 && - typeJob_ != com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance()) { - typeJob_ = com.google.cloud.dataproc.v1.PySparkJob.newBuilder((com.google.cloud.dataproc.v1.PySparkJob) typeJob_) - .mergeFrom(value).buildPartial(); + if (typeJobCase_ == 5 + && typeJob_ != com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance()) { + typeJob_ = + com.google.cloud.dataproc.v1.PySparkJob.newBuilder( + (com.google.cloud.dataproc.v1.PySparkJob) typeJob_) + .mergeFrom(value) + .buildPartial(); } else { typeJob_ = value; } @@ -2976,11 +3452,15 @@ public Builder mergePysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { return this; } /** + * + * *
      * Optional. Job is a PySpark job.
      * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPysparkJob() { if (pysparkJobBuilder_ == null) { @@ -2999,21 +3479,29 @@ public Builder clearPysparkJob() { return this; } /** + * + * *
      * Optional. Job is a PySpark job.
      * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.PySparkJob.Builder getPysparkJobBuilder() { return getPysparkJobFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Job is a PySpark job.
      * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder() { @@ -3027,39 +3515,57 @@ public com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder() } } /** + * + * *
      * Optional. Job is a PySpark job.
      * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkJob, com.google.cloud.dataproc.v1.PySparkJob.Builder, com.google.cloud.dataproc.v1.PySparkJobOrBuilder> + com.google.cloud.dataproc.v1.PySparkJob, + com.google.cloud.dataproc.v1.PySparkJob.Builder, + com.google.cloud.dataproc.v1.PySparkJobOrBuilder> getPysparkJobFieldBuilder() { if (pysparkJobBuilder_ == null) { if (!(typeJobCase_ == 5)) { typeJob_ = com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); } - pysparkJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkJob, com.google.cloud.dataproc.v1.PySparkJob.Builder, com.google.cloud.dataproc.v1.PySparkJobOrBuilder>( + pysparkJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PySparkJob, + com.google.cloud.dataproc.v1.PySparkJob.Builder, + com.google.cloud.dataproc.v1.PySparkJobOrBuilder>( (com.google.cloud.dataproc.v1.PySparkJob) typeJob_, getParentForChildren(), isClean()); typeJob_ = null; } typeJobCase_ = 5; - onChanged();; + onChanged(); + ; return pysparkJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HiveJob, com.google.cloud.dataproc.v1.HiveJob.Builder, com.google.cloud.dataproc.v1.HiveJobOrBuilder> hiveJobBuilder_; + com.google.cloud.dataproc.v1.HiveJob, + com.google.cloud.dataproc.v1.HiveJob.Builder, + com.google.cloud.dataproc.v1.HiveJobOrBuilder> + hiveJobBuilder_; /** + * + * *
      * Optional. Job is a Hive job.
      * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the hiveJob field is set. */ @java.lang.Override @@ -3067,11 +3573,16 @@ public boolean hasHiveJob() { return typeJobCase_ == 6; } /** + * + * *
      * Optional. Job is a Hive job.
      * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The hiveJob. */ @java.lang.Override @@ -3089,11 +3600,15 @@ public com.google.cloud.dataproc.v1.HiveJob getHiveJob() { } } /** + * + * *
      * Optional. Job is a Hive job.
      * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { if (hiveJobBuilder_ == null) { @@ -3109,14 +3624,17 @@ public Builder setHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { return this; } /** + * + * *
      * Optional. Job is a Hive job.
      * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setHiveJob( - com.google.cloud.dataproc.v1.HiveJob.Builder builderForValue) { + public Builder setHiveJob(com.google.cloud.dataproc.v1.HiveJob.Builder builderForValue) { if (hiveJobBuilder_ == null) { typeJob_ = builderForValue.build(); onChanged(); @@ -3127,18 +3645,25 @@ public Builder setHiveJob( return this; } /** + * + * *
      * Optional. Job is a Hive job.
      * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { if (hiveJobBuilder_ == null) { - if (typeJobCase_ == 6 && - typeJob_ != com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance()) { - typeJob_ = com.google.cloud.dataproc.v1.HiveJob.newBuilder((com.google.cloud.dataproc.v1.HiveJob) typeJob_) - .mergeFrom(value).buildPartial(); + if (typeJobCase_ == 6 + && typeJob_ != com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance()) { + typeJob_ = + com.google.cloud.dataproc.v1.HiveJob.newBuilder( + (com.google.cloud.dataproc.v1.HiveJob) typeJob_) + .mergeFrom(value) + .buildPartial(); } else { typeJob_ = value; } @@ -3154,11 +3679,15 @@ public Builder mergeHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { return this; } /** + * + * *
      * Optional. Job is a Hive job.
      * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearHiveJob() { if (hiveJobBuilder_ == null) { @@ -3177,21 +3706,29 @@ public Builder clearHiveJob() { return this; } /** + * + * *
      * Optional. Job is a Hive job.
      * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.HiveJob.Builder getHiveJobBuilder() { return getHiveJobFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Job is a Hive job.
      * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder() { @@ -3205,39 +3742,54 @@ public com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder() { } } /** + * + * *
      * Optional. Job is a Hive job.
      * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HiveJob, com.google.cloud.dataproc.v1.HiveJob.Builder, com.google.cloud.dataproc.v1.HiveJobOrBuilder> + com.google.cloud.dataproc.v1.HiveJob, + com.google.cloud.dataproc.v1.HiveJob.Builder, + com.google.cloud.dataproc.v1.HiveJobOrBuilder> getHiveJobFieldBuilder() { if (hiveJobBuilder_ == null) { if (!(typeJobCase_ == 6)) { typeJob_ = com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); } - hiveJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HiveJob, com.google.cloud.dataproc.v1.HiveJob.Builder, com.google.cloud.dataproc.v1.HiveJobOrBuilder>( - (com.google.cloud.dataproc.v1.HiveJob) typeJob_, - getParentForChildren(), - isClean()); + hiveJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.HiveJob, + com.google.cloud.dataproc.v1.HiveJob.Builder, + com.google.cloud.dataproc.v1.HiveJobOrBuilder>( + (com.google.cloud.dataproc.v1.HiveJob) typeJob_, getParentForChildren(), isClean()); typeJob_ = null; } typeJobCase_ = 6; - onChanged();; + onChanged(); + ; return hiveJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PigJob, com.google.cloud.dataproc.v1.PigJob.Builder, com.google.cloud.dataproc.v1.PigJobOrBuilder> pigJobBuilder_; + com.google.cloud.dataproc.v1.PigJob, + com.google.cloud.dataproc.v1.PigJob.Builder, + com.google.cloud.dataproc.v1.PigJobOrBuilder> + pigJobBuilder_; /** + * + * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pigJob field is set. */ @java.lang.Override @@ -3245,11 +3797,15 @@ public boolean hasPigJob() { return typeJobCase_ == 7; } /** + * + * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pigJob. */ @java.lang.Override @@ -3267,11 +3823,14 @@ public com.google.cloud.dataproc.v1.PigJob getPigJob() { } } /** + * + * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPigJob(com.google.cloud.dataproc.v1.PigJob value) { if (pigJobBuilder_ == null) { @@ -3287,14 +3846,16 @@ public Builder setPigJob(com.google.cloud.dataproc.v1.PigJob value) { return this; } /** + * + * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPigJob( - com.google.cloud.dataproc.v1.PigJob.Builder builderForValue) { + public Builder setPigJob(com.google.cloud.dataproc.v1.PigJob.Builder builderForValue) { if (pigJobBuilder_ == null) { typeJob_ = builderForValue.build(); onChanged(); @@ -3305,18 +3866,24 @@ public Builder setPigJob( return this; } /** + * + * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePigJob(com.google.cloud.dataproc.v1.PigJob value) { if (pigJobBuilder_ == null) { - if (typeJobCase_ == 7 && - typeJob_ != com.google.cloud.dataproc.v1.PigJob.getDefaultInstance()) { - typeJob_ = com.google.cloud.dataproc.v1.PigJob.newBuilder((com.google.cloud.dataproc.v1.PigJob) typeJob_) - .mergeFrom(value).buildPartial(); + if (typeJobCase_ == 7 + && typeJob_ != com.google.cloud.dataproc.v1.PigJob.getDefaultInstance()) { + typeJob_ = + com.google.cloud.dataproc.v1.PigJob.newBuilder( + (com.google.cloud.dataproc.v1.PigJob) typeJob_) + .mergeFrom(value) + .buildPartial(); } else { typeJob_ = value; } @@ -3332,11 +3899,14 @@ public Builder mergePigJob(com.google.cloud.dataproc.v1.PigJob value) { return this; } /** + * + * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPigJob() { if (pigJobBuilder_ == null) { @@ -3355,21 +3925,27 @@ public Builder clearPigJob() { return this; } /** + * + * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.PigJob.Builder getPigJobBuilder() { return getPigJobFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder() { @@ -3383,39 +3959,54 @@ public com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder() { } } /** + * + * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PigJob, com.google.cloud.dataproc.v1.PigJob.Builder, com.google.cloud.dataproc.v1.PigJobOrBuilder> + com.google.cloud.dataproc.v1.PigJob, + com.google.cloud.dataproc.v1.PigJob.Builder, + com.google.cloud.dataproc.v1.PigJobOrBuilder> getPigJobFieldBuilder() { if (pigJobBuilder_ == null) { if (!(typeJobCase_ == 7)) { typeJob_ = com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); } - pigJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PigJob, com.google.cloud.dataproc.v1.PigJob.Builder, com.google.cloud.dataproc.v1.PigJobOrBuilder>( - (com.google.cloud.dataproc.v1.PigJob) typeJob_, - getParentForChildren(), - isClean()); + pigJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PigJob, + com.google.cloud.dataproc.v1.PigJob.Builder, + com.google.cloud.dataproc.v1.PigJobOrBuilder>( + (com.google.cloud.dataproc.v1.PigJob) typeJob_, getParentForChildren(), isClean()); typeJob_ = null; } typeJobCase_ = 7; - onChanged();; + onChanged(); + ; return pigJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRJob, com.google.cloud.dataproc.v1.SparkRJob.Builder, com.google.cloud.dataproc.v1.SparkRJobOrBuilder> sparkRJobBuilder_; + com.google.cloud.dataproc.v1.SparkRJob, + com.google.cloud.dataproc.v1.SparkRJob.Builder, + com.google.cloud.dataproc.v1.SparkRJobOrBuilder> + sparkRJobBuilder_; /** + * + * *
      * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkRJob field is set. */ @java.lang.Override @@ -3423,11 +4014,16 @@ public boolean hasSparkRJob() { return typeJobCase_ == 21; } /** + * + * *
      * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkRJob. */ @java.lang.Override @@ -3445,11 +4041,15 @@ public com.google.cloud.dataproc.v1.SparkRJob getSparkRJob() { } } /** + * + * *
      * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { if (sparkRJobBuilder_ == null) { @@ -3465,14 +4065,17 @@ public Builder setSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { return this; } /** + * + * *
      * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSparkRJob( - com.google.cloud.dataproc.v1.SparkRJob.Builder builderForValue) { + public Builder setSparkRJob(com.google.cloud.dataproc.v1.SparkRJob.Builder builderForValue) { if (sparkRJobBuilder_ == null) { typeJob_ = builderForValue.build(); onChanged(); @@ -3483,18 +4086,25 @@ public Builder setSparkRJob( return this; } /** + * + * *
      * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { if (sparkRJobBuilder_ == null) { - if (typeJobCase_ == 21 && - typeJob_ != com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance()) { - typeJob_ = com.google.cloud.dataproc.v1.SparkRJob.newBuilder((com.google.cloud.dataproc.v1.SparkRJob) typeJob_) - .mergeFrom(value).buildPartial(); + if (typeJobCase_ == 21 + && typeJob_ != com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance()) { + typeJob_ = + com.google.cloud.dataproc.v1.SparkRJob.newBuilder( + (com.google.cloud.dataproc.v1.SparkRJob) typeJob_) + .mergeFrom(value) + .buildPartial(); } else { typeJob_ = value; } @@ -3510,11 +4120,15 @@ public Builder mergeSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { return this; } /** + * + * *
      * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSparkRJob() { if (sparkRJobBuilder_ == null) { @@ -3533,21 +4147,29 @@ public Builder clearSparkRJob() { return this; } /** + * + * *
      * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.SparkRJob.Builder getSparkRJobBuilder() { return getSparkRJobFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder() { @@ -3561,39 +4183,57 @@ public com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder() { } } /** + * + * *
      * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRJob, com.google.cloud.dataproc.v1.SparkRJob.Builder, com.google.cloud.dataproc.v1.SparkRJobOrBuilder> + com.google.cloud.dataproc.v1.SparkRJob, + com.google.cloud.dataproc.v1.SparkRJob.Builder, + com.google.cloud.dataproc.v1.SparkRJobOrBuilder> getSparkRJobFieldBuilder() { if (sparkRJobBuilder_ == null) { if (!(typeJobCase_ == 21)) { typeJob_ = com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); } - sparkRJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRJob, com.google.cloud.dataproc.v1.SparkRJob.Builder, com.google.cloud.dataproc.v1.SparkRJobOrBuilder>( + sparkRJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkRJob, + com.google.cloud.dataproc.v1.SparkRJob.Builder, + com.google.cloud.dataproc.v1.SparkRJobOrBuilder>( (com.google.cloud.dataproc.v1.SparkRJob) typeJob_, getParentForChildren(), isClean()); typeJob_ = null; } typeJobCase_ = 21; - onChanged();; + onChanged(); + ; return sparkRJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlJob, com.google.cloud.dataproc.v1.SparkSqlJob.Builder, com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> sparkSqlJobBuilder_; + com.google.cloud.dataproc.v1.SparkSqlJob, + com.google.cloud.dataproc.v1.SparkSqlJob.Builder, + com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> + sparkSqlJobBuilder_; /** + * + * *
      * Optional. Job is a SparkSql job.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkSqlJob field is set. */ @java.lang.Override @@ -3601,11 +4241,16 @@ public boolean hasSparkSqlJob() { return typeJobCase_ == 12; } /** + * + * *
      * Optional. Job is a SparkSql job.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkSqlJob. */ @java.lang.Override @@ -3623,11 +4268,15 @@ public com.google.cloud.dataproc.v1.SparkSqlJob getSparkSqlJob() { } } /** + * + * *
      * Optional. Job is a SparkSql job.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) { if (sparkSqlJobBuilder_ == null) { @@ -3643,11 +4292,15 @@ public Builder setSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) { return this; } /** + * + * *
      * Optional. Job is a SparkSql job.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSparkSqlJob( com.google.cloud.dataproc.v1.SparkSqlJob.Builder builderForValue) { @@ -3661,18 +4314,25 @@ public Builder setSparkSqlJob( return this; } /** + * + * *
      * Optional. Job is a SparkSql job.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) { if (sparkSqlJobBuilder_ == null) { - if (typeJobCase_ == 12 && - typeJob_ != com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance()) { - typeJob_ = com.google.cloud.dataproc.v1.SparkSqlJob.newBuilder((com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_) - .mergeFrom(value).buildPartial(); + if (typeJobCase_ == 12 + && typeJob_ != com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance()) { + typeJob_ = + com.google.cloud.dataproc.v1.SparkSqlJob.newBuilder( + (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_) + .mergeFrom(value) + .buildPartial(); } else { typeJob_ = value; } @@ -3688,11 +4348,15 @@ public Builder mergeSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) return this; } /** + * + * *
      * Optional. Job is a SparkSql job.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSparkSqlJob() { if (sparkSqlJobBuilder_ == null) { @@ -3711,21 +4375,29 @@ public Builder clearSparkSqlJob() { return this; } /** + * + * *
      * Optional. Job is a SparkSql job.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.SparkSqlJob.Builder getSparkSqlJobBuilder() { return getSparkSqlJobFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Job is a SparkSql job.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder() { @@ -3739,39 +4411,57 @@ public com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder } } /** + * + * *
      * Optional. Job is a SparkSql job.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlJob, com.google.cloud.dataproc.v1.SparkSqlJob.Builder, com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> + com.google.cloud.dataproc.v1.SparkSqlJob, + com.google.cloud.dataproc.v1.SparkSqlJob.Builder, + com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> getSparkSqlJobFieldBuilder() { if (sparkSqlJobBuilder_ == null) { if (!(typeJobCase_ == 12)) { typeJob_ = com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); } - sparkSqlJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlJob, com.google.cloud.dataproc.v1.SparkSqlJob.Builder, com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder>( + sparkSqlJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkSqlJob, + com.google.cloud.dataproc.v1.SparkSqlJob.Builder, + com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder>( (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_, getParentForChildren(), isClean()); typeJob_ = null; } typeJobCase_ = 12; - onChanged();; + onChanged(); + ; return sparkSqlJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PrestoJob, com.google.cloud.dataproc.v1.PrestoJob.Builder, com.google.cloud.dataproc.v1.PrestoJobOrBuilder> prestoJobBuilder_; + com.google.cloud.dataproc.v1.PrestoJob, + com.google.cloud.dataproc.v1.PrestoJob.Builder, + com.google.cloud.dataproc.v1.PrestoJobOrBuilder> + prestoJobBuilder_; /** + * + * *
      * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the prestoJob field is set. */ @java.lang.Override @@ -3779,11 +4469,16 @@ public boolean hasPrestoJob() { return typeJobCase_ == 23; } /** + * + * *
      * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The prestoJob. */ @java.lang.Override @@ -3801,11 +4496,15 @@ public com.google.cloud.dataproc.v1.PrestoJob getPrestoJob() { } } /** + * + * *
      * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { if (prestoJobBuilder_ == null) { @@ -3821,14 +4520,17 @@ public Builder setPrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { return this; } /** + * + * *
      * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPrestoJob( - com.google.cloud.dataproc.v1.PrestoJob.Builder builderForValue) { + public Builder setPrestoJob(com.google.cloud.dataproc.v1.PrestoJob.Builder builderForValue) { if (prestoJobBuilder_ == null) { typeJob_ = builderForValue.build(); onChanged(); @@ -3839,18 +4541,25 @@ public Builder setPrestoJob( return this; } /** + * + * *
      * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { if (prestoJobBuilder_ == null) { - if (typeJobCase_ == 23 && - typeJob_ != com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance()) { - typeJob_ = com.google.cloud.dataproc.v1.PrestoJob.newBuilder((com.google.cloud.dataproc.v1.PrestoJob) typeJob_) - .mergeFrom(value).buildPartial(); + if (typeJobCase_ == 23 + && typeJob_ != com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance()) { + typeJob_ = + com.google.cloud.dataproc.v1.PrestoJob.newBuilder( + (com.google.cloud.dataproc.v1.PrestoJob) typeJob_) + .mergeFrom(value) + .buildPartial(); } else { typeJob_ = value; } @@ -3866,11 +4575,15 @@ public Builder mergePrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { return this; } /** + * + * *
      * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPrestoJob() { if (prestoJobBuilder_ == null) { @@ -3889,21 +4602,29 @@ public Builder clearPrestoJob() { return this; } /** + * + * *
      * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.PrestoJob.Builder getPrestoJobBuilder() { return getPrestoJobFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder() { @@ -3917,72 +4638,101 @@ public com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder() { } } /** + * + * *
      * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PrestoJob, com.google.cloud.dataproc.v1.PrestoJob.Builder, com.google.cloud.dataproc.v1.PrestoJobOrBuilder> + com.google.cloud.dataproc.v1.PrestoJob, + com.google.cloud.dataproc.v1.PrestoJob.Builder, + com.google.cloud.dataproc.v1.PrestoJobOrBuilder> getPrestoJobFieldBuilder() { if (prestoJobBuilder_ == null) { if (!(typeJobCase_ == 23)) { typeJob_ = com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); } - prestoJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PrestoJob, com.google.cloud.dataproc.v1.PrestoJob.Builder, com.google.cloud.dataproc.v1.PrestoJobOrBuilder>( + prestoJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PrestoJob, + com.google.cloud.dataproc.v1.PrestoJob.Builder, + com.google.cloud.dataproc.v1.PrestoJobOrBuilder>( (com.google.cloud.dataproc.v1.PrestoJob) typeJob_, getParentForChildren(), isClean()); typeJob_ = null; } typeJobCase_ = 23; - onChanged();; + onChanged(); + ; return prestoJobBuilder_; } private com.google.cloud.dataproc.v1.JobStatus status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, com.google.cloud.dataproc.v1.JobStatus.Builder, com.google.cloud.dataproc.v1.JobStatusOrBuilder> statusBuilder_; + com.google.cloud.dataproc.v1.JobStatus, + com.google.cloud.dataproc.v1.JobStatus.Builder, + com.google.cloud.dataproc.v1.JobStatusOrBuilder> + statusBuilder_; /** + * + * *
      * Output only. The job status. Additional application-specific
      * status information may be contained in the <code>type_job</code>
      * and <code>yarn_applications</code> fields.
      * 
* - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** + * + * *
      * Output only. The job status. Additional application-specific
      * status information may be contained in the <code>type_job</code>
      * and <code>yarn_applications</code> fields.
      * 
* - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ public com.google.cloud.dataproc.v1.JobStatus getStatus() { if (statusBuilder_ == null) { - return status_ == null ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() + : status_; } else { return statusBuilder_.getMessage(); } } /** + * + * *
      * Output only. The job status. Additional application-specific
      * status information may be contained in the <code>type_job</code>
      * and <code>yarn_applications</code> fields.
      * 
* - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStatus(com.google.cloud.dataproc.v1.JobStatus value) { if (statusBuilder_ == null) { @@ -3998,16 +4748,19 @@ public Builder setStatus(com.google.cloud.dataproc.v1.JobStatus value) { return this; } /** + * + * *
      * Output only. The job status. Additional application-specific
      * status information may be contained in the <code>type_job</code>
      * and <code>yarn_applications</code> fields.
      * 
* - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStatus( - com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { + public Builder setStatus(com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); @@ -4018,19 +4771,25 @@ public Builder setStatus( return this; } /** + * + * *
      * Output only. The job status. Additional application-specific
      * status information may be contained in the <code>type_job</code>
      * and <code>yarn_applications</code> fields.
      * 
* - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStatus(com.google.cloud.dataproc.v1.JobStatus value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = - com.google.cloud.dataproc.v1.JobStatus.newBuilder(status_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.JobStatus.newBuilder(status_) + .mergeFrom(value) + .buildPartial(); } else { status_ = value; } @@ -4042,13 +4801,17 @@ public Builder mergeStatus(com.google.cloud.dataproc.v1.JobStatus value) { return this; } /** + * + * *
      * Output only. The job status. Additional application-specific
      * status information may be contained in the <code>type_job</code>
      * and <code>yarn_applications</code> fields.
      * 
* - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStatus() { if (statusBuilder_ == null) { @@ -4062,77 +4825,102 @@ public Builder clearStatus() { return this; } /** + * + * *
      * Output only. The job status. Additional application-specific
      * status information may be contained in the <code>type_job</code>
      * and <code>yarn_applications</code> fields.
      * 
* - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.JobStatus.Builder getStatusBuilder() { - + onChanged(); return getStatusFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The job status. Additional application-specific
      * status information may be contained in the <code>type_job</code>
      * and <code>yarn_applications</code> fields.
      * 
* - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? - com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() + : status_; } } /** + * + * *
      * Output only. The job status. Additional application-specific
      * status information may be contained in the <code>type_job</code>
      * and <code>yarn_applications</code> fields.
      * 
* - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, com.google.cloud.dataproc.v1.JobStatus.Builder, com.google.cloud.dataproc.v1.JobStatusOrBuilder> + com.google.cloud.dataproc.v1.JobStatus, + com.google.cloud.dataproc.v1.JobStatus.Builder, + com.google.cloud.dataproc.v1.JobStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, com.google.cloud.dataproc.v1.JobStatus.Builder, com.google.cloud.dataproc.v1.JobStatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.JobStatus, + com.google.cloud.dataproc.v1.JobStatus.Builder, + com.google.cloud.dataproc.v1.JobStatusOrBuilder>( + getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private java.util.List statusHistory_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStatusHistoryIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - statusHistory_ = new java.util.ArrayList(statusHistory_); + statusHistory_ = + new java.util.ArrayList(statusHistory_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, com.google.cloud.dataproc.v1.JobStatus.Builder, com.google.cloud.dataproc.v1.JobStatusOrBuilder> statusHistoryBuilder_; + com.google.cloud.dataproc.v1.JobStatus, + com.google.cloud.dataproc.v1.JobStatus.Builder, + com.google.cloud.dataproc.v1.JobStatusOrBuilder> + statusHistoryBuilder_; /** + * + * *
      * Output only. The previous job status.
      * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getStatusHistoryList() { if (statusHistoryBuilder_ == null) { @@ -4142,11 +4930,15 @@ public java.util.List getStatusHistoryLi } } /** + * + * *
      * Output only. The previous job status.
      * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getStatusHistoryCount() { if (statusHistoryBuilder_ == null) { @@ -4156,11 +4948,15 @@ public int getStatusHistoryCount() { } } /** + * + * *
      * Output only. The previous job status.
      * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.JobStatus getStatusHistory(int index) { if (statusHistoryBuilder_ == null) { @@ -4170,14 +4966,17 @@ public com.google.cloud.dataproc.v1.JobStatus getStatusHistory(int index) { } } /** + * + * *
      * Output only. The previous job status.
      * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStatusHistory( - int index, com.google.cloud.dataproc.v1.JobStatus value) { + public Builder setStatusHistory(int index, com.google.cloud.dataproc.v1.JobStatus value) { if (statusHistoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4191,11 +4990,15 @@ public Builder setStatusHistory( return this; } /** + * + * *
      * Output only. The previous job status.
      * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStatusHistory( int index, com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { @@ -4209,11 +5012,15 @@ public Builder setStatusHistory( return this; } /** + * + * *
      * Output only. The previous job status.
      * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStatusHistory(com.google.cloud.dataproc.v1.JobStatus value) { if (statusHistoryBuilder_ == null) { @@ -4229,14 +5036,17 @@ public Builder addStatusHistory(com.google.cloud.dataproc.v1.JobStatus value) { return this; } /** + * + * *
      * Output only. The previous job status.
      * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addStatusHistory( - int index, com.google.cloud.dataproc.v1.JobStatus value) { + public Builder addStatusHistory(int index, com.google.cloud.dataproc.v1.JobStatus value) { if (statusHistoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4250,11 +5060,15 @@ public Builder addStatusHistory( return this; } /** + * + * *
      * Output only. The previous job status.
      * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStatusHistory( com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { @@ -4268,11 +5082,15 @@ public Builder addStatusHistory( return this; } /** + * + * *
      * Output only. The previous job status.
      * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStatusHistory( int index, com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { @@ -4286,18 +5104,21 @@ public Builder addStatusHistory( return this; } /** + * + * *
      * Output only. The previous job status.
      * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllStatusHistory( java.lang.Iterable values) { if (statusHistoryBuilder_ == null) { ensureStatusHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, statusHistory_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statusHistory_); onChanged(); } else { statusHistoryBuilder_.addAllMessages(values); @@ -4305,11 +5126,15 @@ public Builder addAllStatusHistory( return this; } /** + * + * *
      * Output only. The previous job status.
      * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStatusHistory() { if (statusHistoryBuilder_ == null) { @@ -4322,11 +5147,15 @@ public Builder clearStatusHistory() { return this; } /** + * + * *
      * Output only. The previous job status.
      * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeStatusHistory(int index) { if (statusHistoryBuilder_ == null) { @@ -4339,39 +5168,50 @@ public Builder removeStatusHistory(int index) { return this; } /** + * + * *
      * Output only. The previous job status.
      * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.JobStatus.Builder getStatusHistoryBuilder( - int index) { + public com.google.cloud.dataproc.v1.JobStatus.Builder getStatusHistoryBuilder(int index) { return getStatusHistoryFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The previous job status.
      * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusHistoryOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusHistoryOrBuilder(int index) { if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); } else { + return statusHistory_.get(index); + } else { return statusHistoryBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The previous job status.
      * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStatusHistoryOrBuilderList() { + public java.util.List + getStatusHistoryOrBuilderList() { if (statusHistoryBuilder_ != null) { return statusHistoryBuilder_.getMessageOrBuilderList(); } else { @@ -4379,45 +5219,62 @@ public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusHistoryOrBuilder } } /** + * + * *
      * Output only. The previous job status.
      * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.JobStatus.Builder addStatusHistoryBuilder() { - return getStatusHistoryFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance()); + return getStatusHistoryFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance()); } /** + * + * *
      * Output only. The previous job status.
      * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.JobStatus.Builder addStatusHistoryBuilder( - int index) { - return getStatusHistoryFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance()); + public com.google.cloud.dataproc.v1.JobStatus.Builder addStatusHistoryBuilder(int index) { + return getStatusHistoryFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance()); } /** + * + * *
      * Output only. The previous job status.
      * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStatusHistoryBuilderList() { + public java.util.List + getStatusHistoryBuilderList() { return getStatusHistoryFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, com.google.cloud.dataproc.v1.JobStatus.Builder, com.google.cloud.dataproc.v1.JobStatusOrBuilder> + com.google.cloud.dataproc.v1.JobStatus, + com.google.cloud.dataproc.v1.JobStatus.Builder, + com.google.cloud.dataproc.v1.JobStatusOrBuilder> getStatusHistoryFieldBuilder() { if (statusHistoryBuilder_ == null) { - statusHistoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, com.google.cloud.dataproc.v1.JobStatus.Builder, com.google.cloud.dataproc.v1.JobStatusOrBuilder>( + statusHistoryBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.JobStatus, + com.google.cloud.dataproc.v1.JobStatus.Builder, + com.google.cloud.dataproc.v1.JobStatusOrBuilder>( statusHistory_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -4428,25 +5285,35 @@ public com.google.cloud.dataproc.v1.JobStatus.Builder addStatusHistoryBuilder( } private java.util.List yarnApplications_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureYarnApplicationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - yarnApplications_ = new java.util.ArrayList(yarnApplications_); + yarnApplications_ = + new java.util.ArrayList( + yarnApplications_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.YarnApplication, com.google.cloud.dataproc.v1.YarnApplication.Builder, com.google.cloud.dataproc.v1.YarnApplicationOrBuilder> yarnApplicationsBuilder_; + com.google.cloud.dataproc.v1.YarnApplication, + com.google.cloud.dataproc.v1.YarnApplication.Builder, + com.google.cloud.dataproc.v1.YarnApplicationOrBuilder> + yarnApplicationsBuilder_; /** + * + * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getYarnApplicationsList() { if (yarnApplicationsBuilder_ == null) { @@ -4456,13 +5323,17 @@ public java.util.List getYarnAppli } } /** + * + * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getYarnApplicationsCount() { if (yarnApplicationsBuilder_ == null) { @@ -4472,13 +5343,17 @@ public int getYarnApplicationsCount() { } } /** + * + * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.YarnApplication getYarnApplications(int index) { if (yarnApplicationsBuilder_ == null) { @@ -4488,13 +5363,17 @@ public com.google.cloud.dataproc.v1.YarnApplication getYarnApplications(int inde } } /** + * + * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setYarnApplications( int index, com.google.cloud.dataproc.v1.YarnApplication value) { @@ -4511,13 +5390,17 @@ public Builder setYarnApplications( return this; } /** + * + * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setYarnApplications( int index, com.google.cloud.dataproc.v1.YarnApplication.Builder builderForValue) { @@ -4531,13 +5414,17 @@ public Builder setYarnApplications( return this; } /** + * + * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addYarnApplications(com.google.cloud.dataproc.v1.YarnApplication value) { if (yarnApplicationsBuilder_ == null) { @@ -4553,13 +5440,17 @@ public Builder addYarnApplications(com.google.cloud.dataproc.v1.YarnApplication return this; } /** + * + * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addYarnApplications( int index, com.google.cloud.dataproc.v1.YarnApplication value) { @@ -4576,13 +5467,17 @@ public Builder addYarnApplications( return this; } /** + * + * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addYarnApplications( com.google.cloud.dataproc.v1.YarnApplication.Builder builderForValue) { @@ -4596,13 +5491,17 @@ public Builder addYarnApplications( return this; } /** + * + * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addYarnApplications( int index, com.google.cloud.dataproc.v1.YarnApplication.Builder builderForValue) { @@ -4616,20 +5515,23 @@ public Builder addYarnApplications( return this; } /** + * + * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllYarnApplications( java.lang.Iterable values) { if (yarnApplicationsBuilder_ == null) { ensureYarnApplicationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, yarnApplications_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, yarnApplications_); onChanged(); } else { yarnApplicationsBuilder_.addAllMessages(values); @@ -4637,13 +5539,17 @@ public Builder addAllYarnApplications( return this; } /** + * + * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearYarnApplications() { if (yarnApplicationsBuilder_ == null) { @@ -4656,13 +5562,17 @@ public Builder clearYarnApplications() { return this; } /** + * + * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeYarnApplications(int index) { if (yarnApplicationsBuilder_ == null) { @@ -4675,45 +5585,58 @@ public Builder removeYarnApplications(int index) { return this; } /** + * + * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.YarnApplication.Builder getYarnApplicationsBuilder( int index) { return getYarnApplicationsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplicationsOrBuilder( int index) { if (yarnApplicationsBuilder_ == null) { - return yarnApplications_.get(index); } else { + return yarnApplications_.get(index); + } else { return yarnApplicationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getYarnApplicationsOrBuilderList() { + public java.util.List + getYarnApplicationsOrBuilderList() { if (yarnApplicationsBuilder_ != null) { return yarnApplicationsBuilder_.getMessageOrBuilderList(); } else { @@ -4721,51 +5644,69 @@ public com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplications } } /** + * + * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.YarnApplication.Builder addYarnApplicationsBuilder() { - return getYarnApplicationsFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.YarnApplication.getDefaultInstance()); + return getYarnApplicationsFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.YarnApplication.getDefaultInstance()); } /** + * + * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.YarnApplication.Builder addYarnApplicationsBuilder( int index) { - return getYarnApplicationsFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.YarnApplication.getDefaultInstance()); + return getYarnApplicationsFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.YarnApplication.getDefaultInstance()); } /** + * + * *
      * Output only. The collection of YARN applications spun up by this job.
      * **Beta** Feature: This report is available for testing purposes only. It
      * may be changed before final release.
      * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getYarnApplicationsBuilderList() { + public java.util.List + getYarnApplicationsBuilderList() { return getYarnApplicationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.YarnApplication, com.google.cloud.dataproc.v1.YarnApplication.Builder, com.google.cloud.dataproc.v1.YarnApplicationOrBuilder> + com.google.cloud.dataproc.v1.YarnApplication, + com.google.cloud.dataproc.v1.YarnApplication.Builder, + com.google.cloud.dataproc.v1.YarnApplicationOrBuilder> getYarnApplicationsFieldBuilder() { if (yarnApplicationsBuilder_ == null) { - yarnApplicationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.YarnApplication, com.google.cloud.dataproc.v1.YarnApplication.Builder, com.google.cloud.dataproc.v1.YarnApplicationOrBuilder>( + yarnApplicationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.YarnApplication, + com.google.cloud.dataproc.v1.YarnApplication.Builder, + com.google.cloud.dataproc.v1.YarnApplicationOrBuilder>( yarnApplications_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -4777,19 +5718,22 @@ public com.google.cloud.dataproc.v1.YarnApplication.Builder addYarnApplicationsB private java.lang.Object driverOutputResourceUri_ = ""; /** + * + * *
      * Output only. A URI pointing to the location of the stdout of the job's
      * driver program.
      * 
* - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The driverOutputResourceUri. */ public java.lang.String getDriverOutputResourceUri() { java.lang.Object ref = driverOutputResourceUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); driverOutputResourceUri_ = s; return s; @@ -4798,21 +5742,23 @@ public java.lang.String getDriverOutputResourceUri() { } } /** + * + * *
      * Output only. A URI pointing to the location of the stdout of the job's
      * driver program.
      * 
* - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for driverOutputResourceUri. */ - public com.google.protobuf.ByteString - getDriverOutputResourceUriBytes() { + public com.google.protobuf.ByteString getDriverOutputResourceUriBytes() { java.lang.Object ref = driverOutputResourceUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); driverOutputResourceUri_ = b; return b; } else { @@ -4820,57 +5766,67 @@ public java.lang.String getDriverOutputResourceUri() { } } /** + * + * *
      * Output only. A URI pointing to the location of the stdout of the job's
      * driver program.
      * 
* - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The driverOutputResourceUri to set. * @return This builder for chaining. */ - public Builder setDriverOutputResourceUri( - java.lang.String value) { + public Builder setDriverOutputResourceUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + driverOutputResourceUri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A URI pointing to the location of the stdout of the job's
      * driver program.
      * 
* - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearDriverOutputResourceUri() { - + driverOutputResourceUri_ = getDefaultInstance().getDriverOutputResourceUri(); onChanged(); return this; } /** + * + * *
      * Output only. A URI pointing to the location of the stdout of the job's
      * driver program.
      * 
* - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes for driverOutputResourceUri to set. * @return This builder for chaining. */ - public Builder setDriverOutputResourceUriBytes( - com.google.protobuf.ByteString value) { + public Builder setDriverOutputResourceUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + driverOutputResourceUri_ = value; onChanged(); return this; @@ -4878,20 +5834,23 @@ public Builder setDriverOutputResourceUriBytes( private java.lang.Object driverControlFilesUri_ = ""; /** + * + * *
      * Output only. If present, the location of miscellaneous control files
      * which may be used as part of job setup and handling. If not present,
      * control files may be placed in the same location as `driver_output_uri`.
      * 
* - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The driverControlFilesUri. */ public java.lang.String getDriverControlFilesUri() { java.lang.Object ref = driverControlFilesUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); driverControlFilesUri_ = s; return s; @@ -4900,22 +5859,24 @@ public java.lang.String getDriverControlFilesUri() { } } /** + * + * *
      * Output only. If present, the location of miscellaneous control files
      * which may be used as part of job setup and handling. If not present,
      * control files may be placed in the same location as `driver_output_uri`.
      * 
* - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for driverControlFilesUri. */ - public com.google.protobuf.ByteString - getDriverControlFilesUriBytes() { + public com.google.protobuf.ByteString getDriverControlFilesUriBytes() { java.lang.Object ref = driverControlFilesUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); driverControlFilesUri_ = b; return b; } else { @@ -4923,81 +5884,90 @@ public java.lang.String getDriverControlFilesUri() { } } /** + * + * *
      * Output only. If present, the location of miscellaneous control files
      * which may be used as part of job setup and handling. If not present,
      * control files may be placed in the same location as `driver_output_uri`.
      * 
* - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The driverControlFilesUri to set. * @return This builder for chaining. */ - public Builder setDriverControlFilesUri( - java.lang.String value) { + public Builder setDriverControlFilesUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + driverControlFilesUri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. If present, the location of miscellaneous control files
      * which may be used as part of job setup and handling. If not present,
      * control files may be placed in the same location as `driver_output_uri`.
      * 
* - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearDriverControlFilesUri() { - + driverControlFilesUri_ = getDefaultInstance().getDriverControlFilesUri(); onChanged(); return this; } /** + * + * *
      * Output only. If present, the location of miscellaneous control files
      * which may be used as part of job setup and handling. If not present,
      * control files may be placed in the same location as `driver_output_uri`.
      * 
* - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes for driverControlFilesUri to set. * @return This builder for chaining. */ - public Builder setDriverControlFilesUriBytes( - com.google.protobuf.ByteString value) { + public Builder setDriverControlFilesUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + driverControlFilesUri_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -5009,6 +5979,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels to associate with this job.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -5021,22 +5993,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-
     @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();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this job.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -5050,11 +6022,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this job.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -5068,16 +6041,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this job.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -5091,12 +6065,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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();
       }
@@ -5104,11 +6077,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this job.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -5121,23 +6095,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    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();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this job.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -5150,19 +6122,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this job.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -5175,49 +6148,65 @@ public Builder putLabels(
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    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.dataproc.v1.JobScheduling scheduling_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.dataproc.v1.JobScheduling, com.google.cloud.dataproc.v1.JobScheduling.Builder, com.google.cloud.dataproc.v1.JobSchedulingOrBuilder> schedulingBuilder_;
+            com.google.cloud.dataproc.v1.JobScheduling,
+            com.google.cloud.dataproc.v1.JobScheduling.Builder,
+            com.google.cloud.dataproc.v1.JobSchedulingOrBuilder>
+        schedulingBuilder_;
     /**
+     *
+     *
      * 
      * Optional. Job scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the scheduling field is set. */ public boolean hasScheduling() { return schedulingBuilder_ != null || scheduling_ != null; } /** + * + * *
      * Optional. Job scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The scheduling. */ public com.google.cloud.dataproc.v1.JobScheduling getScheduling() { if (schedulingBuilder_ == null) { - return scheduling_ == null ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() : scheduling_; + return scheduling_ == null + ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() + : scheduling_; } else { return schedulingBuilder_.getMessage(); } } /** + * + * *
      * Optional. Job scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setScheduling(com.google.cloud.dataproc.v1.JobScheduling value) { if (schedulingBuilder_ == null) { @@ -5233,11 +6222,15 @@ public Builder setScheduling(com.google.cloud.dataproc.v1.JobScheduling value) { return this; } /** + * + * *
      * Optional. Job scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setScheduling( com.google.cloud.dataproc.v1.JobScheduling.Builder builderForValue) { @@ -5251,17 +6244,23 @@ public Builder setScheduling( return this; } /** + * + * *
      * Optional. Job scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeScheduling(com.google.cloud.dataproc.v1.JobScheduling value) { if (schedulingBuilder_ == null) { if (scheduling_ != null) { scheduling_ = - com.google.cloud.dataproc.v1.JobScheduling.newBuilder(scheduling_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.JobScheduling.newBuilder(scheduling_) + .mergeFrom(value) + .buildPartial(); } else { scheduling_ = value; } @@ -5273,11 +6272,15 @@ public Builder mergeScheduling(com.google.cloud.dataproc.v1.JobScheduling value) return this; } /** + * + * *
      * Optional. Job scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearScheduling() { if (schedulingBuilder_ == null) { @@ -5291,48 +6294,64 @@ public Builder clearScheduling() { return this; } /** + * + * *
      * Optional. Job scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.JobScheduling.Builder getSchedulingBuilder() { - + onChanged(); return getSchedulingFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Job scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilder() { if (schedulingBuilder_ != null) { return schedulingBuilder_.getMessageOrBuilder(); } else { - return scheduling_ == null ? - com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() : scheduling_; + return scheduling_ == null + ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() + : scheduling_; } } /** + * + * *
      * Optional. Job scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobScheduling, com.google.cloud.dataproc.v1.JobScheduling.Builder, com.google.cloud.dataproc.v1.JobSchedulingOrBuilder> + com.google.cloud.dataproc.v1.JobScheduling, + com.google.cloud.dataproc.v1.JobScheduling.Builder, + com.google.cloud.dataproc.v1.JobSchedulingOrBuilder> getSchedulingFieldBuilder() { if (schedulingBuilder_ == null) { - schedulingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobScheduling, com.google.cloud.dataproc.v1.JobScheduling.Builder, com.google.cloud.dataproc.v1.JobSchedulingOrBuilder>( - getScheduling(), - getParentForChildren(), - isClean()); + schedulingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.JobScheduling, + com.google.cloud.dataproc.v1.JobScheduling.Builder, + com.google.cloud.dataproc.v1.JobSchedulingOrBuilder>( + getScheduling(), getParentForChildren(), isClean()); scheduling_ = null; } return schedulingBuilder_; @@ -5340,6 +6359,8 @@ public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilde private java.lang.Object jobUuid_ = ""; /** + * + * *
      * Output only. A UUID that uniquely identifies a job within the project
      * over time. This is in contrast to a user-settable reference.job_id that
@@ -5347,13 +6368,13 @@ public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilde
      * 
* * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The jobUuid. */ public java.lang.String getJobUuid() { java.lang.Object ref = jobUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobUuid_ = s; return s; @@ -5362,6 +6383,8 @@ public java.lang.String getJobUuid() { } } /** + * + * *
      * Output only. A UUID that uniquely identifies a job within the project
      * over time. This is in contrast to a user-settable reference.job_id that
@@ -5369,15 +6392,14 @@ public java.lang.String getJobUuid() {
      * 
* * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for jobUuid. */ - public com.google.protobuf.ByteString - getJobUuidBytes() { + public com.google.protobuf.ByteString getJobUuidBytes() { java.lang.Object ref = jobUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobUuid_ = b; return b; } else { @@ -5385,6 +6407,8 @@ public java.lang.String getJobUuid() { } } /** + * + * *
      * Output only. A UUID that uniquely identifies a job within the project
      * over time. This is in contrast to a user-settable reference.job_id that
@@ -5392,20 +6416,22 @@ public java.lang.String getJobUuid() {
      * 
* * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The jobUuid to set. * @return This builder for chaining. */ - public Builder setJobUuid( - java.lang.String value) { + public Builder setJobUuid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobUuid_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A UUID that uniquely identifies a job within the project
      * over time. This is in contrast to a user-settable reference.job_id that
@@ -5413,15 +6439,18 @@ public Builder setJobUuid(
      * 
* * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearJobUuid() { - + jobUuid_ = getDefaultInstance().getJobUuid(); onChanged(); return this; } /** + * + * *
      * Output only. A UUID that uniquely identifies a job within the project
      * over time. This is in contrast to a user-settable reference.job_id that
@@ -5429,23 +6458,25 @@ public Builder clearJobUuid() {
      * 
* * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for jobUuid to set. * @return This builder for chaining. */ - public Builder setJobUuidBytes( - com.google.protobuf.ByteString value) { + public Builder setJobUuidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobUuid_ = value; onChanged(); return this; } - private boolean done_ ; + private boolean done_; /** + * + * *
      * Output only. Indicates whether the job is completed. If the value is
      * `false`, the job is still in progress. If `true`, the job is completed, and
@@ -5454,6 +6485,7 @@ public Builder setJobUuidBytes(
      * 
* * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The done. */ @java.lang.Override @@ -5461,6 +6493,8 @@ public boolean getDone() { return done_; } /** + * + * *
      * Output only. Indicates whether the job is completed. If the value is
      * `false`, the job is still in progress. If `true`, the job is completed, and
@@ -5469,16 +6503,19 @@ public boolean getDone() {
      * 
* * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The done to set. * @return This builder for chaining. */ public Builder setDone(boolean value) { - + done_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Indicates whether the job is completed. If the value is
      * `false`, the job is still in progress. If `true`, the job is completed, and
@@ -5487,10 +6524,11 @@ public Builder setDone(boolean value) {
      * 
* * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDone() { - + done_ = false; onChanged(); return this; @@ -5498,41 +6536,61 @@ public Builder clearDone() { private com.google.cloud.dataproc.v1.DriverSchedulingConfig driverSchedulingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DriverSchedulingConfig, com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder, com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder> driverSchedulingConfigBuilder_; + com.google.cloud.dataproc.v1.DriverSchedulingConfig, + com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder, + com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder> + driverSchedulingConfigBuilder_; /** + * + * *
      * Optional. Driver scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the driverSchedulingConfig field is set. */ public boolean hasDriverSchedulingConfig() { return driverSchedulingConfigBuilder_ != null || driverSchedulingConfig_ != null; } /** + * + * *
      * Optional. Driver scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The driverSchedulingConfig. */ public com.google.cloud.dataproc.v1.DriverSchedulingConfig getDriverSchedulingConfig() { if (driverSchedulingConfigBuilder_ == null) { - return driverSchedulingConfig_ == null ? com.google.cloud.dataproc.v1.DriverSchedulingConfig.getDefaultInstance() : driverSchedulingConfig_; + return driverSchedulingConfig_ == null + ? com.google.cloud.dataproc.v1.DriverSchedulingConfig.getDefaultInstance() + : driverSchedulingConfig_; } else { return driverSchedulingConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Driver scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDriverSchedulingConfig(com.google.cloud.dataproc.v1.DriverSchedulingConfig value) { + public Builder setDriverSchedulingConfig( + com.google.cloud.dataproc.v1.DriverSchedulingConfig value) { if (driverSchedulingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5546,11 +6604,15 @@ public Builder setDriverSchedulingConfig(com.google.cloud.dataproc.v1.DriverSche return this; } /** + * + * *
      * Optional. Driver scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDriverSchedulingConfig( com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder builderForValue) { @@ -5564,17 +6626,25 @@ public Builder setDriverSchedulingConfig( return this; } /** + * + * *
      * Optional. Driver scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeDriverSchedulingConfig(com.google.cloud.dataproc.v1.DriverSchedulingConfig value) { + public Builder mergeDriverSchedulingConfig( + com.google.cloud.dataproc.v1.DriverSchedulingConfig value) { if (driverSchedulingConfigBuilder_ == null) { if (driverSchedulingConfig_ != null) { driverSchedulingConfig_ = - com.google.cloud.dataproc.v1.DriverSchedulingConfig.newBuilder(driverSchedulingConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.DriverSchedulingConfig.newBuilder( + driverSchedulingConfig_) + .mergeFrom(value) + .buildPartial(); } else { driverSchedulingConfig_ = value; } @@ -5586,11 +6656,15 @@ public Builder mergeDriverSchedulingConfig(com.google.cloud.dataproc.v1.DriverSc return this; } /** + * + * *
      * Optional. Driver scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearDriverSchedulingConfig() { if (driverSchedulingConfigBuilder_ == null) { @@ -5604,55 +6678,73 @@ public Builder clearDriverSchedulingConfig() { return this; } /** + * + * *
      * Optional. Driver scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder getDriverSchedulingConfigBuilder() { - + public com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder + getDriverSchedulingConfigBuilder() { + onChanged(); return getDriverSchedulingConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Driver scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder getDriverSchedulingConfigOrBuilder() { + public com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder + getDriverSchedulingConfigOrBuilder() { if (driverSchedulingConfigBuilder_ != null) { return driverSchedulingConfigBuilder_.getMessageOrBuilder(); } else { - return driverSchedulingConfig_ == null ? - com.google.cloud.dataproc.v1.DriverSchedulingConfig.getDefaultInstance() : driverSchedulingConfig_; + return driverSchedulingConfig_ == null + ? com.google.cloud.dataproc.v1.DriverSchedulingConfig.getDefaultInstance() + : driverSchedulingConfig_; } } /** + * + * *
      * Optional. Driver scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DriverSchedulingConfig, com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder, com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder> + com.google.cloud.dataproc.v1.DriverSchedulingConfig, + com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder, + com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder> getDriverSchedulingConfigFieldBuilder() { if (driverSchedulingConfigBuilder_ == null) { - driverSchedulingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DriverSchedulingConfig, com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder, com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder>( - getDriverSchedulingConfig(), - getParentForChildren(), - isClean()); + driverSchedulingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.DriverSchedulingConfig, + com.google.cloud.dataproc.v1.DriverSchedulingConfig.Builder, + com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder>( + getDriverSchedulingConfig(), getParentForChildren(), isClean()); driverSchedulingConfig_ = null; } return driverSchedulingConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5662,12 +6754,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.Job) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Job) private static final com.google.cloud.dataproc.v1.Job DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.Job(); } @@ -5676,27 +6768,27 @@ public static com.google.cloud.dataproc.v1.Job getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Job parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Job parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5711,6 +6803,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.Job getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java similarity index 66% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java index a7919bd6234c..d3ca8880b7c9 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Job Operation metadata.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.JobMetadata} */ -public final class JobMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class JobMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.JobMetadata) JobMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use JobMetadata.newBuilder() to construct. private JobMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private JobMetadata() { jobId_ = ""; operationType_ = ""; @@ -26,37 +44,41 @@ private JobMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new JobMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobMetadata.class, com.google.cloud.dataproc.v1.JobMetadata.Builder.class); + com.google.cloud.dataproc.v1.JobMetadata.class, + com.google.cloud.dataproc.v1.JobMetadata.Builder.class); } public static final int JOB_ID_FIELD_NUMBER = 1; private volatile java.lang.Object jobId_; /** + * + * *
    * Output only. The job id.
    * 
* * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The jobId. */ @java.lang.Override @@ -65,29 +87,29 @@ 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; } } /** + * + * *
    * Output only. The job id.
    * 
* * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -98,11 +120,16 @@ public java.lang.String getJobId() { public static final int STATUS_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.JobStatus status_; /** + * + * *
    * Output only. Most recent job status.
    * 
* - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the status field is set. */ @java.lang.Override @@ -110,11 +137,16 @@ public boolean hasStatus() { return status_ != null; } /** + * + * *
    * Output only. Most recent job status.
    * 
* - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ @java.lang.Override @@ -122,11 +154,15 @@ public com.google.cloud.dataproc.v1.JobStatus getStatus() { return status_ == null ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() : status_; } /** + * + * *
    * Output only. Most recent job status.
    * 
* - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder() { @@ -136,11 +172,14 @@ public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder() { public static final int OPERATION_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object operationType_; /** + * + * *
    * Output only. Operation type.
    * 
* * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The operationType. */ @java.lang.Override @@ -149,29 +188,29 @@ public java.lang.String getOperationType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationType_ = s; return s; } } /** + * + * *
    * Output only. Operation type.
    * 
* * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for operationType. */ @java.lang.Override - public com.google.protobuf.ByteString - getOperationTypeBytes() { + public com.google.protobuf.ByteString getOperationTypeBytes() { java.lang.Object ref = operationType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operationType_ = b; return b; } else { @@ -182,11 +221,15 @@ public java.lang.String getOperationType() { public static final int START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Output only. Job submission time.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -194,11 +237,15 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Output only. Job submission time.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ @java.lang.Override @@ -206,11 +253,14 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Output only. Job submission time.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -218,6 +268,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +280,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jobId_); } @@ -256,15 +306,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jobId_); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationType_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -274,26 +322,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.dataproc.v1.JobMetadata)) { return super.equals(obj); } com.google.cloud.dataproc.v1.JobMetadata other = (com.google.cloud.dataproc.v1.JobMetadata) obj; - if (!getJobId() - .equals(other.getJobId())) return false; + if (!getJobId().equals(other.getJobId())) 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 (!getOperationType() - .equals(other.getOperationType())) return false; + if (!getOperationType().equals(other.getOperationType())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -323,130 +367,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.JobMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.JobMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.JobMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.JobMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.JobMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.JobMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Operation metadata.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.JobMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.JobMetadata) com.google.cloud.dataproc.v1.JobMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobMetadata.class, com.google.cloud.dataproc.v1.JobMetadata.Builder.class); + com.google.cloud.dataproc.v1.JobMetadata.class, + com.google.cloud.dataproc.v1.JobMetadata.Builder.class); } // Construct using com.google.cloud.dataproc.v1.JobMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -470,9 +520,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; } @java.lang.Override @@ -491,7 +541,8 @@ public com.google.cloud.dataproc.v1.JobMetadata build() { @java.lang.Override public com.google.cloud.dataproc.v1.JobMetadata buildPartial() { - com.google.cloud.dataproc.v1.JobMetadata result = new com.google.cloud.dataproc.v1.JobMetadata(this); + com.google.cloud.dataproc.v1.JobMetadata result = + new com.google.cloud.dataproc.v1.JobMetadata(this); result.jobId_ = jobId_; if (statusBuilder_ == null) { result.status_ = status_; @@ -512,38 +563,39 @@ public com.google.cloud.dataproc.v1.JobMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.JobMetadata) { - return mergeFrom((com.google.cloud.dataproc.v1.JobMetadata)other); + return mergeFrom((com.google.cloud.dataproc.v1.JobMetadata) other); } else { super.mergeFrom(other); return this; @@ -592,36 +644,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - jobId_ = input.readStringRequireUtf8(); + case 10: + { + jobId_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - operationType_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + operationType_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 26 + case 34: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -634,18 +687,20 @@ public Builder mergeFrom( private java.lang.Object jobId_ = ""; /** + * + * *
      * Output only. The job id.
      * 
* * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -654,20 +709,21 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Output only. The job id.
      * 
* * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -675,54 +731,61 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Output only. The job id.
      * 
* * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; } /** + * + * *
      * Output only. The job id.
      * 
* * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearJobId() { - + jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** + * + * *
      * Output only. The job id.
      * 
* * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -730,39 +793,58 @@ public Builder setJobIdBytes( private com.google.cloud.dataproc.v1.JobStatus status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, com.google.cloud.dataproc.v1.JobStatus.Builder, com.google.cloud.dataproc.v1.JobStatusOrBuilder> statusBuilder_; + com.google.cloud.dataproc.v1.JobStatus, + com.google.cloud.dataproc.v1.JobStatus.Builder, + com.google.cloud.dataproc.v1.JobStatusOrBuilder> + statusBuilder_; /** + * + * *
      * Output only. Most recent job status.
      * 
* - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** + * + * *
      * Output only. Most recent job status.
      * 
* - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ public com.google.cloud.dataproc.v1.JobStatus getStatus() { if (statusBuilder_ == null) { - return status_ == null ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() + : status_; } else { return statusBuilder_.getMessage(); } } /** + * + * *
      * Output only. Most recent job status.
      * 
* - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStatus(com.google.cloud.dataproc.v1.JobStatus value) { if (statusBuilder_ == null) { @@ -778,14 +860,17 @@ public Builder setStatus(com.google.cloud.dataproc.v1.JobStatus value) { return this; } /** + * + * *
      * Output only. Most recent job status.
      * 
* - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStatus( - com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { + public Builder setStatus(com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); @@ -796,17 +881,23 @@ public Builder setStatus( return this; } /** + * + * *
      * Output only. Most recent job status.
      * 
* - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStatus(com.google.cloud.dataproc.v1.JobStatus value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = - com.google.cloud.dataproc.v1.JobStatus.newBuilder(status_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.JobStatus.newBuilder(status_) + .mergeFrom(value) + .buildPartial(); } else { status_ = value; } @@ -818,11 +909,15 @@ public Builder mergeStatus(com.google.cloud.dataproc.v1.JobStatus value) { return this; } /** + * + * *
      * Output only. Most recent job status.
      * 
* - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStatus() { if (statusBuilder_ == null) { @@ -836,48 +931,64 @@ public Builder clearStatus() { return this; } /** + * + * *
      * Output only. Most recent job status.
      * 
* - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.JobStatus.Builder getStatusBuilder() { - + onChanged(); return getStatusFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Most recent job status.
      * 
* - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? - com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() + : status_; } } /** + * + * *
      * Output only. Most recent job status.
      * 
* - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, com.google.cloud.dataproc.v1.JobStatus.Builder, com.google.cloud.dataproc.v1.JobStatusOrBuilder> + com.google.cloud.dataproc.v1.JobStatus, + com.google.cloud.dataproc.v1.JobStatus.Builder, + com.google.cloud.dataproc.v1.JobStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, com.google.cloud.dataproc.v1.JobStatus.Builder, com.google.cloud.dataproc.v1.JobStatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.JobStatus, + com.google.cloud.dataproc.v1.JobStatus.Builder, + com.google.cloud.dataproc.v1.JobStatusOrBuilder>( + getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; @@ -885,18 +996,20 @@ public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder() { private java.lang.Object operationType_ = ""; /** + * + * *
      * Output only. Operation type.
      * 
* * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The operationType. */ public java.lang.String getOperationType() { java.lang.Object ref = operationType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationType_ = s; return s; @@ -905,20 +1018,21 @@ public java.lang.String getOperationType() { } } /** + * + * *
      * Output only. Operation type.
      * 
* * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for operationType. */ - public com.google.protobuf.ByteString - getOperationTypeBytes() { + public com.google.protobuf.ByteString getOperationTypeBytes() { java.lang.Object ref = operationType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operationType_ = b; return b; } else { @@ -926,54 +1040,61 @@ public java.lang.String getOperationType() { } } /** + * + * *
      * Output only. Operation type.
      * 
* * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The operationType to set. * @return This builder for chaining. */ - public Builder setOperationType( - java.lang.String value) { + public Builder setOperationType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + operationType_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Operation type.
      * 
* * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearOperationType() { - + operationType_ = getDefaultInstance().getOperationType(); onChanged(); return this; } /** + * + * *
      * Output only. Operation type.
      * 
* * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for operationType to set. * @return This builder for chaining. */ - public Builder setOperationTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setOperationTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationType_ = value; onChanged(); return this; @@ -981,24 +1102,35 @@ public Builder setOperationTypeBytes( private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Output only. Job submission time.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Output only. Job submission time.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1009,11 +1141,14 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Output only. Job submission time.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -1029,14 +1164,16 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Job submission time.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -1047,17 +1184,20 @@ public Builder setStartTime( return this; } /** + * + * *
      * Output only. Job submission time.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -1069,11 +1209,14 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Job submission time.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -1087,55 +1230,66 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Output only. Job submission time.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Job submission time.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * Output only. Job submission time.
      * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1145,12 +1299,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.JobMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobMetadata) private static final com.google.cloud.dataproc.v1.JobMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.JobMetadata(); } @@ -1159,27 +1313,27 @@ public static com.google.cloud.dataproc.v1.JobMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1194,6 +1348,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.JobMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java similarity index 61% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java index 27a55df8fee0..f1343e20fe2b 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java @@ -1,103 +1,154 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface JobMetadataOrBuilder extends +public interface JobMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.JobMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The job id.
    * 
* * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The jobId. */ java.lang.String getJobId(); /** + * + * *
    * Output only. The job id.
    * 
* * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for jobId. */ - com.google.protobuf.ByteString - getJobIdBytes(); + com.google.protobuf.ByteString getJobIdBytes(); /** + * + * *
    * Output only. Most recent job status.
    * 
* - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the status field is set. */ boolean hasStatus(); /** + * + * *
    * Output only. Most recent job status.
    * 
* - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ com.google.cloud.dataproc.v1.JobStatus getStatus(); /** + * + * *
    * Output only. Most recent job status.
    * 
* - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder(); /** + * + * *
    * Output only. Operation type.
    * 
* * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The operationType. */ java.lang.String getOperationType(); /** + * + * *
    * Output only. Operation type.
    * 
* * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for operationType. */ - com.google.protobuf.ByteString - getOperationTypeBytes(); + com.google.protobuf.ByteString getOperationTypeBytes(); /** + * + * *
    * Output only. Job submission time.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Output only. Job submission time.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Output only. Job submission time.
    * 
* - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java index 5f33ee499e73..49bb1aa6ec2e 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface JobOrBuilder extends +public interface JobOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.Job) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The fully qualified reference to the job, which can be used to
    * obtain the equivalent REST path of the job resource. If this property
@@ -15,11 +33,16 @@ public interface JobOrBuilder extends
    * <code>job_id</code>.
    * 
* - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the reference field is set. */ boolean hasReference(); /** + * + * *
    * Optional. The fully qualified reference to the job, which can be used to
    * obtain the equivalent REST path of the job resource. If this property
@@ -27,11 +50,16 @@ public interface JobOrBuilder extends
    * <code>job_id</code>.
    * 
* - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reference. */ com.google.cloud.dataproc.v1.JobReference getReference(); /** + * + * *
    * Optional. The fully qualified reference to the job, which can be used to
    * obtain the equivalent REST path of the job resource. If this property
@@ -39,410 +67,591 @@ public interface JobOrBuilder extends
    * <code>job_id</code>.
    * 
* - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.JobReferenceOrBuilder getReferenceOrBuilder(); /** + * + * *
    * Required. Job information, including how, when, and where to
    * run the job.
    * 
* - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the placement field is set. */ boolean hasPlacement(); /** + * + * *
    * Required. Job information, including how, when, and where to
    * run the job.
    * 
* - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The placement. */ com.google.cloud.dataproc.v1.JobPlacement getPlacement(); /** + * + * *
    * Required. Job information, including how, when, and where to
    * run the job.
    * 
* - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.dataproc.v1.JobPlacementOrBuilder getPlacementOrBuilder(); /** + * + * *
    * Optional. Job is a Hadoop job.
    * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the hadoopJob field is set. */ boolean hasHadoopJob(); /** + * + * *
    * Optional. Job is a Hadoop job.
    * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The hadoopJob. */ com.google.cloud.dataproc.v1.HadoopJob getHadoopJob(); /** + * + * *
    * Optional. Job is a Hadoop job.
    * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder(); /** + * + * *
    * Optional. Job is a Spark job.
    * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkJob field is set. */ boolean hasSparkJob(); /** + * + * *
    * Optional. Job is a Spark job.
    * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkJob. */ com.google.cloud.dataproc.v1.SparkJob getSparkJob(); /** + * + * *
    * Optional. Job is a Spark job.
    * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder(); /** + * + * *
    * Optional. Job is a PySpark job.
    * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pysparkJob field is set. */ boolean hasPysparkJob(); /** + * + * *
    * Optional. Job is a PySpark job.
    * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pysparkJob. */ com.google.cloud.dataproc.v1.PySparkJob getPysparkJob(); /** + * + * *
    * Optional. Job is a PySpark job.
    * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder(); /** + * + * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the hiveJob field is set. */ boolean hasHiveJob(); /** + * + * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The hiveJob. */ com.google.cloud.dataproc.v1.HiveJob getHiveJob(); /** + * + * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder(); /** + * + * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pigJob field is set. */ boolean hasPigJob(); /** + * + * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pigJob. */ com.google.cloud.dataproc.v1.PigJob getPigJob(); /** + * + * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder(); /** + * + * *
    * Optional. Job is a SparkR job.
    * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkRJob field is set. */ boolean hasSparkRJob(); /** + * + * *
    * Optional. Job is a SparkR job.
    * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkRJob. */ com.google.cloud.dataproc.v1.SparkRJob getSparkRJob(); /** + * + * *
    * Optional. Job is a SparkR job.
    * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder(); /** + * + * *
    * Optional. Job is a SparkSql job.
    * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkSqlJob field is set. */ boolean hasSparkSqlJob(); /** + * + * *
    * Optional. Job is a SparkSql job.
    * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkSqlJob. */ com.google.cloud.dataproc.v1.SparkSqlJob getSparkSqlJob(); /** + * + * *
    * Optional. Job is a SparkSql job.
    * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder(); /** + * + * *
    * Optional. Job is a Presto job.
    * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the prestoJob field is set. */ boolean hasPrestoJob(); /** + * + * *
    * Optional. Job is a Presto job.
    * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The prestoJob. */ com.google.cloud.dataproc.v1.PrestoJob getPrestoJob(); /** + * + * *
    * Optional. Job is a Presto job.
    * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder(); /** + * + * *
    * Output only. The job status. Additional application-specific
    * status information may be contained in the <code>type_job</code>
    * and <code>yarn_applications</code> fields.
    * 
* - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the status field is set. */ boolean hasStatus(); /** + * + * *
    * Output only. The job status. Additional application-specific
    * status information may be contained in the <code>type_job</code>
    * and <code>yarn_applications</code> fields.
    * 
* - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ com.google.cloud.dataproc.v1.JobStatus getStatus(); /** + * + * *
    * Output only. The job status. Additional application-specific
    * status information may be contained in the <code>type_job</code>
    * and <code>yarn_applications</code> fields.
    * 
* - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder(); /** + * + * *
    * Output only. The previous job status.
    * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getStatusHistoryList(); + java.util.List getStatusHistoryList(); /** + * + * *
    * Output only. The previous job status.
    * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.JobStatus getStatusHistory(int index); /** + * + * *
    * Output only. The previous job status.
    * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getStatusHistoryCount(); /** + * + * *
    * Output only. The previous job status.
    * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getStatusHistoryOrBuilderList(); /** + * + * *
    * Output only. The previous job status.
    * 
* - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusHistoryOrBuilder( - int index); + com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusHistoryOrBuilder(int index); /** + * + * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getYarnApplicationsList(); + java.util.List getYarnApplicationsList(); /** + * + * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.YarnApplication getYarnApplications(int index); /** + * + * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getYarnApplicationsCount(); /** + * + * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getYarnApplicationsOrBuilderList(); /** + * + * *
    * Output only. The collection of YARN applications spun up by this job.
    * **Beta** Feature: This report is available for testing purposes only. It
    * may be changed before final release.
    * 
* - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplicationsOrBuilder( - int index); + com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplicationsOrBuilder(int index); /** + * + * *
    * Output only. A URI pointing to the location of the stdout of the job's
    * driver program.
    * 
* - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The driverOutputResourceUri. */ java.lang.String getDriverOutputResourceUri(); /** + * + * *
    * Output only. A URI pointing to the location of the stdout of the job's
    * driver program.
    * 
* - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for driverOutputResourceUri. */ - com.google.protobuf.ByteString - getDriverOutputResourceUriBytes(); + com.google.protobuf.ByteString getDriverOutputResourceUriBytes(); /** + * + * *
    * Output only. If present, the location of miscellaneous control files
    * which may be used as part of job setup and handling. If not present,
@@ -450,10 +659,13 @@ com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplicationsOrBuild
    * 
* * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The driverControlFilesUri. */ java.lang.String getDriverControlFilesUri(); /** + * + * *
    * Output only. If present, the location of miscellaneous control files
    * which may be used as part of job setup and handling. If not present,
@@ -461,12 +673,14 @@ com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplicationsOrBuild
    * 
* * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for driverControlFilesUri. */ - com.google.protobuf.ByteString - getDriverControlFilesUriBytes(); + com.google.protobuf.ByteString getDriverControlFilesUriBytes(); /** + * + * *
    * Optional. The labels to associate with this job.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -481,6 +695,8 @@ com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplicationsOrBuild
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this job.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -493,15 +709,13 @@ com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplicationsOrBuild
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-  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();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this job.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -514,9 +728,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this job.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -531,11 +746,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this job.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -548,38 +765,52 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. Job scheduling configuration.
    * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the scheduling field is set. */ boolean hasScheduling(); /** + * + * *
    * Optional. Job scheduling configuration.
    * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The scheduling. */ com.google.cloud.dataproc.v1.JobScheduling getScheduling(); /** + * + * *
    * Optional. Job scheduling configuration.
    * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilder(); /** + * + * *
    * Output only. A UUID that uniquely identifies a job within the project
    * over time. This is in contrast to a user-settable reference.job_id that
@@ -587,10 +818,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The jobUuid. */ java.lang.String getJobUuid(); /** + * + * *
    * Output only. A UUID that uniquely identifies a job within the project
    * over time. This is in contrast to a user-settable reference.job_id that
@@ -598,12 +832,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for jobUuid. */ - com.google.protobuf.ByteString - getJobUuidBytes(); + com.google.protobuf.ByteString getJobUuidBytes(); /** + * + * *
    * Output only. Indicates whether the job is completed. If the value is
    * `false`, the job is still in progress. If `true`, the job is completed, and
@@ -612,34 +848,49 @@ java.lang.String getLabelsOrThrow(
    * 
* * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The done. */ boolean getDone(); /** + * + * *
    * Optional. Driver scheduling configuration.
    * 
* - * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the driverSchedulingConfig field is set. */ boolean hasDriverSchedulingConfig(); /** + * + * *
    * Optional. Driver scheduling configuration.
    * 
* - * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The driverSchedulingConfig. */ com.google.cloud.dataproc.v1.DriverSchedulingConfig getDriverSchedulingConfig(); /** + * + * *
    * Optional. Driver scheduling configuration.
    * 
* - * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.DriverSchedulingConfigOrBuilder getDriverSchedulingConfigOrBuilder(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java similarity index 63% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java index d25ad152402b..2304cc35351a 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Dataproc job config.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.JobPlacement} */ -public final class JobPlacement extends - com.google.protobuf.GeneratedMessageV3 implements +public final class JobPlacement extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.JobPlacement) JobPlacementOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use JobPlacement.newBuilder() to construct. private JobPlacement(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private JobPlacement() { clusterName_ = ""; clusterUuid_ = ""; @@ -26,49 +44,52 @@ private JobPlacement() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new JobPlacement(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobPlacement_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 3: return internalGetClusterLabels(); 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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobPlacement.class, com.google.cloud.dataproc.v1.JobPlacement.Builder.class); + com.google.cloud.dataproc.v1.JobPlacement.class, + com.google.cloud.dataproc.v1.JobPlacement.Builder.class); } public static final int CLUSTER_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object clusterName_; /** + * + * *
    * Required. The name of the cluster where the job will be submitted.
    * 
* * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ @java.lang.Override @@ -77,29 +98,29 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** + * + * *
    * Required. The name of the cluster where the job will be submitted.
    * 
* * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -110,12 +131,15 @@ public java.lang.String getClusterName() { public static final int CLUSTER_UUID_FIELD_NUMBER = 2; private volatile java.lang.Object clusterUuid_; /** + * + * *
    * Output only. A cluster UUID generated by the Dataproc service when
    * the job is submitted.
    * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterUuid. */ @java.lang.Override @@ -124,30 +148,30 @@ public java.lang.String getClusterUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; } } /** + * + * *
    * Output only. A cluster UUID generated by the Dataproc service when
    * the job is submitted.
    * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterUuid. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterUuidBytes() { + public com.google.protobuf.ByteString getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -156,21 +180,22 @@ public java.lang.String getClusterUuid() { } public static final int CLUSTER_LABELS_FIELD_NUMBER = 3; + private static final class ClusterLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> clusterLabels_; + + private com.google.protobuf.MapField clusterLabels_; + private com.google.protobuf.MapField - internalGetClusterLabels() { + internalGetClusterLabels() { if (clusterLabels_ == null) { return com.google.protobuf.MapField.emptyMapField( ClusterLabelsDefaultEntryHolder.defaultEntry); @@ -182,74 +207,81 @@ public int getClusterLabelsCount() { return internalGetClusterLabels().getMap().size(); } /** + * + * *
    * Optional. Cluster labels to identify a cluster where the job will be
    * submitted.
    * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsClusterLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsClusterLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetClusterLabels().getMap().containsKey(key); } - /** - * Use {@link #getClusterLabelsMap()} instead. - */ + /** Use {@link #getClusterLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getClusterLabels() { return getClusterLabelsMap(); } /** + * + * *
    * Optional. Cluster labels to identify a cluster where the job will be
    * submitted.
    * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getClusterLabelsMap() { return internalGetClusterLabels().getMap(); } /** + * + * *
    * Optional. Cluster labels to identify a cluster where the job will be
    * submitted.
    * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getClusterLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetClusterLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetClusterLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Cluster labels to identify a cluster where the job will be
    * submitted.
    * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getClusterLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetClusterLabels().getMap(); + public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetClusterLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -257,6 +289,7 @@ public java.lang.String getClusterLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,20 +301,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(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterUuid_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetClusterLabels(), - ClusterLabelsDefaultEntryHolder.defaultEntry, - 3); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetClusterLabels(), ClusterLabelsDefaultEntryHolder.defaultEntry, 3); getUnknownFields().writeTo(output); } @@ -297,15 +325,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterUuid_); } - for (java.util.Map.Entry entry - : internalGetClusterLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - clusterLabels__ = ClusterLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, clusterLabels__); + for (java.util.Map.Entry entry : + internalGetClusterLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry clusterLabels__ = + ClusterLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, clusterLabels__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -315,19 +343,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.dataproc.v1.JobPlacement)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.JobPlacement other = (com.google.cloud.dataproc.v1.JobPlacement) obj; + com.google.cloud.dataproc.v1.JobPlacement other = + (com.google.cloud.dataproc.v1.JobPlacement) obj; - if (!getClusterName() - .equals(other.getClusterName())) return false; - if (!getClusterUuid() - .equals(other.getClusterUuid())) return false; - if (!internalGetClusterLabels().equals( - other.internalGetClusterLabels())) return false; + if (!getClusterName().equals(other.getClusterName())) return false; + if (!getClusterUuid().equals(other.getClusterUuid())) return false; + if (!internalGetClusterLabels().equals(other.internalGetClusterLabels())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -352,152 +378,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.JobPlacement parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.JobPlacement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.JobPlacement parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobPlacement parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.JobPlacement parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.JobPlacement parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.JobPlacement prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Dataproc job config.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.JobPlacement} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.JobPlacement) com.google.cloud.dataproc.v1.JobPlacementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetClusterLabels(); 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 3: return internalGetMutableClusterLabels(); 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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobPlacement.class, com.google.cloud.dataproc.v1.JobPlacement.Builder.class); + com.google.cloud.dataproc.v1.JobPlacement.class, + com.google.cloud.dataproc.v1.JobPlacement.Builder.class); } // Construct using com.google.cloud.dataproc.v1.JobPlacement.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -510,9 +540,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; } @java.lang.Override @@ -531,7 +561,8 @@ public com.google.cloud.dataproc.v1.JobPlacement build() { @java.lang.Override public com.google.cloud.dataproc.v1.JobPlacement buildPartial() { - com.google.cloud.dataproc.v1.JobPlacement result = new com.google.cloud.dataproc.v1.JobPlacement(this); + com.google.cloud.dataproc.v1.JobPlacement result = + new com.google.cloud.dataproc.v1.JobPlacement(this); int from_bitField0_ = bitField0_; result.clusterName_ = clusterName_; result.clusterUuid_ = clusterUuid_; @@ -545,38 +576,39 @@ public com.google.cloud.dataproc.v1.JobPlacement buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.JobPlacement) { - return mergeFrom((com.google.cloud.dataproc.v1.JobPlacement)other); + return mergeFrom((com.google.cloud.dataproc.v1.JobPlacement) other); } else { super.mergeFrom(other); return this; @@ -593,8 +625,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.JobPlacement other) { clusterUuid_ = other.clusterUuid_; onChanged(); } - internalGetMutableClusterLabels().mergeFrom( - other.internalGetClusterLabels()); + internalGetMutableClusterLabels().mergeFrom(other.internalGetClusterLabels()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -621,30 +652,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - clusterUuid_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - com.google.protobuf.MapEntry - clusterLabels__ = input.readMessage( - ClusterLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableClusterLabels().getMutableMap().put( - clusterLabels__.getKey(), clusterLabels__.getValue()); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + clusterUuid_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry clusterLabels__ = + input.readMessage( + ClusterLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableClusterLabels() + .getMutableMap() + .put(clusterLabels__.getKey(), clusterLabels__.getValue()); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -654,22 +691,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object clusterName_ = ""; /** + * + * *
      * Required. The name of the cluster where the job will be submitted.
      * 
* * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -678,20 +718,21 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Required. The name of the cluster where the job will be submitted.
      * 
* * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -699,54 +740,61 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Required. The name of the cluster where the job will be submitted.
      * 
* * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName( - java.lang.String value) { + public Builder setClusterName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the cluster where the job will be submitted.
      * 
* * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the cluster where the job will be submitted.
      * 
* * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -754,19 +802,21 @@ public Builder setClusterNameBytes( private java.lang.Object clusterUuid_ = ""; /** + * + * *
      * Output only. A cluster UUID generated by the Dataproc service when
      * the job is submitted.
      * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterUuid. */ public java.lang.String getClusterUuid() { java.lang.Object ref = clusterUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; @@ -775,21 +825,22 @@ public java.lang.String getClusterUuid() { } } /** + * + * *
      * Output only. A cluster UUID generated by the Dataproc service when
      * the job is submitted.
      * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterUuid. */ - public com.google.protobuf.ByteString - getClusterUuidBytes() { + public com.google.protobuf.ByteString getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -797,78 +848,87 @@ public java.lang.String getClusterUuid() { } } /** + * + * *
      * Output only. A cluster UUID generated by the Dataproc service when
      * the job is submitted.
      * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuid( - java.lang.String value) { + public Builder setClusterUuid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterUuid_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A cluster UUID generated by the Dataproc service when
      * the job is submitted.
      * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClusterUuid() { - + clusterUuid_ = getDefaultInstance().getClusterUuid(); onChanged(); return this; } /** + * + * *
      * Output only. A cluster UUID generated by the Dataproc service when
      * the job is submitted.
      * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuidBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUuid_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> clusterLabels_; + private com.google.protobuf.MapField clusterLabels_; + private com.google.protobuf.MapField - internalGetClusterLabels() { + internalGetClusterLabels() { if (clusterLabels_ == null) { return com.google.protobuf.MapField.emptyMapField( ClusterLabelsDefaultEntryHolder.defaultEntry); } return clusterLabels_; } + private com.google.protobuf.MapField - internalGetMutableClusterLabels() { - onChanged();; + internalGetMutableClusterLabels() { + onChanged(); + ; if (clusterLabels_ == null) { - clusterLabels_ = com.google.protobuf.MapField.newMapField( - ClusterLabelsDefaultEntryHolder.defaultEntry); + clusterLabels_ = + com.google.protobuf.MapField.newMapField(ClusterLabelsDefaultEntryHolder.defaultEntry); } if (!clusterLabels_.isMutable()) { clusterLabels_ = clusterLabels_.copy(); @@ -880,74 +940,81 @@ public int getClusterLabelsCount() { return internalGetClusterLabels().getMap().size(); } /** + * + * *
      * Optional. Cluster labels to identify a cluster where the job will be
      * submitted.
      * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsClusterLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsClusterLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetClusterLabels().getMap().containsKey(key); } - /** - * Use {@link #getClusterLabelsMap()} instead. - */ + /** Use {@link #getClusterLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getClusterLabels() { return getClusterLabelsMap(); } /** + * + * *
      * Optional. Cluster labels to identify a cluster where the job will be
      * submitted.
      * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getClusterLabelsMap() { return internalGetClusterLabels().getMap(); } /** + * + * *
      * Optional. Cluster labels to identify a cluster where the job will be
      * submitted.
      * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getClusterLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetClusterLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetClusterLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Cluster labels to identify a cluster where the job will be
      * submitted.
      * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getClusterLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetClusterLabels().getMap(); + public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetClusterLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -955,72 +1022,72 @@ public java.lang.String getClusterLabelsOrThrow( } public Builder clearClusterLabels() { - internalGetMutableClusterLabels().getMutableMap() - .clear(); + internalGetMutableClusterLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Cluster labels to identify a cluster where the job will be
      * submitted.
      * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeClusterLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableClusterLabels().getMutableMap() - .remove(key); + public Builder removeClusterLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableClusterLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableClusterLabels() { + public java.util.Map getMutableClusterLabels() { return internalGetMutableClusterLabels().getMutableMap(); } /** + * + * *
      * Optional. Cluster labels to identify a cluster where the job will be
      * submitted.
      * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putClusterLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putClusterLabels(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"); + } - internalGetMutableClusterLabels().getMutableMap() - .put(key, value); + internalGetMutableClusterLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Cluster labels to identify a cluster where the job will be
      * submitted.
      * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllClusterLabels( - java.util.Map values) { - internalGetMutableClusterLabels().getMutableMap() - .putAll(values); + public Builder putAllClusterLabels(java.util.Map values) { + internalGetMutableClusterLabels().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); } @@ -1030,12 +1097,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.JobPlacement) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobPlacement) private static final com.google.cloud.dataproc.v1.JobPlacement DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.JobPlacement(); } @@ -1044,27 +1111,27 @@ public static com.google.cloud.dataproc.v1.JobPlacement getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobPlacement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobPlacement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1079,6 +1146,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.JobPlacement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java similarity index 61% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java index ba2dc030862b..a1b0fa90b671 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java @@ -1,112 +1,146 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface JobPlacementOrBuilder extends +public interface JobPlacementOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.JobPlacement) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the cluster where the job will be submitted.
    * 
* * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ java.lang.String getClusterName(); /** + * + * *
    * Required. The name of the cluster where the job will be submitted.
    * 
* * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString - getClusterNameBytes(); + com.google.protobuf.ByteString getClusterNameBytes(); /** + * + * *
    * Output only. A cluster UUID generated by the Dataproc service when
    * the job is submitted.
    * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterUuid. */ java.lang.String getClusterUuid(); /** + * + * *
    * Output only. A cluster UUID generated by the Dataproc service when
    * the job is submitted.
    * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterUuid. */ - com.google.protobuf.ByteString - getClusterUuidBytes(); + com.google.protobuf.ByteString getClusterUuidBytes(); /** + * + * *
    * Optional. Cluster labels to identify a cluster where the job will be
    * submitted.
    * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getClusterLabelsCount(); /** + * + * *
    * Optional. Cluster labels to identify a cluster where the job will be
    * submitted.
    * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsClusterLabels( - java.lang.String key); - /** - * Use {@link #getClusterLabelsMap()} instead. + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsClusterLabels(java.lang.String key); + /** Use {@link #getClusterLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getClusterLabels(); + java.util.Map getClusterLabels(); /** + * + * *
    * Optional. Cluster labels to identify a cluster where the job will be
    * submitted.
    * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getClusterLabelsMap(); + java.util.Map getClusterLabelsMap(); /** + * + * *
    * Optional. Cluster labels to identify a cluster where the job will be
    * submitted.
    * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getClusterLabelsOrDefault( + java.lang.String getClusterLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Cluster labels to identify a cluster where the job will be
    * submitted.
    * 
* - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - java.lang.String getClusterLabelsOrThrow( - java.lang.String key); + java.lang.String getClusterLabelsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java similarity index 70% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java index 3235ec742bbc..8644d3979530 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Encapsulates the full scoping used to reference a job.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.JobReference} */ -public final class JobReference extends - com.google.protobuf.GeneratedMessageV3 implements +public final class JobReference extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.JobReference) JobReferenceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use JobReference.newBuilder() to construct. private JobReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private JobReference() { projectId_ = ""; jobId_ = ""; @@ -26,38 +44,42 @@ private JobReference() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new JobReference(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobReference_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobReference.class, com.google.cloud.dataproc.v1.JobReference.Builder.class); + com.google.cloud.dataproc.v1.JobReference.class, + com.google.cloud.dataproc.v1.JobReference.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
    * Optional. The ID of the Google Cloud Platform project that the job belongs
    * to. If specified, must match the request project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The projectId. */ @java.lang.Override @@ -66,30 +88,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Optional. The ID of the Google Cloud Platform project that the job belongs
    * to. If specified, must match the request project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -100,6 +122,8 @@ public java.lang.String getProjectId() { public static final int JOB_ID_FIELD_NUMBER = 2; private volatile java.lang.Object jobId_; /** + * + * *
    * Optional. The job ID, which must be unique within the project.
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -108,6 +132,7 @@ public java.lang.String getProjectId() {
    * 
* * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The jobId. */ @java.lang.Override @@ -116,14 +141,15 @@ 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; } } /** + * + * *
    * Optional. The job ID, which must be unique within the project.
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -132,16 +158,15 @@ public java.lang.String getJobId() {
    * 
* * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -150,6 +175,7 @@ public java.lang.String getJobId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +187,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -192,17 +217,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.JobReference)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.JobReference other = (com.google.cloud.dataproc.v1.JobReference) obj; + com.google.cloud.dataproc.v1.JobReference other = + (com.google.cloud.dataproc.v1.JobReference) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getJobId() - .equals(other.getJobId())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getJobId().equals(other.getJobId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,130 +247,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.JobReference parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.JobReference parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.JobReference parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.JobReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.JobReference parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.JobReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.JobReference parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.JobReference parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.JobReference parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobReference parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.JobReference parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.JobReference parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.JobReference parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.JobReference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.JobReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Encapsulates the full scoping used to reference a job.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.JobReference} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.JobReference) com.google.cloud.dataproc.v1.JobReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobReference.class, com.google.cloud.dataproc.v1.JobReference.Builder.class); + com.google.cloud.dataproc.v1.JobReference.class, + com.google.cloud.dataproc.v1.JobReference.Builder.class); } // Construct using com.google.cloud.dataproc.v1.JobReference.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -358,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobReference_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobReference_descriptor; } @java.lang.Override @@ -379,7 +409,8 @@ public com.google.cloud.dataproc.v1.JobReference build() { @java.lang.Override public com.google.cloud.dataproc.v1.JobReference buildPartial() { - com.google.cloud.dataproc.v1.JobReference result = new com.google.cloud.dataproc.v1.JobReference(this); + com.google.cloud.dataproc.v1.JobReference result = + new com.google.cloud.dataproc.v1.JobReference(this); result.projectId_ = projectId_; result.jobId_ = jobId_; onBuilt(); @@ -390,38 +421,39 @@ public com.google.cloud.dataproc.v1.JobReference buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.JobReference) { - return mergeFrom((com.google.cloud.dataproc.v1.JobReference)other); + return mergeFrom((com.google.cloud.dataproc.v1.JobReference) other); } else { super.mergeFrom(other); return this; @@ -464,22 +496,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -492,19 +527,21 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** + * + * *
      * Optional. The ID of the Google Cloud Platform project that the job belongs
      * to. If specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -513,21 +550,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Optional. The ID of the Google Cloud Platform project that the job belongs
      * to. If specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -535,57 +573,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Optional. The ID of the Google Cloud Platform project that the job belongs
      * to. If specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The ID of the Google Cloud Platform project that the job belongs
      * to. If specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Optional. The ID of the Google Cloud Platform project that the job belongs
      * to. If specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -593,6 +638,8 @@ public Builder setProjectIdBytes( private java.lang.Object jobId_ = ""; /** + * + * *
      * Optional. The job ID, which must be unique within the project.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -601,13 +648,13 @@ public Builder setProjectIdBytes(
      * 
* * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -616,6 +663,8 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Optional. The job ID, which must be unique within the project.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -624,15 +673,14 @@ public java.lang.String getJobId() {
      * 
* * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -640,6 +688,8 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Optional. The job ID, which must be unique within the project.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -648,20 +698,22 @@ public java.lang.String getJobId() {
      * 
* * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. The job ID, which must be unique within the project.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -670,15 +722,18 @@ public Builder setJobId(
      * 
* * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearJobId() { - + jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** + * + * *
      * Optional. The job ID, which must be unique within the project.
      * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -687,23 +742,23 @@ public Builder clearJobId() {
      * 
* * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -713,12 +768,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.JobReference) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobReference) private static final com.google.cloud.dataproc.v1.JobReference DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.JobReference(); } @@ -727,27 +782,27 @@ public static com.google.cloud.dataproc.v1.JobReference getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -762,6 +817,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.JobReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java index cfdd1bf87ef9..c22d0ffdf068 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface JobReferenceOrBuilder extends +public interface JobReferenceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.JobReference) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The ID of the Google Cloud Platform project that the job belongs
    * to. If specified, must match the request project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Optional. The ID of the Google Cloud Platform project that the job belongs
    * to. If specified, must match the request project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Optional. The job ID, which must be unique within the project.
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -38,10 +61,13 @@ public interface JobReferenceOrBuilder extends
    * 
* * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The jobId. */ java.lang.String getJobId(); /** + * + * *
    * Optional. The job ID, which must be unique within the project.
    * The ID must contain only letters (a-z, A-Z), numbers (0-9),
@@ -50,8 +76,8 @@ public interface JobReferenceOrBuilder extends
    * 
* * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for jobId. */ - com.google.protobuf.ByteString - getJobIdBytes(); + com.google.protobuf.ByteString getJobIdBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java similarity index 71% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java index cd38a212f1b9..648067e912d9 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java @@ -1,55 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Job scheduling options.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.JobScheduling} */ -public final class JobScheduling extends - com.google.protobuf.GeneratedMessageV3 implements +public final class JobScheduling extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.JobScheduling) JobSchedulingOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use JobScheduling.newBuilder() to construct. private JobScheduling(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private JobScheduling() { - } + + private JobScheduling() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new JobScheduling(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobScheduling.class, com.google.cloud.dataproc.v1.JobScheduling.Builder.class); + com.google.cloud.dataproc.v1.JobScheduling.class, + com.google.cloud.dataproc.v1.JobScheduling.Builder.class); } public static final int MAX_FAILURES_PER_HOUR_FIELD_NUMBER = 1; private int maxFailuresPerHour_; /** + * + * *
    * Optional. Maximum number of times per hour a driver may be restarted as
    * a result of driver exiting with non-zero code before job is
@@ -63,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxFailuresPerHour. */ @java.lang.Override @@ -73,6 +94,8 @@ public int getMaxFailuresPerHour() { public static final int MAX_FAILURES_TOTAL_FIELD_NUMBER = 2; private int maxFailuresTotal_; /** + * + * *
    * Optional. Maximum total number of times a driver may be restarted as a
    * result of the driver exiting with a non-zero code. After the maximum number
@@ -85,6 +108,7 @@ public int getMaxFailuresPerHour() {
    * 
* * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxFailuresTotal. */ @java.lang.Override @@ -93,6 +117,7 @@ public int getMaxFailuresTotal() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +129,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (maxFailuresPerHour_ != 0) { output.writeInt32(1, maxFailuresPerHour_); } @@ -122,12 +146,10 @@ public int getSerializedSize() { size = 0; if (maxFailuresPerHour_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, maxFailuresPerHour_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxFailuresPerHour_); } if (maxFailuresTotal_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, maxFailuresTotal_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxFailuresTotal_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -137,17 +159,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.JobScheduling)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.JobScheduling other = (com.google.cloud.dataproc.v1.JobScheduling) obj; + com.google.cloud.dataproc.v1.JobScheduling other = + (com.google.cloud.dataproc.v1.JobScheduling) obj; - if (getMaxFailuresPerHour() - != other.getMaxFailuresPerHour()) return false; - if (getMaxFailuresTotal() - != other.getMaxFailuresTotal()) return false; + if (getMaxFailuresPerHour() != other.getMaxFailuresPerHour()) return false; + if (getMaxFailuresTotal() != other.getMaxFailuresTotal()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -168,130 +189,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.JobScheduling parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.JobScheduling parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.JobScheduling parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.JobScheduling parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.JobScheduling parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.JobScheduling parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.JobScheduling prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 scheduling options.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.JobScheduling} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.JobScheduling) com.google.cloud.dataproc.v1.JobSchedulingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobScheduling.class, com.google.cloud.dataproc.v1.JobScheduling.Builder.class); + com.google.cloud.dataproc.v1.JobScheduling.class, + com.google.cloud.dataproc.v1.JobScheduling.Builder.class); } // Construct using com.google.cloud.dataproc.v1.JobScheduling.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -303,9 +330,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; } @java.lang.Override @@ -324,7 +351,8 @@ public com.google.cloud.dataproc.v1.JobScheduling build() { @java.lang.Override public com.google.cloud.dataproc.v1.JobScheduling buildPartial() { - com.google.cloud.dataproc.v1.JobScheduling result = new com.google.cloud.dataproc.v1.JobScheduling(this); + com.google.cloud.dataproc.v1.JobScheduling result = + new com.google.cloud.dataproc.v1.JobScheduling(this); result.maxFailuresPerHour_ = maxFailuresPerHour_; result.maxFailuresTotal_ = maxFailuresTotal_; onBuilt(); @@ -335,38 +363,39 @@ public com.google.cloud.dataproc.v1.JobScheduling buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.JobScheduling) { - return mergeFrom((com.google.cloud.dataproc.v1.JobScheduling)other); + return mergeFrom((com.google.cloud.dataproc.v1.JobScheduling) other); } else { super.mergeFrom(other); return this; @@ -407,22 +436,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - maxFailuresPerHour_ = input.readInt32(); - - break; - } // case 8 - case 16: { - maxFailuresTotal_ = input.readInt32(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + maxFailuresPerHour_ = input.readInt32(); + + break; + } // case 8 + case 16: + { + maxFailuresTotal_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -433,8 +465,10 @@ public Builder mergeFrom( return this; } - private int maxFailuresPerHour_ ; + private int maxFailuresPerHour_; /** + * + * *
      * Optional. Maximum number of times per hour a driver may be restarted as
      * a result of driver exiting with non-zero code before job is
@@ -448,6 +482,7 @@ public Builder mergeFrom(
      * 
* * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxFailuresPerHour. */ @java.lang.Override @@ -455,6 +490,8 @@ public int getMaxFailuresPerHour() { return maxFailuresPerHour_; } /** + * + * *
      * Optional. Maximum number of times per hour a driver may be restarted as
      * a result of driver exiting with non-zero code before job is
@@ -468,16 +505,19 @@ public int getMaxFailuresPerHour() {
      * 
* * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The maxFailuresPerHour to set. * @return This builder for chaining. */ public Builder setMaxFailuresPerHour(int value) { - + maxFailuresPerHour_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Maximum number of times per hour a driver may be restarted as
      * a result of driver exiting with non-zero code before job is
@@ -491,17 +531,20 @@ public Builder setMaxFailuresPerHour(int value) {
      * 
* * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMaxFailuresPerHour() { - + maxFailuresPerHour_ = 0; onChanged(); return this; } - private int maxFailuresTotal_ ; + private int maxFailuresTotal_; /** + * + * *
      * Optional. Maximum total number of times a driver may be restarted as a
      * result of the driver exiting with a non-zero code. After the maximum number
@@ -514,6 +557,7 @@ public Builder clearMaxFailuresPerHour() {
      * 
* * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxFailuresTotal. */ @java.lang.Override @@ -521,6 +565,8 @@ public int getMaxFailuresTotal() { return maxFailuresTotal_; } /** + * + * *
      * Optional. Maximum total number of times a driver may be restarted as a
      * result of the driver exiting with a non-zero code. After the maximum number
@@ -533,16 +579,19 @@ public int getMaxFailuresTotal() {
      * 
* * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The maxFailuresTotal to set. * @return This builder for chaining. */ public Builder setMaxFailuresTotal(int value) { - + maxFailuresTotal_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Maximum total number of times a driver may be restarted as a
      * result of the driver exiting with a non-zero code. After the maximum number
@@ -555,17 +604,18 @@ public Builder setMaxFailuresTotal(int value) {
      * 
* * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMaxFailuresTotal() { - + maxFailuresTotal_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -575,12 +625,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.JobScheduling) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobScheduling) private static final com.google.cloud.dataproc.v1.JobScheduling DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.JobScheduling(); } @@ -589,27 +639,27 @@ public static com.google.cloud.dataproc.v1.JobScheduling getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobScheduling parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobScheduling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -624,6 +674,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.JobScheduling getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java similarity index 70% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java index 130bc51d63f1..20f7a8437eed 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface JobSchedulingOrBuilder extends +public interface JobSchedulingOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.JobScheduling) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Maximum number of times per hour a driver may be restarted as
    * a result of driver exiting with non-zero code before job is
@@ -21,11 +39,14 @@ public interface JobSchedulingOrBuilder extends
    * 
* * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxFailuresPerHour. */ int getMaxFailuresPerHour(); /** + * + * *
    * Optional. Maximum total number of times a driver may be restarted as a
    * result of the driver exiting with a non-zero code. After the maximum number
@@ -38,6 +59,7 @@ public interface JobSchedulingOrBuilder extends
    * 
* * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxFailuresTotal. */ int getMaxFailuresTotal(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java similarity index 66% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java index 9e2dde5a2753..5f35f1244b5c 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Dataproc job status.
  * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.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; details_ = ""; @@ -27,39 +45,43 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobStatus.class, com.google.cloud.dataproc.v1.JobStatus.Builder.class); + com.google.cloud.dataproc.v1.JobStatus.class, + com.google.cloud.dataproc.v1.JobStatus.Builder.class); } /** + * + * *
    * The job state.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.JobStatus.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The job state is unknown.
      * 
@@ -68,6 +90,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The job is pending; it has been submitted, but is not yet running.
      * 
@@ -76,6 +100,8 @@ public enum State */ PENDING(1), /** + * + * *
      * Job has been received by the service and completed initial setup;
      * it will soon be submitted to the cluster.
@@ -85,6 +111,8 @@ public enum State
      */
     SETUP_DONE(8),
     /**
+     *
+     *
      * 
      * The job is running on the cluster.
      * 
@@ -93,6 +121,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * A CancelJob request has been received, but is pending.
      * 
@@ -101,6 +131,8 @@ public enum State */ CANCEL_PENDING(3), /** + * + * *
      * Transient in-flight resources have been canceled, and the request to
      * cancel the running job has been issued to the cluster.
@@ -110,6 +142,8 @@ public enum State
      */
     CANCEL_STARTED(7),
     /**
+     *
+     *
      * 
      * The job cancellation was successful.
      * 
@@ -118,6 +152,8 @@ public enum State */ CANCELLED(4), /** + * + * *
      * The job has completed successfully.
      * 
@@ -126,6 +162,8 @@ public enum State */ DONE(5), /** + * + * *
      * The job has completed, but encountered an error.
      * 
@@ -134,6 +172,8 @@ public enum State */ ERROR(6), /** + * + * *
      * Job attempt has failed. The detail field contains failure details for
      * this attempt.
@@ -147,6 +187,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * The job state is unknown.
      * 
@@ -155,6 +197,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The job is pending; it has been submitted, but is not yet running.
      * 
@@ -163,6 +207,8 @@ public enum State */ public static final int PENDING_VALUE = 1; /** + * + * *
      * Job has been received by the service and completed initial setup;
      * it will soon be submitted to the cluster.
@@ -172,6 +218,8 @@ public enum State
      */
     public static final int SETUP_DONE_VALUE = 8;
     /**
+     *
+     *
      * 
      * The job is running on the cluster.
      * 
@@ -180,6 +228,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * A CancelJob request has been received, but is pending.
      * 
@@ -188,6 +238,8 @@ public enum State */ public static final int CANCEL_PENDING_VALUE = 3; /** + * + * *
      * Transient in-flight resources have been canceled, and the request to
      * cancel the running job has been issued to the cluster.
@@ -197,6 +249,8 @@ public enum State
      */
     public static final int CANCEL_STARTED_VALUE = 7;
     /**
+     *
+     *
      * 
      * The job cancellation was successful.
      * 
@@ -205,6 +259,8 @@ public enum State */ public static final int CANCELLED_VALUE = 4; /** + * + * *
      * The job has completed successfully.
      * 
@@ -213,6 +269,8 @@ public enum State */ public static final int DONE_VALUE = 5; /** + * + * *
      * The job has completed, but encountered an error.
      * 
@@ -221,6 +279,8 @@ public enum State */ public static final int ERROR_VALUE = 6; /** + * + * *
      * Job attempt has failed. The detail field contains failure details for
      * this attempt.
@@ -231,7 +291,6 @@ public enum State
      */
     public static final int ATTEMPT_FAILURE_VALUE = 9;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -256,56 +315,63 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return PENDING;
-        case 8: return SETUP_DONE;
-        case 2: return RUNNING;
-        case 3: return CANCEL_PENDING;
-        case 7: return CANCEL_STARTED;
-        case 4: return CANCELLED;
-        case 5: return DONE;
-        case 6: return ERROR;
-        case 9: return ATTEMPT_FAILURE;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return PENDING;
+        case 8:
+          return SETUP_DONE;
+        case 2:
+          return RUNNING;
+        case 3:
+          return CANCEL_PENDING;
+        case 7:
+          return CANCEL_STARTED;
+        case 4:
+          return CANCELLED;
+        case 5:
+          return DONE;
+        case 6:
+          return ERROR;
+        case 9:
+          return ATTEMPT_FAILURE;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.dataproc.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;
@@ -323,15 +389,18 @@ private State(int value) {
   }
 
   /**
+   *
+   *
    * 
    * The job substate.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.JobStatus.Substate} */ - public enum Substate - implements com.google.protobuf.ProtocolMessageEnum { + public enum Substate implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The job substate is unknown.
      * 
@@ -340,6 +409,8 @@ public enum Substate */ UNSPECIFIED(0), /** + * + * *
      * The Job is submitted to the agent.
      * Applies to RUNNING state.
@@ -349,6 +420,8 @@ public enum Substate
      */
     SUBMITTED(1),
     /**
+     *
+     *
      * 
      * The Job has been received and is awaiting execution (it may be waiting
      * for a condition to be met). See the "details" field for the reason for
@@ -360,6 +433,8 @@ public enum Substate
      */
     QUEUED(2),
     /**
+     *
+     *
      * 
      * The agent-reported status is out of date, which may be caused by a
      * loss of communication between the agent and Dataproc. If the
@@ -374,6 +449,8 @@ public enum Substate
     ;
 
     /**
+     *
+     *
      * 
      * The job substate is unknown.
      * 
@@ -382,6 +459,8 @@ public enum Substate */ public static final int UNSPECIFIED_VALUE = 0; /** + * + * *
      * The Job is submitted to the agent.
      * Applies to RUNNING state.
@@ -391,6 +470,8 @@ public enum Substate
      */
     public static final int SUBMITTED_VALUE = 1;
     /**
+     *
+     *
      * 
      * The Job has been received and is awaiting execution (it may be waiting
      * for a condition to be met). See the "details" field for the reason for
@@ -402,6 +483,8 @@ public enum Substate
      */
     public static final int QUEUED_VALUE = 2;
     /**
+     *
+     *
      * 
      * The agent-reported status is out of date, which may be caused by a
      * loss of communication between the agent and Dataproc. If the
@@ -413,7 +496,6 @@ public enum Substate
      */
     public static final int STALE_STATUS_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -438,50 +520,51 @@ public static Substate valueOf(int value) {
      */
     public static Substate forNumber(int value) {
       switch (value) {
-        case 0: return UNSPECIFIED;
-        case 1: return SUBMITTED;
-        case 2: return QUEUED;
-        case 3: return STALE_STATUS;
-        default: return null;
+        case 0:
+          return UNSPECIFIED;
+        case 1:
+          return SUBMITTED;
+        case 2:
+          return QUEUED;
+        case 3:
+          return STALE_STATUS;
+        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<
-        Substate> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Substate findValueByNumber(int number) {
-              return Substate.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Substate findValueByNumber(int number) {
+            return Substate.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.dataproc.v1.JobStatus.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Substate[] VALUES = values();
 
-    public static Substate valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Substate 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;
@@ -501,39 +584,57 @@ private Substate(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
+   *
+   *
    * 
    * Output only. A state message specifying the overall job state.
    * 
* - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. A state message specifying the overall job state.
    * 
* - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.dataproc.v1.JobStatus.State getState() { + @java.lang.Override + public com.google.cloud.dataproc.v1.JobStatus.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.JobStatus.State result = com.google.cloud.dataproc.v1.JobStatus.State.valueOf(state_); + com.google.cloud.dataproc.v1.JobStatus.State result = + com.google.cloud.dataproc.v1.JobStatus.State.valueOf(state_); return result == null ? com.google.cloud.dataproc.v1.JobStatus.State.UNRECOGNIZED : result; } public static final int DETAILS_FIELD_NUMBER = 2; private volatile java.lang.Object details_; /** + * + * *
    * Optional. Output only. Job state details, such as an error
    * description if the state is <code>ERROR</code>.
    * 
* - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The details. */ @java.lang.Override @@ -542,30 +643,32 @@ public java.lang.String getDetails() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; } } /** + * + * *
    * Optional. Output only. Job state details, such as an error
    * description if the state is <code>ERROR</code>.
    * 
* - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for details. */ @java.lang.Override - public com.google.protobuf.ByteString - getDetailsBytes() { + public com.google.protobuf.ByteString getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); details_ = b; return b; } else { @@ -576,11 +679,16 @@ public java.lang.String getDetails() { public static final int STATE_START_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp stateStartTime_; /** + * + * *
    * Output only. The time when this state was entered.
    * 
* - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateStartTime field is set. */ @java.lang.Override @@ -588,23 +696,34 @@ public boolean hasStateStartTime() { return stateStartTime_ != null; } /** + * + * *
    * Output only. The time when this state was entered.
    * 
* - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStateStartTime() { - return stateStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; + return stateStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateStartTime_; } /** + * + * *
    * Output only. The time when this state was entered.
    * 
* - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { @@ -614,33 +733,47 @@ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { public static final int SUBSTATE_FIELD_NUMBER = 7; private int substate_; /** + * + * *
    * Output only. Additional state information, which includes
    * status reported by the agent.
    * 
* - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for substate. */ - @java.lang.Override public int getSubstateValue() { + @java.lang.Override + public int getSubstateValue() { return substate_; } /** + * + * *
    * Output only. Additional state information, which includes
    * status reported by the agent.
    * 
* - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The substate. */ - @java.lang.Override public com.google.cloud.dataproc.v1.JobStatus.Substate getSubstate() { + @java.lang.Override + public com.google.cloud.dataproc.v1.JobStatus.Substate getSubstate() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.JobStatus.Substate result = com.google.cloud.dataproc.v1.JobStatus.Substate.valueOf(substate_); + com.google.cloud.dataproc.v1.JobStatus.Substate result = + com.google.cloud.dataproc.v1.JobStatus.Substate.valueOf(substate_); return result == null ? com.google.cloud.dataproc.v1.JobStatus.Substate.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -652,8 +785,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (state_ != com.google.cloud.dataproc.v1.JobStatus.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } @@ -676,19 +808,16 @@ public int getSerializedSize() { size = 0; if (state_ != com.google.cloud.dataproc.v1.JobStatus.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, details_); } if (stateStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getStateStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStateStartTime()); } if (substate_ != com.google.cloud.dataproc.v1.JobStatus.Substate.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, substate_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, substate_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -698,7 +827,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.dataproc.v1.JobStatus)) { return super.equals(obj); @@ -706,12 +835,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.dataproc.v1.JobStatus other = (com.google.cloud.dataproc.v1.JobStatus) obj; if (state_ != other.state_) return false; - if (!getDetails() - .equals(other.getDetails())) return false; + if (!getDetails().equals(other.getDetails())) return false; if (hasStateStartTime() != other.hasStateStartTime()) return false; if (hasStateStartTime()) { - if (!getStateStartTime() - .equals(other.getStateStartTime())) return false; + if (!getStateStartTime().equals(other.getStateStartTime())) return false; } if (substate_ != other.substate_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -740,130 +867,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.JobStatus parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.JobStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.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.dataproc.v1.JobStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.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.dataproc.v1.JobStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.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.dataproc.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.dataproc.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.dataproc.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.dataproc.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; } /** + * + * *
    * Dataproc job status.
    * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.v1.JobStatus) com.google.cloud.dataproc.v1.JobStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobStatus.class, com.google.cloud.dataproc.v1.JobStatus.Builder.class); + com.google.cloud.dataproc.v1.JobStatus.class, + com.google.cloud.dataproc.v1.JobStatus.Builder.class); } // Construct using com.google.cloud.dataproc.v1.JobStatus.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -883,9 +1016,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; } @java.lang.Override @@ -904,7 +1037,8 @@ public com.google.cloud.dataproc.v1.JobStatus build() { @java.lang.Override public com.google.cloud.dataproc.v1.JobStatus buildPartial() { - com.google.cloud.dataproc.v1.JobStatus result = new com.google.cloud.dataproc.v1.JobStatus(this); + com.google.cloud.dataproc.v1.JobStatus result = + new com.google.cloud.dataproc.v1.JobStatus(this); result.state_ = state_; result.details_ = details_; if (stateStartTimeBuilder_ == null) { @@ -921,38 +1055,39 @@ public com.google.cloud.dataproc.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.dataproc.v1.JobStatus) { - return mergeFrom((com.google.cloud.dataproc.v1.JobStatus)other); + return mergeFrom((com.google.cloud.dataproc.v1.JobStatus) other); } else { super.mergeFrom(other); return this; @@ -1000,34 +1135,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - state_ = input.readEnum(); - - break; - } // case 8 - case 18: { - details_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 50: { - input.readMessage( - getStateStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - case 56: { - substate_ = input.readEnum(); - - break; - } // case 56 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + state_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + details_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 50: + { + input.readMessage(getStateStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 56: + { + substate_ = input.readEnum(); + + break; + } // case 56 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1040,51 +1178,73 @@ public Builder mergeFrom( private int state_ = 0; /** + * + * *
      * Output only. A state message specifying the overall job state.
      * 
* - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. A state message specifying the overall job state.
      * 
* - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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; } /** + * + * *
      * Output only. A state message specifying the overall job state.
      * 
* - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.dataproc.v1.JobStatus.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.JobStatus.State result = com.google.cloud.dataproc.v1.JobStatus.State.valueOf(state_); + com.google.cloud.dataproc.v1.JobStatus.State result = + com.google.cloud.dataproc.v1.JobStatus.State.valueOf(state_); return result == null ? com.google.cloud.dataproc.v1.JobStatus.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. A state message specifying the overall job state.
      * 
* - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1092,21 +1252,26 @@ public Builder setState(com.google.cloud.dataproc.v1.JobStatus.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. A state message specifying the overall job state.
      * 
* - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1114,19 +1279,23 @@ public Builder clearState() { private java.lang.Object details_ = ""; /** + * + * *
      * Optional. Output only. Job state details, such as an error
      * description if the state is <code>ERROR</code>.
      * 
* - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The details. */ public java.lang.String getDetails() { java.lang.Object ref = details_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; @@ -1135,21 +1304,24 @@ public java.lang.String getDetails() { } } /** + * + * *
      * Optional. Output only. Job state details, such as an error
      * description if the state is <code>ERROR</code>.
      * 
* - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for details. */ - public com.google.protobuf.ByteString - getDetailsBytes() { + public com.google.protobuf.ByteString getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); details_ = b; return b; } else { @@ -1157,57 +1329,70 @@ public java.lang.String getDetails() { } } /** + * + * *
      * Optional. Output only. Job state details, such as an error
      * description if the state is <code>ERROR</code>.
      * 
* - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The details to set. * @return This builder for chaining. */ - public Builder setDetails( - java.lang.String value) { + public Builder setDetails(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + details_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Output only. Job state details, such as an error
      * description if the state is <code>ERROR</code>.
      * 
* - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearDetails() { - + details_ = getDefaultInstance().getDetails(); onChanged(); return this; } /** + * + * *
      * Optional. Output only. Job state details, such as an error
      * description if the state is <code>ERROR</code>.
      * 
* - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes for details to set. * @return This builder for chaining. */ - public Builder setDetailsBytes( - com.google.protobuf.ByteString value) { + public Builder setDetailsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + details_ = value; onChanged(); return this; @@ -1215,39 +1400,58 @@ public Builder setDetailsBytes( private com.google.protobuf.Timestamp stateStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> stateStartTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + stateStartTimeBuilder_; /** + * + * *
      * Output only. The time when this state was entered.
      * 
* - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateStartTime field is set. */ public boolean hasStateStartTime() { return stateStartTimeBuilder_ != null || stateStartTime_ != null; } /** + * + * *
      * Output only. The time when this state was entered.
      * 
* - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateStartTime. */ public com.google.protobuf.Timestamp getStateStartTime() { if (stateStartTimeBuilder_ == null) { - return stateStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; + return stateStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateStartTime_; } else { return stateStartTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when this state was entered.
      * 
* - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStateStartTime(com.google.protobuf.Timestamp value) { if (stateStartTimeBuilder_ == null) { @@ -1263,14 +1467,17 @@ public Builder setStateStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when this state was entered.
      * 
* - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStateStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (stateStartTimeBuilder_ == null) { stateStartTime_ = builderForValue.build(); onChanged(); @@ -1281,17 +1488,23 @@ public Builder setStateStartTime( return this; } /** + * + * *
      * Output only. The time when this state was entered.
      * 
* - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { if (stateStartTimeBuilder_ == null) { if (stateStartTime_ != null) { stateStartTime_ = - com.google.protobuf.Timestamp.newBuilder(stateStartTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(stateStartTime_) + .mergeFrom(value) + .buildPartial(); } else { stateStartTime_ = value; } @@ -1303,11 +1516,15 @@ public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when this state was entered.
      * 
* - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStateStartTime() { if (stateStartTimeBuilder_ == null) { @@ -1321,48 +1538,64 @@ public Builder clearStateStartTime() { return this; } /** + * + * *
      * Output only. The time when this state was entered.
      * 
* - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStateStartTimeBuilder() { - + onChanged(); return getStateStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when this state was entered.
      * 
* - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { if (stateStartTimeBuilder_ != null) { return stateStartTimeBuilder_.getMessageOrBuilder(); } else { - return stateStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : stateStartTime_; + return stateStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateStartTime_; } } /** + * + * *
      * Output only. The time when this state was entered.
      * 
* - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStateStartTimeFieldBuilder() { if (stateStartTimeBuilder_ == null) { - stateStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStateStartTime(), - getParentForChildren(), - isClean()); + stateStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStateStartTime(), getParentForChildren(), isClean()); stateStartTime_ = null; } return stateStartTimeBuilder_; @@ -1370,55 +1603,77 @@ public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { private int substate_ = 0; /** + * + * *
      * Output only. Additional state information, which includes
      * status reported by the agent.
      * 
* - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for substate. */ - @java.lang.Override public int getSubstateValue() { + @java.lang.Override + public int getSubstateValue() { return substate_; } /** + * + * *
      * Output only. Additional state information, which includes
      * status reported by the agent.
      * 
* - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for substate to set. * @return This builder for chaining. */ public Builder setSubstateValue(int value) { - + substate_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Additional state information, which includes
      * status reported by the agent.
      * 
* - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The substate. */ @java.lang.Override public com.google.cloud.dataproc.v1.JobStatus.Substate getSubstate() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.JobStatus.Substate result = com.google.cloud.dataproc.v1.JobStatus.Substate.valueOf(substate_); + com.google.cloud.dataproc.v1.JobStatus.Substate result = + com.google.cloud.dataproc.v1.JobStatus.Substate.valueOf(substate_); return result == null ? com.google.cloud.dataproc.v1.JobStatus.Substate.UNRECOGNIZED : result; } /** + * + * *
      * Output only. Additional state information, which includes
      * status reported by the agent.
      * 
* - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The substate to set. * @return This builder for chaining. */ @@ -1426,29 +1681,34 @@ public Builder setSubstate(com.google.cloud.dataproc.v1.JobStatus.Substate value if (value == null) { throw new NullPointerException(); } - + substate_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Additional state information, which includes
      * status reported by the agent.
      * 
* - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearSubstate() { - + substate_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1458,12 +1718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.JobStatus) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobStatus) private static final com.google.cloud.dataproc.v1.JobStatus DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.JobStatus(); } @@ -1472,27 +1732,27 @@ public static com.google.cloud.dataproc.v1.JobStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1507,6 +1767,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.JobStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java similarity index 51% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java index fe1a60c3378f..512fa440cd4e 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java @@ -1,97 +1,156 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface JobStatusOrBuilder extends +public interface JobStatusOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.JobStatus) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. A state message specifying the overall job state.
    * 
* - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. A state message specifying the overall job state.
    * 
* - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.dataproc.v1.JobStatus.State getState(); /** + * + * *
    * Optional. Output only. Job state details, such as an error
    * description if the state is <code>ERROR</code>.
    * 
* - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The details. */ java.lang.String getDetails(); /** + * + * *
    * Optional. Output only. Job state details, such as an error
    * description if the state is <code>ERROR</code>.
    * 
* - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for details. */ - com.google.protobuf.ByteString - getDetailsBytes(); + com.google.protobuf.ByteString getDetailsBytes(); /** + * + * *
    * Output only. The time when this state was entered.
    * 
* - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateStartTime field is set. */ boolean hasStateStartTime(); /** + * + * *
    * Output only. The time when this state was entered.
    * 
* - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateStartTime. */ com.google.protobuf.Timestamp getStateStartTime(); /** + * + * *
    * Output only. The time when this state was entered.
    * 
* - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder(); /** + * + * *
    * Output only. Additional state information, which includes
    * status reported by the agent.
    * 
* - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for substate. */ int getSubstateValue(); /** + * + * *
    * Output only. Additional state information, which includes
    * status reported by the agent.
    * 
* - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The substate. */ com.google.cloud.dataproc.v1.JobStatus.Substate getSubstate(); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java new file mode 100644 index 000000000000..2c48583f8eb1 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java @@ -0,0 +1,842 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/jobs.proto + +package com.google.cloud.dataproc.v1; + +public final class JobsProto { + private JobsProto() {} + + 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_dataproc_v1_LoggingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_QueryList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_HiveJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PigJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_JobReference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_Job_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DeleteJobRequest_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/dataproc/v1/jobs.proto\022\030g" + + "oogle.cloud.dataproc.v1\032\034google/api/anno" + + "tations.proto\032\027google/api/client.proto\032\037" + + "google/api/field_behavior.proto\032#google/" + + "longrunning/operations.proto\032\033google/pro" + + "tobuf/empty.proto\032 google/protobuf/field" + + "_mask.proto\032\037google/protobuf/timestamp.p" + + "roto\"\301\002\n\rLoggingConfig\022W\n\021driver_log_lev" + + "els\030\002 \003(\0132<.google.cloud.dataproc.v1.Log" + + "gingConfig.DriverLogLevelsEntry\032e\n\024Drive" + + "rLogLevelsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 " + + "\001(\0162-.google.cloud.dataproc.v1.LoggingCo" + + "nfig.Level:\0028\001\"p\n\005Level\022\025\n\021LEVEL_UNSPECI" + + "FIED\020\000\022\007\n\003ALL\020\001\022\t\n\005TRACE\020\002\022\t\n\005DEBUG\020\003\022\010\n" + + "\004INFO\020\004\022\010\n\004WARN\020\005\022\t\n\005ERROR\020\006\022\t\n\005FATAL\020\007\022" + + "\007\n\003OFF\020\010\"\361\002\n\tHadoopJob\022\033\n\021main_jar_file_" + + "uri\030\001 \001(\tH\000\022\024\n\nmain_class\030\002 \001(\tH\000\022\021\n\004arg" + + "s\030\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 \003(\tB\003\340A\001" + + "\022\026\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014archive_uris" + + "\030\006 \003(\tB\003\340A\001\022L\n\nproperties\030\007 \003(\01323.google" + + ".cloud.dataproc.v1.HadoopJob.PropertiesE" + + "ntryB\003\340A\001\022D\n\016logging_config\030\010 \001(\0132\'.goog" + + "le.cloud.dataproc.v1.LoggingConfigB\003\340A\001\032" + + "1\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001B\010\n\006driver\"\357\002\n\010SparkJob\022\033\n\021mai" + + "n_jar_file_uri\030\001 \001(\tH\000\022\024\n\nmain_class\030\002 \001" + + "(\tH\000\022\021\n\004args\030\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris" + + "\030\004 \003(\tB\003\340A\001\022\026\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014a" + + "rchive_uris\030\006 \003(\tB\003\340A\001\022K\n\nproperties\030\007 \003" + + "(\01322.google.cloud.dataproc.v1.SparkJob.P" + + "ropertiesEntryB\003\340A\001\022D\n\016logging_config\030\010 " + + "\001(\0132\'.google.cloud.dataproc.v1.LoggingCo" + + "nfigB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006driver\"\370\002\n\nPySpa" + + "rkJob\022!\n\024main_python_file_uri\030\001 \001(\tB\003\340A\002" + + "\022\021\n\004args\030\002 \003(\tB\003\340A\001\022\035\n\020python_file_uris\030" + + "\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 \003(\tB\003\340A\001\022\026" + + "\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014archive_uris\030\006" + + " \003(\tB\003\340A\001\022M\n\nproperties\030\007 \003(\01324.google.c" + + "loud.dataproc.v1.PySparkJob.PropertiesEn" + + "tryB\003\340A\001\022D\n\016logging_config\030\010 \001(\0132\'.googl" + + "e.cloud.dataproc.v1.LoggingConfigB\003\340A\001\0321" + + "\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"!\n\tQueryList\022\024\n\007queries\030\001 \003(\tB" + + "\003\340A\002\"\265\003\n\007HiveJob\022\030\n\016query_file_uri\030\001 \001(\t" + + "H\000\0229\n\nquery_list\030\002 \001(\0132#.google.cloud.da" + + "taproc.v1.QueryListH\000\022 \n\023continue_on_fai" + + "lure\030\003 \001(\010B\003\340A\001\022U\n\020script_variables\030\004 \003(" + + "\01326.google.cloud.dataproc.v1.HiveJob.Scr" + + "iptVariablesEntryB\003\340A\001\022J\n\nproperties\030\005 \003" + + "(\01321.google.cloud.dataproc.v1.HiveJob.Pr" + + "opertiesEntryB\003\340A\001\022\032\n\rjar_file_uris\030\006 \003(" + + "\tB\003\340A\001\0326\n\024ScriptVariablesEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017PropertiesEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007que" + + "ries\"\345\003\n\013SparkSqlJob\022\030\n\016query_file_uri\030\001" + + " \001(\tH\000\0229\n\nquery_list\030\002 \001(\0132#.google.clou" + + "d.dataproc.v1.QueryListH\000\022Y\n\020script_vari" + + "ables\030\003 \003(\0132:.google.cloud.dataproc.v1.S" + + "parkSqlJob.ScriptVariablesEntryB\003\340A\001\022N\n\n" + + "properties\030\004 \003(\01325.google.cloud.dataproc" + + ".v1.SparkSqlJob.PropertiesEntryB\003\340A\001\022\032\n\r" + + "jar_file_uris\0308 \003(\tB\003\340A\001\022D\n\016logging_conf" + + "ig\030\006 \001(\0132\'.google.cloud.dataproc.v1.Logg" + + "ingConfigB\003\340A\001\0326\n\024ScriptVariablesEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017Proper" + + "tiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001B\t\n\007queries\"\370\003\n\006PigJob\022\030\n\016query_file_ur" + + "i\030\001 \001(\tH\000\0229\n\nquery_list\030\002 \001(\0132#.google.c" + + "loud.dataproc.v1.QueryListH\000\022 \n\023continue" + + "_on_failure\030\003 \001(\010B\003\340A\001\022T\n\020script_variabl" + + "es\030\004 \003(\01325.google.cloud.dataproc.v1.PigJ" + + "ob.ScriptVariablesEntryB\003\340A\001\022I\n\nproperti" + + "es\030\005 \003(\01320.google.cloud.dataproc.v1.PigJ" + + "ob.PropertiesEntryB\003\340A\001\022\032\n\rjar_file_uris" + + "\030\006 \003(\tB\003\340A\001\022D\n\016logging_config\030\007 \001(\0132\'.go" + + "ogle.cloud.dataproc.v1.LoggingConfigB\003\340A" + + "\001\0326\n\024ScriptVariablesEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\0321\n\017PropertiesEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007queries\"" + + "\266\002\n\tSparkRJob\022\034\n\017main_r_file_uri\030\001 \001(\tB\003" + + "\340A\002\022\021\n\004args\030\002 \003(\tB\003\340A\001\022\026\n\tfile_uris\030\003 \003(" + + "\tB\003\340A\001\022\031\n\014archive_uris\030\004 \003(\tB\003\340A\001\022L\n\npro" + + "perties\030\005 \003(\01323.google.cloud.dataproc.v1" + + ".SparkRJob.PropertiesEntryB\003\340A\001\022D\n\016loggi" + + "ng_config\030\006 \001(\0132\'.google.cloud.dataproc." + + "v1.LoggingConfigB\003\340A\001\0321\n\017PropertiesEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\212\003\n\tPre" + + "stoJob\022\030\n\016query_file_uri\030\001 \001(\tH\000\0229\n\nquer" + + "y_list\030\002 \001(\0132#.google.cloud.dataproc.v1." + + "QueryListH\000\022 \n\023continue_on_failure\030\003 \001(\010" + + "B\003\340A\001\022\032\n\routput_format\030\004 \001(\tB\003\340A\001\022\030\n\013cli" + + "ent_tags\030\005 \003(\tB\003\340A\001\022L\n\nproperties\030\006 \003(\0132" + + "3.google.cloud.dataproc.v1.PrestoJob.Pro" + + "pertiesEntryB\003\340A\001\022D\n\016logging_config\030\007 \001(" + + "\0132\'.google.cloud.dataproc.v1.LoggingConf" + + "igB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007queries\"\322\001\n\014JobPla" + + "cement\022\031\n\014cluster_name\030\001 \001(\tB\003\340A\002\022\031\n\014clu" + + "ster_uuid\030\002 \001(\tB\003\340A\003\022V\n\016cluster_labels\030\003" + + " \003(\01329.google.cloud.dataproc.v1.JobPlace" + + "ment.ClusterLabelsEntryB\003\340A\001\0324\n\022ClusterL" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"\331\003\n\tJobStatus\022=\n\005state\030\001 \001(\0162).google" + + ".cloud.dataproc.v1.JobStatus.StateB\003\340A\003\022" + + "\027\n\007details\030\002 \001(\tB\006\340A\003\340A\001\0229\n\020state_start_" + + "time\030\006 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\022C\n\010substate\030\007 \001(\0162,.google.cloud.dat" + + "aproc.v1.JobStatus.SubstateB\003\340A\003\"\251\001\n\005Sta" + + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\016" + + "\n\nSETUP_DONE\020\010\022\013\n\007RUNNING\020\002\022\022\n\016CANCEL_PE" + + "NDING\020\003\022\022\n\016CANCEL_STARTED\020\007\022\r\n\tCANCELLED" + + "\020\004\022\010\n\004DONE\020\005\022\t\n\005ERROR\020\006\022\023\n\017ATTEMPT_FAILU" + + "RE\020\t\"H\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022\r\n\tSUB" + + "MITTED\020\001\022\n\n\006QUEUED\020\002\022\020\n\014STALE_STATUS\020\003\"<" + + "\n\014JobReference\022\027\n\nproject_id\030\001 \001(\tB\003\340A\001\022" + + "\023\n\006job_id\030\002 \001(\tB\003\340A\001\"\245\002\n\017YarnApplication" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022C\n\005state\030\002 \001(\0162/.goo" + + "gle.cloud.dataproc.v1.YarnApplication.St" + + "ateB\003\340A\002\022\025\n\010progress\030\003 \001(\002B\003\340A\002\022\031\n\014track" + + "ing_url\030\004 \001(\tB\003\340A\001\"\207\001\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\007\n\003NEW\020\001\022\016\n\nNEW_SAVING\020\002\022\r\n\t" + + "SUBMITTED\020\003\022\014\n\010ACCEPTED\020\004\022\013\n\007RUNNING\020\005\022\014" + + "\n\010FINISHED\020\006\022\n\n\006FAILED\020\007\022\n\n\006KILLED\020\010\"\330\t\n" + + "\003Job\022>\n\treference\030\001 \001(\0132&.google.cloud.d" + + "ataproc.v1.JobReferenceB\003\340A\001\022>\n\tplacemen" + + "t\030\002 \001(\0132&.google.cloud.dataproc.v1.JobPl" + + "acementB\003\340A\002\022>\n\nhadoop_job\030\003 \001(\0132#.googl" + + "e.cloud.dataproc.v1.HadoopJobB\003\340A\001H\000\022<\n\t" + + "spark_job\030\004 \001(\0132\".google.cloud.dataproc." + + "v1.SparkJobB\003\340A\001H\000\022@\n\013pyspark_job\030\005 \001(\0132" + + "$.google.cloud.dataproc.v1.PySparkJobB\003\340" + + "A\001H\000\022:\n\010hive_job\030\006 \001(\0132!.google.cloud.da" + + "taproc.v1.HiveJobB\003\340A\001H\000\0228\n\007pig_job\030\007 \001(" + + "\0132 .google.cloud.dataproc.v1.PigJobB\003\340A\001" + + "H\000\022?\n\013spark_r_job\030\025 \001(\0132#.google.cloud.d" + + "ataproc.v1.SparkRJobB\003\340A\001H\000\022C\n\rspark_sql" + + "_job\030\014 \001(\0132%.google.cloud.dataproc.v1.Sp" + + "arkSqlJobB\003\340A\001H\000\022>\n\npresto_job\030\027 \001(\0132#.g" + + "oogle.cloud.dataproc.v1.PrestoJobB\003\340A\001H\000" + + "\0228\n\006status\030\010 \001(\0132#.google.cloud.dataproc" + + ".v1.JobStatusB\003\340A\003\022@\n\016status_history\030\r \003" + + "(\0132#.google.cloud.dataproc.v1.JobStatusB" + + "\003\340A\003\022I\n\021yarn_applications\030\t \003(\0132).google" + + ".cloud.dataproc.v1.YarnApplicationB\003\340A\003\022" + + "\'\n\032driver_output_resource_uri\030\021 \001(\tB\003\340A\003" + + "\022%\n\030driver_control_files_uri\030\017 \001(\tB\003\340A\003\022" + + ">\n\006labels\030\022 \003(\0132).google.cloud.dataproc." + + "v1.Job.LabelsEntryB\003\340A\001\022@\n\nscheduling\030\024 " + + "\001(\0132\'.google.cloud.dataproc.v1.JobSchedu" + + "lingB\003\340A\001\022\025\n\010job_uuid\030\026 \001(\tB\003\340A\003\022\021\n\004done" + + "\030\030 \001(\010B\003\340A\003\022W\n\030driver_scheduling_config\030" + + "\033 \001(\01320.google.cloud.dataproc.v1.DriverS" + + "chedulingConfigB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\n\n\010type_job\"" + + "E\n\026DriverSchedulingConfig\022\026\n\tmemory_mb\030\001" + + " \001(\005B\003\340A\002\022\023\n\006vcores\030\002 \001(\005B\003\340A\002\"T\n\rJobSch" + + "eduling\022\"\n\025max_failures_per_hour\030\001 \001(\005B\003" + + "\340A\001\022\037\n\022max_failures_total\030\002 \001(\005B\003\340A\001\"\212\001\n" + + "\020SubmitJobRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340" + + "A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022/\n\003job\030\002 \001(\0132\035.g" + + "oogle.cloud.dataproc.v1.JobB\003\340A\002\022\027\n\nrequ" + + "est_id\030\004 \001(\tB\003\340A\001\"\256\001\n\013JobMetadata\022\023\n\006job" + + "_id\030\001 \001(\tB\003\340A\003\0228\n\006status\030\002 \001(\0132#.google." + + "cloud.dataproc.v1.JobStatusB\003\340A\003\022\033\n\016oper" + + "ation_type\030\003 \001(\tB\003\340A\003\0223\n\nstart_time\030\004 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\"R\n\rGe" + + "tJobRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006" + + "region\030\003 \001(\tB\003\340A\002\022\023\n\006job_id\030\002 \001(\tB\003\340A\002\"\263" + + "\002\n\017ListJobsRequest\022\027\n\nproject_id\030\001 \001(\tB\003" + + "\340A\002\022\023\n\006region\030\006 \001(\tB\003\340A\002\022\026\n\tpage_size\030\002 " + + "\001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\031\n\014clu" + + "ster_name\030\004 \001(\tB\003\340A\001\022Y\n\021job_state_matche" + + "r\030\005 \001(\01629.google.cloud.dataproc.v1.ListJ" + + "obsRequest.JobStateMatcherB\003\340A\001\022\023\n\006filte" + + "r\030\007 \001(\tB\003\340A\001\"6\n\017JobStateMatcher\022\007\n\003ALL\020\000" + + "\022\n\n\006ACTIVE\020\001\022\016\n\nNON_ACTIVE\020\002\"\274\001\n\020UpdateJ" + + "obRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006re" + + "gion\030\002 \001(\tB\003\340A\002\022\023\n\006job_id\030\003 \001(\tB\003\340A\002\022/\n\003" + + "job\030\004 \001(\0132\035.google.cloud.dataproc.v1.Job" + + "B\003\340A\002\0224\n\013update_mask\030\005 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\002\"b\n\020ListJobsResponse\022" + + "0\n\004jobs\030\001 \003(\0132\035.google.cloud.dataproc.v1" + + ".JobB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"" + + "U\n\020CancelJobRequest\022\027\n\nproject_id\030\001 \001(\tB" + + "\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\023\n\006job_id\030\002 \001(" + + "\tB\003\340A\002\"U\n\020DeleteJobRequest\022\027\n\nproject_id" + + "\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\023\n\006job_" + + "id\030\002 \001(\tB\003\340A\0022\374\n\n\rJobController\022\261\001\n\tSubm" + + "itJob\022*.google.cloud.dataproc.v1.SubmitJ" + + "obRequest\032\035.google.cloud.dataproc.v1.Job" + + "\"Y\202\323\344\223\002;\"6/v1/projects/{project_id}/regi" + + "ons/{region}/jobs:submit:\001*\332A\025project_id" + + ",region,job\022\336\001\n\024SubmitJobAsOperation\022*.g" + + "oogle.cloud.dataproc.v1.SubmitJobRequest" + + "\032\035.google.longrunning.Operation\"{\202\323\344\223\002F\"" + + "A/v1/projects/{project_id}/regions/{regi" + + "on}/jobs:submitAsOperation:\001*\332A\027project_" + + "id, region, job\312A\022\n\003Job\022\013JobMetadata\022\255\001\n" + + "\006GetJob\022\'.google.cloud.dataproc.v1.GetJo" + + "bRequest\032\035.google.cloud.dataproc.v1.Job\"" + + "[\202\323\344\223\002:\0228/v1/projects/{project_id}/regio" + + "ns/{region}/jobs/{job_id}\332A\030project_id,r" + + "egion,job_id\022\311\001\n\010ListJobs\022).google.cloud" + + ".dataproc.v1.ListJobsRequest\032*.google.cl" + + "oud.dataproc.v1.ListJobsResponse\"f\202\323\344\223\0021" + + "\022//v1/projects/{project_id}/regions/{reg" + + "ion}/jobs\332A\021project_id,region\332A\030project_" + + "id,region,filter\022\235\001\n\tUpdateJob\022*.google." + + "cloud.dataproc.v1.UpdateJobRequest\032\035.goo" + + "gle.cloud.dataproc.v1.Job\"E\202\323\344\223\002?28/v1/p" + + "rojects/{project_id}/regions/{region}/jo" + + "bs/{job_id}:\003job\022\275\001\n\tCancelJob\022*.google." + + "cloud.dataproc.v1.CancelJobRequest\032\035.goo" + + "gle.cloud.dataproc.v1.Job\"e\202\323\344\223\002D\"?/v1/p" + + "rojects/{project_id}/regions/{region}/jo" + + "bs/{job_id}:cancel:\001*\332A\030project_id,regio" + + "n,job_id\022\254\001\n\tDeleteJob\022*.google.cloud.da" + + "taproc.v1.DeleteJobRequest\032\026.google.prot" + + "obuf.Empty\"[\202\323\344\223\002:*8/v1/projects/{projec" + + "t_id}/regions/{region}/jobs/{job_id}\332A\030p" + + "roject_id,region,job_id\032K\312A\027dataproc.goo" + + "gleapis.com\322A.https://www.googleapis.com" + + "/auth/cloud-platformBm\n\034com.google.cloud" + + ".dataproc.v1B\tJobsProtoP\001Z@google.golang" + + ".org/genproto/googleapis/cloud/dataproc/" + + "v1;dataprocb\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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor, + new java.lang.String[] { + "DriverLogLevels", + }); + internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor, + new java.lang.String[] { + "MainJarFileUri", + "MainClass", + "Args", + "JarFileUris", + "FileUris", + "ArchiveUris", + "Properties", + "LoggingConfig", + "Driver", + }); + internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_SparkJob_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkJob_descriptor, + new java.lang.String[] { + "MainJarFileUri", + "MainClass", + "Args", + "JarFileUris", + "FileUris", + "ArchiveUris", + "Properties", + "LoggingConfig", + "Driver", + }); + internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_SparkJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor, + new java.lang.String[] { + "MainPythonFileUri", + "Args", + "PythonFileUris", + "JarFileUris", + "FileUris", + "ArchiveUris", + "Properties", + "LoggingConfig", + }); + internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_QueryList_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_QueryList_descriptor, + new java.lang.String[] { + "Queries", + }); + internal_static_google_cloud_dataproc_v1_HiveJob_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_HiveJob_descriptor, + new java.lang.String[] { + "QueryFileUri", + "QueryList", + "ContinueOnFailure", + "ScriptVariables", + "Properties", + "JarFileUris", + "Queries", + }); + internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_HiveJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_HiveJob_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor, + new java.lang.String[] { + "QueryFileUri", + "QueryList", + "ScriptVariables", + "Properties", + "JarFileUris", + "LoggingConfig", + "Queries", + }); + internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_PigJob_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PigJob_descriptor, + new java.lang.String[] { + "QueryFileUri", + "QueryList", + "ContinueOnFailure", + "ScriptVariables", + "Properties", + "JarFileUris", + "LoggingConfig", + "Queries", + }); + internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_PigJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_PigJob_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor, + new java.lang.String[] { + "MainRFileUri", "Args", "FileUris", "ArchiveUris", "Properties", "LoggingConfig", + }); + internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor, + new java.lang.String[] { + "QueryFileUri", + "QueryList", + "ContinueOnFailure", + "OutputFormat", + "ClientTags", + "Properties", + "LoggingConfig", + "Queries", + }); + internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor, + new java.lang.String[] { + "ClusterName", "ClusterUuid", "ClusterLabels", + }); + internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_JobStatus_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_JobStatus_descriptor, + new java.lang.String[] { + "State", "Details", "StateStartTime", "Substate", + }); + internal_static_google_cloud_dataproc_v1_JobReference_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_JobReference_descriptor, + new java.lang.String[] { + "ProjectId", "JobId", + }); + internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor, + new java.lang.String[] { + "Name", "State", "Progress", "TrackingUrl", + }); + internal_static_google_cloud_dataproc_v1_Job_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_Job_descriptor, + new java.lang.String[] { + "Reference", + "Placement", + "HadoopJob", + "SparkJob", + "PysparkJob", + "HiveJob", + "PigJob", + "SparkRJob", + "SparkSqlJob", + "PrestoJob", + "Status", + "StatusHistory", + "YarnApplications", + "DriverOutputResourceUri", + "DriverControlFilesUri", + "Labels", + "Scheduling", + "JobUuid", + "Done", + "DriverSchedulingConfig", + "TypeJob", + }); + internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_Job_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_descriptor, + new java.lang.String[] { + "MemoryMb", "Vcores", + }); + internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor, + new java.lang.String[] { + "MaxFailuresPerHour", "MaxFailuresTotal", + }); + internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor, + new java.lang.String[] { + "ProjectId", "Region", "Job", "RequestId", + }); + internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor, + new java.lang.String[] { + "JobId", "Status", "OperationType", "StartTime", + }); + internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor, + new java.lang.String[] { + "ProjectId", "Region", "JobId", + }); + internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor, + new java.lang.String[] { + "ProjectId", + "Region", + "PageSize", + "PageToken", + "ClusterName", + "JobStateMatcher", + "Filter", + }); + internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor, + new java.lang.String[] { + "ProjectId", "Region", "JobId", "Job", "UpdateMask", + }); + internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor, + new java.lang.String[] { + "Jobs", "NextPageToken", + }); + internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor, + new java.lang.String[] { + "ProjectId", "Region", "JobId", + }); + internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_dataproc_v1_DeleteJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor, + new java.lang.String[] { + "ProjectId", "Region", "JobId", + }); + 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.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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java similarity index 75% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java index 37a13c4af469..3e4810716c61 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Specifies Kerberos related configuration.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.KerberosConfig} */ -public final class KerberosConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class KerberosConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.KerberosConfig) KerberosConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KerberosConfig.newBuilder() to construct. private KerberosConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private KerberosConfig() { rootPrincipalPasswordUri_ = ""; kmsKeyUri_ = ""; @@ -37,38 +55,42 @@ private KerberosConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new KerberosConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.KerberosConfig.class, com.google.cloud.dataproc.v1.KerberosConfig.Builder.class); + com.google.cloud.dataproc.v1.KerberosConfig.class, + com.google.cloud.dataproc.v1.KerberosConfig.Builder.class); } public static final int ENABLE_KERBEROS_FIELD_NUMBER = 1; private boolean enableKerberos_; /** + * + * *
    * Optional. Flag to indicate whether to Kerberize the cluster (default:
    * false). Set this field to true to enable Kerberos on a cluster.
    * 
* * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableKerberos. */ @java.lang.Override @@ -79,12 +101,15 @@ public boolean getEnableKerberos() { public static final int ROOT_PRINCIPAL_PASSWORD_URI_FIELD_NUMBER = 2; private volatile java.lang.Object rootPrincipalPasswordUri_; /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
    * principal password.
    * 
* * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The rootPrincipalPasswordUri. */ @java.lang.Override @@ -93,30 +118,30 @@ public java.lang.String getRootPrincipalPasswordUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootPrincipalPasswordUri_ = s; return s; } } /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
    * principal password.
    * 
* * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for rootPrincipalPasswordUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getRootPrincipalPasswordUriBytes() { + public com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes() { java.lang.Object ref = rootPrincipalPasswordUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rootPrincipalPasswordUri_ = b; return b; } else { @@ -127,12 +152,15 @@ public java.lang.String getRootPrincipalPasswordUri() { public static final int KMS_KEY_URI_FIELD_NUMBER = 3; private volatile java.lang.Object kmsKeyUri_; /** + * + * *
    * Optional. The uri of the KMS key used to encrypt various sensitive
    * files.
    * 
* * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kmsKeyUri. */ @java.lang.Override @@ -141,30 +169,30 @@ public java.lang.String getKmsKeyUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyUri_ = s; return s; } } /** + * + * *
    * Optional. The uri of the KMS key used to encrypt various sensitive
    * files.
    * 
* * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for kmsKeyUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyUriBytes() { + public com.google.protobuf.ByteString getKmsKeyUriBytes() { java.lang.Object ref = kmsKeyUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyUri_ = b; return b; } else { @@ -175,6 +203,8 @@ public java.lang.String getKmsKeyUri() { public static final int KEYSTORE_URI_FIELD_NUMBER = 4; private volatile java.lang.Object keystoreUri_; /** + * + * *
    * Optional. The Cloud Storage URI of the keystore file used for SSL
    * encryption. If not provided, Dataproc will provide a self-signed
@@ -182,6 +212,7 @@ public java.lang.String getKmsKeyUri() {
    * 
* * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The keystoreUri. */ @java.lang.Override @@ -190,14 +221,15 @@ public java.lang.String getKeystoreUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keystoreUri_ = s; return s; } } /** + * + * *
    * Optional. The Cloud Storage URI of the keystore file used for SSL
    * encryption. If not provided, Dataproc will provide a self-signed
@@ -205,16 +237,15 @@ public java.lang.String getKeystoreUri() {
    * 
* * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for keystoreUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeystoreUriBytes() { + public com.google.protobuf.ByteString getKeystoreUriBytes() { java.lang.Object ref = keystoreUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); keystoreUri_ = b; return b; } else { @@ -225,6 +256,8 @@ public java.lang.String getKeystoreUri() { public static final int TRUSTSTORE_URI_FIELD_NUMBER = 5; private volatile java.lang.Object truststoreUri_; /** + * + * *
    * Optional. The Cloud Storage URI of the truststore file used for SSL
    * encryption. If not provided, Dataproc will provide a self-signed
@@ -232,6 +265,7 @@ public java.lang.String getKeystoreUri() {
    * 
* * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The truststoreUri. */ @java.lang.Override @@ -240,14 +274,15 @@ public java.lang.String getTruststoreUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); truststoreUri_ = s; return s; } } /** + * + * *
    * Optional. The Cloud Storage URI of the truststore file used for SSL
    * encryption. If not provided, Dataproc will provide a self-signed
@@ -255,16 +290,15 @@ public java.lang.String getTruststoreUri() {
    * 
* * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for truststoreUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getTruststoreUriBytes() { + public com.google.protobuf.ByteString getTruststoreUriBytes() { java.lang.Object ref = truststoreUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); truststoreUri_ = b; return b; } else { @@ -275,6 +309,8 @@ public java.lang.String getTruststoreUri() { public static final int KEYSTORE_PASSWORD_URI_FIELD_NUMBER = 6; private volatile java.lang.Object keystorePasswordUri_; /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided keystore. For the self-signed certificate,
@@ -282,6 +318,7 @@ public java.lang.String getTruststoreUri() {
    * 
* * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The keystorePasswordUri. */ @java.lang.Override @@ -290,14 +327,15 @@ public java.lang.String getKeystorePasswordUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keystorePasswordUri_ = s; return s; } } /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided keystore. For the self-signed certificate,
@@ -305,16 +343,15 @@ public java.lang.String getKeystorePasswordUri() {
    * 
* * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for keystorePasswordUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeystorePasswordUriBytes() { + public com.google.protobuf.ByteString getKeystorePasswordUriBytes() { java.lang.Object ref = keystorePasswordUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); keystorePasswordUri_ = b; return b; } else { @@ -325,6 +362,8 @@ public java.lang.String getKeystorePasswordUri() { public static final int KEY_PASSWORD_URI_FIELD_NUMBER = 7; private volatile java.lang.Object keyPasswordUri_; /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided key. For the self-signed certificate, this
@@ -332,6 +371,7 @@ public java.lang.String getKeystorePasswordUri() {
    * 
* * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The keyPasswordUri. */ @java.lang.Override @@ -340,14 +380,15 @@ public java.lang.String getKeyPasswordUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyPasswordUri_ = s; return s; } } /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided key. For the self-signed certificate, this
@@ -355,16 +396,15 @@ public java.lang.String getKeyPasswordUri() {
    * 
* * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for keyPasswordUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyPasswordUriBytes() { + public com.google.protobuf.ByteString getKeyPasswordUriBytes() { java.lang.Object ref = keyPasswordUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); keyPasswordUri_ = b; return b; } else { @@ -375,6 +415,8 @@ public java.lang.String getKeyPasswordUri() { public static final int TRUSTSTORE_PASSWORD_URI_FIELD_NUMBER = 8; private volatile java.lang.Object truststorePasswordUri_; /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided truststore. For the self-signed certificate,
@@ -382,6 +424,7 @@ public java.lang.String getKeyPasswordUri() {
    * 
* * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The truststorePasswordUri. */ @java.lang.Override @@ -390,14 +433,15 @@ public java.lang.String getTruststorePasswordUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); truststorePasswordUri_ = s; return s; } } /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided truststore. For the self-signed certificate,
@@ -405,16 +449,15 @@ public java.lang.String getTruststorePasswordUri() {
    * 
* * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for truststorePasswordUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getTruststorePasswordUriBytes() { + public com.google.protobuf.ByteString getTruststorePasswordUriBytes() { java.lang.Object ref = truststorePasswordUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); truststorePasswordUri_ = b; return b; } else { @@ -425,12 +468,15 @@ public java.lang.String getTruststorePasswordUri() { public static final int CROSS_REALM_TRUST_REALM_FIELD_NUMBER = 9; private volatile java.lang.Object crossRealmTrustRealm_; /** + * + * *
    * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
    * the user enable cross realm trust.
    * 
* * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The crossRealmTrustRealm. */ @java.lang.Override @@ -439,30 +485,30 @@ public java.lang.String getCrossRealmTrustRealm() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crossRealmTrustRealm_ = s; return s; } } /** + * + * *
    * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
    * the user enable cross realm trust.
    * 
* * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for crossRealmTrustRealm. */ @java.lang.Override - public com.google.protobuf.ByteString - getCrossRealmTrustRealmBytes() { + public com.google.protobuf.ByteString getCrossRealmTrustRealmBytes() { java.lang.Object ref = crossRealmTrustRealm_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crossRealmTrustRealm_ = b; return b; } else { @@ -473,12 +519,15 @@ public java.lang.String getCrossRealmTrustRealm() { public static final int CROSS_REALM_TRUST_KDC_FIELD_NUMBER = 10; private volatile java.lang.Object crossRealmTrustKdc_; /** + * + * *
    * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
    * realm trust relationship.
    * 
* * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The crossRealmTrustKdc. */ @java.lang.Override @@ -487,30 +536,30 @@ public java.lang.String getCrossRealmTrustKdc() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crossRealmTrustKdc_ = s; return s; } } /** + * + * *
    * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
    * realm trust relationship.
    * 
* * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for crossRealmTrustKdc. */ @java.lang.Override - public com.google.protobuf.ByteString - getCrossRealmTrustKdcBytes() { + public com.google.protobuf.ByteString getCrossRealmTrustKdcBytes() { java.lang.Object ref = crossRealmTrustKdc_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crossRealmTrustKdc_ = b; return b; } else { @@ -521,12 +570,16 @@ public java.lang.String getCrossRealmTrustKdc() { public static final int CROSS_REALM_TRUST_ADMIN_SERVER_FIELD_NUMBER = 11; private volatile java.lang.Object crossRealmTrustAdminServer_; /** + * + * *
    * Optional. The admin server (IP or hostname) for the remote trusted realm in
    * a cross realm trust relationship.
    * 
* - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; + * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The crossRealmTrustAdminServer. */ @java.lang.Override @@ -535,30 +588,31 @@ public java.lang.String getCrossRealmTrustAdminServer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crossRealmTrustAdminServer_ = s; return s; } } /** + * + * *
    * Optional. The admin server (IP or hostname) for the remote trusted realm in
    * a cross realm trust relationship.
    * 
* - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; + * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for crossRealmTrustAdminServer. */ @java.lang.Override - public com.google.protobuf.ByteString - getCrossRealmTrustAdminServerBytes() { + public com.google.protobuf.ByteString getCrossRealmTrustAdminServerBytes() { java.lang.Object ref = crossRealmTrustAdminServer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crossRealmTrustAdminServer_ = b; return b; } else { @@ -569,13 +623,18 @@ public java.lang.String getCrossRealmTrustAdminServer() { public static final int CROSS_REALM_TRUST_SHARED_PASSWORD_URI_FIELD_NUMBER = 12; private volatile java.lang.Object crossRealmTrustSharedPasswordUri_; /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * shared password between the on-cluster Kerberos realm and the remote
    * trusted realm, in a cross realm trust relationship.
    * 
* - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The crossRealmTrustSharedPasswordUri. */ @java.lang.Override @@ -584,31 +643,33 @@ public java.lang.String getCrossRealmTrustSharedPasswordUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crossRealmTrustSharedPasswordUri_ = s; return s; } } /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * shared password between the on-cluster Kerberos realm and the remote
    * trusted realm, in a cross realm trust relationship.
    * 
* - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for crossRealmTrustSharedPasswordUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getCrossRealmTrustSharedPasswordUriBytes() { + public com.google.protobuf.ByteString getCrossRealmTrustSharedPasswordUriBytes() { java.lang.Object ref = crossRealmTrustSharedPasswordUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crossRealmTrustSharedPasswordUri_ = b; return b; } else { @@ -619,12 +680,15 @@ public java.lang.String getCrossRealmTrustSharedPasswordUri() { public static final int KDC_DB_KEY_URI_FIELD_NUMBER = 13; private volatile java.lang.Object kdcDbKeyUri_; /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * master key of the KDC database.
    * 
* * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kdcDbKeyUri. */ @java.lang.Override @@ -633,30 +697,30 @@ public java.lang.String getKdcDbKeyUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kdcDbKeyUri_ = s; return s; } } /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * master key of the KDC database.
    * 
* * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for kdcDbKeyUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getKdcDbKeyUriBytes() { + public com.google.protobuf.ByteString getKdcDbKeyUriBytes() { java.lang.Object ref = kdcDbKeyUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kdcDbKeyUri_ = b; return b; } else { @@ -667,6 +731,8 @@ public java.lang.String getKdcDbKeyUri() { public static final int TGT_LIFETIME_HOURS_FIELD_NUMBER = 14; private int tgtLifetimeHours_; /** + * + * *
    * Optional. The lifetime of the ticket granting ticket, in hours.
    * If not specified, or user specifies 0, then default value 10
@@ -674,6 +740,7 @@ public java.lang.String getKdcDbKeyUri() {
    * 
* * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The tgtLifetimeHours. */ @java.lang.Override @@ -684,12 +751,15 @@ public int getTgtLifetimeHours() { public static final int REALM_FIELD_NUMBER = 15; private volatile java.lang.Object realm_; /** + * + * *
    * Optional. The name of the on-cluster Kerberos realm.
    * If not specified, the uppercased domain of hostnames will be the realm.
    * 
* * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The realm. */ @java.lang.Override @@ -698,30 +768,30 @@ public java.lang.String getRealm() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); realm_ = s; return s; } } /** + * + * *
    * Optional. The name of the on-cluster Kerberos realm.
    * If not specified, the uppercased domain of hostnames will be the realm.
    * 
* * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for realm. */ @java.lang.Override - public com.google.protobuf.ByteString - getRealmBytes() { + public com.google.protobuf.ByteString getRealmBytes() { java.lang.Object ref = realm_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); realm_ = b; return b; } else { @@ -730,6 +800,7 @@ public java.lang.String getRealm() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -741,8 +812,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enableKerberos_ != false) { output.writeBool(1, enableKerberos_); } @@ -777,7 +847,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 11, crossRealmTrustAdminServer_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustSharedPasswordUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, crossRealmTrustSharedPasswordUri_); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 12, crossRealmTrustSharedPasswordUri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kdcDbKeyUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, kdcDbKeyUri_); @@ -798,11 +869,11 @@ public int getSerializedSize() { size = 0; if (enableKerberos_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableKerberos_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableKerberos_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rootPrincipalPasswordUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rootPrincipalPasswordUri_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rootPrincipalPasswordUri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kmsKeyUri_); @@ -829,17 +900,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, crossRealmTrustKdc_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustAdminServer_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, crossRealmTrustAdminServer_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(11, crossRealmTrustAdminServer_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustSharedPasswordUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, crossRealmTrustSharedPasswordUri_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 12, crossRealmTrustSharedPasswordUri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kdcDbKeyUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kdcDbKeyUri_); } if (tgtLifetimeHours_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(14, tgtLifetimeHours_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, tgtLifetimeHours_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(realm_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, realm_); @@ -852,43 +925,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.KerberosConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.KerberosConfig other = (com.google.cloud.dataproc.v1.KerberosConfig) obj; - - if (getEnableKerberos() - != other.getEnableKerberos()) return false; - if (!getRootPrincipalPasswordUri() - .equals(other.getRootPrincipalPasswordUri())) return false; - if (!getKmsKeyUri() - .equals(other.getKmsKeyUri())) return false; - if (!getKeystoreUri() - .equals(other.getKeystoreUri())) return false; - if (!getTruststoreUri() - .equals(other.getTruststoreUri())) return false; - if (!getKeystorePasswordUri() - .equals(other.getKeystorePasswordUri())) return false; - if (!getKeyPasswordUri() - .equals(other.getKeyPasswordUri())) return false; - if (!getTruststorePasswordUri() - .equals(other.getTruststorePasswordUri())) return false; - if (!getCrossRealmTrustRealm() - .equals(other.getCrossRealmTrustRealm())) return false; - if (!getCrossRealmTrustKdc() - .equals(other.getCrossRealmTrustKdc())) return false; - if (!getCrossRealmTrustAdminServer() - .equals(other.getCrossRealmTrustAdminServer())) return false; - if (!getCrossRealmTrustSharedPasswordUri() - .equals(other.getCrossRealmTrustSharedPasswordUri())) return false; - if (!getKdcDbKeyUri() - .equals(other.getKdcDbKeyUri())) return false; - if (getTgtLifetimeHours() - != other.getTgtLifetimeHours()) return false; - if (!getRealm() - .equals(other.getRealm())) return false; + com.google.cloud.dataproc.v1.KerberosConfig other = + (com.google.cloud.dataproc.v1.KerberosConfig) obj; + + if (getEnableKerberos() != other.getEnableKerberos()) return false; + if (!getRootPrincipalPasswordUri().equals(other.getRootPrincipalPasswordUri())) return false; + if (!getKmsKeyUri().equals(other.getKmsKeyUri())) return false; + if (!getKeystoreUri().equals(other.getKeystoreUri())) return false; + if (!getTruststoreUri().equals(other.getTruststoreUri())) return false; + if (!getKeystorePasswordUri().equals(other.getKeystorePasswordUri())) return false; + if (!getKeyPasswordUri().equals(other.getKeyPasswordUri())) return false; + if (!getTruststorePasswordUri().equals(other.getTruststorePasswordUri())) return false; + if (!getCrossRealmTrustRealm().equals(other.getCrossRealmTrustRealm())) return false; + if (!getCrossRealmTrustKdc().equals(other.getCrossRealmTrustKdc())) return false; + if (!getCrossRealmTrustAdminServer().equals(other.getCrossRealmTrustAdminServer())) + return false; + if (!getCrossRealmTrustSharedPasswordUri().equals(other.getCrossRealmTrustSharedPasswordUri())) + return false; + if (!getKdcDbKeyUri().equals(other.getKdcDbKeyUri())) return false; + if (getTgtLifetimeHours() != other.getTgtLifetimeHours()) return false; + if (!getRealm().equals(other.getRealm())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -901,8 +962,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_KERBEROS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableKerberos()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableKerberos()); hash = (37 * hash) + ROOT_PRINCIPAL_PASSWORD_URI_FIELD_NUMBER; hash = (53 * hash) + getRootPrincipalPasswordUri().hashCode(); hash = (37 * hash) + KMS_KEY_URI_FIELD_NUMBER; @@ -936,130 +996,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.KerberosConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.KerberosConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.KerberosConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.KerberosConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specifies Kerberos related configuration.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.KerberosConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.KerberosConfig) com.google.cloud.dataproc.v1.KerberosConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.KerberosConfig.class, com.google.cloud.dataproc.v1.KerberosConfig.Builder.class); + com.google.cloud.dataproc.v1.KerberosConfig.class, + com.google.cloud.dataproc.v1.KerberosConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.KerberosConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1097,9 +1163,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; } @java.lang.Override @@ -1118,7 +1184,8 @@ public com.google.cloud.dataproc.v1.KerberosConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.KerberosConfig buildPartial() { - com.google.cloud.dataproc.v1.KerberosConfig result = new com.google.cloud.dataproc.v1.KerberosConfig(this); + com.google.cloud.dataproc.v1.KerberosConfig result = + new com.google.cloud.dataproc.v1.KerberosConfig(this); result.enableKerberos_ = enableKerberos_; result.rootPrincipalPasswordUri_ = rootPrincipalPasswordUri_; result.kmsKeyUri_ = kmsKeyUri_; @@ -1142,38 +1209,39 @@ public com.google.cloud.dataproc.v1.KerberosConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.KerberosConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.KerberosConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.KerberosConfig) other); } else { super.mergeFrom(other); return this; @@ -1266,87 +1334,103 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableKerberos_ = input.readBool(); - - break; - } // case 8 - case 18: { - rootPrincipalPasswordUri_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - kmsKeyUri_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - keystoreUri_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - truststoreUri_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - keystorePasswordUri_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: { - keyPasswordUri_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - truststorePasswordUri_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: { - crossRealmTrustRealm_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 82: { - crossRealmTrustKdc_ = input.readStringRequireUtf8(); - - break; - } // case 82 - case 90: { - crossRealmTrustAdminServer_ = input.readStringRequireUtf8(); - - break; - } // case 90 - case 98: { - crossRealmTrustSharedPasswordUri_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 106: { - kdcDbKeyUri_ = input.readStringRequireUtf8(); - - break; - } // case 106 - case 112: { - tgtLifetimeHours_ = input.readInt32(); - - break; - } // case 112 - case 122: { - realm_ = input.readStringRequireUtf8(); - - break; - } // case 122 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableKerberos_ = input.readBool(); + + break; + } // case 8 + case 18: + { + rootPrincipalPasswordUri_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + kmsKeyUri_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + keystoreUri_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + truststoreUri_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + keystorePasswordUri_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + keyPasswordUri_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + truststorePasswordUri_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + crossRealmTrustRealm_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: + { + crossRealmTrustKdc_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: + { + crossRealmTrustAdminServer_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: + { + crossRealmTrustSharedPasswordUri_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: + { + kdcDbKeyUri_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 112: + { + tgtLifetimeHours_ = input.readInt32(); + + break; + } // case 112 + case 122: + { + realm_ = input.readStringRequireUtf8(); + + break; + } // case 122 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1357,14 +1441,17 @@ public Builder mergeFrom( return this; } - private boolean enableKerberos_ ; + private boolean enableKerberos_; /** + * + * *
      * Optional. Flag to indicate whether to Kerberize the cluster (default:
      * false). Set this field to true to enable Kerberos on a cluster.
      * 
* * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableKerberos. */ @java.lang.Override @@ -1372,32 +1459,38 @@ public boolean getEnableKerberos() { return enableKerberos_; } /** + * + * *
      * Optional. Flag to indicate whether to Kerberize the cluster (default:
      * false). Set this field to true to enable Kerberos on a cluster.
      * 
* * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The enableKerberos to set. * @return This builder for chaining. */ public Builder setEnableKerberos(boolean value) { - + enableKerberos_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Flag to indicate whether to Kerberize the cluster (default:
      * false). Set this field to true to enable Kerberos on a cluster.
      * 
* * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEnableKerberos() { - + enableKerberos_ = false; onChanged(); return this; @@ -1405,19 +1498,22 @@ public Builder clearEnableKerberos() { private java.lang.Object rootPrincipalPasswordUri_ = ""; /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
      * principal password.
      * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The rootPrincipalPasswordUri. */ public java.lang.String getRootPrincipalPasswordUri() { java.lang.Object ref = rootPrincipalPasswordUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootPrincipalPasswordUri_ = s; return s; @@ -1426,21 +1522,23 @@ public java.lang.String getRootPrincipalPasswordUri() { } } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
      * principal password.
      * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for rootPrincipalPasswordUri. */ - public com.google.protobuf.ByteString - getRootPrincipalPasswordUriBytes() { + public com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes() { java.lang.Object ref = rootPrincipalPasswordUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rootPrincipalPasswordUri_ = b; return b; } else { @@ -1448,57 +1546,67 @@ public java.lang.String getRootPrincipalPasswordUri() { } } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
      * principal password.
      * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The rootPrincipalPasswordUri to set. * @return This builder for chaining. */ - public Builder setRootPrincipalPasswordUri( - java.lang.String value) { + public Builder setRootPrincipalPasswordUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + rootPrincipalPasswordUri_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
      * principal password.
      * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearRootPrincipalPasswordUri() { - + rootPrincipalPasswordUri_ = getDefaultInstance().getRootPrincipalPasswordUri(); onChanged(); return this; } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
      * principal password.
      * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes for rootPrincipalPasswordUri to set. * @return This builder for chaining. */ - public Builder setRootPrincipalPasswordUriBytes( - com.google.protobuf.ByteString value) { + public Builder setRootPrincipalPasswordUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rootPrincipalPasswordUri_ = value; onChanged(); return this; @@ -1506,19 +1614,21 @@ public Builder setRootPrincipalPasswordUriBytes( private java.lang.Object kmsKeyUri_ = ""; /** + * + * *
      * Optional. The uri of the KMS key used to encrypt various sensitive
      * files.
      * 
* * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kmsKeyUri. */ public java.lang.String getKmsKeyUri() { java.lang.Object ref = kmsKeyUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyUri_ = s; return s; @@ -1527,21 +1637,22 @@ public java.lang.String getKmsKeyUri() { } } /** + * + * *
      * Optional. The uri of the KMS key used to encrypt various sensitive
      * files.
      * 
* * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for kmsKeyUri. */ - public com.google.protobuf.ByteString - getKmsKeyUriBytes() { + public com.google.protobuf.ByteString getKmsKeyUriBytes() { java.lang.Object ref = kmsKeyUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyUri_ = b; return b; } else { @@ -1549,57 +1660,64 @@ public java.lang.String getKmsKeyUri() { } } /** + * + * *
      * Optional. The uri of the KMS key used to encrypt various sensitive
      * files.
      * 
* * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The kmsKeyUri to set. * @return This builder for chaining. */ - public Builder setKmsKeyUri( - java.lang.String value) { + public Builder setKmsKeyUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyUri_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The uri of the KMS key used to encrypt various sensitive
      * files.
      * 
* * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearKmsKeyUri() { - + kmsKeyUri_ = getDefaultInstance().getKmsKeyUri(); onChanged(); return this; } /** + * + * *
      * Optional. The uri of the KMS key used to encrypt various sensitive
      * files.
      * 
* * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for kmsKeyUri to set. * @return This builder for chaining. */ - public Builder setKmsKeyUriBytes( - com.google.protobuf.ByteString value) { + public Builder setKmsKeyUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyUri_ = value; onChanged(); return this; @@ -1607,6 +1725,8 @@ public Builder setKmsKeyUriBytes( private java.lang.Object keystoreUri_ = ""; /** + * + * *
      * Optional. The Cloud Storage URI of the keystore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1614,13 +1734,13 @@ public Builder setKmsKeyUriBytes(
      * 
* * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The keystoreUri. */ public java.lang.String getKeystoreUri() { java.lang.Object ref = keystoreUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keystoreUri_ = s; return s; @@ -1629,6 +1749,8 @@ public java.lang.String getKeystoreUri() { } } /** + * + * *
      * Optional. The Cloud Storage URI of the keystore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1636,15 +1758,14 @@ public java.lang.String getKeystoreUri() {
      * 
* * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for keystoreUri. */ - public com.google.protobuf.ByteString - getKeystoreUriBytes() { + public com.google.protobuf.ByteString getKeystoreUriBytes() { java.lang.Object ref = keystoreUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); keystoreUri_ = b; return b; } else { @@ -1652,6 +1773,8 @@ public java.lang.String getKeystoreUri() { } } /** + * + * *
      * Optional. The Cloud Storage URI of the keystore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1659,20 +1782,22 @@ public java.lang.String getKeystoreUri() {
      * 
* * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The keystoreUri to set. * @return This builder for chaining. */ - public Builder setKeystoreUri( - java.lang.String value) { + public Builder setKeystoreUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + keystoreUri_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Cloud Storage URI of the keystore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1680,15 +1805,18 @@ public Builder setKeystoreUri(
      * 
* * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearKeystoreUri() { - + keystoreUri_ = getDefaultInstance().getKeystoreUri(); onChanged(); return this; } /** + * + * *
      * Optional. The Cloud Storage URI of the keystore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1696,16 +1824,16 @@ public Builder clearKeystoreUri() {
      * 
* * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for keystoreUri to set. * @return This builder for chaining. */ - public Builder setKeystoreUriBytes( - com.google.protobuf.ByteString value) { + public Builder setKeystoreUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keystoreUri_ = value; onChanged(); return this; @@ -1713,6 +1841,8 @@ public Builder setKeystoreUriBytes( private java.lang.Object truststoreUri_ = ""; /** + * + * *
      * Optional. The Cloud Storage URI of the truststore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1720,13 +1850,13 @@ public Builder setKeystoreUriBytes(
      * 
* * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The truststoreUri. */ public java.lang.String getTruststoreUri() { java.lang.Object ref = truststoreUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); truststoreUri_ = s; return s; @@ -1735,6 +1865,8 @@ public java.lang.String getTruststoreUri() { } } /** + * + * *
      * Optional. The Cloud Storage URI of the truststore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1742,15 +1874,14 @@ public java.lang.String getTruststoreUri() {
      * 
* * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for truststoreUri. */ - public com.google.protobuf.ByteString - getTruststoreUriBytes() { + public com.google.protobuf.ByteString getTruststoreUriBytes() { java.lang.Object ref = truststoreUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); truststoreUri_ = b; return b; } else { @@ -1758,6 +1889,8 @@ public java.lang.String getTruststoreUri() { } } /** + * + * *
      * Optional. The Cloud Storage URI of the truststore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1765,20 +1898,22 @@ public java.lang.String getTruststoreUri() {
      * 
* * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The truststoreUri to set. * @return This builder for chaining. */ - public Builder setTruststoreUri( - java.lang.String value) { + public Builder setTruststoreUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + truststoreUri_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Cloud Storage URI of the truststore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1786,15 +1921,18 @@ public Builder setTruststoreUri(
      * 
* * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTruststoreUri() { - + truststoreUri_ = getDefaultInstance().getTruststoreUri(); onChanged(); return this; } /** + * + * *
      * Optional. The Cloud Storage URI of the truststore file used for SSL
      * encryption. If not provided, Dataproc will provide a self-signed
@@ -1802,16 +1940,16 @@ public Builder clearTruststoreUri() {
      * 
* * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for truststoreUri to set. * @return This builder for chaining. */ - public Builder setTruststoreUriBytes( - com.google.protobuf.ByteString value) { + public Builder setTruststoreUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + truststoreUri_ = value; onChanged(); return this; @@ -1819,6 +1957,8 @@ public Builder setTruststoreUriBytes( private java.lang.Object keystorePasswordUri_ = ""; /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided keystore. For the self-signed certificate,
@@ -1826,13 +1966,13 @@ public Builder setTruststoreUriBytes(
      * 
* * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The keystorePasswordUri. */ public java.lang.String getKeystorePasswordUri() { java.lang.Object ref = keystorePasswordUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keystorePasswordUri_ = s; return s; @@ -1841,6 +1981,8 @@ public java.lang.String getKeystorePasswordUri() { } } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided keystore. For the self-signed certificate,
@@ -1848,15 +1990,14 @@ public java.lang.String getKeystorePasswordUri() {
      * 
* * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for keystorePasswordUri. */ - public com.google.protobuf.ByteString - getKeystorePasswordUriBytes() { + public com.google.protobuf.ByteString getKeystorePasswordUriBytes() { java.lang.Object ref = keystorePasswordUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); keystorePasswordUri_ = b; return b; } else { @@ -1864,6 +2005,8 @@ public java.lang.String getKeystorePasswordUri() { } } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided keystore. For the self-signed certificate,
@@ -1871,20 +2014,22 @@ public java.lang.String getKeystorePasswordUri() {
      * 
* * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The keystorePasswordUri to set. * @return This builder for chaining. */ - public Builder setKeystorePasswordUri( - java.lang.String value) { + public Builder setKeystorePasswordUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + keystorePasswordUri_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided keystore. For the self-signed certificate,
@@ -1892,15 +2037,18 @@ public Builder setKeystorePasswordUri(
      * 
* * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearKeystorePasswordUri() { - + keystorePasswordUri_ = getDefaultInstance().getKeystorePasswordUri(); onChanged(); return this; } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided keystore. For the self-signed certificate,
@@ -1908,16 +2056,16 @@ public Builder clearKeystorePasswordUri() {
      * 
* * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for keystorePasswordUri to set. * @return This builder for chaining. */ - public Builder setKeystorePasswordUriBytes( - com.google.protobuf.ByteString value) { + public Builder setKeystorePasswordUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keystorePasswordUri_ = value; onChanged(); return this; @@ -1925,6 +2073,8 @@ public Builder setKeystorePasswordUriBytes( private java.lang.Object keyPasswordUri_ = ""; /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided key. For the self-signed certificate, this
@@ -1932,13 +2082,13 @@ public Builder setKeystorePasswordUriBytes(
      * 
* * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The keyPasswordUri. */ public java.lang.String getKeyPasswordUri() { java.lang.Object ref = keyPasswordUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyPasswordUri_ = s; return s; @@ -1947,6 +2097,8 @@ public java.lang.String getKeyPasswordUri() { } } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided key. For the self-signed certificate, this
@@ -1954,15 +2106,14 @@ public java.lang.String getKeyPasswordUri() {
      * 
* * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for keyPasswordUri. */ - public com.google.protobuf.ByteString - getKeyPasswordUriBytes() { + public com.google.protobuf.ByteString getKeyPasswordUriBytes() { java.lang.Object ref = keyPasswordUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); keyPasswordUri_ = b; return b; } else { @@ -1970,6 +2121,8 @@ public java.lang.String getKeyPasswordUri() { } } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided key. For the self-signed certificate, this
@@ -1977,20 +2130,22 @@ public java.lang.String getKeyPasswordUri() {
      * 
* * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The keyPasswordUri to set. * @return This builder for chaining. */ - public Builder setKeyPasswordUri( - java.lang.String value) { + public Builder setKeyPasswordUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + keyPasswordUri_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided key. For the self-signed certificate, this
@@ -1998,15 +2153,18 @@ public Builder setKeyPasswordUri(
      * 
* * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearKeyPasswordUri() { - + keyPasswordUri_ = getDefaultInstance().getKeyPasswordUri(); onChanged(); return this; } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided key. For the self-signed certificate, this
@@ -2014,16 +2172,16 @@ public Builder clearKeyPasswordUri() {
      * 
* * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for keyPasswordUri to set. * @return This builder for chaining. */ - public Builder setKeyPasswordUriBytes( - com.google.protobuf.ByteString value) { + public Builder setKeyPasswordUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keyPasswordUri_ = value; onChanged(); return this; @@ -2031,6 +2189,8 @@ public Builder setKeyPasswordUriBytes( private java.lang.Object truststorePasswordUri_ = ""; /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided truststore. For the self-signed certificate,
@@ -2038,13 +2198,13 @@ public Builder setKeyPasswordUriBytes(
      * 
* * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The truststorePasswordUri. */ public java.lang.String getTruststorePasswordUri() { java.lang.Object ref = truststorePasswordUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); truststorePasswordUri_ = s; return s; @@ -2053,6 +2213,8 @@ public java.lang.String getTruststorePasswordUri() { } } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided truststore. For the self-signed certificate,
@@ -2060,15 +2222,14 @@ public java.lang.String getTruststorePasswordUri() {
      * 
* * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for truststorePasswordUri. */ - public com.google.protobuf.ByteString - getTruststorePasswordUriBytes() { + public com.google.protobuf.ByteString getTruststorePasswordUriBytes() { java.lang.Object ref = truststorePasswordUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); truststorePasswordUri_ = b; return b; } else { @@ -2076,6 +2237,8 @@ public java.lang.String getTruststorePasswordUri() { } } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided truststore. For the self-signed certificate,
@@ -2083,20 +2246,22 @@ public java.lang.String getTruststorePasswordUri() {
      * 
* * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The truststorePasswordUri to set. * @return This builder for chaining. */ - public Builder setTruststorePasswordUri( - java.lang.String value) { + public Builder setTruststorePasswordUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + truststorePasswordUri_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided truststore. For the self-signed certificate,
@@ -2104,15 +2269,18 @@ public Builder setTruststorePasswordUri(
      * 
* * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTruststorePasswordUri() { - + truststorePasswordUri_ = getDefaultInstance().getTruststorePasswordUri(); onChanged(); return this; } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * password to the user provided truststore. For the self-signed certificate,
@@ -2120,16 +2288,16 @@ public Builder clearTruststorePasswordUri() {
      * 
* * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for truststorePasswordUri to set. * @return This builder for chaining. */ - public Builder setTruststorePasswordUriBytes( - com.google.protobuf.ByteString value) { + public Builder setTruststorePasswordUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + truststorePasswordUri_ = value; onChanged(); return this; @@ -2137,19 +2305,21 @@ public Builder setTruststorePasswordUriBytes( private java.lang.Object crossRealmTrustRealm_ = ""; /** + * + * *
      * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
      * the user enable cross realm trust.
      * 
* * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The crossRealmTrustRealm. */ public java.lang.String getCrossRealmTrustRealm() { java.lang.Object ref = crossRealmTrustRealm_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crossRealmTrustRealm_ = s; return s; @@ -2158,21 +2328,22 @@ public java.lang.String getCrossRealmTrustRealm() { } } /** + * + * *
      * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
      * the user enable cross realm trust.
      * 
* * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for crossRealmTrustRealm. */ - public com.google.protobuf.ByteString - getCrossRealmTrustRealmBytes() { + public com.google.protobuf.ByteString getCrossRealmTrustRealmBytes() { java.lang.Object ref = crossRealmTrustRealm_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crossRealmTrustRealm_ = b; return b; } else { @@ -2180,57 +2351,64 @@ public java.lang.String getCrossRealmTrustRealm() { } } /** + * + * *
      * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
      * the user enable cross realm trust.
      * 
* * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The crossRealmTrustRealm to set. * @return This builder for chaining. */ - public Builder setCrossRealmTrustRealm( - java.lang.String value) { + public Builder setCrossRealmTrustRealm(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crossRealmTrustRealm_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
      * the user enable cross realm trust.
      * 
* * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCrossRealmTrustRealm() { - + crossRealmTrustRealm_ = getDefaultInstance().getCrossRealmTrustRealm(); onChanged(); return this; } /** + * + * *
      * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
      * the user enable cross realm trust.
      * 
* * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for crossRealmTrustRealm to set. * @return This builder for chaining. */ - public Builder setCrossRealmTrustRealmBytes( - com.google.protobuf.ByteString value) { + public Builder setCrossRealmTrustRealmBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crossRealmTrustRealm_ = value; onChanged(); return this; @@ -2238,19 +2416,21 @@ public Builder setCrossRealmTrustRealmBytes( private java.lang.Object crossRealmTrustKdc_ = ""; /** + * + * *
      * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
      * realm trust relationship.
      * 
* * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The crossRealmTrustKdc. */ public java.lang.String getCrossRealmTrustKdc() { java.lang.Object ref = crossRealmTrustKdc_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crossRealmTrustKdc_ = s; return s; @@ -2259,21 +2439,22 @@ public java.lang.String getCrossRealmTrustKdc() { } } /** + * + * *
      * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
      * realm trust relationship.
      * 
* * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for crossRealmTrustKdc. */ - public com.google.protobuf.ByteString - getCrossRealmTrustKdcBytes() { + public com.google.protobuf.ByteString getCrossRealmTrustKdcBytes() { java.lang.Object ref = crossRealmTrustKdc_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crossRealmTrustKdc_ = b; return b; } else { @@ -2281,57 +2462,64 @@ public java.lang.String getCrossRealmTrustKdc() { } } /** + * + * *
      * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
      * realm trust relationship.
      * 
* * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The crossRealmTrustKdc to set. * @return This builder for chaining. */ - public Builder setCrossRealmTrustKdc( - java.lang.String value) { + public Builder setCrossRealmTrustKdc(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crossRealmTrustKdc_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
      * realm trust relationship.
      * 
* * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCrossRealmTrustKdc() { - + crossRealmTrustKdc_ = getDefaultInstance().getCrossRealmTrustKdc(); onChanged(); return this; } /** + * + * *
      * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
      * realm trust relationship.
      * 
* * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for crossRealmTrustKdc to set. * @return This builder for chaining. */ - public Builder setCrossRealmTrustKdcBytes( - com.google.protobuf.ByteString value) { + public Builder setCrossRealmTrustKdcBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crossRealmTrustKdc_ = value; onChanged(); return this; @@ -2339,19 +2527,22 @@ public Builder setCrossRealmTrustKdcBytes( private java.lang.Object crossRealmTrustAdminServer_ = ""; /** + * + * *
      * Optional. The admin server (IP or hostname) for the remote trusted realm in
      * a cross realm trust relationship.
      * 
* - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; + * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The crossRealmTrustAdminServer. */ public java.lang.String getCrossRealmTrustAdminServer() { java.lang.Object ref = crossRealmTrustAdminServer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crossRealmTrustAdminServer_ = s; return s; @@ -2360,21 +2551,23 @@ public java.lang.String getCrossRealmTrustAdminServer() { } } /** + * + * *
      * Optional. The admin server (IP or hostname) for the remote trusted realm in
      * a cross realm trust relationship.
      * 
* - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; + * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for crossRealmTrustAdminServer. */ - public com.google.protobuf.ByteString - getCrossRealmTrustAdminServerBytes() { + public com.google.protobuf.ByteString getCrossRealmTrustAdminServerBytes() { java.lang.Object ref = crossRealmTrustAdminServer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crossRealmTrustAdminServer_ = b; return b; } else { @@ -2382,57 +2575,67 @@ public java.lang.String getCrossRealmTrustAdminServer() { } } /** + * + * *
      * Optional. The admin server (IP or hostname) for the remote trusted realm in
      * a cross realm trust relationship.
      * 
* - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; + * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The crossRealmTrustAdminServer to set. * @return This builder for chaining. */ - public Builder setCrossRealmTrustAdminServer( - java.lang.String value) { + public Builder setCrossRealmTrustAdminServer(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crossRealmTrustAdminServer_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The admin server (IP or hostname) for the remote trusted realm in
      * a cross realm trust relationship.
      * 
* - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; + * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearCrossRealmTrustAdminServer() { - + crossRealmTrustAdminServer_ = getDefaultInstance().getCrossRealmTrustAdminServer(); onChanged(); return this; } /** + * + * *
      * Optional. The admin server (IP or hostname) for the remote trusted realm in
      * a cross realm trust relationship.
      * 
* - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; + * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes for crossRealmTrustAdminServer to set. * @return This builder for chaining. */ - public Builder setCrossRealmTrustAdminServerBytes( - com.google.protobuf.ByteString value) { + public Builder setCrossRealmTrustAdminServerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crossRealmTrustAdminServer_ = value; onChanged(); return this; @@ -2440,20 +2643,24 @@ public Builder setCrossRealmTrustAdminServerBytes( private java.lang.Object crossRealmTrustSharedPasswordUri_ = ""; /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * shared password between the on-cluster Kerberos realm and the remote
      * trusted realm, in a cross realm trust relationship.
      * 
* - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The crossRealmTrustSharedPasswordUri. */ public java.lang.String getCrossRealmTrustSharedPasswordUri() { java.lang.Object ref = crossRealmTrustSharedPasswordUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crossRealmTrustSharedPasswordUri_ = s; return s; @@ -2462,22 +2669,25 @@ public java.lang.String getCrossRealmTrustSharedPasswordUri() { } } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * shared password between the on-cluster Kerberos realm and the remote
      * trusted realm, in a cross realm trust relationship.
      * 
* - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for crossRealmTrustSharedPasswordUri. */ - public com.google.protobuf.ByteString - getCrossRealmTrustSharedPasswordUriBytes() { + public com.google.protobuf.ByteString getCrossRealmTrustSharedPasswordUriBytes() { java.lang.Object ref = crossRealmTrustSharedPasswordUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crossRealmTrustSharedPasswordUri_ = b; return b; } else { @@ -2485,60 +2695,74 @@ public java.lang.String getCrossRealmTrustSharedPasswordUri() { } } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * shared password between the on-cluster Kerberos realm and the remote
      * trusted realm, in a cross realm trust relationship.
      * 
* - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The crossRealmTrustSharedPasswordUri to set. * @return This builder for chaining. */ - public Builder setCrossRealmTrustSharedPasswordUri( - java.lang.String value) { + public Builder setCrossRealmTrustSharedPasswordUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crossRealmTrustSharedPasswordUri_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * shared password between the on-cluster Kerberos realm and the remote
      * trusted realm, in a cross realm trust relationship.
      * 
* - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearCrossRealmTrustSharedPasswordUri() { - - crossRealmTrustSharedPasswordUri_ = getDefaultInstance().getCrossRealmTrustSharedPasswordUri(); + + crossRealmTrustSharedPasswordUri_ = + getDefaultInstance().getCrossRealmTrustSharedPasswordUri(); onChanged(); return this; } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * shared password between the on-cluster Kerberos realm and the remote
      * trusted realm, in a cross realm trust relationship.
      * 
* - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes for crossRealmTrustSharedPasswordUri to set. * @return This builder for chaining. */ - public Builder setCrossRealmTrustSharedPasswordUriBytes( - com.google.protobuf.ByteString value) { + public Builder setCrossRealmTrustSharedPasswordUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crossRealmTrustSharedPasswordUri_ = value; onChanged(); return this; @@ -2546,19 +2770,21 @@ public Builder setCrossRealmTrustSharedPasswordUriBytes( private java.lang.Object kdcDbKeyUri_ = ""; /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * master key of the KDC database.
      * 
* * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kdcDbKeyUri. */ public java.lang.String getKdcDbKeyUri() { java.lang.Object ref = kdcDbKeyUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kdcDbKeyUri_ = s; return s; @@ -2567,21 +2793,22 @@ public java.lang.String getKdcDbKeyUri() { } } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * master key of the KDC database.
      * 
* * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for kdcDbKeyUri. */ - public com.google.protobuf.ByteString - getKdcDbKeyUriBytes() { + public com.google.protobuf.ByteString getKdcDbKeyUriBytes() { java.lang.Object ref = kdcDbKeyUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kdcDbKeyUri_ = b; return b; } else { @@ -2589,64 +2816,73 @@ public java.lang.String getKdcDbKeyUri() { } } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * master key of the KDC database.
      * 
* * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The kdcDbKeyUri to set. * @return This builder for chaining. */ - public Builder setKdcDbKeyUri( - java.lang.String value) { + public Builder setKdcDbKeyUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kdcDbKeyUri_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * master key of the KDC database.
      * 
* * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearKdcDbKeyUri() { - + kdcDbKeyUri_ = getDefaultInstance().getKdcDbKeyUri(); onChanged(); return this; } /** + * + * *
      * Optional. The Cloud Storage URI of a KMS encrypted file containing the
      * master key of the KDC database.
      * 
* * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for kdcDbKeyUri to set. * @return This builder for chaining. */ - public Builder setKdcDbKeyUriBytes( - com.google.protobuf.ByteString value) { + public Builder setKdcDbKeyUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kdcDbKeyUri_ = value; onChanged(); return this; } - private int tgtLifetimeHours_ ; + private int tgtLifetimeHours_; /** + * + * *
      * Optional. The lifetime of the ticket granting ticket, in hours.
      * If not specified, or user specifies 0, then default value 10
@@ -2654,6 +2890,7 @@ public Builder setKdcDbKeyUriBytes(
      * 
* * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The tgtLifetimeHours. */ @java.lang.Override @@ -2661,6 +2898,8 @@ public int getTgtLifetimeHours() { return tgtLifetimeHours_; } /** + * + * *
      * Optional. The lifetime of the ticket granting ticket, in hours.
      * If not specified, or user specifies 0, then default value 10
@@ -2668,16 +2907,19 @@ public int getTgtLifetimeHours() {
      * 
* * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The tgtLifetimeHours to set. * @return This builder for chaining. */ public Builder setTgtLifetimeHours(int value) { - + tgtLifetimeHours_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The lifetime of the ticket granting ticket, in hours.
      * If not specified, or user specifies 0, then default value 10
@@ -2685,10 +2927,11 @@ public Builder setTgtLifetimeHours(int value) {
      * 
* * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTgtLifetimeHours() { - + tgtLifetimeHours_ = 0; onChanged(); return this; @@ -2696,19 +2939,21 @@ public Builder clearTgtLifetimeHours() { private java.lang.Object realm_ = ""; /** + * + * *
      * Optional. The name of the on-cluster Kerberos realm.
      * If not specified, the uppercased domain of hostnames will be the realm.
      * 
* * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The realm. */ public java.lang.String getRealm() { java.lang.Object ref = realm_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); realm_ = s; return s; @@ -2717,21 +2962,22 @@ public java.lang.String getRealm() { } } /** + * + * *
      * Optional. The name of the on-cluster Kerberos realm.
      * If not specified, the uppercased domain of hostnames will be the realm.
      * 
* * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for realm. */ - public com.google.protobuf.ByteString - getRealmBytes() { + public com.google.protobuf.ByteString getRealmBytes() { java.lang.Object ref = realm_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); realm_ = b; return b; } else { @@ -2739,64 +2985,71 @@ public java.lang.String getRealm() { } } /** + * + * *
      * Optional. The name of the on-cluster Kerberos realm.
      * If not specified, the uppercased domain of hostnames will be the realm.
      * 
* * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The realm to set. * @return This builder for chaining. */ - public Builder setRealm( - java.lang.String value) { + public Builder setRealm(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + realm_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The name of the on-cluster Kerberos realm.
      * If not specified, the uppercased domain of hostnames will be the realm.
      * 
* * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRealm() { - + realm_ = getDefaultInstance().getRealm(); onChanged(); return this; } /** + * + * *
      * Optional. The name of the on-cluster Kerberos realm.
      * If not specified, the uppercased domain of hostnames will be the realm.
      * 
* * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for realm to set. * @return This builder for chaining. */ - public Builder setRealmBytes( - com.google.protobuf.ByteString value) { + public Builder setRealmBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + realm_ = 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); } @@ -2806,12 +3059,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.KerberosConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.KerberosConfig) private static final com.google.cloud.dataproc.v1.KerberosConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.KerberosConfig(); } @@ -2820,27 +3073,27 @@ public static com.google.cloud.dataproc.v1.KerberosConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KerberosConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KerberosConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2855,6 +3108,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.KerberosConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java similarity index 81% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java index b5b99db40fbb..38118f80ed1a 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java @@ -1,68 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface KerberosConfigOrBuilder extends +public interface KerberosConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.KerberosConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Flag to indicate whether to Kerberize the cluster (default:
    * false). Set this field to true to enable Kerberos on a cluster.
    * 
* * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableKerberos. */ boolean getEnableKerberos(); /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
    * principal password.
    * 
* * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The rootPrincipalPasswordUri. */ java.lang.String getRootPrincipalPasswordUri(); /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
    * principal password.
    * 
* * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for rootPrincipalPasswordUri. */ - com.google.protobuf.ByteString - getRootPrincipalPasswordUriBytes(); + com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes(); /** + * + * *
    * Optional. The uri of the KMS key used to encrypt various sensitive
    * files.
    * 
* * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kmsKeyUri. */ java.lang.String getKmsKeyUri(); /** + * + * *
    * Optional. The uri of the KMS key used to encrypt various sensitive
    * files.
    * 
* * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for kmsKeyUri. */ - com.google.protobuf.ByteString - getKmsKeyUriBytes(); + com.google.protobuf.ByteString getKmsKeyUriBytes(); /** + * + * *
    * Optional. The Cloud Storage URI of the keystore file used for SSL
    * encryption. If not provided, Dataproc will provide a self-signed
@@ -70,10 +101,13 @@ public interface KerberosConfigOrBuilder extends
    * 
* * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The keystoreUri. */ java.lang.String getKeystoreUri(); /** + * + * *
    * Optional. The Cloud Storage URI of the keystore file used for SSL
    * encryption. If not provided, Dataproc will provide a self-signed
@@ -81,12 +115,14 @@ public interface KerberosConfigOrBuilder extends
    * 
* * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for keystoreUri. */ - com.google.protobuf.ByteString - getKeystoreUriBytes(); + com.google.protobuf.ByteString getKeystoreUriBytes(); /** + * + * *
    * Optional. The Cloud Storage URI of the truststore file used for SSL
    * encryption. If not provided, Dataproc will provide a self-signed
@@ -94,10 +130,13 @@ public interface KerberosConfigOrBuilder extends
    * 
* * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The truststoreUri. */ java.lang.String getTruststoreUri(); /** + * + * *
    * Optional. The Cloud Storage URI of the truststore file used for SSL
    * encryption. If not provided, Dataproc will provide a self-signed
@@ -105,12 +144,14 @@ public interface KerberosConfigOrBuilder extends
    * 
* * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for truststoreUri. */ - com.google.protobuf.ByteString - getTruststoreUriBytes(); + com.google.protobuf.ByteString getTruststoreUriBytes(); /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided keystore. For the self-signed certificate,
@@ -118,10 +159,13 @@ public interface KerberosConfigOrBuilder extends
    * 
* * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The keystorePasswordUri. */ java.lang.String getKeystorePasswordUri(); /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided keystore. For the self-signed certificate,
@@ -129,12 +173,14 @@ public interface KerberosConfigOrBuilder extends
    * 
* * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for keystorePasswordUri. */ - com.google.protobuf.ByteString - getKeystorePasswordUriBytes(); + com.google.protobuf.ByteString getKeystorePasswordUriBytes(); /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided key. For the self-signed certificate, this
@@ -142,10 +188,13 @@ public interface KerberosConfigOrBuilder extends
    * 
* * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The keyPasswordUri. */ java.lang.String getKeyPasswordUri(); /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided key. For the self-signed certificate, this
@@ -153,12 +202,14 @@ public interface KerberosConfigOrBuilder extends
    * 
* * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for keyPasswordUri. */ - com.google.protobuf.ByteString - getKeyPasswordUriBytes(); + com.google.protobuf.ByteString getKeyPasswordUriBytes(); /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided truststore. For the self-signed certificate,
@@ -166,10 +217,13 @@ public interface KerberosConfigOrBuilder extends
    * 
* * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The truststorePasswordUri. */ java.lang.String getTruststorePasswordUri(); /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * password to the user provided truststore. For the self-signed certificate,
@@ -177,124 +231,157 @@ public interface KerberosConfigOrBuilder extends
    * 
* * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for truststorePasswordUri. */ - com.google.protobuf.ByteString - getTruststorePasswordUriBytes(); + com.google.protobuf.ByteString getTruststorePasswordUriBytes(); /** + * + * *
    * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
    * the user enable cross realm trust.
    * 
* * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The crossRealmTrustRealm. */ java.lang.String getCrossRealmTrustRealm(); /** + * + * *
    * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
    * the user enable cross realm trust.
    * 
* * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for crossRealmTrustRealm. */ - com.google.protobuf.ByteString - getCrossRealmTrustRealmBytes(); + com.google.protobuf.ByteString getCrossRealmTrustRealmBytes(); /** + * + * *
    * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
    * realm trust relationship.
    * 
* * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The crossRealmTrustKdc. */ java.lang.String getCrossRealmTrustKdc(); /** + * + * *
    * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
    * realm trust relationship.
    * 
* * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for crossRealmTrustKdc. */ - com.google.protobuf.ByteString - getCrossRealmTrustKdcBytes(); + com.google.protobuf.ByteString getCrossRealmTrustKdcBytes(); /** + * + * *
    * Optional. The admin server (IP or hostname) for the remote trusted realm in
    * a cross realm trust relationship.
    * 
* - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; + * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The crossRealmTrustAdminServer. */ java.lang.String getCrossRealmTrustAdminServer(); /** + * + * *
    * Optional. The admin server (IP or hostname) for the remote trusted realm in
    * a cross realm trust relationship.
    * 
* - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; + * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for crossRealmTrustAdminServer. */ - com.google.protobuf.ByteString - getCrossRealmTrustAdminServerBytes(); + com.google.protobuf.ByteString getCrossRealmTrustAdminServerBytes(); /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * shared password between the on-cluster Kerberos realm and the remote
    * trusted realm, in a cross realm trust relationship.
    * 
* - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The crossRealmTrustSharedPasswordUri. */ java.lang.String getCrossRealmTrustSharedPasswordUri(); /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * shared password between the on-cluster Kerberos realm and the remote
    * trusted realm, in a cross realm trust relationship.
    * 
* - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for crossRealmTrustSharedPasswordUri. */ - com.google.protobuf.ByteString - getCrossRealmTrustSharedPasswordUriBytes(); + com.google.protobuf.ByteString getCrossRealmTrustSharedPasswordUriBytes(); /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * master key of the KDC database.
    * 
* * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kdcDbKeyUri. */ java.lang.String getKdcDbKeyUri(); /** + * + * *
    * Optional. The Cloud Storage URI of a KMS encrypted file containing the
    * master key of the KDC database.
    * 
* * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for kdcDbKeyUri. */ - com.google.protobuf.ByteString - getKdcDbKeyUriBytes(); + com.google.protobuf.ByteString getKdcDbKeyUriBytes(); /** + * + * *
    * Optional. The lifetime of the ticket granting ticket, in hours.
    * If not specified, or user specifies 0, then default value 10
@@ -302,29 +389,35 @@ public interface KerberosConfigOrBuilder extends
    * 
* * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The tgtLifetimeHours. */ int getTgtLifetimeHours(); /** + * + * *
    * Optional. The name of the on-cluster Kerberos realm.
    * If not specified, the uppercased domain of hostnames will be the realm.
    * 
* * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The realm. */ java.lang.String getRealm(); /** + * + * *
    * Optional. The name of the on-cluster Kerberos realm.
    * If not specified, the uppercased domain of hostnames will be the realm.
    * 
* * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for realm. */ - com.google.protobuf.ByteString - getRealmBytes(); + com.google.protobuf.ByteString getRealmBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java index d58538da890f..338a6a857ab5 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java @@ -1,61 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * The configuration for running the Dataproc cluster on Kubernetes.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.KubernetesClusterConfig} */ -public final class KubernetesClusterConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class KubernetesClusterConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.KubernetesClusterConfig) KubernetesClusterConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KubernetesClusterConfig.newBuilder() to construct. private KubernetesClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private KubernetesClusterConfig() { kubernetesNamespace_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new KubernetesClusterConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.KubernetesClusterConfig.class, com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder.class); + com.google.cloud.dataproc.v1.KubernetesClusterConfig.class, + com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder.class); } private int configCase_ = 0; private java.lang.Object config_; + public enum ConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GKE_CLUSTER_CONFIG(2), CONFIG_NOT_SET(0); private final int value; + private ConfigCase(int value) { this.value = value; } @@ -71,25 +93,29 @@ public static ConfigCase valueOf(int value) { public static ConfigCase forNumber(int value) { switch (value) { - case 2: return GKE_CLUSTER_CONFIG; - case 0: return CONFIG_NOT_SET; - default: return null; + case 2: + return GKE_CLUSTER_CONFIG; + case 0: + return CONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ConfigCase - getConfigCase() { - return ConfigCase.forNumber( - configCase_); + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); } public static final int KUBERNETES_NAMESPACE_FIELD_NUMBER = 1; private volatile java.lang.Object kubernetesNamespace_; /** + * + * *
    * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
    * does not exist, it is created. If it exists, Dataproc
@@ -98,6 +124,7 @@ public int getNumber() {
    * 
* * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kubernetesNamespace. */ @java.lang.Override @@ -106,14 +133,15 @@ public java.lang.String getKubernetesNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kubernetesNamespace_ = s; return s; } } /** + * + * *
    * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
    * does not exist, it is created. If it exists, Dataproc
@@ -122,16 +150,15 @@ public java.lang.String getKubernetesNamespace() {
    * 
* * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for kubernetesNamespace. */ @java.lang.Override - public com.google.protobuf.ByteString - getKubernetesNamespaceBytes() { + public com.google.protobuf.ByteString getKubernetesNamespaceBytes() { java.lang.Object ref = kubernetesNamespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kubernetesNamespace_ = b; return b; } else { @@ -141,11 +168,16 @@ public java.lang.String getKubernetesNamespace() { public static final int GKE_CLUSTER_CONFIG_FIELD_NUMBER = 2; /** + * + * *
    * Required. The configuration for running the Dataproc cluster on GKE.
    * 
* - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gkeClusterConfig field is set. */ @java.lang.Override @@ -153,31 +185,40 @@ public boolean hasGkeClusterConfig() { return configCase_ == 2; } /** + * + * *
    * Required. The configuration for running the Dataproc cluster on GKE.
    * 
* - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gkeClusterConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.GkeClusterConfig getGkeClusterConfig() { if (configCase_ == 2) { - return (com.google.cloud.dataproc.v1.GkeClusterConfig) config_; + return (com.google.cloud.dataproc.v1.GkeClusterConfig) config_; } return com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); } /** + * + * *
    * Required. The configuration for running the Dataproc cluster on GKE.
    * 
* - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder() { if (configCase_ == 2) { - return (com.google.cloud.dataproc.v1.GkeClusterConfig) config_; + return (com.google.cloud.dataproc.v1.GkeClusterConfig) config_; } return com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); } @@ -185,11 +226,16 @@ public com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfi public static final int KUBERNETES_SOFTWARE_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetesSoftwareConfig_; /** + * + * *
    * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
    * 
* - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the kubernetesSoftwareConfig field is set. */ @java.lang.Override @@ -197,30 +243,43 @@ public boolean hasKubernetesSoftwareConfig() { return kubernetesSoftwareConfig_ != null; } /** + * + * *
    * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
    * 
* - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The kubernetesSoftwareConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getKubernetesSoftwareConfig() { - return kubernetesSoftwareConfig_ == null ? com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance() : kubernetesSoftwareConfig_; + return kubernetesSoftwareConfig_ == null + ? com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance() + : kubernetesSoftwareConfig_; } /** + * + * *
    * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
    * 
* - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder getKubernetesSoftwareConfigOrBuilder() { + public com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder + getKubernetesSoftwareConfigOrBuilder() { return getKubernetesSoftwareConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +291,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesNamespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kubernetesNamespace_); } @@ -256,12 +314,14 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kubernetesNamespace_); } if (configCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.dataproc.v1.GkeClusterConfig) config_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataproc.v1.GkeClusterConfig) config_); } if (kubernetesSoftwareConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getKubernetesSoftwareConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getKubernetesSoftwareConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -271,25 +331,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.KubernetesClusterConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.KubernetesClusterConfig other = (com.google.cloud.dataproc.v1.KubernetesClusterConfig) obj; + com.google.cloud.dataproc.v1.KubernetesClusterConfig other = + (com.google.cloud.dataproc.v1.KubernetesClusterConfig) obj; - if (!getKubernetesNamespace() - .equals(other.getKubernetesNamespace())) return false; + if (!getKubernetesNamespace().equals(other.getKubernetesNamespace())) return false; if (hasKubernetesSoftwareConfig() != other.hasKubernetesSoftwareConfig()) return false; if (hasKubernetesSoftwareConfig()) { - if (!getKubernetesSoftwareConfig() - .equals(other.getKubernetesSoftwareConfig())) return false; + if (!getKubernetesSoftwareConfig().equals(other.getKubernetesSoftwareConfig())) return false; } if (!getConfigCase().equals(other.getConfigCase())) return false; switch (configCase_) { case 2: - if (!getGkeClusterConfig() - .equals(other.getGkeClusterConfig())) return false; + if (!getGkeClusterConfig().equals(other.getGkeClusterConfig())) return false; break; case 0: default: @@ -325,129 +383,135 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.KubernetesClusterConfig 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.dataproc.v1.KubernetesClusterConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.KubernetesClusterConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 configuration for running the Dataproc cluster on Kubernetes.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.KubernetesClusterConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.KubernetesClusterConfig) com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.KubernetesClusterConfig.class, com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder.class); + com.google.cloud.dataproc.v1.KubernetesClusterConfig.class, + com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.KubernetesClusterConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -468,9 +532,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; } @java.lang.Override @@ -489,7 +553,8 @@ public com.google.cloud.dataproc.v1.KubernetesClusterConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.KubernetesClusterConfig buildPartial() { - com.google.cloud.dataproc.v1.KubernetesClusterConfig result = new com.google.cloud.dataproc.v1.KubernetesClusterConfig(this); + com.google.cloud.dataproc.v1.KubernetesClusterConfig result = + new com.google.cloud.dataproc.v1.KubernetesClusterConfig(this); result.kubernetesNamespace_ = kubernetesNamespace_; if (configCase_ == 2) { if (gkeClusterConfigBuilder_ == null) { @@ -512,38 +577,39 @@ public com.google.cloud.dataproc.v1.KubernetesClusterConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.KubernetesClusterConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.KubernetesClusterConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.KubernetesClusterConfig) other); } else { super.mergeFrom(other); return this; @@ -551,7 +617,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.KubernetesClusterConfig other) { - if (other == com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance()) + return this; if (!other.getKubernetesNamespace().isEmpty()) { kubernetesNamespace_ = other.kubernetesNamespace_; onChanged(); @@ -560,13 +627,15 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.KubernetesClusterConfig ot mergeKubernetesSoftwareConfig(other.getKubernetesSoftwareConfig()); } switch (other.getConfigCase()) { - case GKE_CLUSTER_CONFIG: { - mergeGkeClusterConfig(other.getGkeClusterConfig()); - break; - } - case CONFIG_NOT_SET: { - break; - } + case GKE_CLUSTER_CONFIG: + { + mergeGkeClusterConfig(other.getGkeClusterConfig()); + break; + } + case CONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -594,31 +663,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - kubernetesNamespace_ = input.readStringRequireUtf8(); + case 10: + { + kubernetesNamespace_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getGkeClusterConfigFieldBuilder().getBuilder(), - extensionRegistry); - configCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getKubernetesSoftwareConfigFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage( + getGkeClusterConfigFieldBuilder().getBuilder(), extensionRegistry); + configCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getKubernetesSoftwareConfigFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -628,12 +699,12 @@ public Builder mergeFrom( } // finally return this; } + private int configCase_ = 0; private java.lang.Object config_; - public ConfigCase - getConfigCase() { - return ConfigCase.forNumber( - configCase_); + + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); } public Builder clearConfig() { @@ -643,9 +714,10 @@ public Builder clearConfig() { return this; } - private java.lang.Object kubernetesNamespace_ = ""; /** + * + * *
      * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
      * does not exist, it is created. If it exists, Dataproc
@@ -654,13 +726,13 @@ public Builder clearConfig() {
      * 
* * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kubernetesNamespace. */ public java.lang.String getKubernetesNamespace() { java.lang.Object ref = kubernetesNamespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kubernetesNamespace_ = s; return s; @@ -669,6 +741,8 @@ public java.lang.String getKubernetesNamespace() { } } /** + * + * *
      * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
      * does not exist, it is created. If it exists, Dataproc
@@ -677,15 +751,14 @@ public java.lang.String getKubernetesNamespace() {
      * 
* * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for kubernetesNamespace. */ - public com.google.protobuf.ByteString - getKubernetesNamespaceBytes() { + public com.google.protobuf.ByteString getKubernetesNamespaceBytes() { java.lang.Object ref = kubernetesNamespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kubernetesNamespace_ = b; return b; } else { @@ -693,6 +766,8 @@ public java.lang.String getKubernetesNamespace() { } } /** + * + * *
      * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
      * does not exist, it is created. If it exists, Dataproc
@@ -701,20 +776,22 @@ public java.lang.String getKubernetesNamespace() {
      * 
* * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The kubernetesNamespace to set. * @return This builder for chaining. */ - public Builder setKubernetesNamespace( - java.lang.String value) { + public Builder setKubernetesNamespace(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kubernetesNamespace_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
      * does not exist, it is created. If it exists, Dataproc
@@ -723,15 +800,18 @@ public Builder setKubernetesNamespace(
      * 
* * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearKubernetesNamespace() { - + kubernetesNamespace_ = getDefaultInstance().getKubernetesNamespace(); onChanged(); return this; } /** + * + * *
      * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
      * does not exist, it is created. If it exists, Dataproc
@@ -740,29 +820,37 @@ public Builder clearKubernetesNamespace() {
      * 
* * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for kubernetesNamespace to set. * @return This builder for chaining. */ - public Builder setKubernetesNamespaceBytes( - com.google.protobuf.ByteString value) { + public Builder setKubernetesNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kubernetesNamespace_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeClusterConfig, com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder> gkeClusterConfigBuilder_; + com.google.cloud.dataproc.v1.GkeClusterConfig, + com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, + com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder> + gkeClusterConfigBuilder_; /** + * + * *
      * Required. The configuration for running the Dataproc cluster on GKE.
      * 
* - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gkeClusterConfig field is set. */ @java.lang.Override @@ -770,11 +858,16 @@ public boolean hasGkeClusterConfig() { return configCase_ == 2; } /** + * + * *
      * Required. The configuration for running the Dataproc cluster on GKE.
      * 
* - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gkeClusterConfig. */ @java.lang.Override @@ -792,11 +885,15 @@ public com.google.cloud.dataproc.v1.GkeClusterConfig getGkeClusterConfig() { } } /** + * + * *
      * Required. The configuration for running the Dataproc cluster on GKE.
      * 
* - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGkeClusterConfig(com.google.cloud.dataproc.v1.GkeClusterConfig value) { if (gkeClusterConfigBuilder_ == null) { @@ -812,11 +909,15 @@ public Builder setGkeClusterConfig(com.google.cloud.dataproc.v1.GkeClusterConfig return this; } /** + * + * *
      * Required. The configuration for running the Dataproc cluster on GKE.
      * 
* - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGkeClusterConfig( com.google.cloud.dataproc.v1.GkeClusterConfig.Builder builderForValue) { @@ -830,18 +931,25 @@ public Builder setGkeClusterConfig( return this; } /** + * + * *
      * Required. The configuration for running the Dataproc cluster on GKE.
      * 
* - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeGkeClusterConfig(com.google.cloud.dataproc.v1.GkeClusterConfig value) { if (gkeClusterConfigBuilder_ == null) { - if (configCase_ == 2 && - config_ != com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance()) { - config_ = com.google.cloud.dataproc.v1.GkeClusterConfig.newBuilder((com.google.cloud.dataproc.v1.GkeClusterConfig) config_) - .mergeFrom(value).buildPartial(); + if (configCase_ == 2 + && config_ != com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance()) { + config_ = + com.google.cloud.dataproc.v1.GkeClusterConfig.newBuilder( + (com.google.cloud.dataproc.v1.GkeClusterConfig) config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -857,11 +965,15 @@ public Builder mergeGkeClusterConfig(com.google.cloud.dataproc.v1.GkeClusterConf return this; } /** + * + * *
      * Required. The configuration for running the Dataproc cluster on GKE.
      * 
* - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearGkeClusterConfig() { if (gkeClusterConfigBuilder_ == null) { @@ -880,21 +992,29 @@ public Builder clearGkeClusterConfig() { return this; } /** + * + * *
      * Required. The configuration for running the Dataproc cluster on GKE.
      * 
* - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.GkeClusterConfig.Builder getGkeClusterConfigBuilder() { return getGkeClusterConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The configuration for running the Dataproc cluster on GKE.
      * 
* - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder() { @@ -908,68 +1028,98 @@ public com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfi } } /** + * + * *
      * Required. The configuration for running the Dataproc cluster on GKE.
      * 
* - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeClusterConfig, com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder> + com.google.cloud.dataproc.v1.GkeClusterConfig, + com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, + com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder> getGkeClusterConfigFieldBuilder() { if (gkeClusterConfigBuilder_ == null) { if (!(configCase_ == 2)) { config_ = com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); } - gkeClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeClusterConfig, com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder>( + gkeClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeClusterConfig, + com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, + com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder>( (com.google.cloud.dataproc.v1.GkeClusterConfig) config_, getParentForChildren(), isClean()); config_ = null; } configCase_ = 2; - onChanged();; + onChanged(); + ; return gkeClusterConfigBuilder_; } private com.google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetesSoftwareConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig, com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder, com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder> kubernetesSoftwareConfigBuilder_; + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig, + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder, + com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder> + kubernetesSoftwareConfigBuilder_; /** + * + * *
      * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
      * 
* - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the kubernetesSoftwareConfig field is set. */ public boolean hasKubernetesSoftwareConfig() { return kubernetesSoftwareConfigBuilder_ != null || kubernetesSoftwareConfig_ != null; } /** + * + * *
      * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
      * 
* - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The kubernetesSoftwareConfig. */ public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getKubernetesSoftwareConfig() { if (kubernetesSoftwareConfigBuilder_ == null) { - return kubernetesSoftwareConfig_ == null ? com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance() : kubernetesSoftwareConfig_; + return kubernetesSoftwareConfig_ == null + ? com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance() + : kubernetesSoftwareConfig_; } else { return kubernetesSoftwareConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
      * 
* - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setKubernetesSoftwareConfig(com.google.cloud.dataproc.v1.KubernetesSoftwareConfig value) { + public Builder setKubernetesSoftwareConfig( + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig value) { if (kubernetesSoftwareConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -983,11 +1133,15 @@ public Builder setKubernetesSoftwareConfig(com.google.cloud.dataproc.v1.Kubernet return this; } /** + * + * *
      * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
      * 
* - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setKubernetesSoftwareConfig( com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder builderForValue) { @@ -1001,17 +1155,25 @@ public Builder setKubernetesSoftwareConfig( return this; } /** + * + * *
      * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
      * 
* - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeKubernetesSoftwareConfig(com.google.cloud.dataproc.v1.KubernetesSoftwareConfig value) { + public Builder mergeKubernetesSoftwareConfig( + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig value) { if (kubernetesSoftwareConfigBuilder_ == null) { if (kubernetesSoftwareConfig_ != null) { kubernetesSoftwareConfig_ = - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.newBuilder(kubernetesSoftwareConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.newBuilder( + kubernetesSoftwareConfig_) + .mergeFrom(value) + .buildPartial(); } else { kubernetesSoftwareConfig_ = value; } @@ -1023,11 +1185,15 @@ public Builder mergeKubernetesSoftwareConfig(com.google.cloud.dataproc.v1.Kubern return this; } /** + * + * *
      * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
      * 
* - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearKubernetesSoftwareConfig() { if (kubernetesSoftwareConfigBuilder_ == null) { @@ -1041,55 +1207,73 @@ public Builder clearKubernetesSoftwareConfig() { return this; } /** + * + * *
      * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
      * 
* - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder getKubernetesSoftwareConfigBuilder() { - + public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder + getKubernetesSoftwareConfigBuilder() { + onChanged(); return getKubernetesSoftwareConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
      * 
* - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder getKubernetesSoftwareConfigOrBuilder() { + public com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder + getKubernetesSoftwareConfigOrBuilder() { if (kubernetesSoftwareConfigBuilder_ != null) { return kubernetesSoftwareConfigBuilder_.getMessageOrBuilder(); } else { - return kubernetesSoftwareConfig_ == null ? - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance() : kubernetesSoftwareConfig_; + return kubernetesSoftwareConfig_ == null + ? com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance() + : kubernetesSoftwareConfig_; } } /** + * + * *
      * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
      * 
* - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig, com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder, com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder> + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig, + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder, + com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder> getKubernetesSoftwareConfigFieldBuilder() { if (kubernetesSoftwareConfigBuilder_ == null) { - kubernetesSoftwareConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig, com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder, com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder>( - getKubernetesSoftwareConfig(), - getParentForChildren(), - isClean()); + kubernetesSoftwareConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig, + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder, + com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder>( + getKubernetesSoftwareConfig(), getParentForChildren(), isClean()); kubernetesSoftwareConfig_ = null; } return kubernetesSoftwareConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1099,12 +1283,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.KubernetesClusterConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.KubernetesClusterConfig) private static final com.google.cloud.dataproc.v1.KubernetesClusterConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.KubernetesClusterConfig(); } @@ -1113,27 +1297,27 @@ public static com.google.cloud.dataproc.v1.KubernetesClusterConfig getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KubernetesClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1148,6 +1332,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.KubernetesClusterConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java similarity index 60% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java index 4053341c279d..ab45cd883279 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; -public interface KubernetesClusterConfigOrBuilder extends +public interface KubernetesClusterConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.KubernetesClusterConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
    * does not exist, it is created. If it exists, Dataproc
@@ -16,10 +34,13 @@ public interface KubernetesClusterConfigOrBuilder extends
    * 
* * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kubernetesNamespace. */ java.lang.String getKubernetesNamespace(); /** + * + * *
    * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
    * does not exist, it is created. If it exists, Dataproc
@@ -28,64 +49,93 @@ public interface KubernetesClusterConfigOrBuilder extends
    * 
* * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for kubernetesNamespace. */ - com.google.protobuf.ByteString - getKubernetesNamespaceBytes(); + com.google.protobuf.ByteString getKubernetesNamespaceBytes(); /** + * + * *
    * Required. The configuration for running the Dataproc cluster on GKE.
    * 
* - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gkeClusterConfig field is set. */ boolean hasGkeClusterConfig(); /** + * + * *
    * Required. The configuration for running the Dataproc cluster on GKE.
    * 
* - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gkeClusterConfig. */ com.google.cloud.dataproc.v1.GkeClusterConfig getGkeClusterConfig(); /** + * + * *
    * Required. The configuration for running the Dataproc cluster on GKE.
    * 
* - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder(); /** + * + * *
    * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
    * 
* - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the kubernetesSoftwareConfig field is set. */ boolean hasKubernetesSoftwareConfig(); /** + * + * *
    * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
    * 
* - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The kubernetesSoftwareConfig. */ com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getKubernetesSoftwareConfig(); /** + * + * *
    * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
    * 
* - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder getKubernetesSoftwareConfigOrBuilder(); + com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder + getKubernetesSoftwareConfigOrBuilder(); public com.google.cloud.dataproc.v1.KubernetesClusterConfig.ConfigCase getConfigCase(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java similarity index 63% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java index 567ad7ef7fca..2309d02b95c1 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java @@ -1,82 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * The software configuration for this Dataproc cluster running on Kubernetes.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.KubernetesSoftwareConfig} */ -public final class KubernetesSoftwareConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class KubernetesSoftwareConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.KubernetesSoftwareConfig) KubernetesSoftwareConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KubernetesSoftwareConfig.newBuilder() to construct. private KubernetesSoftwareConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private KubernetesSoftwareConfig() { - } + + private KubernetesSoftwareConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new KubernetesSoftwareConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_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 internalGetComponentVersion(); case 2: return internalGetProperties(); 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.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.class, com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder.class); + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.class, + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder.class); } public static final int COMPONENT_VERSION_FIELD_NUMBER = 1; + private static final class ComponentVersionDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> componentVersion_; + + private com.google.protobuf.MapField componentVersion_; + private com.google.protobuf.MapField - internalGetComponentVersion() { + internalGetComponentVersion() { if (componentVersion_ == null) { return com.google.protobuf.MapField.emptyMapField( ComponentVersionDefaultEntryHolder.defaultEntry); @@ -88,6 +106,8 @@ public int getComponentVersionCount() { return internalGetComponentVersion().getMap().size(); } /** + * + * *
    * The components that should be installed in this Dataproc cluster. The key
    * must be a string from the KubernetesComponent enumeration. The value is
@@ -97,22 +117,22 @@ public int getComponentVersionCount() {
    *
    * map<string, string> component_version = 1;
    */
-
   @java.lang.Override
-  public boolean containsComponentVersion(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsComponentVersion(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetComponentVersion().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getComponentVersionMap()} instead.
-   */
+  /** Use {@link #getComponentVersionMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getComponentVersion() {
     return getComponentVersionMap();
   }
   /**
+   *
+   *
    * 
    * The components that should be installed in this Dataproc cluster. The key
    * must be a string from the KubernetesComponent enumeration. The value is
@@ -123,11 +143,12 @@ public java.util.Map getComponentVersion() {
    * map<string, string> component_version = 1;
    */
   @java.lang.Override
-
   public java.util.Map getComponentVersionMap() {
     return internalGetComponentVersion().getMap();
   }
   /**
+   *
+   *
    * 
    * The components that should be installed in this Dataproc cluster. The key
    * must be a string from the KubernetesComponent enumeration. The value is
@@ -138,16 +159,17 @@ public java.util.Map getComponentVersionMap(
    * map<string, string> component_version = 1;
    */
   @java.lang.Override
-
   public java.lang.String getComponentVersionOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetComponentVersion().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetComponentVersion().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * The components that should be installed in this Dataproc cluster. The key
    * must be a string from the KubernetesComponent enumeration. The value is
@@ -158,12 +180,11 @@ public java.lang.String getComponentVersionOrDefault(
    * map<string, string> component_version = 1;
    */
   @java.lang.Override
-
-  public java.lang.String getComponentVersionOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetComponentVersion().getMap();
+  public java.lang.String getComponentVersionOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetComponentVersion().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -171,24 +192,23 @@ public java.lang.String getComponentVersionOrThrow(
   }
 
   public static final int PROPERTIES_FIELD_NUMBER = 2;
+
   private static final class PropertiesDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "");
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.cloud.dataproc.v1.SharedProto
+                .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
   }
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> properties_;
-  private com.google.protobuf.MapField
-  internalGetProperties() {
+
+  private com.google.protobuf.MapField properties_;
+
+  private com.google.protobuf.MapField internalGetProperties() {
     if (properties_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          PropertiesDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry);
     }
     return properties_;
   }
@@ -197,6 +217,8 @@ public int getPropertiesCount() {
     return internalGetProperties().getMap().size();
   }
   /**
+   *
+   *
    * 
    * The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -209,22 +231,22 @@ public int getPropertiesCount() {
    *
    * map<string, string> properties = 2;
    */
-
   @java.lang.Override
-  public boolean containsProperties(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsProperties(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetProperties().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getPropertiesMap()} instead.
-   */
+  /** Use {@link #getPropertiesMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getProperties() {
     return getPropertiesMap();
   }
   /**
+   *
+   *
    * 
    * The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -238,11 +260,12 @@ public java.util.Map getProperties() {
    * map<string, string> properties = 2;
    */
   @java.lang.Override
-
   public java.util.Map getPropertiesMap() {
     return internalGetProperties().getMap();
   }
   /**
+   *
+   *
    * 
    * The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -256,16 +279,17 @@ public java.util.Map getPropertiesMap() {
    * map<string, string> properties = 2;
    */
   @java.lang.Override
-
   public java.lang.String getPropertiesOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetProperties().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -279,12 +303,11 @@ public java.lang.String getPropertiesOrDefault(
    * map<string, string> properties = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getPropertiesOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetProperties().getMap();
+  public java.lang.String getPropertiesOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetProperties().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -292,6 +315,7 @@ public java.lang.String getPropertiesOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -303,20 +327,11 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetComponentVersion(),
-        ComponentVersionDefaultEntryHolder.defaultEntry,
-        1);
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetProperties(),
-        PropertiesDefaultEntryHolder.defaultEntry,
-        2);
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetComponentVersion(), ComponentVersionDefaultEntryHolder.defaultEntry, 1);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 2);
     getUnknownFields().writeTo(output);
   }
 
@@ -326,25 +341,25 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry
-         : internalGetComponentVersion().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      componentVersion__ = ComponentVersionDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, componentVersion__);
-    }
-    for (java.util.Map.Entry entry
-         : internalGetProperties().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, properties__);
+    for (java.util.Map.Entry entry :
+        internalGetComponentVersion().getMap().entrySet()) {
+      com.google.protobuf.MapEntry componentVersion__ =
+          ComponentVersionDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, componentVersion__);
+    }
+    for (java.util.Map.Entry entry :
+        internalGetProperties().getMap().entrySet()) {
+      com.google.protobuf.MapEntry properties__ =
+          PropertiesDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, properties__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -354,17 +369,16 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.dataproc.v1.KubernetesSoftwareConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.dataproc.v1.KubernetesSoftwareConfig other = (com.google.cloud.dataproc.v1.KubernetesSoftwareConfig) obj;
+    com.google.cloud.dataproc.v1.KubernetesSoftwareConfig other =
+        (com.google.cloud.dataproc.v1.KubernetesSoftwareConfig) obj;
 
-    if (!internalGetComponentVersion().equals(
-        other.internalGetComponentVersion())) return false;
-    if (!internalGetProperties().equals(
-        other.internalGetProperties())) return false;
+    if (!internalGetComponentVersion().equals(other.internalGetComponentVersion())) return false;
+    if (!internalGetProperties().equals(other.internalGetProperties())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -390,155 +404,160 @@ public int hashCode() {
   }
 
   public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig 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.dataproc.v1.KubernetesSoftwareConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.dataproc.v1.KubernetesSoftwareConfig prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.dataproc.v1.KubernetesSoftwareConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 software configuration for this Dataproc cluster running on Kubernetes.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.KubernetesSoftwareConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.KubernetesSoftwareConfig) com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetComponentVersion(); case 2: return internalGetProperties(); 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 internalGetMutableComponentVersion(); case 2: return internalGetMutableProperties(); 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.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.class, com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder.class); + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.class, + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -548,9 +567,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; } @java.lang.Override @@ -569,7 +588,8 @@ public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig buildPartial() { - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig result = new com.google.cloud.dataproc.v1.KubernetesSoftwareConfig(this); + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig result = + new com.google.cloud.dataproc.v1.KubernetesSoftwareConfig(this); int from_bitField0_ = bitField0_; result.componentVersion_ = internalGetComponentVersion(); result.componentVersion_.makeImmutable(); @@ -583,38 +603,39 @@ public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.KubernetesSoftwareConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.KubernetesSoftwareConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.KubernetesSoftwareConfig) other); } else { super.mergeFrom(other); return this; @@ -622,11 +643,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.KubernetesSoftwareConfig other) { - if (other == com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance()) return this; - internalGetMutableComponentVersion().mergeFrom( - other.internalGetComponentVersion()); - internalGetMutableProperties().mergeFrom( - other.internalGetProperties()); + if (other == com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance()) + return this; + internalGetMutableComponentVersion().mergeFrom(other.internalGetComponentVersion()); + internalGetMutableProperties().mergeFrom(other.internalGetProperties()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -653,28 +673,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.MapEntry - componentVersion__ = input.readMessage( - ComponentVersionDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableComponentVersion().getMutableMap().put( - componentVersion__.getKey(), componentVersion__.getValue()); - break; - } // case 10 - case 18: { - com.google.protobuf.MapEntry - properties__ = input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableProperties().getMutableMap().put( - properties__.getKey(), properties__.getValue()); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.MapEntry + componentVersion__ = + input.readMessage( + ComponentVersionDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableComponentVersion() + .getMutableMap() + .put(componentVersion__.getKey(), componentVersion__.getValue()); + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties() + .getMutableMap() + .put(properties__.getKey(), properties__.getValue()); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -684,24 +712,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> componentVersion_; + private com.google.protobuf.MapField componentVersion_; + private com.google.protobuf.MapField - internalGetComponentVersion() { + internalGetComponentVersion() { if (componentVersion_ == null) { return com.google.protobuf.MapField.emptyMapField( ComponentVersionDefaultEntryHolder.defaultEntry); } return componentVersion_; } + private com.google.protobuf.MapField - internalGetMutableComponentVersion() { - onChanged();; + internalGetMutableComponentVersion() { + onChanged(); + ; if (componentVersion_ == null) { - componentVersion_ = com.google.protobuf.MapField.newMapField( - ComponentVersionDefaultEntryHolder.defaultEntry); + componentVersion_ = + com.google.protobuf.MapField.newMapField( + ComponentVersionDefaultEntryHolder.defaultEntry); } if (!componentVersion_.isMutable()) { componentVersion_ = componentVersion_.copy(); @@ -713,6 +745,8 @@ public int getComponentVersionCount() { return internalGetComponentVersion().getMap().size(); } /** + * + * *
      * The components that should be installed in this Dataproc cluster. The key
      * must be a string from the KubernetesComponent enumeration. The value is
@@ -722,22 +756,22 @@ public int getComponentVersionCount() {
      *
      * map<string, string> component_version = 1;
      */
-
     @java.lang.Override
-    public boolean containsComponentVersion(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsComponentVersion(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetComponentVersion().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getComponentVersionMap()} instead.
-     */
+    /** Use {@link #getComponentVersionMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getComponentVersion() {
       return getComponentVersionMap();
     }
     /**
+     *
+     *
      * 
      * The components that should be installed in this Dataproc cluster. The key
      * must be a string from the KubernetesComponent enumeration. The value is
@@ -748,11 +782,12 @@ public java.util.Map getComponentVersion() {
      * map<string, string> component_version = 1;
      */
     @java.lang.Override
-
     public java.util.Map getComponentVersionMap() {
       return internalGetComponentVersion().getMap();
     }
     /**
+     *
+     *
      * 
      * The components that should be installed in this Dataproc cluster. The key
      * must be a string from the KubernetesComponent enumeration. The value is
@@ -763,16 +798,18 @@ public java.util.Map getComponentVersionMap(
      * map<string, string> component_version = 1;
      */
     @java.lang.Override
-
     public java.lang.String getComponentVersionOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetComponentVersion().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * The components that should be installed in this Dataproc cluster. The key
      * must be a string from the KubernetesComponent enumeration. The value is
@@ -783,10 +820,10 @@ public java.lang.String getComponentVersionOrDefault(
      * map<string, string> component_version = 1;
      */
     @java.lang.Override
-
-    public java.lang.String getComponentVersionOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public java.lang.String getComponentVersionOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetComponentVersion().getMap();
       if (!map.containsKey(key)) {
@@ -796,11 +833,12 @@ public java.lang.String getComponentVersionOrThrow(
     }
 
     public Builder clearComponentVersion() {
-      internalGetMutableComponentVersion().getMutableMap()
-          .clear();
+      internalGetMutableComponentVersion().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * The components that should be installed in this Dataproc cluster. The key
      * must be a string from the KubernetesComponent enumeration. The value is
@@ -810,23 +848,21 @@ public Builder clearComponentVersion() {
      *
      * map<string, string> component_version = 1;
      */
-
-    public Builder removeComponentVersion(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableComponentVersion().getMutableMap()
-          .remove(key);
+    public Builder removeComponentVersion(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableComponentVersion().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableComponentVersion() {
+    public java.util.Map getMutableComponentVersion() {
       return internalGetMutableComponentVersion().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * The components that should be installed in this Dataproc cluster. The key
      * must be a string from the KubernetesComponent enumeration. The value is
@@ -836,19 +872,20 @@ public Builder removeComponentVersion(
      *
      * map<string, string> component_version = 1;
      */
-    public Builder putComponentVersion(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putComponentVersion(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");
+      }
 
-      internalGetMutableComponentVersion().getMutableMap()
-          .put(key, value);
+      internalGetMutableComponentVersion().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * The components that should be installed in this Dataproc cluster. The key
      * must be a string from the KubernetesComponent enumeration. The value is
@@ -858,30 +895,30 @@ public Builder putComponentVersion(
      *
      * map<string, string> component_version = 1;
      */
-
     public Builder putAllComponentVersion(
         java.util.Map values) {
-      internalGetMutableComponentVersion().getMutableMap()
-          .putAll(values);
+      internalGetMutableComponentVersion().getMutableMap().putAll(values);
       return this;
     }
 
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.String> properties_;
+    private com.google.protobuf.MapField properties_;
+
     private com.google.protobuf.MapField
-    internalGetProperties() {
+        internalGetProperties() {
       if (properties_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             PropertiesDefaultEntryHolder.defaultEntry);
       }
       return properties_;
     }
+
     private com.google.protobuf.MapField
-    internalGetMutableProperties() {
-      onChanged();;
+        internalGetMutableProperties() {
+      onChanged();
+      ;
       if (properties_ == null) {
-        properties_ = com.google.protobuf.MapField.newMapField(
-            PropertiesDefaultEntryHolder.defaultEntry);
+        properties_ =
+            com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry);
       }
       if (!properties_.isMutable()) {
         properties_ = properties_.copy();
@@ -893,6 +930,8 @@ public int getPropertiesCount() {
       return internalGetProperties().getMap().size();
     }
     /**
+     *
+     *
      * 
      * The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -905,22 +944,22 @@ public int getPropertiesCount() {
      *
      * map<string, string> properties = 2;
      */
-
     @java.lang.Override
-    public boolean containsProperties(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsProperties(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetProperties().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getPropertiesMap()} instead.
-     */
+    /** Use {@link #getPropertiesMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getProperties() {
       return getPropertiesMap();
     }
     /**
+     *
+     *
      * 
      * The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -934,11 +973,12 @@ public java.util.Map getProperties() {
      * map<string, string> properties = 2;
      */
     @java.lang.Override
-
     public java.util.Map getPropertiesMap() {
       return internalGetProperties().getMap();
     }
     /**
+     *
+     *
      * 
      * The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -952,16 +992,17 @@ public java.util.Map getPropertiesMap() {
      * map<string, string> properties = 2;
      */
     @java.lang.Override
-
     public java.lang.String getPropertiesOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetProperties().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -975,12 +1016,11 @@ public java.lang.String getPropertiesOrDefault(
      * map<string, string> properties = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getPropertiesOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetProperties().getMap();
+    public java.lang.String getPropertiesOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetProperties().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -988,11 +1028,12 @@ public java.lang.String getPropertiesOrThrow(
     }
 
     public Builder clearProperties() {
-      internalGetMutableProperties().getMutableMap()
-          .clear();
+      internalGetMutableProperties().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1005,23 +1046,21 @@ public Builder clearProperties() {
      *
      * map<string, string> properties = 2;
      */
-
-    public Builder removeProperties(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableProperties().getMutableMap()
-          .remove(key);
+    public Builder removeProperties(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableProperties().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableProperties() {
+    public java.util.Map getMutableProperties() {
       return internalGetMutableProperties().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1034,19 +1073,20 @@ public Builder removeProperties(
      *
      * map<string, string> properties = 2;
      */
-    public Builder putProperties(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putProperties(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");
+      }
 
-      internalGetMutableProperties().getMutableMap()
-          .put(key, value);
+      internalGetMutableProperties().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1059,16 +1099,13 @@ public Builder putProperties(
      *
      * map<string, string> properties = 2;
      */
-
-    public Builder putAllProperties(
-        java.util.Map values) {
-      internalGetMutableProperties().getMutableMap()
-          .putAll(values);
+    public Builder putAllProperties(java.util.Map values) {
+      internalGetMutableProperties().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);
     }
 
@@ -1078,12 +1115,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.KubernetesSoftwareConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.KubernetesSoftwareConfig)
   private static final com.google.cloud.dataproc.v1.KubernetesSoftwareConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.KubernetesSoftwareConfig();
   }
@@ -1092,27 +1129,27 @@ public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public KubernetesSoftwareConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public KubernetesSoftwareConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1127,6 +1164,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java
similarity index 75%
rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java
rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java
index 684e53d99f15..e6db7aaf3c12 100644
--- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java
+++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/dataproc/v1/shared.proto
 
 package com.google.cloud.dataproc.v1;
 
-public interface KubernetesSoftwareConfigOrBuilder extends
+public interface KubernetesSoftwareConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.KubernetesSoftwareConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The components that should be installed in this Dataproc cluster. The key
    * must be a string from the KubernetesComponent enumeration. The value is
@@ -19,6 +37,8 @@ public interface KubernetesSoftwareConfigOrBuilder extends
    */
   int getComponentVersionCount();
   /**
+   *
+   *
    * 
    * The components that should be installed in this Dataproc cluster. The key
    * must be a string from the KubernetesComponent enumeration. The value is
@@ -28,15 +48,13 @@ public interface KubernetesSoftwareConfigOrBuilder extends
    *
    * map<string, string> component_version = 1;
    */
-  boolean containsComponentVersion(
-      java.lang.String key);
-  /**
-   * Use {@link #getComponentVersionMap()} instead.
-   */
+  boolean containsComponentVersion(java.lang.String key);
+  /** Use {@link #getComponentVersionMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getComponentVersion();
+  java.util.Map getComponentVersion();
   /**
+   *
+   *
    * 
    * The components that should be installed in this Dataproc cluster. The key
    * must be a string from the KubernetesComponent enumeration. The value is
@@ -46,9 +64,10 @@ boolean containsComponentVersion(
    *
    * map<string, string> component_version = 1;
    */
-  java.util.Map
-  getComponentVersionMap();
+  java.util.Map getComponentVersionMap();
   /**
+   *
+   *
    * 
    * The components that should be installed in this Dataproc cluster. The key
    * must be a string from the KubernetesComponent enumeration. The value is
@@ -60,11 +79,13 @@ boolean containsComponentVersion(
    */
 
   /* nullable */
-java.lang.String getComponentVersionOrDefault(
+  java.lang.String getComponentVersionOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * The components that should be installed in this Dataproc cluster. The key
    * must be a string from the KubernetesComponent enumeration. The value is
@@ -74,11 +95,11 @@ java.lang.String getComponentVersionOrDefault(
    *
    * map<string, string> component_version = 1;
    */
-
-  java.lang.String getComponentVersionOrThrow(
-      java.lang.String key);
+  java.lang.String getComponentVersionOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -93,6 +114,8 @@ java.lang.String getComponentVersionOrThrow(
    */
   int getPropertiesCount();
   /**
+   *
+   *
    * 
    * The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -105,15 +128,13 @@ java.lang.String getComponentVersionOrThrow(
    *
    * map<string, string> properties = 2;
    */
-  boolean containsProperties(
-      java.lang.String key);
-  /**
-   * Use {@link #getPropertiesMap()} instead.
-   */
+  boolean containsProperties(java.lang.String key);
+  /** Use {@link #getPropertiesMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getProperties();
+  java.util.Map getProperties();
   /**
+   *
+   *
    * 
    * The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -126,9 +147,10 @@ boolean containsProperties(
    *
    * map<string, string> properties = 2;
    */
-  java.util.Map
-  getPropertiesMap();
+  java.util.Map getPropertiesMap();
   /**
+   *
+   *
    * 
    * The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -143,11 +165,13 @@ boolean containsProperties(
    */
 
   /* nullable */
-java.lang.String getPropertiesOrDefault(
+  java.lang.String getPropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -160,7 +184,5 @@ java.lang.String getPropertiesOrDefault(
    *
    * map<string, string> properties = 2;
    */
-
-  java.lang.String getPropertiesOrThrow(
-      java.lang.String key);
+  java.lang.String getPropertiesOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java
similarity index 68%
rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java
rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java
index ad3cb96054ac..45467d8d58f7 100644
--- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java
+++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java
@@ -1,61 +1,82 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/dataproc/v1/clusters.proto
 
 package com.google.cloud.dataproc.v1;
 
 /**
+ *
+ *
  * 
  * Specifies the cluster auto-delete schedule configuration.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.LifecycleConfig} */ -public final class LifecycleConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LifecycleConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.LifecycleConfig) LifecycleConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LifecycleConfig.newBuilder() to construct. private LifecycleConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LifecycleConfig() { - } + + private LifecycleConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LifecycleConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.LifecycleConfig.class, com.google.cloud.dataproc.v1.LifecycleConfig.Builder.class); + com.google.cloud.dataproc.v1.LifecycleConfig.class, + com.google.cloud.dataproc.v1.LifecycleConfig.Builder.class); } private int ttlCase_ = 0; private java.lang.Object ttl_; + public enum TtlCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AUTO_DELETE_TIME(2), AUTO_DELETE_TTL(3), TTL_NOT_SET(0); private final int value; + private TtlCase(int value) { this.value = value; } @@ -71,26 +92,31 @@ public static TtlCase valueOf(int value) { public static TtlCase forNumber(int value) { switch (value) { - case 2: return AUTO_DELETE_TIME; - case 3: return AUTO_DELETE_TTL; - case 0: return TTL_NOT_SET; - default: return null; + case 2: + return AUTO_DELETE_TIME; + case 3: + return AUTO_DELETE_TTL; + case 0: + return TTL_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public TtlCase - getTtlCase() { - return TtlCase.forNumber( - ttlCase_); + public TtlCase getTtlCase() { + return TtlCase.forNumber(ttlCase_); } public static final int IDLE_DELETE_TTL_FIELD_NUMBER = 1; private com.google.protobuf.Duration idleDeleteTtl_; /** + * + * *
    * Optional. The duration to keep the cluster alive while idling (when no jobs
    * are running). Passing this threshold will cause the cluster to be
@@ -99,7 +125,9 @@ public int getNumber() {
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the idleDeleteTtl field is set. */ @java.lang.Override @@ -107,6 +135,8 @@ public boolean hasIdleDeleteTtl() { return idleDeleteTtl_ != null; } /** + * + * *
    * Optional. The duration to keep the cluster alive while idling (when no jobs
    * are running). Passing this threshold will cause the cluster to be
@@ -115,14 +145,20 @@ public boolean hasIdleDeleteTtl() {
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The idleDeleteTtl. */ @java.lang.Override public com.google.protobuf.Duration getIdleDeleteTtl() { - return idleDeleteTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleDeleteTtl_; + return idleDeleteTtl_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : idleDeleteTtl_; } /** + * + * *
    * Optional. The duration to keep the cluster alive while idling (when no jobs
    * are running). Passing this threshold will cause the cluster to be
@@ -131,7 +167,8 @@ public com.google.protobuf.Duration getIdleDeleteTtl() {
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder() { @@ -140,13 +177,18 @@ public com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder() { public static final int AUTO_DELETE_TIME_FIELD_NUMBER = 2; /** + * + * *
    * Optional. The time when cluster will be auto-deleted (see JSON
    * representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the autoDeleteTime field is set. */ @java.lang.Override @@ -154,41 +196,52 @@ public boolean hasAutoDeleteTime() { return ttlCase_ == 2; } /** + * + * *
    * Optional. The time when cluster will be auto-deleted (see JSON
    * representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The autoDeleteTime. */ @java.lang.Override public com.google.protobuf.Timestamp getAutoDeleteTime() { if (ttlCase_ == 2) { - return (com.google.protobuf.Timestamp) ttl_; + return (com.google.protobuf.Timestamp) ttl_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
    * Optional. The time when cluster will be auto-deleted (see JSON
    * representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder() { if (ttlCase_ == 2) { - return (com.google.protobuf.Timestamp) ttl_; + return (com.google.protobuf.Timestamp) ttl_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } public static final int AUTO_DELETE_TTL_FIELD_NUMBER = 3; /** + * + * *
    * Optional. The lifetime duration of cluster. The cluster will be
    * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -196,7 +249,9 @@ public com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder() {
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the autoDeleteTtl field is set. */ @java.lang.Override @@ -204,6 +259,8 @@ public boolean hasAutoDeleteTtl() { return ttlCase_ == 3; } /** + * + * *
    * Optional. The lifetime duration of cluster. The cluster will be
    * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -211,17 +268,21 @@ public boolean hasAutoDeleteTtl() {
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The autoDeleteTtl. */ @java.lang.Override public com.google.protobuf.Duration getAutoDeleteTtl() { if (ttlCase_ == 3) { - return (com.google.protobuf.Duration) ttl_; + return (com.google.protobuf.Duration) ttl_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** + * + * *
    * Optional. The lifetime duration of cluster. The cluster will be
    * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -229,12 +290,13 @@ public com.google.protobuf.Duration getAutoDeleteTtl() {
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() { if (ttlCase_ == 3) { - return (com.google.protobuf.Duration) ttl_; + return (com.google.protobuf.Duration) ttl_; } return com.google.protobuf.Duration.getDefaultInstance(); } @@ -242,6 +304,8 @@ public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() { public static final int IDLE_START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp idleStartTime_; /** + * + * *
    * Output only. The time when cluster became idle (most recent job finished)
    * and became eligible for deletion due to idleness (see JSON representation
@@ -249,7 +313,10 @@ public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() {
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the idleStartTime field is set. */ @java.lang.Override @@ -257,6 +324,8 @@ public boolean hasIdleStartTime() { return idleStartTime_ != null; } /** + * + * *
    * Output only. The time when cluster became idle (most recent job finished)
    * and became eligible for deletion due to idleness (see JSON representation
@@ -264,14 +333,21 @@ public boolean hasIdleStartTime() {
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The idleStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getIdleStartTime() { - return idleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : idleStartTime_; + return idleStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : idleStartTime_; } /** + * + * *
    * Output only. The time when cluster became idle (most recent job finished)
    * and became eligible for deletion due to idleness (see JSON representation
@@ -279,7 +355,9 @@ public com.google.protobuf.Timestamp getIdleStartTime() {
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder() { @@ -287,6 +365,7 @@ public com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -298,8 +377,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (idleDeleteTtl_ != null) { output.writeMessage(1, getIdleDeleteTtl()); } @@ -322,20 +400,20 @@ public int getSerializedSize() { size = 0; if (idleDeleteTtl_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getIdleDeleteTtl()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIdleDeleteTtl()); } if (ttlCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.protobuf.Timestamp) ttl_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.protobuf.Timestamp) ttl_); } if (ttlCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.protobuf.Duration) ttl_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.protobuf.Duration) ttl_); } if (idleStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getIdleStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIdleStartTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -345,32 +423,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.dataproc.v1.LifecycleConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.LifecycleConfig other = (com.google.cloud.dataproc.v1.LifecycleConfig) obj; + com.google.cloud.dataproc.v1.LifecycleConfig other = + (com.google.cloud.dataproc.v1.LifecycleConfig) obj; if (hasIdleDeleteTtl() != other.hasIdleDeleteTtl()) return false; if (hasIdleDeleteTtl()) { - if (!getIdleDeleteTtl() - .equals(other.getIdleDeleteTtl())) return false; + if (!getIdleDeleteTtl().equals(other.getIdleDeleteTtl())) return false; } if (hasIdleStartTime() != other.hasIdleStartTime()) return false; if (hasIdleStartTime()) { - if (!getIdleStartTime() - .equals(other.getIdleStartTime())) return false; + if (!getIdleStartTime().equals(other.getIdleStartTime())) return false; } if (!getTtlCase().equals(other.getTtlCase())) return false; switch (ttlCase_) { case 2: - if (!getAutoDeleteTime() - .equals(other.getAutoDeleteTime())) return false; + if (!getAutoDeleteTime().equals(other.getAutoDeleteTime())) return false; break; case 3: - if (!getAutoDeleteTtl() - .equals(other.getAutoDeleteTtl())) return false; + if (!getAutoDeleteTtl().equals(other.getAutoDeleteTtl())) return false; break; case 0: default: @@ -411,130 +486,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.LifecycleConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.LifecycleConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.LifecycleConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.LifecycleConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specifies the cluster auto-delete schedule configuration.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.LifecycleConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.LifecycleConfig) com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.LifecycleConfig.class, com.google.cloud.dataproc.v1.LifecycleConfig.Builder.class); + com.google.cloud.dataproc.v1.LifecycleConfig.class, + com.google.cloud.dataproc.v1.LifecycleConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.LifecycleConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -562,9 +643,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; } @java.lang.Override @@ -583,7 +664,8 @@ public com.google.cloud.dataproc.v1.LifecycleConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.LifecycleConfig buildPartial() { - com.google.cloud.dataproc.v1.LifecycleConfig result = new com.google.cloud.dataproc.v1.LifecycleConfig(this); + com.google.cloud.dataproc.v1.LifecycleConfig result = + new com.google.cloud.dataproc.v1.LifecycleConfig(this); if (idleDeleteTtlBuilder_ == null) { result.idleDeleteTtl_ = idleDeleteTtl_; } else { @@ -617,38 +699,39 @@ public com.google.cloud.dataproc.v1.LifecycleConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.LifecycleConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.LifecycleConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.LifecycleConfig) other); } else { super.mergeFrom(other); return this; @@ -664,17 +747,20 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.LifecycleConfig other) { mergeIdleStartTime(other.getIdleStartTime()); } switch (other.getTtlCase()) { - case AUTO_DELETE_TIME: { - mergeAutoDeleteTime(other.getAutoDeleteTime()); - break; - } - case AUTO_DELETE_TTL: { - mergeAutoDeleteTtl(other.getAutoDeleteTtl()); - break; - } - case TTL_NOT_SET: { - break; - } + case AUTO_DELETE_TIME: + { + mergeAutoDeleteTime(other.getAutoDeleteTime()); + break; + } + case AUTO_DELETE_TTL: + { + mergeAutoDeleteTtl(other.getAutoDeleteTtl()); + break; + } + case TTL_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -702,40 +788,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getIdleDeleteTtlFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getIdleDeleteTtlFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - input.readMessage( - getAutoDeleteTimeFieldBuilder().getBuilder(), - extensionRegistry); - ttlCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getAutoDeleteTtlFieldBuilder().getBuilder(), - extensionRegistry); - ttlCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getIdleStartTimeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getAutoDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + ttlCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getAutoDeleteTtlFieldBuilder().getBuilder(), extensionRegistry); + ttlCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getIdleStartTimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -745,12 +828,12 @@ public Builder mergeFrom( } // finally return this; } + private int ttlCase_ = 0; private java.lang.Object ttl_; - public TtlCase - getTtlCase() { - return TtlCase.forNumber( - ttlCase_); + + public TtlCase getTtlCase() { + return TtlCase.forNumber(ttlCase_); } public Builder clearTtl() { @@ -760,11 +843,15 @@ public Builder clearTtl() { return this; } - private com.google.protobuf.Duration idleDeleteTtl_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> idleDeleteTtlBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + idleDeleteTtlBuilder_; /** + * + * *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
@@ -773,13 +860,18 @@ public Builder clearTtl() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the idleDeleteTtl field is set. */ public boolean hasIdleDeleteTtl() { return idleDeleteTtlBuilder_ != null || idleDeleteTtl_ != null; } /** + * + * *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
@@ -788,17 +880,24 @@ public boolean hasIdleDeleteTtl() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The idleDeleteTtl. */ public com.google.protobuf.Duration getIdleDeleteTtl() { if (idleDeleteTtlBuilder_ == null) { - return idleDeleteTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleDeleteTtl_; + return idleDeleteTtl_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : idleDeleteTtl_; } else { return idleDeleteTtlBuilder_.getMessage(); } } /** + * + * *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
@@ -807,7 +906,9 @@ public com.google.protobuf.Duration getIdleDeleteTtl() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setIdleDeleteTtl(com.google.protobuf.Duration value) { if (idleDeleteTtlBuilder_ == null) { @@ -823,6 +924,8 @@ public Builder setIdleDeleteTtl(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
@@ -831,10 +934,11 @@ public Builder setIdleDeleteTtl(com.google.protobuf.Duration value) {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setIdleDeleteTtl( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setIdleDeleteTtl(com.google.protobuf.Duration.Builder builderForValue) { if (idleDeleteTtlBuilder_ == null) { idleDeleteTtl_ = builderForValue.build(); onChanged(); @@ -845,6 +949,8 @@ public Builder setIdleDeleteTtl( return this; } /** + * + * *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
@@ -853,13 +959,17 @@ public Builder setIdleDeleteTtl(
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeIdleDeleteTtl(com.google.protobuf.Duration value) { if (idleDeleteTtlBuilder_ == null) { if (idleDeleteTtl_ != null) { idleDeleteTtl_ = - com.google.protobuf.Duration.newBuilder(idleDeleteTtl_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(idleDeleteTtl_) + .mergeFrom(value) + .buildPartial(); } else { idleDeleteTtl_ = value; } @@ -871,6 +981,8 @@ public Builder mergeIdleDeleteTtl(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
@@ -879,7 +991,9 @@ public Builder mergeIdleDeleteTtl(com.google.protobuf.Duration value) {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearIdleDeleteTtl() { if (idleDeleteTtlBuilder_ == null) { @@ -893,6 +1007,8 @@ public Builder clearIdleDeleteTtl() { return this; } /** + * + * *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
@@ -901,14 +1017,18 @@ public Builder clearIdleDeleteTtl() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getIdleDeleteTtlBuilder() { - + onChanged(); return getIdleDeleteTtlFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
@@ -917,17 +1037,22 @@ public com.google.protobuf.Duration.Builder getIdleDeleteTtlBuilder() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder() { if (idleDeleteTtlBuilder_ != null) { return idleDeleteTtlBuilder_.getMessageOrBuilder(); } else { - return idleDeleteTtl_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : idleDeleteTtl_; + return idleDeleteTtl_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : idleDeleteTtl_; } } /** + * + * *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
@@ -936,32 +1061,45 @@ public com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getIdleDeleteTtlFieldBuilder() { if (idleDeleteTtlBuilder_ == null) { - idleDeleteTtlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getIdleDeleteTtl(), - getParentForChildren(), - isClean()); + idleDeleteTtlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getIdleDeleteTtl(), getParentForChildren(), isClean()); idleDeleteTtl_ = null; } return idleDeleteTtlBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> autoDeleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + autoDeleteTimeBuilder_; /** + * + * *
      * Optional. The time when cluster will be auto-deleted (see JSON
      * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the autoDeleteTime field is set. */ @java.lang.Override @@ -969,13 +1107,18 @@ public boolean hasAutoDeleteTime() { return ttlCase_ == 2; } /** + * + * *
      * Optional. The time when cluster will be auto-deleted (see JSON
      * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The autoDeleteTime. */ @java.lang.Override @@ -993,13 +1136,17 @@ public com.google.protobuf.Timestamp getAutoDeleteTime() { } } /** + * + * *
      * Optional. The time when cluster will be auto-deleted (see JSON
      * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAutoDeleteTime(com.google.protobuf.Timestamp value) { if (autoDeleteTimeBuilder_ == null) { @@ -1015,16 +1162,19 @@ public Builder setAutoDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. The time when cluster will be auto-deleted (see JSON
      * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAutoDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setAutoDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (autoDeleteTimeBuilder_ == null) { ttl_ = builderForValue.build(); onChanged(); @@ -1035,20 +1185,25 @@ public Builder setAutoDeleteTime( return this; } /** + * + * *
      * Optional. The time when cluster will be auto-deleted (see JSON
      * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeAutoDeleteTime(com.google.protobuf.Timestamp value) { if (autoDeleteTimeBuilder_ == null) { - if (ttlCase_ == 2 && - ttl_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - ttl_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) ttl_) - .mergeFrom(value).buildPartial(); + if (ttlCase_ == 2 && ttl_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + ttl_ = + com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) ttl_) + .mergeFrom(value) + .buildPartial(); } else { ttl_ = value; } @@ -1064,13 +1219,17 @@ public Builder mergeAutoDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. The time when cluster will be auto-deleted (see JSON
      * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAutoDeleteTime() { if (autoDeleteTimeBuilder_ == null) { @@ -1089,25 +1248,33 @@ public Builder clearAutoDeleteTime() { return this; } /** + * + * *
      * Optional. The time when cluster will be auto-deleted (see JSON
      * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getAutoDeleteTimeBuilder() { return getAutoDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The time when cluster will be auto-deleted (see JSON
      * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder() { @@ -1121,36 +1288,49 @@ public com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder() { } } /** + * + * *
      * Optional. The time when cluster will be auto-deleted (see JSON
      * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getAutoDeleteTimeFieldBuilder() { if (autoDeleteTimeBuilder_ == null) { if (!(ttlCase_ == 2)) { ttl_ = com.google.protobuf.Timestamp.getDefaultInstance(); } - autoDeleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) ttl_, - getParentForChildren(), - isClean()); + autoDeleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) ttl_, getParentForChildren(), isClean()); ttl_ = null; } ttlCase_ = 2; - onChanged();; + onChanged(); + ; return autoDeleteTimeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> autoDeleteTtlBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + autoDeleteTtlBuilder_; /** + * + * *
      * Optional. The lifetime duration of cluster. The cluster will be
      * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -1158,7 +1338,10 @@ public com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the autoDeleteTtl field is set. */ @java.lang.Override @@ -1166,6 +1349,8 @@ public boolean hasAutoDeleteTtl() { return ttlCase_ == 3; } /** + * + * *
      * Optional. The lifetime duration of cluster. The cluster will be
      * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -1173,7 +1358,10 @@ public boolean hasAutoDeleteTtl() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The autoDeleteTtl. */ @java.lang.Override @@ -1191,6 +1379,8 @@ public com.google.protobuf.Duration getAutoDeleteTtl() { } } /** + * + * *
      * Optional. The lifetime duration of cluster. The cluster will be
      * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -1198,7 +1388,9 @@ public com.google.protobuf.Duration getAutoDeleteTtl() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAutoDeleteTtl(com.google.protobuf.Duration value) { if (autoDeleteTtlBuilder_ == null) { @@ -1214,6 +1406,8 @@ public Builder setAutoDeleteTtl(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. The lifetime duration of cluster. The cluster will be
      * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -1221,10 +1415,11 @@ public Builder setAutoDeleteTtl(com.google.protobuf.Duration value) {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAutoDeleteTtl( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setAutoDeleteTtl(com.google.protobuf.Duration.Builder builderForValue) { if (autoDeleteTtlBuilder_ == null) { ttl_ = builderForValue.build(); onChanged(); @@ -1235,6 +1430,8 @@ public Builder setAutoDeleteTtl( return this; } /** + * + * *
      * Optional. The lifetime duration of cluster. The cluster will be
      * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -1242,14 +1439,17 @@ public Builder setAutoDeleteTtl(
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeAutoDeleteTtl(com.google.protobuf.Duration value) { if (autoDeleteTtlBuilder_ == null) { - if (ttlCase_ == 3 && - ttl_ != com.google.protobuf.Duration.getDefaultInstance()) { - ttl_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) ttl_) - .mergeFrom(value).buildPartial(); + if (ttlCase_ == 3 && ttl_ != com.google.protobuf.Duration.getDefaultInstance()) { + ttl_ = + com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) ttl_) + .mergeFrom(value) + .buildPartial(); } else { ttl_ = value; } @@ -1265,6 +1465,8 @@ public Builder mergeAutoDeleteTtl(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. The lifetime duration of cluster. The cluster will be
      * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -1272,7 +1474,9 @@ public Builder mergeAutoDeleteTtl(com.google.protobuf.Duration value) {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAutoDeleteTtl() { if (autoDeleteTtlBuilder_ == null) { @@ -1291,6 +1495,8 @@ public Builder clearAutoDeleteTtl() { return this; } /** + * + * *
      * Optional. The lifetime duration of cluster. The cluster will be
      * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -1298,12 +1504,16 @@ public Builder clearAutoDeleteTtl() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getAutoDeleteTtlBuilder() { return getAutoDeleteTtlFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The lifetime duration of cluster. The cluster will be
      * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -1311,7 +1521,9 @@ public com.google.protobuf.Duration.Builder getAutoDeleteTtlBuilder() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() { @@ -1325,6 +1537,8 @@ public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() { } } /** + * + * *
      * Optional. The lifetime duration of cluster. The cluster will be
      * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -1332,31 +1546,42 @@ public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() {
      * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getAutoDeleteTtlFieldBuilder() { if (autoDeleteTtlBuilder_ == null) { if (!(ttlCase_ == 3)) { ttl_ = com.google.protobuf.Duration.getDefaultInstance(); } - autoDeleteTtlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - (com.google.protobuf.Duration) ttl_, - getParentForChildren(), - isClean()); + autoDeleteTtlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) ttl_, getParentForChildren(), isClean()); ttl_ = null; } ttlCase_ = 3; - onChanged();; + onChanged(); + ; return autoDeleteTtlBuilder_; } private com.google.protobuf.Timestamp idleStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> idleStartTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + idleStartTimeBuilder_; /** + * + * *
      * Output only. The time when cluster became idle (most recent job finished)
      * and became eligible for deletion due to idleness (see JSON representation
@@ -1364,13 +1589,18 @@ public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() {
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the idleStartTime field is set. */ public boolean hasIdleStartTime() { return idleStartTimeBuilder_ != null || idleStartTime_ != null; } /** + * + * *
      * Output only. The time when cluster became idle (most recent job finished)
      * and became eligible for deletion due to idleness (see JSON representation
@@ -1378,17 +1608,24 @@ public boolean hasIdleStartTime() {
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The idleStartTime. */ public com.google.protobuf.Timestamp getIdleStartTime() { if (idleStartTimeBuilder_ == null) { - return idleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : idleStartTime_; + return idleStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : idleStartTime_; } else { return idleStartTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when cluster became idle (most recent job finished)
      * and became eligible for deletion due to idleness (see JSON representation
@@ -1396,7 +1633,9 @@ public com.google.protobuf.Timestamp getIdleStartTime() {
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setIdleStartTime(com.google.protobuf.Timestamp value) { if (idleStartTimeBuilder_ == null) { @@ -1412,6 +1651,8 @@ public Builder setIdleStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when cluster became idle (most recent job finished)
      * and became eligible for deletion due to idleness (see JSON representation
@@ -1419,10 +1660,11 @@ public Builder setIdleStartTime(com.google.protobuf.Timestamp value) {
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setIdleStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setIdleStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (idleStartTimeBuilder_ == null) { idleStartTime_ = builderForValue.build(); onChanged(); @@ -1433,6 +1675,8 @@ public Builder setIdleStartTime( return this; } /** + * + * *
      * Output only. The time when cluster became idle (most recent job finished)
      * and became eligible for deletion due to idleness (see JSON representation
@@ -1440,13 +1684,17 @@ public Builder setIdleStartTime(
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeIdleStartTime(com.google.protobuf.Timestamp value) { if (idleStartTimeBuilder_ == null) { if (idleStartTime_ != null) { idleStartTime_ = - com.google.protobuf.Timestamp.newBuilder(idleStartTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(idleStartTime_) + .mergeFrom(value) + .buildPartial(); } else { idleStartTime_ = value; } @@ -1458,6 +1706,8 @@ public Builder mergeIdleStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when cluster became idle (most recent job finished)
      * and became eligible for deletion due to idleness (see JSON representation
@@ -1465,7 +1715,9 @@ public Builder mergeIdleStartTime(com.google.protobuf.Timestamp value) {
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearIdleStartTime() { if (idleStartTimeBuilder_ == null) { @@ -1479,6 +1731,8 @@ public Builder clearIdleStartTime() { return this; } /** + * + * *
      * Output only. The time when cluster became idle (most recent job finished)
      * and became eligible for deletion due to idleness (see JSON representation
@@ -1486,14 +1740,18 @@ public Builder clearIdleStartTime() {
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getIdleStartTimeBuilder() { - + onChanged(); return getIdleStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when cluster became idle (most recent job finished)
      * and became eligible for deletion due to idleness (see JSON representation
@@ -1501,17 +1759,22 @@ public com.google.protobuf.Timestamp.Builder getIdleStartTimeBuilder() {
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder() { if (idleStartTimeBuilder_ != null) { return idleStartTimeBuilder_.getMessageOrBuilder(); } else { - return idleStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : idleStartTime_; + return idleStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : idleStartTime_; } } /** + * + * *
      * Output only. The time when cluster became idle (most recent job finished)
      * and became eligible for deletion due to idleness (see JSON representation
@@ -1519,24 +1782,29 @@ public com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder() {
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp idle_start_time = 4 [(.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> getIdleStartTimeFieldBuilder() { if (idleStartTimeBuilder_ == null) { - idleStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getIdleStartTime(), - getParentForChildren(), - isClean()); + idleStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getIdleStartTime(), getParentForChildren(), isClean()); idleStartTime_ = null; } return idleStartTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1546,12 +1814,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.LifecycleConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.LifecycleConfig) private static final com.google.cloud.dataproc.v1.LifecycleConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.LifecycleConfig(); } @@ -1560,27 +1828,27 @@ public static com.google.cloud.dataproc.v1.LifecycleConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LifecycleConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LifecycleConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1595,6 +1863,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.LifecycleConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java similarity index 74% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java index d30ef39c0fb0..17018efe7c30 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface LifecycleConfigOrBuilder extends +public interface LifecycleConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.LifecycleConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The duration to keep the cluster alive while idling (when no jobs
    * are running). Passing this threshold will cause the cluster to be
@@ -16,11 +34,15 @@ public interface LifecycleConfigOrBuilder extends
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the idleDeleteTtl field is set. */ boolean hasIdleDeleteTtl(); /** + * + * *
    * Optional. The duration to keep the cluster alive while idling (when no jobs
    * are running). Passing this threshold will cause the cluster to be
@@ -29,11 +51,15 @@ public interface LifecycleConfigOrBuilder extends
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The idleDeleteTtl. */ com.google.protobuf.Duration getIdleDeleteTtl(); /** + * + * *
    * Optional. The duration to keep the cluster alive while idling (when no jobs
    * are running). Passing this threshold will cause the cluster to be
@@ -42,44 +68,61 @@ public interface LifecycleConfigOrBuilder extends
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder(); /** + * + * *
    * Optional. The time when cluster will be auto-deleted (see JSON
    * representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the autoDeleteTime field is set. */ boolean hasAutoDeleteTime(); /** + * + * *
    * Optional. The time when cluster will be auto-deleted (see JSON
    * representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The autoDeleteTime. */ com.google.protobuf.Timestamp getAutoDeleteTime(); /** + * + * *
    * Optional. The time when cluster will be auto-deleted (see JSON
    * representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder(); /** + * + * *
    * Optional. The lifetime duration of cluster. The cluster will be
    * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -87,11 +130,15 @@ public interface LifecycleConfigOrBuilder extends
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the autoDeleteTtl field is set. */ boolean hasAutoDeleteTtl(); /** + * + * *
    * Optional. The lifetime duration of cluster. The cluster will be
    * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -99,11 +146,15 @@ public interface LifecycleConfigOrBuilder extends
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The autoDeleteTtl. */ com.google.protobuf.Duration getAutoDeleteTtl(); /** + * + * *
    * Optional. The lifetime duration of cluster. The cluster will be
    * auto-deleted at the end of this period. Minimum value is 10 minutes;
@@ -111,11 +162,14 @@ public interface LifecycleConfigOrBuilder extends
    * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder(); /** + * + * *
    * Output only. The time when cluster became idle (most recent job finished)
    * and became eligible for deletion due to idleness (see JSON representation
@@ -123,11 +177,16 @@ public interface LifecycleConfigOrBuilder extends
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the idleStartTime field is set. */ boolean hasIdleStartTime(); /** + * + * *
    * Output only. The time when cluster became idle (most recent job finished)
    * and became eligible for deletion due to idleness (see JSON representation
@@ -135,11 +194,16 @@ public interface LifecycleConfigOrBuilder extends
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The idleStartTime. */ com.google.protobuf.Timestamp getIdleStartTime(); /** + * + * *
    * Output only. The time when cluster became idle (most recent job finished)
    * and became eligible for deletion due to idleness (see JSON representation
@@ -147,7 +211,9 @@ public interface LifecycleConfigOrBuilder extends
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java similarity index 70% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java index 128630994726..6ef5e8e97528 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to list autoscaling policies in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest} */ -public final class ListAutoscalingPoliciesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAutoscalingPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) ListAutoscalingPoliciesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAutoscalingPoliciesRequest.newBuilder() to construct. - private ListAutoscalingPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListAutoscalingPoliciesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAutoscalingPoliciesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,32 +45,35 @@ private ListAutoscalingPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAutoscalingPoliciesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.class, com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.Builder.class); + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.class, + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The "resource name" of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -63,7 +85,10 @@ protected java.lang.Object newInstance(
    *   `projects/{project_id}/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 @@ -72,14 +97,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The "resource name" of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -91,17 +117,18 @@ public java.lang.String getParent() {
    *   `projects/{project_id}/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 { @@ -112,12 +139,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. The maximum number of results to return in each response.
    * Must be less than or equal to 1000. Defaults to 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -128,12 +158,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -142,30 +175,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -174,6 +207,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,8 +219,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -209,8 +242,7 @@ 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_); @@ -223,19 +255,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.dataproc.v1.ListAutoscalingPoliciesRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest other = (com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) obj; + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest other = + (com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -259,129 +289,136 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest 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.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to list autoscaling policies in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.class, com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.Builder.class); + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.class, + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -395,9 +432,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; } @java.lang.Override @@ -416,7 +453,8 @@ public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest buildPartial() { - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest result = new com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest(this); + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest result = + new com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -428,38 +466,39 @@ public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) other); } else { super.mergeFrom(other); return this; @@ -467,7 +506,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest other) { - if (other == com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -505,27 +545,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -538,6 +582,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -549,14 +595,16 @@ public Builder mergeFrom(
      *   `projects/{project_id}/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; @@ -565,6 +613,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -576,16 +626,17 @@ public java.lang.String getParent() {
      *   `projects/{project_id}/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 { @@ -593,6 +644,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -604,21 +657,25 @@ public java.lang.String getParent() {
      *   `projects/{project_id}/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 "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -630,16 +687,21 @@ public Builder setParent(
      *   `projects/{project_id}/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 "resource name" of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -651,30 +713,35 @@ public Builder clearParent() {
      *   `projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return in each response.
      * Must be less than or equal to 1000. Defaults to 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -682,32 +749,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return in each response.
      * Must be less than or equal to 1000. Defaults to 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The maximum number of results to return in each response.
      * Must be less than or equal to 1000. Defaults to 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -715,19 +788,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -736,21 +811,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -758,64 +834,71 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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); } @@ -825,12 +908,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) private static final com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest(); } @@ -839,27 +922,27 @@ public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAutoscalingPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAutoscalingPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -874,6 +957,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.java index 8509d116fcfb..ae28d7ceff1c 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; -public interface ListAutoscalingPoliciesRequestOrBuilder extends +public interface ListAutoscalingPoliciesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The "resource name" of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -19,11 +37,16 @@ public interface ListAutoscalingPoliciesRequestOrBuilder extends
    *   `projects/{project_id}/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 "resource name" of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -35,42 +58,52 @@ public interface ListAutoscalingPoliciesRequestOrBuilder extends
    *   `projects/{project_id}/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(); /** + * + * *
    * Optional. The maximum number of results to return in each response.
    * Must be less than or equal to 1000. Defaults to 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java similarity index 63% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java index 96bf948e9897..e15564de7c81 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A response to a request to list autoscaling policies in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse} */ -public final class ListAutoscalingPoliciesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAutoscalingPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) ListAutoscalingPoliciesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAutoscalingPoliciesResponse.newBuilder() to construct. - private ListAutoscalingPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListAutoscalingPoliciesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAutoscalingPoliciesResponse() { policies_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,98 +45,121 @@ private ListAutoscalingPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAutoscalingPoliciesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.class, com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.Builder.class); + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.class, + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.Builder.class); } public static final int POLICIES_FIELD_NUMBER = 1; private java.util.List policies_; /** + * + * *
    * Output only. Autoscaling policies list.
    * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getPoliciesList() { return policies_; } /** + * + * *
    * Output only. Autoscaling policies list.
    * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getPoliciesOrBuilderList() { return policies_; } /** + * + * *
    * Output only. Autoscaling policies list.
    * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getPoliciesCount() { return policies_.size(); } /** + * + * *
    * Output only. Autoscaling policies list.
    * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicies(int index) { return policies_.get(index); } /** + * + * *
    * Output only. Autoscaling policies list.
    * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPoliciesOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPoliciesOrBuilder(int index) { return policies_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Output only. This token is included in the response if there are more
    * results to fetch.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,30 +168,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Output only. This token is included in the response if there are more
    * results to fetch.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -158,6 +200,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +212,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < policies_.size(); i++) { output.writeMessage(1, policies_.get(i)); } @@ -187,8 +229,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < policies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, policies_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, policies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -201,17 +242,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse other = (com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) obj; + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse other = + (com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) obj; - if (!getPoliciesList() - .equals(other.getPoliciesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getPoliciesList().equals(other.getPoliciesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -235,129 +275,136 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse 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.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 response to a request to list autoscaling policies in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.class, com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.Builder.class); + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.class, + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,13 +421,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; } @java.lang.Override - public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse getDefaultInstanceForType() { + public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse + getDefaultInstanceForType() { return com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.getDefaultInstance(); } @@ -395,7 +443,8 @@ public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse buildPartial() { - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse result = new com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse(this); + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse result = + new com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse(this); int from_bitField0_ = bitField0_; if (policiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +464,39 @@ public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) { - return mergeFrom((com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse)other); + return mergeFrom((com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) other); } else { super.mergeFrom(other); return this; @@ -454,7 +504,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse other) { - if (other == com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.getDefaultInstance()) + return this; if (policiesBuilder_ == null) { if (!other.policies_.isEmpty()) { if (policies_.isEmpty()) { @@ -473,9 +525,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRes policiesBuilder_ = null; policies_ = other.policies_; bitField0_ = (bitField0_ & ~0x00000001); - policiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPoliciesFieldBuilder() : null; + policiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPoliciesFieldBuilder() + : null; } else { policiesBuilder_.addAllMessages(other.policies_); } @@ -511,30 +564,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.dataproc.v1.AutoscalingPolicy m = - input.readMessage( - com.google.cloud.dataproc.v1.AutoscalingPolicy.parser(), - extensionRegistry); - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.add(m); - } else { - policiesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.dataproc.v1.AutoscalingPolicy m = + input.readMessage( + com.google.cloud.dataproc.v1.AutoscalingPolicy.parser(), extensionRegistry); + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.add(m); + } else { + policiesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -544,26 +599,36 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List policies_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - policies_ = new java.util.ArrayList(policies_); + policies_ = + new java.util.ArrayList(policies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> policiesBuilder_; + com.google.cloud.dataproc.v1.AutoscalingPolicy, + com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, + com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> + policiesBuilder_; /** + * + * *
      * Output only. Autoscaling policies list.
      * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getPoliciesList() { if (policiesBuilder_ == null) { @@ -573,11 +638,15 @@ public java.util.List getPolicie } } /** + * + * *
      * Output only. Autoscaling policies list.
      * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getPoliciesCount() { if (policiesBuilder_ == null) { @@ -587,11 +656,15 @@ public int getPoliciesCount() { } } /** + * + * *
      * Output only. Autoscaling policies list.
      * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicies(int index) { if (policiesBuilder_ == null) { @@ -601,14 +674,17 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicies(int index) { } } /** + * + * *
      * Output only. Autoscaling policies list.
      * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setPolicies( - int index, com.google.cloud.dataproc.v1.AutoscalingPolicy value) { + public Builder setPolicies(int index, com.google.cloud.dataproc.v1.AutoscalingPolicy value) { if (policiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -622,11 +698,15 @@ public Builder setPolicies( return this; } /** + * + * *
      * Output only. Autoscaling policies list.
      * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setPolicies( int index, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder builderForValue) { @@ -640,11 +720,15 @@ public Builder setPolicies( return this; } /** + * + * *
      * Output only. Autoscaling policies list.
      * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addPolicies(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { if (policiesBuilder_ == null) { @@ -660,14 +744,17 @@ public Builder addPolicies(com.google.cloud.dataproc.v1.AutoscalingPolicy value) return this; } /** + * + * *
      * Output only. Autoscaling policies list.
      * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addPolicies( - int index, com.google.cloud.dataproc.v1.AutoscalingPolicy value) { + public Builder addPolicies(int index, com.google.cloud.dataproc.v1.AutoscalingPolicy value) { if (policiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -681,11 +768,15 @@ public Builder addPolicies( return this; } /** + * + * *
      * Output only. Autoscaling policies list.
      * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addPolicies( com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder builderForValue) { @@ -699,11 +790,15 @@ public Builder addPolicies( return this; } /** + * + * *
      * Output only. Autoscaling policies list.
      * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addPolicies( int index, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder builderForValue) { @@ -717,18 +812,21 @@ public Builder addPolicies( return this; } /** + * + * *
      * Output only. Autoscaling policies list.
      * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllPolicies( java.lang.Iterable values) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, policies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policies_); onChanged(); } else { policiesBuilder_.addAllMessages(values); @@ -736,11 +834,15 @@ public Builder addAllPolicies( return this; } /** + * + * *
      * Output only. Autoscaling policies list.
      * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearPolicies() { if (policiesBuilder_ == null) { @@ -753,11 +855,15 @@ public Builder clearPolicies() { return this; } /** + * + * *
      * Output only. Autoscaling policies list.
      * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removePolicies(int index) { if (policiesBuilder_ == null) { @@ -770,39 +876,50 @@ public Builder removePolicies(int index) { return this; } /** + * + * *
      * Output only. Autoscaling policies list.
      * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder getPoliciesBuilder( - int index) { + public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder getPoliciesBuilder(int index) { return getPoliciesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Autoscaling policies list.
      * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPoliciesOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPoliciesOrBuilder(int index) { if (policiesBuilder_ == null) { - return policies_.get(index); } else { + return policies_.get(index); + } else { return policiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Autoscaling policies list.
      * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getPoliciesOrBuilderList() { + public java.util.List + getPoliciesOrBuilderList() { if (policiesBuilder_ != null) { return policiesBuilder_.getMessageOrBuilderList(); } else { @@ -810,49 +927,63 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPoliciesOrBuil } } /** + * + * *
      * Output only. Autoscaling policies list.
      * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder addPoliciesBuilder() { - return getPoliciesFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance()); + return getPoliciesFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance()); } /** + * + * *
      * Output only. Autoscaling policies list.
      * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder addPoliciesBuilder( - int index) { - return getPoliciesFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance()); + public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder addPoliciesBuilder(int index) { + return getPoliciesFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance()); } /** + * + * *
      * Output only. Autoscaling policies list.
      * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getPoliciesBuilderList() { + public java.util.List + getPoliciesBuilderList() { return getPoliciesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> + com.google.cloud.dataproc.v1.AutoscalingPolicy, + com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, + com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> getPoliciesFieldBuilder() { if (policiesBuilder_ == null) { - policiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder>( - policies_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + policiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.AutoscalingPolicy, + com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, + com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder>( + policies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); policies_ = null; } return policiesBuilder_; @@ -860,19 +991,21 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder addPoliciesBuilder private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Output only. This token is included in the response if there are more
      * results to fetch.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -881,21 +1014,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. This token is included in the response if there are more
      * results to fetch.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -903,64 +1037,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. This token is included in the response if there are more
      * results to fetch.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; } /** + * + * *
      * Output only. This token is included in the response if there are more
      * results to fetch.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Output only. This token is included in the response if there are more
      * results to fetch.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -970,12 +1111,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) - private static final com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse(); } @@ -984,27 +1126,27 @@ public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAutoscalingPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAutoscalingPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,6 +1161,4 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java similarity index 50% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java index d462279c81b5..c95513f98b1b 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java @@ -1,75 +1,114 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; -public interface ListAutoscalingPoliciesResponseOrBuilder extends +public interface ListAutoscalingPoliciesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Autoscaling policies list.
    * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getPoliciesList(); + java.util.List getPoliciesList(); /** + * + * *
    * Output only. Autoscaling policies list.
    * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicies(int index); /** + * + * *
    * Output only. Autoscaling policies list.
    * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getPoliciesCount(); /** + * + * *
    * Output only. Autoscaling policies list.
    * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getPoliciesOrBuilderList(); /** + * + * *
    * Output only. Autoscaling policies list.
    * 
* - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPoliciesOrBuilder( - int index); + com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPoliciesOrBuilder(int index); /** + * + * *
    * Output only. This token is included in the response if there are more
    * results to fetch.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Output only. This token is included in the response if there are more
    * results to fetch.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java similarity index 67% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java index cc6ce3967438..b767ab90c144 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to list batch workloads in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListBatchesRequest} */ -public final class ListBatchesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBatchesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListBatchesRequest) ListBatchesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBatchesRequest.newBuilder() to construct. private ListBatchesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBatchesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,37 +44,43 @@ private ListBatchesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBatchesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListBatchesRequest.class, com.google.cloud.dataproc.v1.ListBatchesRequest.Builder.class); + com.google.cloud.dataproc.v1.ListBatchesRequest.class, + com.google.cloud.dataproc.v1.ListBatchesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent, which owns this collection of batches.
    * 
* - * 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 @@ -65,29 +89,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent, which owns this collection of batches.
    * 
* - * 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 { @@ -98,6 +124,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. The maximum number of batches to return in each response.
    * The service may return fewer than this value.
@@ -105,6 +133,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -115,12 +144,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. A page token received from a previous `ListBatches` call.
    * Provide this token to retrieve the subsequent page.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -129,30 +161,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. A page token received from a previous `ListBatches` call.
    * Provide this token to retrieve the subsequent page.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -161,6 +193,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +205,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -196,8 +228,7 @@ 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_); @@ -210,19 +241,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ListBatchesRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListBatchesRequest other = (com.google.cloud.dataproc.v1.ListBatchesRequest) obj; + com.google.cloud.dataproc.v1.ListBatchesRequest other = + (com.google.cloud.dataproc.v1.ListBatchesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -245,130 +274,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.ListBatchesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to list batch workloads in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListBatchesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListBatchesRequest) com.google.cloud.dataproc.v1.ListBatchesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListBatchesRequest.class, com.google.cloud.dataproc.v1.ListBatchesRequest.Builder.class); + com.google.cloud.dataproc.v1.ListBatchesRequest.class, + com.google.cloud.dataproc.v1.ListBatchesRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListBatchesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; } @java.lang.Override @@ -403,7 +438,8 @@ public com.google.cloud.dataproc.v1.ListBatchesRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListBatchesRequest buildPartial() { - com.google.cloud.dataproc.v1.ListBatchesRequest result = new com.google.cloud.dataproc.v1.ListBatchesRequest(this); + com.google.cloud.dataproc.v1.ListBatchesRequest result = + new com.google.cloud.dataproc.v1.ListBatchesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -415,38 +451,39 @@ public com.google.cloud.dataproc.v1.ListBatchesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ListBatchesRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.ListBatchesRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.ListBatchesRequest) other); } else { super.mergeFrom(other); return this; @@ -454,7 +491,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ListBatchesRequest other) { - if (other == com.google.cloud.dataproc.v1.ListBatchesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.ListBatchesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -492,27 +530,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -525,18 +567,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of batches.
      * 
* - * 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; @@ -545,20 +591,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of batches.
      * 
* - * 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 { @@ -566,61 +615,76 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of batches.
      * 
* - * 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, which owns this collection of batches.
      * 
* - * 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, which owns this collection of batches.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of batches to return in each response.
      * The service may return fewer than this value.
@@ -628,6 +692,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -635,6 +700,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of batches to return in each response.
      * The service may return fewer than this value.
@@ -642,16 +709,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The maximum number of batches to return in each response.
      * The service may return fewer than this value.
@@ -659,10 +729,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -670,19 +741,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A page token received from a previous `ListBatches` call.
      * Provide this token to retrieve the subsequent page.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -691,21 +764,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A page token received from a previous `ListBatches` call.
      * Provide this token to retrieve the subsequent page.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -713,64 +787,71 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A page token received from a previous `ListBatches` call.
      * Provide this token to retrieve the subsequent page.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. A page token received from a previous `ListBatches` call.
      * Provide this token to retrieve the subsequent page.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. A page token received from a previous `ListBatches` call.
      * Provide this token to retrieve the subsequent page.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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); } @@ -780,12 +861,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListBatchesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListBatchesRequest) private static final com.google.cloud.dataproc.v1.ListBatchesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListBatchesRequest(); } @@ -794,27 +875,27 @@ public static com.google.cloud.dataproc.v1.ListBatchesRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBatchesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBatchesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -829,6 +910,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ListBatchesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java index 1b2774c9a45f..3f4c4c332849 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; -public interface ListBatchesRequestOrBuilder extends +public interface ListBatchesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListBatchesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns this collection of batches.
    * 
* - * 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, which owns this collection of batches.
    * 
* - * 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(); /** + * + * *
    * Optional. The maximum number of batches to return in each response.
    * The service may return fewer than this value.
@@ -35,29 +62,35 @@ public interface ListBatchesRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A page token received from a previous `ListBatches` call.
    * Provide this token to retrieve the subsequent page.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A page token received from a previous `ListBatches` call.
    * Provide this token to retrieve the subsequent page.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java similarity index 71% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java index 5f5817edc713..9d9c9fc7a060 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A list of batch workloads.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListBatchesResponse} */ -public final class ListBatchesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBatchesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListBatchesResponse) ListBatchesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBatchesResponse.newBuilder() to construct. private ListBatchesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBatchesResponse() { batches_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,32 +44,35 @@ private ListBatchesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBatchesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListBatchesResponse.class, com.google.cloud.dataproc.v1.ListBatchesResponse.Builder.class); + com.google.cloud.dataproc.v1.ListBatchesResponse.class, + com.google.cloud.dataproc.v1.ListBatchesResponse.Builder.class); } public static final int BATCHES_FIELD_NUMBER = 1; private java.util.List batches_; /** + * + * *
    * The batches from the specified collection.
    * 
@@ -63,6 +84,8 @@ public java.util.List getBatchesList() { return batches_; } /** + * + * *
    * The batches from the specified collection.
    * 
@@ -70,11 +93,13 @@ public java.util.List getBatchesList() { * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBatchesOrBuilderList() { return batches_; } /** + * + * *
    * The batches from the specified collection.
    * 
@@ -86,6 +111,8 @@ public int getBatchesCount() { return batches_.size(); } /** + * + * *
    * The batches from the specified collection.
    * 
@@ -97,6 +124,8 @@ public com.google.cloud.dataproc.v1.Batch getBatches(int index) { return batches_.get(index); } /** + * + * *
    * The batches from the specified collection.
    * 
@@ -104,20 +133,22 @@ public com.google.cloud.dataproc.v1.Batch getBatches(int index) { * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ @java.lang.Override - public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder(int index) { return batches_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,30 +157,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -158,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < batches_.size(); i++) { output.writeMessage(1, batches_.get(i)); } @@ -187,8 +218,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < batches_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, batches_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, batches_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -201,17 +231,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ListBatchesResponse)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListBatchesResponse other = (com.google.cloud.dataproc.v1.ListBatchesResponse) obj; + com.google.cloud.dataproc.v1.ListBatchesResponse other = + (com.google.cloud.dataproc.v1.ListBatchesResponse) obj; - if (!getBatchesList() - .equals(other.getBatchesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getBatchesList().equals(other.getBatchesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,130 +263,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.ListBatchesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 list of batch workloads.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListBatchesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListBatchesResponse) com.google.cloud.dataproc.v1.ListBatchesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListBatchesResponse.class, com.google.cloud.dataproc.v1.ListBatchesResponse.Builder.class); + com.google.cloud.dataproc.v1.ListBatchesResponse.class, + com.google.cloud.dataproc.v1.ListBatchesResponse.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListBatchesResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; } @java.lang.Override @@ -395,7 +430,8 @@ public com.google.cloud.dataproc.v1.ListBatchesResponse build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListBatchesResponse buildPartial() { - com.google.cloud.dataproc.v1.ListBatchesResponse result = new com.google.cloud.dataproc.v1.ListBatchesResponse(this); + com.google.cloud.dataproc.v1.ListBatchesResponse result = + new com.google.cloud.dataproc.v1.ListBatchesResponse(this); int from_bitField0_ = bitField0_; if (batchesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +451,39 @@ public com.google.cloud.dataproc.v1.ListBatchesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ListBatchesResponse) { - return mergeFrom((com.google.cloud.dataproc.v1.ListBatchesResponse)other); + return mergeFrom((com.google.cloud.dataproc.v1.ListBatchesResponse) other); } else { super.mergeFrom(other); return this; @@ -454,7 +491,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ListBatchesResponse other) { - if (other == com.google.cloud.dataproc.v1.ListBatchesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.ListBatchesResponse.getDefaultInstance()) + return this; if (batchesBuilder_ == null) { if (!other.batches_.isEmpty()) { if (batches_.isEmpty()) { @@ -473,9 +511,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ListBatchesResponse other) batchesBuilder_ = null; batches_ = other.batches_; bitField0_ = (bitField0_ & ~0x00000001); - batchesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBatchesFieldBuilder() : null; + batchesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBatchesFieldBuilder() + : null; } else { batchesBuilder_.addAllMessages(other.batches_); } @@ -511,30 +550,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.dataproc.v1.Batch m = - input.readMessage( - com.google.cloud.dataproc.v1.Batch.parser(), - extensionRegistry); - if (batchesBuilder_ == null) { - ensureBatchesIsMutable(); - batches_.add(m); - } else { - batchesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.dataproc.v1.Batch m = + input.readMessage( + com.google.cloud.dataproc.v1.Batch.parser(), extensionRegistry); + if (batchesBuilder_ == null) { + ensureBatchesIsMutable(); + batches_.add(m); + } else { + batchesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -544,21 +585,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List batches_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBatchesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { batches_ = new java.util.ArrayList(batches_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch, com.google.cloud.dataproc.v1.Batch.Builder, com.google.cloud.dataproc.v1.BatchOrBuilder> batchesBuilder_; + com.google.cloud.dataproc.v1.Batch, + com.google.cloud.dataproc.v1.Batch.Builder, + com.google.cloud.dataproc.v1.BatchOrBuilder> + batchesBuilder_; /** + * + * *
      * The batches from the specified collection.
      * 
@@ -573,6 +621,8 @@ public java.util.List getBatchesList() { } } /** + * + * *
      * The batches from the specified collection.
      * 
@@ -587,6 +637,8 @@ public int getBatchesCount() { } } /** + * + * *
      * The batches from the specified collection.
      * 
@@ -601,14 +653,15 @@ public com.google.cloud.dataproc.v1.Batch getBatches(int index) { } } /** + * + * *
      * The batches from the specified collection.
      * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - public Builder setBatches( - int index, com.google.cloud.dataproc.v1.Batch value) { + public Builder setBatches(int index, com.google.cloud.dataproc.v1.Batch value) { if (batchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -622,6 +675,8 @@ public Builder setBatches( return this; } /** + * + * *
      * The batches from the specified collection.
      * 
@@ -640,6 +695,8 @@ public Builder setBatches( return this; } /** + * + * *
      * The batches from the specified collection.
      * 
@@ -660,14 +717,15 @@ public Builder addBatches(com.google.cloud.dataproc.v1.Batch value) { return this; } /** + * + * *
      * The batches from the specified collection.
      * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - public Builder addBatches( - int index, com.google.cloud.dataproc.v1.Batch value) { + public Builder addBatches(int index, com.google.cloud.dataproc.v1.Batch value) { if (batchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -681,14 +739,15 @@ public Builder addBatches( return this; } /** + * + * *
      * The batches from the specified collection.
      * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - public Builder addBatches( - com.google.cloud.dataproc.v1.Batch.Builder builderForValue) { + public Builder addBatches(com.google.cloud.dataproc.v1.Batch.Builder builderForValue) { if (batchesBuilder_ == null) { ensureBatchesIsMutable(); batches_.add(builderForValue.build()); @@ -699,6 +758,8 @@ public Builder addBatches( return this; } /** + * + * *
      * The batches from the specified collection.
      * 
@@ -717,6 +778,8 @@ public Builder addBatches( return this; } /** + * + * *
      * The batches from the specified collection.
      * 
@@ -727,8 +790,7 @@ public Builder addAllBatches( java.lang.Iterable values) { if (batchesBuilder_ == null) { ensureBatchesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, batches_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, batches_); onChanged(); } else { batchesBuilder_.addAllMessages(values); @@ -736,6 +798,8 @@ public Builder addAllBatches( return this; } /** + * + * *
      * The batches from the specified collection.
      * 
@@ -753,6 +817,8 @@ public Builder clearBatches() { return this; } /** + * + * *
      * The batches from the specified collection.
      * 
@@ -770,39 +836,44 @@ public Builder removeBatches(int index) { return this; } /** + * + * *
      * The batches from the specified collection.
      * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - public com.google.cloud.dataproc.v1.Batch.Builder getBatchesBuilder( - int index) { + public com.google.cloud.dataproc.v1.Batch.Builder getBatchesBuilder(int index) { return getBatchesFieldBuilder().getBuilder(index); } /** + * + * *
      * The batches from the specified collection.
      * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder(int index) { if (batchesBuilder_ == null) { - return batches_.get(index); } else { + return batches_.get(index); + } else { return batchesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The batches from the specified collection.
      * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - public java.util.List - getBatchesOrBuilderList() { + public java.util.List + getBatchesOrBuilderList() { if (batchesBuilder_ != null) { return batchesBuilder_.getMessageOrBuilderList(); } else { @@ -810,6 +881,8 @@ public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder( } } /** + * + * *
      * The batches from the specified collection.
      * 
@@ -817,42 +890,47 @@ public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder( * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ public com.google.cloud.dataproc.v1.Batch.Builder addBatchesBuilder() { - return getBatchesFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.Batch.getDefaultInstance()); + return getBatchesFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.Batch.getDefaultInstance()); } /** + * + * *
      * The batches from the specified collection.
      * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - public com.google.cloud.dataproc.v1.Batch.Builder addBatchesBuilder( - int index) { - return getBatchesFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.Batch.getDefaultInstance()); + public com.google.cloud.dataproc.v1.Batch.Builder addBatchesBuilder(int index) { + return getBatchesFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.Batch.getDefaultInstance()); } /** + * + * *
      * The batches from the specified collection.
      * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - public java.util.List - getBatchesBuilderList() { + public java.util.List getBatchesBuilderList() { return getBatchesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch, com.google.cloud.dataproc.v1.Batch.Builder, com.google.cloud.dataproc.v1.BatchOrBuilder> + com.google.cloud.dataproc.v1.Batch, + com.google.cloud.dataproc.v1.Batch.Builder, + com.google.cloud.dataproc.v1.BatchOrBuilder> getBatchesFieldBuilder() { if (batchesBuilder_ == null) { - batchesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch, com.google.cloud.dataproc.v1.Batch.Builder, com.google.cloud.dataproc.v1.BatchOrBuilder>( - batches_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + batchesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.Batch, + com.google.cloud.dataproc.v1.Batch.Builder, + com.google.cloud.dataproc.v1.BatchOrBuilder>( + batches_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); batches_ = null; } return batchesBuilder_; @@ -860,19 +938,21 @@ public com.google.cloud.dataproc.v1.Batch.Builder addBatchesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -881,21 +961,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -903,64 +984,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -970,12 +1058,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListBatchesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListBatchesResponse) private static final com.google.cloud.dataproc.v1.ListBatchesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListBatchesResponse(); } @@ -984,27 +1072,27 @@ public static com.google.cloud.dataproc.v1.ListBatchesResponse getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBatchesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBatchesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,6 +1107,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ListBatchesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java index 9ff04500f122..bc8cc88367b2 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; -public interface ListBatchesResponseOrBuilder extends +public interface ListBatchesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListBatchesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The batches from the specified collection.
    * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - java.util.List - getBatchesList(); + java.util.List getBatchesList(); /** + * + * *
    * The batches from the specified collection.
    * 
@@ -25,6 +44,8 @@ public interface ListBatchesResponseOrBuilder extends */ com.google.cloud.dataproc.v1.Batch getBatches(int index); /** + * + * *
    * The batches from the specified collection.
    * 
@@ -33,43 +54,50 @@ public interface ListBatchesResponseOrBuilder extends */ int getBatchesCount(); /** + * + * *
    * The batches from the specified collection.
    * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - java.util.List - getBatchesOrBuilderList(); + java.util.List getBatchesOrBuilderList(); /** + * + * *
    * The batches from the specified collection.
    * 
* * repeated .google.cloud.dataproc.v1.Batch batches = 1; */ - com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder( - int index); + com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java similarity index 75% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java index d3c74ace636e..584057526155 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to list the clusters in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListClustersRequest} */ -public final class ListClustersRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListClustersRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListClustersRequest) ListClustersRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListClustersRequest.newBuilder() to construct. private ListClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListClustersRequest() { projectId_ = ""; region_ = ""; @@ -28,38 +46,42 @@ private ListClustersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListClustersRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListClustersRequest.class, com.google.cloud.dataproc.v1.ListClustersRequest.Builder.class); + com.google.cloud.dataproc.v1.ListClustersRequest.class, + com.google.cloud.dataproc.v1.ListClustersRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -68,30 +90,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -102,11 +124,14 @@ public java.lang.String getProjectId() { public static final int REGION_FIELD_NUMBER = 4; private volatile java.lang.Object region_; /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ @java.lang.Override @@ -115,29 +140,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -148,6 +173,8 @@ public java.lang.String getRegion() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. A filter constraining the clusters to list. Filters are
    * case-sensitive and have the following syntax:
@@ -167,6 +194,7 @@ public java.lang.String getRegion() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -175,14 +203,15 @@ 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; } } /** + * + * *
    * Optional. A filter constraining the clusters to list. Filters are
    * case-sensitive and have the following syntax:
@@ -202,16 +231,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -222,11 +250,14 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. The standard List page size.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -237,11 +268,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. The standard List page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -250,29 +284,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; } } /** + * + * *
    * Optional. The standard List page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -281,6 +315,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -292,8 +327,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -322,8 +356,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } 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_); @@ -342,23 +375,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.dataproc.v1.ListClustersRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListClustersRequest other = (com.google.cloud.dataproc.v1.ListClustersRequest) obj; - - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getRegion() - .equals(other.getRegion())) 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.dataproc.v1.ListClustersRequest other = + (com.google.cloud.dataproc.v1.ListClustersRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -385,130 +414,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListClustersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ListClustersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListClustersRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.ListClustersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to list the clusters in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListClustersRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListClustersRequest) com.google.cloud.dataproc.v1.ListClustersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListClustersRequest.class, com.google.cloud.dataproc.v1.ListClustersRequest.Builder.class); + com.google.cloud.dataproc.v1.ListClustersRequest.class, + com.google.cloud.dataproc.v1.ListClustersRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListClustersRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -526,9 +561,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; } @java.lang.Override @@ -547,7 +582,8 @@ public com.google.cloud.dataproc.v1.ListClustersRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListClustersRequest buildPartial() { - com.google.cloud.dataproc.v1.ListClustersRequest result = new com.google.cloud.dataproc.v1.ListClustersRequest(this); + com.google.cloud.dataproc.v1.ListClustersRequest result = + new com.google.cloud.dataproc.v1.ListClustersRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.filter_ = filter_; @@ -561,38 +597,39 @@ public com.google.cloud.dataproc.v1.ListClustersRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ListClustersRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.ListClustersRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.ListClustersRequest) other); } else { super.mergeFrom(other); return this; @@ -600,7 +637,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ListClustersRequest other) { - if (other == com.google.cloud.dataproc.v1.ListClustersRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.ListClustersRequest.getDefaultInstance()) + return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -646,37 +684,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - projectId_ = input.readStringRequireUtf8(); + case 10: + { + projectId_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - region_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + region_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: { - filter_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -689,19 +733,21 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -710,21 +756,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -732,57 +779,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the cluster
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -790,18 +844,20 @@ public Builder setProjectIdBytes( private java.lang.Object region_ = ""; /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -810,20 +866,21 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -831,54 +888,61 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion( - java.lang.String value) { + public Builder setRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -886,6 +950,8 @@ public Builder setRegionBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. A filter constraining the clusters to list. Filters are
      * case-sensitive and have the following syntax:
@@ -905,13 +971,13 @@ public Builder setRegionBytes(
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -920,6 +986,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. A filter constraining the clusters to list. Filters are
      * case-sensitive and have the following syntax:
@@ -939,15 +1007,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -955,6 +1022,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. A filter constraining the clusters to list. Filters are
      * case-sensitive and have the following syntax:
@@ -974,20 +1043,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. A filter constraining the clusters to list. Filters are
      * case-sensitive and have the following syntax:
@@ -1007,15 +1078,18 @@ public Builder setFilter(
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. A filter constraining the clusters to list. Filters are
      * case-sensitive and have the following syntax:
@@ -1035,28 +1109,31 @@ public Builder clearFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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_; /** + * + * *
      * Optional. The standard List page size.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -1064,30 +1141,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The standard List page size.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The standard List page size.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1095,18 +1178,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. The standard List page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1115,20 +1200,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The standard List page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1136,61 +1222,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The standard List page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. The standard List page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. The standard List page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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); } @@ -1200,12 +1293,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListClustersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListClustersRequest) private static final com.google.cloud.dataproc.v1.ListClustersRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListClustersRequest(); } @@ -1214,27 +1307,27 @@ public static com.google.cloud.dataproc.v1.ListClustersRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListClustersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClustersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1249,6 +1342,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ListClustersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java similarity index 80% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java index 5cc5dbf75769..312d3b7c7647 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java @@ -1,55 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface ListClustersRequestOrBuilder extends +public interface ListClustersRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListClustersRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the cluster
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ java.lang.String getRegion(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - com.google.protobuf.ByteString - getRegionBytes(); + com.google.protobuf.ByteString getRegionBytes(); /** + * + * *
    * Optional. A filter constraining the clusters to list. Filters are
    * case-sensitive and have the following syntax:
@@ -69,10 +97,13 @@ public interface ListClustersRequestOrBuilder extends
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. A filter constraining the clusters to list. Filters are
    * case-sensitive and have the following syntax:
@@ -92,38 +123,46 @@ public interface ListClustersRequestOrBuilder extends
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. The standard List page size.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. The standard List page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. The standard List page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java index 08417768e075..1e7dc980e5fe 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * The list of all clusters in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListClustersResponse} */ -public final class ListClustersResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListClustersResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListClustersResponse) ListClustersResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListClustersResponse.newBuilder() to construct. private ListClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListClustersResponse() { clusters_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,92 +44,114 @@ private ListClustersResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListClustersResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListClustersResponse.class, com.google.cloud.dataproc.v1.ListClustersResponse.Builder.class); + com.google.cloud.dataproc.v1.ListClustersResponse.class, + com.google.cloud.dataproc.v1.ListClustersResponse.Builder.class); } public static final int CLUSTERS_FIELD_NUMBER = 1; private java.util.List clusters_; /** + * + * *
    * Output only. The clusters in the project.
    * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getClustersList() { return clusters_; } /** + * + * *
    * Output only. The clusters in the project.
    * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getClustersOrBuilderList() { return clusters_; } /** + * + * *
    * Output only. The clusters in the project.
    * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getClustersCount() { return clusters_.size(); } /** + * + * *
    * Output only. The clusters in the project.
    * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.Cluster getClusters(int index) { return clusters_.get(index); } /** + * + * *
    * Output only. The clusters in the project.
    * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder(int index) { return clusters_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Output only. This token is included in the response if there are more
    * results to fetch. To fetch additional results, provide this value as the
@@ -119,6 +159,7 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder(
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,14 +168,15 @@ 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; } } /** + * + * *
    * Output only. This token is included in the response if there are more
    * results to fetch. To fetch additional results, provide this value as the
@@ -142,16 +184,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -160,6 +201,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +213,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < clusters_.size(); i++) { output.writeMessage(1, clusters_.get(i)); } @@ -189,8 +230,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < clusters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, clusters_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, clusters_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -203,17 +243,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ListClustersResponse)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListClustersResponse other = (com.google.cloud.dataproc.v1.ListClustersResponse) obj; + com.google.cloud.dataproc.v1.ListClustersResponse other = + (com.google.cloud.dataproc.v1.ListClustersResponse) obj; - if (!getClustersList() - .equals(other.getClustersList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getClustersList().equals(other.getClustersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,129 +276,135 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.ListClustersResponse 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.dataproc.v1.ListClustersResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListClustersResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ListClustersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListClustersResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.ListClustersResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 list of all clusters in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListClustersResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListClustersResponse) com.google.cloud.dataproc.v1.ListClustersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListClustersResponse.class, com.google.cloud.dataproc.v1.ListClustersResponse.Builder.class); + com.google.cloud.dataproc.v1.ListClustersResponse.class, + com.google.cloud.dataproc.v1.ListClustersResponse.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListClustersResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; } @java.lang.Override @@ -397,7 +442,8 @@ public com.google.cloud.dataproc.v1.ListClustersResponse build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListClustersResponse buildPartial() { - com.google.cloud.dataproc.v1.ListClustersResponse result = new com.google.cloud.dataproc.v1.ListClustersResponse(this); + com.google.cloud.dataproc.v1.ListClustersResponse result = + new com.google.cloud.dataproc.v1.ListClustersResponse(this); int from_bitField0_ = bitField0_; if (clustersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -417,38 +463,39 @@ public com.google.cloud.dataproc.v1.ListClustersResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ListClustersResponse) { - return mergeFrom((com.google.cloud.dataproc.v1.ListClustersResponse)other); + return mergeFrom((com.google.cloud.dataproc.v1.ListClustersResponse) other); } else { super.mergeFrom(other); return this; @@ -456,7 +503,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ListClustersResponse other) { - if (other == com.google.cloud.dataproc.v1.ListClustersResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.ListClustersResponse.getDefaultInstance()) + return this; if (clustersBuilder_ == null) { if (!other.clusters_.isEmpty()) { if (clusters_.isEmpty()) { @@ -475,9 +523,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ListClustersResponse other clustersBuilder_ = null; clusters_ = other.clusters_; bitField0_ = (bitField0_ & ~0x00000001); - clustersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getClustersFieldBuilder() : null; + clustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getClustersFieldBuilder() + : null; } else { clustersBuilder_.addAllMessages(other.clusters_); } @@ -513,30 +562,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.dataproc.v1.Cluster m = - input.readMessage( - com.google.cloud.dataproc.v1.Cluster.parser(), - extensionRegistry); - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.add(m); - } else { - clustersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.dataproc.v1.Cluster m = + input.readMessage( + com.google.cloud.dataproc.v1.Cluster.parser(), extensionRegistry); + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.add(m); + } else { + clustersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -546,26 +597,35 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List clusters_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureClustersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { clusters_ = new java.util.ArrayList(clusters_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, com.google.cloud.dataproc.v1.Cluster.Builder, com.google.cloud.dataproc.v1.ClusterOrBuilder> clustersBuilder_; + com.google.cloud.dataproc.v1.Cluster, + com.google.cloud.dataproc.v1.Cluster.Builder, + com.google.cloud.dataproc.v1.ClusterOrBuilder> + clustersBuilder_; /** + * + * *
      * Output only. The clusters in the project.
      * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getClustersList() { if (clustersBuilder_ == null) { @@ -575,11 +635,15 @@ public java.util.List getClustersList() { } } /** + * + * *
      * Output only. The clusters in the project.
      * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getClustersCount() { if (clustersBuilder_ == null) { @@ -589,11 +653,15 @@ public int getClustersCount() { } } /** + * + * *
      * Output only. The clusters in the project.
      * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.Cluster getClusters(int index) { if (clustersBuilder_ == null) { @@ -603,14 +671,17 @@ public com.google.cloud.dataproc.v1.Cluster getClusters(int index) { } } /** + * + * *
      * Output only. The clusters in the project.
      * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setClusters( - int index, com.google.cloud.dataproc.v1.Cluster value) { + public Builder setClusters(int index, com.google.cloud.dataproc.v1.Cluster value) { if (clustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -624,11 +695,15 @@ public Builder setClusters( return this; } /** + * + * *
      * Output only. The clusters in the project.
      * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setClusters( int index, com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { @@ -642,11 +717,15 @@ public Builder setClusters( return this; } /** + * + * *
      * Output only. The clusters in the project.
      * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addClusters(com.google.cloud.dataproc.v1.Cluster value) { if (clustersBuilder_ == null) { @@ -662,14 +741,17 @@ public Builder addClusters(com.google.cloud.dataproc.v1.Cluster value) { return this; } /** + * + * *
      * Output only. The clusters in the project.
      * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addClusters( - int index, com.google.cloud.dataproc.v1.Cluster value) { + public Builder addClusters(int index, com.google.cloud.dataproc.v1.Cluster value) { if (clustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -683,14 +765,17 @@ public Builder addClusters( return this; } /** + * + * *
      * Output only. The clusters in the project.
      * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addClusters( - com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { + public Builder addClusters(com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); clusters_.add(builderForValue.build()); @@ -701,11 +786,15 @@ public Builder addClusters( return this; } /** + * + * *
      * Output only. The clusters in the project.
      * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addClusters( int index, com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { @@ -719,18 +808,21 @@ public Builder addClusters( return this; } /** + * + * *
      * Output only. The clusters in the project.
      * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllClusters( java.lang.Iterable values) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, clusters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusters_); onChanged(); } else { clustersBuilder_.addAllMessages(values); @@ -738,11 +830,15 @@ public Builder addAllClusters( return this; } /** + * + * *
      * Output only. The clusters in the project.
      * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearClusters() { if (clustersBuilder_ == null) { @@ -755,11 +851,15 @@ public Builder clearClusters() { return this; } /** + * + * *
      * Output only. The clusters in the project.
      * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeClusters(int index) { if (clustersBuilder_ == null) { @@ -772,39 +872,50 @@ public Builder removeClusters(int index) { return this; } /** + * + * *
      * Output only. The clusters in the project.
      * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.Cluster.Builder getClustersBuilder( - int index) { + public com.google.cloud.dataproc.v1.Cluster.Builder getClustersBuilder(int index) { return getClustersFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The clusters in the project.
      * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder(int index) { if (clustersBuilder_ == null) { - return clusters_.get(index); } else { + return clusters_.get(index); + } else { return clustersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The clusters in the project.
      * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getClustersOrBuilderList() { + public java.util.List + getClustersOrBuilderList() { if (clustersBuilder_ != null) { return clustersBuilder_.getMessageOrBuilderList(); } else { @@ -812,49 +923,62 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder( } } /** + * + * *
      * Output only. The clusters in the project.
      * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.Cluster.Builder addClustersBuilder() { - return getClustersFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.Cluster.getDefaultInstance()); + return getClustersFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.Cluster.getDefaultInstance()); } /** + * + * *
      * Output only. The clusters in the project.
      * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.Cluster.Builder addClustersBuilder( - int index) { - return getClustersFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.Cluster.getDefaultInstance()); + public com.google.cloud.dataproc.v1.Cluster.Builder addClustersBuilder(int index) { + return getClustersFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.Cluster.getDefaultInstance()); } /** + * + * *
      * Output only. The clusters in the project.
      * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getClustersBuilderList() { + public java.util.List getClustersBuilderList() { return getClustersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, com.google.cloud.dataproc.v1.Cluster.Builder, com.google.cloud.dataproc.v1.ClusterOrBuilder> + com.google.cloud.dataproc.v1.Cluster, + com.google.cloud.dataproc.v1.Cluster.Builder, + com.google.cloud.dataproc.v1.ClusterOrBuilder> getClustersFieldBuilder() { if (clustersBuilder_ == null) { - clustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, com.google.cloud.dataproc.v1.Cluster.Builder, com.google.cloud.dataproc.v1.ClusterOrBuilder>( - clusters_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + clustersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.Cluster, + com.google.cloud.dataproc.v1.Cluster.Builder, + com.google.cloud.dataproc.v1.ClusterOrBuilder>( + clusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); clusters_ = null; } return clustersBuilder_; @@ -862,6 +986,8 @@ public com.google.cloud.dataproc.v1.Cluster.Builder addClustersBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -869,13 +995,13 @@ public com.google.cloud.dataproc.v1.Cluster.Builder addClustersBuilder(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -884,6 +1010,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -891,15 +1019,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -907,6 +1034,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -914,20 +1043,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; } /** + * + * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -935,15 +1066,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -951,23 +1085,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -977,12 +1111,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListClustersResponse) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListClustersResponse) private static final com.google.cloud.dataproc.v1.ListClustersResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListClustersResponse(); } @@ -991,27 +1125,27 @@ public static com.google.cloud.dataproc.v1.ListClustersResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListClustersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClustersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1026,6 +1160,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ListClustersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java similarity index 53% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java index 7f991d460622..d3593d13021c 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java @@ -1,57 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface ListClustersResponseOrBuilder extends +public interface ListClustersResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListClustersResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The clusters in the project.
    * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getClustersList(); + java.util.List getClustersList(); /** + * + * *
    * Output only. The clusters in the project.
    * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.Cluster getClusters(int index); /** + * + * *
    * Output only. The clusters in the project.
    * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getClustersCount(); /** + * + * *
    * Output only. The clusters in the project.
    * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getClustersOrBuilderList(); /** + * + * *
    * Output only. The clusters in the project.
    * 
* - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder( - int index); + com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder(int index); /** + * + * *
    * Output only. This token is included in the response if there are more
    * results to fetch. To fetch additional results, provide this value as the
@@ -59,10 +95,13 @@ com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder(
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Output only. This token is included in the response if there are more
    * results to fetch. To fetch additional results, provide this value as the
@@ -70,8 +109,8 @@ com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder(
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java similarity index 73% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java index 43a5c2e85e85..340a4ecc3189 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to list jobs in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.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() { projectId_ = ""; region_ = ""; @@ -30,39 +48,43 @@ private ListJobsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListJobsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListJobsRequest.class, com.google.cloud.dataproc.v1.ListJobsRequest.Builder.class); + com.google.cloud.dataproc.v1.ListJobsRequest.class, + com.google.cloud.dataproc.v1.ListJobsRequest.Builder.class); } /** + * + * *
    * A matcher that specifies categories of job states.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher} */ - public enum JobStateMatcher - implements com.google.protobuf.ProtocolMessageEnum { + public enum JobStateMatcher implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Match all jobs, regardless of state.
      * 
@@ -71,6 +93,8 @@ public enum JobStateMatcher */ ALL(0), /** + * + * *
      * Only match jobs in non-terminal states: PENDING, RUNNING, or
      * CANCEL_PENDING.
@@ -80,6 +104,8 @@ public enum JobStateMatcher
      */
     ACTIVE(1),
     /**
+     *
+     *
      * 
      * Only match jobs in terminal states: CANCELLED, DONE, or ERROR.
      * 
@@ -91,6 +117,8 @@ public enum JobStateMatcher ; /** + * + * *
      * Match all jobs, regardless of state.
      * 
@@ -99,6 +127,8 @@ public enum JobStateMatcher */ public static final int ALL_VALUE = 0; /** + * + * *
      * Only match jobs in non-terminal states: PENDING, RUNNING, or
      * CANCEL_PENDING.
@@ -108,6 +138,8 @@ public enum JobStateMatcher
      */
     public static final int ACTIVE_VALUE = 1;
     /**
+     *
+     *
      * 
      * Only match jobs in terminal states: CANCELLED, DONE, or ERROR.
      * 
@@ -116,7 +148,6 @@ public enum JobStateMatcher */ public static final int NON_ACTIVE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -141,39 +172,42 @@ public static JobStateMatcher valueOf(int value) { */ public static JobStateMatcher forNumber(int value) { switch (value) { - case 0: return ALL; - case 1: return ACTIVE; - case 2: return NON_ACTIVE; - default: return null; + case 0: + return ALL; + case 1: + return ACTIVE; + case 2: + return NON_ACTIVE; + 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< - JobStateMatcher> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public JobStateMatcher findValueByNumber(int number) { - return JobStateMatcher.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobStateMatcher findValueByNumber(int number) { + return JobStateMatcher.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataproc.v1.ListJobsRequest.getDescriptor().getEnumTypes().get(0); } @@ -182,8 +216,7 @@ public JobStateMatcher findValueByNumber(int number) { public static JobStateMatcher 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; @@ -203,12 +236,15 @@ private JobStateMatcher(int value) { public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -217,30 +253,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -251,11 +287,14 @@ public java.lang.String getProjectId() { public static final int REGION_FIELD_NUMBER = 6; private volatile java.lang.Object region_; /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ @java.lang.Override @@ -264,29 +303,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -297,11 +336,14 @@ public java.lang.String getRegion() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. The number of results to return in each response.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -312,12 +354,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -326,30 +371,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -360,12 +405,15 @@ public java.lang.String getPageToken() { public static final int CLUSTER_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object clusterName_; /** + * + * *
    * Optional. If set, the returned jobs list includes only jobs that were
    * submitted to the named cluster.
    * 
* * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The clusterName. */ @java.lang.Override @@ -374,30 +422,30 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** + * + * *
    * Optional. If set, the returned jobs list includes only jobs that were
    * submitted to the named cluster.
    * 
* * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -408,37 +456,54 @@ public java.lang.String getClusterName() { public static final int JOB_STATE_MATCHER_FIELD_NUMBER = 5; private int jobStateMatcher_; /** + * + * *
    * Optional. Specifies enumerated categories of jobs to list.
    * (default = match ALL jobs).
    * If `filter` is provided, `jobStateMatcher` will be ignored.
    * 
* - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for jobStateMatcher. */ - @java.lang.Override public int getJobStateMatcherValue() { + @java.lang.Override + public int getJobStateMatcherValue() { return jobStateMatcher_; } /** + * + * *
    * Optional. Specifies enumerated categories of jobs to list.
    * (default = match ALL jobs).
    * If `filter` is provided, `jobStateMatcher` will be ignored.
    * 
* - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The jobStateMatcher. */ - @java.lang.Override public com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher getJobStateMatcher() { + @java.lang.Override + public com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher getJobStateMatcher() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher result = com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.valueOf(jobStateMatcher_); - return result == null ? com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher result = + com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.valueOf(jobStateMatcher_); + return result == null + ? com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.UNRECOGNIZED + : result; } public static final int FILTER_FIELD_NUMBER = 7; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. A filter constraining the jobs to list. Filters are
    * case-sensitive and have the following syntax:
@@ -453,6 +518,7 @@ public java.lang.String getClusterName() {
    * 
* * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -461,14 +527,15 @@ 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; } } /** + * + * *
    * Optional. A filter constraining the jobs to list. Filters are
    * case-sensitive and have the following syntax:
@@ -483,16 +550,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -501,6 +567,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -512,8 +579,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -526,7 +592,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterName_); } - if (jobStateMatcher_ != com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.ALL.getNumber()) { + if (jobStateMatcher_ + != com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.ALL.getNumber()) { output.writeEnum(5, jobStateMatcher_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { @@ -548,8 +615,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } 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_); @@ -557,9 +623,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterName_); } - if (jobStateMatcher_ != com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.ALL.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, jobStateMatcher_); + if (jobStateMatcher_ + != com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.ALL.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, jobStateMatcher_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, region_); @@ -575,26 +641,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.dataproc.v1.ListJobsRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListJobsRequest other = (com.google.cloud.dataproc.v1.ListJobsRequest) obj; - - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getRegion() - .equals(other.getRegion())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getClusterName() - .equals(other.getClusterName())) return false; + com.google.cloud.dataproc.v1.ListJobsRequest other = + (com.google.cloud.dataproc.v1.ListJobsRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getClusterName().equals(other.getClusterName())) return false; if (jobStateMatcher_ != other.jobStateMatcher_) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -625,130 +686,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ListJobsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ListJobsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.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.dataproc.v1.ListJobsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.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.dataproc.v1.ListJobsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.v1.ListJobsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ListJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.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; } /** + * + * *
    * A request to list jobs in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.v1.ListJobsRequest) com.google.cloud.dataproc.v1.ListJobsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListJobsRequest.class, com.google.cloud.dataproc.v1.ListJobsRequest.Builder.class); + com.google.cloud.dataproc.v1.ListJobsRequest.class, + com.google.cloud.dataproc.v1.ListJobsRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListJobsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -770,9 +837,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; } @java.lang.Override @@ -791,7 +858,8 @@ public com.google.cloud.dataproc.v1.ListJobsRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListJobsRequest buildPartial() { - com.google.cloud.dataproc.v1.ListJobsRequest result = new com.google.cloud.dataproc.v1.ListJobsRequest(this); + com.google.cloud.dataproc.v1.ListJobsRequest result = + new com.google.cloud.dataproc.v1.ListJobsRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.pageSize_ = pageSize_; @@ -807,38 +875,39 @@ public com.google.cloud.dataproc.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.dataproc.v1.ListJobsRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.ListJobsRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.ListJobsRequest) other); } else { super.mergeFrom(other); return this; @@ -899,47 +968,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 40: { - jobStateMatcher_ = input.readEnum(); - - break; - } // case 40 - case 50: { - region_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: { - filter_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: + { + jobStateMatcher_ = input.readEnum(); + + break; + } // case 40 + case 50: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -952,19 +1029,21 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -973,21 +1052,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -995,57 +1075,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1053,18 +1140,20 @@ public Builder setProjectIdBytes( private java.lang.Object region_ = ""; /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -1073,20 +1162,21 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -1094,66 +1184,76 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion( - java.lang.String value) { + public Builder setRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The number of results to return in each response.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -1161,30 +1261,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The number of results to return in each response.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The number of results to return in each response.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1192,19 +1298,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1213,21 +1321,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1235,57 +1344,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1293,19 +1409,21 @@ public Builder setPageTokenBytes( private java.lang.Object clusterName_ = ""; /** + * + * *
      * Optional. If set, the returned jobs list includes only jobs that were
      * submitted to the named cluster.
      * 
* * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -1314,21 +1432,22 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Optional. If set, the returned jobs list includes only jobs that were
      * submitted to the named cluster.
      * 
* * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -1336,57 +1455,64 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Optional. If set, the returned jobs list includes only jobs that were
      * submitted to the named cluster.
      * 
* * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName( - java.lang.String value) { + public Builder setClusterName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** + * + * *
      * Optional. If set, the returned jobs list includes only jobs that were
      * submitted to the named cluster.
      * 
* * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** + * + * *
      * Optional. If set, the returned jobs list includes only jobs that were
      * submitted to the named cluster.
      * 
* * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1394,83 +1520,113 @@ public Builder setClusterNameBytes( private int jobStateMatcher_ = 0; /** + * + * *
      * Optional. Specifies enumerated categories of jobs to list.
      * (default = match ALL jobs).
      * If `filter` is provided, `jobStateMatcher` will be ignored.
      * 
* - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for jobStateMatcher. */ - @java.lang.Override public int getJobStateMatcherValue() { + @java.lang.Override + public int getJobStateMatcherValue() { return jobStateMatcher_; } /** + * + * *
      * Optional. Specifies enumerated categories of jobs to list.
      * (default = match ALL jobs).
      * If `filter` is provided, `jobStateMatcher` will be ignored.
      * 
* - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for jobStateMatcher to set. * @return This builder for chaining. */ public Builder setJobStateMatcherValue(int value) { - + jobStateMatcher_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Specifies enumerated categories of jobs to list.
      * (default = match ALL jobs).
      * If `filter` is provided, `jobStateMatcher` will be ignored.
      * 
* - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The jobStateMatcher. */ @java.lang.Override public com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher getJobStateMatcher() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher result = com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.valueOf(jobStateMatcher_); - return result == null ? com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher result = + com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.valueOf(jobStateMatcher_); + return result == null + ? com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. Specifies enumerated categories of jobs to list.
      * (default = match ALL jobs).
      * If `filter` is provided, `jobStateMatcher` will be ignored.
      * 
* - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The jobStateMatcher to set. * @return This builder for chaining. */ - public Builder setJobStateMatcher(com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher value) { + public Builder setJobStateMatcher( + com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher value) { if (value == null) { throw new NullPointerException(); } - + jobStateMatcher_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. Specifies enumerated categories of jobs to list.
      * (default = match ALL jobs).
      * If `filter` is provided, `jobStateMatcher` will be ignored.
      * 
* - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearJobStateMatcher() { - + jobStateMatcher_ = 0; onChanged(); return this; @@ -1478,6 +1634,8 @@ public Builder clearJobStateMatcher() { private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. A filter constraining the jobs to list. Filters are
      * case-sensitive and have the following syntax:
@@ -1492,13 +1650,13 @@ public Builder clearJobStateMatcher() {
      * 
* * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1507,6 +1665,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. A filter constraining the jobs to list. Filters are
      * case-sensitive and have the following syntax:
@@ -1521,15 +1681,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1537,6 +1696,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. A filter constraining the jobs to list. Filters are
      * case-sensitive and have the following syntax:
@@ -1551,20 +1712,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. A filter constraining the jobs to list. Filters are
      * case-sensitive and have the following syntax:
@@ -1579,15 +1742,18 @@ public Builder setFilter(
      * 
* * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. A filter constraining the jobs to list. Filters are
      * case-sensitive and have the following syntax:
@@ -1602,23 +1768,23 @@ public Builder clearFilter() {
      * 
* * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1628,12 +1794,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListJobsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListJobsRequest) private static final com.google.cloud.dataproc.v1.ListJobsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListJobsRequest(); } @@ -1642,27 +1808,27 @@ public static com.google.cloud.dataproc.v1.ListJobsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListJobsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1677,6 +1843,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ListJobsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java index 9551c3257945..f2f3c5f006ff 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java @@ -1,132 +1,183 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface ListJobsRequestOrBuilder extends +public interface ListJobsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListJobsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ java.lang.String getRegion(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - com.google.protobuf.ByteString - getRegionBytes(); + com.google.protobuf.ByteString getRegionBytes(); /** + * + * *
    * Optional. The number of results to return in each response.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. If set, the returned jobs list includes only jobs that were
    * submitted to the named cluster.
    * 
* * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The clusterName. */ java.lang.String getClusterName(); /** + * + * *
    * Optional. If set, the returned jobs list includes only jobs that were
    * submitted to the named cluster.
    * 
* * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString - getClusterNameBytes(); + com.google.protobuf.ByteString getClusterNameBytes(); /** + * + * *
    * Optional. Specifies enumerated categories of jobs to list.
    * (default = match ALL jobs).
    * If `filter` is provided, `jobStateMatcher` will be ignored.
    * 
* - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for jobStateMatcher. */ int getJobStateMatcherValue(); /** + * + * *
    * Optional. Specifies enumerated categories of jobs to list.
    * (default = match ALL jobs).
    * If `filter` is provided, `jobStateMatcher` will be ignored.
    * 
* - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The jobStateMatcher. */ com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher getJobStateMatcher(); /** + * + * *
    * Optional. A filter constraining the jobs to list. Filters are
    * case-sensitive and have the following syntax:
@@ -141,10 +192,13 @@ public interface ListJobsRequestOrBuilder extends
    * 
* * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. A filter constraining the jobs to list. Filters are
    * case-sensitive and have the following syntax:
@@ -159,8 +213,8 @@ public interface ListJobsRequestOrBuilder extends
    * 
* * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java similarity index 64% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java index 4a3717504438..9705d25e5402 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A list of jobs in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.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_ = ""; @@ -26,92 +44,114 @@ private ListJobsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListJobsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListJobsResponse.class, com.google.cloud.dataproc.v1.ListJobsResponse.Builder.class); + com.google.cloud.dataproc.v1.ListJobsResponse.class, + com.google.cloud.dataproc.v1.ListJobsResponse.Builder.class); } public static final int JOBS_FIELD_NUMBER = 1; private java.util.List jobs_; /** + * + * *
    * Output only. Jobs list.
    * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getJobsList() { return jobs_; } /** + * + * *
    * Output only. Jobs list.
    * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getJobsOrBuilderList() { return jobs_; } /** + * + * *
    * Output only. Jobs list.
    * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getJobsCount() { return jobs_.size(); } /** + * + * *
    * Output only. Jobs list.
    * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.Job getJobs(int index) { return jobs_.get(index); } /** + * + * *
    * Output only. Jobs list.
    * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder( - int index) { + public com.google.cloud.dataproc.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_; /** + * + * *
    * Optional. This token is included in the response if there are more results
    * to fetch. To fetch additional results, provide this value as the
@@ -119,6 +159,7 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder(
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,14 +168,15 @@ 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; } } /** + * + * *
    * Optional. This token is included in the response if there are more results
    * to fetch. To fetch additional results, provide this value as the
@@ -142,16 +184,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -160,6 +201,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +213,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < jobs_.size(); i++) { output.writeMessage(1, jobs_.get(i)); } @@ -189,8 +230,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < jobs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, jobs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, jobs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -203,17 +243,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ListJobsResponse)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListJobsResponse other = (com.google.cloud.dataproc.v1.ListJobsResponse) obj; + com.google.cloud.dataproc.v1.ListJobsResponse other = + (com.google.cloud.dataproc.v1.ListJobsResponse) obj; - if (!getJobsList() - .equals(other.getJobsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getJobsList().equals(other.getJobsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -236,130 +275,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ListJobsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ListJobsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.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.dataproc.v1.ListJobsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.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.dataproc.v1.ListJobsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.v1.ListJobsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ListJobsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.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.dataproc.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.dataproc.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.dataproc.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; } /** + * + * *
    * A list of jobs in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.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.dataproc.v1.ListJobsResponse) com.google.cloud.dataproc.v1.ListJobsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListJobsResponse.class, com.google.cloud.dataproc.v1.ListJobsResponse.Builder.class); + com.google.cloud.dataproc.v1.ListJobsResponse.class, + com.google.cloud.dataproc.v1.ListJobsResponse.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListJobsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; } @java.lang.Override @@ -397,7 +442,8 @@ public com.google.cloud.dataproc.v1.ListJobsResponse build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListJobsResponse buildPartial() { - com.google.cloud.dataproc.v1.ListJobsResponse result = new com.google.cloud.dataproc.v1.ListJobsResponse(this); + com.google.cloud.dataproc.v1.ListJobsResponse result = + new com.google.cloud.dataproc.v1.ListJobsResponse(this); int from_bitField0_ = bitField0_; if (jobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -417,38 +463,39 @@ public com.google.cloud.dataproc.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.dataproc.v1.ListJobsResponse) { - return mergeFrom((com.google.cloud.dataproc.v1.ListJobsResponse)other); + return mergeFrom((com.google.cloud.dataproc.v1.ListJobsResponse) other); } else { super.mergeFrom(other); return this; @@ -475,9 +522,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.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_); } @@ -513,30 +561,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.dataproc.v1.Job m = - input.readMessage( - com.google.cloud.dataproc.v1.Job.parser(), - extensionRegistry); - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.add(m); - } else { - jobsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.dataproc.v1.Job m = + input.readMessage(com.google.cloud.dataproc.v1.Job.parser(), extensionRegistry); + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(m); + } else { + jobsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -546,26 +595,35 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List jobs_ = - java.util.Collections.emptyList(); + 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.dataproc.v1.Job, com.google.cloud.dataproc.v1.Job.Builder, com.google.cloud.dataproc.v1.JobOrBuilder> jobsBuilder_; + com.google.cloud.dataproc.v1.Job, + com.google.cloud.dataproc.v1.Job.Builder, + com.google.cloud.dataproc.v1.JobOrBuilder> + jobsBuilder_; /** + * + * *
      * Output only. Jobs list.
      * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getJobsList() { if (jobsBuilder_ == null) { @@ -575,11 +633,15 @@ public java.util.List getJobsList() { } } /** + * + * *
      * Output only. Jobs list.
      * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getJobsCount() { if (jobsBuilder_ == null) { @@ -589,11 +651,15 @@ public int getJobsCount() { } } /** + * + * *
      * Output only. Jobs list.
      * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.Job getJobs(int index) { if (jobsBuilder_ == null) { @@ -603,14 +669,17 @@ public com.google.cloud.dataproc.v1.Job getJobs(int index) { } } /** + * + * *
      * Output only. Jobs list.
      * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setJobs( - int index, com.google.cloud.dataproc.v1.Job value) { + public Builder setJobs(int index, com.google.cloud.dataproc.v1.Job value) { if (jobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -624,14 +693,17 @@ public Builder setJobs( return this; } /** + * + * *
      * Output only. Jobs list.
      * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setJobs( - int index, com.google.cloud.dataproc.v1.Job.Builder builderForValue) { + public Builder setJobs(int index, com.google.cloud.dataproc.v1.Job.Builder builderForValue) { if (jobsBuilder_ == null) { ensureJobsIsMutable(); jobs_.set(index, builderForValue.build()); @@ -642,11 +714,15 @@ public Builder setJobs( return this; } /** + * + * *
      * Output only. Jobs list.
      * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addJobs(com.google.cloud.dataproc.v1.Job value) { if (jobsBuilder_ == null) { @@ -662,14 +738,17 @@ public Builder addJobs(com.google.cloud.dataproc.v1.Job value) { return this; } /** + * + * *
      * Output only. Jobs list.
      * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addJobs( - int index, com.google.cloud.dataproc.v1.Job value) { + public Builder addJobs(int index, com.google.cloud.dataproc.v1.Job value) { if (jobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -683,14 +762,17 @@ public Builder addJobs( return this; } /** + * + * *
      * Output only. Jobs list.
      * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addJobs( - com.google.cloud.dataproc.v1.Job.Builder builderForValue) { + public Builder addJobs(com.google.cloud.dataproc.v1.Job.Builder builderForValue) { if (jobsBuilder_ == null) { ensureJobsIsMutable(); jobs_.add(builderForValue.build()); @@ -701,14 +783,17 @@ public Builder addJobs( return this; } /** + * + * *
      * Output only. Jobs list.
      * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addJobs( - int index, com.google.cloud.dataproc.v1.Job.Builder builderForValue) { + public Builder addJobs(int index, com.google.cloud.dataproc.v1.Job.Builder builderForValue) { if (jobsBuilder_ == null) { ensureJobsIsMutable(); jobs_.add(index, builderForValue.build()); @@ -719,18 +804,21 @@ public Builder addJobs( return this; } /** + * + * *
      * Output only. Jobs list.
      * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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); @@ -738,11 +826,15 @@ public Builder addAllJobs( return this; } /** + * + * *
      * Output only. Jobs list.
      * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearJobs() { if (jobsBuilder_ == null) { @@ -755,11 +847,15 @@ public Builder clearJobs() { return this; } /** + * + * *
      * Output only. Jobs list.
      * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeJobs(int index) { if (jobsBuilder_ == null) { @@ -772,39 +868,50 @@ public Builder removeJobs(int index) { return this; } /** + * + * *
      * Output only. Jobs list.
      * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.Job.Builder getJobsBuilder( - int index) { + public com.google.cloud.dataproc.v1.Job.Builder getJobsBuilder(int index) { return getJobsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Jobs list.
      * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder(int index) { if (jobsBuilder_ == null) { - return jobs_.get(index); } else { + return jobs_.get(index); + } else { return jobsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Jobs list.
      * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getJobsOrBuilderList() { + public java.util.List + getJobsOrBuilderList() { if (jobsBuilder_ != null) { return jobsBuilder_.getMessageOrBuilderList(); } else { @@ -812,49 +919,62 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder( } } /** + * + * *
      * Output only. Jobs list.
      * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.Job.Builder addJobsBuilder() { - return getJobsFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.Job.getDefaultInstance()); + return getJobsFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.Job.getDefaultInstance()); } /** + * + * *
      * Output only. Jobs list.
      * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.Job.Builder addJobsBuilder( - int index) { - return getJobsFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.Job.getDefaultInstance()); + public com.google.cloud.dataproc.v1.Job.Builder addJobsBuilder(int index) { + return getJobsFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.Job.getDefaultInstance()); } /** + * + * *
      * Output only. Jobs list.
      * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getJobsBuilderList() { + public java.util.List getJobsBuilderList() { return getJobsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, com.google.cloud.dataproc.v1.Job.Builder, com.google.cloud.dataproc.v1.JobOrBuilder> + com.google.cloud.dataproc.v1.Job, + com.google.cloud.dataproc.v1.Job.Builder, + com.google.cloud.dataproc.v1.JobOrBuilder> getJobsFieldBuilder() { if (jobsBuilder_ == null) { - jobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, com.google.cloud.dataproc.v1.Job.Builder, com.google.cloud.dataproc.v1.JobOrBuilder>( - jobs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + jobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.Job, + com.google.cloud.dataproc.v1.Job.Builder, + com.google.cloud.dataproc.v1.JobOrBuilder>( + jobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); jobs_ = null; } return jobsBuilder_; @@ -862,6 +982,8 @@ public com.google.cloud.dataproc.v1.Job.Builder addJobsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Optional. This token is included in the response if there are more results
      * to fetch. To fetch additional results, provide this value as the
@@ -869,13 +991,13 @@ public com.google.cloud.dataproc.v1.Job.Builder addJobsBuilder(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -884,6 +1006,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Optional. This token is included in the response if there are more results
      * to fetch. To fetch additional results, provide this value as the
@@ -891,15 +1015,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -907,6 +1030,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Optional. This token is included in the response if there are more results
      * to fetch. To fetch additional results, provide this value as the
@@ -914,20 +1039,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. This token is included in the response if there are more results
      * to fetch. To fetch additional results, provide this value as the
@@ -935,15 +1062,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. This token is included in the response if there are more results
      * to fetch. To fetch additional results, provide this value as the
@@ -951,23 +1081,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -977,12 +1107,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListJobsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListJobsResponse) private static final com.google.cloud.dataproc.v1.ListJobsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListJobsResponse(); } @@ -991,27 +1121,27 @@ public static com.google.cloud.dataproc.v1.ListJobsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListJobsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1026,6 +1156,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ListJobsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java similarity index 50% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java index 896937b805e9..4da048ec6846 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java @@ -1,57 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface ListJobsResponseOrBuilder extends +public interface ListJobsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListJobsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Jobs list.
    * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getJobsList(); + java.util.List getJobsList(); /** + * + * *
    * Output only. Jobs list.
    * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.Job getJobs(int index); /** + * + * *
    * Output only. Jobs list.
    * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getJobsCount(); /** + * + * *
    * Output only. Jobs list.
    * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getJobsOrBuilderList(); + java.util.List getJobsOrBuilderList(); /** + * + * *
    * Output only. Jobs list.
    * 
* - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder( - int index); + com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder(int index); /** + * + * *
    * Optional. This token is included in the response if there are more results
    * to fetch. To fetch additional results, provide this value as the
@@ -59,10 +94,13 @@ com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder(
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Optional. This token is included in the response if there are more results
    * to fetch. To fetch additional results, provide this value as the
@@ -70,8 +108,8 @@ com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder(
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java index f84efbc9020e..3faf421b58b5 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to list workflow templates in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListWorkflowTemplatesRequest} */ -public final class ListWorkflowTemplatesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkflowTemplatesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) ListWorkflowTemplatesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkflowTemplatesRequest.newBuilder() to construct. private ListWorkflowTemplatesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkflowTemplatesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,32 +44,35 @@ private ListWorkflowTemplatesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkflowTemplatesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.class, com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.Builder.class); + com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.class, + com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -63,7 +84,10 @@ protected java.lang.Object newInstance(
    *   `projects/{project_id}/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 @@ -72,14 +96,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -91,17 +116,18 @@ public java.lang.String getParent() {
    *   `projects/{project_id}/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 { @@ -112,11 +138,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. The maximum number of results to return in each response.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -127,12 +156,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -141,30 +173,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -173,6 +205,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -184,8 +217,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -208,8 +240,7 @@ 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_); @@ -222,19 +253,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.dataproc.v1.ListWorkflowTemplatesRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest other = (com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) obj; + com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest other = + (com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,129 +287,136 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest 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.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to list workflow templates in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListWorkflowTemplatesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.class, com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.Builder.class); + com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.class, + com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -394,9 +430,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; } @java.lang.Override @@ -415,7 +451,8 @@ public com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest buildPartial() { - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest result = new com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest(this); + com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest result = + new com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -427,38 +464,39 @@ public com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) other); } else { super.mergeFrom(other); return this; @@ -466,7 +504,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest other) { - if (other == com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -504,27 +543,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -537,6 +580,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -548,14 +593,16 @@ public Builder mergeFrom(
      *   `projects/{project_id}/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; @@ -564,6 +611,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -575,16 +624,17 @@ public java.lang.String getParent() {
      *   `projects/{project_id}/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 { @@ -592,6 +642,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -603,21 +655,25 @@ public java.lang.String getParent() {
      *   `projects/{project_id}/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 resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -629,16 +685,21 @@ public Builder setParent(
      *   `projects/{project_id}/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 resource name of the region or location, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -650,29 +711,34 @@ public Builder clearParent() {
      *   `projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return in each response.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -680,30 +746,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return in each response.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The maximum number of results to return in each response.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -711,19 +783,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -732,21 +806,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -754,64 +829,71 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. The page token, returned by a previous call, to request the
      * next page of results.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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); } @@ -821,12 +903,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) private static final com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest(); } @@ -835,27 +917,27 @@ public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkflowTemplatesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkflowTemplatesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -870,6 +952,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.java index 342476b790ee..91656df417ed 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface ListWorkflowTemplatesRequestOrBuilder extends +public interface ListWorkflowTemplatesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -19,11 +37,16 @@ public interface ListWorkflowTemplatesRequestOrBuilder extends
    *   `projects/{project_id}/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 resource name of the region or location, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -35,41 +58,51 @@ public interface ListWorkflowTemplatesRequestOrBuilder extends
    *   `projects/{project_id}/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(); /** + * + * *
    * Optional. The maximum number of results to return in each response.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. The page token, returned by a previous call, to request the
    * next page of results.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java index 2154feb1ce99..cc8f1dbf23ee 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A response to a request to list workflow templates in a project.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListWorkflowTemplatesResponse} */ -public final class ListWorkflowTemplatesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkflowTemplatesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) ListWorkflowTemplatesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkflowTemplatesResponse.newBuilder() to construct. private ListWorkflowTemplatesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkflowTemplatesResponse() { templates_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,92 +44,114 @@ private ListWorkflowTemplatesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkflowTemplatesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.class, com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.Builder.class); + com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.class, + com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.Builder.class); } public static final int TEMPLATES_FIELD_NUMBER = 1; private java.util.List templates_; /** + * + * *
    * Output only. WorkflowTemplates list.
    * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getTemplatesList() { return templates_; } /** + * + * *
    * Output only. WorkflowTemplates list.
    * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getTemplatesOrBuilderList() { return templates_; } /** + * + * *
    * Output only. WorkflowTemplates list.
    * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getTemplatesCount() { return templates_.size(); } /** + * + * *
    * Output only. WorkflowTemplates list.
    * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplates(int index) { return templates_.get(index); } /** + * + * *
    * Output only. WorkflowTemplates list.
    * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuilder(int index) { return templates_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Output only. This token is included in the response if there are more
    * results to fetch. To fetch additional results, provide this value as the
@@ -119,6 +159,7 @@ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuil
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,14 +168,15 @@ 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; } } /** + * + * *
    * Output only. This token is included in the response if there are more
    * results to fetch. To fetch additional results, provide this value as the
@@ -142,16 +184,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -160,6 +201,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +213,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < templates_.size(); i++) { output.writeMessage(1, templates_.get(i)); } @@ -189,8 +230,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < templates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, templates_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, templates_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -203,17 +243,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse other = (com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) obj; + com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse other = + (com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) obj; - if (!getTemplatesList() - .equals(other.getTemplatesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getTemplatesList().equals(other.getTemplatesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,129 +276,136 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse 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.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 response to a request to list workflow templates in a project.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ListWorkflowTemplatesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.class, com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.Builder.class); + com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.class, + com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; } @java.lang.Override @@ -397,7 +443,8 @@ public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse build() { @java.lang.Override public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse buildPartial() { - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse result = new com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse(this); + com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse result = + new com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse(this); int from_bitField0_ = bitField0_; if (templatesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -417,38 +464,39 @@ public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) { - return mergeFrom((com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse)other); + return mergeFrom((com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) other); } else { super.mergeFrom(other); return this; @@ -456,7 +504,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse other) { - if (other == com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.getDefaultInstance()) + return this; if (templatesBuilder_ == null) { if (!other.templates_.isEmpty()) { if (templates_.isEmpty()) { @@ -475,9 +524,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ListWorkflowTemplatesRespo templatesBuilder_ = null; templates_ = other.templates_; bitField0_ = (bitField0_ & ~0x00000001); - templatesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTemplatesFieldBuilder() : null; + templatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTemplatesFieldBuilder() + : null; } else { templatesBuilder_.addAllMessages(other.templates_); } @@ -513,30 +563,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.dataproc.v1.WorkflowTemplate m = - input.readMessage( - com.google.cloud.dataproc.v1.WorkflowTemplate.parser(), - extensionRegistry); - if (templatesBuilder_ == null) { - ensureTemplatesIsMutable(); - templates_.add(m); - } else { - templatesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.dataproc.v1.WorkflowTemplate m = + input.readMessage( + com.google.cloud.dataproc.v1.WorkflowTemplate.parser(), extensionRegistry); + if (templatesBuilder_ == null) { + ensureTemplatesIsMutable(); + templates_.add(m); + } else { + templatesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -546,26 +598,36 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List templates_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTemplatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - templates_ = new java.util.ArrayList(templates_); + templates_ = + new java.util.ArrayList(templates_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> templatesBuilder_; + com.google.cloud.dataproc.v1.WorkflowTemplate, + com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, + com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> + templatesBuilder_; /** + * + * *
      * Output only. WorkflowTemplates list.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getTemplatesList() { if (templatesBuilder_ == null) { @@ -575,11 +637,15 @@ public java.util.List getTemplate } } /** + * + * *
      * Output only. WorkflowTemplates list.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getTemplatesCount() { if (templatesBuilder_ == null) { @@ -589,11 +655,15 @@ public int getTemplatesCount() { } } /** + * + * *
      * Output only. WorkflowTemplates list.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplates(int index) { if (templatesBuilder_ == null) { @@ -603,14 +673,17 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplates(int index) { } } /** + * + * *
      * Output only. WorkflowTemplates list.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setTemplates( - int index, com.google.cloud.dataproc.v1.WorkflowTemplate value) { + public Builder setTemplates(int index, com.google.cloud.dataproc.v1.WorkflowTemplate value) { if (templatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -624,11 +697,15 @@ public Builder setTemplates( return this; } /** + * + * *
      * Output only. WorkflowTemplates list.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTemplates( int index, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder builderForValue) { @@ -642,11 +719,15 @@ public Builder setTemplates( return this; } /** + * + * *
      * Output only. WorkflowTemplates list.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addTemplates(com.google.cloud.dataproc.v1.WorkflowTemplate value) { if (templatesBuilder_ == null) { @@ -662,14 +743,17 @@ public Builder addTemplates(com.google.cloud.dataproc.v1.WorkflowTemplate value) return this; } /** + * + * *
      * Output only. WorkflowTemplates list.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addTemplates( - int index, com.google.cloud.dataproc.v1.WorkflowTemplate value) { + public Builder addTemplates(int index, com.google.cloud.dataproc.v1.WorkflowTemplate value) { if (templatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -683,11 +767,15 @@ public Builder addTemplates( return this; } /** + * + * *
      * Output only. WorkflowTemplates list.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addTemplates( com.google.cloud.dataproc.v1.WorkflowTemplate.Builder builderForValue) { @@ -701,11 +789,15 @@ public Builder addTemplates( return this; } /** + * + * *
      * Output only. WorkflowTemplates list.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addTemplates( int index, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder builderForValue) { @@ -719,18 +811,21 @@ public Builder addTemplates( return this; } /** + * + * *
      * Output only. WorkflowTemplates list.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllTemplates( java.lang.Iterable values) { if (templatesBuilder_ == null) { ensureTemplatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, templates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, templates_); onChanged(); } else { templatesBuilder_.addAllMessages(values); @@ -738,11 +833,15 @@ public Builder addAllTemplates( return this; } /** + * + * *
      * Output only. WorkflowTemplates list.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearTemplates() { if (templatesBuilder_ == null) { @@ -755,11 +854,15 @@ public Builder clearTemplates() { return this; } /** + * + * *
      * Output only. WorkflowTemplates list.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeTemplates(int index) { if (templatesBuilder_ == null) { @@ -772,39 +875,50 @@ public Builder removeTemplates(int index) { return this; } /** + * + * *
      * Output only. WorkflowTemplates list.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder getTemplatesBuilder( - int index) { + public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder getTemplatesBuilder(int index) { return getTemplatesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. WorkflowTemplates list.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuilder(int index) { if (templatesBuilder_ == null) { - return templates_.get(index); } else { + return templates_.get(index); + } else { return templatesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. WorkflowTemplates list.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getTemplatesOrBuilderList() { + public java.util.List + getTemplatesOrBuilderList() { if (templatesBuilder_ != null) { return templatesBuilder_.getMessageOrBuilderList(); } else { @@ -812,49 +926,63 @@ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuil } } /** + * + * *
      * Output only. WorkflowTemplates list.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder addTemplatesBuilder() { - return getTemplatesFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()); + return getTemplatesFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()); } /** + * + * *
      * Output only. WorkflowTemplates list.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder addTemplatesBuilder( - int index) { - return getTemplatesFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()); + public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder addTemplatesBuilder(int index) { + return getTemplatesFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()); } /** + * + * *
      * Output only. WorkflowTemplates list.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getTemplatesBuilderList() { + public java.util.List + getTemplatesBuilderList() { return getTemplatesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> + com.google.cloud.dataproc.v1.WorkflowTemplate, + com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, + com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> getTemplatesFieldBuilder() { if (templatesBuilder_ == null) { - templatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( - templates_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + templatesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.WorkflowTemplate, + com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, + com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( + templates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); templates_ = null; } return templatesBuilder_; @@ -862,6 +990,8 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder addTemplatesBuilder private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -869,13 +999,13 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder addTemplatesBuilder
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -884,6 +1014,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -891,15 +1023,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -907,6 +1038,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -914,20 +1047,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; } /** + * + * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -935,15 +1070,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Output only. This token is included in the response if there are more
      * results to fetch. To fetch additional results, provide this value as the
@@ -951,23 +1089,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -977,12 +1115,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) private static final com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse(); } @@ -991,27 +1129,27 @@ public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkflowTemplatesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkflowTemplatesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1026,6 +1164,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java similarity index 54% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java index 07a67a8b06c8..bc48c332194f 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java @@ -1,57 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface ListWorkflowTemplatesResponseOrBuilder extends +public interface ListWorkflowTemplatesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. WorkflowTemplates list.
    * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getTemplatesList(); + java.util.List getTemplatesList(); /** + * + * *
    * Output only. WorkflowTemplates list.
    * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.WorkflowTemplate getTemplates(int index); /** + * + * *
    * Output only. WorkflowTemplates list.
    * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getTemplatesCount(); /** + * + * *
    * Output only. WorkflowTemplates list.
    * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getTemplatesOrBuilderList(); /** + * + * *
    * Output only. WorkflowTemplates list.
    * 
* - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuilder( - int index); + com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuilder(int index); /** + * + * *
    * Output only. This token is included in the response if there are more
    * results to fetch. To fetch additional results, provide this value as the
@@ -59,10 +95,13 @@ com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuilder(
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Output only. This token is included in the response if there are more
    * results to fetch. To fetch additional results, provide this value as the
@@ -70,8 +109,8 @@ com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuilder(
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java similarity index 62% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java index 3889cfbb119b..ab4acd1295d7 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java @@ -1,65 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * The runtime logging config of the job.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.LoggingConfig} */ -public final class LoggingConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LoggingConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.LoggingConfig) LoggingConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LoggingConfig.newBuilder() to construct. private LoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LoggingConfig() { - } + + private LoggingConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LoggingConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetDriverLogLevels(); 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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.LoggingConfig.class, com.google.cloud.dataproc.v1.LoggingConfig.Builder.class); + com.google.cloud.dataproc.v1.LoggingConfig.class, + com.google.cloud.dataproc.v1.LoggingConfig.Builder.class); } /** + * + * *
    * The Log4j level for job execution. When running an
    * [Apache Hive](https://hive.apache.org/) job, Cloud
@@ -68,9 +87,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf enum {@code google.cloud.dataproc.v1.LoggingConfig.Level}
    */
-  public enum Level
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Level implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Level is unspecified. Use default level for log4j.
      * 
@@ -79,6 +99,8 @@ public enum Level */ LEVEL_UNSPECIFIED(0), /** + * + * *
      * Use ALL level for log4j.
      * 
@@ -87,6 +109,8 @@ public enum Level */ ALL(1), /** + * + * *
      * Use TRACE level for log4j.
      * 
@@ -95,6 +119,8 @@ public enum Level */ TRACE(2), /** + * + * *
      * Use DEBUG level for log4j.
      * 
@@ -103,6 +129,8 @@ public enum Level */ DEBUG(3), /** + * + * *
      * Use INFO level for log4j.
      * 
@@ -111,6 +139,8 @@ public enum Level */ INFO(4), /** + * + * *
      * Use WARN level for log4j.
      * 
@@ -119,6 +149,8 @@ public enum Level */ WARN(5), /** + * + * *
      * Use ERROR level for log4j.
      * 
@@ -127,6 +159,8 @@ public enum Level */ ERROR(6), /** + * + * *
      * Use FATAL level for log4j.
      * 
@@ -135,6 +169,8 @@ public enum Level */ FATAL(7), /** + * + * *
      * Turn off log4j.
      * 
@@ -146,6 +182,8 @@ public enum Level ; /** + * + * *
      * Level is unspecified. Use default level for log4j.
      * 
@@ -154,6 +192,8 @@ public enum Level */ public static final int LEVEL_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Use ALL level for log4j.
      * 
@@ -162,6 +202,8 @@ public enum Level */ public static final int ALL_VALUE = 1; /** + * + * *
      * Use TRACE level for log4j.
      * 
@@ -170,6 +212,8 @@ public enum Level */ public static final int TRACE_VALUE = 2; /** + * + * *
      * Use DEBUG level for log4j.
      * 
@@ -178,6 +222,8 @@ public enum Level */ public static final int DEBUG_VALUE = 3; /** + * + * *
      * Use INFO level for log4j.
      * 
@@ -186,6 +232,8 @@ public enum Level */ public static final int INFO_VALUE = 4; /** + * + * *
      * Use WARN level for log4j.
      * 
@@ -194,6 +242,8 @@ public enum Level */ public static final int WARN_VALUE = 5; /** + * + * *
      * Use ERROR level for log4j.
      * 
@@ -202,6 +252,8 @@ public enum Level */ public static final int ERROR_VALUE = 6; /** + * + * *
      * Use FATAL level for log4j.
      * 
@@ -210,6 +262,8 @@ public enum Level */ public static final int FATAL_VALUE = 7; /** + * + * *
      * Turn off log4j.
      * 
@@ -218,7 +272,6 @@ public enum Level */ public static final int OFF_VALUE = 8; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -243,55 +296,61 @@ public static Level valueOf(int value) { */ public static Level forNumber(int value) { switch (value) { - case 0: return LEVEL_UNSPECIFIED; - case 1: return ALL; - case 2: return TRACE; - case 3: return DEBUG; - case 4: return INFO; - case 5: return WARN; - case 6: return ERROR; - case 7: return FATAL; - case 8: return OFF; - default: return null; + case 0: + return LEVEL_UNSPECIFIED; + case 1: + return ALL; + case 2: + return TRACE; + case 3: + return DEBUG; + case 4: + return INFO; + case 5: + return WARN; + case 6: + return ERROR; + case 7: + return FATAL; + case 8: + return OFF; + 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< - Level> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Level findValueByNumber(int number) { - return Level.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Level findValueByNumber(int number) { + return Level.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataproc.v1.LoggingConfig.getDescriptor().getEnumTypes().get(0); } private static final Level[] VALUES = values(); - public static Level valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Level 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; @@ -309,45 +368,50 @@ private Level(int value) { } public static final int DRIVER_LOG_LEVELS_FIELD_NUMBER = 2; + private static final class DriverLogLevelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.ENUM, - com.google.cloud.dataproc.v1.LoggingConfig.Level.LEVEL_UNSPECIFIED.getNumber()); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.ENUM, + com.google.cloud.dataproc.v1.LoggingConfig.Level.LEVEL_UNSPECIFIED.getNumber()); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> driverLogLevels_; + + private com.google.protobuf.MapField driverLogLevels_; + private com.google.protobuf.MapField - internalGetDriverLogLevels() { + internalGetDriverLogLevels() { if (driverLogLevels_ == null) { return com.google.protobuf.MapField.emptyMapField( DriverLogLevelsDefaultEntryHolder.defaultEntry); } return driverLogLevels_; } - private static final - com.google.protobuf.Internal.MapAdapter.Converter< - java.lang.Integer, com.google.cloud.dataproc.v1.LoggingConfig.Level> driverLogLevelsValueConverter = + + private static final com.google.protobuf.Internal.MapAdapter.Converter< + java.lang.Integer, com.google.cloud.dataproc.v1.LoggingConfig.Level> + driverLogLevelsValueConverter = com.google.protobuf.Internal.MapAdapter.newEnumConverter( com.google.cloud.dataproc.v1.LoggingConfig.Level.internalGetValueMap(), com.google.cloud.dataproc.v1.LoggingConfig.Level.UNRECOGNIZED); - private static final java.util.Map - internalGetAdaptedDriverLogLevelsMap( - java.util.Map map) { + + private static final java.util.Map< + java.lang.String, com.google.cloud.dataproc.v1.LoggingConfig.Level> + internalGetAdaptedDriverLogLevelsMap(java.util.Map map) { return new com.google.protobuf.Internal.MapAdapter< java.lang.String, com.google.cloud.dataproc.v1.LoggingConfig.Level, java.lang.Integer>( - map, driverLogLevelsValueConverter); + map, driverLogLevelsValueConverter); } public int getDriverLogLevelsCount() { return internalGetDriverLogLevels().getMap().size(); } /** + * + * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -355,25 +419,26 @@ public int getDriverLogLevelsCount() {
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ - @java.lang.Override - public boolean containsDriverLogLevels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsDriverLogLevels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetDriverLogLevels().getMap().containsKey(key); } - /** - * Use {@link #getDriverLogLevelsMap()} instead. - */ + /** Use {@link #getDriverLogLevelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map - getDriverLogLevels() { + getDriverLogLevels() { return getDriverLogLevelsMap(); } /** + * + * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -381,15 +446,17 @@ public boolean containsDriverLogLevels(
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ @java.lang.Override - public java.util.Map - getDriverLogLevelsMap() { - return internalGetAdaptedDriverLogLevelsMap( - internalGetDriverLogLevels().getMap());} + getDriverLogLevelsMap() { + return internalGetAdaptedDriverLogLevelsMap(internalGetDriverLogLevels().getMap()); + } /** + * + * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -397,23 +464,26 @@ public boolean containsDriverLogLevels(
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ @java.lang.Override - - public /* nullable */ -com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDriverLogLevels().getMap(); + public /* nullable */ com.google.cloud.dataproc.v1.LoggingConfig.Level + getDriverLogLevelsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDriverLogLevels().getMap(); return map.containsKey(key) - ? driverLogLevelsValueConverter.doForward(map.get(key)) - : defaultValue; + ? driverLogLevelsValueConverter.doForward(map.get(key)) + : defaultValue; } /** + * + * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -421,30 +491,30 @@ com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault(
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDriverLogLevels().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDriverLogLevels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return driverLogLevelsValueConverter.doForward(map.get(key)); } - /** - * Use {@link #getDriverLogLevelsValueMap()} instead. - */ + /** Use {@link #getDriverLogLevelsValueMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getDriverLogLevelsValue() { + public java.util.Map getDriverLogLevelsValue() { return getDriverLogLevelsValueMap(); } /** + * + * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -452,15 +522,16 @@ public com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThro
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ @java.lang.Override - - public java.util.Map - getDriverLogLevelsValueMap() { + public java.util.Map getDriverLogLevelsValueMap() { return internalGetDriverLogLevels().getMap(); } /** + * + * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -468,19 +539,20 @@ public com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThro
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ @java.lang.Override - - public int getDriverLogLevelsValueOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDriverLogLevels().getMap(); + public int getDriverLogLevelsValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDriverLogLevels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -488,15 +560,15 @@ public int getDriverLogLevelsValueOrDefault(
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ @java.lang.Override - - public int getDriverLogLevelsValueOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDriverLogLevels().getMap(); + public int getDriverLogLevelsValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDriverLogLevels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -504,6 +576,7 @@ public int getDriverLogLevelsValueOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -515,14 +588,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetDriverLogLevels(), - DriverLogLevelsDefaultEntryHolder.defaultEntry, - 2); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetDriverLogLevels(), DriverLogLevelsDefaultEntryHolder.defaultEntry, 2); getUnknownFields().writeTo(output); } @@ -532,15 +600,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetDriverLogLevels().getMap().entrySet()) { - com.google.protobuf.MapEntry - driverLogLevels__ = DriverLogLevelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, driverLogLevels__); + for (java.util.Map.Entry entry : + internalGetDriverLogLevels().getMap().entrySet()) { + com.google.protobuf.MapEntry driverLogLevels__ = + DriverLogLevelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, driverLogLevels__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -550,15 +618,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.dataproc.v1.LoggingConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.LoggingConfig other = (com.google.cloud.dataproc.v1.LoggingConfig) obj; + com.google.cloud.dataproc.v1.LoggingConfig other = + (com.google.cloud.dataproc.v1.LoggingConfig) obj; - if (!internalGetDriverLogLevels().equals( - other.internalGetDriverLogLevels())) return false; + if (!internalGetDriverLogLevels().equals(other.internalGetDriverLogLevels())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -579,152 +647,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.LoggingConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.LoggingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.LoggingConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.LoggingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 runtime logging config of the job.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.LoggingConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.LoggingConfig) com.google.cloud.dataproc.v1.LoggingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetDriverLogLevels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableDriverLogLevels(); 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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.LoggingConfig.class, com.google.cloud.dataproc.v1.LoggingConfig.Builder.class); + com.google.cloud.dataproc.v1.LoggingConfig.class, + com.google.cloud.dataproc.v1.LoggingConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.LoggingConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -733,9 +805,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor; } @java.lang.Override @@ -754,7 +826,8 @@ public com.google.cloud.dataproc.v1.LoggingConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfig buildPartial() { - com.google.cloud.dataproc.v1.LoggingConfig result = new com.google.cloud.dataproc.v1.LoggingConfig(this); + com.google.cloud.dataproc.v1.LoggingConfig result = + new com.google.cloud.dataproc.v1.LoggingConfig(this); int from_bitField0_ = bitField0_; result.driverLogLevels_ = internalGetDriverLogLevels(); result.driverLogLevels_.makeImmutable(); @@ -766,38 +839,39 @@ public com.google.cloud.dataproc.v1.LoggingConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.LoggingConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.LoggingConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.LoggingConfig) other); } else { super.mergeFrom(other); return this; @@ -806,8 +880,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.dataproc.v1.LoggingConfig other) { if (other == com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance()) return this; - internalGetMutableDriverLogLevels().mergeFrom( - other.internalGetDriverLogLevels()); + internalGetMutableDriverLogLevels().mergeFrom(other.internalGetDriverLogLevels()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -834,20 +907,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - com.google.protobuf.MapEntry - driverLogLevels__ = input.readMessage( - DriverLogLevelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableDriverLogLevels().getMutableMap().put( - driverLogLevels__.getKey(), driverLogLevels__.getValue()); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + com.google.protobuf.MapEntry + driverLogLevels__ = + input.readMessage( + DriverLogLevelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableDriverLogLevels() + .getMutableMap() + .put(driverLogLevels__.getKey(), driverLogLevels__.getValue()); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -857,24 +935,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> driverLogLevels_; + private com.google.protobuf.MapField driverLogLevels_; + private com.google.protobuf.MapField - internalGetDriverLogLevels() { + internalGetDriverLogLevels() { if (driverLogLevels_ == null) { return com.google.protobuf.MapField.emptyMapField( DriverLogLevelsDefaultEntryHolder.defaultEntry); } return driverLogLevels_; } + private com.google.protobuf.MapField - internalGetMutableDriverLogLevels() { - onChanged();; + internalGetMutableDriverLogLevels() { + onChanged(); + ; if (driverLogLevels_ == null) { - driverLogLevels_ = com.google.protobuf.MapField.newMapField( - DriverLogLevelsDefaultEntryHolder.defaultEntry); + driverLogLevels_ = + com.google.protobuf.MapField.newMapField( + DriverLogLevelsDefaultEntryHolder.defaultEntry); } if (!driverLogLevels_.isMutable()) { driverLogLevels_ = driverLogLevels_.copy(); @@ -886,6 +968,8 @@ public int getDriverLogLevelsCount() { return internalGetDriverLogLevels().getMap().size(); } /** + * + * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -893,25 +977,26 @@ public int getDriverLogLevelsCount() {
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ - @java.lang.Override - public boolean containsDriverLogLevels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsDriverLogLevels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetDriverLogLevels().getMap().containsKey(key); } - /** - * Use {@link #getDriverLogLevelsMap()} instead. - */ + /** Use {@link #getDriverLogLevelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map - getDriverLogLevels() { + getDriverLogLevels() { return getDriverLogLevelsMap(); } /** + * + * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -919,15 +1004,17 @@ public boolean containsDriverLogLevels(
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ @java.lang.Override - public java.util.Map - getDriverLogLevelsMap() { - return internalGetAdaptedDriverLogLevelsMap( - internalGetDriverLogLevels().getMap());} + getDriverLogLevelsMap() { + return internalGetAdaptedDriverLogLevelsMap(internalGetDriverLogLevels().getMap()); + } /** + * + * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -935,23 +1022,27 @@ public boolean containsDriverLogLevels(
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ @java.lang.Override - - public /* nullable */ -com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + public /* nullable */ com.google.cloud.dataproc.v1.LoggingConfig.Level + getDriverLogLevelsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetDriverLogLevels().getMap(); return map.containsKey(key) - ? driverLogLevelsValueConverter.doForward(map.get(key)) - : defaultValue; + ? driverLogLevelsValueConverter.doForward(map.get(key)) + : defaultValue; } /** + * + * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -959,13 +1050,15 @@ com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault(
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetDriverLogLevels().getMap(); if (!map.containsKey(key)) { @@ -973,16 +1066,15 @@ public com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThro } return driverLogLevelsValueConverter.doForward(map.get(key)); } - /** - * Use {@link #getDriverLogLevelsValueMap()} instead. - */ + /** Use {@link #getDriverLogLevelsValueMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getDriverLogLevelsValue() { + public java.util.Map getDriverLogLevelsValue() { return getDriverLogLevelsValueMap(); } /** + * + * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -990,15 +1082,16 @@ public com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThro
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ @java.lang.Override - - public java.util.Map - getDriverLogLevelsValueMap() { + public java.util.Map getDriverLogLevelsValueMap() { return internalGetDriverLogLevels().getMap(); } /** + * + * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -1006,19 +1099,21 @@ public com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThro
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ @java.lang.Override - - public int getDriverLogLevelsValueOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + public int getDriverLogLevelsValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetDriverLogLevels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -1026,13 +1121,14 @@ public int getDriverLogLevelsValueOrDefault(
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ @java.lang.Override - - public int getDriverLogLevelsValueOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public int getDriverLogLevelsValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetDriverLogLevels().getMap(); if (!map.containsKey(key)) { @@ -1042,11 +1138,12 @@ public int getDriverLogLevelsValueOrThrow( } public Builder clearDriverLogLevels() { - internalGetMutableDriverLogLevels().getMutableMap() - .clear(); + internalGetMutableDriverLogLevels().getMutableMap().clear(); return this; } /** + * + * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -1054,26 +1151,26 @@ public Builder clearDriverLogLevels() {
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ - - public Builder removeDriverLogLevels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableDriverLogLevels().getMutableMap() - .remove(key); + public Builder removeDriverLogLevels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableDriverLogLevels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map - getMutableDriverLogLevels() { + getMutableDriverLogLevels() { return internalGetAdaptedDriverLogLevelsMap( - internalGetMutableDriverLogLevels().getMutableMap()); + internalGetMutableDriverLogLevels().getMutableMap()); } /** + * + * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -1081,18 +1178,23 @@ public Builder removeDriverLogLevels(
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ public Builder putDriverLogLevels( - java.lang.String key, - com.google.cloud.dataproc.v1.LoggingConfig.Level value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableDriverLogLevels().getMutableMap() + java.lang.String key, com.google.cloud.dataproc.v1.LoggingConfig.Level value) { + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableDriverLogLevels() + .getMutableMap() .put(key, driverLogLevelsValueConverter.doBackward(value)); return this; } /** + * + * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -1100,24 +1202,23 @@ public Builder putDriverLogLevels(
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ public Builder putAllDriverLogLevels( java.util.Map values) { - internalGetAdaptedDriverLogLevelsMap( - internalGetMutableDriverLogLevels().getMutableMap()) - .putAll(values); + internalGetAdaptedDriverLogLevelsMap(internalGetMutableDriverLogLevels().getMutableMap()) + .putAll(values); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableDriverLogLevelsValue() { + public java.util.Map getMutableDriverLogLevelsValue() { return internalGetMutableDriverLogLevels().getMutableMap(); } /** + * + * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -1125,18 +1226,20 @@ public Builder putAllDriverLogLevels(
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ - public Builder putDriverLogLevelsValue( - java.lang.String key, - int value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableDriverLogLevels().getMutableMap() - .put(key, value); + public Builder putDriverLogLevelsValue(java.lang.String key, int value) { + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableDriverLogLevels().getMutableMap().put(key, value); return this; } /** + * + * *
      * The per-package log levels for the driver. This may include
      * "root" package name to configure rootLogger.
@@ -1144,17 +1247,17 @@ public Builder putDriverLogLevelsValue(
      *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
      * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ public Builder putAllDriverLogLevelsValue( java.util.Map values) { - internalGetMutableDriverLogLevels().getMutableMap() - .putAll(values); + internalGetMutableDriverLogLevels().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); } @@ -1164,12 +1267,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.LoggingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.LoggingConfig) private static final com.google.cloud.dataproc.v1.LoggingConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.LoggingConfig(); } @@ -1178,27 +1281,27 @@ public static com.google.cloud.dataproc.v1.LoggingConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoggingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoggingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1213,6 +1316,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.LoggingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java similarity index 62% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java index 98afe177f949..334f67210d74 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface LoggingConfigOrBuilder extends +public interface LoggingConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.LoggingConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -15,10 +33,13 @@ public interface LoggingConfigOrBuilder extends
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ int getDriverLogLevelsCount(); /** + * + * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -26,17 +47,17 @@ public interface LoggingConfigOrBuilder extends
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - */ - boolean containsDriverLogLevels( - java.lang.String key); - /** - * Use {@link #getDriverLogLevelsMap()} instead. + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ + boolean containsDriverLogLevels(java.lang.String key); + /** Use {@link #getDriverLogLevelsMap()} instead. */ @java.lang.Deprecated java.util.Map - getDriverLogLevels(); + getDriverLogLevels(); /** + * + * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -44,11 +65,14 @@ boolean containsDriverLogLevels(
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ java.util.Map - getDriverLogLevelsMap(); + getDriverLogLevelsMap(); /** + * + * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -56,14 +80,17 @@ boolean containsDriverLogLevels(
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ /* nullable */ -com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault( + com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue); + com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue); /** + * + * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -71,17 +98,16 @@ com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault(
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - */ - com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThrow( - java.lang.String key); - /** - * Use {@link #getDriverLogLevelsValueMap()} instead. + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ + com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThrow(java.lang.String key); + /** Use {@link #getDriverLogLevelsValueMap()} instead. */ @java.lang.Deprecated - java.util.Map - getDriverLogLevelsValue(); + java.util.Map getDriverLogLevelsValue(); /** + * + * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -89,11 +115,13 @@ com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThrow(
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ - java.util.Map - getDriverLogLevelsValueMap(); + java.util.Map getDriverLogLevelsValueMap(); /** + * + * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -101,13 +129,13 @@ com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThrow(
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ - - int getDriverLogLevelsValueOrDefault( - java.lang.String key, - int defaultValue); + int getDriverLogLevelsValueOrDefault(java.lang.String key, int defaultValue); /** + * + * *
    * The per-package log levels for the driver. This may include
    * "root" package name to configure rootLogger.
@@ -115,9 +143,8 @@ int getDriverLogLevelsValueOrDefault(
    *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
    * 
* - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; + * */ - - int getDriverLogLevelsValueOrThrow( - java.lang.String key); + int getDriverLogLevelsValueOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java similarity index 66% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java index 5f625755dd66..87e3064b1286 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java @@ -1,68 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Cluster that is managed by the workflow.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ManagedCluster} */ -public final class ManagedCluster extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ManagedCluster extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ManagedCluster) ManagedClusterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ManagedCluster.newBuilder() to construct. private ManagedCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ManagedCluster() { clusterName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ManagedCluster(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetLabels(); 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.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ManagedCluster_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ManagedCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ManagedCluster.class, com.google.cloud.dataproc.v1.ManagedCluster.Builder.class); + com.google.cloud.dataproc.v1.ManagedCluster.class, + com.google.cloud.dataproc.v1.ManagedCluster.Builder.class); } public static final int CLUSTER_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object clusterName_; /** + * + * *
    * Required. The cluster name prefix. A unique cluster name will be formed by
    * appending a random suffix.
@@ -72,6 +92,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ @java.lang.Override @@ -80,14 +101,15 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** + * + * *
    * Required. The cluster name prefix. A unique cluster name will be formed by
    * appending a random suffix.
@@ -97,16 +119,15 @@ public java.lang.String getClusterName() {
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -117,11 +138,16 @@ public java.lang.String getClusterName() { public static final int CONFIG_FIELD_NUMBER = 3; private com.google.cloud.dataproc.v1.ClusterConfig config_; /** + * + * *
    * Required. The cluster configuration.
    * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -129,23 +155,34 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. The cluster configuration.
    * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterConfig getConfig() { - return config_ == null ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. The cluster configuration.
    * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() { @@ -153,24 +190,23 @@ public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ManagedCluster_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ManagedCluster_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -179,6 +215,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels to associate with this cluster.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -191,22 +229,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-
   @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();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -220,11 +258,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -238,16 +277,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -261,12 +300,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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();
     }
@@ -274,6 +312,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -285,20 +324,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(clusterName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_);
     }
     if (config_ != null) {
       output.writeMessage(3, getConfig());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        4);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
     getUnknownFields().writeTo(output);
   }
 
@@ -312,18 +346,17 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_);
     }
     if (config_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getConfig());
-    }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(4, labels__);
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConfig());
+    }
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -333,22 +366,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.dataproc.v1.ManagedCluster)) {
       return super.equals(obj);
     }
-    com.google.cloud.dataproc.v1.ManagedCluster other = (com.google.cloud.dataproc.v1.ManagedCluster) obj;
+    com.google.cloud.dataproc.v1.ManagedCluster other =
+        (com.google.cloud.dataproc.v1.ManagedCluster) obj;
 
-    if (!getClusterName()
-        .equals(other.getClusterName())) return false;
+    if (!getClusterName().equals(other.getClusterName())) return false;
     if (hasConfig() != other.hasConfig()) return false;
     if (hasConfig()) {
-      if (!getConfig()
-          .equals(other.getConfig())) return false;
+      if (!getConfig().equals(other.getConfig())) return false;
     }
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -375,152 +406,156 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.dataproc.v1.ManagedCluster parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.dataproc.v1.ManagedCluster parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.dataproc.v1.ManagedCluster parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.dataproc.v1.ManagedCluster prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Cluster that is managed by the workflow.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ManagedCluster} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ManagedCluster) com.google.cloud.dataproc.v1.ManagedClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 4: return internalGetMutableLabels(); 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.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ManagedCluster_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ManagedCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ManagedCluster.class, com.google.cloud.dataproc.v1.ManagedCluster.Builder.class); + com.google.cloud.dataproc.v1.ManagedCluster.class, + com.google.cloud.dataproc.v1.ManagedCluster.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ManagedCluster.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -537,9 +572,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; } @java.lang.Override @@ -558,7 +593,8 @@ public com.google.cloud.dataproc.v1.ManagedCluster build() { @java.lang.Override public com.google.cloud.dataproc.v1.ManagedCluster buildPartial() { - com.google.cloud.dataproc.v1.ManagedCluster result = new com.google.cloud.dataproc.v1.ManagedCluster(this); + com.google.cloud.dataproc.v1.ManagedCluster result = + new com.google.cloud.dataproc.v1.ManagedCluster(this); int from_bitField0_ = bitField0_; result.clusterName_ = clusterName_; if (configBuilder_ == null) { @@ -576,38 +612,39 @@ public com.google.cloud.dataproc.v1.ManagedCluster buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ManagedCluster) { - return mergeFrom((com.google.cloud.dataproc.v1.ManagedCluster)other); + return mergeFrom((com.google.cloud.dataproc.v1.ManagedCluster) other); } else { super.mergeFrom(other); return this; @@ -623,8 +660,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ManagedCluster other) { if (other.hasConfig()) { mergeConfig(other.getConfig()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -651,32 +687,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 34: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -686,10 +726,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object clusterName_ = ""; /** + * + * *
      * Required. The cluster name prefix. A unique cluster name will be formed by
      * appending a random suffix.
@@ -699,13 +742,13 @@ public Builder mergeFrom(
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -714,6 +757,8 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Required. The cluster name prefix. A unique cluster name will be formed by
      * appending a random suffix.
@@ -723,15 +768,14 @@ public java.lang.String getClusterName() {
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -739,6 +783,8 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Required. The cluster name prefix. A unique cluster name will be formed by
      * appending a random suffix.
@@ -748,20 +794,22 @@ public java.lang.String getClusterName() {
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName( - java.lang.String value) { + public Builder setClusterName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The cluster name prefix. A unique cluster name will be formed by
      * appending a random suffix.
@@ -771,15 +819,18 @@ public Builder setClusterName(
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** + * + * *
      * Required. The cluster name prefix. A unique cluster name will be formed by
      * appending a random suffix.
@@ -789,16 +840,16 @@ public Builder clearClusterName() {
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -806,39 +857,58 @@ public Builder setClusterNameBytes( private com.google.cloud.dataproc.v1.ClusterConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterConfig, com.google.cloud.dataproc.v1.ClusterConfig.Builder, com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> configBuilder_; + com.google.cloud.dataproc.v1.ClusterConfig, + com.google.cloud.dataproc.v1.ClusterConfig.Builder, + com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> + configBuilder_; /** + * + * *
      * Required. The cluster configuration.
      * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. The cluster configuration.
      * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.dataproc.v1.ClusterConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. The cluster configuration.
      * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { if (configBuilder_ == null) { @@ -854,14 +924,17 @@ public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { return this; } /** + * + * *
      * Required. The cluster configuration.
      * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConfig( - com.google.cloud.dataproc.v1.ClusterConfig.Builder builderForValue) { + public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -872,17 +945,23 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. The cluster configuration.
      * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.dataproc.v1.ClusterConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.ClusterConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -894,11 +973,15 @@ public Builder mergeConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { return this; } /** + * + * *
      * Required. The cluster configuration.
      * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -912,69 +995,84 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. The cluster configuration.
      * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.ClusterConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The cluster configuration.
      * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. The cluster configuration.
      * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterConfig, com.google.cloud.dataproc.v1.ClusterConfig.Builder, com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> + com.google.cloud.dataproc.v1.ClusterConfig, + com.google.cloud.dataproc.v1.ClusterConfig.Builder, + com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterConfig, com.google.cloud.dataproc.v1.ClusterConfig.Builder, com.google.cloud.dataproc.v1.ClusterConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterConfig, + com.google.cloud.dataproc.v1.ClusterConfig.Builder, + com.google.cloud.dataproc.v1.ClusterConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -986,6 +1084,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels to associate with this cluster.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -998,22 +1098,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-
     @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();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -1027,11 +1127,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -1045,16 +1146,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -1068,12 +1170,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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();
       }
@@ -1081,11 +1182,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -1098,23 +1200,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    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();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -1127,19 +1227,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this cluster.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -1152,16 +1253,13 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().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);
     }
 
@@ -1171,12 +1269,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ManagedCluster)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ManagedCluster)
   private static final com.google.cloud.dataproc.v1.ManagedCluster DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ManagedCluster();
   }
@@ -1185,27 +1283,27 @@ public static com.google.cloud.dataproc.v1.ManagedCluster getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ManagedCluster parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ManagedCluster parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1220,6 +1318,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.dataproc.v1.ManagedCluster getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java
similarity index 76%
rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java
rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java
index 55bf188a9b7c..056f92053092 100644
--- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java
+++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/dataproc/v1/workflow_templates.proto
 
 package com.google.cloud.dataproc.v1;
 
-public interface ManagedClusterOrBuilder extends
+public interface ManagedClusterOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ManagedCluster)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The cluster name prefix. A unique cluster name will be formed by
    * appending a random suffix.
@@ -17,10 +35,13 @@ public interface ManagedClusterOrBuilder extends
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ java.lang.String getClusterName(); /** + * + * *
    * Required. The cluster name prefix. A unique cluster name will be formed by
    * appending a random suffix.
@@ -30,39 +51,55 @@ public interface ManagedClusterOrBuilder extends
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString - getClusterNameBytes(); + com.google.protobuf.ByteString getClusterNameBytes(); /** + * + * *
    * Required. The cluster configuration.
    * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. The cluster configuration.
    * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ com.google.cloud.dataproc.v1.ClusterConfig getConfig(); /** + * + * *
    * Required. The cluster configuration.
    * 
* - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * Optional. The labels to associate with this cluster.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -77,6 +114,8 @@ public interface ManagedClusterOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -89,15 +128,13 @@ public interface ManagedClusterOrBuilder extends
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  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();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -110,9 +147,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -127,11 +165,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this cluster.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -144,7 +184,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java
similarity index 67%
rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java
rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java
index 90dfe99d82db..b38f4a947c5b 100644
--- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java
+++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/dataproc/v1/clusters.proto
 
 package com.google.cloud.dataproc.v1;
 
 /**
+ *
+ *
  * 
  * Specifies the resources used to actively manage an instance group.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ManagedGroupConfig} */ -public final class ManagedGroupConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ManagedGroupConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ManagedGroupConfig) ManagedGroupConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ManagedGroupConfig.newBuilder() to construct. private ManagedGroupConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ManagedGroupConfig() { instanceTemplateName_ = ""; instanceGroupManagerName_ = ""; @@ -26,38 +44,42 @@ private ManagedGroupConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ManagedGroupConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ManagedGroupConfig.class, com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder.class); + com.google.cloud.dataproc.v1.ManagedGroupConfig.class, + com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder.class); } public static final int INSTANCE_TEMPLATE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object instanceTemplateName_; /** + * + * *
    * Output only. The name of the Instance Template used for the Managed
    * Instance Group.
    * 
* * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The instanceTemplateName. */ @java.lang.Override @@ -66,30 +88,30 @@ public java.lang.String getInstanceTemplateName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceTemplateName_ = s; return s; } } /** + * + * *
    * Output only. The name of the Instance Template used for the Managed
    * Instance Group.
    * 
* * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for instanceTemplateName. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstanceTemplateNameBytes() { + public com.google.protobuf.ByteString getInstanceTemplateNameBytes() { java.lang.Object ref = instanceTemplateName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instanceTemplateName_ = b; return b; } else { @@ -100,11 +122,15 @@ public java.lang.String getInstanceTemplateName() { public static final int INSTANCE_GROUP_MANAGER_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object instanceGroupManagerName_; /** + * + * *
    * Output only. The name of the Instance Group Manager for this group.
    * 
* - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The instanceGroupManagerName. */ @java.lang.Override @@ -113,29 +139,30 @@ public java.lang.String getInstanceGroupManagerName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupManagerName_ = s; return s; } } /** + * + * *
    * Output only. The name of the Instance Group Manager for this group.
    * 
* - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for instanceGroupManagerName. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstanceGroupManagerNameBytes() { + public com.google.protobuf.ByteString getInstanceGroupManagerNameBytes() { java.lang.Object ref = instanceGroupManagerName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instanceGroupManagerName_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getInstanceGroupManagerName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceTemplateName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceTemplateName_); } @@ -176,7 +203,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceTemplateName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManagerName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceGroupManagerName_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceGroupManagerName_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -186,17 +214,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ManagedGroupConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ManagedGroupConfig other = (com.google.cloud.dataproc.v1.ManagedGroupConfig) obj; + com.google.cloud.dataproc.v1.ManagedGroupConfig other = + (com.google.cloud.dataproc.v1.ManagedGroupConfig) obj; - if (!getInstanceTemplateName() - .equals(other.getInstanceTemplateName())) return false; - if (!getInstanceGroupManagerName() - .equals(other.getInstanceGroupManagerName())) return false; + if (!getInstanceTemplateName().equals(other.getInstanceTemplateName())) return false; + if (!getInstanceGroupManagerName().equals(other.getInstanceGroupManagerName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -217,130 +244,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.ManagedGroupConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specifies the resources used to actively manage an instance group.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ManagedGroupConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ManagedGroupConfig) com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ManagedGroupConfig.class, com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder.class); + com.google.cloud.dataproc.v1.ManagedGroupConfig.class, + com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ManagedGroupConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -352,9 +385,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; } @java.lang.Override @@ -373,7 +406,8 @@ public com.google.cloud.dataproc.v1.ManagedGroupConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.ManagedGroupConfig buildPartial() { - com.google.cloud.dataproc.v1.ManagedGroupConfig result = new com.google.cloud.dataproc.v1.ManagedGroupConfig(this); + com.google.cloud.dataproc.v1.ManagedGroupConfig result = + new com.google.cloud.dataproc.v1.ManagedGroupConfig(this); result.instanceTemplateName_ = instanceTemplateName_; result.instanceGroupManagerName_ = instanceGroupManagerName_; onBuilt(); @@ -384,38 +418,39 @@ public com.google.cloud.dataproc.v1.ManagedGroupConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ManagedGroupConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.ManagedGroupConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.ManagedGroupConfig) other); } else { super.mergeFrom(other); return this; @@ -423,7 +458,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ManagedGroupConfig other) { - if (other == com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance()) + return this; if (!other.getInstanceTemplateName().isEmpty()) { instanceTemplateName_ = other.instanceTemplateName_; onChanged(); @@ -458,22 +494,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - instanceTemplateName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - instanceGroupManagerName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + instanceTemplateName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + instanceGroupManagerName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -486,19 +525,21 @@ public Builder mergeFrom( private java.lang.Object instanceTemplateName_ = ""; /** + * + * *
      * Output only. The name of the Instance Template used for the Managed
      * Instance Group.
      * 
* * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The instanceTemplateName. */ public java.lang.String getInstanceTemplateName() { java.lang.Object ref = instanceTemplateName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceTemplateName_ = s; return s; @@ -507,21 +548,22 @@ public java.lang.String getInstanceTemplateName() { } } /** + * + * *
      * Output only. The name of the Instance Template used for the Managed
      * Instance Group.
      * 
* * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for instanceTemplateName. */ - public com.google.protobuf.ByteString - getInstanceTemplateNameBytes() { + public com.google.protobuf.ByteString getInstanceTemplateNameBytes() { java.lang.Object ref = instanceTemplateName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instanceTemplateName_ = b; return b; } else { @@ -529,57 +571,64 @@ public java.lang.String getInstanceTemplateName() { } } /** + * + * *
      * Output only. The name of the Instance Template used for the Managed
      * Instance Group.
      * 
* * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The instanceTemplateName to set. * @return This builder for chaining. */ - public Builder setInstanceTemplateName( - java.lang.String value) { + public Builder setInstanceTemplateName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceTemplateName_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of the Instance Template used for the Managed
      * Instance Group.
      * 
* * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearInstanceTemplateName() { - + instanceTemplateName_ = getDefaultInstance().getInstanceTemplateName(); onChanged(); return this; } /** + * + * *
      * Output only. The name of the Instance Template used for the Managed
      * Instance Group.
      * 
* * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for instanceTemplateName to set. * @return This builder for chaining. */ - public Builder setInstanceTemplateNameBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceTemplateNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceTemplateName_ = value; onChanged(); return this; @@ -587,18 +636,21 @@ public Builder setInstanceTemplateNameBytes( private java.lang.Object instanceGroupManagerName_ = ""; /** + * + * *
      * Output only. The name of the Instance Group Manager for this group.
      * 
* - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The instanceGroupManagerName. */ public java.lang.String getInstanceGroupManagerName() { java.lang.Object ref = instanceGroupManagerName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupManagerName_ = s; return s; @@ -607,20 +659,22 @@ public java.lang.String getInstanceGroupManagerName() { } } /** + * + * *
      * Output only. The name of the Instance Group Manager for this group.
      * 
* - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for instanceGroupManagerName. */ - public com.google.protobuf.ByteString - getInstanceGroupManagerNameBytes() { + public com.google.protobuf.ByteString getInstanceGroupManagerNameBytes() { java.lang.Object ref = instanceGroupManagerName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instanceGroupManagerName_ = b; return b; } else { @@ -628,61 +682,71 @@ public java.lang.String getInstanceGroupManagerName() { } } /** + * + * *
      * Output only. The name of the Instance Group Manager for this group.
      * 
* - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The instanceGroupManagerName to set. * @return This builder for chaining. */ - public Builder setInstanceGroupManagerName( - java.lang.String value) { + public Builder setInstanceGroupManagerName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceGroupManagerName_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of the Instance Group Manager for this group.
      * 
* - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearInstanceGroupManagerName() { - + instanceGroupManagerName_ = getDefaultInstance().getInstanceGroupManagerName(); onChanged(); return this; } /** + * + * *
      * Output only. The name of the Instance Group Manager for this group.
      * 
* - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes for instanceGroupManagerName to set. * @return This builder for chaining. */ - public Builder setInstanceGroupManagerNameBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceGroupManagerNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceGroupManagerName_ = 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); } @@ -692,12 +756,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ManagedGroupConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ManagedGroupConfig) private static final com.google.cloud.dataproc.v1.ManagedGroupConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ManagedGroupConfig(); } @@ -706,27 +770,27 @@ public static com.google.cloud.dataproc.v1.ManagedGroupConfig getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ManagedGroupConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagedGroupConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -741,6 +805,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ManagedGroupConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java similarity index 59% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java index c3c62fe88813..d27f6e638be5 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java @@ -1,51 +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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface ManagedGroupConfigOrBuilder extends +public interface ManagedGroupConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ManagedGroupConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The name of the Instance Template used for the Managed
    * Instance Group.
    * 
* * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The instanceTemplateName. */ java.lang.String getInstanceTemplateName(); /** + * + * *
    * Output only. The name of the Instance Template used for the Managed
    * Instance Group.
    * 
* * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for instanceTemplateName. */ - com.google.protobuf.ByteString - getInstanceTemplateNameBytes(); + com.google.protobuf.ByteString getInstanceTemplateNameBytes(); /** + * + * *
    * Output only. The name of the Instance Group Manager for this group.
    * 
* - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The instanceGroupManagerName. */ java.lang.String getInstanceGroupManagerName(); /** + * + * *
    * Output only. The name of the Instance Group Manager for this group.
    * 
* - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for instanceGroupManagerName. */ - com.google.protobuf.ByteString - getInstanceGroupManagerNameBytes(); + com.google.protobuf.ByteString getInstanceGroupManagerNameBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java similarity index 62% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java index c20c8c10af79..c4cc9ad98220 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java @@ -1,63 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Specifies a Metastore configuration.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.MetastoreConfig} */ -public final class MetastoreConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MetastoreConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.MetastoreConfig) MetastoreConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MetastoreConfig.newBuilder() to construct. private MetastoreConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MetastoreConfig() { dataprocMetastoreService_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MetastoreConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.MetastoreConfig.class, com.google.cloud.dataproc.v1.MetastoreConfig.Builder.class); + com.google.cloud.dataproc.v1.MetastoreConfig.class, + com.google.cloud.dataproc.v1.MetastoreConfig.Builder.class); } public static final int DATAPROC_METASTORE_SERVICE_FIELD_NUMBER = 1; private volatile java.lang.Object dataprocMetastoreService_; /** + * + * *
    * Required. Resource name of an existing Dataproc Metastore service.
    * Example:
    * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
    * 
* - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The dataprocMetastoreService. */ @java.lang.Override @@ -66,31 +90,33 @@ public java.lang.String getDataprocMetastoreService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataprocMetastoreService_ = s; return s; } } /** + * + * *
    * Required. Resource name of an existing Dataproc Metastore service.
    * Example:
    * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
    * 
* - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for dataprocMetastoreService. */ @java.lang.Override - public com.google.protobuf.ByteString - getDataprocMetastoreServiceBytes() { + public com.google.protobuf.ByteString getDataprocMetastoreServiceBytes() { java.lang.Object ref = dataprocMetastoreService_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataprocMetastoreService_ = b; return b; } else { @@ -99,6 +125,7 @@ public java.lang.String getDataprocMetastoreService() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +137,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataprocMetastoreService_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataprocMetastoreService_); } @@ -125,7 +151,8 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataprocMetastoreService_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataprocMetastoreService_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataprocMetastoreService_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -135,15 +162,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.dataproc.v1.MetastoreConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.MetastoreConfig other = (com.google.cloud.dataproc.v1.MetastoreConfig) obj; + com.google.cloud.dataproc.v1.MetastoreConfig other = + (com.google.cloud.dataproc.v1.MetastoreConfig) obj; - if (!getDataprocMetastoreService() - .equals(other.getDataprocMetastoreService())) return false; + if (!getDataprocMetastoreService().equals(other.getDataprocMetastoreService())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,130 +189,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.MetastoreConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.MetastoreConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.MetastoreConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.MetastoreConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specifies a Metastore configuration.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.MetastoreConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.MetastoreConfig) com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.MetastoreConfig.class, com.google.cloud.dataproc.v1.MetastoreConfig.Builder.class); + com.google.cloud.dataproc.v1.MetastoreConfig.class, + com.google.cloud.dataproc.v1.MetastoreConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.MetastoreConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -295,9 +328,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; } @java.lang.Override @@ -316,7 +349,8 @@ public com.google.cloud.dataproc.v1.MetastoreConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.MetastoreConfig buildPartial() { - com.google.cloud.dataproc.v1.MetastoreConfig result = new com.google.cloud.dataproc.v1.MetastoreConfig(this); + com.google.cloud.dataproc.v1.MetastoreConfig result = + new com.google.cloud.dataproc.v1.MetastoreConfig(this); result.dataprocMetastoreService_ = dataprocMetastoreService_; onBuilt(); return result; @@ -326,38 +360,39 @@ public com.google.cloud.dataproc.v1.MetastoreConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.MetastoreConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.MetastoreConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.MetastoreConfig) other); } else { super.mergeFrom(other); return this; @@ -396,17 +431,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - dataprocMetastoreService_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + dataprocMetastoreService_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -419,20 +456,24 @@ public Builder mergeFrom( private java.lang.Object dataprocMetastoreService_ = ""; /** + * + * *
      * Required. Resource name of an existing Dataproc Metastore service.
      * Example:
      * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
      * 
* - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The dataprocMetastoreService. */ public java.lang.String getDataprocMetastoreService() { java.lang.Object ref = dataprocMetastoreService_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataprocMetastoreService_ = s; return s; @@ -441,22 +482,25 @@ public java.lang.String getDataprocMetastoreService() { } } /** + * + * *
      * Required. Resource name of an existing Dataproc Metastore service.
      * Example:
      * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
      * 
* - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for dataprocMetastoreService. */ - public com.google.protobuf.ByteString - getDataprocMetastoreServiceBytes() { + public com.google.protobuf.ByteString getDataprocMetastoreServiceBytes() { java.lang.Object ref = dataprocMetastoreService_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataprocMetastoreService_ = b; return b; } else { @@ -464,67 +508,80 @@ public java.lang.String getDataprocMetastoreService() { } } /** + * + * *
      * Required. Resource name of an existing Dataproc Metastore service.
      * Example:
      * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
      * 
* - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The dataprocMetastoreService to set. * @return This builder for chaining. */ - public Builder setDataprocMetastoreService( - java.lang.String value) { + public Builder setDataprocMetastoreService(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataprocMetastoreService_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of an existing Dataproc Metastore service.
      * Example:
      * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
      * 
* - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearDataprocMetastoreService() { - + dataprocMetastoreService_ = getDefaultInstance().getDataprocMetastoreService(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of an existing Dataproc Metastore service.
      * Example:
      * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
      * 
* - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for dataprocMetastoreService to set. * @return This builder for chaining. */ - public Builder setDataprocMetastoreServiceBytes( - com.google.protobuf.ByteString value) { + public Builder setDataprocMetastoreServiceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataprocMetastoreService_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -534,12 +591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.MetastoreConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.MetastoreConfig) private static final com.google.cloud.dataproc.v1.MetastoreConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.MetastoreConfig(); } @@ -548,27 +605,27 @@ public static com.google.cloud.dataproc.v1.MetastoreConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetastoreConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetastoreConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,6 +640,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.MetastoreConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java new file mode 100644 index 000000000000..c0c1d17bc9aa --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface MetastoreConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.MetastoreConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of an existing Dataproc Metastore service.
+   * Example:
+   * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
+   * 
+ * + * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataprocMetastoreService. + */ + java.lang.String getDataprocMetastoreService(); + /** + * + * + *
+   * Required. Resource name of an existing Dataproc Metastore service.
+   * Example:
+   * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
+   * 
+ * + * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataprocMetastoreService. + */ + com.google.protobuf.ByteString getDataprocMetastoreServiceBytes(); +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroup.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroup.java similarity index 64% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroup.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroup.java index 169426737810..94940c4d17df 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroup.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroup.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Dataproc Node Group.
  * **The Dataproc `NodeGroup` resource is not related to the
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.NodeGroup}
  */
-public final class NodeGroup extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class NodeGroup extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.NodeGroup)
     NodeGroupOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use NodeGroup.newBuilder() to construct.
   private NodeGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private NodeGroup() {
     name_ = "";
     roles_ = java.util.Collections.emptyList();
@@ -29,51 +47,54 @@ private NodeGroup() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NodeGroup();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       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.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroup_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_NodeGroup_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.NodeGroup.class, com.google.cloud.dataproc.v1.NodeGroup.Builder.class);
+            com.google.cloud.dataproc.v1.NodeGroup.class,
+            com.google.cloud.dataproc.v1.NodeGroup.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Node group roles.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.NodeGroup.Role} */ - public enum Role - implements com.google.protobuf.ProtocolMessageEnum { + public enum Role implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Required unspecified role.
      * 
@@ -82,6 +103,8 @@ public enum Role */ ROLE_UNSPECIFIED(0), /** + * + * *
      * Job drivers run on the node group.
      * 
@@ -93,6 +116,8 @@ public enum Role ; /** + * + * *
      * Required unspecified role.
      * 
@@ -101,6 +126,8 @@ public enum Role */ public static final int ROLE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Job drivers run on the node group.
      * 
@@ -109,7 +136,6 @@ public enum Role */ public static final int DRIVER_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -134,48 +160,47 @@ public static Role valueOf(int value) { */ public static Role forNumber(int value) { switch (value) { - case 0: return ROLE_UNSPECIFIED; - case 1: return DRIVER; - default: return null; + case 0: + return ROLE_UNSPECIFIED; + case 1: + return DRIVER; + 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< - Role> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Role findValueByNumber(int number) { - return Role.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Role findValueByNumber(int number) { + return Role.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataproc.v1.NodeGroup.getDescriptor().getEnumTypes().get(0); } private static final Role[] VALUES = values(); - public static Role valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Role 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; @@ -195,11 +220,14 @@ private Role(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The Node group [resource name](https://aip.dev/122).
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -208,29 +236,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; } } /** + * + * *
    * The Node group [resource name](https://aip.dev/122).
    * 
* * 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 { @@ -241,21 +269,30 @@ public java.lang.String getName() { public static final int ROLES_FIELD_NUMBER = 2; private java.util.List roles_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.dataproc.v1.NodeGroup.Role> roles_converter_ = + java.lang.Integer, com.google.cloud.dataproc.v1.NodeGroup.Role> + roles_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.dataproc.v1.NodeGroup.Role>() { public com.google.cloud.dataproc.v1.NodeGroup.Role convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.NodeGroup.Role result = com.google.cloud.dataproc.v1.NodeGroup.Role.valueOf(from); - return result == null ? com.google.cloud.dataproc.v1.NodeGroup.Role.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.NodeGroup.Role result = + com.google.cloud.dataproc.v1.NodeGroup.Role.valueOf(from); + return result == null + ? com.google.cloud.dataproc.v1.NodeGroup.Role.UNRECOGNIZED + : result; } }; /** + * + * *
    * Required. Node group roles.
    * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the roles. */ @java.lang.Override @@ -264,11 +301,16 @@ public java.util.List getRolesList( java.lang.Integer, com.google.cloud.dataproc.v1.NodeGroup.Role>(roles_, roles_converter_); } /** + * + * *
    * Required. Node group roles.
    * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of roles. */ @java.lang.Override @@ -276,11 +318,16 @@ public int getRolesCount() { return roles_.size(); } /** + * + * *
    * Required. Node group roles.
    * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The roles at the given index. */ @@ -289,24 +336,33 @@ public com.google.cloud.dataproc.v1.NodeGroup.Role getRoles(int index) { return roles_converter_.convert(roles_.get(index)); } /** + * + * *
    * Required. Node group roles.
    * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the enum numeric values on the wire for roles. */ @java.lang.Override - public java.util.List - getRolesValueList() { + public java.util.List getRolesValueList() { return roles_; } /** + * + * *
    * Required. Node group roles.
    * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of roles at the given index. */ @@ -314,16 +370,22 @@ public com.google.cloud.dataproc.v1.NodeGroup.Role getRoles(int index) { public int getRolesValue(int index) { return roles_.get(index); } + private int rolesMemoizedSerializedSize; public static final int NODE_GROUP_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.dataproc.v1.InstanceGroupConfig nodeGroupConfig_; /** + * + * *
    * Optional. The node group instance group configuration.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the nodeGroupConfig field is set. */ @java.lang.Override @@ -331,23 +393,34 @@ public boolean hasNodeGroupConfig() { return nodeGroupConfig_ != null; } /** + * + * *
    * Optional. The node group instance group configuration.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nodeGroupConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.InstanceGroupConfig getNodeGroupConfig() { - return nodeGroupConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : nodeGroupConfig_; + return nodeGroupConfig_ == null + ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() + : nodeGroupConfig_; } /** + * + * *
    * Optional. The node group instance group configuration.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getNodeGroupConfigOrBuilder() { @@ -355,24 +428,23 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getNodeGroupCon } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroup_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_NodeGroup_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -381,6 +453,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. Node group labels.
    * * Label **keys** must consist of from 1 to 63 characters and conform to
@@ -393,22 +467,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-
   @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();
   }
   /**
+   *
+   *
    * 
    * Optional. Node group labels.
    * * Label **keys** must consist of from 1 to 63 characters and conform to
@@ -422,11 +496,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. Node group labels.
    * * Label **keys** must consist of from 1 to 63 characters and conform to
@@ -440,16 +515,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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;
   }
   /**
+   *
+   *
    * 
    * Optional. Node group labels.
    * * Label **keys** must consist of from 1 to 63 characters and conform to
@@ -463,12 +538,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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();
     }
@@ -476,6 +550,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -487,8 +562,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     getSerializedSize();
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
@@ -503,12 +577,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (nodeGroupConfig_ != null) {
       output.writeMessage(3, getNodeGroupConfig());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        4);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
     getUnknownFields().writeTo(output);
   }
 
@@ -524,28 +594,27 @@ public int getSerializedSize() {
     {
       int dataSize = 0;
       for (int i = 0; i < roles_.size(); i++) {
-        dataSize += com.google.protobuf.CodedOutputStream
-          .computeEnumSizeNoTag(roles_.get(i));
+        dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(roles_.get(i));
       }
       size += dataSize;
-      if (!getRolesList().isEmpty()) {  size += 1;
-        size += com.google.protobuf.CodedOutputStream
-          .computeUInt32SizeNoTag(dataSize);
-      }rolesMemoizedSerializedSize = dataSize;
+      if (!getRolesList().isEmpty()) {
+        size += 1;
+        size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
+      }
+      rolesMemoizedSerializedSize = dataSize;
     }
     if (nodeGroupConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getNodeGroupConfig());
-    }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(4, labels__);
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNodeGroupConfig());
+    }
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -555,23 +624,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.dataproc.v1.NodeGroup)) {
       return super.equals(obj);
     }
     com.google.cloud.dataproc.v1.NodeGroup other = (com.google.cloud.dataproc.v1.NodeGroup) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (!roles_.equals(other.roles_)) return false;
     if (hasNodeGroupConfig() != other.hasNodeGroupConfig()) return false;
     if (hasNodeGroupConfig()) {
-      if (!getNodeGroupConfig()
-          .equals(other.getNodeGroupConfig())) return false;
+      if (!getNodeGroupConfig().equals(other.getNodeGroupConfig())) return false;
     }
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -602,97 +668,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.dataproc.v1.NodeGroup parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.dataproc.v1.NodeGroup parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.dataproc.v1.NodeGroup parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.NodeGroup parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.dataproc.v1.NodeGroup parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.NodeGroup parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.dataproc.v1.NodeGroup parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.NodeGroup parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.dataproc.v1.NodeGroup parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.NodeGroup 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.dataproc.v1.NodeGroup parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.NodeGroup parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.dataproc.v1.NodeGroup parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.dataproc.v1.NodeGroup prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Dataproc Node Group.
    * **The Dataproc `NodeGroup` resource is not related to the
@@ -702,55 +775,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.NodeGroup}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.NodeGroup)
       com.google.cloud.dataproc.v1.NodeGroupOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         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.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroup_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_NodeGroup_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.NodeGroup.class, com.google.cloud.dataproc.v1.NodeGroup.Builder.class);
+              com.google.cloud.dataproc.v1.NodeGroup.class,
+              com.google.cloud.dataproc.v1.NodeGroup.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.NodeGroup.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -769,9 +839,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor;
     }
 
     @java.lang.Override
@@ -790,7 +860,8 @@ public com.google.cloud.dataproc.v1.NodeGroup build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.NodeGroup buildPartial() {
-      com.google.cloud.dataproc.v1.NodeGroup result = new com.google.cloud.dataproc.v1.NodeGroup(this);
+      com.google.cloud.dataproc.v1.NodeGroup result =
+          new com.google.cloud.dataproc.v1.NodeGroup(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -813,38 +884,39 @@ public com.google.cloud.dataproc.v1.NodeGroup buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.NodeGroup) {
-        return mergeFrom((com.google.cloud.dataproc.v1.NodeGroup)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.NodeGroup) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -870,8 +942,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.NodeGroup other) {
       if (other.hasNodeGroupConfig()) {
         mergeNodeGroupConfig(other.getNodeGroupConfig());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -898,49 +969,55 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 16: {
-              int tmpRaw = input.readEnum();
-              ensureRolesIsMutable();
-              roles_.add(tmpRaw);
-              break;
-            } // case 16
-            case 18: {
-              int length = input.readRawVarint32();
-              int oldLimit = input.pushLimit(length);
-              while(input.getBytesUntilLimit() > 0) {
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 16:
+              {
                 int tmpRaw = input.readEnum();
                 ensureRolesIsMutable();
                 roles_.add(tmpRaw);
-              }
-              input.popLimit(oldLimit);
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getNodeGroupConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 16
+            case 18:
+              {
+                int length = input.readRawVarint32();
+                int oldLimit = input.pushLimit(length);
+                while (input.getBytesUntilLimit() > 0) {
+                  int tmpRaw = input.readEnum();
+                  ensureRolesIsMutable();
+                  roles_.add(tmpRaw);
+                }
+                input.popLimit(oldLimit);
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getNodeGroupConfigFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -950,22 +1027,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The Node group [resource name](https://aip.dev/122).
      * 
* * 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; @@ -974,20 +1054,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The Node group [resource name](https://aip.dev/122).
      * 
* * 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 { @@ -995,61 +1076,68 @@ public java.lang.String getName() { } } /** + * + * *
      * The Node group [resource name](https://aip.dev/122).
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The Node group [resource name](https://aip.dev/122).
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The Node group [resource name](https://aip.dev/122).
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private java.util.List roles_ = - java.util.Collections.emptyList(); + private java.util.List roles_ = java.util.Collections.emptyList(); + private void ensureRolesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { roles_ = new java.util.ArrayList(roles_); @@ -1057,11 +1145,16 @@ private void ensureRolesIsMutable() { } } /** + * + * *
      * Required. Node group roles.
      * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the roles. */ public java.util.List getRolesList() { @@ -1069,22 +1162,32 @@ public java.util.List getRolesList( java.lang.Integer, com.google.cloud.dataproc.v1.NodeGroup.Role>(roles_, roles_converter_); } /** + * + * *
      * Required. Node group roles.
      * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of roles. */ public int getRolesCount() { return roles_.size(); } /** + * + * *
      * Required. Node group roles.
      * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The roles at the given index. */ @@ -1092,17 +1195,21 @@ public com.google.cloud.dataproc.v1.NodeGroup.Role getRoles(int index) { return roles_converter_.convert(roles_.get(index)); } /** + * + * *
      * Required. Node group roles.
      * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index to set the value at. * @param value The roles to set. * @return This builder for chaining. */ - public Builder setRoles( - int index, com.google.cloud.dataproc.v1.NodeGroup.Role value) { + public Builder setRoles(int index, com.google.cloud.dataproc.v1.NodeGroup.Role value) { if (value == null) { throw new NullPointerException(); } @@ -1112,11 +1219,16 @@ public Builder setRoles( return this; } /** + * + * *
      * Required. Node group roles.
      * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The roles to add. * @return This builder for chaining. */ @@ -1130,11 +1242,16 @@ public Builder addRoles(com.google.cloud.dataproc.v1.NodeGroup.Role value) { return this; } /** + * + * *
      * Required. Node group roles.
      * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param values The roles to add. * @return This builder for chaining. */ @@ -1148,11 +1265,16 @@ public Builder addAllRoles( return this; } /** + * + * *
      * Required. Node group roles.
      * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearRoles() { @@ -1162,23 +1284,32 @@ public Builder clearRoles() { return this; } /** + * + * *
      * Required. Node group roles.
      * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the enum numeric values on the wire for roles. */ - public java.util.List - getRolesValueList() { + public java.util.List getRolesValueList() { return java.util.Collections.unmodifiableList(roles_); } /** + * + * *
      * Required. Node group roles.
      * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of roles at the given index. */ @@ -1186,28 +1317,37 @@ public int getRolesValue(int index) { return roles_.get(index); } /** + * + * *
      * Required. Node group roles.
      * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for roles to set. * @return This builder for chaining. */ - public Builder setRolesValue( - int index, int value) { + public Builder setRolesValue(int index, int value) { ensureRolesIsMutable(); roles_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. Node group roles.
      * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for roles to add. * @return This builder for chaining. */ @@ -1218,16 +1358,20 @@ public Builder addRolesValue(int value) { return this; } /** + * + * *
      * Required. Node group roles.
      * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param values The enum numeric values on the wire for roles to add. * @return This builder for chaining. */ - public Builder addAllRolesValue( - java.lang.Iterable values) { + public Builder addAllRolesValue(java.lang.Iterable values) { ensureRolesIsMutable(); for (int value : values) { roles_.add(value); @@ -1238,39 +1382,58 @@ public Builder addAllRolesValue( private com.google.cloud.dataproc.v1.InstanceGroupConfig nodeGroupConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> nodeGroupConfigBuilder_; + com.google.cloud.dataproc.v1.InstanceGroupConfig, + com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> + nodeGroupConfigBuilder_; /** + * + * *
      * Optional. The node group instance group configuration.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the nodeGroupConfig field is set. */ public boolean hasNodeGroupConfig() { return nodeGroupConfigBuilder_ != null || nodeGroupConfig_ != null; } /** + * + * *
      * Optional. The node group instance group configuration.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nodeGroupConfig. */ public com.google.cloud.dataproc.v1.InstanceGroupConfig getNodeGroupConfig() { if (nodeGroupConfigBuilder_ == null) { - return nodeGroupConfig_ == null ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : nodeGroupConfig_; + return nodeGroupConfig_ == null + ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() + : nodeGroupConfig_; } else { return nodeGroupConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The node group instance group configuration.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNodeGroupConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (nodeGroupConfigBuilder_ == null) { @@ -1286,11 +1449,15 @@ public Builder setNodeGroupConfig(com.google.cloud.dataproc.v1.InstanceGroupConf return this; } /** + * + * *
      * Optional. The node group instance group configuration.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNodeGroupConfig( com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder builderForValue) { @@ -1304,17 +1471,23 @@ public Builder setNodeGroupConfig( return this; } /** + * + * *
      * Optional. The node group instance group configuration.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeNodeGroupConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (nodeGroupConfigBuilder_ == null) { if (nodeGroupConfig_ != null) { nodeGroupConfig_ = - com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder(nodeGroupConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder(nodeGroupConfig_) + .mergeFrom(value) + .buildPartial(); } else { nodeGroupConfig_ = value; } @@ -1326,11 +1499,15 @@ public Builder mergeNodeGroupConfig(com.google.cloud.dataproc.v1.InstanceGroupCo return this; } /** + * + * *
      * Optional. The node group instance group configuration.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearNodeGroupConfig() { if (nodeGroupConfigBuilder_ == null) { @@ -1344,69 +1521,84 @@ public Builder clearNodeGroupConfig() { return this; } /** + * + * *
      * Optional. The node group instance group configuration.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getNodeGroupConfigBuilder() { - + onChanged(); return getNodeGroupConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The node group instance group configuration.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getNodeGroupConfigOrBuilder() { if (nodeGroupConfigBuilder_ != null) { return nodeGroupConfigBuilder_.getMessageOrBuilder(); } else { - return nodeGroupConfig_ == null ? - com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() : nodeGroupConfig_; + return nodeGroupConfig_ == null + ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() + : nodeGroupConfig_; } } /** + * + * *
      * Optional. The node group instance group configuration.
      * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> + com.google.cloud.dataproc.v1.InstanceGroupConfig, + com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> getNodeGroupConfigFieldBuilder() { if (nodeGroupConfigBuilder_ == null) { - nodeGroupConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>( - getNodeGroupConfig(), - getParentForChildren(), - isClean()); + nodeGroupConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.InstanceGroupConfig, + com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>( + getNodeGroupConfig(), getParentForChildren(), isClean()); nodeGroupConfig_ = null; } return nodeGroupConfigBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1418,6 +1610,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. Node group labels.
      * * Label **keys** must consist of from 1 to 63 characters and conform to
@@ -1430,22 +1624,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-
     @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();
     }
     /**
+     *
+     *
      * 
      * Optional. Node group labels.
      * * Label **keys** must consist of from 1 to 63 characters and conform to
@@ -1459,11 +1653,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Node group labels.
      * * Label **keys** must consist of from 1 to 63 characters and conform to
@@ -1477,16 +1672,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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;
     }
     /**
+     *
+     *
      * 
      * Optional. Node group labels.
      * * Label **keys** must consist of from 1 to 63 characters and conform to
@@ -1500,12 +1696,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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();
       }
@@ -1513,11 +1708,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Node group labels.
      * * Label **keys** must consist of from 1 to 63 characters and conform to
@@ -1530,23 +1726,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    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();
     }
     /**
+     *
+     *
      * 
      * Optional. Node group labels.
      * * Label **keys** must consist of from 1 to 63 characters and conform to
@@ -1559,19 +1753,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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;
     }
     /**
+     *
+     *
      * 
      * Optional. Node group labels.
      * * Label **keys** must consist of from 1 to 63 characters and conform to
@@ -1584,16 +1779,13 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().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);
     }
 
@@ -1603,12 +1795,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.NodeGroup)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.NodeGroup)
   private static final com.google.cloud.dataproc.v1.NodeGroup DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.NodeGroup();
   }
@@ -1617,27 +1809,27 @@ public static com.google.cloud.dataproc.v1.NodeGroup getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public NodeGroup parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public NodeGroup parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1652,6 +1844,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.dataproc.v1.NodeGroup getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java
similarity index 70%
rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java
rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java
index ae39e507149d..3a7d9e8a2b25 100644
--- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java
+++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/dataproc/v1/clusters.proto
 
 package com.google.cloud.dataproc.v1;
 
 /**
+ *
+ *
  * 
  * Node Group Affinity for clusters using sole-tenant node groups.
  * **The Dataproc `NodeGroupAffinity` resource is not related to the
@@ -12,47 +29,51 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.NodeGroupAffinity}
  */
-public final class NodeGroupAffinity extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class NodeGroupAffinity extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.NodeGroupAffinity)
     NodeGroupAffinityOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use NodeGroupAffinity.newBuilder() to construct.
   private NodeGroupAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private NodeGroupAffinity() {
     nodeGroupUri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NodeGroupAffinity();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.NodeGroupAffinity.class, com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder.class);
+            com.google.cloud.dataproc.v1.NodeGroupAffinity.class,
+            com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder.class);
   }
 
   public static final int NODE_GROUP_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object nodeGroupUri_;
   /**
+   *
+   *
    * 
    * Required. The URI of a
    * sole-tenant [node group
@@ -65,6 +86,7 @@ protected java.lang.Object newInstance(
    * 
* * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The nodeGroupUri. */ @java.lang.Override @@ -73,14 +95,15 @@ public java.lang.String getNodeGroupUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeGroupUri_ = s; return s; } } /** + * + * *
    * Required. The URI of a
    * sole-tenant [node group
@@ -93,16 +116,15 @@ public java.lang.String getNodeGroupUri() {
    * 
* * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for nodeGroupUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getNodeGroupUriBytes() { + public com.google.protobuf.ByteString getNodeGroupUriBytes() { java.lang.Object ref = nodeGroupUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeGroupUri_ = b; return b; } else { @@ -111,6 +133,7 @@ public java.lang.String getNodeGroupUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -122,8 +145,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroupUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeGroupUri_); } @@ -147,15 +169,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.dataproc.v1.NodeGroupAffinity)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.NodeGroupAffinity other = (com.google.cloud.dataproc.v1.NodeGroupAffinity) obj; + com.google.cloud.dataproc.v1.NodeGroupAffinity other = + (com.google.cloud.dataproc.v1.NodeGroupAffinity) obj; - if (!getNodeGroupUri() - .equals(other.getNodeGroupUri())) return false; + if (!getNodeGroupUri().equals(other.getNodeGroupUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -174,97 +196,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.NodeGroupAffinity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Node Group Affinity for clusters using sole-tenant node groups.
    * **The Dataproc `NodeGroupAffinity` resource is not related to the
@@ -273,33 +302,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.NodeGroupAffinity}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.NodeGroupAffinity)
       com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.NodeGroupAffinity.class, com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder.class);
+              com.google.cloud.dataproc.v1.NodeGroupAffinity.class,
+              com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.NodeGroupAffinity.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -309,9 +337,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor;
     }
 
     @java.lang.Override
@@ -330,7 +358,8 @@ public com.google.cloud.dataproc.v1.NodeGroupAffinity build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.NodeGroupAffinity buildPartial() {
-      com.google.cloud.dataproc.v1.NodeGroupAffinity result = new com.google.cloud.dataproc.v1.NodeGroupAffinity(this);
+      com.google.cloud.dataproc.v1.NodeGroupAffinity result =
+          new com.google.cloud.dataproc.v1.NodeGroupAffinity(this);
       result.nodeGroupUri_ = nodeGroupUri_;
       onBuilt();
       return result;
@@ -340,38 +369,39 @@ public com.google.cloud.dataproc.v1.NodeGroupAffinity buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.NodeGroupAffinity) {
-        return mergeFrom((com.google.cloud.dataproc.v1.NodeGroupAffinity)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.NodeGroupAffinity) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -410,17 +440,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              nodeGroupUri_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                nodeGroupUri_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -433,6 +465,8 @@ public Builder mergeFrom(
 
     private java.lang.Object nodeGroupUri_ = "";
     /**
+     *
+     *
      * 
      * Required. The URI of a
      * sole-tenant [node group
@@ -445,13 +479,13 @@ public Builder mergeFrom(
      * 
* * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The nodeGroupUri. */ public java.lang.String getNodeGroupUri() { java.lang.Object ref = nodeGroupUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeGroupUri_ = s; return s; @@ -460,6 +494,8 @@ public java.lang.String getNodeGroupUri() { } } /** + * + * *
      * Required. The URI of a
      * sole-tenant [node group
@@ -472,15 +508,14 @@ public java.lang.String getNodeGroupUri() {
      * 
* * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for nodeGroupUri. */ - public com.google.protobuf.ByteString - getNodeGroupUriBytes() { + public com.google.protobuf.ByteString getNodeGroupUriBytes() { java.lang.Object ref = nodeGroupUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeGroupUri_ = b; return b; } else { @@ -488,6 +523,8 @@ public java.lang.String getNodeGroupUri() { } } /** + * + * *
      * Required. The URI of a
      * sole-tenant [node group
@@ -500,20 +537,22 @@ public java.lang.String getNodeGroupUri() {
      * 
* * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The nodeGroupUri to set. * @return This builder for chaining. */ - public Builder setNodeGroupUri( - java.lang.String value) { + public Builder setNodeGroupUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeGroupUri_ = value; onChanged(); return this; } /** + * + * *
      * Required. The URI of a
      * sole-tenant [node group
@@ -526,15 +565,18 @@ public Builder setNodeGroupUri(
      * 
* * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearNodeGroupUri() { - + nodeGroupUri_ = getDefaultInstance().getNodeGroupUri(); onChanged(); return this; } /** + * + * *
      * Required. The URI of a
      * sole-tenant [node group
@@ -547,23 +589,23 @@ public Builder clearNodeGroupUri() {
      * 
* * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for nodeGroupUri to set. * @return This builder for chaining. */ - public Builder setNodeGroupUriBytes( - com.google.protobuf.ByteString value) { + public Builder setNodeGroupUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeGroupUri_ = 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); } @@ -573,12 +615,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.NodeGroupAffinity) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.NodeGroupAffinity) private static final com.google.cloud.dataproc.v1.NodeGroupAffinity DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.NodeGroupAffinity(); } @@ -587,27 +629,27 @@ public static com.google.cloud.dataproc.v1.NodeGroupAffinity getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeGroupAffinity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeGroupAffinity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -622,6 +664,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.NodeGroupAffinity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java similarity index 68% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java index ad0184ef279f..5ec586551371 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface NodeGroupAffinityOrBuilder extends +public interface NodeGroupAffinityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.NodeGroupAffinity) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The URI of a
    * sole-tenant [node group
@@ -20,10 +38,13 @@ public interface NodeGroupAffinityOrBuilder extends
    * 
* * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The nodeGroupUri. */ java.lang.String getNodeGroupUri(); /** + * + * *
    * Required. The URI of a
    * sole-tenant [node group
@@ -36,8 +57,8 @@ public interface NodeGroupAffinityOrBuilder extends
    * 
* * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for nodeGroupUri. */ - com.google.protobuf.ByteString - getNodeGroupUriBytes(); + com.google.protobuf.ByteString getNodeGroupUriBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupName.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupName.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupName.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupName.java diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadata.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadata.java similarity index 64% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadata.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadata.java index 18b83f9aa8ec..e7e2ad257553 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadata.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/operations.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Metadata describing the node group operation.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.NodeGroupOperationMetadata} */ -public final class NodeGroupOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NodeGroupOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.NodeGroupOperationMetadata) NodeGroupOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NodeGroupOperationMetadata.newBuilder() to construct. private NodeGroupOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NodeGroupOperationMetadata() { nodeGroupId_ = ""; clusterUuid_ = ""; @@ -30,51 +48,55 @@ private NodeGroupOperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NodeGroupOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_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 7: 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.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_fieldAccessorTable + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.class, com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.Builder.class); + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.class, + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.Builder.class); } /** + * + * *
    * Operation type for node group resources.
    * 
* - * Protobuf enum {@code google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType} + * Protobuf enum {@code + * google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType} */ - public enum NodeGroupOperationType - implements com.google.protobuf.ProtocolMessageEnum { + public enum NodeGroupOperationType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Node group operation type is unknown.
      * 
@@ -83,6 +105,8 @@ public enum NodeGroupOperationType */ NODE_GROUP_OPERATION_TYPE_UNSPECIFIED(0), /** + * + * *
      * Create node group operation type.
      * 
@@ -91,6 +115,8 @@ public enum NodeGroupOperationType */ CREATE(1), /** + * + * *
      * Update node group operation type.
      * 
@@ -99,6 +125,8 @@ public enum NodeGroupOperationType */ UPDATE(2), /** + * + * *
      * Delete node group operation type.
      * 
@@ -107,6 +135,8 @@ public enum NodeGroupOperationType */ DELETE(3), /** + * + * *
      * Resize node group operation type.
      * 
@@ -118,6 +148,8 @@ public enum NodeGroupOperationType ; /** + * + * *
      * Node group operation type is unknown.
      * 
@@ -126,6 +158,8 @@ public enum NodeGroupOperationType */ public static final int NODE_GROUP_OPERATION_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Create node group operation type.
      * 
@@ -134,6 +168,8 @@ public enum NodeGroupOperationType */ public static final int CREATE_VALUE = 1; /** + * + * *
      * Update node group operation type.
      * 
@@ -142,6 +178,8 @@ public enum NodeGroupOperationType */ public static final int UPDATE_VALUE = 2; /** + * + * *
      * Delete node group operation type.
      * 
@@ -150,6 +188,8 @@ public enum NodeGroupOperationType */ public static final int DELETE_VALUE = 3; /** + * + * *
      * Resize node group operation type.
      * 
@@ -158,7 +198,6 @@ public enum NodeGroupOperationType */ public static final int RESIZE_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -183,12 +222,18 @@ public static NodeGroupOperationType valueOf(int value) { */ public static NodeGroupOperationType forNumber(int value) { switch (value) { - case 0: return NODE_GROUP_OPERATION_TYPE_UNSPECIFIED; - case 1: return CREATE; - case 2: return UPDATE; - case 3: return DELETE; - case 4: return RESIZE; - default: return null; + case 0: + return NODE_GROUP_OPERATION_TYPE_UNSPECIFIED; + case 1: + return CREATE; + case 2: + return UPDATE; + case 3: + return DELETE; + case 4: + return RESIZE; + default: + return null; } } @@ -196,29 +241,31 @@ public static NodeGroupOperationType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - NodeGroupOperationType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public NodeGroupOperationType findValueByNumber(int number) { - return NodeGroupOperationType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NodeGroupOperationType findValueByNumber(int number) { + return NodeGroupOperationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.getDescriptor() + .getEnumTypes() + .get(0); } private static final NodeGroupOperationType[] VALUES = values(); @@ -226,8 +273,7 @@ public NodeGroupOperationType findValueByNumber(int number) { public static NodeGroupOperationType 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; @@ -247,11 +293,14 @@ private NodeGroupOperationType(int value) { public static final int NODE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object nodeGroupId_; /** + * + * *
    * Output only. Node group ID for the operation.
    * 
* * string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeGroupId. */ @java.lang.Override @@ -260,29 +309,29 @@ public java.lang.String getNodeGroupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeGroupId_ = s; return s; } } /** + * + * *
    * Output only. Node group ID for the operation.
    * 
* * string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nodeGroupId. */ @java.lang.Override - public com.google.protobuf.ByteString - getNodeGroupIdBytes() { + public com.google.protobuf.ByteString getNodeGroupIdBytes() { java.lang.Object ref = nodeGroupId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeGroupId_ = b; return b; } else { @@ -293,11 +342,14 @@ public java.lang.String getNodeGroupId() { public static final int CLUSTER_UUID_FIELD_NUMBER = 2; private volatile java.lang.Object clusterUuid_; /** + * + * *
    * Output only. Cluster UUID associated with the node group operation.
    * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterUuid. */ @java.lang.Override @@ -306,29 +358,29 @@ public java.lang.String getClusterUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; } } /** + * + * *
    * Output only. Cluster UUID associated with the node group operation.
    * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterUuid. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterUuidBytes() { + public com.google.protobuf.ByteString getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -339,11 +391,16 @@ public java.lang.String getClusterUuid() { public static final int STATUS_FIELD_NUMBER = 3; private com.google.cloud.dataproc.v1.ClusterOperationStatus status_; /** + * + * *
    * Output only. Current operation status.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the status field is set. */ @java.lang.Override @@ -351,23 +408,34 @@ public boolean hasStatus() { return status_ != null; } /** + * + * *
    * Output only. Current operation status.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatus() { - return status_ == null ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() + : status_; } /** + * + * *
    * Output only. Current operation status.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusOrBuilder() { @@ -377,56 +445,77 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusOrB public static final int STATUS_HISTORY_FIELD_NUMBER = 4; private java.util.List statusHistory_; /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getStatusHistoryList() { + public java.util.List + getStatusHistoryList() { return statusHistory_; } /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getStatusHistoryOrBuilderList() { return statusHistory_; } /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getStatusHistoryCount() { return statusHistory_.size(); } /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatusHistory(int index) { return statusHistory_.get(index); } /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder( @@ -437,38 +526,59 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHis public static final int OPERATION_TYPE_FIELD_NUMBER = 5; private int operationType_; /** + * + * *
    * The operation type.
    * 
* - * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * + * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * + * * @return The enum numeric value on the wire for operationType. */ - @java.lang.Override public int getOperationTypeValue() { + @java.lang.Override + public int getOperationTypeValue() { return operationType_; } /** + * + * *
    * The operation type.
    * 
* - * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * + * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * + * * @return The operationType. */ - @java.lang.Override public com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType getOperationType() { + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType + getOperationType() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType result = com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType.valueOf(operationType_); - return result == null ? com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType result = + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType.valueOf( + operationType_); + return result == null + ? com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType + .UNRECOGNIZED + : result; } public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** + * + * *
    * Output only. Short description of operation.
    * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The description. */ @java.lang.Override @@ -477,29 +587,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Output only. Short description of operation.
    * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -508,24 +618,23 @@ public java.lang.String getDescription() { } public static final int LABELS_FIELD_NUMBER = 7; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -534,28 +643,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Output only. Labels associated with the operation.
    * 
* * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - @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(); } /** + * + * *
    * Output only. Labels associated with the operation.
    * 
@@ -563,11 +674,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Output only. Labels associated with the operation.
    * 
@@ -575,16 +687,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @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; } /** + * + * *
    * Output only. Labels associated with the operation.
    * 
@@ -592,12 +704,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @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(); } @@ -607,34 +718,42 @@ public java.lang.String getLabelsOrThrow( public static final int WARNINGS_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList warnings_; /** + * + * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList - getWarningsList() { + public com.google.protobuf.ProtocolStringList getWarningsList() { return warnings_; } /** + * + * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** + * + * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -642,20 +761,23 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** + * + * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString - getWarningsBytes(int index) { + public com.google.protobuf.ByteString getWarningsBytes(int index) { return warnings_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -667,8 +789,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeGroupId_); } @@ -681,18 +802,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < statusHistory_.size(); i++) { output.writeMessage(4, statusHistory_.get(i)); } - if (operationType_ != com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType.NODE_GROUP_OPERATION_TYPE_UNSPECIFIED.getNumber()) { + if (operationType_ + != com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType + .NODE_GROUP_OPERATION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, operationType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); for (int i = 0; i < warnings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, warnings_.getRaw(i)); } @@ -712,29 +832,29 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterUuid_); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStatus()); } for (int i = 0; i < statusHistory_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, statusHistory_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, statusHistory_.get(i)); } - if (operationType_ != com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType.NODE_GROUP_OPERATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, operationType_); + if (operationType_ + != com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType + .NODE_GROUP_OPERATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, operationType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); } - 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(7, labels__); + 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(7, labels__); } { int dataSize = 0; @@ -752,31 +872,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.NodeGroupOperationMetadata)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.NodeGroupOperationMetadata other = (com.google.cloud.dataproc.v1.NodeGroupOperationMetadata) obj; + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata other = + (com.google.cloud.dataproc.v1.NodeGroupOperationMetadata) obj; - if (!getNodeGroupId() - .equals(other.getNodeGroupId())) return false; - if (!getClusterUuid() - .equals(other.getClusterUuid())) return false; + if (!getNodeGroupId().equals(other.getNodeGroupId())) return false; + if (!getClusterUuid().equals(other.getClusterUuid())) 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 (!getStatusHistoryList() - .equals(other.getStatusHistoryList())) return false; + if (!getStatusHistoryList().equals(other.getStatusHistoryList())) return false; if (operationType_ != other.operationType_) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getWarningsList() - .equals(other.getWarningsList())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getWarningsList().equals(other.getWarningsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -818,151 +932,156 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata 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.dataproc.v1.NodeGroupOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.NodeGroupOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata describing the node group operation.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.NodeGroupOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.NodeGroupOperationMetadata) com.google.cloud.dataproc.v1.NodeGroupOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 7: 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 7: 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.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_fieldAccessorTable + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.class, com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.Builder.class); + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.class, + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.Builder.class); } // Construct using com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -994,9 +1113,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.OperationsProto.internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor; } @java.lang.Override @@ -1015,7 +1134,8 @@ public com.google.cloud.dataproc.v1.NodeGroupOperationMetadata build() { @java.lang.Override public com.google.cloud.dataproc.v1.NodeGroupOperationMetadata buildPartial() { - com.google.cloud.dataproc.v1.NodeGroupOperationMetadata result = new com.google.cloud.dataproc.v1.NodeGroupOperationMetadata(this); + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata result = + new com.google.cloud.dataproc.v1.NodeGroupOperationMetadata(this); int from_bitField0_ = bitField0_; result.nodeGroupId_ = nodeGroupId_; result.clusterUuid_ = clusterUuid_; @@ -1050,38 +1170,39 @@ public com.google.cloud.dataproc.v1.NodeGroupOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.NodeGroupOperationMetadata) { - return mergeFrom((com.google.cloud.dataproc.v1.NodeGroupOperationMetadata)other); + return mergeFrom((com.google.cloud.dataproc.v1.NodeGroupOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -1089,7 +1210,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.NodeGroupOperationMetadata other) { - if (other == com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.getDefaultInstance()) + return this; if (!other.getNodeGroupId().isEmpty()) { nodeGroupId_ = other.nodeGroupId_; onChanged(); @@ -1119,9 +1241,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.NodeGroupOperationMetadata statusHistoryBuilder_ = null; statusHistory_ = other.statusHistory_; bitField0_ = (bitField0_ & ~0x00000001); - statusHistoryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStatusHistoryFieldBuilder() : null; + statusHistoryBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStatusHistoryFieldBuilder() + : null; } else { statusHistoryBuilder_.addAllMessages(other.statusHistory_); } @@ -1134,8 +1257,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.NodeGroupOperationMetadata description_ = other.description_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.warnings_.isEmpty()) { if (warnings_.isEmpty()) { warnings_ = other.warnings_; @@ -1172,66 +1294,75 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - nodeGroupId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - clusterUuid_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 34: { - com.google.cloud.dataproc.v1.ClusterOperationStatus m = - input.readMessage( - com.google.cloud.dataproc.v1.ClusterOperationStatus.parser(), - extensionRegistry); - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(m); - } else { - statusHistoryBuilder_.addMessage(m); - } - break; - } // case 34 - case 40: { - operationType_ = input.readEnum(); - - break; - } // case 40 - case 50: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 58 - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - ensureWarningsIsMutable(); - warnings_.add(s); - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + nodeGroupId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + clusterUuid_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + com.google.cloud.dataproc.v1.ClusterOperationStatus m = + input.readMessage( + com.google.cloud.dataproc.v1.ClusterOperationStatus.parser(), + extensionRegistry); + if (statusHistoryBuilder_ == null) { + ensureStatusHistoryIsMutable(); + statusHistory_.add(m); + } else { + statusHistoryBuilder_.addMessage(m); + } + break; + } // case 34 + case 40: + { + operationType_ = input.readEnum(); + + break; + } // case 40 + case 50: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureWarningsIsMutable(); + warnings_.add(s); + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1241,22 +1372,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object nodeGroupId_ = ""; /** + * + * *
      * Output only. Node group ID for the operation.
      * 
* * string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeGroupId. */ public java.lang.String getNodeGroupId() { java.lang.Object ref = nodeGroupId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeGroupId_ = s; return s; @@ -1265,20 +1399,21 @@ public java.lang.String getNodeGroupId() { } } /** + * + * *
      * Output only. Node group ID for the operation.
      * 
* * string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nodeGroupId. */ - public com.google.protobuf.ByteString - getNodeGroupIdBytes() { + public com.google.protobuf.ByteString getNodeGroupIdBytes() { java.lang.Object ref = nodeGroupId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeGroupId_ = b; return b; } else { @@ -1286,54 +1421,61 @@ public java.lang.String getNodeGroupId() { } } /** + * + * *
      * Output only. Node group ID for the operation.
      * 
* * string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The nodeGroupId to set. * @return This builder for chaining. */ - public Builder setNodeGroupId( - java.lang.String value) { + public Builder setNodeGroupId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeGroupId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Node group ID for the operation.
      * 
* * string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNodeGroupId() { - + nodeGroupId_ = getDefaultInstance().getNodeGroupId(); onChanged(); return this; } /** + * + * *
      * Output only. Node group ID for the operation.
      * 
* * string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for nodeGroupId to set. * @return This builder for chaining. */ - public Builder setNodeGroupIdBytes( - com.google.protobuf.ByteString value) { + public Builder setNodeGroupIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeGroupId_ = value; onChanged(); return this; @@ -1341,18 +1483,20 @@ public Builder setNodeGroupIdBytes( private java.lang.Object clusterUuid_ = ""; /** + * + * *
      * Output only. Cluster UUID associated with the node group operation.
      * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterUuid. */ public java.lang.String getClusterUuid() { java.lang.Object ref = clusterUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; @@ -1361,20 +1505,21 @@ public java.lang.String getClusterUuid() { } } /** + * + * *
      * Output only. Cluster UUID associated with the node group operation.
      * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterUuid. */ - public com.google.protobuf.ByteString - getClusterUuidBytes() { + public com.google.protobuf.ByteString getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -1382,54 +1527,61 @@ public java.lang.String getClusterUuid() { } } /** + * + * *
      * Output only. Cluster UUID associated with the node group operation.
      * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuid( - java.lang.String value) { + public Builder setClusterUuid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterUuid_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Cluster UUID associated with the node group operation.
      * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClusterUuid() { - + clusterUuid_ = getDefaultInstance().getClusterUuid(); onChanged(); return this; } /** + * + * *
      * Output only. Cluster UUID associated with the node group operation.
      * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuidBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUuid_ = value; onChanged(); return this; @@ -1437,39 +1589,58 @@ public Builder setClusterUuidBytes( private com.google.cloud.dataproc.v1.ClusterOperationStatus status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> statusBuilder_; + com.google.cloud.dataproc.v1.ClusterOperationStatus, + com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, + com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> + statusBuilder_; /** + * + * *
      * Output only. Current operation status.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** + * + * *
      * Output only. Current operation status.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatus() { if (statusBuilder_ == null) { - return status_ == null ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() + : status_; } else { return statusBuilder_.getMessage(); } } /** + * + * *
      * Output only. Current operation status.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStatus(com.google.cloud.dataproc.v1.ClusterOperationStatus value) { if (statusBuilder_ == null) { @@ -1485,11 +1656,15 @@ public Builder setStatus(com.google.cloud.dataproc.v1.ClusterOperationStatus val return this; } /** + * + * *
      * Output only. Current operation status.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStatus( com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { @@ -1503,17 +1678,23 @@ public Builder setStatus( return this; } /** + * + * *
      * Output only. Current operation status.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStatus(com.google.cloud.dataproc.v1.ClusterOperationStatus value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = - com.google.cloud.dataproc.v1.ClusterOperationStatus.newBuilder(status_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.ClusterOperationStatus.newBuilder(status_) + .mergeFrom(value) + .buildPartial(); } else { status_ = value; } @@ -1525,11 +1706,15 @@ public Builder mergeStatus(com.google.cloud.dataproc.v1.ClusterOperationStatus v return this; } /** + * + * *
      * Output only. Current operation status.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStatus() { if (statusBuilder_ == null) { @@ -1543,73 +1728,100 @@ public Builder clearStatus() { return this; } /** + * + * *
      * Output only. Current operation status.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder getStatusBuilder() { - + onChanged(); return getStatusFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Current operation status.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? - com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() + : status_; } } /** + * + * *
      * Output only. Current operation status.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> + com.google.cloud.dataproc.v1.ClusterOperationStatus, + com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, + com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterOperationStatus, + com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, + com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder>( + getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private java.util.List statusHistory_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStatusHistoryIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - statusHistory_ = new java.util.ArrayList(statusHistory_); + statusHistory_ = + new java.util.ArrayList( + statusHistory_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> statusHistoryBuilder_; + com.google.cloud.dataproc.v1.ClusterOperationStatus, + com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, + com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> + statusHistoryBuilder_; /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getStatusHistoryList() { + public java.util.List + getStatusHistoryList() { if (statusHistoryBuilder_ == null) { return java.util.Collections.unmodifiableList(statusHistory_); } else { @@ -1617,11 +1829,15 @@ public java.util.List getSt } } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getStatusHistoryCount() { if (statusHistoryBuilder_ == null) { @@ -1631,11 +1847,15 @@ public int getStatusHistoryCount() { } } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatusHistory(int index) { if (statusHistoryBuilder_ == null) { @@ -1645,11 +1865,15 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatusHistory(int } } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStatusHistory( int index, com.google.cloud.dataproc.v1.ClusterOperationStatus value) { @@ -1666,11 +1890,15 @@ public Builder setStatusHistory( return this; } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStatusHistory( int index, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { @@ -1684,11 +1912,15 @@ public Builder setStatusHistory( return this; } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStatusHistory(com.google.cloud.dataproc.v1.ClusterOperationStatus value) { if (statusHistoryBuilder_ == null) { @@ -1704,11 +1936,15 @@ public Builder addStatusHistory(com.google.cloud.dataproc.v1.ClusterOperationSta return this; } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStatusHistory( int index, com.google.cloud.dataproc.v1.ClusterOperationStatus value) { @@ -1725,11 +1961,15 @@ public Builder addStatusHistory( return this; } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStatusHistory( com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { @@ -1743,11 +1983,15 @@ public Builder addStatusHistory( return this; } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStatusHistory( int index, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { @@ -1761,18 +2005,21 @@ public Builder addStatusHistory( return this; } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllStatusHistory( java.lang.Iterable values) { if (statusHistoryBuilder_ == null) { ensureStatusHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, statusHistory_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statusHistory_); onChanged(); } else { statusHistoryBuilder_.addAllMessages(values); @@ -1780,11 +2027,15 @@ public Builder addAllStatusHistory( return this; } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStatusHistory() { if (statusHistoryBuilder_ == null) { @@ -1797,11 +2048,15 @@ public Builder clearStatusHistory() { return this; } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeStatusHistory(int index) { if (statusHistoryBuilder_ == null) { @@ -1814,39 +2069,52 @@ public Builder removeStatusHistory(int index) { return this; } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder getStatusHistoryBuilder( int index) { return getStatusHistoryFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder( int index) { if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); } else { + return statusHistory_.get(index); + } else { return statusHistoryBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStatusHistoryOrBuilderList() { + public java.util.List + getStatusHistoryOrBuilderList() { if (statusHistoryBuilder_ != null) { return statusHistoryBuilder_.getMessageOrBuilderList(); } else { @@ -1854,45 +2122,64 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHis } } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder addStatusHistoryBuilder() { - return getStatusHistoryFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()); + return getStatusHistoryFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()); } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder addStatusHistoryBuilder( int index) { - return getStatusHistoryFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()); + return getStatusHistoryFieldBuilder() + .addBuilder( + index, com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()); } /** + * + * *
      * Output only. The previous operation status.
      * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStatusHistoryBuilderList() { + public java.util.List + getStatusHistoryBuilderList() { return getStatusHistoryFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> + com.google.cloud.dataproc.v1.ClusterOperationStatus, + com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, + com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> getStatusHistoryFieldBuilder() { if (statusHistoryBuilder_ == null) { - statusHistoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder>( + statusHistoryBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterOperationStatus, + com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, + com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder>( statusHistory_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1904,73 +2191,106 @@ public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder addStatusHist private int operationType_ = 0; /** + * + * *
      * The operation type.
      * 
* - * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * + * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * + * * @return The enum numeric value on the wire for operationType. */ - @java.lang.Override public int getOperationTypeValue() { + @java.lang.Override + public int getOperationTypeValue() { return operationType_; } /** + * + * *
      * The operation type.
      * 
* - * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * + * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * + * * @param value The enum numeric value on the wire for operationType to set. * @return This builder for chaining. */ public Builder setOperationTypeValue(int value) { - + operationType_ = value; onChanged(); return this; } /** + * + * *
      * The operation type.
      * 
* - * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * + * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * + * * @return The operationType. */ @java.lang.Override - public com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType getOperationType() { + public com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType + getOperationType() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType result = com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType.valueOf(operationType_); - return result == null ? com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType result = + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType.valueOf( + operationType_); + return result == null + ? com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType + .UNRECOGNIZED + : result; } /** + * + * *
      * The operation type.
      * 
* - * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * + * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * + * * @param value The operationType to set. * @return This builder for chaining. */ - public Builder setOperationType(com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType value) { + public Builder setOperationType( + com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType value) { if (value == null) { throw new NullPointerException(); } - + operationType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The operation type.
      * 
* - * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * + * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * + * * @return This builder for chaining. */ public Builder clearOperationType() { - + operationType_ = 0; onChanged(); return this; @@ -1978,18 +2298,20 @@ public Builder clearOperationType() { private java.lang.Object description_ = ""; /** + * + * *
      * Output only. Short description of operation.
      * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1998,20 +2320,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. Short description of operation.
      * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -2019,75 +2342,81 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. Short description of operation.
      * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Short description of operation.
      * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Output only. Short description of operation.
      * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2099,70 +2428,77 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Output only. Labels associated with the operation.
      * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @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(); } /** + * + * *
      * Output only. Labels associated with the operation.
      * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Output only. Labels associated with the operation.
      * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @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; } /** + * + * *
      * Output only. Labels associated with the operation.
      * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @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(); } @@ -2170,103 +2506,113 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Output only. Labels associated with the operation.
      * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - 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(); } /** + * + * *
      * Output only. Labels associated with the operation.
      * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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; } /** + * + * *
      * Output only. Labels associated with the operation.
      * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } - private com.google.protobuf.LazyStringList warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList warnings_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureWarningsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList - getWarningsList() { + public com.google.protobuf.ProtocolStringList getWarningsList() { return warnings_.getUnmodifiableView(); } /** + * + * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** + * + * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -2274,80 +2620,90 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** + * + * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString - getWarningsBytes(int index) { + public com.google.protobuf.ByteString getWarningsBytes(int index) { return warnings_.getByteString(index); } /** + * + * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index to set the value at. * @param value The warnings to set. * @return This builder for chaining. */ - public Builder setWarnings( - int index, java.lang.String value) { + public Builder setWarnings(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The warnings to add. * @return This builder for chaining. */ - public Builder addWarnings( - java.lang.String value) { + public Builder addWarnings(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param values The warnings to add. * @return This builder for chaining. */ - public Builder addAllWarnings( - java.lang.Iterable values) { + public Builder addAllWarnings(java.lang.Iterable values) { ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, warnings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); onChanged(); return this; } /** + * + * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearWarnings() { @@ -2357,28 +2713,30 @@ public Builder clearWarnings() { return this; } /** + * + * *
      * Output only. Errors encountered during operation execution.
      * 
* * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes of the warnings to add. * @return This builder for chaining. */ - public Builder addWarningsBytes( - com.google.protobuf.ByteString value) { + public Builder addWarningsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureWarningsIsMutable(); warnings_.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); } @@ -2388,12 +2746,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.NodeGroupOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.NodeGroupOperationMetadata) private static final com.google.cloud.dataproc.v1.NodeGroupOperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.NodeGroupOperationMetadata(); } @@ -2402,27 +2760,27 @@ public static com.google.cloud.dataproc.v1.NodeGroupOperationMetadata getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeGroupOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeGroupOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2437,6 +2795,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dataproc.v1.NodeGroupOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadataOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadataOrBuilder.java similarity index 64% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadataOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadataOrBuilder.java index 6eca5704ae78..8c34454cece5 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadataOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOperationMetadataOrBuilder.java @@ -1,163 +1,238 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/operations.proto package com.google.cloud.dataproc.v1; -public interface NodeGroupOperationMetadataOrBuilder extends +public interface NodeGroupOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.NodeGroupOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Node group ID for the operation.
    * 
* * string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeGroupId. */ java.lang.String getNodeGroupId(); /** + * + * *
    * Output only. Node group ID for the operation.
    * 
* * string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nodeGroupId. */ - com.google.protobuf.ByteString - getNodeGroupIdBytes(); + com.google.protobuf.ByteString getNodeGroupIdBytes(); /** + * + * *
    * Output only. Cluster UUID associated with the node group operation.
    * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterUuid. */ java.lang.String getClusterUuid(); /** + * + * *
    * Output only. Cluster UUID associated with the node group operation.
    * 
* * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterUuid. */ - com.google.protobuf.ByteString - getClusterUuidBytes(); + com.google.protobuf.ByteString getClusterUuidBytes(); /** + * + * *
    * Output only. Current operation status.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the status field is set. */ boolean hasStatus(); /** + * + * *
    * Output only. Current operation status.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ com.google.cloud.dataproc.v1.ClusterOperationStatus getStatus(); /** + * + * *
    * Output only. Current operation status.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusOrBuilder(); /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getStatusHistoryList(); + java.util.List getStatusHistoryList(); /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.ClusterOperationStatus getStatusHistory(int index); /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getStatusHistoryCount(); /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getStatusHistoryOrBuilderList(); /** + * + * *
    * Output only. The previous operation status.
    * 
* - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder( - int index); + com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder(int index); /** + * + * *
    * The operation type.
    * 
* - * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * + * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * + * * @return The enum numeric value on the wire for operationType. */ int getOperationTypeValue(); /** + * + * *
    * The operation type.
    * 
* - * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * + * .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5; + * + * * @return The operationType. */ com.google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType getOperationType(); /** + * + * *
    * Output only. Short description of operation.
    * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Output only. Short description of operation.
    * 
* * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. Labels associated with the operation.
    * 
@@ -166,30 +241,31 @@ com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrB */ int getLabelsCount(); /** + * + * *
    * Output only. Labels associated with the operation.
    * 
* * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - 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(); /** + * + * *
    * Output only. Labels associated with the operation.
    * 
* * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Output only. Labels associated with the operation.
    * 
@@ -198,59 +274,69 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Output only. Labels associated with the operation.
    * 
* * map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the warnings. */ - java.util.List - getWarningsList(); + java.util.List getWarningsList(); /** + * + * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of warnings. */ int getWarningsCount(); /** + * + * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The warnings at the given index. */ java.lang.String getWarnings(int index); /** + * + * *
    * Output only. Errors encountered during operation execution.
    * 
* * repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - com.google.protobuf.ByteString - getWarningsBytes(int index); + com.google.protobuf.ByteString getWarningsBytes(int index); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOrBuilder.java similarity index 67% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOrBuilder.java index d7659662e59a..c60cb4bf4601 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupOrBuilder.java @@ -1,109 +1,170 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface NodeGroupOrBuilder extends +public interface NodeGroupOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.NodeGroup) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Node group [resource name](https://aip.dev/122).
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The Node group [resource name](https://aip.dev/122).
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Node group roles.
    * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the roles. */ java.util.List getRolesList(); /** + * + * *
    * Required. Node group roles.
    * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of roles. */ int getRolesCount(); /** + * + * *
    * Required. Node group roles.
    * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The roles at the given index. */ com.google.cloud.dataproc.v1.NodeGroup.Role getRoles(int index); /** + * + * *
    * Required. Node group roles.
    * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the enum numeric values on the wire for roles. */ - java.util.List - getRolesValueList(); + java.util.List getRolesValueList(); /** + * + * *
    * Required. Node group roles.
    * 
* - * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of roles at the given index. */ int getRolesValue(int index); /** + * + * *
    * Optional. The node group instance group configuration.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the nodeGroupConfig field is set. */ boolean hasNodeGroupConfig(); /** + * + * *
    * Optional. The node group instance group configuration.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nodeGroupConfig. */ com.google.cloud.dataproc.v1.InstanceGroupConfig getNodeGroupConfig(); /** + * + * *
    * Optional. The node group instance group configuration.
    * 
* - * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getNodeGroupConfigOrBuilder(); /** + * + * *
    * Optional. Node group labels.
    * * Label **keys** must consist of from 1 to 63 characters and conform to
@@ -118,6 +179,8 @@ public interface NodeGroupOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. Node group labels.
    * * Label **keys** must consist of from 1 to 63 characters and conform to
@@ -130,15 +193,13 @@ public interface NodeGroupOrBuilder extends
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  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();
   /**
+   *
+   *
    * 
    * Optional. Node group labels.
    * * Label **keys** must consist of from 1 to 63 characters and conform to
@@ -151,9 +212,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. Node group labels.
    * * Label **keys** must consist of from 1 to 63 characters and conform to
@@ -168,11 +230,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. Node group labels.
    * * Label **keys** must consist of from 1 to 63 characters and conform to
@@ -185,7 +249,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupsProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupsProto.java
new file mode 100644
index 000000000000..82bd2bc4e393
--- /dev/null
+++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupsProto.java
@@ -0,0 +1,155 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/dataproc/v1/node_groups.proto
+
+package com.google.cloud.dataproc.v1;
+
+public final class NodeGroupsProto {
+  private NodeGroupsProto() {}
+
+  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_dataproc_v1_CreateNodeGroupRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_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/dataproc/v1/node_groups.p"
+          + "roto\022\030google.cloud.dataproc.v1\032\034google/a"
+          + "pi/annotations.proto\032\027google/api/client."
+          + "proto\032\037google/api/field_behavior.proto\032\031"
+          + "google/api/resource.proto\032\'google/cloud/"
+          + "dataproc/v1/clusters.proto\032#google/longr"
+          + "unning/operations.proto\032\036google/protobuf"
+          + "/duration.proto\"\306\001\n\026CreateNodeGroupReque"
+          + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!dataproc.goo"
+          + "gleapis.com/NodeGroup\022<\n\nnode_group\030\002 \001("
+          + "\0132#.google.cloud.dataproc.v1.NodeGroupB\003"
+          + "\340A\002\022\032\n\rnode_group_id\030\004 \001(\tB\003\340A\001\022\027\n\nreque"
+          + "st_id\030\003 \001(\tB\003\340A\001\"\236\001\n\026ResizeNodeGroupRequ"
+          + "est\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\021\n\004size\030\002 \001(\005B\003\340A"
+          + "\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022E\n\035graceful_d"
+          + "ecommission_timeout\030\004 \001(\0132\031.google.proto"
+          + "buf.DurationB\003\340A\001\"N\n\023GetNodeGroupRequest"
+          + "\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dataproc.googlea"
+          + "pis.com/NodeGroup2\247\006\n\023NodeGroupControlle"
+          + "r\022\225\002\n\017CreateNodeGroup\0220.google.cloud.dat"
+          + "aproc.v1.CreateNodeGroupRequest\032\035.google"
+          + ".longrunning.Operation\"\260\001\202\323\344\223\002E\"7/v1/{pa"
+          + "rent=projects/*/regions/*/clusters/*}/no"
+          + "deGroups:\nnode_group\332A\037parent,node_group"
+          + ",node_group_id\312A@\n\tNodeGroup\0223google.clo"
+          + "ud.dataproc.v1.NodeGroupOperationMetadat"
+          + "a\022\375\001\n\017ResizeNodeGroup\0220.google.cloud.dat"
+          + "aproc.v1.ResizeNodeGroupRequest\032\035.google"
+          + ".longrunning.Operation\"\230\001\202\323\344\223\002C\">/v1/{na"
+          + "me=projects/*/regions/*/clusters/*/nodeG"
+          + "roups/*}:resize:\001*\332A\tname,size\312A@\n\tNodeG"
+          + "roup\0223google.cloud.dataproc.v1.NodeGroup"
+          + "OperationMetadata\022\252\001\n\014GetNodeGroup\022-.goo"
+          + "gle.cloud.dataproc.v1.GetNodeGroupReques"
+          + "t\032#.google.cloud.dataproc.v1.NodeGroup\"F"
+          + "\202\323\344\223\0029\0227/v1/{name=projects/*/regions/*/c"
+          + "lusters/*/nodeGroups/*}\332A\004name\032K\312A\027datap"
+          + "roc.googleapis.com\322A.https://www.googlea"
+          + "pis.com/auth/cloud-platformB\325\001\n\034com.goog"
+          + "le.cloud.dataproc.v1B\017NodeGroupsProtoP\001Z"
+          + "@google.golang.org/genproto/googleapis/c"
+          + "loud/dataproc/v1;dataproc\352A_\n%dataproc.g"
+          + "oogleapis.com/ClusterRegion\0226projects/{p"
+          + "roject}/regions/{region}/clusters/{clust"
+          + "er}b\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.dataproc.v1.ClustersProto.getDescriptor(),
+              com.google.longrunning.OperationsProto.getDescriptor(),
+              com.google.protobuf.DurationProto.getDescriptor(),
+            });
+    internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "NodeGroup", "NodeGroupId", "RequestId",
+            });
+    internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "Size", "RequestId", "GracefulDecommissionTimeout",
+            });
+    internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    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.resourceDefinition);
+    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.dataproc.v1.ClustersProto.getDescriptor();
+    com.google.longrunning.OperationsProto.getDescriptor();
+    com.google.protobuf.DurationProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java
similarity index 68%
rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java
rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java
index 1c7e46444590..5817a83bc02f 100644
--- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java
+++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/dataproc/v1/clusters.proto
 
 package com.google.cloud.dataproc.v1;
 
 /**
+ *
+ *
  * 
  * Specifies an executable to run on a fully configured node and a
  * timeout period for executable completion.
@@ -11,52 +28,57 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.NodeInitializationAction}
  */
-public final class NodeInitializationAction extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class NodeInitializationAction extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.NodeInitializationAction)
     NodeInitializationActionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use NodeInitializationAction.newBuilder() to construct.
   private NodeInitializationAction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private NodeInitializationAction() {
     executableFile_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NodeInitializationAction();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.NodeInitializationAction.class, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder.class);
+            com.google.cloud.dataproc.v1.NodeInitializationAction.class,
+            com.google.cloud.dataproc.v1.NodeInitializationAction.Builder.class);
   }
 
   public static final int EXECUTABLE_FILE_FIELD_NUMBER = 1;
   private volatile java.lang.Object executableFile_;
   /**
+   *
+   *
    * 
    * Required. Cloud Storage URI of executable file.
    * 
* * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The executableFile. */ @java.lang.Override @@ -65,29 +87,29 @@ public java.lang.String getExecutableFile() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); executableFile_ = s; return s; } } /** + * + * *
    * Required. Cloud Storage URI of executable file.
    * 
* * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for executableFile. */ @java.lang.Override - public com.google.protobuf.ByteString - getExecutableFileBytes() { + public com.google.protobuf.ByteString getExecutableFileBytes() { java.lang.Object ref = executableFile_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); executableFile_ = b; return b; } else { @@ -98,6 +120,8 @@ public java.lang.String getExecutableFile() { public static final int EXECUTION_TIMEOUT_FIELD_NUMBER = 2; private com.google.protobuf.Duration executionTimeout_; /** + * + * *
    * Optional. Amount of time executable has to complete. Default is
    * 10 minutes (see JSON representation of
@@ -107,7 +131,10 @@ public java.lang.String getExecutableFile() {
    * period) if the executable is not completed at end of the timeout period.
    * 
* - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the executionTimeout field is set. */ @java.lang.Override @@ -115,6 +142,8 @@ public boolean hasExecutionTimeout() { return executionTimeout_ != null; } /** + * + * *
    * Optional. Amount of time executable has to complete. Default is
    * 10 minutes (see JSON representation of
@@ -124,14 +153,21 @@ public boolean hasExecutionTimeout() {
    * period) if the executable is not completed at end of the timeout period.
    * 
* - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The executionTimeout. */ @java.lang.Override public com.google.protobuf.Duration getExecutionTimeout() { - return executionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_; + return executionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : executionTimeout_; } /** + * + * *
    * Optional. Amount of time executable has to complete. Default is
    * 10 minutes (see JSON representation of
@@ -141,7 +177,9 @@ public com.google.protobuf.Duration getExecutionTimeout() {
    * period) if the executable is not completed at end of the timeout period.
    * 
* - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { @@ -149,6 +187,7 @@ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -160,8 +199,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executableFile_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, executableFile_); } @@ -181,8 +219,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, executableFile_); } if (executionTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExecutionTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExecutionTimeout()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -192,19 +229,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.dataproc.v1.NodeInitializationAction)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.NodeInitializationAction other = (com.google.cloud.dataproc.v1.NodeInitializationAction) obj; + com.google.cloud.dataproc.v1.NodeInitializationAction other = + (com.google.cloud.dataproc.v1.NodeInitializationAction) obj; - if (!getExecutableFile() - .equals(other.getExecutableFile())) return false; + if (!getExecutableFile().equals(other.getExecutableFile())) return false; if (hasExecutionTimeout() != other.hasExecutionTimeout()) return false; if (hasExecutionTimeout()) { - if (!getExecutionTimeout() - .equals(other.getExecutionTimeout())) return false; + if (!getExecutionTimeout().equals(other.getExecutionTimeout())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -229,96 +265,104 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.NodeInitializationAction 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.dataproc.v1.NodeInitializationAction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.NodeInitializationAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.NodeInitializationAction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.NodeInitializationAction prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.NodeInitializationAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specifies an executable to run on a fully configured node and a
    * timeout period for executable completion.
@@ -326,33 +370,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.NodeInitializationAction}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.NodeInitializationAction)
       com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.NodeInitializationAction.class, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder.class);
+              com.google.cloud.dataproc.v1.NodeInitializationAction.class,
+              com.google.cloud.dataproc.v1.NodeInitializationAction.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.NodeInitializationAction.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -368,9 +411,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor;
     }
 
     @java.lang.Override
@@ -389,7 +432,8 @@ public com.google.cloud.dataproc.v1.NodeInitializationAction build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.NodeInitializationAction buildPartial() {
-      com.google.cloud.dataproc.v1.NodeInitializationAction result = new com.google.cloud.dataproc.v1.NodeInitializationAction(this);
+      com.google.cloud.dataproc.v1.NodeInitializationAction result =
+          new com.google.cloud.dataproc.v1.NodeInitializationAction(this);
       result.executableFile_ = executableFile_;
       if (executionTimeoutBuilder_ == null) {
         result.executionTimeout_ = executionTimeout_;
@@ -404,38 +448,39 @@ public com.google.cloud.dataproc.v1.NodeInitializationAction buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.NodeInitializationAction) {
-        return mergeFrom((com.google.cloud.dataproc.v1.NodeInitializationAction)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.NodeInitializationAction) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -443,7 +488,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.NodeInitializationAction other) {
-      if (other == com.google.cloud.dataproc.v1.NodeInitializationAction.getDefaultInstance()) return this;
+      if (other == com.google.cloud.dataproc.v1.NodeInitializationAction.getDefaultInstance())
+        return this;
       if (!other.getExecutableFile().isEmpty()) {
         executableFile_ = other.executableFile_;
         onChanged();
@@ -477,24 +523,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              executableFile_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getExecutionTimeoutFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                executableFile_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(
+                    getExecutionTimeoutFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -507,18 +555,20 @@ public Builder mergeFrom(
 
     private java.lang.Object executableFile_ = "";
     /**
+     *
+     *
      * 
      * Required. Cloud Storage URI of executable file.
      * 
* * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The executableFile. */ public java.lang.String getExecutableFile() { java.lang.Object ref = executableFile_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); executableFile_ = s; return s; @@ -527,20 +577,21 @@ public java.lang.String getExecutableFile() { } } /** + * + * *
      * Required. Cloud Storage URI of executable file.
      * 
* * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for executableFile. */ - public com.google.protobuf.ByteString - getExecutableFileBytes() { + public com.google.protobuf.ByteString getExecutableFileBytes() { java.lang.Object ref = executableFile_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); executableFile_ = b; return b; } else { @@ -548,54 +599,61 @@ public java.lang.String getExecutableFile() { } } /** + * + * *
      * Required. Cloud Storage URI of executable file.
      * 
* * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The executableFile to set. * @return This builder for chaining. */ - public Builder setExecutableFile( - java.lang.String value) { + public Builder setExecutableFile(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + executableFile_ = value; onChanged(); return this; } /** + * + * *
      * Required. Cloud Storage URI of executable file.
      * 
* * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearExecutableFile() { - + executableFile_ = getDefaultInstance().getExecutableFile(); onChanged(); return this; } /** + * + * *
      * Required. Cloud Storage URI of executable file.
      * 
* * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for executableFile to set. * @return This builder for chaining. */ - public Builder setExecutableFileBytes( - com.google.protobuf.ByteString value) { + public Builder setExecutableFileBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + executableFile_ = value; onChanged(); return this; @@ -603,8 +661,13 @@ public Builder setExecutableFileBytes( private com.google.protobuf.Duration executionTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> executionTimeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + executionTimeoutBuilder_; /** + * + * *
      * Optional. Amount of time executable has to complete. Default is
      * 10 minutes (see JSON representation of
@@ -614,13 +677,18 @@ public Builder setExecutableFileBytes(
      * period) if the executable is not completed at end of the timeout period.
      * 
* - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the executionTimeout field is set. */ public boolean hasExecutionTimeout() { return executionTimeoutBuilder_ != null || executionTimeout_ != null; } /** + * + * *
      * Optional. Amount of time executable has to complete. Default is
      * 10 minutes (see JSON representation of
@@ -630,17 +698,24 @@ public boolean hasExecutionTimeout() {
      * period) if the executable is not completed at end of the timeout period.
      * 
* - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The executionTimeout. */ public com.google.protobuf.Duration getExecutionTimeout() { if (executionTimeoutBuilder_ == null) { - return executionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_; + return executionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : executionTimeout_; } else { return executionTimeoutBuilder_.getMessage(); } } /** + * + * *
      * Optional. Amount of time executable has to complete. Default is
      * 10 minutes (see JSON representation of
@@ -650,7 +725,9 @@ public com.google.protobuf.Duration getExecutionTimeout() {
      * period) if the executable is not completed at end of the timeout period.
      * 
* - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setExecutionTimeout(com.google.protobuf.Duration value) { if (executionTimeoutBuilder_ == null) { @@ -666,6 +743,8 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. Amount of time executable has to complete. Default is
      * 10 minutes (see JSON representation of
@@ -675,10 +754,11 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration value) {
      * period) if the executable is not completed at end of the timeout period.
      * 
* - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setExecutionTimeout( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderForValue) { if (executionTimeoutBuilder_ == null) { executionTimeout_ = builderForValue.build(); onChanged(); @@ -689,6 +769,8 @@ public Builder setExecutionTimeout( return this; } /** + * + * *
      * Optional. Amount of time executable has to complete. Default is
      * 10 minutes (see JSON representation of
@@ -698,13 +780,17 @@ public Builder setExecutionTimeout(
      * period) if the executable is not completed at end of the timeout period.
      * 
* - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { if (executionTimeoutBuilder_ == null) { if (executionTimeout_ != null) { executionTimeout_ = - com.google.protobuf.Duration.newBuilder(executionTimeout_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(executionTimeout_) + .mergeFrom(value) + .buildPartial(); } else { executionTimeout_ = value; } @@ -716,6 +802,8 @@ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. Amount of time executable has to complete. Default is
      * 10 minutes (see JSON representation of
@@ -725,7 +813,9 @@ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) {
      * period) if the executable is not completed at end of the timeout period.
      * 
* - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearExecutionTimeout() { if (executionTimeoutBuilder_ == null) { @@ -739,6 +829,8 @@ public Builder clearExecutionTimeout() { return this; } /** + * + * *
      * Optional. Amount of time executable has to complete. Default is
      * 10 minutes (see JSON representation of
@@ -748,14 +840,18 @@ public Builder clearExecutionTimeout() {
      * period) if the executable is not completed at end of the timeout period.
      * 
* - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() { - + onChanged(); return getExecutionTimeoutFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Amount of time executable has to complete. Default is
      * 10 minutes (see JSON representation of
@@ -765,17 +861,22 @@ public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() {
      * period) if the executable is not completed at end of the timeout period.
      * 
* - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { if (executionTimeoutBuilder_ != null) { return executionTimeoutBuilder_.getMessageOrBuilder(); } else { - return executionTimeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_; + return executionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : executionTimeout_; } } /** + * + * *
      * Optional. Amount of time executable has to complete. Default is
      * 10 minutes (see JSON representation of
@@ -785,24 +886,29 @@ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() {
      * period) if the executable is not completed at end of the timeout period.
      * 
* - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getExecutionTimeoutFieldBuilder() { if (executionTimeoutBuilder_ == null) { - executionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getExecutionTimeout(), - getParentForChildren(), - isClean()); + executionTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getExecutionTimeout(), getParentForChildren(), isClean()); executionTimeout_ = null; } return executionTimeoutBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -812,12 +918,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.NodeInitializationAction) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.NodeInitializationAction) private static final com.google.cloud.dataproc.v1.NodeInitializationAction DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.NodeInitializationAction(); } @@ -826,27 +932,27 @@ public static com.google.cloud.dataproc.v1.NodeInitializationAction getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeInitializationAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeInitializationAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -861,6 +967,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.NodeInitializationAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java similarity index 67% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java index 51b576b7abed..a16592c0ee71 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface NodeInitializationActionOrBuilder extends +public interface NodeInitializationActionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.NodeInitializationAction) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Cloud Storage URI of executable file.
    * 
* * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The executableFile. */ java.lang.String getExecutableFile(); /** + * + * *
    * Required. Cloud Storage URI of executable file.
    * 
* * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for executableFile. */ - com.google.protobuf.ByteString - getExecutableFileBytes(); + com.google.protobuf.ByteString getExecutableFileBytes(); /** + * + * *
    * Optional. Amount of time executable has to complete. Default is
    * 10 minutes (see JSON representation of
@@ -37,11 +60,16 @@ public interface NodeInitializationActionOrBuilder extends
    * period) if the executable is not completed at end of the timeout period.
    * 
* - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the executionTimeout field is set. */ boolean hasExecutionTimeout(); /** + * + * *
    * Optional. Amount of time executable has to complete. Default is
    * 10 minutes (see JSON representation of
@@ -51,11 +79,16 @@ public interface NodeInitializationActionOrBuilder extends
    * period) if the executable is not completed at end of the timeout period.
    * 
* - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The executionTimeout. */ com.google.protobuf.Duration getExecutionTimeout(); /** + * + * *
    * Optional. Amount of time executable has to complete. Default is
    * 10 minutes (see JSON representation of
@@ -65,7 +98,9 @@ public interface NodeInitializationActionOrBuilder extends
    * period) if the executable is not completed at end of the timeout period.
    * 
* - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java new file mode 100644 index 000000000000..db2a987680d2 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java @@ -0,0 +1,221 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/operations.proto + +package com.google.cloud.dataproc.v1; + +public final class OperationsProto { + private OperationsProto() {} + + 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_dataproc_v1_BatchOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_LabelsEntry_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/dataproc/v1/operations.pr" + + "oto\022\030google.cloud.dataproc.v1\032\037google/ap" + + "i/field_behavior.proto\032\037google/protobuf/" + + "timestamp.proto\"\343\003\n\026BatchOperationMetada" + + "ta\022\r\n\005batch\030\001 \001(\t\022\022\n\nbatch_uuid\030\002 \001(\t\022/\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estamp\022-\n\tdone_time\030\004 \001(\0132\032.google.proto" + + "buf.Timestamp\022[\n\016operation_type\030\006 \001(\0162C." + + "google.cloud.dataproc.v1.BatchOperationM" + + "etadata.BatchOperationType\022\023\n\013descriptio" + + "n\030\007 \001(\t\022L\n\006labels\030\010 \003(\0132<.google.cloud.d" + + "ataproc.v1.BatchOperationMetadata.Labels" + + "Entry\022\020\n\010warnings\030\t \003(\t\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\022BatchO" + + "perationType\022$\n BATCH_OPERATION_TYPE_UNS" + + "PECIFIED\020\000\022\t\n\005BATCH\020\001\"\211\002\n\026ClusterOperati" + + "onStatus\022J\n\005state\030\001 \001(\01626.google.cloud.d" + + "ataproc.v1.ClusterOperationStatus.StateB" + + "\003\340A\003\022\030\n\013inner_state\030\002 \001(\tB\003\340A\003\022\024\n\007detail" + + "s\030\003 \001(\tB\003\340A\003\0229\n\020state_start_time\030\004 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\"8\n\005State" + + "\022\013\n\007UNKNOWN\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022" + + "\010\n\004DONE\020\003\"\270\003\n\030ClusterOperationMetadata\022\031" + + "\n\014cluster_name\030\007 \001(\tB\003\340A\003\022\031\n\014cluster_uui" + + "d\030\010 \001(\tB\003\340A\003\022E\n\006status\030\t \001(\01320.google.cl" + + "oud.dataproc.v1.ClusterOperationStatusB\003" + + "\340A\003\022M\n\016status_history\030\n \003(\01320.google.clo" + + "ud.dataproc.v1.ClusterOperationStatusB\003\340" + + "A\003\022\033\n\016operation_type\030\013 \001(\tB\003\340A\003\022\030\n\013descr" + + "iption\030\014 \001(\tB\003\340A\003\022S\n\006labels\030\r \003(\0132>.goog" + + "le.cloud.dataproc.v1.ClusterOperationMet" + + "adata.LabelsEntryB\003\340A\003\022\025\n\010warnings\030\016 \003(\t" + + "B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\"\372\004\n\032NodeGroupOperationMetad" + + "ata\022\032\n\rnode_group_id\030\001 \001(\tB\003\340A\003\022\031\n\014clust" + + "er_uuid\030\002 \001(\tB\003\340A\003\022E\n\006status\030\003 \001(\01320.goo" + + "gle.cloud.dataproc.v1.ClusterOperationSt" + + "atusB\003\340A\003\022M\n\016status_history\030\004 \003(\01320.goog" + + "le.cloud.dataproc.v1.ClusterOperationSta" + + "tusB\003\340A\003\022c\n\016operation_type\030\005 \001(\0162K.googl" + + "e.cloud.dataproc.v1.NodeGroupOperationMe" + + "tadata.NodeGroupOperationType\022\030\n\013descrip" + + "tion\030\006 \001(\tB\003\340A\003\022U\n\006labels\030\007 \003(\0132@.google" + + ".cloud.dataproc.v1.NodeGroupOperationMet" + + "adata.LabelsEntryB\003\340A\003\022\025\n\010warnings\030\010 \003(\t" + + "B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\"s\n\026NodeGroupOperationType\022)" + + "\n%NODE_GROUP_OPERATION_TYPE_UNSPECIFIED\020" + + "\000\022\n\n\006CREATE\020\001\022\n\n\006UPDATE\020\002\022\n\n\006DELETE\020\003\022\n\n" + + "\006RESIZE\020\004Bs\n\034com.google.cloud.dataproc.v" + + "1B\017OperationsProtoP\001Z@google.golang.org/" + + "genproto/googleapis/cloud/dataproc/v1;da" + + "taprocb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor, + new java.lang.String[] { + "Batch", + "BatchUuid", + "CreateTime", + "DoneTime", + "OperationType", + "Description", + "Labels", + "Warnings", + }); + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor, + new java.lang.String[] { + "State", "InnerState", "Details", "StateStartTime", + }); + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor, + new java.lang.String[] { + "ClusterName", + "ClusterUuid", + "Status", + "StatusHistory", + "OperationType", + "Description", + "Labels", + "Warnings", + }); + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor, + new java.lang.String[] { + "NodeGroupId", + "ClusterUuid", + "Status", + "StatusHistory", + "OperationType", + "Description", + "Labels", + "Warnings", + }); + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_LabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java index f86ce0c8356c..d34cfb8571d5 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A job executed by the workflow.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.OrderedJob} */ -public final class OrderedJob extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OrderedJob extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.OrderedJob) OrderedJobOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OrderedJob.newBuilder() to construct. private OrderedJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OrderedJob() { stepId_ = ""; prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,45 +44,47 @@ private OrderedJob() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OrderedJob(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_OrderedJob_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_OrderedJob_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.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_OrderedJob_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_OrderedJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.OrderedJob.class, com.google.cloud.dataproc.v1.OrderedJob.Builder.class); + com.google.cloud.dataproc.v1.OrderedJob.class, + com.google.cloud.dataproc.v1.OrderedJob.Builder.class); } private int jobTypeCase_ = 0; private java.lang.Object jobType_; + public enum JobTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { HADOOP_JOB(2), SPARK_JOB(3), @@ -76,6 +96,7 @@ public enum JobTypeCase PRESTO_JOB(12), JOBTYPE_NOT_SET(0); private final int value; + private JobTypeCase(int value) { this.value = value; } @@ -91,32 +112,43 @@ public static JobTypeCase valueOf(int value) { public static JobTypeCase forNumber(int value) { switch (value) { - case 2: return HADOOP_JOB; - case 3: return SPARK_JOB; - case 4: return PYSPARK_JOB; - case 5: return HIVE_JOB; - case 6: return PIG_JOB; - case 11: return SPARK_R_JOB; - case 7: return SPARK_SQL_JOB; - case 12: return PRESTO_JOB; - case 0: return JOBTYPE_NOT_SET; - default: return null; + case 2: + return HADOOP_JOB; + case 3: + return SPARK_JOB; + case 4: + return PYSPARK_JOB; + case 5: + return HIVE_JOB; + case 6: + return PIG_JOB; + case 11: + return SPARK_R_JOB; + case 7: + return SPARK_SQL_JOB; + case 12: + return PRESTO_JOB; + case 0: + return JOBTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public JobTypeCase - getJobTypeCase() { - return JobTypeCase.forNumber( - jobTypeCase_); + public JobTypeCase getJobTypeCase() { + return JobTypeCase.forNumber(jobTypeCase_); } public static final int STEP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object stepId_; /** + * + * *
    * Required. The step id. The id must be unique among all jobs
    * within the template.
@@ -130,6 +162,7 @@ public int getNumber() {
    * 
* * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The stepId. */ @java.lang.Override @@ -138,14 +171,15 @@ public java.lang.String getStepId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stepId_ = s; return s; } } /** + * + * *
    * Required. The step id. The id must be unique among all jobs
    * within the template.
@@ -159,16 +193,15 @@ public java.lang.String getStepId() {
    * 
* * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for stepId. */ @java.lang.Override - public com.google.protobuf.ByteString - getStepIdBytes() { + public com.google.protobuf.ByteString getStepIdBytes() { java.lang.Object ref = stepId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stepId_ = b; return b; } else { @@ -178,11 +211,16 @@ public java.lang.String getStepId() { public static final int HADOOP_JOB_FIELD_NUMBER = 2; /** + * + * *
    * Optional. Job is a Hadoop job.
    * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the hadoopJob field is set. */ @java.lang.Override @@ -190,42 +228,56 @@ public boolean hasHadoopJob() { return jobTypeCase_ == 2; } /** + * + * *
    * Optional. Job is a Hadoop job.
    * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The hadoopJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.HadoopJob getHadoopJob() { if (jobTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1.HadoopJob) jobType_; + return (com.google.cloud.dataproc.v1.HadoopJob) jobType_; } return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); } /** + * + * *
    * Optional. Job is a Hadoop job.
    * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder() { if (jobTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1.HadoopJob) jobType_; + return (com.google.cloud.dataproc.v1.HadoopJob) jobType_; } return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); } public static final int SPARK_JOB_FIELD_NUMBER = 3; /** + * + * *
    * Optional. Job is a Spark job.
    * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkJob field is set. */ @java.lang.Override @@ -233,42 +285,56 @@ public boolean hasSparkJob() { return jobTypeCase_ == 3; } /** + * + * *
    * Optional. Job is a Spark job.
    * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkJob getSparkJob() { if (jobTypeCase_ == 3) { - return (com.google.cloud.dataproc.v1.SparkJob) jobType_; + return (com.google.cloud.dataproc.v1.SparkJob) jobType_; } return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); } /** + * + * *
    * Optional. Job is a Spark job.
    * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder() { if (jobTypeCase_ == 3) { - return (com.google.cloud.dataproc.v1.SparkJob) jobType_; + return (com.google.cloud.dataproc.v1.SparkJob) jobType_; } return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); } public static final int PYSPARK_JOB_FIELD_NUMBER = 4; /** + * + * *
    * Optional. Job is a PySpark job.
    * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pysparkJob field is set. */ @java.lang.Override @@ -276,42 +342,55 @@ public boolean hasPysparkJob() { return jobTypeCase_ == 4; } /** + * + * *
    * Optional. Job is a PySpark job.
    * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pysparkJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.PySparkJob getPysparkJob() { if (jobTypeCase_ == 4) { - return (com.google.cloud.dataproc.v1.PySparkJob) jobType_; + return (com.google.cloud.dataproc.v1.PySparkJob) jobType_; } return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); } /** + * + * *
    * Optional. Job is a PySpark job.
    * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder() { if (jobTypeCase_ == 4) { - return (com.google.cloud.dataproc.v1.PySparkJob) jobType_; + return (com.google.cloud.dataproc.v1.PySparkJob) jobType_; } return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); } public static final int HIVE_JOB_FIELD_NUMBER = 5; /** + * + * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the hiveJob field is set. */ @java.lang.Override @@ -319,42 +398,53 @@ public boolean hasHiveJob() { return jobTypeCase_ == 5; } /** + * + * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The hiveJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.HiveJob getHiveJob() { if (jobTypeCase_ == 5) { - return (com.google.cloud.dataproc.v1.HiveJob) jobType_; + return (com.google.cloud.dataproc.v1.HiveJob) jobType_; } return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); } /** + * + * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder() { if (jobTypeCase_ == 5) { - return (com.google.cloud.dataproc.v1.HiveJob) jobType_; + return (com.google.cloud.dataproc.v1.HiveJob) jobType_; } return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); } public static final int PIG_JOB_FIELD_NUMBER = 6; /** + * + * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pigJob field is set. */ @java.lang.Override @@ -362,42 +452,54 @@ public boolean hasPigJob() { return jobTypeCase_ == 6; } /** + * + * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pigJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.PigJob getPigJob() { if (jobTypeCase_ == 6) { - return (com.google.cloud.dataproc.v1.PigJob) jobType_; + return (com.google.cloud.dataproc.v1.PigJob) jobType_; } return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); } /** + * + * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder() { if (jobTypeCase_ == 6) { - return (com.google.cloud.dataproc.v1.PigJob) jobType_; + return (com.google.cloud.dataproc.v1.PigJob) jobType_; } return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); } public static final int SPARK_R_JOB_FIELD_NUMBER = 11; /** + * + * *
    * Optional. Job is a SparkR job.
    * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkRJob field is set. */ @java.lang.Override @@ -405,42 +507,56 @@ public boolean hasSparkRJob() { return jobTypeCase_ == 11; } /** + * + * *
    * Optional. Job is a SparkR job.
    * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkRJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkRJob getSparkRJob() { if (jobTypeCase_ == 11) { - return (com.google.cloud.dataproc.v1.SparkRJob) jobType_; + return (com.google.cloud.dataproc.v1.SparkRJob) jobType_; } return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); } /** + * + * *
    * Optional. Job is a SparkR job.
    * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder() { if (jobTypeCase_ == 11) { - return (com.google.cloud.dataproc.v1.SparkRJob) jobType_; + return (com.google.cloud.dataproc.v1.SparkRJob) jobType_; } return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); } public static final int SPARK_SQL_JOB_FIELD_NUMBER = 7; /** + * + * *
    * Optional. Job is a SparkSql job.
    * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkSqlJob field is set. */ @java.lang.Override @@ -448,42 +564,56 @@ public boolean hasSparkSqlJob() { return jobTypeCase_ == 7; } /** + * + * *
    * Optional. Job is a SparkSql job.
    * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkSqlJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlJob getSparkSqlJob() { if (jobTypeCase_ == 7) { - return (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_; + return (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_; } return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); } /** + * + * *
    * Optional. Job is a SparkSql job.
    * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder() { if (jobTypeCase_ == 7) { - return (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_; + return (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_; } return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); } public static final int PRESTO_JOB_FIELD_NUMBER = 12; /** + * + * *
    * Optional. Job is a Presto job.
    * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the prestoJob field is set. */ @java.lang.Override @@ -491,54 +621,62 @@ public boolean hasPrestoJob() { return jobTypeCase_ == 12; } /** + * + * *
    * Optional. Job is a Presto job.
    * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The prestoJob. */ @java.lang.Override public com.google.cloud.dataproc.v1.PrestoJob getPrestoJob() { if (jobTypeCase_ == 12) { - return (com.google.cloud.dataproc.v1.PrestoJob) jobType_; + return (com.google.cloud.dataproc.v1.PrestoJob) jobType_; } return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); } /** + * + * *
    * Optional. Job is a Presto job.
    * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder() { if (jobTypeCase_ == 12) { - return (com.google.cloud.dataproc.v1.PrestoJob) jobType_; + return (com.google.cloud.dataproc.v1.PrestoJob) jobType_; } return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); } public static final int LABELS_FIELD_NUMBER = 8; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_OrderedJob_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_OrderedJob_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -547,6 +685,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels to associate with this job.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -559,22 +699,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-
   @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();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this job.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -588,11 +728,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this job.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -606,16 +747,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this job.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -629,12 +770,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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,11 +784,16 @@ public java.lang.String getLabelsOrThrow(
   public static final int SCHEDULING_FIELD_NUMBER = 9;
   private com.google.cloud.dataproc.v1.JobScheduling scheduling_;
   /**
+   *
+   *
    * 
    * Optional. Job scheduling configuration.
    * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the scheduling field is set. */ @java.lang.Override @@ -656,23 +801,34 @@ public boolean hasScheduling() { return scheduling_ != null; } /** + * + * *
    * Optional. Job scheduling configuration.
    * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The scheduling. */ @java.lang.Override public com.google.cloud.dataproc.v1.JobScheduling getScheduling() { - return scheduling_ == null ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() : scheduling_; + return scheduling_ == null + ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() + : scheduling_; } /** + * + * *
    * Optional. Job scheduling configuration.
    * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilder() { @@ -682,37 +838,48 @@ public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilde public static final int PREREQUISITE_STEP_IDS_FIELD_NUMBER = 10; private com.google.protobuf.LazyStringList prerequisiteStepIds_; /** + * + * *
    * Optional. The optional list of prerequisite job step_ids.
    * If not specified, the job will start at the beginning of workflow.
    * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the prerequisiteStepIds. */ - public com.google.protobuf.ProtocolStringList - getPrerequisiteStepIdsList() { + public com.google.protobuf.ProtocolStringList getPrerequisiteStepIdsList() { return prerequisiteStepIds_; } /** + * + * *
    * Optional. The optional list of prerequisite job step_ids.
    * If not specified, the job will start at the beginning of workflow.
    * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of prerequisiteStepIds. */ public int getPrerequisiteStepIdsCount() { return prerequisiteStepIds_.size(); } /** + * + * *
    * Optional. The optional list of prerequisite job step_ids.
    * If not specified, the job will start at the beginning of workflow.
    * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The prerequisiteStepIds at the given index. */ @@ -720,21 +887,25 @@ public java.lang.String getPrerequisiteStepIds(int index) { return prerequisiteStepIds_.get(index); } /** + * + * *
    * Optional. The optional list of prerequisite job step_ids.
    * If not specified, the job will start at the beginning of workflow.
    * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the prerequisiteStepIds at the given index. */ - public com.google.protobuf.ByteString - getPrerequisiteStepIdsBytes(int index) { + public com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index) { return prerequisiteStepIds_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -746,8 +917,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stepId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stepId_); } @@ -769,17 +939,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (jobTypeCase_ == 7) { output.writeMessage(7, (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 8); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); if (scheduling_ != null) { output.writeMessage(9, getScheduling()); } for (int i = 0; i < prerequisiteStepIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, prerequisiteStepIds_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 10, prerequisiteStepIds_.getRaw(i)); } if (jobTypeCase_ == 11) { output.writeMessage(11, (com.google.cloud.dataproc.v1.SparkRJob) jobType_); @@ -800,42 +967,47 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stepId_); } if (jobTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.dataproc.v1.HadoopJob) jobType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataproc.v1.HadoopJob) jobType_); } if (jobTypeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.dataproc.v1.SparkJob) jobType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.dataproc.v1.SparkJob) jobType_); } if (jobTypeCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.dataproc.v1.PySparkJob) jobType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.dataproc.v1.PySparkJob) jobType_); } if (jobTypeCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.dataproc.v1.HiveJob) jobType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.dataproc.v1.HiveJob) jobType_); } if (jobTypeCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.dataproc.v1.PigJob) jobType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.dataproc.v1.PigJob) jobType_); } if (jobTypeCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_); - } - 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, (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_); + } + 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 (scheduling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getScheduling()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getScheduling()); } { int dataSize = 0; @@ -846,12 +1018,14 @@ public int getSerializedSize() { size += 1 * getPrerequisiteStepIdsList().size(); } if (jobTypeCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (com.google.cloud.dataproc.v1.SparkRJob) jobType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.dataproc.v1.SparkRJob) jobType_); } if (jobTypeCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (com.google.cloud.dataproc.v1.PrestoJob) jobType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.dataproc.v1.PrestoJob) jobType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -861,57 +1035,45 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.OrderedJob)) { return super.equals(obj); } com.google.cloud.dataproc.v1.OrderedJob other = (com.google.cloud.dataproc.v1.OrderedJob) obj; - if (!getStepId() - .equals(other.getStepId())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getStepId().equals(other.getStepId())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasScheduling() != other.hasScheduling()) return false; if (hasScheduling()) { - if (!getScheduling() - .equals(other.getScheduling())) return false; + if (!getScheduling().equals(other.getScheduling())) return false; } - if (!getPrerequisiteStepIdsList() - .equals(other.getPrerequisiteStepIdsList())) return false; + if (!getPrerequisiteStepIdsList().equals(other.getPrerequisiteStepIdsList())) return false; if (!getJobTypeCase().equals(other.getJobTypeCase())) return false; switch (jobTypeCase_) { case 2: - if (!getHadoopJob() - .equals(other.getHadoopJob())) return false; + if (!getHadoopJob().equals(other.getHadoopJob())) return false; break; case 3: - if (!getSparkJob() - .equals(other.getSparkJob())) return false; + if (!getSparkJob().equals(other.getSparkJob())) return false; break; case 4: - if (!getPysparkJob() - .equals(other.getPysparkJob())) return false; + if (!getPysparkJob().equals(other.getPysparkJob())) return false; break; case 5: - if (!getHiveJob() - .equals(other.getHiveJob())) return false; + if (!getHiveJob().equals(other.getHiveJob())) return false; break; case 6: - if (!getPigJob() - .equals(other.getPigJob())) return false; + if (!getPigJob().equals(other.getPigJob())) return false; break; case 11: - if (!getSparkRJob() - .equals(other.getSparkRJob())) return false; + if (!getSparkRJob().equals(other.getSparkRJob())) return false; break; case 7: - if (!getSparkSqlJob() - .equals(other.getSparkSqlJob())) return false; + if (!getSparkSqlJob().equals(other.getSparkSqlJob())) return false; break; case 12: - if (!getPrestoJob() - .equals(other.getPrestoJob())) return false; + if (!getPrestoJob().equals(other.getPrestoJob())) return false; break; case 0: default: @@ -982,152 +1144,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.OrderedJob parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.OrderedJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.OrderedJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.OrderedJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.OrderedJob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.OrderedJob parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.OrderedJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 executed by the workflow.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.OrderedJob} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.OrderedJob) com.google.cloud.dataproc.v1.OrderedJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_OrderedJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_OrderedJob_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.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_OrderedJob_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_OrderedJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.OrderedJob.class, com.google.cloud.dataproc.v1.OrderedJob.Builder.class); + com.google.cloud.dataproc.v1.OrderedJob.class, + com.google.cloud.dataproc.v1.OrderedJob.Builder.class); } // Construct using com.google.cloud.dataproc.v1.OrderedJob.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1172,9 +1338,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_OrderedJob_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_OrderedJob_descriptor; } @java.lang.Override @@ -1193,7 +1359,8 @@ public com.google.cloud.dataproc.v1.OrderedJob build() { @java.lang.Override public com.google.cloud.dataproc.v1.OrderedJob buildPartial() { - com.google.cloud.dataproc.v1.OrderedJob result = new com.google.cloud.dataproc.v1.OrderedJob(this); + com.google.cloud.dataproc.v1.OrderedJob result = + new com.google.cloud.dataproc.v1.OrderedJob(this); int from_bitField0_ = bitField0_; result.stepId_ = stepId_; if (jobTypeCase_ == 2) { @@ -1273,38 +1440,39 @@ public com.google.cloud.dataproc.v1.OrderedJob buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.OrderedJob) { - return mergeFrom((com.google.cloud.dataproc.v1.OrderedJob)other); + return mergeFrom((com.google.cloud.dataproc.v1.OrderedJob) other); } else { super.mergeFrom(other); return this; @@ -1317,8 +1485,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.OrderedJob other) { stepId_ = other.stepId_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasScheduling()) { mergeScheduling(other.getScheduling()); } @@ -1333,41 +1500,50 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.OrderedJob other) { onChanged(); } switch (other.getJobTypeCase()) { - case HADOOP_JOB: { - mergeHadoopJob(other.getHadoopJob()); - break; - } - case SPARK_JOB: { - mergeSparkJob(other.getSparkJob()); - break; - } - case PYSPARK_JOB: { - mergePysparkJob(other.getPysparkJob()); - break; - } - case HIVE_JOB: { - mergeHiveJob(other.getHiveJob()); - break; - } - case PIG_JOB: { - mergePigJob(other.getPigJob()); - break; - } - case SPARK_R_JOB: { - mergeSparkRJob(other.getSparkRJob()); - break; - } - case SPARK_SQL_JOB: { - mergeSparkSqlJob(other.getSparkSqlJob()); - break; - } - case PRESTO_JOB: { - mergePrestoJob(other.getPrestoJob()); - break; - } - case JOBTYPE_NOT_SET: { - break; - } + case HADOOP_JOB: + { + mergeHadoopJob(other.getHadoopJob()); + break; + } + case SPARK_JOB: + { + mergeSparkJob(other.getSparkJob()); + break; + } + case PYSPARK_JOB: + { + mergePysparkJob(other.getPysparkJob()); + break; + } + case HIVE_JOB: + { + mergeHiveJob(other.getHiveJob()); + break; + } + case PIG_JOB: + { + mergePigJob(other.getPigJob()); + break; + } + case SPARK_R_JOB: + { + mergeSparkRJob(other.getSparkRJob()); + break; + } + case SPARK_SQL_JOB: + { + mergeSparkSqlJob(other.getSparkSqlJob()); + break; + } + case PRESTO_JOB: + { + mergePrestoJob(other.getPrestoJob()); + break; + } + case JOBTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1395,94 +1571,91 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - stepId_ = input.readStringRequireUtf8(); + case 10: + { + stepId_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getHadoopJobFieldBuilder().getBuilder(), - extensionRegistry); - jobTypeCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getSparkJobFieldBuilder().getBuilder(), - extensionRegistry); - jobTypeCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getPysparkJobFieldBuilder().getBuilder(), - extensionRegistry); - jobTypeCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getHiveJobFieldBuilder().getBuilder(), - extensionRegistry); - jobTypeCase_ = 5; - break; - } // case 42 - case 50: { - input.readMessage( - getPigJobFieldBuilder().getBuilder(), - extensionRegistry); - jobTypeCase_ = 6; - break; - } // case 50 - case 58: { - input.readMessage( - getSparkSqlJobFieldBuilder().getBuilder(), - extensionRegistry); - jobTypeCase_ = 7; - break; - } // case 58 - case 66: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 66 - case 74: { - input.readMessage( - getSchedulingFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getHadoopJobFieldBuilder().getBuilder(), extensionRegistry); + jobTypeCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getSparkJobFieldBuilder().getBuilder(), extensionRegistry); + jobTypeCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getPysparkJobFieldBuilder().getBuilder(), extensionRegistry); + jobTypeCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getHiveJobFieldBuilder().getBuilder(), extensionRegistry); + jobTypeCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getPigJobFieldBuilder().getBuilder(), extensionRegistry); + jobTypeCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getSparkSqlJobFieldBuilder().getBuilder(), extensionRegistry); + jobTypeCase_ = 7; + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 66 + case 74: + { + input.readMessage(getSchedulingFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 74 - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.add(s); - break; - } // case 82 - case 90: { - input.readMessage( - getSparkRJobFieldBuilder().getBuilder(), - extensionRegistry); - jobTypeCase_ = 11; - break; - } // case 90 - case 98: { - input.readMessage( - getPrestoJobFieldBuilder().getBuilder(), - extensionRegistry); - jobTypeCase_ = 12; - break; - } // case 98 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePrerequisiteStepIdsIsMutable(); + prerequisiteStepIds_.add(s); + break; + } // case 82 + case 90: + { + input.readMessage(getSparkRJobFieldBuilder().getBuilder(), extensionRegistry); + jobTypeCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage(getPrestoJobFieldBuilder().getBuilder(), extensionRegistry); + jobTypeCase_ = 12; + break; + } // case 98 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1492,12 +1665,12 @@ public Builder mergeFrom( } // finally return this; } + private int jobTypeCase_ = 0; private java.lang.Object jobType_; - public JobTypeCase - getJobTypeCase() { - return JobTypeCase.forNumber( - jobTypeCase_); + + public JobTypeCase getJobTypeCase() { + return JobTypeCase.forNumber(jobTypeCase_); } public Builder clearJobType() { @@ -1511,6 +1684,8 @@ public Builder clearJobType() { private java.lang.Object stepId_ = ""; /** + * + * *
      * Required. The step id. The id must be unique among all jobs
      * within the template.
@@ -1524,13 +1699,13 @@ public Builder clearJobType() {
      * 
* * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The stepId. */ public java.lang.String getStepId() { java.lang.Object ref = stepId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stepId_ = s; return s; @@ -1539,6 +1714,8 @@ public java.lang.String getStepId() { } } /** + * + * *
      * Required. The step id. The id must be unique among all jobs
      * within the template.
@@ -1552,15 +1729,14 @@ public java.lang.String getStepId() {
      * 
* * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for stepId. */ - public com.google.protobuf.ByteString - getStepIdBytes() { + public com.google.protobuf.ByteString getStepIdBytes() { java.lang.Object ref = stepId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stepId_ = b; return b; } else { @@ -1568,6 +1744,8 @@ public java.lang.String getStepId() { } } /** + * + * *
      * Required. The step id. The id must be unique among all jobs
      * within the template.
@@ -1581,20 +1759,22 @@ public java.lang.String getStepId() {
      * 
* * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The stepId to set. * @return This builder for chaining. */ - public Builder setStepId( - java.lang.String value) { + public Builder setStepId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stepId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The step id. The id must be unique among all jobs
      * within the template.
@@ -1608,15 +1788,18 @@ public Builder setStepId(
      * 
* * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearStepId() { - + stepId_ = getDefaultInstance().getStepId(); onChanged(); return this; } /** + * + * *
      * Required. The step id. The id must be unique among all jobs
      * within the template.
@@ -1630,29 +1813,37 @@ public Builder clearStepId() {
      * 
* * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for stepId to set. * @return This builder for chaining. */ - public Builder setStepIdBytes( - com.google.protobuf.ByteString value) { + public Builder setStepIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stepId_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HadoopJob, com.google.cloud.dataproc.v1.HadoopJob.Builder, com.google.cloud.dataproc.v1.HadoopJobOrBuilder> hadoopJobBuilder_; + com.google.cloud.dataproc.v1.HadoopJob, + com.google.cloud.dataproc.v1.HadoopJob.Builder, + com.google.cloud.dataproc.v1.HadoopJobOrBuilder> + hadoopJobBuilder_; /** + * + * *
      * Optional. Job is a Hadoop job.
      * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the hadoopJob field is set. */ @java.lang.Override @@ -1660,11 +1851,16 @@ public boolean hasHadoopJob() { return jobTypeCase_ == 2; } /** + * + * *
      * Optional. Job is a Hadoop job.
      * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The hadoopJob. */ @java.lang.Override @@ -1682,11 +1878,15 @@ public com.google.cloud.dataproc.v1.HadoopJob getHadoopJob() { } } /** + * + * *
      * Optional. Job is a Hadoop job.
      * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { if (hadoopJobBuilder_ == null) { @@ -1702,14 +1902,17 @@ public Builder setHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { return this; } /** + * + * *
      * Optional. Job is a Hadoop job.
      * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setHadoopJob( - com.google.cloud.dataproc.v1.HadoopJob.Builder builderForValue) { + public Builder setHadoopJob(com.google.cloud.dataproc.v1.HadoopJob.Builder builderForValue) { if (hadoopJobBuilder_ == null) { jobType_ = builderForValue.build(); onChanged(); @@ -1720,18 +1923,25 @@ public Builder setHadoopJob( return this; } /** + * + * *
      * Optional. Job is a Hadoop job.
      * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { if (hadoopJobBuilder_ == null) { - if (jobTypeCase_ == 2 && - jobType_ != com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance()) { - jobType_ = com.google.cloud.dataproc.v1.HadoopJob.newBuilder((com.google.cloud.dataproc.v1.HadoopJob) jobType_) - .mergeFrom(value).buildPartial(); + if (jobTypeCase_ == 2 + && jobType_ != com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance()) { + jobType_ = + com.google.cloud.dataproc.v1.HadoopJob.newBuilder( + (com.google.cloud.dataproc.v1.HadoopJob) jobType_) + .mergeFrom(value) + .buildPartial(); } else { jobType_ = value; } @@ -1747,11 +1957,15 @@ public Builder mergeHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { return this; } /** + * + * *
      * Optional. Job is a Hadoop job.
      * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearHadoopJob() { if (hadoopJobBuilder_ == null) { @@ -1770,21 +1984,29 @@ public Builder clearHadoopJob() { return this; } /** + * + * *
      * Optional. Job is a Hadoop job.
      * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.HadoopJob.Builder getHadoopJobBuilder() { return getHadoopJobFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Job is a Hadoop job.
      * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder() { @@ -1798,39 +2020,57 @@ public com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder() { } } /** + * + * *
      * Optional. Job is a Hadoop job.
      * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HadoopJob, com.google.cloud.dataproc.v1.HadoopJob.Builder, com.google.cloud.dataproc.v1.HadoopJobOrBuilder> + com.google.cloud.dataproc.v1.HadoopJob, + com.google.cloud.dataproc.v1.HadoopJob.Builder, + com.google.cloud.dataproc.v1.HadoopJobOrBuilder> getHadoopJobFieldBuilder() { if (hadoopJobBuilder_ == null) { if (!(jobTypeCase_ == 2)) { jobType_ = com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); } - hadoopJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HadoopJob, com.google.cloud.dataproc.v1.HadoopJob.Builder, com.google.cloud.dataproc.v1.HadoopJobOrBuilder>( + hadoopJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.HadoopJob, + com.google.cloud.dataproc.v1.HadoopJob.Builder, + com.google.cloud.dataproc.v1.HadoopJobOrBuilder>( (com.google.cloud.dataproc.v1.HadoopJob) jobType_, getParentForChildren(), isClean()); jobType_ = null; } jobTypeCase_ = 2; - onChanged();; + onChanged(); + ; return hadoopJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkJob, com.google.cloud.dataproc.v1.SparkJob.Builder, com.google.cloud.dataproc.v1.SparkJobOrBuilder> sparkJobBuilder_; + com.google.cloud.dataproc.v1.SparkJob, + com.google.cloud.dataproc.v1.SparkJob.Builder, + com.google.cloud.dataproc.v1.SparkJobOrBuilder> + sparkJobBuilder_; /** + * + * *
      * Optional. Job is a Spark job.
      * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkJob field is set. */ @java.lang.Override @@ -1838,11 +2078,16 @@ public boolean hasSparkJob() { return jobTypeCase_ == 3; } /** + * + * *
      * Optional. Job is a Spark job.
      * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkJob. */ @java.lang.Override @@ -1860,11 +2105,15 @@ public com.google.cloud.dataproc.v1.SparkJob getSparkJob() { } } /** + * + * *
      * Optional. Job is a Spark job.
      * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { if (sparkJobBuilder_ == null) { @@ -1880,14 +2129,17 @@ public Builder setSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { return this; } /** + * + * *
      * Optional. Job is a Spark job.
      * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSparkJob( - com.google.cloud.dataproc.v1.SparkJob.Builder builderForValue) { + public Builder setSparkJob(com.google.cloud.dataproc.v1.SparkJob.Builder builderForValue) { if (sparkJobBuilder_ == null) { jobType_ = builderForValue.build(); onChanged(); @@ -1898,18 +2150,25 @@ public Builder setSparkJob( return this; } /** + * + * *
      * Optional. Job is a Spark job.
      * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { if (sparkJobBuilder_ == null) { - if (jobTypeCase_ == 3 && - jobType_ != com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance()) { - jobType_ = com.google.cloud.dataproc.v1.SparkJob.newBuilder((com.google.cloud.dataproc.v1.SparkJob) jobType_) - .mergeFrom(value).buildPartial(); + if (jobTypeCase_ == 3 + && jobType_ != com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance()) { + jobType_ = + com.google.cloud.dataproc.v1.SparkJob.newBuilder( + (com.google.cloud.dataproc.v1.SparkJob) jobType_) + .mergeFrom(value) + .buildPartial(); } else { jobType_ = value; } @@ -1925,11 +2184,15 @@ public Builder mergeSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { return this; } /** + * + * *
      * Optional. Job is a Spark job.
      * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSparkJob() { if (sparkJobBuilder_ == null) { @@ -1948,21 +2211,29 @@ public Builder clearSparkJob() { return this; } /** + * + * *
      * Optional. Job is a Spark job.
      * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.SparkJob.Builder getSparkJobBuilder() { return getSparkJobFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Job is a Spark job.
      * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder() { @@ -1976,39 +2247,57 @@ public com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder() { } } /** + * + * *
      * Optional. Job is a Spark job.
      * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkJob, com.google.cloud.dataproc.v1.SparkJob.Builder, com.google.cloud.dataproc.v1.SparkJobOrBuilder> + com.google.cloud.dataproc.v1.SparkJob, + com.google.cloud.dataproc.v1.SparkJob.Builder, + com.google.cloud.dataproc.v1.SparkJobOrBuilder> getSparkJobFieldBuilder() { if (sparkJobBuilder_ == null) { if (!(jobTypeCase_ == 3)) { jobType_ = com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); } - sparkJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkJob, com.google.cloud.dataproc.v1.SparkJob.Builder, com.google.cloud.dataproc.v1.SparkJobOrBuilder>( + sparkJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkJob, + com.google.cloud.dataproc.v1.SparkJob.Builder, + com.google.cloud.dataproc.v1.SparkJobOrBuilder>( (com.google.cloud.dataproc.v1.SparkJob) jobType_, getParentForChildren(), isClean()); jobType_ = null; } jobTypeCase_ = 3; - onChanged();; + onChanged(); + ; return sparkJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkJob, com.google.cloud.dataproc.v1.PySparkJob.Builder, com.google.cloud.dataproc.v1.PySparkJobOrBuilder> pysparkJobBuilder_; + com.google.cloud.dataproc.v1.PySparkJob, + com.google.cloud.dataproc.v1.PySparkJob.Builder, + com.google.cloud.dataproc.v1.PySparkJobOrBuilder> + pysparkJobBuilder_; /** + * + * *
      * Optional. Job is a PySpark job.
      * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pysparkJob field is set. */ @java.lang.Override @@ -2016,11 +2305,16 @@ public boolean hasPysparkJob() { return jobTypeCase_ == 4; } /** + * + * *
      * Optional. Job is a PySpark job.
      * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pysparkJob. */ @java.lang.Override @@ -2038,11 +2332,15 @@ public com.google.cloud.dataproc.v1.PySparkJob getPysparkJob() { } } /** + * + * *
      * Optional. Job is a PySpark job.
      * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { if (pysparkJobBuilder_ == null) { @@ -2058,14 +2356,17 @@ public Builder setPysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { return this; } /** + * + * *
      * Optional. Job is a PySpark job.
      * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPysparkJob( - com.google.cloud.dataproc.v1.PySparkJob.Builder builderForValue) { + public Builder setPysparkJob(com.google.cloud.dataproc.v1.PySparkJob.Builder builderForValue) { if (pysparkJobBuilder_ == null) { jobType_ = builderForValue.build(); onChanged(); @@ -2076,18 +2377,25 @@ public Builder setPysparkJob( return this; } /** + * + * *
      * Optional. Job is a PySpark job.
      * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { if (pysparkJobBuilder_ == null) { - if (jobTypeCase_ == 4 && - jobType_ != com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance()) { - jobType_ = com.google.cloud.dataproc.v1.PySparkJob.newBuilder((com.google.cloud.dataproc.v1.PySparkJob) jobType_) - .mergeFrom(value).buildPartial(); + if (jobTypeCase_ == 4 + && jobType_ != com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance()) { + jobType_ = + com.google.cloud.dataproc.v1.PySparkJob.newBuilder( + (com.google.cloud.dataproc.v1.PySparkJob) jobType_) + .mergeFrom(value) + .buildPartial(); } else { jobType_ = value; } @@ -2103,11 +2411,15 @@ public Builder mergePysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { return this; } /** + * + * *
      * Optional. Job is a PySpark job.
      * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPysparkJob() { if (pysparkJobBuilder_ == null) { @@ -2126,21 +2438,29 @@ public Builder clearPysparkJob() { return this; } /** + * + * *
      * Optional. Job is a PySpark job.
      * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.PySparkJob.Builder getPysparkJobBuilder() { return getPysparkJobFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Job is a PySpark job.
      * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder() { @@ -2154,39 +2474,57 @@ public com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder() } } /** + * + * *
      * Optional. Job is a PySpark job.
      * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkJob, com.google.cloud.dataproc.v1.PySparkJob.Builder, com.google.cloud.dataproc.v1.PySparkJobOrBuilder> + com.google.cloud.dataproc.v1.PySparkJob, + com.google.cloud.dataproc.v1.PySparkJob.Builder, + com.google.cloud.dataproc.v1.PySparkJobOrBuilder> getPysparkJobFieldBuilder() { if (pysparkJobBuilder_ == null) { if (!(jobTypeCase_ == 4)) { jobType_ = com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); } - pysparkJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkJob, com.google.cloud.dataproc.v1.PySparkJob.Builder, com.google.cloud.dataproc.v1.PySparkJobOrBuilder>( + pysparkJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PySparkJob, + com.google.cloud.dataproc.v1.PySparkJob.Builder, + com.google.cloud.dataproc.v1.PySparkJobOrBuilder>( (com.google.cloud.dataproc.v1.PySparkJob) jobType_, getParentForChildren(), isClean()); jobType_ = null; } jobTypeCase_ = 4; - onChanged();; + onChanged(); + ; return pysparkJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HiveJob, com.google.cloud.dataproc.v1.HiveJob.Builder, com.google.cloud.dataproc.v1.HiveJobOrBuilder> hiveJobBuilder_; + com.google.cloud.dataproc.v1.HiveJob, + com.google.cloud.dataproc.v1.HiveJob.Builder, + com.google.cloud.dataproc.v1.HiveJobOrBuilder> + hiveJobBuilder_; /** + * + * *
      * Optional. Job is a Hive job.
      * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the hiveJob field is set. */ @java.lang.Override @@ -2194,11 +2532,16 @@ public boolean hasHiveJob() { return jobTypeCase_ == 5; } /** + * + * *
      * Optional. Job is a Hive job.
      * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The hiveJob. */ @java.lang.Override @@ -2216,11 +2559,15 @@ public com.google.cloud.dataproc.v1.HiveJob getHiveJob() { } } /** + * + * *
      * Optional. Job is a Hive job.
      * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { if (hiveJobBuilder_ == null) { @@ -2236,14 +2583,17 @@ public Builder setHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { return this; } /** + * + * *
      * Optional. Job is a Hive job.
      * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setHiveJob( - com.google.cloud.dataproc.v1.HiveJob.Builder builderForValue) { + public Builder setHiveJob(com.google.cloud.dataproc.v1.HiveJob.Builder builderForValue) { if (hiveJobBuilder_ == null) { jobType_ = builderForValue.build(); onChanged(); @@ -2254,18 +2604,25 @@ public Builder setHiveJob( return this; } /** + * + * *
      * Optional. Job is a Hive job.
      * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { if (hiveJobBuilder_ == null) { - if (jobTypeCase_ == 5 && - jobType_ != com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance()) { - jobType_ = com.google.cloud.dataproc.v1.HiveJob.newBuilder((com.google.cloud.dataproc.v1.HiveJob) jobType_) - .mergeFrom(value).buildPartial(); + if (jobTypeCase_ == 5 + && jobType_ != com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance()) { + jobType_ = + com.google.cloud.dataproc.v1.HiveJob.newBuilder( + (com.google.cloud.dataproc.v1.HiveJob) jobType_) + .mergeFrom(value) + .buildPartial(); } else { jobType_ = value; } @@ -2281,11 +2638,15 @@ public Builder mergeHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { return this; } /** + * + * *
      * Optional. Job is a Hive job.
      * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearHiveJob() { if (hiveJobBuilder_ == null) { @@ -2304,21 +2665,29 @@ public Builder clearHiveJob() { return this; } /** + * + * *
      * Optional. Job is a Hive job.
      * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.HiveJob.Builder getHiveJobBuilder() { return getHiveJobFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Job is a Hive job.
      * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder() { @@ -2332,39 +2701,54 @@ public com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder() { } } /** + * + * *
      * Optional. Job is a Hive job.
      * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HiveJob, com.google.cloud.dataproc.v1.HiveJob.Builder, com.google.cloud.dataproc.v1.HiveJobOrBuilder> + com.google.cloud.dataproc.v1.HiveJob, + com.google.cloud.dataproc.v1.HiveJob.Builder, + com.google.cloud.dataproc.v1.HiveJobOrBuilder> getHiveJobFieldBuilder() { if (hiveJobBuilder_ == null) { if (!(jobTypeCase_ == 5)) { jobType_ = com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); } - hiveJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HiveJob, com.google.cloud.dataproc.v1.HiveJob.Builder, com.google.cloud.dataproc.v1.HiveJobOrBuilder>( - (com.google.cloud.dataproc.v1.HiveJob) jobType_, - getParentForChildren(), - isClean()); + hiveJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.HiveJob, + com.google.cloud.dataproc.v1.HiveJob.Builder, + com.google.cloud.dataproc.v1.HiveJobOrBuilder>( + (com.google.cloud.dataproc.v1.HiveJob) jobType_, getParentForChildren(), isClean()); jobType_ = null; } jobTypeCase_ = 5; - onChanged();; + onChanged(); + ; return hiveJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PigJob, com.google.cloud.dataproc.v1.PigJob.Builder, com.google.cloud.dataproc.v1.PigJobOrBuilder> pigJobBuilder_; + com.google.cloud.dataproc.v1.PigJob, + com.google.cloud.dataproc.v1.PigJob.Builder, + com.google.cloud.dataproc.v1.PigJobOrBuilder> + pigJobBuilder_; /** + * + * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pigJob field is set. */ @java.lang.Override @@ -2372,11 +2756,15 @@ public boolean hasPigJob() { return jobTypeCase_ == 6; } /** + * + * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pigJob. */ @java.lang.Override @@ -2394,11 +2782,14 @@ public com.google.cloud.dataproc.v1.PigJob getPigJob() { } } /** + * + * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPigJob(com.google.cloud.dataproc.v1.PigJob value) { if (pigJobBuilder_ == null) { @@ -2414,14 +2805,16 @@ public Builder setPigJob(com.google.cloud.dataproc.v1.PigJob value) { return this; } /** + * + * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPigJob( - com.google.cloud.dataproc.v1.PigJob.Builder builderForValue) { + public Builder setPigJob(com.google.cloud.dataproc.v1.PigJob.Builder builderForValue) { if (pigJobBuilder_ == null) { jobType_ = builderForValue.build(); onChanged(); @@ -2432,18 +2825,24 @@ public Builder setPigJob( return this; } /** + * + * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePigJob(com.google.cloud.dataproc.v1.PigJob value) { if (pigJobBuilder_ == null) { - if (jobTypeCase_ == 6 && - jobType_ != com.google.cloud.dataproc.v1.PigJob.getDefaultInstance()) { - jobType_ = com.google.cloud.dataproc.v1.PigJob.newBuilder((com.google.cloud.dataproc.v1.PigJob) jobType_) - .mergeFrom(value).buildPartial(); + if (jobTypeCase_ == 6 + && jobType_ != com.google.cloud.dataproc.v1.PigJob.getDefaultInstance()) { + jobType_ = + com.google.cloud.dataproc.v1.PigJob.newBuilder( + (com.google.cloud.dataproc.v1.PigJob) jobType_) + .mergeFrom(value) + .buildPartial(); } else { jobType_ = value; } @@ -2459,11 +2858,14 @@ public Builder mergePigJob(com.google.cloud.dataproc.v1.PigJob value) { return this; } /** + * + * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPigJob() { if (pigJobBuilder_ == null) { @@ -2482,21 +2884,27 @@ public Builder clearPigJob() { return this; } /** + * + * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.PigJob.Builder getPigJobBuilder() { return getPigJobFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder() { @@ -2510,39 +2918,54 @@ public com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder() { } } /** + * + * *
      * Optional. Job is a Pig job.
      * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PigJob, com.google.cloud.dataproc.v1.PigJob.Builder, com.google.cloud.dataproc.v1.PigJobOrBuilder> + com.google.cloud.dataproc.v1.PigJob, + com.google.cloud.dataproc.v1.PigJob.Builder, + com.google.cloud.dataproc.v1.PigJobOrBuilder> getPigJobFieldBuilder() { if (pigJobBuilder_ == null) { if (!(jobTypeCase_ == 6)) { jobType_ = com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); } - pigJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PigJob, com.google.cloud.dataproc.v1.PigJob.Builder, com.google.cloud.dataproc.v1.PigJobOrBuilder>( - (com.google.cloud.dataproc.v1.PigJob) jobType_, - getParentForChildren(), - isClean()); + pigJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PigJob, + com.google.cloud.dataproc.v1.PigJob.Builder, + com.google.cloud.dataproc.v1.PigJobOrBuilder>( + (com.google.cloud.dataproc.v1.PigJob) jobType_, getParentForChildren(), isClean()); jobType_ = null; } jobTypeCase_ = 6; - onChanged();; + onChanged(); + ; return pigJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRJob, com.google.cloud.dataproc.v1.SparkRJob.Builder, com.google.cloud.dataproc.v1.SparkRJobOrBuilder> sparkRJobBuilder_; + com.google.cloud.dataproc.v1.SparkRJob, + com.google.cloud.dataproc.v1.SparkRJob.Builder, + com.google.cloud.dataproc.v1.SparkRJobOrBuilder> + sparkRJobBuilder_; /** + * + * *
      * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkRJob field is set. */ @java.lang.Override @@ -2550,11 +2973,16 @@ public boolean hasSparkRJob() { return jobTypeCase_ == 11; } /** + * + * *
      * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkRJob. */ @java.lang.Override @@ -2572,11 +3000,15 @@ public com.google.cloud.dataproc.v1.SparkRJob getSparkRJob() { } } /** + * + * *
      * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { if (sparkRJobBuilder_ == null) { @@ -2592,14 +3024,17 @@ public Builder setSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { return this; } /** + * + * *
      * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSparkRJob( - com.google.cloud.dataproc.v1.SparkRJob.Builder builderForValue) { + public Builder setSparkRJob(com.google.cloud.dataproc.v1.SparkRJob.Builder builderForValue) { if (sparkRJobBuilder_ == null) { jobType_ = builderForValue.build(); onChanged(); @@ -2610,18 +3045,25 @@ public Builder setSparkRJob( return this; } /** + * + * *
      * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { if (sparkRJobBuilder_ == null) { - if (jobTypeCase_ == 11 && - jobType_ != com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance()) { - jobType_ = com.google.cloud.dataproc.v1.SparkRJob.newBuilder((com.google.cloud.dataproc.v1.SparkRJob) jobType_) - .mergeFrom(value).buildPartial(); + if (jobTypeCase_ == 11 + && jobType_ != com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance()) { + jobType_ = + com.google.cloud.dataproc.v1.SparkRJob.newBuilder( + (com.google.cloud.dataproc.v1.SparkRJob) jobType_) + .mergeFrom(value) + .buildPartial(); } else { jobType_ = value; } @@ -2637,11 +3079,15 @@ public Builder mergeSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { return this; } /** + * + * *
      * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSparkRJob() { if (sparkRJobBuilder_ == null) { @@ -2660,21 +3106,29 @@ public Builder clearSparkRJob() { return this; } /** + * + * *
      * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.SparkRJob.Builder getSparkRJobBuilder() { return getSparkRJobFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder() { @@ -2688,39 +3142,57 @@ public com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder() { } } /** + * + * *
      * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRJob, com.google.cloud.dataproc.v1.SparkRJob.Builder, com.google.cloud.dataproc.v1.SparkRJobOrBuilder> + com.google.cloud.dataproc.v1.SparkRJob, + com.google.cloud.dataproc.v1.SparkRJob.Builder, + com.google.cloud.dataproc.v1.SparkRJobOrBuilder> getSparkRJobFieldBuilder() { if (sparkRJobBuilder_ == null) { if (!(jobTypeCase_ == 11)) { jobType_ = com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); } - sparkRJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRJob, com.google.cloud.dataproc.v1.SparkRJob.Builder, com.google.cloud.dataproc.v1.SparkRJobOrBuilder>( + sparkRJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkRJob, + com.google.cloud.dataproc.v1.SparkRJob.Builder, + com.google.cloud.dataproc.v1.SparkRJobOrBuilder>( (com.google.cloud.dataproc.v1.SparkRJob) jobType_, getParentForChildren(), isClean()); jobType_ = null; } jobTypeCase_ = 11; - onChanged();; + onChanged(); + ; return sparkRJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlJob, com.google.cloud.dataproc.v1.SparkSqlJob.Builder, com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> sparkSqlJobBuilder_; + com.google.cloud.dataproc.v1.SparkSqlJob, + com.google.cloud.dataproc.v1.SparkSqlJob.Builder, + com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> + sparkSqlJobBuilder_; /** + * + * *
      * Optional. Job is a SparkSql job.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkSqlJob field is set. */ @java.lang.Override @@ -2728,11 +3200,16 @@ public boolean hasSparkSqlJob() { return jobTypeCase_ == 7; } /** + * + * *
      * Optional. Job is a SparkSql job.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkSqlJob. */ @java.lang.Override @@ -2750,11 +3227,15 @@ public com.google.cloud.dataproc.v1.SparkSqlJob getSparkSqlJob() { } } /** + * + * *
      * Optional. Job is a SparkSql job.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) { if (sparkSqlJobBuilder_ == null) { @@ -2770,11 +3251,15 @@ public Builder setSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) { return this; } /** + * + * *
      * Optional. Job is a SparkSql job.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSparkSqlJob( com.google.cloud.dataproc.v1.SparkSqlJob.Builder builderForValue) { @@ -2788,18 +3273,25 @@ public Builder setSparkSqlJob( return this; } /** + * + * *
      * Optional. Job is a SparkSql job.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) { if (sparkSqlJobBuilder_ == null) { - if (jobTypeCase_ == 7 && - jobType_ != com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance()) { - jobType_ = com.google.cloud.dataproc.v1.SparkSqlJob.newBuilder((com.google.cloud.dataproc.v1.SparkSqlJob) jobType_) - .mergeFrom(value).buildPartial(); + if (jobTypeCase_ == 7 + && jobType_ != com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance()) { + jobType_ = + com.google.cloud.dataproc.v1.SparkSqlJob.newBuilder( + (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_) + .mergeFrom(value) + .buildPartial(); } else { jobType_ = value; } @@ -2815,11 +3307,15 @@ public Builder mergeSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) return this; } /** + * + * *
      * Optional. Job is a SparkSql job.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSparkSqlJob() { if (sparkSqlJobBuilder_ == null) { @@ -2838,21 +3334,29 @@ public Builder clearSparkSqlJob() { return this; } /** + * + * *
      * Optional. Job is a SparkSql job.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.SparkSqlJob.Builder getSparkSqlJobBuilder() { return getSparkSqlJobFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Job is a SparkSql job.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder() { @@ -2866,39 +3370,57 @@ public com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder } } /** + * + * *
      * Optional. Job is a SparkSql job.
      * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlJob, com.google.cloud.dataproc.v1.SparkSqlJob.Builder, com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> + com.google.cloud.dataproc.v1.SparkSqlJob, + com.google.cloud.dataproc.v1.SparkSqlJob.Builder, + com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> getSparkSqlJobFieldBuilder() { if (sparkSqlJobBuilder_ == null) { if (!(jobTypeCase_ == 7)) { jobType_ = com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); } - sparkSqlJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlJob, com.google.cloud.dataproc.v1.SparkSqlJob.Builder, com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder>( + sparkSqlJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkSqlJob, + com.google.cloud.dataproc.v1.SparkSqlJob.Builder, + com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder>( (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_, getParentForChildren(), isClean()); jobType_ = null; } jobTypeCase_ = 7; - onChanged();; + onChanged(); + ; return sparkSqlJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PrestoJob, com.google.cloud.dataproc.v1.PrestoJob.Builder, com.google.cloud.dataproc.v1.PrestoJobOrBuilder> prestoJobBuilder_; + com.google.cloud.dataproc.v1.PrestoJob, + com.google.cloud.dataproc.v1.PrestoJob.Builder, + com.google.cloud.dataproc.v1.PrestoJobOrBuilder> + prestoJobBuilder_; /** + * + * *
      * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the prestoJob field is set. */ @java.lang.Override @@ -2906,11 +3428,16 @@ public boolean hasPrestoJob() { return jobTypeCase_ == 12; } /** + * + * *
      * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The prestoJob. */ @java.lang.Override @@ -2928,11 +3455,15 @@ public com.google.cloud.dataproc.v1.PrestoJob getPrestoJob() { } } /** + * + * *
      * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { if (prestoJobBuilder_ == null) { @@ -2948,14 +3479,17 @@ public Builder setPrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { return this; } /** + * + * *
      * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPrestoJob( - com.google.cloud.dataproc.v1.PrestoJob.Builder builderForValue) { + public Builder setPrestoJob(com.google.cloud.dataproc.v1.PrestoJob.Builder builderForValue) { if (prestoJobBuilder_ == null) { jobType_ = builderForValue.build(); onChanged(); @@ -2966,18 +3500,25 @@ public Builder setPrestoJob( return this; } /** + * + * *
      * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { if (prestoJobBuilder_ == null) { - if (jobTypeCase_ == 12 && - jobType_ != com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance()) { - jobType_ = com.google.cloud.dataproc.v1.PrestoJob.newBuilder((com.google.cloud.dataproc.v1.PrestoJob) jobType_) - .mergeFrom(value).buildPartial(); + if (jobTypeCase_ == 12 + && jobType_ != com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance()) { + jobType_ = + com.google.cloud.dataproc.v1.PrestoJob.newBuilder( + (com.google.cloud.dataproc.v1.PrestoJob) jobType_) + .mergeFrom(value) + .buildPartial(); } else { jobType_ = value; } @@ -2993,11 +3534,15 @@ public Builder mergePrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { return this; } /** + * + * *
      * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPrestoJob() { if (prestoJobBuilder_ == null) { @@ -3016,21 +3561,29 @@ public Builder clearPrestoJob() { return this; } /** + * + * *
      * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.PrestoJob.Builder getPrestoJobBuilder() { return getPrestoJobFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder() { @@ -3044,47 +3597,56 @@ public com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder() { } } /** + * + * *
      * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PrestoJob, com.google.cloud.dataproc.v1.PrestoJob.Builder, com.google.cloud.dataproc.v1.PrestoJobOrBuilder> + com.google.cloud.dataproc.v1.PrestoJob, + com.google.cloud.dataproc.v1.PrestoJob.Builder, + com.google.cloud.dataproc.v1.PrestoJobOrBuilder> getPrestoJobFieldBuilder() { if (prestoJobBuilder_ == null) { if (!(jobTypeCase_ == 12)) { jobType_ = com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); } - prestoJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PrestoJob, com.google.cloud.dataproc.v1.PrestoJob.Builder, com.google.cloud.dataproc.v1.PrestoJobOrBuilder>( + prestoJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PrestoJob, + com.google.cloud.dataproc.v1.PrestoJob.Builder, + com.google.cloud.dataproc.v1.PrestoJobOrBuilder>( (com.google.cloud.dataproc.v1.PrestoJob) jobType_, getParentForChildren(), isClean()); jobType_ = null; } jobTypeCase_ = 12; - onChanged();; + onChanged(); + ; return prestoJobBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3096,6 +3658,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels to associate with this job.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -3108,22 +3672,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-
     @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();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this job.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -3137,11 +3701,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this job.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -3155,16 +3720,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this job.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -3178,12 +3744,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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();
       }
@@ -3191,11 +3756,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this job.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -3208,23 +3774,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    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();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this job.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -3237,19 +3801,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this job.
      * Label keys must be between 1 and 63 characters long, and must conform to
@@ -3262,49 +3827,65 @@ public Builder putLabels(
      *
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    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.dataproc.v1.JobScheduling scheduling_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.dataproc.v1.JobScheduling, com.google.cloud.dataproc.v1.JobScheduling.Builder, com.google.cloud.dataproc.v1.JobSchedulingOrBuilder> schedulingBuilder_;
+            com.google.cloud.dataproc.v1.JobScheduling,
+            com.google.cloud.dataproc.v1.JobScheduling.Builder,
+            com.google.cloud.dataproc.v1.JobSchedulingOrBuilder>
+        schedulingBuilder_;
     /**
+     *
+     *
      * 
      * Optional. Job scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the scheduling field is set. */ public boolean hasScheduling() { return schedulingBuilder_ != null || scheduling_ != null; } /** + * + * *
      * Optional. Job scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The scheduling. */ public com.google.cloud.dataproc.v1.JobScheduling getScheduling() { if (schedulingBuilder_ == null) { - return scheduling_ == null ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() : scheduling_; + return scheduling_ == null + ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() + : scheduling_; } else { return schedulingBuilder_.getMessage(); } } /** + * + * *
      * Optional. Job scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setScheduling(com.google.cloud.dataproc.v1.JobScheduling value) { if (schedulingBuilder_ == null) { @@ -3320,11 +3901,15 @@ public Builder setScheduling(com.google.cloud.dataproc.v1.JobScheduling value) { return this; } /** + * + * *
      * Optional. Job scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setScheduling( com.google.cloud.dataproc.v1.JobScheduling.Builder builderForValue) { @@ -3338,17 +3923,23 @@ public Builder setScheduling( return this; } /** + * + * *
      * Optional. Job scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeScheduling(com.google.cloud.dataproc.v1.JobScheduling value) { if (schedulingBuilder_ == null) { if (scheduling_ != null) { scheduling_ = - com.google.cloud.dataproc.v1.JobScheduling.newBuilder(scheduling_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.JobScheduling.newBuilder(scheduling_) + .mergeFrom(value) + .buildPartial(); } else { scheduling_ = value; } @@ -3360,11 +3951,15 @@ public Builder mergeScheduling(com.google.cloud.dataproc.v1.JobScheduling value) return this; } /** + * + * *
      * Optional. Job scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearScheduling() { if (schedulingBuilder_ == null) { @@ -3378,92 +3973,121 @@ public Builder clearScheduling() { return this; } /** + * + * *
      * Optional. Job scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.JobScheduling.Builder getSchedulingBuilder() { - + onChanged(); return getSchedulingFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Job scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilder() { if (schedulingBuilder_ != null) { return schedulingBuilder_.getMessageOrBuilder(); } else { - return scheduling_ == null ? - com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() : scheduling_; + return scheduling_ == null + ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() + : scheduling_; } } /** + * + * *
      * Optional. Job scheduling configuration.
      * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobScheduling, com.google.cloud.dataproc.v1.JobScheduling.Builder, com.google.cloud.dataproc.v1.JobSchedulingOrBuilder> + com.google.cloud.dataproc.v1.JobScheduling, + com.google.cloud.dataproc.v1.JobScheduling.Builder, + com.google.cloud.dataproc.v1.JobSchedulingOrBuilder> getSchedulingFieldBuilder() { if (schedulingBuilder_ == null) { - schedulingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobScheduling, com.google.cloud.dataproc.v1.JobScheduling.Builder, com.google.cloud.dataproc.v1.JobSchedulingOrBuilder>( - getScheduling(), - getParentForChildren(), - isClean()); + schedulingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.JobScheduling, + com.google.cloud.dataproc.v1.JobScheduling.Builder, + com.google.cloud.dataproc.v1.JobSchedulingOrBuilder>( + getScheduling(), getParentForChildren(), isClean()); scheduling_ = null; } return schedulingBuilder_; } - private com.google.protobuf.LazyStringList prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList prerequisiteStepIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePrerequisiteStepIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { prerequisiteStepIds_ = new com.google.protobuf.LazyStringArrayList(prerequisiteStepIds_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Optional. The optional list of prerequisite job step_ids.
      * If not specified, the job will start at the beginning of workflow.
      * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the prerequisiteStepIds. */ - public com.google.protobuf.ProtocolStringList - getPrerequisiteStepIdsList() { + public com.google.protobuf.ProtocolStringList getPrerequisiteStepIdsList() { return prerequisiteStepIds_.getUnmodifiableView(); } /** + * + * *
      * Optional. The optional list of prerequisite job step_ids.
      * If not specified, the job will start at the beginning of workflow.
      * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of prerequisiteStepIds. */ public int getPrerequisiteStepIdsCount() { return prerequisiteStepIds_.size(); } /** + * + * *
      * Optional. The optional list of prerequisite job step_ids.
      * If not specified, the job will start at the beginning of workflow.
      * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The prerequisiteStepIds at the given index. */ @@ -3471,85 +4095,100 @@ public java.lang.String getPrerequisiteStepIds(int index) { return prerequisiteStepIds_.get(index); } /** + * + * *
      * Optional. The optional list of prerequisite job step_ids.
      * If not specified, the job will start at the beginning of workflow.
      * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the prerequisiteStepIds at the given index. */ - public com.google.protobuf.ByteString - getPrerequisiteStepIdsBytes(int index) { + public com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index) { return prerequisiteStepIds_.getByteString(index); } /** + * + * *
      * Optional. The optional list of prerequisite job step_ids.
      * If not specified, the job will start at the beginning of workflow.
      * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The prerequisiteStepIds to set. * @return This builder for chaining. */ - public Builder setPrerequisiteStepIds( - int index, java.lang.String value) { + public Builder setPrerequisiteStepIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePrerequisiteStepIdsIsMutable(); + throw new NullPointerException(); + } + ensurePrerequisiteStepIdsIsMutable(); prerequisiteStepIds_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. The optional list of prerequisite job step_ids.
      * If not specified, the job will start at the beginning of workflow.
      * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The prerequisiteStepIds to add. * @return This builder for chaining. */ - public Builder addPrerequisiteStepIds( - java.lang.String value) { + public Builder addPrerequisiteStepIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePrerequisiteStepIdsIsMutable(); + throw new NullPointerException(); + } + ensurePrerequisiteStepIdsIsMutable(); prerequisiteStepIds_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. The optional list of prerequisite job step_ids.
      * If not specified, the job will start at the beginning of workflow.
      * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The prerequisiteStepIds to add. * @return This builder for chaining. */ - public Builder addAllPrerequisiteStepIds( - java.lang.Iterable values) { + public Builder addAllPrerequisiteStepIds(java.lang.Iterable values) { ensurePrerequisiteStepIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, prerequisiteStepIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prerequisiteStepIds_); onChanged(); return this; } /** + * + * *
      * Optional. The optional list of prerequisite job step_ids.
      * If not specified, the job will start at the beginning of workflow.
      * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearPrerequisiteStepIds() { @@ -3559,29 +4198,32 @@ public Builder clearPrerequisiteStepIds() { return this; } /** + * + * *
      * Optional. The optional list of prerequisite job step_ids.
      * If not specified, the job will start at the beginning of workflow.
      * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the prerequisiteStepIds to add. * @return This builder for chaining. */ - public Builder addPrerequisiteStepIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addPrerequisiteStepIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePrerequisiteStepIdsIsMutable(); prerequisiteStepIds_.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); } @@ -3591,12 +4233,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.OrderedJob) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.OrderedJob) private static final com.google.cloud.dataproc.v1.OrderedJob DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.OrderedJob(); } @@ -3605,27 +4247,27 @@ public static com.google.cloud.dataproc.v1.OrderedJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrderedJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrderedJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3640,6 +4282,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.OrderedJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java index d261c86d52c9..d810593c65a0 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface OrderedJobOrBuilder extends +public interface OrderedJobOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.OrderedJob) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The step id. The id must be unique among all jobs
    * within the template.
@@ -21,10 +39,13 @@ public interface OrderedJobOrBuilder extends
    * 
* * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The stepId. */ java.lang.String getStepId(); /** + * + * *
    * Required. The step id. The id must be unique among all jobs
    * within the template.
@@ -38,228 +59,336 @@ public interface OrderedJobOrBuilder extends
    * 
* * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for stepId. */ - com.google.protobuf.ByteString - getStepIdBytes(); + com.google.protobuf.ByteString getStepIdBytes(); /** + * + * *
    * Optional. Job is a Hadoop job.
    * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the hadoopJob field is set. */ boolean hasHadoopJob(); /** + * + * *
    * Optional. Job is a Hadoop job.
    * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The hadoopJob. */ com.google.cloud.dataproc.v1.HadoopJob getHadoopJob(); /** + * + * *
    * Optional. Job is a Hadoop job.
    * 
* - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder(); /** + * + * *
    * Optional. Job is a Spark job.
    * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkJob field is set. */ boolean hasSparkJob(); /** + * + * *
    * Optional. Job is a Spark job.
    * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkJob. */ com.google.cloud.dataproc.v1.SparkJob getSparkJob(); /** + * + * *
    * Optional. Job is a Spark job.
    * 
* - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder(); /** + * + * *
    * Optional. Job is a PySpark job.
    * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pysparkJob field is set. */ boolean hasPysparkJob(); /** + * + * *
    * Optional. Job is a PySpark job.
    * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pysparkJob. */ com.google.cloud.dataproc.v1.PySparkJob getPysparkJob(); /** + * + * *
    * Optional. Job is a PySpark job.
    * 
* - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder(); /** + * + * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the hiveJob field is set. */ boolean hasHiveJob(); /** + * + * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The hiveJob. */ com.google.cloud.dataproc.v1.HiveJob getHiveJob(); /** + * + * *
    * Optional. Job is a Hive job.
    * 
* - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder(); /** + * + * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pigJob field is set. */ boolean hasPigJob(); /** + * + * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pigJob. */ com.google.cloud.dataproc.v1.PigJob getPigJob(); /** + * + * *
    * Optional. Job is a Pig job.
    * 
* - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder(); /** + * + * *
    * Optional. Job is a SparkR job.
    * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkRJob field is set. */ boolean hasSparkRJob(); /** + * + * *
    * Optional. Job is a SparkR job.
    * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkRJob. */ com.google.cloud.dataproc.v1.SparkRJob getSparkRJob(); /** + * + * *
    * Optional. Job is a SparkR job.
    * 
* - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder(); /** + * + * *
    * Optional. Job is a SparkSql job.
    * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkSqlJob field is set. */ boolean hasSparkSqlJob(); /** + * + * *
    * Optional. Job is a SparkSql job.
    * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkSqlJob. */ com.google.cloud.dataproc.v1.SparkSqlJob getSparkSqlJob(); /** + * + * *
    * Optional. Job is a SparkSql job.
    * 
* - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder(); /** + * + * *
    * Optional. Job is a Presto job.
    * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the prestoJob field is set. */ boolean hasPrestoJob(); /** + * + * *
    * Optional. Job is a Presto job.
    * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The prestoJob. */ com.google.cloud.dataproc.v1.PrestoJob getPrestoJob(); /** + * + * *
    * Optional. Job is a Presto job.
    * 
* - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder(); /** + * + * *
    * Optional. The labels to associate with this job.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -274,6 +403,8 @@ public interface OrderedJobOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this job.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -286,15 +417,13 @@ public interface OrderedJobOrBuilder extends
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  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();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this job.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -307,9 +436,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this job.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -324,11 +454,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this job.
    * Label keys must be between 1 and 63 characters long, and must conform to
@@ -341,81 +473,107 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. Job scheduling configuration.
    * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the scheduling field is set. */ boolean hasScheduling(); /** + * + * *
    * Optional. Job scheduling configuration.
    * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The scheduling. */ com.google.cloud.dataproc.v1.JobScheduling getScheduling(); /** + * + * *
    * Optional. Job scheduling configuration.
    * 
* - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilder(); /** + * + * *
    * Optional. The optional list of prerequisite job step_ids.
    * If not specified, the job will start at the beginning of workflow.
    * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the prerequisiteStepIds. */ - java.util.List - getPrerequisiteStepIdsList(); + java.util.List getPrerequisiteStepIdsList(); /** + * + * *
    * Optional. The optional list of prerequisite job step_ids.
    * If not specified, the job will start at the beginning of workflow.
    * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of prerequisiteStepIds. */ int getPrerequisiteStepIdsCount(); /** + * + * *
    * Optional. The optional list of prerequisite job step_ids.
    * If not specified, the job will start at the beginning of workflow.
    * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The prerequisiteStepIds at the given index. */ java.lang.String getPrerequisiteStepIds(int index); /** + * + * *
    * Optional. The optional list of prerequisite job step_ids.
    * If not specified, the job will start at the beginning of workflow.
    * 
* - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the prerequisiteStepIds at the given index. */ - com.google.protobuf.ByteString - getPrerequisiteStepIdsBytes(int index); + com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index); public com.google.cloud.dataproc.v1.OrderedJob.JobTypeCase getJobTypeCase(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java similarity index 70% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java index 896c75528aee..8575719d77d1 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java @@ -1,61 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Configuration for parameter validation.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ParameterValidation} */ -public final class ParameterValidation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ParameterValidation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ParameterValidation) ParameterValidationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ParameterValidation.newBuilder() to construct. private ParameterValidation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ParameterValidation() { - } + + private ParameterValidation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ParameterValidation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ParameterValidation_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ParameterValidation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ParameterValidation.class, com.google.cloud.dataproc.v1.ParameterValidation.Builder.class); + com.google.cloud.dataproc.v1.ParameterValidation.class, + com.google.cloud.dataproc.v1.ParameterValidation.Builder.class); } private int validationTypeCase_ = 0; private java.lang.Object validationType_; + public enum ValidationTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { REGEX(1), VALUES(2), VALIDATIONTYPE_NOT_SET(0); private final int value; + private ValidationTypeCase(int value) { this.value = value; } @@ -71,30 +92,36 @@ public static ValidationTypeCase valueOf(int value) { public static ValidationTypeCase forNumber(int value) { switch (value) { - case 1: return REGEX; - case 2: return VALUES; - case 0: return VALIDATIONTYPE_NOT_SET; - default: return null; + case 1: + return REGEX; + case 2: + return VALUES; + case 0: + return VALIDATIONTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ValidationTypeCase - getValidationTypeCase() { - return ValidationTypeCase.forNumber( - validationTypeCase_); + public ValidationTypeCase getValidationTypeCase() { + return ValidationTypeCase.forNumber(validationTypeCase_); } public static final int REGEX_FIELD_NUMBER = 1; /** + * + * *
    * Validation based on regular expressions.
    * 
* * .google.cloud.dataproc.v1.RegexValidation regex = 1; + * * @return Whether the regex field is set. */ @java.lang.Override @@ -102,21 +129,26 @@ public boolean hasRegex() { return validationTypeCase_ == 1; } /** + * + * *
    * Validation based on regular expressions.
    * 
* * .google.cloud.dataproc.v1.RegexValidation regex = 1; + * * @return The regex. */ @java.lang.Override public com.google.cloud.dataproc.v1.RegexValidation getRegex() { if (validationTypeCase_ == 1) { - return (com.google.cloud.dataproc.v1.RegexValidation) validationType_; + return (com.google.cloud.dataproc.v1.RegexValidation) validationType_; } return com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance(); } /** + * + * *
    * Validation based on regular expressions.
    * 
@@ -126,18 +158,21 @@ public com.google.cloud.dataproc.v1.RegexValidation getRegex() { @java.lang.Override public com.google.cloud.dataproc.v1.RegexValidationOrBuilder getRegexOrBuilder() { if (validationTypeCase_ == 1) { - return (com.google.cloud.dataproc.v1.RegexValidation) validationType_; + return (com.google.cloud.dataproc.v1.RegexValidation) validationType_; } return com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance(); } public static final int VALUES_FIELD_NUMBER = 2; /** + * + * *
    * Validation based on a list of allowed values.
    * 
* * .google.cloud.dataproc.v1.ValueValidation values = 2; + * * @return Whether the values field is set. */ @java.lang.Override @@ -145,21 +180,26 @@ public boolean hasValues() { return validationTypeCase_ == 2; } /** + * + * *
    * Validation based on a list of allowed values.
    * 
* * .google.cloud.dataproc.v1.ValueValidation values = 2; + * * @return The values. */ @java.lang.Override public com.google.cloud.dataproc.v1.ValueValidation getValues() { if (validationTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1.ValueValidation) validationType_; + return (com.google.cloud.dataproc.v1.ValueValidation) validationType_; } return com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance(); } /** + * + * *
    * Validation based on a list of allowed values.
    * 
@@ -169,12 +209,13 @@ public com.google.cloud.dataproc.v1.ValueValidation getValues() { @java.lang.Override public com.google.cloud.dataproc.v1.ValueValidationOrBuilder getValuesOrBuilder() { if (validationTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1.ValueValidation) validationType_; + return (com.google.cloud.dataproc.v1.ValueValidation) validationType_; } return com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,8 +227,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (validationTypeCase_ == 1) { output.writeMessage(1, (com.google.cloud.dataproc.v1.RegexValidation) validationType_); } @@ -204,12 +244,14 @@ public int getSerializedSize() { size = 0; if (validationTypeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.dataproc.v1.RegexValidation) validationType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.dataproc.v1.RegexValidation) validationType_); } if (validationTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.dataproc.v1.ValueValidation) validationType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataproc.v1.ValueValidation) validationType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -219,22 +261,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.dataproc.v1.ParameterValidation)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ParameterValidation other = (com.google.cloud.dataproc.v1.ParameterValidation) obj; + com.google.cloud.dataproc.v1.ParameterValidation other = + (com.google.cloud.dataproc.v1.ParameterValidation) obj; if (!getValidationTypeCase().equals(other.getValidationTypeCase())) return false; switch (validationTypeCase_) { case 1: - if (!getRegex() - .equals(other.getRegex())) return false; + if (!getRegex().equals(other.getRegex())) return false; break; case 2: - if (!getValues() - .equals(other.getValues())) return false; + if (!getValues().equals(other.getValues())) return false; break; case 0: default: @@ -267,130 +308,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ParameterValidation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ParameterValidation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ParameterValidation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.ParameterValidation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration for parameter validation.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ParameterValidation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ParameterValidation) com.google.cloud.dataproc.v1.ParameterValidationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ParameterValidation_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ParameterValidation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ParameterValidation.class, com.google.cloud.dataproc.v1.ParameterValidation.Builder.class); + com.google.cloud.dataproc.v1.ParameterValidation.class, + com.google.cloud.dataproc.v1.ParameterValidation.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ParameterValidation.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +453,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; } @java.lang.Override @@ -427,7 +474,8 @@ public com.google.cloud.dataproc.v1.ParameterValidation build() { @java.lang.Override public com.google.cloud.dataproc.v1.ParameterValidation buildPartial() { - com.google.cloud.dataproc.v1.ParameterValidation result = new com.google.cloud.dataproc.v1.ParameterValidation(this); + com.google.cloud.dataproc.v1.ParameterValidation result = + new com.google.cloud.dataproc.v1.ParameterValidation(this); if (validationTypeCase_ == 1) { if (regexBuilder_ == null) { result.validationType_ = validationType_; @@ -451,38 +499,39 @@ public com.google.cloud.dataproc.v1.ParameterValidation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ParameterValidation) { - return mergeFrom((com.google.cloud.dataproc.v1.ParameterValidation)other); + return mergeFrom((com.google.cloud.dataproc.v1.ParameterValidation) other); } else { super.mergeFrom(other); return this; @@ -490,19 +539,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ParameterValidation other) { - if (other == com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance()) + return this; switch (other.getValidationTypeCase()) { - case REGEX: { - mergeRegex(other.getRegex()); - break; - } - case VALUES: { - mergeValues(other.getValues()); - break; - } - case VALIDATIONTYPE_NOT_SET: { - break; - } + case REGEX: + { + mergeRegex(other.getRegex()); + break; + } + case VALUES: + { + mergeValues(other.getValues()); + break; + } + case VALIDATIONTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -530,26 +583,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getRegexFieldBuilder().getBuilder(), - extensionRegistry); - validationTypeCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getValuesFieldBuilder().getBuilder(), - extensionRegistry); - validationTypeCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getRegexFieldBuilder().getBuilder(), extensionRegistry); + validationTypeCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getValuesFieldBuilder().getBuilder(), extensionRegistry); + validationTypeCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -559,12 +611,12 @@ public Builder mergeFrom( } // finally return this; } + private int validationTypeCase_ = 0; private java.lang.Object validationType_; - public ValidationTypeCase - getValidationTypeCase() { - return ValidationTypeCase.forNumber( - validationTypeCase_); + + public ValidationTypeCase getValidationTypeCase() { + return ValidationTypeCase.forNumber(validationTypeCase_); } public Builder clearValidationType() { @@ -574,15 +626,20 @@ public Builder clearValidationType() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RegexValidation, com.google.cloud.dataproc.v1.RegexValidation.Builder, com.google.cloud.dataproc.v1.RegexValidationOrBuilder> regexBuilder_; + com.google.cloud.dataproc.v1.RegexValidation, + com.google.cloud.dataproc.v1.RegexValidation.Builder, + com.google.cloud.dataproc.v1.RegexValidationOrBuilder> + regexBuilder_; /** + * + * *
      * Validation based on regular expressions.
      * 
* * .google.cloud.dataproc.v1.RegexValidation regex = 1; + * * @return Whether the regex field is set. */ @java.lang.Override @@ -590,11 +647,14 @@ public boolean hasRegex() { return validationTypeCase_ == 1; } /** + * + * *
      * Validation based on regular expressions.
      * 
* * .google.cloud.dataproc.v1.RegexValidation regex = 1; + * * @return The regex. */ @java.lang.Override @@ -612,6 +672,8 @@ public com.google.cloud.dataproc.v1.RegexValidation getRegex() { } } /** + * + * *
      * Validation based on regular expressions.
      * 
@@ -632,14 +694,15 @@ public Builder setRegex(com.google.cloud.dataproc.v1.RegexValidation value) { return this; } /** + * + * *
      * Validation based on regular expressions.
      * 
* * .google.cloud.dataproc.v1.RegexValidation regex = 1; */ - public Builder setRegex( - com.google.cloud.dataproc.v1.RegexValidation.Builder builderForValue) { + public Builder setRegex(com.google.cloud.dataproc.v1.RegexValidation.Builder builderForValue) { if (regexBuilder_ == null) { validationType_ = builderForValue.build(); onChanged(); @@ -650,6 +713,8 @@ public Builder setRegex( return this; } /** + * + * *
      * Validation based on regular expressions.
      * 
@@ -658,10 +723,14 @@ public Builder setRegex( */ public Builder mergeRegex(com.google.cloud.dataproc.v1.RegexValidation value) { if (regexBuilder_ == null) { - if (validationTypeCase_ == 1 && - validationType_ != com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance()) { - validationType_ = com.google.cloud.dataproc.v1.RegexValidation.newBuilder((com.google.cloud.dataproc.v1.RegexValidation) validationType_) - .mergeFrom(value).buildPartial(); + if (validationTypeCase_ == 1 + && validationType_ + != com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance()) { + validationType_ = + com.google.cloud.dataproc.v1.RegexValidation.newBuilder( + (com.google.cloud.dataproc.v1.RegexValidation) validationType_) + .mergeFrom(value) + .buildPartial(); } else { validationType_ = value; } @@ -677,6 +746,8 @@ public Builder mergeRegex(com.google.cloud.dataproc.v1.RegexValidation value) { return this; } /** + * + * *
      * Validation based on regular expressions.
      * 
@@ -700,6 +771,8 @@ public Builder clearRegex() { return this; } /** + * + * *
      * Validation based on regular expressions.
      * 
@@ -710,6 +783,8 @@ public com.google.cloud.dataproc.v1.RegexValidation.Builder getRegexBuilder() { return getRegexFieldBuilder().getBuilder(); } /** + * + * *
      * Validation based on regular expressions.
      * 
@@ -728,6 +803,8 @@ public com.google.cloud.dataproc.v1.RegexValidationOrBuilder getRegexOrBuilder() } } /** + * + * *
      * Validation based on regular expressions.
      * 
@@ -735,32 +812,44 @@ public com.google.cloud.dataproc.v1.RegexValidationOrBuilder getRegexOrBuilder() * .google.cloud.dataproc.v1.RegexValidation regex = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RegexValidation, com.google.cloud.dataproc.v1.RegexValidation.Builder, com.google.cloud.dataproc.v1.RegexValidationOrBuilder> + com.google.cloud.dataproc.v1.RegexValidation, + com.google.cloud.dataproc.v1.RegexValidation.Builder, + com.google.cloud.dataproc.v1.RegexValidationOrBuilder> getRegexFieldBuilder() { if (regexBuilder_ == null) { if (!(validationTypeCase_ == 1)) { validationType_ = com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance(); } - regexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RegexValidation, com.google.cloud.dataproc.v1.RegexValidation.Builder, com.google.cloud.dataproc.v1.RegexValidationOrBuilder>( + regexBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.RegexValidation, + com.google.cloud.dataproc.v1.RegexValidation.Builder, + com.google.cloud.dataproc.v1.RegexValidationOrBuilder>( (com.google.cloud.dataproc.v1.RegexValidation) validationType_, getParentForChildren(), isClean()); validationType_ = null; } validationTypeCase_ = 1; - onChanged();; + onChanged(); + ; return regexBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ValueValidation, com.google.cloud.dataproc.v1.ValueValidation.Builder, com.google.cloud.dataproc.v1.ValueValidationOrBuilder> valuesBuilder_; + com.google.cloud.dataproc.v1.ValueValidation, + com.google.cloud.dataproc.v1.ValueValidation.Builder, + com.google.cloud.dataproc.v1.ValueValidationOrBuilder> + valuesBuilder_; /** + * + * *
      * Validation based on a list of allowed values.
      * 
* * .google.cloud.dataproc.v1.ValueValidation values = 2; + * * @return Whether the values field is set. */ @java.lang.Override @@ -768,11 +857,14 @@ public boolean hasValues() { return validationTypeCase_ == 2; } /** + * + * *
      * Validation based on a list of allowed values.
      * 
* * .google.cloud.dataproc.v1.ValueValidation values = 2; + * * @return The values. */ @java.lang.Override @@ -790,6 +882,8 @@ public com.google.cloud.dataproc.v1.ValueValidation getValues() { } } /** + * + * *
      * Validation based on a list of allowed values.
      * 
@@ -810,14 +904,15 @@ public Builder setValues(com.google.cloud.dataproc.v1.ValueValidation value) { return this; } /** + * + * *
      * Validation based on a list of allowed values.
      * 
* * .google.cloud.dataproc.v1.ValueValidation values = 2; */ - public Builder setValues( - com.google.cloud.dataproc.v1.ValueValidation.Builder builderForValue) { + public Builder setValues(com.google.cloud.dataproc.v1.ValueValidation.Builder builderForValue) { if (valuesBuilder_ == null) { validationType_ = builderForValue.build(); onChanged(); @@ -828,6 +923,8 @@ public Builder setValues( return this; } /** + * + * *
      * Validation based on a list of allowed values.
      * 
@@ -836,10 +933,14 @@ public Builder setValues( */ public Builder mergeValues(com.google.cloud.dataproc.v1.ValueValidation value) { if (valuesBuilder_ == null) { - if (validationTypeCase_ == 2 && - validationType_ != com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance()) { - validationType_ = com.google.cloud.dataproc.v1.ValueValidation.newBuilder((com.google.cloud.dataproc.v1.ValueValidation) validationType_) - .mergeFrom(value).buildPartial(); + if (validationTypeCase_ == 2 + && validationType_ + != com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance()) { + validationType_ = + com.google.cloud.dataproc.v1.ValueValidation.newBuilder( + (com.google.cloud.dataproc.v1.ValueValidation) validationType_) + .mergeFrom(value) + .buildPartial(); } else { validationType_ = value; } @@ -855,6 +956,8 @@ public Builder mergeValues(com.google.cloud.dataproc.v1.ValueValidation value) { return this; } /** + * + * *
      * Validation based on a list of allowed values.
      * 
@@ -878,6 +981,8 @@ public Builder clearValues() { return this; } /** + * + * *
      * Validation based on a list of allowed values.
      * 
@@ -888,6 +993,8 @@ public com.google.cloud.dataproc.v1.ValueValidation.Builder getValuesBuilder() { return getValuesFieldBuilder().getBuilder(); } /** + * + * *
      * Validation based on a list of allowed values.
      * 
@@ -906,6 +1013,8 @@ public com.google.cloud.dataproc.v1.ValueValidationOrBuilder getValuesOrBuilder( } } /** + * + * *
      * Validation based on a list of allowed values.
      * 
@@ -913,26 +1022,32 @@ public com.google.cloud.dataproc.v1.ValueValidationOrBuilder getValuesOrBuilder( * .google.cloud.dataproc.v1.ValueValidation values = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ValueValidation, com.google.cloud.dataproc.v1.ValueValidation.Builder, com.google.cloud.dataproc.v1.ValueValidationOrBuilder> + com.google.cloud.dataproc.v1.ValueValidation, + com.google.cloud.dataproc.v1.ValueValidation.Builder, + com.google.cloud.dataproc.v1.ValueValidationOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { if (!(validationTypeCase_ == 2)) { validationType_ = com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance(); } - valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ValueValidation, com.google.cloud.dataproc.v1.ValueValidation.Builder, com.google.cloud.dataproc.v1.ValueValidationOrBuilder>( + valuesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ValueValidation, + com.google.cloud.dataproc.v1.ValueValidation.Builder, + com.google.cloud.dataproc.v1.ValueValidationOrBuilder>( (com.google.cloud.dataproc.v1.ValueValidation) validationType_, getParentForChildren(), isClean()); validationType_ = null; } validationTypeCase_ = 2; - onChanged();; + onChanged(); + ; return valuesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -942,12 +1057,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ParameterValidation) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ParameterValidation) private static final com.google.cloud.dataproc.v1.ParameterValidation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ParameterValidation(); } @@ -956,27 +1071,27 @@ public static com.google.cloud.dataproc.v1.ParameterValidation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParameterValidation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParameterValidation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -991,6 +1106,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ParameterValidation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.java index 12740ef14bb5..5528b51ccdd8 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface ParameterValidationOrBuilder extends +public interface ParameterValidationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ParameterValidation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Validation based on regular expressions.
    * 
* * .google.cloud.dataproc.v1.RegexValidation regex = 1; + * * @return Whether the regex field is set. */ boolean hasRegex(); /** + * + * *
    * Validation based on regular expressions.
    * 
* * .google.cloud.dataproc.v1.RegexValidation regex = 1; + * * @return The regex. */ com.google.cloud.dataproc.v1.RegexValidation getRegex(); /** + * + * *
    * Validation based on regular expressions.
    * 
@@ -35,24 +59,32 @@ public interface ParameterValidationOrBuilder extends com.google.cloud.dataproc.v1.RegexValidationOrBuilder getRegexOrBuilder(); /** + * + * *
    * Validation based on a list of allowed values.
    * 
* * .google.cloud.dataproc.v1.ValueValidation values = 2; + * * @return Whether the values field is set. */ boolean hasValues(); /** + * + * *
    * Validation based on a list of allowed values.
    * 
* * .google.cloud.dataproc.v1.ValueValidation values = 2; + * * @return The values. */ com.google.cloud.dataproc.v1.ValueValidation getValues(); /** + * + * *
    * Validation based on a list of allowed values.
    * 
@@ -61,5 +93,6 @@ public interface ParameterValidationOrBuilder extends */ com.google.cloud.dataproc.v1.ValueValidationOrBuilder getValuesOrBuilder(); - public com.google.cloud.dataproc.v1.ParameterValidation.ValidationTypeCase getValidationTypeCase(); + public com.google.cloud.dataproc.v1.ParameterValidation.ValidationTypeCase + getValidationTypeCase(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java similarity index 64% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java index 4a3085327b46..f49d93b1accf 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Auxiliary services configuration for a workload.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.PeripheralsConfig} */ -public final class PeripheralsConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PeripheralsConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.PeripheralsConfig) PeripheralsConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PeripheralsConfig.newBuilder() to construct. private PeripheralsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PeripheralsConfig() { metastoreService_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PeripheralsConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.PeripheralsConfig.class, com.google.cloud.dataproc.v1.PeripheralsConfig.Builder.class); + com.google.cloud.dataproc.v1.PeripheralsConfig.class, + com.google.cloud.dataproc.v1.PeripheralsConfig.Builder.class); } public static final int METASTORE_SERVICE_FIELD_NUMBER = 1; private volatile java.lang.Object metastoreService_; /** + * + * *
    * Optional. Resource name of an existing Dataproc Metastore service.
    * Example:
@@ -58,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The metastoreService. */ @java.lang.Override @@ -66,14 +88,15 @@ public java.lang.String getMetastoreService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metastoreService_ = s; return s; } } /** + * + * *
    * Optional. Resource name of an existing Dataproc Metastore service.
    * Example:
@@ -81,16 +104,15 @@ public java.lang.String getMetastoreService() {
    * 
* * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for metastoreService. */ @java.lang.Override - public com.google.protobuf.ByteString - getMetastoreServiceBytes() { + public com.google.protobuf.ByteString getMetastoreServiceBytes() { java.lang.Object ref = metastoreService_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metastoreService_ = b; return b; } else { @@ -101,11 +123,16 @@ public java.lang.String getMetastoreService() { public static final int SPARK_HISTORY_SERVER_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; /** + * + * *
    * Optional. The Spark History Server configuration for the workload.
    * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkHistoryServerConfig field is set. */ @java.lang.Override @@ -113,30 +140,43 @@ public boolean hasSparkHistoryServerConfig() { return sparkHistoryServerConfig_ != null; } /** + * + * *
    * Optional. The Spark History Server configuration for the workload.
    * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkHistoryServerConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { - return sparkHistoryServerConfig_ == null ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; + return sparkHistoryServerConfig_ == null + ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() + : sparkHistoryServerConfig_; } /** + * + * *
    * Optional. The Spark History Server configuration for the workload.
    * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder + getSparkHistoryServerConfigOrBuilder() { return getSparkHistoryServerConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metastoreService_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metastoreService_); } @@ -169,8 +208,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metastoreService_); } if (sparkHistoryServerConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSparkHistoryServerConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getSparkHistoryServerConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -180,19 +220,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.dataproc.v1.PeripheralsConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.PeripheralsConfig other = (com.google.cloud.dataproc.v1.PeripheralsConfig) obj; + com.google.cloud.dataproc.v1.PeripheralsConfig other = + (com.google.cloud.dataproc.v1.PeripheralsConfig) obj; - if (!getMetastoreService() - .equals(other.getMetastoreService())) return false; + if (!getMetastoreService().equals(other.getMetastoreService())) return false; if (hasSparkHistoryServerConfig() != other.hasSparkHistoryServerConfig()) return false; if (hasSparkHistoryServerConfig()) { - if (!getSparkHistoryServerConfig() - .equals(other.getSparkHistoryServerConfig())) return false; + if (!getSparkHistoryServerConfig().equals(other.getSparkHistoryServerConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -216,130 +255,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.PeripheralsConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Auxiliary services configuration for a workload.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.PeripheralsConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.PeripheralsConfig) com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.PeripheralsConfig.class, com.google.cloud.dataproc.v1.PeripheralsConfig.Builder.class); + com.google.cloud.dataproc.v1.PeripheralsConfig.class, + com.google.cloud.dataproc.v1.PeripheralsConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.PeripheralsConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +400,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; } @java.lang.Override @@ -376,7 +421,8 @@ public com.google.cloud.dataproc.v1.PeripheralsConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.PeripheralsConfig buildPartial() { - com.google.cloud.dataproc.v1.PeripheralsConfig result = new com.google.cloud.dataproc.v1.PeripheralsConfig(this); + com.google.cloud.dataproc.v1.PeripheralsConfig result = + new com.google.cloud.dataproc.v1.PeripheralsConfig(this); result.metastoreService_ = metastoreService_; if (sparkHistoryServerConfigBuilder_ == null) { result.sparkHistoryServerConfig_ = sparkHistoryServerConfig_; @@ -391,38 +437,39 @@ public com.google.cloud.dataproc.v1.PeripheralsConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.PeripheralsConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.PeripheralsConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.PeripheralsConfig) other); } else { super.mergeFrom(other); return this; @@ -464,24 +511,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - metastoreService_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getSparkHistoryServerConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + metastoreService_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage( + getSparkHistoryServerConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,6 +543,8 @@ public Builder mergeFrom( private java.lang.Object metastoreService_ = ""; /** + * + * *
      * Optional. Resource name of an existing Dataproc Metastore service.
      * Example:
@@ -501,13 +552,13 @@ public Builder mergeFrom(
      * 
* * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The metastoreService. */ public java.lang.String getMetastoreService() { java.lang.Object ref = metastoreService_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metastoreService_ = s; return s; @@ -516,6 +567,8 @@ public java.lang.String getMetastoreService() { } } /** + * + * *
      * Optional. Resource name of an existing Dataproc Metastore service.
      * Example:
@@ -523,15 +576,14 @@ public java.lang.String getMetastoreService() {
      * 
* * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for metastoreService. */ - public com.google.protobuf.ByteString - getMetastoreServiceBytes() { + public com.google.protobuf.ByteString getMetastoreServiceBytes() { java.lang.Object ref = metastoreService_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metastoreService_ = b; return b; } else { @@ -539,6 +591,8 @@ public java.lang.String getMetastoreService() { } } /** + * + * *
      * Optional. Resource name of an existing Dataproc Metastore service.
      * Example:
@@ -546,20 +600,22 @@ public java.lang.String getMetastoreService() {
      * 
* * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The metastoreService to set. * @return This builder for chaining. */ - public Builder setMetastoreService( - java.lang.String value) { + public Builder setMetastoreService(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + metastoreService_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Resource name of an existing Dataproc Metastore service.
      * Example:
@@ -567,15 +623,18 @@ public Builder setMetastoreService(
      * 
* * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMetastoreService() { - + metastoreService_ = getDefaultInstance().getMetastoreService(); onChanged(); return this; } /** + * + * *
      * Optional. Resource name of an existing Dataproc Metastore service.
      * Example:
@@ -583,16 +642,16 @@ public Builder clearMetastoreService() {
      * 
* * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for metastoreService to set. * @return This builder for chaining. */ - public Builder setMetastoreServiceBytes( - com.google.protobuf.ByteString value) { + public Builder setMetastoreServiceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metastoreService_ = value; onChanged(); return this; @@ -600,41 +659,61 @@ public Builder setMetastoreServiceBytes( private com.google.cloud.dataproc.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkHistoryServerConfig, com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> sparkHistoryServerConfigBuilder_; + com.google.cloud.dataproc.v1.SparkHistoryServerConfig, + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> + sparkHistoryServerConfigBuilder_; /** + * + * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkHistoryServerConfig field is set. */ public boolean hasSparkHistoryServerConfig() { return sparkHistoryServerConfigBuilder_ != null || sparkHistoryServerConfig_ != null; } /** + * + * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkHistoryServerConfig. */ public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { if (sparkHistoryServerConfigBuilder_ == null) { - return sparkHistoryServerConfig_ == null ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; + return sparkHistoryServerConfig_ == null + ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() + : sparkHistoryServerConfig_; } else { return sparkHistoryServerConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSparkHistoryServerConfig(com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { + public Builder setSparkHistoryServerConfig( + com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { if (sparkHistoryServerConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -648,11 +727,15 @@ public Builder setSparkHistoryServerConfig(com.google.cloud.dataproc.v1.SparkHis return this; } /** + * + * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSparkHistoryServerConfig( com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder builderForValue) { @@ -666,17 +749,25 @@ public Builder setSparkHistoryServerConfig( return this; } /** + * + * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeSparkHistoryServerConfig(com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { + public Builder mergeSparkHistoryServerConfig( + com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { if (sparkHistoryServerConfigBuilder_ == null) { if (sparkHistoryServerConfig_ != null) { sparkHistoryServerConfig_ = - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.newBuilder(sparkHistoryServerConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.newBuilder( + sparkHistoryServerConfig_) + .mergeFrom(value) + .buildPartial(); } else { sparkHistoryServerConfig_ = value; } @@ -688,11 +779,15 @@ public Builder mergeSparkHistoryServerConfig(com.google.cloud.dataproc.v1.SparkH return this; } /** + * + * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSparkHistoryServerConfig() { if (sparkHistoryServerConfigBuilder_ == null) { @@ -706,55 +801,73 @@ public Builder clearSparkHistoryServerConfig() { return this; } /** + * + * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder getSparkHistoryServerConfigBuilder() { - + public com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder + getSparkHistoryServerConfigBuilder() { + onChanged(); return getSparkHistoryServerConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder() { + public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder + getSparkHistoryServerConfigOrBuilder() { if (sparkHistoryServerConfigBuilder_ != null) { return sparkHistoryServerConfigBuilder_.getMessageOrBuilder(); } else { - return sparkHistoryServerConfig_ == null ? - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; + return sparkHistoryServerConfig_ == null + ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() + : sparkHistoryServerConfig_; } } /** + * + * *
      * Optional. The Spark History Server configuration for the workload.
      * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkHistoryServerConfig, com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> + com.google.cloud.dataproc.v1.SparkHistoryServerConfig, + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> getSparkHistoryServerConfigFieldBuilder() { if (sparkHistoryServerConfigBuilder_ == null) { - sparkHistoryServerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkHistoryServerConfig, com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder>( - getSparkHistoryServerConfig(), - getParentForChildren(), - isClean()); + sparkHistoryServerConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkHistoryServerConfig, + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder>( + getSparkHistoryServerConfig(), getParentForChildren(), isClean()); sparkHistoryServerConfig_ = null; } return sparkHistoryServerConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -764,12 +877,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.PeripheralsConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PeripheralsConfig) private static final com.google.cloud.dataproc.v1.PeripheralsConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.PeripheralsConfig(); } @@ -778,27 +891,27 @@ public static com.google.cloud.dataproc.v1.PeripheralsConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PeripheralsConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PeripheralsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -813,6 +926,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.PeripheralsConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java similarity index 55% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java index 0d76f2eec314..9797286cbb5d 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; -public interface PeripheralsConfigOrBuilder extends +public interface PeripheralsConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PeripheralsConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Resource name of an existing Dataproc Metastore service.
    * Example:
@@ -15,10 +33,13 @@ public interface PeripheralsConfigOrBuilder extends
    * 
* * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The metastoreService. */ java.lang.String getMetastoreService(); /** + * + * *
    * Optional. Resource name of an existing Dataproc Metastore service.
    * Example:
@@ -26,35 +47,50 @@ public interface PeripheralsConfigOrBuilder extends
    * 
* * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for metastoreService. */ - com.google.protobuf.ByteString - getMetastoreServiceBytes(); + com.google.protobuf.ByteString getMetastoreServiceBytes(); /** + * + * *
    * Optional. The Spark History Server configuration for the workload.
    * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkHistoryServerConfig field is set. */ boolean hasSparkHistoryServerConfig(); /** + * + * *
    * Optional. The Spark History Server configuration for the workload.
    * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkHistoryServerConfig. */ com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig(); /** + * + * *
    * Optional. The Spark History Server configuration for the workload.
    * 
* - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder(); + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder + getSparkHistoryServerConfigOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java index ee796a14b502..6a0d2ba89970 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A Dataproc job for running [Apache Pig](https://pig.apache.org/)
  * queries on YARN.
@@ -11,67 +28,71 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.PigJob}
  */
-public final class PigJob extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PigJob extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.PigJob)
     PigJobOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PigJob.newBuilder() to construct.
   private PigJob(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PigJob() {
     jarFileUris_ = 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 PigJob();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PigJob_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.JobsProto
+        .internal_static_google_cloud_dataproc_v1_PigJob_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 internalGetScriptVariables();
       case 5:
         return internalGetProperties();
       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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.JobsProto
+        .internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.PigJob.class, com.google.cloud.dataproc.v1.PigJob.Builder.class);
+            com.google.cloud.dataproc.v1.PigJob.class,
+            com.google.cloud.dataproc.v1.PigJob.Builder.class);
   }
 
   private int queriesCase_ = 0;
   private java.lang.Object queries_;
+
   public enum QueriesCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     QUERY_FILE_URI(1),
     QUERY_LIST(2),
     QUERIES_NOT_SET(0);
     private final int value;
+
     private QueriesCase(int value) {
       this.value = value;
     }
@@ -87,41 +108,50 @@ public static QueriesCase valueOf(int value) {
 
     public static QueriesCase forNumber(int value) {
       switch (value) {
-        case 1: return QUERY_FILE_URI;
-        case 2: return QUERY_LIST;
-        case 0: return QUERIES_NOT_SET;
-        default: return null;
+        case 1:
+          return QUERY_FILE_URI;
+        case 2:
+          return QUERY_LIST;
+        case 0:
+          return QUERIES_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public QueriesCase
-  getQueriesCase() {
-    return QueriesCase.forNumber(
-        queriesCase_);
+  public QueriesCase getQueriesCase() {
+    return QueriesCase.forNumber(queriesCase_);
   }
 
   public static final int QUERY_FILE_URI_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * The HCFS URI of the script that contains the Pig queries.
    * 
* * string query_file_uri = 1; + * * @return Whether the queryFileUri field is set. */ public boolean hasQueryFileUri() { return queriesCase_ == 1; } /** + * + * *
    * The HCFS URI of the script that contains the Pig queries.
    * 
* * string query_file_uri = 1; + * * @return The queryFileUri. */ public java.lang.String getQueryFileUri() { @@ -132,8 +162,7 @@ public java.lang.String getQueryFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (queriesCase_ == 1) { queries_ = s; @@ -142,23 +171,24 @@ public java.lang.String getQueryFileUri() { } } /** + * + * *
    * The HCFS URI of the script that contains the Pig queries.
    * 
* * string query_file_uri = 1; + * * @return The bytes for queryFileUri. */ - public com.google.protobuf.ByteString - getQueryFileUriBytes() { + public com.google.protobuf.ByteString getQueryFileUriBytes() { java.lang.Object ref = ""; if (queriesCase_ == 1) { ref = queries_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (queriesCase_ == 1) { queries_ = b; } @@ -170,11 +200,14 @@ public java.lang.String getQueryFileUri() { public static final int QUERY_LIST_FIELD_NUMBER = 2; /** + * + * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return Whether the queryList field is set. */ @java.lang.Override @@ -182,21 +215,26 @@ public boolean hasQueryList() { return queriesCase_ == 2; } /** + * + * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return The queryList. */ @java.lang.Override public com.google.cloud.dataproc.v1.QueryList getQueryList() { if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; + return (com.google.cloud.dataproc.v1.QueryList) queries_; } return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } /** + * + * *
    * A list of queries.
    * 
@@ -206,7 +244,7 @@ public com.google.cloud.dataproc.v1.QueryList getQueryList() { @java.lang.Override public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; + return (com.google.cloud.dataproc.v1.QueryList) queries_; } return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } @@ -214,6 +252,8 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER = 3; private boolean continueOnFailure_; /** + * + * *
    * Optional. Whether to continue executing queries if a query fails.
    * The default value is `false`. Setting to `true` can be useful when
@@ -221,6 +261,7 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() {
    * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The continueOnFailure. */ @java.lang.Override @@ -229,21 +270,22 @@ public boolean getContinueOnFailure() { } public static final int SCRIPT_VARIABLES_FIELD_NUMBER = 4; + private static final class ScriptVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> scriptVariables_; + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField scriptVariables_; + private com.google.protobuf.MapField - internalGetScriptVariables() { + internalGetScriptVariables() { if (scriptVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( ScriptVariablesDefaultEntryHolder.defaultEntry); @@ -255,74 +297,81 @@ public int getScriptVariablesCount() { return internalGetScriptVariables().getMap().size(); } /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the Pig
    * command: `name=[value]`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsScriptVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsScriptVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetScriptVariables().getMap().containsKey(key); } - /** - * Use {@link #getScriptVariablesMap()} instead. - */ + /** Use {@link #getScriptVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getScriptVariables() { return getScriptVariablesMap(); } /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the Pig
    * command: `name=[value]`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getScriptVariablesMap() { return internalGetScriptVariables().getMap(); } /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the Pig
    * command: `name=[value]`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetScriptVariables().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetScriptVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the Pig
    * command: `name=[value]`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getScriptVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetScriptVariables().getMap(); + public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetScriptVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -330,24 +379,23 @@ public java.lang.String getScriptVariablesOrThrow( } public static final int PROPERTIES_FIELD_NUMBER = 5; + private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; - private com.google.protobuf.MapField - internalGetProperties() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -356,6 +404,8 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
    * Optional. A mapping of property names to values, used to configure Pig.
    * Properties that conflict with values set by the Dataproc API may be
@@ -363,24 +413,25 @@ public int getPropertiesCount() {
    * /etc/pig/conf/pig.properties, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
    * Optional. A mapping of property names to values, used to configure Pig.
    * Properties that conflict with values set by the Dataproc API may be
@@ -388,14 +439,16 @@ public java.util.Map getProperties() {
    * /etc/pig/conf/pig.properties, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
    * Optional. A mapping of property names to values, used to configure Pig.
    * Properties that conflict with values set by the Dataproc API may be
@@ -403,19 +456,21 @@ public java.util.Map getPropertiesMap() {
    * /etc/pig/conf/pig.properties, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. A mapping of property names to values, used to configure Pig.
    * Properties that conflict with values set by the Dataproc API may be
@@ -423,15 +478,15 @@ public java.lang.String getPropertiesOrDefault(
    * /etc/pig/conf/pig.properties, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -441,37 +496,45 @@ public java.lang.String getPropertiesOrThrow( public static final int JAR_FILE_URIS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList jarFileUris_; /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of
    * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList - getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { return jarFileUris_; } /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of
    * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of
    * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -479,28 +542,35 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of
    * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString - getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } public static final int LOGGING_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ @java.lang.Override @@ -508,23 +578,34 @@ public boolean hasLoggingConfig() { return loggingConfig_ != null; } /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { @@ -532,6 +613,7 @@ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBui } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -543,8 +625,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (queriesCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_); } @@ -554,18 +635,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (continueOnFailure_ != false) { output.writeBool(3, continueOnFailure_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetScriptVariables(), - ScriptVariablesDefaultEntryHolder.defaultEntry, - 4); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetProperties(), - PropertiesDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetScriptVariables(), ScriptVariablesDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 5); for (int i = 0; i < jarFileUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jarFileUris_.getRaw(i)); } @@ -585,32 +658,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queries_); } if (queriesCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.dataproc.v1.QueryList) queries_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataproc.v1.QueryList) queries_); } if (continueOnFailure_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, continueOnFailure_); - } - for (java.util.Map.Entry entry - : internalGetScriptVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry - scriptVariables__ = ScriptVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, scriptVariables__); - } - for (java.util.Map.Entry entry - : internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry - properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, properties__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, continueOnFailure_); + } + for (java.util.Map.Entry entry : + internalGetScriptVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry scriptVariables__ = + ScriptVariablesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, scriptVariables__); + } + for (java.util.Map.Entry entry : + internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, properties__); } { int dataSize = 0; @@ -621,8 +694,7 @@ public int getSerializedSize() { size += 1 * getJarFileUrisList().size(); } if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getLoggingConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLoggingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -632,35 +704,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.PigJob)) { return super.equals(obj); } com.google.cloud.dataproc.v1.PigJob other = (com.google.cloud.dataproc.v1.PigJob) obj; - if (getContinueOnFailure() - != other.getContinueOnFailure()) return false; - if (!internalGetScriptVariables().equals( - other.internalGetScriptVariables())) return false; - if (!internalGetProperties().equals( - other.internalGetProperties())) return false; - if (!getJarFileUrisList() - .equals(other.getJarFileUrisList())) return false; + if (getContinueOnFailure() != other.getContinueOnFailure()) return false; + if (!internalGetScriptVariables().equals(other.internalGetScriptVariables())) return false; + if (!internalGetProperties().equals(other.internalGetProperties())) return false; + if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; if (hasLoggingConfig() != other.hasLoggingConfig()) return false; if (hasLoggingConfig()) { - if (!getLoggingConfig() - .equals(other.getLoggingConfig())) return false; + if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; } if (!getQueriesCase().equals(other.getQueriesCase())) return false; switch (queriesCase_) { case 1: - if (!getQueryFileUri() - .equals(other.getQueryFileUri())) return false; + if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; break; case 2: - if (!getQueryList() - .equals(other.getQueryList())) return false; + if (!getQueryList().equals(other.getQueryList())) return false; break; case 0: default: @@ -677,8 +742,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONTINUE_ON_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getContinueOnFailure()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContinueOnFailure()); if (!internalGetScriptVariables().getMap().isEmpty()) { hash = (37 * hash) + SCRIPT_VARIABLES_FIELD_NUMBER; hash = (53 * hash) + internalGetScriptVariables().hashCode(); @@ -712,97 +776,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.PigJob parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.PigJob parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.PigJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PigJob parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.dataproc.v1.PigJob parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.PigJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PigJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.PigJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PigJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.PigJob parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PigJob 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.dataproc.v1.PigJob parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PigJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.PigJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.PigJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc job for running [Apache Pig](https://pig.apache.org/)
    * queries on YARN.
@@ -810,59 +880,56 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.PigJob}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.PigJob)
       com.google.cloud.dataproc.v1.PigJobOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PigJob_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_PigJob_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetScriptVariables();
         case 5:
           return internalGetProperties();
         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 internalGetMutableScriptVariables();
         case 5:
           return internalGetMutableProperties();
         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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.PigJob.class, com.google.cloud.dataproc.v1.PigJob.Builder.class);
+              com.google.cloud.dataproc.v1.PigJob.class,
+              com.google.cloud.dataproc.v1.PigJob.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.PigJob.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -887,9 +954,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PigJob_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_PigJob_descriptor;
     }
 
     @java.lang.Override
@@ -944,38 +1011,39 @@ public com.google.cloud.dataproc.v1.PigJob buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.PigJob) {
-        return mergeFrom((com.google.cloud.dataproc.v1.PigJob)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.PigJob) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -987,10 +1055,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.PigJob other) {
       if (other.getContinueOnFailure() != false) {
         setContinueOnFailure(other.getContinueOnFailure());
       }
-      internalGetMutableScriptVariables().mergeFrom(
-          other.internalGetScriptVariables());
-      internalGetMutableProperties().mergeFrom(
-          other.internalGetProperties());
+      internalGetMutableScriptVariables().mergeFrom(other.internalGetScriptVariables());
+      internalGetMutableProperties().mergeFrom(other.internalGetProperties());
       if (!other.jarFileUris_.isEmpty()) {
         if (jarFileUris_.isEmpty()) {
           jarFileUris_ = other.jarFileUris_;
@@ -1005,19 +1071,22 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.PigJob other) {
         mergeLoggingConfig(other.getLoggingConfig());
       }
       switch (other.getQueriesCase()) {
-        case QUERY_FILE_URI: {
-          queriesCase_ = 1;
-          queries_ = other.queries_;
-          onChanged();
-          break;
-        }
-        case QUERY_LIST: {
-          mergeQueryList(other.getQueryList());
-          break;
-        }
-        case QUERIES_NOT_SET: {
-          break;
-        }
+        case QUERY_FILE_URI:
+          {
+            queriesCase_ = 1;
+            queries_ = other.queries_;
+            onChanged();
+            break;
+          }
+        case QUERY_LIST:
+          {
+            mergeQueryList(other.getQueryList());
+            break;
+          }
+        case QUERIES_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1045,59 +1114,67 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              queriesCase_ = 1;
-              queries_ = s;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getQueryListFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              queriesCase_ = 2;
-              break;
-            } // case 18
-            case 24: {
-              continueOnFailure_ = input.readBool();
-
-              break;
-            } // case 24
-            case 34: {
-              com.google.protobuf.MapEntry
-              scriptVariables__ = input.readMessage(
-                  ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableScriptVariables().getMutableMap().put(
-                  scriptVariables__.getKey(), scriptVariables__.getValue());
-              break;
-            } // case 34
-            case 42: {
-              com.google.protobuf.MapEntry
-              properties__ = input.readMessage(
-                  PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableProperties().getMutableMap().put(
-                  properties__.getKey(), properties__.getValue());
-              break;
-            } // case 42
-            case 50: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureJarFileUrisIsMutable();
-              jarFileUris_.add(s);
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getLoggingConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 58
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                queriesCase_ = 1;
+                queries_ = s;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getQueryListFieldBuilder().getBuilder(), extensionRegistry);
+                queriesCase_ = 2;
+                break;
+              } // case 18
+            case 24:
+              {
+                continueOnFailure_ = input.readBool();
+
+                break;
+              } // case 24
+            case 34:
+              {
+                com.google.protobuf.MapEntry scriptVariables__ =
+                    input.readMessage(
+                        ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableScriptVariables()
+                    .getMutableMap()
+                    .put(scriptVariables__.getKey(), scriptVariables__.getValue());
+                break;
+              } // case 34
+            case 42:
+              {
+                com.google.protobuf.MapEntry properties__ =
+                    input.readMessage(
+                        PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableProperties()
+                    .getMutableMap()
+                    .put(properties__.getKey(), properties__.getValue());
+                break;
+              } // case 42
+            case 50:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureJarFileUrisIsMutable();
+                jarFileUris_.add(s);
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 58
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1107,12 +1184,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int queriesCase_ = 0;
     private java.lang.Object queries_;
-    public QueriesCase
-        getQueriesCase() {
-      return QueriesCase.forNumber(
-          queriesCase_);
+
+    public QueriesCase getQueriesCase() {
+      return QueriesCase.forNumber(queriesCase_);
     }
 
     public Builder clearQueries() {
@@ -1125,11 +1202,14 @@ public Builder clearQueries() {
     private int bitField0_;
 
     /**
+     *
+     *
      * 
      * The HCFS URI of the script that contains the Pig queries.
      * 
* * string query_file_uri = 1; + * * @return Whether the queryFileUri field is set. */ @java.lang.Override @@ -1137,11 +1217,14 @@ public boolean hasQueryFileUri() { return queriesCase_ == 1; } /** + * + * *
      * The HCFS URI of the script that contains the Pig queries.
      * 
* * string query_file_uri = 1; + * * @return The queryFileUri. */ @java.lang.Override @@ -1151,8 +1234,7 @@ public java.lang.String getQueryFileUri() { ref = queries_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (queriesCase_ == 1) { queries_ = s; @@ -1163,24 +1245,25 @@ public java.lang.String getQueryFileUri() { } } /** + * + * *
      * The HCFS URI of the script that contains the Pig queries.
      * 
* * string query_file_uri = 1; + * * @return The bytes for queryFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryFileUriBytes() { + public com.google.protobuf.ByteString getQueryFileUriBytes() { java.lang.Object ref = ""; if (queriesCase_ == 1) { ref = queries_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (queriesCase_ == 1) { queries_ = b; } @@ -1190,30 +1273,35 @@ public java.lang.String getQueryFileUri() { } } /** + * + * *
      * The HCFS URI of the script that contains the Pig queries.
      * 
* * string query_file_uri = 1; + * * @param value The queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUri( - java.lang.String value) { + public Builder setQueryFileUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - queriesCase_ = 1; + throw new NullPointerException(); + } + queriesCase_ = 1; queries_ = value; onChanged(); return this; } /** + * + * *
      * The HCFS URI of the script that contains the Pig queries.
      * 
* * string query_file_uri = 1; + * * @return This builder for chaining. */ public Builder clearQueryFileUri() { @@ -1225,20 +1313,22 @@ public Builder clearQueryFileUri() { return this; } /** + * + * *
      * The HCFS URI of the script that contains the Pig queries.
      * 
* * string query_file_uri = 1; + * * @param value The bytes for queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUriBytes( - com.google.protobuf.ByteString value) { + public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); queriesCase_ = 1; queries_ = value; onChanged(); @@ -1246,13 +1336,19 @@ public Builder setQueryFileUriBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder> queryListBuilder_; + com.google.cloud.dataproc.v1.QueryList, + com.google.cloud.dataproc.v1.QueryList.Builder, + com.google.cloud.dataproc.v1.QueryListOrBuilder> + queryListBuilder_; /** + * + * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return Whether the queryList field is set. */ @java.lang.Override @@ -1260,11 +1356,14 @@ public boolean hasQueryList() { return queriesCase_ == 2; } /** + * + * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return The queryList. */ @java.lang.Override @@ -1282,6 +1381,8 @@ public com.google.cloud.dataproc.v1.QueryList getQueryList() { } } /** + * + * *
      * A list of queries.
      * 
@@ -1302,14 +1403,15 @@ public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList value) { return this; } /** + * + * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; */ - public Builder setQueryList( - com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { + public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { if (queryListBuilder_ == null) { queries_ = builderForValue.build(); onChanged(); @@ -1320,6 +1422,8 @@ public Builder setQueryList( return this; } /** + * + * *
      * A list of queries.
      * 
@@ -1328,10 +1432,13 @@ public Builder setQueryList( */ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { if (queryListBuilder_ == null) { - if (queriesCase_ == 2 && - queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { - queries_ = com.google.cloud.dataproc.v1.QueryList.newBuilder((com.google.cloud.dataproc.v1.QueryList) queries_) - .mergeFrom(value).buildPartial(); + if (queriesCase_ == 2 + && queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { + queries_ = + com.google.cloud.dataproc.v1.QueryList.newBuilder( + (com.google.cloud.dataproc.v1.QueryList) queries_) + .mergeFrom(value) + .buildPartial(); } else { queries_ = value; } @@ -1347,6 +1454,8 @@ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { return this; } /** + * + * *
      * A list of queries.
      * 
@@ -1370,6 +1479,8 @@ public Builder clearQueryList() { return this; } /** + * + * *
      * A list of queries.
      * 
@@ -1380,6 +1491,8 @@ public com.google.cloud.dataproc.v1.QueryList.Builder getQueryListBuilder() { return getQueryListFieldBuilder().getBuilder(); } /** + * + * *
      * A list of queries.
      * 
@@ -1398,6 +1511,8 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { } } /** + * + * *
      * A list of queries.
      * 
@@ -1405,26 +1520,34 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { * .google.cloud.dataproc.v1.QueryList query_list = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder> + com.google.cloud.dataproc.v1.QueryList, + com.google.cloud.dataproc.v1.QueryList.Builder, + com.google.cloud.dataproc.v1.QueryListOrBuilder> getQueryListFieldBuilder() { if (queryListBuilder_ == null) { if (!(queriesCase_ == 2)) { queries_ = com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } - queryListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder>( + queryListBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.QueryList, + com.google.cloud.dataproc.v1.QueryList.Builder, + com.google.cloud.dataproc.v1.QueryListOrBuilder>( (com.google.cloud.dataproc.v1.QueryList) queries_, getParentForChildren(), isClean()); queries_ = null; } queriesCase_ = 2; - onChanged();; + onChanged(); + ; return queryListBuilder_; } - private boolean continueOnFailure_ ; + private boolean continueOnFailure_; /** + * + * *
      * Optional. Whether to continue executing queries if a query fails.
      * The default value is `false`. Setting to `true` can be useful when
@@ -1432,6 +1555,7 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() {
      * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The continueOnFailure. */ @java.lang.Override @@ -1439,6 +1563,8 @@ public boolean getContinueOnFailure() { return continueOnFailure_; } /** + * + * *
      * Optional. Whether to continue executing queries if a query fails.
      * The default value is `false`. Setting to `true` can be useful when
@@ -1446,16 +1572,19 @@ public boolean getContinueOnFailure() {
      * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The continueOnFailure to set. * @return This builder for chaining. */ public Builder setContinueOnFailure(boolean value) { - + continueOnFailure_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Whether to continue executing queries if a query fails.
      * The default value is `false`. Setting to `true` can be useful when
@@ -1463,31 +1592,35 @@ public Builder setContinueOnFailure(boolean value) {
      * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearContinueOnFailure() { - + continueOnFailure_ = false; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> scriptVariables_; + private com.google.protobuf.MapField scriptVariables_; + private com.google.protobuf.MapField - internalGetScriptVariables() { + internalGetScriptVariables() { if (scriptVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( ScriptVariablesDefaultEntryHolder.defaultEntry); } return scriptVariables_; } + private com.google.protobuf.MapField - internalGetMutableScriptVariables() { - onChanged();; + internalGetMutableScriptVariables() { + onChanged(); + ; if (scriptVariables_ == null) { - scriptVariables_ = com.google.protobuf.MapField.newMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); + scriptVariables_ = + com.google.protobuf.MapField.newMapField( + ScriptVariablesDefaultEntryHolder.defaultEntry); } if (!scriptVariables_.isMutable()) { scriptVariables_ = scriptVariables_.copy(); @@ -1499,74 +1632,85 @@ public int getScriptVariablesCount() { return internalGetScriptVariables().getMap().size(); } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the Pig
      * command: `name=[value]`).
      * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsScriptVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsScriptVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetScriptVariables().getMap().containsKey(key); } - /** - * Use {@link #getScriptVariablesMap()} instead. - */ + /** Use {@link #getScriptVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getScriptVariables() { return getScriptVariablesMap(); } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the Pig
      * command: `name=[value]`).
      * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getScriptVariablesMap() { return internalGetScriptVariables().getMap(); } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the Pig
      * command: `name=[value]`).
      * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetScriptVariables().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetScriptVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the Pig
      * command: `name=[value]`).
      * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getScriptVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetScriptVariables().getMap(); + public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetScriptVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1574,86 +1718,91 @@ public java.lang.String getScriptVariablesOrThrow( } public Builder clearScriptVariables() { - internalGetMutableScriptVariables().getMutableMap() - .clear(); + internalGetMutableScriptVariables().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the Pig
      * command: `name=[value]`).
      * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeScriptVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableScriptVariables().getMutableMap() - .remove(key); + public Builder removeScriptVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableScriptVariables().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableScriptVariables() { + public java.util.Map getMutableScriptVariables() { return internalGetMutableScriptVariables().getMutableMap(); } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the Pig
      * command: `name=[value]`).
      * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putScriptVariables( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putScriptVariables(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"); + } - internalGetMutableScriptVariables().getMutableMap() - .put(key, value); + internalGetMutableScriptVariables().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the Pig
      * command: `name=[value]`).
      * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllScriptVariables( - java.util.Map values) { - internalGetMutableScriptVariables().getMutableMap() - .putAll(values); + public Builder putAllScriptVariables(java.util.Map values) { + internalGetMutableScriptVariables().getMutableMap().putAll(values); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField properties_; + private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } + private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged();; + internalGetMutableProperties() { + onChanged(); + ; if (properties_ == null) { - properties_ = com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); + properties_ = + com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -1665,6 +1814,8 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Pig.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1672,24 +1823,25 @@ public int getPropertiesCount() {
      * /etc/pig/conf/pig.properties, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Pig.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1697,14 +1849,16 @@ public java.util.Map getProperties() {
      * /etc/pig/conf/pig.properties, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Pig.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1712,19 +1866,21 @@ public java.util.Map getPropertiesMap() {
      * /etc/pig/conf/pig.properties, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Pig.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1732,15 +1888,15 @@ public java.lang.String getPropertiesOrDefault(
      * /etc/pig/conf/pig.properties, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1748,11 +1904,12 @@ public java.lang.String getPropertiesOrThrow( } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap() - .clear(); + internalGetMutableProperties().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Pig.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1760,25 +1917,24 @@ public Builder clearProperties() {
      * /etc/pig/conf/pig.properties, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableProperties().getMutableMap() - .remove(key); + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProperties().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableProperties() { + public java.util.Map getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Pig.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1786,21 +1942,23 @@ public Builder removeProperties(
      * /etc/pig/conf/pig.properties, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putProperties( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putProperties(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"); + } - internalGetMutableProperties().getMutableMap() - .put(key, value); + internalGetMutableProperties().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Pig.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1808,55 +1966,63 @@ public Builder putProperties(
      * /etc/pig/conf/pig.properties, and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllProperties( - java.util.Map values) { - internalGetMutableProperties().getMutableMap() - .putAll(values); + public Builder putAllProperties(java.util.Map values) { + internalGetMutableProperties().getMutableMap().putAll(values); return this; } - private com.google.protobuf.LazyStringList jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList jarFileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureJarFileUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of
      * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList - getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { return jarFileUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of
      * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of
      * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -1864,85 +2030,95 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of
      * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString - getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of
      * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The jarFileUris to set. * @return This builder for chaining. */ - public Builder setJarFileUris( - int index, java.lang.String value) { + public Builder setJarFileUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of
      * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUris( - java.lang.String value) { + public Builder addJarFileUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of
      * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The jarFileUris to add. * @return This builder for chaining. */ - public Builder addAllJarFileUris( - java.lang.Iterable values) { + public Builder addAllJarFileUris(java.lang.Iterable values) { ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, jarFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of
      * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearJarFileUris() { @@ -1952,21 +2128,23 @@ public Builder clearJarFileUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATH of
      * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
      * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); @@ -1975,39 +2153,58 @@ public Builder addJarFileUrisBytes( private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> loggingConfigBuilder_; + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + loggingConfigBuilder_; /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ public boolean hasLoggingConfig() { return loggingConfigBuilder_ != null || loggingConfig_ != null; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } else { return loggingConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { @@ -2023,11 +2220,15 @@ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLoggingConfig( com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { @@ -2041,17 +2242,23 @@ public Builder setLoggingConfig( return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { if (loggingConfig_ != null) { loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) + .mergeFrom(value) + .buildPartial(); } else { loggingConfig_ = value; } @@ -2063,11 +2270,15 @@ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig val return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearLoggingConfig() { if (loggingConfigBuilder_ == null) { @@ -2081,55 +2292,71 @@ public Builder clearLoggingConfig() { return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - + onChanged(); return getLoggingConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { if (loggingConfigBuilder_ != null) { return loggingConfigBuilder_.getMessageOrBuilder(); } else { - return loggingConfig_ == null ? - com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> getLoggingConfigFieldBuilder() { if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), - getParentForChildren(), - isClean()); + loggingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( + getLoggingConfig(), getParentForChildren(), isClean()); loggingConfig_ = null; } return loggingConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2139,12 +2366,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.PigJob) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PigJob) private static final com.google.cloud.dataproc.v1.PigJob DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.PigJob(); } @@ -2153,27 +2380,27 @@ public static com.google.cloud.dataproc.v1.PigJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PigJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PigJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2188,6 +2415,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.PigJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java similarity index 72% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java index 403a56dc26eb..6c621befbb71 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java @@ -1,60 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface PigJobOrBuilder extends +public interface PigJobOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PigJob) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The HCFS URI of the script that contains the Pig queries.
    * 
* * string query_file_uri = 1; + * * @return Whether the queryFileUri field is set. */ boolean hasQueryFileUri(); /** + * + * *
    * The HCFS URI of the script that contains the Pig queries.
    * 
* * string query_file_uri = 1; + * * @return The queryFileUri. */ java.lang.String getQueryFileUri(); /** + * + * *
    * The HCFS URI of the script that contains the Pig queries.
    * 
* * string query_file_uri = 1; + * * @return The bytes for queryFileUri. */ - com.google.protobuf.ByteString - getQueryFileUriBytes(); + com.google.protobuf.ByteString getQueryFileUriBytes(); /** + * + * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return Whether the queryList field is set. */ boolean hasQueryList(); /** + * + * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return The queryList. */ com.google.cloud.dataproc.v1.QueryList getQueryList(); /** + * + * *
    * A list of queries.
    * 
@@ -64,6 +96,8 @@ public interface PigJobOrBuilder extends com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder(); /** + * + * *
    * Optional. Whether to continue executing queries if a query fails.
    * The default value is `false`. Setting to `true` can be useful when
@@ -71,72 +105,83 @@ public interface PigJobOrBuilder extends
    * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The continueOnFailure. */ boolean getContinueOnFailure(); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the Pig
    * command: `name=[value]`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getScriptVariablesCount(); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the Pig
    * command: `name=[value]`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsScriptVariables( - java.lang.String key); - /** - * Use {@link #getScriptVariablesMap()} instead. + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsScriptVariables(java.lang.String key); + /** Use {@link #getScriptVariablesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getScriptVariables(); + java.util.Map getScriptVariables(); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the Pig
    * command: `name=[value]`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getScriptVariablesMap(); + java.util.Map getScriptVariablesMap(); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the Pig
    * command: `name=[value]`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getScriptVariablesOrDefault( + java.lang.String getScriptVariablesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the Pig
    * command: `name=[value]`).
    * 
* - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - java.lang.String getScriptVariablesOrThrow( - java.lang.String key); + java.lang.String getScriptVariablesOrThrow(java.lang.String key); /** + * + * *
    * Optional. A mapping of property names to values, used to configure Pig.
    * Properties that conflict with values set by the Dataproc API may be
@@ -144,10 +189,13 @@ java.lang.String getScriptVariablesOrThrow(
    * /etc/pig/conf/pig.properties, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getPropertiesCount(); /** + * + * *
    * Optional. A mapping of property names to values, used to configure Pig.
    * Properties that conflict with values set by the Dataproc API may be
@@ -155,17 +203,16 @@ java.lang.String getScriptVariablesOrThrow(
    * /etc/pig/conf/pig.properties, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsProperties( - java.lang.String key); - /** - * Use {@link #getPropertiesMap()} instead. + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsProperties(java.lang.String key); + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getProperties(); + java.util.Map getProperties(); /** + * + * *
    * Optional. A mapping of property names to values, used to configure Pig.
    * Properties that conflict with values set by the Dataproc API may be
@@ -173,11 +220,13 @@ boolean containsProperties(
    * /etc/pig/conf/pig.properties, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getPropertiesMap(); + java.util.Map getPropertiesMap(); /** + * + * *
    * Optional. A mapping of property names to values, used to configure Pig.
    * Properties that conflict with values set by the Dataproc API may be
@@ -185,15 +234,18 @@ boolean containsProperties(
    * /etc/pig/conf/pig.properties, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getPropertiesOrDefault( + java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. A mapping of property names to values, used to configure Pig.
    * Properties that conflict with values set by the Dataproc API may be
@@ -201,81 +253,104 @@ java.lang.String getPropertiesOrDefault(
    * /etc/pig/conf/pig.properties, and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - java.lang.String getPropertiesOrThrow( - java.lang.String key); + java.lang.String getPropertiesOrThrow(java.lang.String key); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of
    * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - java.util.List - getJarFileUrisList(); + java.util.List getJarFileUrisList(); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of
    * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ int getJarFileUrisCount(); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of
    * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ java.lang.String getJarFileUris(int index); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATH of
    * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
    * 
* * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - com.google.protobuf.ByteString - getJarFileUrisBytes(int index); + com.google.protobuf.ByteString getJarFileUrisBytes(int index); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ boolean hasLoggingConfig(); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java similarity index 68% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java index eaaa6b566828..05d899d3b67d 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A Dataproc job for running [Presto](https://prestosql.io/) queries.
  * **IMPORTANT**: The [Dataproc Presto Optional
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.PrestoJob}
  */
-public final class PrestoJob extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PrestoJob extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.PrestoJob)
     PrestoJobOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PrestoJob.newBuilder() to construct.
   private PrestoJob(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PrestoJob() {
     outputFormat_ = "";
     clientTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -30,50 +48,53 @@ private PrestoJob() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PrestoJob();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.JobsProto
+        .internal_static_google_cloud_dataproc_v1_PrestoJob_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 internalGetProperties();
       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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.JobsProto
+        .internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.PrestoJob.class, com.google.cloud.dataproc.v1.PrestoJob.Builder.class);
+            com.google.cloud.dataproc.v1.PrestoJob.class,
+            com.google.cloud.dataproc.v1.PrestoJob.Builder.class);
   }
 
   private int queriesCase_ = 0;
   private java.lang.Object queries_;
+
   public enum QueriesCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     QUERY_FILE_URI(1),
     QUERY_LIST(2),
     QUERIES_NOT_SET(0);
     private final int value;
+
     private QueriesCase(int value) {
       this.value = value;
     }
@@ -89,41 +110,50 @@ public static QueriesCase valueOf(int value) {
 
     public static QueriesCase forNumber(int value) {
       switch (value) {
-        case 1: return QUERY_FILE_URI;
-        case 2: return QUERY_LIST;
-        case 0: return QUERIES_NOT_SET;
-        default: return null;
+        case 1:
+          return QUERY_FILE_URI;
+        case 2:
+          return QUERY_LIST;
+        case 0:
+          return QUERIES_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public QueriesCase
-  getQueriesCase() {
-    return QueriesCase.forNumber(
-        queriesCase_);
+  public QueriesCase getQueriesCase() {
+    return QueriesCase.forNumber(queriesCase_);
   }
 
   public static final int QUERY_FILE_URI_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; + * * @return Whether the queryFileUri field is set. */ public boolean hasQueryFileUri() { return queriesCase_ == 1; } /** + * + * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; + * * @return The queryFileUri. */ public java.lang.String getQueryFileUri() { @@ -134,8 +164,7 @@ public java.lang.String getQueryFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (queriesCase_ == 1) { queries_ = s; @@ -144,23 +173,24 @@ public java.lang.String getQueryFileUri() { } } /** + * + * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; + * * @return The bytes for queryFileUri. */ - public com.google.protobuf.ByteString - getQueryFileUriBytes() { + public com.google.protobuf.ByteString getQueryFileUriBytes() { java.lang.Object ref = ""; if (queriesCase_ == 1) { ref = queries_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (queriesCase_ == 1) { queries_ = b; } @@ -172,11 +202,14 @@ public java.lang.String getQueryFileUri() { public static final int QUERY_LIST_FIELD_NUMBER = 2; /** + * + * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return Whether the queryList field is set. */ @java.lang.Override @@ -184,21 +217,26 @@ public boolean hasQueryList() { return queriesCase_ == 2; } /** + * + * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return The queryList. */ @java.lang.Override public com.google.cloud.dataproc.v1.QueryList getQueryList() { if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; + return (com.google.cloud.dataproc.v1.QueryList) queries_; } return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } /** + * + * *
    * A list of queries.
    * 
@@ -208,7 +246,7 @@ public com.google.cloud.dataproc.v1.QueryList getQueryList() { @java.lang.Override public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; + return (com.google.cloud.dataproc.v1.QueryList) queries_; } return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } @@ -216,6 +254,8 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER = 3; private boolean continueOnFailure_; /** + * + * *
    * Optional. Whether to continue executing queries if a query fails.
    * The default value is `false`. Setting to `true` can be useful when
@@ -223,6 +263,7 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() {
    * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The continueOnFailure. */ @java.lang.Override @@ -233,12 +274,15 @@ public boolean getContinueOnFailure() { public static final int OUTPUT_FORMAT_FIELD_NUMBER = 4; private volatile java.lang.Object outputFormat_; /** + * + * *
    * Optional. The format in which query output will be displayed. See the
    * Presto documentation for supported output formats
    * 
* * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The outputFormat. */ @java.lang.Override @@ -247,30 +291,30 @@ public java.lang.String getOutputFormat() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputFormat_ = s; return s; } } /** + * + * *
    * Optional. The format in which query output will be displayed. See the
    * Presto documentation for supported output formats
    * 
* * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for outputFormat. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputFormatBytes() { + public com.google.protobuf.ByteString getOutputFormatBytes() { java.lang.Object ref = outputFormat_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputFormat_ = b; return b; } else { @@ -281,34 +325,42 @@ public java.lang.String getOutputFormat() { public static final int CLIENT_TAGS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList clientTags_; /** + * + * *
    * Optional. Presto client tags to attach to this query
    * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the clientTags. */ - public com.google.protobuf.ProtocolStringList - getClientTagsList() { + public com.google.protobuf.ProtocolStringList getClientTagsList() { return clientTags_; } /** + * + * *
    * Optional. Presto client tags to attach to this query
    * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of clientTags. */ public int getClientTagsCount() { return clientTags_.size(); } /** + * + * *
    * Optional. Presto client tags to attach to this query
    * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The clientTags at the given index. */ @@ -316,38 +368,39 @@ public java.lang.String getClientTags(int index) { return clientTags_.get(index); } /** + * + * *
    * Optional. Presto client tags to attach to this query
    * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the clientTags at the given index. */ - public com.google.protobuf.ByteString - getClientTagsBytes(int index) { + public com.google.protobuf.ByteString getClientTagsBytes(int index) { return clientTags_.getByteString(index); } public static final int PROPERTIES_FIELD_NUMBER = 6; + private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; - private com.google.protobuf.MapField - internalGetProperties() { + + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -356,78 +409,85 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
    * Optional. A mapping of property names to values. Used to set Presto
    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
    * Equivalent to using the --session flag in the Presto CLI
    * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
    * Optional. A mapping of property names to values. Used to set Presto
    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
    * Equivalent to using the --session flag in the Presto CLI
    * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
    * Optional. A mapping of property names to values. Used to set Presto
    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
    * Equivalent to using the --session flag in the Presto CLI
    * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. A mapping of property names to values. Used to set Presto
    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
    * Equivalent to using the --session flag in the Presto CLI
    * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -437,11 +497,16 @@ public java.lang.String getPropertiesOrThrow( public static final int LOGGING_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ @java.lang.Override @@ -449,23 +514,34 @@ public boolean hasLoggingConfig() { return loggingConfig_ != null; } /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { @@ -473,6 +549,7 @@ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBui } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -484,8 +561,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (queriesCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_); } @@ -501,12 +577,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < clientTags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, clientTags_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetProperties(), - PropertiesDefaultEntryHolder.defaultEntry, - 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 6); if (loggingConfig_ != null) { output.writeMessage(7, getLoggingConfig()); } @@ -523,12 +595,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queries_); } if (queriesCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.dataproc.v1.QueryList) queries_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataproc.v1.QueryList) queries_); } if (continueOnFailure_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, continueOnFailure_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, continueOnFailure_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputFormat_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, outputFormat_); @@ -541,19 +613,18 @@ public int getSerializedSize() { size += dataSize; size += 1 * getClientTagsList().size(); } - for (java.util.Map.Entry entry - : internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry - properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, properties__); + for (java.util.Map.Entry entry : + internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, properties__); } if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getLoggingConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLoggingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -563,35 +634,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.PrestoJob)) { return super.equals(obj); } com.google.cloud.dataproc.v1.PrestoJob other = (com.google.cloud.dataproc.v1.PrestoJob) obj; - if (getContinueOnFailure() - != other.getContinueOnFailure()) return false; - if (!getOutputFormat() - .equals(other.getOutputFormat())) return false; - if (!getClientTagsList() - .equals(other.getClientTagsList())) return false; - if (!internalGetProperties().equals( - other.internalGetProperties())) return false; + if (getContinueOnFailure() != other.getContinueOnFailure()) return false; + if (!getOutputFormat().equals(other.getOutputFormat())) return false; + if (!getClientTagsList().equals(other.getClientTagsList())) return false; + if (!internalGetProperties().equals(other.internalGetProperties())) return false; if (hasLoggingConfig() != other.hasLoggingConfig()) return false; if (hasLoggingConfig()) { - if (!getLoggingConfig() - .equals(other.getLoggingConfig())) return false; + if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; } if (!getQueriesCase().equals(other.getQueriesCase())) return false; switch (queriesCase_) { case 1: - if (!getQueryFileUri() - .equals(other.getQueryFileUri())) return false; + if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; break; case 2: - if (!getQueryList() - .equals(other.getQueryList())) return false; + if (!getQueryList().equals(other.getQueryList())) return false; break; case 0: default: @@ -608,8 +672,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONTINUE_ON_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getContinueOnFailure()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContinueOnFailure()); hash = (37 * hash) + OUTPUT_FORMAT_FIELD_NUMBER; hash = (53 * hash) + getOutputFormat().hashCode(); if (getClientTagsCount() > 0) { @@ -641,97 +704,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.PrestoJob parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PrestoJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PrestoJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PrestoJob 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.dataproc.v1.PrestoJob parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.PrestoJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc job for running [Presto](https://prestosql.io/) queries.
    * **IMPORTANT**: The [Dataproc Presto Optional
@@ -742,55 +812,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.PrestoJob}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.PrestoJob)
       com.google.cloud.dataproc.v1.PrestoJobOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 6:
           return internalGetProperties();
         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 internalGetMutableProperties();
         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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.PrestoJob.class, com.google.cloud.dataproc.v1.PrestoJob.Builder.class);
+              com.google.cloud.dataproc.v1.PrestoJob.class,
+              com.google.cloud.dataproc.v1.PrestoJob.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.PrestoJob.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -816,9 +883,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor;
     }
 
     @java.lang.Override
@@ -837,7 +904,8 @@ public com.google.cloud.dataproc.v1.PrestoJob build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.PrestoJob buildPartial() {
-      com.google.cloud.dataproc.v1.PrestoJob result = new com.google.cloud.dataproc.v1.PrestoJob(this);
+      com.google.cloud.dataproc.v1.PrestoJob result =
+          new com.google.cloud.dataproc.v1.PrestoJob(this);
       int from_bitField0_ = bitField0_;
       if (queriesCase_ == 1) {
         result.queries_ = queries_;
@@ -872,38 +940,39 @@ public com.google.cloud.dataproc.v1.PrestoJob buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.PrestoJob) {
-        return mergeFrom((com.google.cloud.dataproc.v1.PrestoJob)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.PrestoJob) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -929,25 +998,27 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.PrestoJob other) {
         }
         onChanged();
       }
-      internalGetMutableProperties().mergeFrom(
-          other.internalGetProperties());
+      internalGetMutableProperties().mergeFrom(other.internalGetProperties());
       if (other.hasLoggingConfig()) {
         mergeLoggingConfig(other.getLoggingConfig());
       }
       switch (other.getQueriesCase()) {
-        case QUERY_FILE_URI: {
-          queriesCase_ = 1;
-          queries_ = other.queries_;
-          onChanged();
-          break;
-        }
-        case QUERY_LIST: {
-          mergeQueryList(other.getQueryList());
-          break;
-        }
-        case QUERIES_NOT_SET: {
-          break;
-        }
+        case QUERY_FILE_URI:
+          {
+            queriesCase_ = 1;
+            queries_ = other.queries_;
+            onChanged();
+            break;
+          }
+        case QUERY_LIST:
+          {
+            mergeQueryList(other.getQueryList());
+            break;
+          }
+        case QUERIES_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -975,56 +1046,62 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              queriesCase_ = 1;
-              queries_ = s;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getQueryListFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              queriesCase_ = 2;
-              break;
-            } // case 18
-            case 24: {
-              continueOnFailure_ = input.readBool();
-
-              break;
-            } // case 24
-            case 34: {
-              outputFormat_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 34
-            case 42: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureClientTagsIsMutable();
-              clientTags_.add(s);
-              break;
-            } // case 42
-            case 50: {
-              com.google.protobuf.MapEntry
-              properties__ = input.readMessage(
-                  PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableProperties().getMutableMap().put(
-                  properties__.getKey(), properties__.getValue());
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getLoggingConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 58
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                queriesCase_ = 1;
+                queries_ = s;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getQueryListFieldBuilder().getBuilder(), extensionRegistry);
+                queriesCase_ = 2;
+                break;
+              } // case 18
+            case 24:
+              {
+                continueOnFailure_ = input.readBool();
+
+                break;
+              } // case 24
+            case 34:
+              {
+                outputFormat_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 34
+            case 42:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureClientTagsIsMutable();
+                clientTags_.add(s);
+                break;
+              } // case 42
+            case 50:
+              {
+                com.google.protobuf.MapEntry properties__ =
+                    input.readMessage(
+                        PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableProperties()
+                    .getMutableMap()
+                    .put(properties__.getKey(), properties__.getValue());
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 58
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1034,12 +1111,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int queriesCase_ = 0;
     private java.lang.Object queries_;
-    public QueriesCase
-        getQueriesCase() {
-      return QueriesCase.forNumber(
-          queriesCase_);
+
+    public QueriesCase getQueriesCase() {
+      return QueriesCase.forNumber(queriesCase_);
     }
 
     public Builder clearQueries() {
@@ -1052,11 +1129,14 @@ public Builder clearQueries() {
     private int bitField0_;
 
     /**
+     *
+     *
      * 
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; + * * @return Whether the queryFileUri field is set. */ @java.lang.Override @@ -1064,11 +1144,14 @@ public boolean hasQueryFileUri() { return queriesCase_ == 1; } /** + * + * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; + * * @return The queryFileUri. */ @java.lang.Override @@ -1078,8 +1161,7 @@ public java.lang.String getQueryFileUri() { ref = queries_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (queriesCase_ == 1) { queries_ = s; @@ -1090,24 +1172,25 @@ public java.lang.String getQueryFileUri() { } } /** + * + * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; + * * @return The bytes for queryFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryFileUriBytes() { + public com.google.protobuf.ByteString getQueryFileUriBytes() { java.lang.Object ref = ""; if (queriesCase_ == 1) { ref = queries_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (queriesCase_ == 1) { queries_ = b; } @@ -1117,30 +1200,35 @@ public java.lang.String getQueryFileUri() { } } /** + * + * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; + * * @param value The queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUri( - java.lang.String value) { + public Builder setQueryFileUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - queriesCase_ = 1; + throw new NullPointerException(); + } + queriesCase_ = 1; queries_ = value; onChanged(); return this; } /** + * + * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; + * * @return This builder for chaining. */ public Builder clearQueryFileUri() { @@ -1152,20 +1240,22 @@ public Builder clearQueryFileUri() { return this; } /** + * + * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; + * * @param value The bytes for queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUriBytes( - com.google.protobuf.ByteString value) { + public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); queriesCase_ = 1; queries_ = value; onChanged(); @@ -1173,13 +1263,19 @@ public Builder setQueryFileUriBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder> queryListBuilder_; + com.google.cloud.dataproc.v1.QueryList, + com.google.cloud.dataproc.v1.QueryList.Builder, + com.google.cloud.dataproc.v1.QueryListOrBuilder> + queryListBuilder_; /** + * + * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return Whether the queryList field is set. */ @java.lang.Override @@ -1187,11 +1283,14 @@ public boolean hasQueryList() { return queriesCase_ == 2; } /** + * + * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return The queryList. */ @java.lang.Override @@ -1209,6 +1308,8 @@ public com.google.cloud.dataproc.v1.QueryList getQueryList() { } } /** + * + * *
      * A list of queries.
      * 
@@ -1229,14 +1330,15 @@ public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList value) { return this; } /** + * + * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; */ - public Builder setQueryList( - com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { + public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { if (queryListBuilder_ == null) { queries_ = builderForValue.build(); onChanged(); @@ -1247,6 +1349,8 @@ public Builder setQueryList( return this; } /** + * + * *
      * A list of queries.
      * 
@@ -1255,10 +1359,13 @@ public Builder setQueryList( */ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { if (queryListBuilder_ == null) { - if (queriesCase_ == 2 && - queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { - queries_ = com.google.cloud.dataproc.v1.QueryList.newBuilder((com.google.cloud.dataproc.v1.QueryList) queries_) - .mergeFrom(value).buildPartial(); + if (queriesCase_ == 2 + && queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { + queries_ = + com.google.cloud.dataproc.v1.QueryList.newBuilder( + (com.google.cloud.dataproc.v1.QueryList) queries_) + .mergeFrom(value) + .buildPartial(); } else { queries_ = value; } @@ -1274,6 +1381,8 @@ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { return this; } /** + * + * *
      * A list of queries.
      * 
@@ -1297,6 +1406,8 @@ public Builder clearQueryList() { return this; } /** + * + * *
      * A list of queries.
      * 
@@ -1307,6 +1418,8 @@ public com.google.cloud.dataproc.v1.QueryList.Builder getQueryListBuilder() { return getQueryListFieldBuilder().getBuilder(); } /** + * + * *
      * A list of queries.
      * 
@@ -1325,6 +1438,8 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { } } /** + * + * *
      * A list of queries.
      * 
@@ -1332,26 +1447,34 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { * .google.cloud.dataproc.v1.QueryList query_list = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder> + com.google.cloud.dataproc.v1.QueryList, + com.google.cloud.dataproc.v1.QueryList.Builder, + com.google.cloud.dataproc.v1.QueryListOrBuilder> getQueryListFieldBuilder() { if (queryListBuilder_ == null) { if (!(queriesCase_ == 2)) { queries_ = com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } - queryListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder>( + queryListBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.QueryList, + com.google.cloud.dataproc.v1.QueryList.Builder, + com.google.cloud.dataproc.v1.QueryListOrBuilder>( (com.google.cloud.dataproc.v1.QueryList) queries_, getParentForChildren(), isClean()); queries_ = null; } queriesCase_ = 2; - onChanged();; + onChanged(); + ; return queryListBuilder_; } - private boolean continueOnFailure_ ; + private boolean continueOnFailure_; /** + * + * *
      * Optional. Whether to continue executing queries if a query fails.
      * The default value is `false`. Setting to `true` can be useful when
@@ -1359,6 +1482,7 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() {
      * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The continueOnFailure. */ @java.lang.Override @@ -1366,6 +1490,8 @@ public boolean getContinueOnFailure() { return continueOnFailure_; } /** + * + * *
      * Optional. Whether to continue executing queries if a query fails.
      * The default value is `false`. Setting to `true` can be useful when
@@ -1373,16 +1499,19 @@ public boolean getContinueOnFailure() {
      * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The continueOnFailure to set. * @return This builder for chaining. */ public Builder setContinueOnFailure(boolean value) { - + continueOnFailure_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Whether to continue executing queries if a query fails.
      * The default value is `false`. Setting to `true` can be useful when
@@ -1390,10 +1519,11 @@ public Builder setContinueOnFailure(boolean value) {
      * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearContinueOnFailure() { - + continueOnFailure_ = false; onChanged(); return this; @@ -1401,19 +1531,21 @@ public Builder clearContinueOnFailure() { private java.lang.Object outputFormat_ = ""; /** + * + * *
      * Optional. The format in which query output will be displayed. See the
      * Presto documentation for supported output formats
      * 
* * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The outputFormat. */ public java.lang.String getOutputFormat() { java.lang.Object ref = outputFormat_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputFormat_ = s; return s; @@ -1422,21 +1554,22 @@ public java.lang.String getOutputFormat() { } } /** + * + * *
      * Optional. The format in which query output will be displayed. See the
      * Presto documentation for supported output formats
      * 
* * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for outputFormat. */ - public com.google.protobuf.ByteString - getOutputFormatBytes() { + public com.google.protobuf.ByteString getOutputFormatBytes() { java.lang.Object ref = outputFormat_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputFormat_ = b; return b; } else { @@ -1444,98 +1577,115 @@ public java.lang.String getOutputFormat() { } } /** + * + * *
      * Optional. The format in which query output will be displayed. See the
      * Presto documentation for supported output formats
      * 
* * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The outputFormat to set. * @return This builder for chaining. */ - public Builder setOutputFormat( - java.lang.String value) { + public Builder setOutputFormat(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputFormat_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The format in which query output will be displayed. See the
      * Presto documentation for supported output formats
      * 
* * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOutputFormat() { - + outputFormat_ = getDefaultInstance().getOutputFormat(); onChanged(); return this; } /** + * + * *
      * Optional. The format in which query output will be displayed. See the
      * Presto documentation for supported output formats
      * 
* * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for outputFormat to set. * @return This builder for chaining. */ - public Builder setOutputFormatBytes( - com.google.protobuf.ByteString value) { + public Builder setOutputFormatBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputFormat_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList clientTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList clientTags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureClientTagsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { clientTags_ = new com.google.protobuf.LazyStringArrayList(clientTags_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. Presto client tags to attach to this query
      * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the clientTags. */ - public com.google.protobuf.ProtocolStringList - getClientTagsList() { + public com.google.protobuf.ProtocolStringList getClientTagsList() { return clientTags_.getUnmodifiableView(); } /** + * + * *
      * Optional. Presto client tags to attach to this query
      * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of clientTags. */ public int getClientTagsCount() { return clientTags_.size(); } /** + * + * *
      * Optional. Presto client tags to attach to this query
      * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The clientTags at the given index. */ @@ -1543,80 +1693,90 @@ public java.lang.String getClientTags(int index) { return clientTags_.get(index); } /** + * + * *
      * Optional. Presto client tags to attach to this query
      * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the clientTags at the given index. */ - public com.google.protobuf.ByteString - getClientTagsBytes(int index) { + public com.google.protobuf.ByteString getClientTagsBytes(int index) { return clientTags_.getByteString(index); } /** + * + * *
      * Optional. Presto client tags to attach to this query
      * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The clientTags to set. * @return This builder for chaining. */ - public Builder setClientTags( - int index, java.lang.String value) { + public Builder setClientTags(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureClientTagsIsMutable(); + throw new NullPointerException(); + } + ensureClientTagsIsMutable(); clientTags_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. Presto client tags to attach to this query
      * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The clientTags to add. * @return This builder for chaining. */ - public Builder addClientTags( - java.lang.String value) { + public Builder addClientTags(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureClientTagsIsMutable(); + throw new NullPointerException(); + } + ensureClientTagsIsMutable(); clientTags_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. Presto client tags to attach to this query
      * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The clientTags to add. * @return This builder for chaining. */ - public Builder addAllClientTags( - java.lang.Iterable values) { + public Builder addAllClientTags(java.lang.Iterable values) { ensureClientTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, clientTags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clientTags_); onChanged(); return this; } /** + * + * *
      * Optional. Presto client tags to attach to this query
      * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearClientTags() { @@ -1626,42 +1786,46 @@ public Builder clearClientTags() { return this; } /** + * + * *
      * Optional. Presto client tags to attach to this query
      * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the clientTags to add. * @return This builder for chaining. */ - public Builder addClientTagsBytes( - com.google.protobuf.ByteString value) { + public Builder addClientTagsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureClientTagsIsMutable(); clientTags_.add(value); onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField properties_; + private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } + private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged();; + internalGetMutableProperties() { + onChanged(); + ; if (properties_ == null) { - properties_ = com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); + properties_ = + com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -1673,78 +1837,85 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
      * Optional. A mapping of property names to values. Used to set Presto
      * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
      * Equivalent to using the --session flag in the Presto CLI
      * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
      * Optional. A mapping of property names to values. Used to set Presto
      * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
      * Equivalent to using the --session flag in the Presto CLI
      * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
      * Optional. A mapping of property names to values. Used to set Presto
      * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
      * Equivalent to using the --session flag in the Presto CLI
      * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. A mapping of property names to values. Used to set Presto
      * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
      * Equivalent to using the --session flag in the Presto CLI
      * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1752,108 +1923,127 @@ public java.lang.String getPropertiesOrThrow( } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap() - .clear(); + internalGetMutableProperties().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. A mapping of property names to values. Used to set Presto
      * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
      * Equivalent to using the --session flag in the Presto CLI
      * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableProperties().getMutableMap() - .remove(key); + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProperties().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableProperties() { + public java.util.Map getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** + * + * *
      * Optional. A mapping of property names to values. Used to set Presto
      * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
      * Equivalent to using the --session flag in the Presto CLI
      * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putProperties( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putProperties(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"); + } - internalGetMutableProperties().getMutableMap() - .put(key, value); + internalGetMutableProperties().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. A mapping of property names to values. Used to set Presto
      * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
      * Equivalent to using the --session flag in the Presto CLI
      * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllProperties( - java.util.Map values) { - internalGetMutableProperties().getMutableMap() - .putAll(values); + public Builder putAllProperties(java.util.Map values) { + internalGetMutableProperties().getMutableMap().putAll(values); return this; } private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> loggingConfigBuilder_; + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + loggingConfigBuilder_; /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ public boolean hasLoggingConfig() { return loggingConfigBuilder_ != null || loggingConfig_ != null; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } else { return loggingConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { @@ -1869,11 +2059,15 @@ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLoggingConfig( com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { @@ -1887,17 +2081,23 @@ public Builder setLoggingConfig( return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { if (loggingConfig_ != null) { loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) + .mergeFrom(value) + .buildPartial(); } else { loggingConfig_ = value; } @@ -1909,11 +2109,15 @@ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig val return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearLoggingConfig() { if (loggingConfigBuilder_ == null) { @@ -1927,55 +2131,71 @@ public Builder clearLoggingConfig() { return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - + onChanged(); return getLoggingConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { if (loggingConfigBuilder_ != null) { return loggingConfigBuilder_.getMessageOrBuilder(); } else { - return loggingConfig_ == null ? - com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> getLoggingConfigFieldBuilder() { if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), - getParentForChildren(), - isClean()); + loggingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( + getLoggingConfig(), getParentForChildren(), isClean()); loggingConfig_ = null; } return loggingConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1985,12 +2205,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.PrestoJob) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PrestoJob) private static final com.google.cloud.dataproc.v1.PrestoJob DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.PrestoJob(); } @@ -1999,27 +2219,27 @@ public static com.google.cloud.dataproc.v1.PrestoJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrestoJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrestoJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2034,6 +2254,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.PrestoJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java similarity index 73% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java index ef9e120cb4ad..c1ad6cdade13 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java @@ -1,60 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface PrestoJobOrBuilder extends +public interface PrestoJobOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PrestoJob) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; + * * @return Whether the queryFileUri field is set. */ boolean hasQueryFileUri(); /** + * + * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; + * * @return The queryFileUri. */ java.lang.String getQueryFileUri(); /** + * + * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; + * * @return The bytes for queryFileUri. */ - com.google.protobuf.ByteString - getQueryFileUriBytes(); + com.google.protobuf.ByteString getQueryFileUriBytes(); /** + * + * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return Whether the queryList field is set. */ boolean hasQueryList(); /** + * + * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return The queryList. */ com.google.cloud.dataproc.v1.QueryList getQueryList(); /** + * + * *
    * A list of queries.
    * 
@@ -64,6 +96,8 @@ public interface PrestoJobOrBuilder extends com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder(); /** + * + * *
    * Optional. Whether to continue executing queries if a query fails.
    * The default value is `false`. Setting to `true` can be useful when
@@ -71,163 +105,201 @@ public interface PrestoJobOrBuilder extends
    * 
* * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The continueOnFailure. */ boolean getContinueOnFailure(); /** + * + * *
    * Optional. The format in which query output will be displayed. See the
    * Presto documentation for supported output formats
    * 
* * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The outputFormat. */ java.lang.String getOutputFormat(); /** + * + * *
    * Optional. The format in which query output will be displayed. See the
    * Presto documentation for supported output formats
    * 
* * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for outputFormat. */ - com.google.protobuf.ByteString - getOutputFormatBytes(); + com.google.protobuf.ByteString getOutputFormatBytes(); /** + * + * *
    * Optional. Presto client tags to attach to this query
    * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the clientTags. */ - java.util.List - getClientTagsList(); + java.util.List getClientTagsList(); /** + * + * *
    * Optional. Presto client tags to attach to this query
    * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of clientTags. */ int getClientTagsCount(); /** + * + * *
    * Optional. Presto client tags to attach to this query
    * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The clientTags at the given index. */ java.lang.String getClientTags(int index); /** + * + * *
    * Optional. Presto client tags to attach to this query
    * 
* * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the clientTags at the given index. */ - com.google.protobuf.ByteString - getClientTagsBytes(int index); + com.google.protobuf.ByteString getClientTagsBytes(int index); /** + * + * *
    * Optional. A mapping of property names to values. Used to set Presto
    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
    * Equivalent to using the --session flag in the Presto CLI
    * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getPropertiesCount(); /** + * + * *
    * Optional. A mapping of property names to values. Used to set Presto
    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
    * Equivalent to using the --session flag in the Presto CLI
    * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsProperties( - java.lang.String key); - /** - * Use {@link #getPropertiesMap()} instead. + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsProperties(java.lang.String key); + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getProperties(); + java.util.Map getProperties(); /** + * + * *
    * Optional. A mapping of property names to values. Used to set Presto
    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
    * Equivalent to using the --session flag in the Presto CLI
    * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getPropertiesMap(); + java.util.Map getPropertiesMap(); /** + * + * *
    * Optional. A mapping of property names to values. Used to set Presto
    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
    * Equivalent to using the --session flag in the Presto CLI
    * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getPropertiesOrDefault( + java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. A mapping of property names to values. Used to set Presto
    * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
    * Equivalent to using the --session flag in the Presto CLI
    * 
* - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - java.lang.String getPropertiesOrThrow( - java.lang.String key); + java.lang.String getPropertiesOrThrow(java.lang.String key); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ boolean hasLoggingConfig(); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java similarity index 77% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java index f038943c4f8f..a5dd15868a23 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A configuration for running an
  * [Apache
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.PySparkBatch}
  */
-public final class PySparkBatch extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PySparkBatch extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.PySparkBatch)
     PySparkBatchOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PySparkBatch.newBuilder() to construct.
   private PySparkBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PySparkBatch() {
     mainPythonFileUri_ = "";
     args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -33,38 +51,42 @@ private PySparkBatch() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PySparkBatch();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.BatchesProto
+        .internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.BatchesProto
+        .internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.PySparkBatch.class, com.google.cloud.dataproc.v1.PySparkBatch.Builder.class);
+            com.google.cloud.dataproc.v1.PySparkBatch.class,
+            com.google.cloud.dataproc.v1.PySparkBatch.Builder.class);
   }
 
   public static final int MAIN_PYTHON_FILE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object mainPythonFileUri_;
   /**
+   *
+   *
    * 
    * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
    * be a .py file.
    * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mainPythonFileUri. */ @java.lang.Override @@ -73,30 +95,30 @@ public java.lang.String getMainPythonFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mainPythonFileUri_ = s; return s; } } /** + * + * *
    * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
    * be a .py file.
    * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for mainPythonFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getMainPythonFileUriBytes() { + public com.google.protobuf.ByteString getMainPythonFileUriBytes() { java.lang.Object ref = mainPythonFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mainPythonFileUri_ = b; return b; } else { @@ -107,6 +129,8 @@ public java.lang.String getMainPythonFileUri() { public static final int ARGS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList args_; /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -114,13 +138,15 @@ public java.lang.String getMainPythonFileUri() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_; } /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -128,12 +154,15 @@ public java.lang.String getMainPythonFileUri() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -141,6 +170,7 @@ public int getArgsCount() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -148,6 +178,8 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -155,48 +187,56 @@ public java.lang.String getArgs(int index) {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } public static final int PYTHON_FILE_URIS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList pythonFileUris_; /** + * + * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: `.py`, `.egg`, and `.zip`.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the pythonFileUris. */ - public com.google.protobuf.ProtocolStringList - getPythonFileUrisList() { + public com.google.protobuf.ProtocolStringList getPythonFileUrisList() { return pythonFileUris_; } /** + * + * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: `.py`, `.egg`, and `.zip`.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of pythonFileUris. */ public int getPythonFileUrisCount() { return pythonFileUris_.size(); } /** + * + * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: `.py`, `.egg`, and `.zip`.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The pythonFileUris at the given index. */ @@ -204,54 +244,64 @@ public java.lang.String getPythonFileUris(int index) { return pythonFileUris_.get(index); } /** + * + * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: `.py`, `.egg`, and `.zip`.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the pythonFileUris at the given index. */ - public com.google.protobuf.ByteString - getPythonFileUrisBytes(int index) { + public com.google.protobuf.ByteString getPythonFileUrisBytes(int index) { return pythonFileUris_.getByteString(index); } public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList jarFileUris_; /** + * + * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList - getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { return jarFileUris_; } /** + * + * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -259,54 +309,64 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString - getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } public static final int FILE_URIS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList fileUris_; /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList - getFileUrisList() { + public com.google.protobuf.ProtocolStringList getFileUrisList() { return fileUris_; } /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -314,23 +374,27 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString - getFileUrisBytes(int index) { + public com.google.protobuf.ByteString getFileUrisBytes(int index) { return fileUris_.getByteString(index); } public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList archiveUris_; /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -338,13 +402,15 @@ public java.lang.String getFileUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList - getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { return archiveUris_; } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -352,12 +418,15 @@ public java.lang.String getFileUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -365,6 +434,7 @@ public int getArchiveUrisCount() {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -372,6 +442,8 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -379,15 +451,16 @@ public java.lang.String getArchiveUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString - getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -399,8 +472,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainPythonFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainPythonFileUri_); } @@ -479,25 +551,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.PySparkBatch)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.PySparkBatch other = (com.google.cloud.dataproc.v1.PySparkBatch) obj; - - if (!getMainPythonFileUri() - .equals(other.getMainPythonFileUri())) return false; - if (!getArgsList() - .equals(other.getArgsList())) return false; - if (!getPythonFileUrisList() - .equals(other.getPythonFileUrisList())) return false; - if (!getJarFileUrisList() - .equals(other.getJarFileUrisList())) return false; - if (!getFileUrisList() - .equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList() - .equals(other.getArchiveUrisList())) return false; + com.google.cloud.dataproc.v1.PySparkBatch other = + (com.google.cloud.dataproc.v1.PySparkBatch) obj; + + if (!getMainPythonFileUri().equals(other.getMainPythonFileUri())) return false; + if (!getArgsList().equals(other.getArgsList())) return false; + if (!getPythonFileUrisList().equals(other.getPythonFileUrisList())) return false; + if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; + if (!getFileUrisList().equals(other.getFileUrisList())) return false; + if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -536,97 +603,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PySparkBatch parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.PySparkBatch parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.PySparkBatch parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.PySparkBatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 configuration for running an
    * [Apache
@@ -636,33 +710,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.PySparkBatch}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.PySparkBatch)
       com.google.cloud.dataproc.v1.PySparkBatchOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.BatchesProto
+          .internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.BatchesProto
+          .internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.PySparkBatch.class, com.google.cloud.dataproc.v1.PySparkBatch.Builder.class);
+              com.google.cloud.dataproc.v1.PySparkBatch.class,
+              com.google.cloud.dataproc.v1.PySparkBatch.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.PySparkBatch.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -682,9 +755,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.BatchesProto
+          .internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor;
     }
 
     @java.lang.Override
@@ -703,7 +776,8 @@ public com.google.cloud.dataproc.v1.PySparkBatch build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.PySparkBatch buildPartial() {
-      com.google.cloud.dataproc.v1.PySparkBatch result = new com.google.cloud.dataproc.v1.PySparkBatch(this);
+      com.google.cloud.dataproc.v1.PySparkBatch result =
+          new com.google.cloud.dataproc.v1.PySparkBatch(this);
       int from_bitField0_ = bitField0_;
       result.mainPythonFileUri_ = mainPythonFileUri_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -739,38 +813,39 @@ public com.google.cloud.dataproc.v1.PySparkBatch buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.PySparkBatch) {
-        return mergeFrom((com.google.cloud.dataproc.v1.PySparkBatch)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.PySparkBatch) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -859,47 +934,54 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              mainPythonFileUri_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                mainPythonFileUri_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureArgsIsMutable();
-              args_.add(s);
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensurePythonFileUrisIsMutable();
-              pythonFileUris_.add(s);
-              break;
-            } // case 26
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureJarFileUrisIsMutable();
-              jarFileUris_.add(s);
-              break;
-            } // case 34
-            case 42: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureFileUrisIsMutable();
-              fileUris_.add(s);
-              break;
-            } // case 42
-            case 50: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureArchiveUrisIsMutable();
-              archiveUris_.add(s);
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureArgsIsMutable();
+                args_.add(s);
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensurePythonFileUrisIsMutable();
+                pythonFileUris_.add(s);
+                break;
+              } // case 26
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureJarFileUrisIsMutable();
+                jarFileUris_.add(s);
+                break;
+              } // case 34
+            case 42:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureFileUrisIsMutable();
+                fileUris_.add(s);
+                break;
+              } // case 42
+            case 50:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureArchiveUrisIsMutable();
+                archiveUris_.add(s);
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -909,23 +991,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object mainPythonFileUri_ = "";
     /**
+     *
+     *
      * 
      * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mainPythonFileUri. */ public java.lang.String getMainPythonFileUri() { java.lang.Object ref = mainPythonFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mainPythonFileUri_ = s; return s; @@ -934,21 +1019,22 @@ public java.lang.String getMainPythonFileUri() { } } /** + * + * *
      * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for mainPythonFileUri. */ - public com.google.protobuf.ByteString - getMainPythonFileUriBytes() { + public com.google.protobuf.ByteString getMainPythonFileUriBytes() { java.lang.Object ref = mainPythonFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mainPythonFileUri_ = b; return b; } else { @@ -956,70 +1042,81 @@ public java.lang.String getMainPythonFileUri() { } } /** + * + * *
      * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The mainPythonFileUri to set. * @return This builder for chaining. */ - public Builder setMainPythonFileUri( - java.lang.String value) { + public Builder setMainPythonFileUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mainPythonFileUri_ = value; onChanged(); return this; } /** + * + * *
      * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMainPythonFileUri() { - + mainPythonFileUri_ = getDefaultInstance().getMainPythonFileUri(); onChanged(); return this; } /** + * + * *
      * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for mainPythonFileUri to set. * @return This builder for chaining. */ - public Builder setMainPythonFileUriBytes( - com.google.protobuf.ByteString value) { + public Builder setMainPythonFileUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mainPythonFileUri_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList args_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1027,13 +1124,15 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_.getUnmodifiableView(); } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1041,12 +1140,15 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1054,6 +1156,7 @@ public int getArgsCount() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1061,6 +1164,8 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1068,14 +1173,16 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1083,21 +1190,23 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs( - int index, java.lang.String value) { + public Builder setArgs(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1105,20 +1214,22 @@ public Builder setArgs(
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs( - java.lang.String value) { + public Builder addArgs(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1126,18 +1237,19 @@ public Builder addArgs(
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs( - java.lang.Iterable values) { + public Builder addAllArgs(java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1145,6 +1257,7 @@ public Builder addAllArgs(
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearArgs() { @@ -1154,6 +1267,8 @@ public Builder clearArgs() { return this; } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1161,60 +1276,70 @@ public Builder clearArgs() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes( - com.google.protobuf.ByteString value) { + public Builder addArgsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList pythonFileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePythonFileUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { pythonFileUris_ = new com.google.protobuf.LazyStringArrayList(pythonFileUris_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: `.py`, `.egg`, and `.zip`.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the pythonFileUris. */ - public com.google.protobuf.ProtocolStringList - getPythonFileUrisList() { + public com.google.protobuf.ProtocolStringList getPythonFileUrisList() { return pythonFileUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: `.py`, `.egg`, and `.zip`.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of pythonFileUris. */ public int getPythonFileUrisCount() { return pythonFileUris_.size(); } /** + * + * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: `.py`, `.egg`, and `.zip`.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The pythonFileUris at the given index. */ @@ -1222,85 +1347,95 @@ public java.lang.String getPythonFileUris(int index) { return pythonFileUris_.get(index); } /** + * + * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: `.py`, `.egg`, and `.zip`.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the pythonFileUris at the given index. */ - public com.google.protobuf.ByteString - getPythonFileUrisBytes(int index) { + public com.google.protobuf.ByteString getPythonFileUrisBytes(int index) { return pythonFileUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: `.py`, `.egg`, and `.zip`.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The pythonFileUris to set. * @return This builder for chaining. */ - public Builder setPythonFileUris( - int index, java.lang.String value) { + public Builder setPythonFileUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePythonFileUrisIsMutable(); + throw new NullPointerException(); + } + ensurePythonFileUrisIsMutable(); pythonFileUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: `.py`, `.egg`, and `.zip`.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pythonFileUris to add. * @return This builder for chaining. */ - public Builder addPythonFileUris( - java.lang.String value) { + public Builder addPythonFileUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePythonFileUrisIsMutable(); + throw new NullPointerException(); + } + ensurePythonFileUrisIsMutable(); pythonFileUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: `.py`, `.egg`, and `.zip`.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The pythonFileUris to add. * @return This builder for chaining. */ - public Builder addAllPythonFileUris( - java.lang.Iterable values) { + public Builder addAllPythonFileUris(java.lang.Iterable values) { ensurePythonFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pythonFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pythonFileUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: `.py`, `.egg`, and `.zip`.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPythonFileUris() { @@ -1310,66 +1445,78 @@ public Builder clearPythonFileUris() { return this; } /** + * + * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: `.py`, `.egg`, and `.zip`.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the pythonFileUris to add. * @return This builder for chaining. */ - public Builder addPythonFileUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addPythonFileUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePythonFileUrisIsMutable(); pythonFileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList jarFileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureJarFileUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList - getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { return jarFileUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -1377,85 +1524,95 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString - getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The jarFileUris to set. * @return This builder for chaining. */ - public Builder setJarFileUris( - int index, java.lang.String value) { + public Builder setJarFileUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUris( - java.lang.String value) { + public Builder addJarFileUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The jarFileUris to add. * @return This builder for chaining. */ - public Builder addAllJarFileUris( - java.lang.Iterable values) { + public Builder addAllJarFileUris(java.lang.Iterable values) { ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, jarFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearJarFileUris() { @@ -1465,66 +1622,78 @@ public Builder clearJarFileUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList fileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFileUrisIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); bitField0_ |= 0x00000008; - } + } } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList - getFileUrisList() { + public com.google.protobuf.ProtocolStringList getFileUrisList() { return fileUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -1532,85 +1701,95 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString - getFileUrisBytes(int index) { + public com.google.protobuf.ByteString getFileUrisBytes(int index) { return fileUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The fileUris to set. * @return This builder for chaining. */ - public Builder setFileUris( - int index, java.lang.String value) { + public Builder setFileUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The fileUris to add. * @return This builder for chaining. */ - public Builder addFileUris( - java.lang.String value) { + public Builder addFileUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The fileUris to add. * @return This builder for chaining. */ - public Builder addAllFileUris( - java.lang.Iterable values) { + public Builder addAllFileUris(java.lang.Iterable values) { ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFileUris() { @@ -1620,35 +1799,41 @@ public Builder clearFileUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the fileUris to add. * @return This builder for chaining. */ - public Builder addFileUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList archiveUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArchiveUrisIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); bitField0_ |= 0x00000010; - } + } } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1656,13 +1841,15 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList - getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { return archiveUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1670,12 +1857,15 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1683,6 +1873,7 @@ public int getArchiveUrisCount() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -1690,6 +1881,8 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1697,14 +1890,16 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString - getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1712,21 +1907,23 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The archiveUris to set. * @return This builder for chaining. */ - public Builder setArchiveUris( - int index, java.lang.String value) { + public Builder setArchiveUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1734,20 +1931,22 @@ public Builder setArchiveUris(
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUris( - java.lang.String value) { + public Builder addArchiveUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1755,18 +1954,19 @@ public Builder addArchiveUris(
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The archiveUris to add. * @return This builder for chaining. */ - public Builder addAllArchiveUris( - java.lang.Iterable values) { + public Builder addAllArchiveUris(java.lang.Iterable values) { ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, archiveUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1774,6 +1974,7 @@ public Builder addAllArchiveUris(
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearArchiveUris() { @@ -1783,6 +1984,8 @@ public Builder clearArchiveUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1790,23 +1993,23 @@ public Builder clearArchiveUris() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArchiveUrisIsMutable(); archiveUris_.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); } @@ -1816,12 +2019,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.PySparkBatch) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PySparkBatch) private static final com.google.cloud.dataproc.v1.PySparkBatch DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.PySparkBatch(); } @@ -1830,27 +2033,27 @@ public static com.google.cloud.dataproc.v1.PySparkBatch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PySparkBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PySparkBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1865,6 +2068,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.PySparkBatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java similarity index 83% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java index 57490bcd5095..b65ba0cbc373 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; -public interface PySparkBatchOrBuilder extends +public interface PySparkBatchOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PySparkBatch) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
    * be a .py file.
    * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mainPythonFileUri. */ java.lang.String getMainPythonFileUri(); /** + * + * *
    * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
    * be a .py file.
    * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for mainPythonFileUri. */ - com.google.protobuf.ByteString - getMainPythonFileUriBytes(); + com.google.protobuf.ByteString getMainPythonFileUriBytes(); /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -37,11 +60,13 @@ public interface PySparkBatchOrBuilder extends
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - java.util.List - getArgsList(); + java.util.List getArgsList(); /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -49,10 +74,13 @@ public interface PySparkBatchOrBuilder extends
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ int getArgsCount(); /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -60,11 +88,14 @@ public interface PySparkBatchOrBuilder extends
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -72,148 +103,180 @@ public interface PySparkBatchOrBuilder extends
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString - getArgsBytes(int index); + com.google.protobuf.ByteString getArgsBytes(int index); /** + * + * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: `.py`, `.egg`, and `.zip`.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the pythonFileUris. */ - java.util.List - getPythonFileUrisList(); + java.util.List getPythonFileUrisList(); /** + * + * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: `.py`, `.egg`, and `.zip`.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of pythonFileUris. */ int getPythonFileUrisCount(); /** + * + * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: `.py`, `.egg`, and `.zip`.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The pythonFileUris at the given index. */ java.lang.String getPythonFileUris(int index); /** + * + * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: `.py`, `.egg`, and `.zip`.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the pythonFileUris at the given index. */ - com.google.protobuf.ByteString - getPythonFileUrisBytes(int index); + com.google.protobuf.ByteString getPythonFileUrisBytes(int index); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - java.util.List - getJarFileUrisList(); + java.util.List getJarFileUrisList(); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ int getJarFileUrisCount(); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ java.lang.String getJarFileUris(int index); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - com.google.protobuf.ByteString - getJarFileUrisBytes(int index); + com.google.protobuf.ByteString getJarFileUrisBytes(int index); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - java.util.List - getFileUrisList(); + java.util.List getFileUrisList(); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ int getFileUrisCount(); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ java.lang.String getFileUris(int index); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - com.google.protobuf.ByteString - getFileUrisBytes(int index); + com.google.protobuf.ByteString getFileUrisBytes(int index); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -221,11 +284,13 @@ public interface PySparkBatchOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - java.util.List - getArchiveUrisList(); + java.util.List getArchiveUrisList(); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -233,10 +298,13 @@ public interface PySparkBatchOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ int getArchiveUrisCount(); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -244,11 +312,14 @@ public interface PySparkBatchOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ java.lang.String getArchiveUris(int index); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -256,9 +327,9 @@ public interface PySparkBatchOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - com.google.protobuf.ByteString - getArchiveUrisBytes(int index); + com.google.protobuf.ByteString getArchiveUrisBytes(int index); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java similarity index 73% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java index de0b11200de3..dcdfa8b1a146 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A Dataproc job for running
  * [Apache
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.PySparkJob}
  */
-public final class PySparkJob extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PySparkJob extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.PySparkJob)
     PySparkJobOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PySparkJob.newBuilder() to construct.
   private PySparkJob(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PySparkJob() {
     mainPythonFileUri_ = "";
     args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -33,50 +51,53 @@ private PySparkJob() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PySparkJob();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.JobsProto
+        .internal_static_google_cloud_dataproc_v1_PySparkJob_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 7:
         return internalGetProperties();
       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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.JobsProto
+        .internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.PySparkJob.class, com.google.cloud.dataproc.v1.PySparkJob.Builder.class);
+            com.google.cloud.dataproc.v1.PySparkJob.class,
+            com.google.cloud.dataproc.v1.PySparkJob.Builder.class);
   }
 
   public static final int MAIN_PYTHON_FILE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object mainPythonFileUri_;
   /**
+   *
+   *
    * 
    * Required. The HCFS URI of the main Python file to use as the driver. Must
    * be a .py file.
    * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mainPythonFileUri. */ @java.lang.Override @@ -85,30 +106,30 @@ public java.lang.String getMainPythonFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mainPythonFileUri_ = s; return s; } } /** + * + * *
    * Required. The HCFS URI of the main Python file to use as the driver. Must
    * be a .py file.
    * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for mainPythonFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getMainPythonFileUriBytes() { + public com.google.protobuf.ByteString getMainPythonFileUriBytes() { java.lang.Object ref = mainPythonFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mainPythonFileUri_ = b; return b; } else { @@ -119,6 +140,8 @@ public java.lang.String getMainPythonFileUri() { public static final int ARGS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList args_; /** + * + * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -126,13 +149,15 @@ public java.lang.String getMainPythonFileUri() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_; } /** + * + * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -140,12 +165,15 @@ public java.lang.String getMainPythonFileUri() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -153,6 +181,7 @@ public int getArgsCount() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -160,6 +189,8 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -167,48 +198,56 @@ public java.lang.String getArgs(int index) {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } public static final int PYTHON_FILE_URIS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList pythonFileUris_; /** + * + * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: .py, .egg, and .zip.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the pythonFileUris. */ - public com.google.protobuf.ProtocolStringList - getPythonFileUrisList() { + public com.google.protobuf.ProtocolStringList getPythonFileUrisList() { return pythonFileUris_; } /** + * + * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: .py, .egg, and .zip.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of pythonFileUris. */ public int getPythonFileUrisCount() { return pythonFileUris_.size(); } /** + * + * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: .py, .egg, and .zip.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The pythonFileUris at the given index. */ @@ -216,54 +255,64 @@ public java.lang.String getPythonFileUris(int index) { return pythonFileUris_.get(index); } /** + * + * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: .py, .egg, and .zip.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the pythonFileUris at the given index. */ - public com.google.protobuf.ByteString - getPythonFileUrisBytes(int index) { + public com.google.protobuf.ByteString getPythonFileUrisBytes(int index) { return pythonFileUris_.getByteString(index); } public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList jarFileUris_; /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Python driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList - getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { return jarFileUris_; } /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Python driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Python driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -271,54 +320,64 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Python driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString - getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } public static final int FILE_URIS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList fileUris_; /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList - getFileUrisList() { + public com.google.protobuf.ProtocolStringList getFileUrisList() { return fileUris_; } /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -326,23 +385,27 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString - getFileUrisBytes(int index) { + public com.google.protobuf.ByteString getFileUrisBytes(int index) { return fileUris_.getByteString(index); } public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList archiveUris_; /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -350,13 +413,15 @@ public java.lang.String getFileUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList - getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { return archiveUris_; } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -364,12 +429,15 @@ public java.lang.String getFileUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -377,6 +445,7 @@ public int getArchiveUrisCount() {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -384,6 +453,8 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -391,33 +462,32 @@ public java.lang.String getArchiveUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString - getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } public static final int PROPERTIES_FIELD_NUMBER = 7; + private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; - private com.google.protobuf.MapField - internalGetProperties() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -426,6 +496,8 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
    * Optional. A mapping of property names to values, used to configure PySpark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -433,24 +505,25 @@ public int getPropertiesCount() {
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
    * Optional. A mapping of property names to values, used to configure PySpark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -458,14 +531,16 @@ public java.util.Map getProperties() {
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
    * Optional. A mapping of property names to values, used to configure PySpark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -473,19 +548,21 @@ public java.util.Map getPropertiesMap() {
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. A mapping of property names to values, used to configure PySpark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -493,15 +570,15 @@ public java.lang.String getPropertiesOrDefault(
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -511,11 +588,16 @@ public java.lang.String getPropertiesOrThrow( public static final int LOGGING_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ @java.lang.Override @@ -523,23 +605,34 @@ public boolean hasLoggingConfig() { return loggingConfig_ != null; } /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { @@ -547,6 +640,7 @@ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBui } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -558,8 +652,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainPythonFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainPythonFileUri_); } @@ -578,12 +671,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < archiveUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetProperties(), - PropertiesDefaultEntryHolder.defaultEntry, - 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 7); if (loggingConfig_ != null) { output.writeMessage(8, getLoggingConfig()); } @@ -639,19 +728,18 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArchiveUrisList().size(); } - for (java.util.Map.Entry entry - : internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry - properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, properties__); + for (java.util.Map.Entry entry : + internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, properties__); } if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getLoggingConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLoggingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -661,31 +749,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.PySparkJob)) { return super.equals(obj); } com.google.cloud.dataproc.v1.PySparkJob other = (com.google.cloud.dataproc.v1.PySparkJob) obj; - if (!getMainPythonFileUri() - .equals(other.getMainPythonFileUri())) return false; - if (!getArgsList() - .equals(other.getArgsList())) return false; - if (!getPythonFileUrisList() - .equals(other.getPythonFileUrisList())) return false; - if (!getJarFileUrisList() - .equals(other.getJarFileUrisList())) return false; - if (!getFileUrisList() - .equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList() - .equals(other.getArchiveUrisList())) return false; - if (!internalGetProperties().equals( - other.internalGetProperties())) return false; + if (!getMainPythonFileUri().equals(other.getMainPythonFileUri())) return false; + if (!getArgsList().equals(other.getArgsList())) return false; + if (!getPythonFileUrisList().equals(other.getPythonFileUrisList())) return false; + if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; + if (!getFileUrisList().equals(other.getFileUrisList())) return false; + if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; + if (!internalGetProperties().equals(other.internalGetProperties())) return false; if (hasLoggingConfig() != other.hasLoggingConfig()) return false; if (hasLoggingConfig()) { - if (!getLoggingConfig() - .equals(other.getLoggingConfig())) return false; + if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -733,97 +813,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.PySparkJob parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PySparkJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PySparkJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.PySparkJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.PySparkJob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.PySparkJob parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.PySparkJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc job for running
    * [Apache
@@ -833,55 +920,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.PySparkJob}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.PySparkJob)
       com.google.cloud.dataproc.v1.PySparkJobOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 7:
           return internalGetProperties();
         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 7:
           return internalGetMutableProperties();
         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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.PySparkJob.class, com.google.cloud.dataproc.v1.PySparkJob.Builder.class);
+              com.google.cloud.dataproc.v1.PySparkJob.class,
+              com.google.cloud.dataproc.v1.PySparkJob.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.PySparkJob.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -908,9 +992,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor;
     }
 
     @java.lang.Override
@@ -929,7 +1013,8 @@ public com.google.cloud.dataproc.v1.PySparkJob build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.PySparkJob buildPartial() {
-      com.google.cloud.dataproc.v1.PySparkJob result = new com.google.cloud.dataproc.v1.PySparkJob(this);
+      com.google.cloud.dataproc.v1.PySparkJob result =
+          new com.google.cloud.dataproc.v1.PySparkJob(this);
       int from_bitField0_ = bitField0_;
       result.mainPythonFileUri_ = mainPythonFileUri_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -972,38 +1057,39 @@ public com.google.cloud.dataproc.v1.PySparkJob buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.PySparkJob) {
-        return mergeFrom((com.google.cloud.dataproc.v1.PySparkJob)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.PySparkJob) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1066,8 +1152,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.PySparkJob other) {
         }
         onChanged();
       }
-      internalGetMutableProperties().mergeFrom(
-          other.internalGetProperties());
+      internalGetMutableProperties().mergeFrom(other.internalGetProperties());
       if (other.hasLoggingConfig()) {
         mergeLoggingConfig(other.getLoggingConfig());
       }
@@ -1097,62 +1182,71 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              mainPythonFileUri_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureArgsIsMutable();
-              args_.add(s);
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensurePythonFileUrisIsMutable();
-              pythonFileUris_.add(s);
-              break;
-            } // case 26
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureJarFileUrisIsMutable();
-              jarFileUris_.add(s);
-              break;
-            } // case 34
-            case 42: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureFileUrisIsMutable();
-              fileUris_.add(s);
-              break;
-            } // case 42
-            case 50: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureArchiveUrisIsMutable();
-              archiveUris_.add(s);
-              break;
-            } // case 50
-            case 58: {
-              com.google.protobuf.MapEntry
-              properties__ = input.readMessage(
-                  PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableProperties().getMutableMap().put(
-                  properties__.getKey(), properties__.getValue());
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getLoggingConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 66
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                mainPythonFileUri_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureArgsIsMutable();
+                args_.add(s);
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensurePythonFileUrisIsMutable();
+                pythonFileUris_.add(s);
+                break;
+              } // case 26
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureJarFileUrisIsMutable();
+                jarFileUris_.add(s);
+                break;
+              } // case 34
+            case 42:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureFileUrisIsMutable();
+                fileUris_.add(s);
+                break;
+              } // case 42
+            case 50:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureArchiveUrisIsMutable();
+                archiveUris_.add(s);
+                break;
+              } // case 50
+            case 58:
+              {
+                com.google.protobuf.MapEntry properties__ =
+                    input.readMessage(
+                        PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableProperties()
+                    .getMutableMap()
+                    .put(properties__.getKey(), properties__.getValue());
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 66
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1162,23 +1256,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object mainPythonFileUri_ = "";
     /**
+     *
+     *
      * 
      * Required. The HCFS URI of the main Python file to use as the driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mainPythonFileUri. */ public java.lang.String getMainPythonFileUri() { java.lang.Object ref = mainPythonFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mainPythonFileUri_ = s; return s; @@ -1187,21 +1284,22 @@ public java.lang.String getMainPythonFileUri() { } } /** + * + * *
      * Required. The HCFS URI of the main Python file to use as the driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for mainPythonFileUri. */ - public com.google.protobuf.ByteString - getMainPythonFileUriBytes() { + public com.google.protobuf.ByteString getMainPythonFileUriBytes() { java.lang.Object ref = mainPythonFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mainPythonFileUri_ = b; return b; } else { @@ -1209,70 +1307,81 @@ public java.lang.String getMainPythonFileUri() { } } /** + * + * *
      * Required. The HCFS URI of the main Python file to use as the driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The mainPythonFileUri to set. * @return This builder for chaining. */ - public Builder setMainPythonFileUri( - java.lang.String value) { + public Builder setMainPythonFileUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mainPythonFileUri_ = value; onChanged(); return this; } /** + * + * *
      * Required. The HCFS URI of the main Python file to use as the driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMainPythonFileUri() { - + mainPythonFileUri_ = getDefaultInstance().getMainPythonFileUri(); onChanged(); return this; } /** + * + * *
      * Required. The HCFS URI of the main Python file to use as the driver. Must
      * be a .py file.
      * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for mainPythonFileUri to set. * @return This builder for chaining. */ - public Builder setMainPythonFileUriBytes( - com.google.protobuf.ByteString value) { + public Builder setMainPythonFileUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mainPythonFileUri_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList args_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1280,13 +1389,15 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_.getUnmodifiableView(); } /** + * + * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1294,12 +1405,15 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1307,6 +1421,7 @@ public int getArgsCount() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1314,6 +1429,8 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1321,14 +1438,16 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } /** + * + * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1336,21 +1455,23 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs( - int index, java.lang.String value) { + public Builder setArgs(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1358,20 +1479,22 @@ public Builder setArgs(
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs( - java.lang.String value) { + public Builder addArgs(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1379,18 +1502,19 @@ public Builder addArgs(
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs( - java.lang.Iterable values) { + public Builder addAllArgs(java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1398,6 +1522,7 @@ public Builder addAllArgs(
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearArgs() { @@ -1407,6 +1532,8 @@ public Builder clearArgs() { return this; } /** + * + * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1414,60 +1541,70 @@ public Builder clearArgs() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes( - com.google.protobuf.ByteString value) { + public Builder addArgsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList pythonFileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePythonFileUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { pythonFileUris_ = new com.google.protobuf.LazyStringArrayList(pythonFileUris_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: .py, .egg, and .zip.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the pythonFileUris. */ - public com.google.protobuf.ProtocolStringList - getPythonFileUrisList() { + public com.google.protobuf.ProtocolStringList getPythonFileUrisList() { return pythonFileUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: .py, .egg, and .zip.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of pythonFileUris. */ public int getPythonFileUrisCount() { return pythonFileUris_.size(); } /** + * + * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: .py, .egg, and .zip.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The pythonFileUris at the given index. */ @@ -1475,85 +1612,95 @@ public java.lang.String getPythonFileUris(int index) { return pythonFileUris_.get(index); } /** + * + * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: .py, .egg, and .zip.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the pythonFileUris at the given index. */ - public com.google.protobuf.ByteString - getPythonFileUrisBytes(int index) { + public com.google.protobuf.ByteString getPythonFileUrisBytes(int index) { return pythonFileUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: .py, .egg, and .zip.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The pythonFileUris to set. * @return This builder for chaining. */ - public Builder setPythonFileUris( - int index, java.lang.String value) { + public Builder setPythonFileUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePythonFileUrisIsMutable(); + throw new NullPointerException(); + } + ensurePythonFileUrisIsMutable(); pythonFileUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: .py, .egg, and .zip.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pythonFileUris to add. * @return This builder for chaining. */ - public Builder addPythonFileUris( - java.lang.String value) { + public Builder addPythonFileUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePythonFileUrisIsMutable(); + throw new NullPointerException(); + } + ensurePythonFileUrisIsMutable(); pythonFileUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: .py, .egg, and .zip.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The pythonFileUris to add. * @return This builder for chaining. */ - public Builder addAllPythonFileUris( - java.lang.Iterable values) { + public Builder addAllPythonFileUris(java.lang.Iterable values) { ensurePythonFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pythonFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pythonFileUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: .py, .egg, and .zip.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPythonFileUris() { @@ -1563,66 +1710,78 @@ public Builder clearPythonFileUris() { return this; } /** + * + * *
      * Optional. HCFS file URIs of Python files to pass to the PySpark
      * framework. Supported file types: .py, .egg, and .zip.
      * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the pythonFileUris to add. * @return This builder for chaining. */ - public Builder addPythonFileUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addPythonFileUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePythonFileUrisIsMutable(); pythonFileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList jarFileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureJarFileUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Python driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList - getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { return jarFileUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Python driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Python driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -1630,85 +1789,95 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Python driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString - getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Python driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The jarFileUris to set. * @return This builder for chaining. */ - public Builder setJarFileUris( - int index, java.lang.String value) { + public Builder setJarFileUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Python driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUris( - java.lang.String value) { + public Builder addJarFileUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Python driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The jarFileUris to add. * @return This builder for chaining. */ - public Builder addAllJarFileUris( - java.lang.Iterable values) { + public Builder addAllJarFileUris(java.lang.Iterable values) { ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, jarFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Python driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearJarFileUris() { @@ -1718,66 +1887,78 @@ public Builder clearJarFileUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Python driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList fileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFileUrisIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); bitField0_ |= 0x00000008; - } + } } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList - getFileUrisList() { + public com.google.protobuf.ProtocolStringList getFileUrisList() { return fileUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -1785,85 +1966,95 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString - getFileUrisBytes(int index) { + public com.google.protobuf.ByteString getFileUrisBytes(int index) { return fileUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The fileUris to set. * @return This builder for chaining. */ - public Builder setFileUris( - int index, java.lang.String value) { + public Builder setFileUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The fileUris to add. * @return This builder for chaining. */ - public Builder addFileUris( - java.lang.String value) { + public Builder addFileUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The fileUris to add. * @return This builder for chaining. */ - public Builder addAllFileUris( - java.lang.Iterable values) { + public Builder addAllFileUris(java.lang.Iterable values) { ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFileUris() { @@ -1873,35 +2064,41 @@ public Builder clearFileUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the fileUris to add. * @return This builder for chaining. */ - public Builder addFileUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList archiveUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArchiveUrisIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); bitField0_ |= 0x00000010; - } + } } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1909,13 +2106,15 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList - getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { return archiveUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1923,12 +2122,15 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1936,6 +2138,7 @@ public int getArchiveUrisCount() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -1943,6 +2146,8 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1950,14 +2155,16 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString - getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1965,21 +2172,23 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The archiveUris to set. * @return This builder for chaining. */ - public Builder setArchiveUris( - int index, java.lang.String value) { + public Builder setArchiveUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1987,20 +2196,22 @@ public Builder setArchiveUris(
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUris( - java.lang.String value) { + public Builder addArchiveUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2008,18 +2219,19 @@ public Builder addArchiveUris(
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The archiveUris to add. * @return This builder for chaining. */ - public Builder addAllArchiveUris( - java.lang.Iterable values) { + public Builder addAllArchiveUris(java.lang.Iterable values) { ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, archiveUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2027,6 +2239,7 @@ public Builder addAllArchiveUris(
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearArchiveUris() { @@ -2036,6 +2249,8 @@ public Builder clearArchiveUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2043,37 +2258,39 @@ public Builder clearArchiveUris() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField properties_; + private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } + private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged();; + internalGetMutableProperties() { + onChanged(); + ; if (properties_ == null) { - properties_ = com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); + properties_ = + com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -2085,6 +2302,8 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure PySpark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2092,24 +2311,25 @@ public int getPropertiesCount() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure PySpark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2117,14 +2337,16 @@ public java.util.Map getProperties() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure PySpark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2132,19 +2354,21 @@ public java.util.Map getPropertiesMap() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. A mapping of property names to values, used to configure PySpark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2152,15 +2376,15 @@ public java.lang.String getPropertiesOrDefault(
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2168,11 +2392,12 @@ public java.lang.String getPropertiesOrThrow( } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap() - .clear(); + internalGetMutableProperties().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. A mapping of property names to values, used to configure PySpark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2180,25 +2405,24 @@ public Builder clearProperties() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableProperties().getMutableMap() - .remove(key); + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProperties().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableProperties() { + public java.util.Map getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure PySpark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2206,21 +2430,23 @@ public Builder removeProperties(
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putProperties( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putProperties(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"); + } - internalGetMutableProperties().getMutableMap() - .put(key, value); + internalGetMutableProperties().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. A mapping of property names to values, used to configure PySpark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2228,51 +2454,68 @@ public Builder putProperties(
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllProperties( - java.util.Map values) { - internalGetMutableProperties().getMutableMap() - .putAll(values); + public Builder putAllProperties(java.util.Map values) { + internalGetMutableProperties().getMutableMap().putAll(values); return this; } private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> loggingConfigBuilder_; + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + loggingConfigBuilder_; /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ public boolean hasLoggingConfig() { return loggingConfigBuilder_ != null || loggingConfig_ != null; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } else { return loggingConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { @@ -2288,11 +2531,15 @@ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLoggingConfig( com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { @@ -2306,17 +2553,23 @@ public Builder setLoggingConfig( return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { if (loggingConfig_ != null) { loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) + .mergeFrom(value) + .buildPartial(); } else { loggingConfig_ = value; } @@ -2328,11 +2581,15 @@ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig val return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearLoggingConfig() { if (loggingConfigBuilder_ == null) { @@ -2346,55 +2603,71 @@ public Builder clearLoggingConfig() { return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - + onChanged(); return getLoggingConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { if (loggingConfigBuilder_ != null) { return loggingConfigBuilder_.getMessageOrBuilder(); } else { - return loggingConfig_ == null ? - com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> getLoggingConfigFieldBuilder() { if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), - getParentForChildren(), - isClean()); + loggingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( + getLoggingConfig(), getParentForChildren(), isClean()); loggingConfig_ = null; } return loggingConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2404,12 +2677,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.PySparkJob) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PySparkJob) private static final com.google.cloud.dataproc.v1.PySparkJob DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.PySparkJob(); } @@ -2418,27 +2691,27 @@ public static com.google.cloud.dataproc.v1.PySparkJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PySparkJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PySparkJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2453,6 +2726,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.PySparkJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java similarity index 79% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java index fde6387aa1b2..4542b0e722dc 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface PySparkJobOrBuilder extends +public interface PySparkJobOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PySparkJob) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The HCFS URI of the main Python file to use as the driver. Must
    * be a .py file.
    * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mainPythonFileUri. */ java.lang.String getMainPythonFileUri(); /** + * + * *
    * Required. The HCFS URI of the main Python file to use as the driver. Must
    * be a .py file.
    * 
* * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for mainPythonFileUri. */ - com.google.protobuf.ByteString - getMainPythonFileUriBytes(); + com.google.protobuf.ByteString getMainPythonFileUriBytes(); /** + * + * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -37,11 +60,13 @@ public interface PySparkJobOrBuilder extends
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - java.util.List - getArgsList(); + java.util.List getArgsList(); /** + * + * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -49,10 +74,13 @@ public interface PySparkJobOrBuilder extends
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ int getArgsCount(); /** + * + * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -60,11 +88,14 @@ public interface PySparkJobOrBuilder extends
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** + * + * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -72,148 +103,180 @@ public interface PySparkJobOrBuilder extends
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString - getArgsBytes(int index); + com.google.protobuf.ByteString getArgsBytes(int index); /** + * + * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: .py, .egg, and .zip.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the pythonFileUris. */ - java.util.List - getPythonFileUrisList(); + java.util.List getPythonFileUrisList(); /** + * + * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: .py, .egg, and .zip.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of pythonFileUris. */ int getPythonFileUrisCount(); /** + * + * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: .py, .egg, and .zip.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The pythonFileUris at the given index. */ java.lang.String getPythonFileUris(int index); /** + * + * *
    * Optional. HCFS file URIs of Python files to pass to the PySpark
    * framework. Supported file types: .py, .egg, and .zip.
    * 
* * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the pythonFileUris at the given index. */ - com.google.protobuf.ByteString - getPythonFileUrisBytes(int index); + com.google.protobuf.ByteString getPythonFileUrisBytes(int index); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Python driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - java.util.List - getJarFileUrisList(); + java.util.List getJarFileUrisList(); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Python driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ int getJarFileUrisCount(); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Python driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ java.lang.String getJarFileUris(int index); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Python driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - com.google.protobuf.ByteString - getJarFileUrisBytes(int index); + com.google.protobuf.ByteString getJarFileUrisBytes(int index); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - java.util.List - getFileUrisList(); + java.util.List getFileUrisList(); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ int getFileUrisCount(); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ java.lang.String getFileUris(int index); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - com.google.protobuf.ByteString - getFileUrisBytes(int index); + com.google.protobuf.ByteString getFileUrisBytes(int index); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -221,11 +284,13 @@ public interface PySparkJobOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - java.util.List - getArchiveUrisList(); + java.util.List getArchiveUrisList(); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -233,10 +298,13 @@ public interface PySparkJobOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ int getArchiveUrisCount(); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -244,11 +312,14 @@ public interface PySparkJobOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ java.lang.String getArchiveUris(int index); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -256,13 +327,15 @@ public interface PySparkJobOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - com.google.protobuf.ByteString - getArchiveUrisBytes(int index); + com.google.protobuf.ByteString getArchiveUrisBytes(int index); /** + * + * *
    * Optional. A mapping of property names to values, used to configure PySpark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -270,10 +343,13 @@ public interface PySparkJobOrBuilder extends
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getPropertiesCount(); /** + * + * *
    * Optional. A mapping of property names to values, used to configure PySpark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -281,17 +357,16 @@ public interface PySparkJobOrBuilder extends
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsProperties( - java.lang.String key); - /** - * Use {@link #getPropertiesMap()} instead. + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsProperties(java.lang.String key); + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getProperties(); + java.util.Map getProperties(); /** + * + * *
    * Optional. A mapping of property names to values, used to configure PySpark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -299,11 +374,13 @@ boolean containsProperties(
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getPropertiesMap(); + java.util.Map getPropertiesMap(); /** + * + * *
    * Optional. A mapping of property names to values, used to configure PySpark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -311,15 +388,18 @@ boolean containsProperties(
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getPropertiesOrDefault( + java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. A mapping of property names to values, used to configure PySpark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -327,36 +407,49 @@ java.lang.String getPropertiesOrDefault(
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - java.lang.String getPropertiesOrThrow( - java.lang.String key); + java.lang.String getPropertiesOrThrow(java.lang.String key); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ boolean hasLoggingConfig(); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java similarity index 74% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java index a887ae39e577..c38582d128d6 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A list of queries to run on a cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.QueryList} */ -public final class QueryList extends - com.google.protobuf.GeneratedMessageV3 implements +public final class QueryList extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.QueryList) QueryListOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QueryList.newBuilder() to construct. private QueryList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private QueryList() { queries_ = 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 QueryList(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_QueryList_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_QueryList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.QueryList.class, com.google.cloud.dataproc.v1.QueryList.Builder.class); + com.google.cloud.dataproc.v1.QueryList.class, + com.google.cloud.dataproc.v1.QueryList.Builder.class); } public static final int QUERIES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList queries_; /** + * + * *
    * Required. The queries to execute. You do not need to end a query expression
    * with a semicolon. Multiple queries can be specified in one
@@ -68,13 +89,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the queries. */ - public com.google.protobuf.ProtocolStringList - getQueriesList() { + public com.google.protobuf.ProtocolStringList getQueriesList() { return queries_; } /** + * + * *
    * Required. The queries to execute. You do not need to end a query expression
    * with a semicolon. Multiple queries can be specified in one
@@ -92,12 +115,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of queries. */ public int getQueriesCount() { return queries_.size(); } /** + * + * *
    * Required. The queries to execute. You do not need to end a query expression
    * with a semicolon. Multiple queries can be specified in one
@@ -115,6 +141,7 @@ public int getQueriesCount() {
    * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The queries at the given index. */ @@ -122,6 +149,8 @@ public java.lang.String getQueries(int index) { return queries_.get(index); } /** + * + * *
    * Required. The queries to execute. You do not need to end a query expression
    * with a semicolon. Multiple queries can be specified in one
@@ -139,15 +168,16 @@ public java.lang.String getQueries(int index) {
    * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the queries at the given index. */ - public com.google.protobuf.ByteString - getQueriesBytes(int index) { + public com.google.protobuf.ByteString getQueriesBytes(int index) { return queries_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +189,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < queries_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_.getRaw(i)); } @@ -189,15 +218,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.QueryList)) { return super.equals(obj); } com.google.cloud.dataproc.v1.QueryList other = (com.google.cloud.dataproc.v1.QueryList) obj; - if (!getQueriesList() - .equals(other.getQueriesList())) return false; + if (!getQueriesList().equals(other.getQueriesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -218,130 +246,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.QueryList parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.QueryList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.QueryList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.QueryList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.QueryList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.QueryList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.QueryList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.QueryList parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.QueryList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.QueryList 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.dataproc.v1.QueryList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.QueryList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.QueryList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.QueryList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 list of queries to run on a cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.QueryList} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.QueryList) com.google.cloud.dataproc.v1.QueryListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_QueryList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_QueryList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.QueryList.class, com.google.cloud.dataproc.v1.QueryList.Builder.class); + com.google.cloud.dataproc.v1.QueryList.class, + com.google.cloud.dataproc.v1.QueryList.Builder.class); } // Construct using com.google.cloud.dataproc.v1.QueryList.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +385,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_QueryList_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_QueryList_descriptor; } @java.lang.Override @@ -372,7 +406,8 @@ public com.google.cloud.dataproc.v1.QueryList build() { @java.lang.Override public com.google.cloud.dataproc.v1.QueryList buildPartial() { - com.google.cloud.dataproc.v1.QueryList result = new com.google.cloud.dataproc.v1.QueryList(this); + com.google.cloud.dataproc.v1.QueryList result = + new com.google.cloud.dataproc.v1.QueryList(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { queries_ = queries_.getUnmodifiableView(); @@ -387,38 +422,39 @@ public com.google.cloud.dataproc.v1.QueryList buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.QueryList) { - return mergeFrom((com.google.cloud.dataproc.v1.QueryList)other); + return mergeFrom((com.google.cloud.dataproc.v1.QueryList) other); } else { super.mergeFrom(other); return this; @@ -463,18 +499,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureQueriesIsMutable(); - queries_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureQueriesIsMutable(); + queries_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -484,16 +522,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList queries_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList queries_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureQueriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { queries_ = new com.google.protobuf.LazyStringArrayList(queries_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Required. The queries to execute. You do not need to end a query expression
      * with a semicolon. Multiple queries can be specified in one
@@ -511,13 +554,15 @@ private void ensureQueriesIsMutable() {
      * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the queries. */ - public com.google.protobuf.ProtocolStringList - getQueriesList() { + public com.google.protobuf.ProtocolStringList getQueriesList() { return queries_.getUnmodifiableView(); } /** + * + * *
      * Required. The queries to execute. You do not need to end a query expression
      * with a semicolon. Multiple queries can be specified in one
@@ -535,12 +580,15 @@ private void ensureQueriesIsMutable() {
      * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of queries. */ public int getQueriesCount() { return queries_.size(); } /** + * + * *
      * Required. The queries to execute. You do not need to end a query expression
      * with a semicolon. Multiple queries can be specified in one
@@ -558,6 +606,7 @@ public int getQueriesCount() {
      * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The queries at the given index. */ @@ -565,6 +614,8 @@ public java.lang.String getQueries(int index) { return queries_.get(index); } /** + * + * *
      * Required. The queries to execute. You do not need to end a query expression
      * with a semicolon. Multiple queries can be specified in one
@@ -582,14 +633,16 @@ public java.lang.String getQueries(int index) {
      * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the queries at the given index. */ - public com.google.protobuf.ByteString - getQueriesBytes(int index) { + public com.google.protobuf.ByteString getQueriesBytes(int index) { return queries_.getByteString(index); } /** + * + * *
      * Required. The queries to execute. You do not need to end a query expression
      * with a semicolon. Multiple queries can be specified in one
@@ -607,21 +660,23 @@ public java.lang.String getQueries(int index) {
      * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The queries to set. * @return This builder for chaining. */ - public Builder setQueries( - int index, java.lang.String value) { + public Builder setQueries(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); + throw new NullPointerException(); + } + ensureQueriesIsMutable(); queries_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. The queries to execute. You do not need to end a query expression
      * with a semicolon. Multiple queries can be specified in one
@@ -639,20 +694,22 @@ public Builder setQueries(
      * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The queries to add. * @return This builder for chaining. */ - public Builder addQueries( - java.lang.String value) { + public Builder addQueries(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); + throw new NullPointerException(); + } + ensureQueriesIsMutable(); queries_.add(value); onChanged(); return this; } /** + * + * *
      * Required. The queries to execute. You do not need to end a query expression
      * with a semicolon. Multiple queries can be specified in one
@@ -670,18 +727,19 @@ public Builder addQueries(
      * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The queries to add. * @return This builder for chaining. */ - public Builder addAllQueries( - java.lang.Iterable values) { + public Builder addAllQueries(java.lang.Iterable values) { ensureQueriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, queries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queries_); onChanged(); return this; } /** + * + * *
      * Required. The queries to execute. You do not need to end a query expression
      * with a semicolon. Multiple queries can be specified in one
@@ -699,6 +757,7 @@ public Builder addAllQueries(
      * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearQueries() { @@ -708,6 +767,8 @@ public Builder clearQueries() { return this; } /** + * + * *
      * Required. The queries to execute. You do not need to end a query expression
      * with a semicolon. Multiple queries can be specified in one
@@ -725,23 +786,23 @@ public Builder clearQueries() {
      * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the queries to add. * @return This builder for chaining. */ - public Builder addQueriesBytes( - com.google.protobuf.ByteString value) { + public Builder addQueriesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureQueriesIsMutable(); queries_.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); } @@ -751,12 +812,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.QueryList) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.QueryList) private static final com.google.cloud.dataproc.v1.QueryList DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.QueryList(); } @@ -765,27 +826,27 @@ public static com.google.cloud.dataproc.v1.QueryList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -800,6 +861,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.QueryList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java similarity index 79% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java index e5611a5d63bc..05bb09a0a6dc 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface QueryListOrBuilder extends +public interface QueryListOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.QueryList) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The queries to execute. You do not need to end a query expression
    * with a semicolon. Multiple queries can be specified in one
@@ -25,11 +43,13 @@ public interface QueryListOrBuilder extends
    * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the queries. */ - java.util.List - getQueriesList(); + java.util.List getQueriesList(); /** + * + * *
    * Required. The queries to execute. You do not need to end a query expression
    * with a semicolon. Multiple queries can be specified in one
@@ -47,10 +67,13 @@ public interface QueryListOrBuilder extends
    * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of queries. */ int getQueriesCount(); /** + * + * *
    * Required. The queries to execute. You do not need to end a query expression
    * with a semicolon. Multiple queries can be specified in one
@@ -68,11 +91,14 @@ public interface QueryListOrBuilder extends
    * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The queries at the given index. */ java.lang.String getQueries(int index); /** + * + * *
    * Required. The queries to execute. You do not need to end a query expression
    * with a semicolon. Multiple queries can be specified in one
@@ -90,9 +116,9 @@ public interface QueryListOrBuilder extends
    * 
* * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the queries at the given index. */ - com.google.protobuf.ByteString - getQueriesBytes(int index); + com.google.protobuf.ByteString getQueriesBytes(int index); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java similarity index 71% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java index 973efba3ccb0..8246e4ed5746 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Validation based on regular expressions.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.RegexValidation} */ -public final class RegexValidation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RegexValidation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.RegexValidation) RegexValidationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RegexValidation.newBuilder() to construct. private RegexValidation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RegexValidation() { regexes_ = 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 RegexValidation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_RegexValidation_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_RegexValidation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.RegexValidation.class, com.google.cloud.dataproc.v1.RegexValidation.Builder.class); + com.google.cloud.dataproc.v1.RegexValidation.class, + com.google.cloud.dataproc.v1.RegexValidation.Builder.class); } public static final int REGEXES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList regexes_; /** + * + * *
    * Required. RE2 regular expressions used to validate the parameter's value.
    * The value must match the regex in its entirety (substring
@@ -58,13 +79,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the regexes. */ - public com.google.protobuf.ProtocolStringList - getRegexesList() { + public com.google.protobuf.ProtocolStringList getRegexesList() { return regexes_; } /** + * + * *
    * Required. RE2 regular expressions used to validate the parameter's value.
    * The value must match the regex in its entirety (substring
@@ -72,12 +95,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of regexes. */ public int getRegexesCount() { return regexes_.size(); } /** + * + * *
    * Required. RE2 regular expressions used to validate the parameter's value.
    * The value must match the regex in its entirety (substring
@@ -85,6 +111,7 @@ public int getRegexesCount() {
    * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The regexes at the given index. */ @@ -92,6 +119,8 @@ public java.lang.String getRegexes(int index) { return regexes_.get(index); } /** + * + * *
    * Required. RE2 regular expressions used to validate the parameter's value.
    * The value must match the regex in its entirety (substring
@@ -99,15 +128,16 @@ public java.lang.String getRegexes(int index) {
    * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the regexes at the given index. */ - public com.google.protobuf.ByteString - getRegexesBytes(int index) { + public com.google.protobuf.ByteString getRegexesBytes(int index) { return regexes_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +149,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < regexes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, regexes_.getRaw(i)); } @@ -149,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.RegexValidation)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.RegexValidation other = (com.google.cloud.dataproc.v1.RegexValidation) obj; + com.google.cloud.dataproc.v1.RegexValidation other = + (com.google.cloud.dataproc.v1.RegexValidation) obj; - if (!getRegexesList() - .equals(other.getRegexesList())) return false; + if (!getRegexesList().equals(other.getRegexesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -178,130 +207,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.RegexValidation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.RegexValidation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.RegexValidation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.RegexValidation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.RegexValidation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.RegexValidation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.RegexValidation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Validation based on regular expressions.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.RegexValidation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.RegexValidation) com.google.cloud.dataproc.v1.RegexValidationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_RegexValidation_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_RegexValidation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.RegexValidation.class, com.google.cloud.dataproc.v1.RegexValidation.Builder.class); + com.google.cloud.dataproc.v1.RegexValidation.class, + com.google.cloud.dataproc.v1.RegexValidation.Builder.class); } // Construct using com.google.cloud.dataproc.v1.RegexValidation.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -311,9 +346,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; } @java.lang.Override @@ -332,7 +367,8 @@ public com.google.cloud.dataproc.v1.RegexValidation build() { @java.lang.Override public com.google.cloud.dataproc.v1.RegexValidation buildPartial() { - com.google.cloud.dataproc.v1.RegexValidation result = new com.google.cloud.dataproc.v1.RegexValidation(this); + com.google.cloud.dataproc.v1.RegexValidation result = + new com.google.cloud.dataproc.v1.RegexValidation(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { regexes_ = regexes_.getUnmodifiableView(); @@ -347,38 +383,39 @@ public com.google.cloud.dataproc.v1.RegexValidation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.RegexValidation) { - return mergeFrom((com.google.cloud.dataproc.v1.RegexValidation)other); + return mergeFrom((com.google.cloud.dataproc.v1.RegexValidation) other); } else { super.mergeFrom(other); return this; @@ -423,18 +460,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureRegexesIsMutable(); - regexes_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRegexesIsMutable(); + regexes_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -444,16 +483,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList regexes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList regexes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRegexesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { regexes_ = new com.google.protobuf.LazyStringArrayList(regexes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Required. RE2 regular expressions used to validate the parameter's value.
      * The value must match the regex in its entirety (substring
@@ -461,13 +505,15 @@ private void ensureRegexesIsMutable() {
      * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the regexes. */ - public com.google.protobuf.ProtocolStringList - getRegexesList() { + public com.google.protobuf.ProtocolStringList getRegexesList() { return regexes_.getUnmodifiableView(); } /** + * + * *
      * Required. RE2 regular expressions used to validate the parameter's value.
      * The value must match the regex in its entirety (substring
@@ -475,12 +521,15 @@ private void ensureRegexesIsMutable() {
      * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of regexes. */ public int getRegexesCount() { return regexes_.size(); } /** + * + * *
      * Required. RE2 regular expressions used to validate the parameter's value.
      * The value must match the regex in its entirety (substring
@@ -488,6 +537,7 @@ public int getRegexesCount() {
      * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The regexes at the given index. */ @@ -495,6 +545,8 @@ public java.lang.String getRegexes(int index) { return regexes_.get(index); } /** + * + * *
      * Required. RE2 regular expressions used to validate the parameter's value.
      * The value must match the regex in its entirety (substring
@@ -502,14 +554,16 @@ public java.lang.String getRegexes(int index) {
      * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the regexes at the given index. */ - public com.google.protobuf.ByteString - getRegexesBytes(int index) { + public com.google.protobuf.ByteString getRegexesBytes(int index) { return regexes_.getByteString(index); } /** + * + * *
      * Required. RE2 regular expressions used to validate the parameter's value.
      * The value must match the regex in its entirety (substring
@@ -517,21 +571,23 @@ public java.lang.String getRegexes(int index) {
      * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The regexes to set. * @return This builder for chaining. */ - public Builder setRegexes( - int index, java.lang.String value) { + public Builder setRegexes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRegexesIsMutable(); + throw new NullPointerException(); + } + ensureRegexesIsMutable(); regexes_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. RE2 regular expressions used to validate the parameter's value.
      * The value must match the regex in its entirety (substring
@@ -539,20 +595,22 @@ public Builder setRegexes(
      * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The regexes to add. * @return This builder for chaining. */ - public Builder addRegexes( - java.lang.String value) { + public Builder addRegexes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRegexesIsMutable(); + throw new NullPointerException(); + } + ensureRegexesIsMutable(); regexes_.add(value); onChanged(); return this; } /** + * + * *
      * Required. RE2 regular expressions used to validate the parameter's value.
      * The value must match the regex in its entirety (substring
@@ -560,18 +618,19 @@ public Builder addRegexes(
      * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The regexes to add. * @return This builder for chaining. */ - public Builder addAllRegexes( - java.lang.Iterable values) { + public Builder addAllRegexes(java.lang.Iterable values) { ensureRegexesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, regexes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, regexes_); onChanged(); return this; } /** + * + * *
      * Required. RE2 regular expressions used to validate the parameter's value.
      * The value must match the regex in its entirety (substring
@@ -579,6 +638,7 @@ public Builder addAllRegexes(
      * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRegexes() { @@ -588,6 +648,8 @@ public Builder clearRegexes() { return this; } /** + * + * *
      * Required. RE2 regular expressions used to validate the parameter's value.
      * The value must match the regex in its entirety (substring
@@ -595,23 +657,23 @@ public Builder clearRegexes() {
      * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the regexes to add. * @return This builder for chaining. */ - public Builder addRegexesBytes( - com.google.protobuf.ByteString value) { + public Builder addRegexesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRegexesIsMutable(); regexes_.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); } @@ -621,12 +683,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.RegexValidation) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.RegexValidation) private static final com.google.cloud.dataproc.v1.RegexValidation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.RegexValidation(); } @@ -635,27 +697,27 @@ public static com.google.cloud.dataproc.v1.RegexValidation getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegexValidation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegexValidation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -670,6 +732,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.RegexValidation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.java index 44d9f9d60330..d1b982afc22f 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface RegexValidationOrBuilder extends +public interface RegexValidationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.RegexValidation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. RE2 regular expressions used to validate the parameter's value.
    * The value must match the regex in its entirety (substring
@@ -15,11 +33,13 @@ public interface RegexValidationOrBuilder extends
    * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the regexes. */ - java.util.List - getRegexesList(); + java.util.List getRegexesList(); /** + * + * *
    * Required. RE2 regular expressions used to validate the parameter's value.
    * The value must match the regex in its entirety (substring
@@ -27,10 +47,13 @@ public interface RegexValidationOrBuilder extends
    * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of regexes. */ int getRegexesCount(); /** + * + * *
    * Required. RE2 regular expressions used to validate the parameter's value.
    * The value must match the regex in its entirety (substring
@@ -38,11 +61,14 @@ public interface RegexValidationOrBuilder extends
    * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The regexes at the given index. */ java.lang.String getRegexes(int index); /** + * + * *
    * Required. RE2 regular expressions used to validate the parameter's value.
    * The value must match the regex in its entirety (substring
@@ -50,9 +76,9 @@ public interface RegexValidationOrBuilder extends
    * 
* * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the regexes at the given index. */ - com.google.protobuf.ByteString - getRegexesBytes(int index); + com.google.protobuf.ByteString getRegexesBytes(int index); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java similarity index 67% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java index bbd762c20707..3ce19c7be614 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Reservation Affinity for consuming Zonal reservation.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ReservationAffinity} */ -public final class ReservationAffinity extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReservationAffinity extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ReservationAffinity) ReservationAffinityOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReservationAffinity.newBuilder() to construct. private ReservationAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReservationAffinity() { consumeReservationType_ = 0; key_ = ""; @@ -27,43 +45,45 @@ private ReservationAffinity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReservationAffinity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ReservationAffinity.class, com.google.cloud.dataproc.v1.ReservationAffinity.Builder.class); + com.google.cloud.dataproc.v1.ReservationAffinity.class, + com.google.cloud.dataproc.v1.ReservationAffinity.Builder.class); } /** + * + * *
    * Indicates whether to consume capacity from an reservation or not.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.ReservationAffinity.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * TYPE_UNSPECIFIED = 0; - */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** TYPE_UNSPECIFIED = 0; */ TYPE_UNSPECIFIED(0), /** + * + * *
      * Do not consume from any allocated capacity.
      * 
@@ -72,6 +92,8 @@ public enum Type */ NO_RESERVATION(1), /** + * + * *
      * Consume any reservation available.
      * 
@@ -80,6 +102,8 @@ public enum Type */ ANY_RESERVATION(2), /** + * + * *
      * Must consume from a specific reservation. Must specify key value fields
      * for specifying the reservations.
@@ -91,11 +115,11 @@ public enum Type
     UNRECOGNIZED(-1),
     ;
 
-    /**
-     * TYPE_UNSPECIFIED = 0;
-     */
+    /** TYPE_UNSPECIFIED = 0; */
     public static final int TYPE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Do not consume from any allocated capacity.
      * 
@@ -104,6 +128,8 @@ public enum Type */ public static final int NO_RESERVATION_VALUE = 1; /** + * + * *
      * Consume any reservation available.
      * 
@@ -112,6 +138,8 @@ public enum Type */ public static final int ANY_RESERVATION_VALUE = 2; /** + * + * *
      * Must consume from a specific reservation. Must specify key value fields
      * for specifying the reservations.
@@ -121,7 +149,6 @@ public enum Type
      */
     public static final int SPECIFIC_RESERVATION_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -146,50 +173,51 @@ public static Type valueOf(int value) {
      */
     public static Type forNumber(int value) {
       switch (value) {
-        case 0: return TYPE_UNSPECIFIED;
-        case 1: return NO_RESERVATION;
-        case 2: return ANY_RESERVATION;
-        case 3: return SPECIFIC_RESERVATION;
-        default: return null;
+        case 0:
+          return TYPE_UNSPECIFIED;
+        case 1:
+          return NO_RESERVATION;
+        case 2:
+          return ANY_RESERVATION;
+        case 3:
+          return SPECIFIC_RESERVATION;
+        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);
-            }
-          };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+
+    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() {
       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.dataproc.v1.ReservationAffinity.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;
@@ -209,38 +237,56 @@ private Type(int value) {
   public static final int CONSUME_RESERVATION_TYPE_FIELD_NUMBER = 1;
   private int consumeReservationType_;
   /**
+   *
+   *
    * 
    * Optional. Type of reservation to consume
    * 
* - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for consumeReservationType. */ - @java.lang.Override public int getConsumeReservationTypeValue() { + @java.lang.Override + public int getConsumeReservationTypeValue() { return consumeReservationType_; } /** + * + * *
    * Optional. Type of reservation to consume
    * 
* - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The consumeReservationType. */ - @java.lang.Override public com.google.cloud.dataproc.v1.ReservationAffinity.Type getConsumeReservationType() { + @java.lang.Override + public com.google.cloud.dataproc.v1.ReservationAffinity.Type getConsumeReservationType() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ReservationAffinity.Type result = com.google.cloud.dataproc.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); - return result == null ? com.google.cloud.dataproc.v1.ReservationAffinity.Type.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.ReservationAffinity.Type result = + com.google.cloud.dataproc.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); + return result == null + ? com.google.cloud.dataproc.v1.ReservationAffinity.Type.UNRECOGNIZED + : result; } public static final int KEY_FIELD_NUMBER = 2; private volatile java.lang.Object key_; /** + * + * *
    * Optional. Corresponds to the label key of reservation resource.
    * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The key. */ @java.lang.Override @@ -249,29 +295,29 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** + * + * *
    * Optional. Corresponds to the label key of reservation resource.
    * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -282,34 +328,42 @@ public java.lang.String getKey() { public static final int VALUES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList values_; /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList - getValuesList() { + public com.google.protobuf.ProtocolStringList getValuesList() { return values_; } /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The values at the given index. */ @@ -317,20 +371,23 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { + public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,9 +399,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (consumeReservationType_ != com.google.cloud.dataproc.v1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (consumeReservationType_ + != com.google.cloud.dataproc.v1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, consumeReservationType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { @@ -362,9 +419,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (consumeReservationType_ != com.google.cloud.dataproc.v1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, consumeReservationType_); + if (consumeReservationType_ + != com.google.cloud.dataproc.v1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, consumeReservationType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); @@ -385,18 +442,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.dataproc.v1.ReservationAffinity)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ReservationAffinity other = (com.google.cloud.dataproc.v1.ReservationAffinity) obj; + com.google.cloud.dataproc.v1.ReservationAffinity other = + (com.google.cloud.dataproc.v1.ReservationAffinity) obj; if (consumeReservationType_ != other.consumeReservationType_) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValuesList() - .equals(other.getValuesList())) return false; + if (!getKey().equals(other.getKey())) return false; + if (!getValuesList().equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -421,130 +477,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ReservationAffinity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ReservationAffinity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ReservationAffinity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.ReservationAffinity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Reservation Affinity for consuming Zonal reservation.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ReservationAffinity} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ReservationAffinity) com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ReservationAffinity.class, com.google.cloud.dataproc.v1.ReservationAffinity.Builder.class); + com.google.cloud.dataproc.v1.ReservationAffinity.class, + com.google.cloud.dataproc.v1.ReservationAffinity.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ReservationAffinity.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -558,9 +620,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; } @java.lang.Override @@ -579,7 +641,8 @@ public com.google.cloud.dataproc.v1.ReservationAffinity build() { @java.lang.Override public com.google.cloud.dataproc.v1.ReservationAffinity buildPartial() { - com.google.cloud.dataproc.v1.ReservationAffinity result = new com.google.cloud.dataproc.v1.ReservationAffinity(this); + com.google.cloud.dataproc.v1.ReservationAffinity result = + new com.google.cloud.dataproc.v1.ReservationAffinity(this); int from_bitField0_ = bitField0_; result.consumeReservationType_ = consumeReservationType_; result.key_ = key_; @@ -596,38 +659,39 @@ public com.google.cloud.dataproc.v1.ReservationAffinity buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ReservationAffinity) { - return mergeFrom((com.google.cloud.dataproc.v1.ReservationAffinity)other); + return mergeFrom((com.google.cloud.dataproc.v1.ReservationAffinity) other); } else { super.mergeFrom(other); return this; @@ -635,7 +699,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ReservationAffinity other) { - if (other == com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance()) + return this; if (other.consumeReservationType_ != 0) { setConsumeReservationTypeValue(other.getConsumeReservationTypeValue()); } @@ -679,28 +744,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - consumeReservationType_ = input.readEnum(); + case 8: + { + consumeReservationType_ = input.readEnum(); - break; - } // case 8 - case 18: { - key_ = input.readStringRequireUtf8(); + break; + } // case 8 + case 18: + { + key_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -710,77 +779,108 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int consumeReservationType_ = 0; /** + * + * *
      * Optional. Type of reservation to consume
      * 
* - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for consumeReservationType. */ - @java.lang.Override public int getConsumeReservationTypeValue() { + @java.lang.Override + public int getConsumeReservationTypeValue() { return consumeReservationType_; } /** + * + * *
      * Optional. Type of reservation to consume
      * 
* - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for consumeReservationType to set. * @return This builder for chaining. */ public Builder setConsumeReservationTypeValue(int value) { - + consumeReservationType_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Type of reservation to consume
      * 
* - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The consumeReservationType. */ @java.lang.Override public com.google.cloud.dataproc.v1.ReservationAffinity.Type getConsumeReservationType() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ReservationAffinity.Type result = com.google.cloud.dataproc.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); - return result == null ? com.google.cloud.dataproc.v1.ReservationAffinity.Type.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.ReservationAffinity.Type result = + com.google.cloud.dataproc.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); + return result == null + ? com.google.cloud.dataproc.v1.ReservationAffinity.Type.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. Type of reservation to consume
      * 
* - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The consumeReservationType to set. * @return This builder for chaining. */ - public Builder setConsumeReservationType(com.google.cloud.dataproc.v1.ReservationAffinity.Type value) { + public Builder setConsumeReservationType( + com.google.cloud.dataproc.v1.ReservationAffinity.Type value) { if (value == null) { throw new NullPointerException(); } - + consumeReservationType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. Type of reservation to consume
      * 
* - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearConsumeReservationType() { - + consumeReservationType_ = 0; onChanged(); return this; @@ -788,18 +888,20 @@ public Builder clearConsumeReservationType() { private java.lang.Object key_ = ""; /** + * + * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -808,20 +910,21 @@ public java.lang.String getKey() { } } /** + * + * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -829,95 +932,112 @@ public java.lang.String getKey() { } } /** + * + * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey( - java.lang.String value) { + public Builder setKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** + * + * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList values_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList - getValuesList() { + public com.google.protobuf.ProtocolStringList getValuesList() { return values_.getUnmodifiableView(); } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The values at the given index. */ @@ -925,80 +1045,90 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { + public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ - public Builder setValues( - int index, java.lang.String value) { + public Builder setValues(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The values to add. * @return This builder for chaining. */ - public Builder addValues( - java.lang.String value) { + public Builder addValues(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The values to add. * @return This builder for chaining. */ - public Builder addAllValues( - java.lang.Iterable values) { + public Builder addAllValues(java.lang.Iterable values) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); onChanged(); return this; } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValues() { @@ -1008,28 +1138,30 @@ public Builder clearValues() { return this; } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the values to add. * @return This builder for chaining. */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { + public Builder addValuesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.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); } @@ -1039,12 +1171,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ReservationAffinity) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ReservationAffinity) private static final com.google.cloud.dataproc.v1.ReservationAffinity DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ReservationAffinity(); } @@ -1053,27 +1185,27 @@ public static com.google.cloud.dataproc.v1.ReservationAffinity getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReservationAffinity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReservationAffinity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1088,6 +1220,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ReservationAffinity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java index cfde0d9e6c8e..21a9f1252a6c 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java @@ -1,89 +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/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface ReservationAffinityOrBuilder extends +public interface ReservationAffinityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ReservationAffinity) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Type of reservation to consume
    * 
* - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for consumeReservationType. */ int getConsumeReservationTypeValue(); /** + * + * *
    * Optional. Type of reservation to consume
    * 
* - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The consumeReservationType. */ com.google.cloud.dataproc.v1.ReservationAffinity.Type getConsumeReservationType(); /** + * + * *
    * Optional. Corresponds to the label key of reservation resource.
    * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The key. */ java.lang.String getKey(); /** + * + * *
    * Optional. Corresponds to the label key of reservation resource.
    * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for key. */ - com.google.protobuf.ByteString - getKeyBytes(); + com.google.protobuf.ByteString getKeyBytes(); /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the values. */ - java.util.List - getValuesList(); + java.util.List getValuesList(); /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of values. */ int getValuesCount(); /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - com.google.protobuf.ByteString - getValuesBytes(int index); + com.google.protobuf.ByteString getValuesBytes(int index); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequest.java similarity index 76% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequest.java index 1d4468295004..d646ca328974 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/node_groups.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to resize a node group.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ResizeNodeGroupRequest} */ -public final class ResizeNodeGroupRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResizeNodeGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ResizeNodeGroupRequest) ResizeNodeGroupRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResizeNodeGroupRequest.newBuilder() to construct. private ResizeNodeGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResizeNodeGroupRequest() { name_ = ""; requestId_ = ""; @@ -26,32 +44,35 @@ private ResizeNodeGroupRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResizeNodeGroupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.NodeGroupsProto + .internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.NodeGroupsProto + .internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.class, com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.Builder.class); + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.class, + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the node group to resize.
    * Format:
@@ -59,6 +80,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -67,14 +89,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the node group to resize.
    * Format:
@@ -82,16 +105,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -102,6 +124,8 @@ public java.lang.String getName() { public static final int SIZE_FIELD_NUMBER = 2; private int size_; /** + * + * *
    * Required. The number of running instances for the node group to maintain.
    * The group adds or removes instances to maintain the number of instances
@@ -109,6 +133,7 @@ public java.lang.String getName() {
    * 
* * int32 size = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The size. */ @java.lang.Override @@ -119,6 +144,8 @@ public int getSize() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A unique ID used to identify the request. If the server receives
    * two
@@ -133,6 +160,7 @@ public int getSize() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -141,14 +169,15 @@ 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. A unique ID used to identify the request. If the server receives
    * two
@@ -163,16 +192,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.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 { @@ -183,6 +211,8 @@ public java.lang.String getRequestId() { public static final int GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER = 4; private com.google.protobuf.Duration gracefulDecommissionTimeout_; /** + * + * *
    * Optional. Timeout for graceful YARN decommissioning. [Graceful
    * decommissioning]
@@ -197,7 +227,10 @@ public java.lang.String getRequestId() {
    * Only supported on Dataproc image versions 1.2 and higher.
    * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gracefulDecommissionTimeout field is set. */ @java.lang.Override @@ -205,6 +238,8 @@ public boolean hasGracefulDecommissionTimeout() { return gracefulDecommissionTimeout_ != null; } /** + * + * *
    * Optional. Timeout for graceful YARN decommissioning. [Graceful
    * decommissioning]
@@ -219,14 +254,21 @@ public boolean hasGracefulDecommissionTimeout() {
    * Only supported on Dataproc image versions 1.2 and higher.
    * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gracefulDecommissionTimeout. */ @java.lang.Override public com.google.protobuf.Duration getGracefulDecommissionTimeout() { - return gracefulDecommissionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : gracefulDecommissionTimeout_; + return gracefulDecommissionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : gracefulDecommissionTimeout_; } /** + * + * *
    * Optional. Timeout for graceful YARN decommissioning. [Graceful
    * decommissioning]
@@ -241,7 +283,9 @@ public com.google.protobuf.Duration getGracefulDecommissionTimeout() {
    * Only supported on Dataproc image versions 1.2 and higher.
    * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { @@ -249,6 +293,7 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,8 +305,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -287,15 +331,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (size_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, size_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, size_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); } if (gracefulDecommissionTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getGracefulDecommissionTimeout()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getGracefulDecommissionTimeout()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -305,23 +349,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.dataproc.v1.ResizeNodeGroupRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ResizeNodeGroupRequest other = (com.google.cloud.dataproc.v1.ResizeNodeGroupRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getSize() - != other.getSize()) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest other = + (com.google.cloud.dataproc.v1.ResizeNodeGroupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getSize() != other.getSize()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (hasGracefulDecommissionTimeout() != other.hasGracefulDecommissionTimeout()) return false; if (hasGracefulDecommissionTimeout()) { - if (!getGracefulDecommissionTimeout() - .equals(other.getGracefulDecommissionTimeout())) return false; + if (!getGracefulDecommissionTimeout().equals(other.getGracefulDecommissionTimeout())) + return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -350,129 +392,135 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest 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.dataproc.v1.ResizeNodeGroupRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.ResizeNodeGroupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to resize a node group.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ResizeNodeGroupRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ResizeNodeGroupRequest) com.google.cloud.dataproc.v1.ResizeNodeGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.NodeGroupsProto + .internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.NodeGroupsProto + .internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.class, com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.Builder.class); + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.class, + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -492,9 +540,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.NodeGroupsProto.internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.NodeGroupsProto + .internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_descriptor; } @java.lang.Override @@ -513,7 +561,8 @@ public com.google.cloud.dataproc.v1.ResizeNodeGroupRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.ResizeNodeGroupRequest buildPartial() { - com.google.cloud.dataproc.v1.ResizeNodeGroupRequest result = new com.google.cloud.dataproc.v1.ResizeNodeGroupRequest(this); + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest result = + new com.google.cloud.dataproc.v1.ResizeNodeGroupRequest(this); result.name_ = name_; result.size_ = size_; result.requestId_ = requestId_; @@ -530,38 +579,39 @@ public com.google.cloud.dataproc.v1.ResizeNodeGroupRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ResizeNodeGroupRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.ResizeNodeGroupRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.ResizeNodeGroupRequest) other); } else { super.mergeFrom(other); return this; @@ -569,7 +619,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.ResizeNodeGroupRequest other) { - if (other == com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.ResizeNodeGroupRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -610,34 +661,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); + case 10: + { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - size_ = input.readInt32(); + break; + } // case 10 + case 16: + { + size_ = input.readInt32(); - break; - } // case 16 - case 26: { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - input.readMessage( - getGracefulDecommissionTimeoutFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 26 + case 34: + { + input.readMessage( + getGracefulDecommissionTimeoutFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,6 +705,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the node group to resize.
      * Format:
@@ -657,13 +714,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -672,6 +729,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the node group to resize.
      * Format:
@@ -679,15 +738,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -695,6 +753,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the node group to resize.
      * Format:
@@ -702,20 +762,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the node group to resize.
      * Format:
@@ -723,15 +785,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the node group to resize.
      * Format:
@@ -739,23 +804,25 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int size_ ; + private int size_; /** + * + * *
      * Required. The number of running instances for the node group to maintain.
      * The group adds or removes instances to maintain the number of instances
@@ -763,6 +830,7 @@ public Builder setNameBytes(
      * 
* * int32 size = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The size. */ @java.lang.Override @@ -770,6 +838,8 @@ public int getSize() { return size_; } /** + * + * *
      * Required. The number of running instances for the node group to maintain.
      * The group adds or removes instances to maintain the number of instances
@@ -777,16 +847,19 @@ public int getSize() {
      * 
* * int32 size = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(int value) { - + size_ = value; onChanged(); return this; } /** + * + * *
      * Required. The number of running instances for the node group to maintain.
      * The group adds or removes instances to maintain the number of instances
@@ -794,10 +867,11 @@ public Builder setSize(int value) {
      * 
* * int32 size = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSize() { - + size_ = 0; onChanged(); return this; @@ -805,6 +879,8 @@ public Builder clearSize() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique ID used to identify the request. If the server receives
      * two
@@ -819,13 +895,13 @@ public Builder clearSize() {
      * 
* * string request_id = 3 [(.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; @@ -834,6 +910,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server receives
      * two
@@ -848,15 +926,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.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 { @@ -864,6 +941,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server receives
      * two
@@ -878,20 +957,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.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. A unique ID used to identify the request. If the server receives
      * two
@@ -906,15 +987,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server receives
      * two
@@ -929,16 +1013,16 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.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; @@ -946,8 +1030,13 @@ public Builder setRequestIdBytes( private com.google.protobuf.Duration gracefulDecommissionTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> gracefulDecommissionTimeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + gracefulDecommissionTimeoutBuilder_; /** + * + * *
      * Optional. Timeout for graceful YARN decommissioning. [Graceful
      * decommissioning]
@@ -962,13 +1051,18 @@ public Builder setRequestIdBytes(
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gracefulDecommissionTimeout field is set. */ public boolean hasGracefulDecommissionTimeout() { return gracefulDecommissionTimeoutBuilder_ != null || gracefulDecommissionTimeout_ != null; } /** + * + * *
      * Optional. Timeout for graceful YARN decommissioning. [Graceful
      * decommissioning]
@@ -983,17 +1077,24 @@ public boolean hasGracefulDecommissionTimeout() {
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gracefulDecommissionTimeout. */ public com.google.protobuf.Duration getGracefulDecommissionTimeout() { if (gracefulDecommissionTimeoutBuilder_ == null) { - return gracefulDecommissionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : gracefulDecommissionTimeout_; + return gracefulDecommissionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : gracefulDecommissionTimeout_; } else { return gracefulDecommissionTimeoutBuilder_.getMessage(); } } /** + * + * *
      * Optional. Timeout for graceful YARN decommissioning. [Graceful
      * decommissioning]
@@ -1008,7 +1109,9 @@ public com.google.protobuf.Duration getGracefulDecommissionTimeout() {
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value) { if (gracefulDecommissionTimeoutBuilder_ == null) { @@ -1024,6 +1127,8 @@ public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value return this; } /** + * + * *
      * Optional. Timeout for graceful YARN decommissioning. [Graceful
      * decommissioning]
@@ -1038,7 +1143,9 @@ public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGracefulDecommissionTimeout( com.google.protobuf.Duration.Builder builderForValue) { @@ -1052,6 +1159,8 @@ public Builder setGracefulDecommissionTimeout( return this; } /** + * + * *
      * Optional. Timeout for graceful YARN decommissioning. [Graceful
      * decommissioning]
@@ -1066,13 +1175,17 @@ public Builder setGracefulDecommissionTimeout(
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration value) { if (gracefulDecommissionTimeoutBuilder_ == null) { if (gracefulDecommissionTimeout_ != null) { gracefulDecommissionTimeout_ = - com.google.protobuf.Duration.newBuilder(gracefulDecommissionTimeout_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(gracefulDecommissionTimeout_) + .mergeFrom(value) + .buildPartial(); } else { gracefulDecommissionTimeout_ = value; } @@ -1084,6 +1197,8 @@ public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration val return this; } /** + * + * *
      * Optional. Timeout for graceful YARN decommissioning. [Graceful
      * decommissioning]
@@ -1098,7 +1213,9 @@ public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration val
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGracefulDecommissionTimeout() { if (gracefulDecommissionTimeoutBuilder_ == null) { @@ -1112,6 +1229,8 @@ public Builder clearGracefulDecommissionTimeout() { return this; } /** + * + * *
      * Optional. Timeout for graceful YARN decommissioning. [Graceful
      * decommissioning]
@@ -1126,14 +1245,18 @@ public Builder clearGracefulDecommissionTimeout() {
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getGracefulDecommissionTimeoutBuilder() { - + onChanged(); return getGracefulDecommissionTimeoutFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Timeout for graceful YARN decommissioning. [Graceful
      * decommissioning]
@@ -1148,17 +1271,22 @@ public com.google.protobuf.Duration.Builder getGracefulDecommissionTimeoutBuilde
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { if (gracefulDecommissionTimeoutBuilder_ != null) { return gracefulDecommissionTimeoutBuilder_.getMessageOrBuilder(); } else { - return gracefulDecommissionTimeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : gracefulDecommissionTimeout_; + return gracefulDecommissionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : gracefulDecommissionTimeout_; } } /** + * + * *
      * Optional. Timeout for graceful YARN decommissioning. [Graceful
      * decommissioning]
@@ -1173,24 +1301,29 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getGracefulDecommissionTimeoutFieldBuilder() { if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getGracefulDecommissionTimeout(), - getParentForChildren(), - isClean()); + gracefulDecommissionTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getGracefulDecommissionTimeout(), getParentForChildren(), isClean()); gracefulDecommissionTimeout_ = null; } return gracefulDecommissionTimeoutBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1200,12 +1333,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ResizeNodeGroupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ResizeNodeGroupRequest) private static final com.google.cloud.dataproc.v1.ResizeNodeGroupRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ResizeNodeGroupRequest(); } @@ -1214,27 +1347,27 @@ public static com.google.cloud.dataproc.v1.ResizeNodeGroupRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResizeNodeGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResizeNodeGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1249,6 +1382,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ResizeNodeGroupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequestOrBuilder.java similarity index 81% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequestOrBuilder.java index e5156e1953fc..2509d054b4c4 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ResizeNodeGroupRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/node_groups.proto package com.google.cloud.dataproc.v1; -public interface ResizeNodeGroupRequestOrBuilder extends +public interface ResizeNodeGroupRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ResizeNodeGroupRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the node group to resize.
    * Format:
@@ -15,10 +33,13 @@ public interface ResizeNodeGroupRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the node group to resize.
    * Format:
@@ -26,12 +47,14 @@ public interface ResizeNodeGroupRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The number of running instances for the node group to maintain.
    * The group adds or removes instances to maintain the number of instances
@@ -39,11 +62,14 @@ public interface ResizeNodeGroupRequestOrBuilder extends
    * 
* * int32 size = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The size. */ int getSize(); /** + * + * *
    * Optional. A unique ID used to identify the request. If the server receives
    * two
@@ -58,10 +84,13 @@ public interface ResizeNodeGroupRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique ID used to identify the request. If the server receives
    * two
@@ -76,12 +105,14 @@ public interface ResizeNodeGroupRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * Optional. Timeout for graceful YARN decommissioning. [Graceful
    * decommissioning]
@@ -96,11 +127,16 @@ public interface ResizeNodeGroupRequestOrBuilder extends
    * Only supported on Dataproc image versions 1.2 and higher.
    * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gracefulDecommissionTimeout field is set. */ boolean hasGracefulDecommissionTimeout(); /** + * + * *
    * Optional. Timeout for graceful YARN decommissioning. [Graceful
    * decommissioning]
@@ -115,11 +151,16 @@ public interface ResizeNodeGroupRequestOrBuilder extends
    * Only supported on Dataproc image versions 1.2 and higher.
    * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gracefulDecommissionTimeout. */ com.google.protobuf.Duration getGracefulDecommissionTimeout(); /** + * + * *
    * Optional. Timeout for graceful YARN decommissioning. [Graceful
    * decommissioning]
@@ -134,7 +175,9 @@ public interface ResizeNodeGroupRequestOrBuilder extends
    * Only supported on Dataproc image versions 1.2 and higher.
    * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java similarity index 63% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java index 7410cc65d567..6dc77af1a19f 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Runtime configuration for a workload.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.RuntimeConfig} */ -public final class RuntimeConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RuntimeConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.RuntimeConfig) RuntimeConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RuntimeConfig.newBuilder() to construct. private RuntimeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RuntimeConfig() { version_ = ""; containerImage_ = ""; @@ -26,49 +44,52 @@ private RuntimeConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RuntimeConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeConfig_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 3: return internalGetProperties(); 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.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.RuntimeConfig.class, com.google.cloud.dataproc.v1.RuntimeConfig.Builder.class); + com.google.cloud.dataproc.v1.RuntimeConfig.class, + com.google.cloud.dataproc.v1.RuntimeConfig.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** + * + * *
    * Optional. Version of the batch runtime.
    * 
* * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ @java.lang.Override @@ -77,29 +98,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * Optional. Version of the batch runtime.
    * 
* * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -110,12 +131,15 @@ public java.lang.String getVersion() { public static final int CONTAINER_IMAGE_FIELD_NUMBER = 2; private volatile java.lang.Object containerImage_; /** + * + * *
    * Optional. Optional custom container image for the job runtime environment. If
    * not specified, a default container image will be used.
    * 
* * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The containerImage. */ @java.lang.Override @@ -124,30 +148,30 @@ public java.lang.String getContainerImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); containerImage_ = s; return s; } } /** + * + * *
    * Optional. Optional custom container image for the job runtime environment. If
    * not specified, a default container image will be used.
    * 
* * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for containerImage. */ @java.lang.Override - public com.google.protobuf.ByteString - getContainerImageBytes() { + public com.google.protobuf.ByteString getContainerImageBytes() { java.lang.Object ref = containerImage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); containerImage_ = b; return b; } else { @@ -156,24 +180,23 @@ public java.lang.String getContainerImage() { } public static final int PROPERTIES_FIELD_NUMBER = 3; + private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; - private com.google.protobuf.MapField - internalGetProperties() { + + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -182,74 +205,81 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
    * Optional. A mapping of property names to values, which are used to configure workload
    * execution.
    * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
    * Optional. A mapping of property names to values, which are used to configure workload
    * execution.
    * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
    * Optional. A mapping of property names to values, which are used to configure workload
    * execution.
    * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. A mapping of property names to values, which are used to configure workload
    * execution.
    * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -257,6 +287,7 @@ public java.lang.String getPropertiesOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,20 +299,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(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerImage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, containerImage_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetProperties(), - PropertiesDefaultEntryHolder.defaultEntry, - 3); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 3); getUnknownFields().writeTo(output); } @@ -297,15 +323,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerImage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, containerImage_); } - for (java.util.Map.Entry entry - : internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry - properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, properties__); + for (java.util.Map.Entry entry : + internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, properties__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -315,19 +341,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.dataproc.v1.RuntimeConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.RuntimeConfig other = (com.google.cloud.dataproc.v1.RuntimeConfig) obj; + com.google.cloud.dataproc.v1.RuntimeConfig other = + (com.google.cloud.dataproc.v1.RuntimeConfig) obj; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getContainerImage() - .equals(other.getContainerImage())) return false; - if (!internalGetProperties().equals( - other.internalGetProperties())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getContainerImage().equals(other.getContainerImage())) return false; + if (!internalGetProperties().equals(other.internalGetProperties())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -352,152 +376,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.RuntimeConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.RuntimeConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.RuntimeConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.RuntimeConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Runtime configuration for a workload.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.RuntimeConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.RuntimeConfig) com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetProperties(); 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 3: return internalGetMutableProperties(); 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.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.RuntimeConfig.class, com.google.cloud.dataproc.v1.RuntimeConfig.Builder.class); + com.google.cloud.dataproc.v1.RuntimeConfig.class, + com.google.cloud.dataproc.v1.RuntimeConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.RuntimeConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -510,9 +538,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor; } @java.lang.Override @@ -531,7 +559,8 @@ public com.google.cloud.dataproc.v1.RuntimeConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.RuntimeConfig buildPartial() { - com.google.cloud.dataproc.v1.RuntimeConfig result = new com.google.cloud.dataproc.v1.RuntimeConfig(this); + com.google.cloud.dataproc.v1.RuntimeConfig result = + new com.google.cloud.dataproc.v1.RuntimeConfig(this); int from_bitField0_ = bitField0_; result.version_ = version_; result.containerImage_ = containerImage_; @@ -545,38 +574,39 @@ public com.google.cloud.dataproc.v1.RuntimeConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.RuntimeConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.RuntimeConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.RuntimeConfig) other); } else { super.mergeFrom(other); return this; @@ -593,8 +623,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.RuntimeConfig other) { containerImage_ = other.containerImage_; onChanged(); } - internalGetMutableProperties().mergeFrom( - other.internalGetProperties()); + internalGetMutableProperties().mergeFrom(other.internalGetProperties()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -621,30 +650,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - version_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - containerImage_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - com.google.protobuf.MapEntry - properties__ = input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableProperties().getMutableMap().put( - properties__.getKey(), properties__.getValue()); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + containerImage_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties() + .getMutableMap() + .put(properties__.getKey(), properties__.getValue()); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -654,22 +689,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object version_ = ""; /** + * + * *
      * Optional. Version of the batch runtime.
      * 
* * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -678,20 +716,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Optional. Version of the batch runtime.
      * 
* * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -699,54 +738,61 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Optional. Version of the batch runtime.
      * 
* * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Version of the batch runtime.
      * 
* * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * Optional. Version of the batch runtime.
      * 
* * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -754,19 +800,21 @@ public Builder setVersionBytes( private java.lang.Object containerImage_ = ""; /** + * + * *
      * Optional. Optional custom container image for the job runtime environment. If
      * not specified, a default container image will be used.
      * 
* * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The containerImage. */ public java.lang.String getContainerImage() { java.lang.Object ref = containerImage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); containerImage_ = s; return s; @@ -775,21 +823,22 @@ public java.lang.String getContainerImage() { } } /** + * + * *
      * Optional. Optional custom container image for the job runtime environment. If
      * not specified, a default container image will be used.
      * 
* * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for containerImage. */ - public com.google.protobuf.ByteString - getContainerImageBytes() { + public com.google.protobuf.ByteString getContainerImageBytes() { java.lang.Object ref = containerImage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); containerImage_ = b; return b; } else { @@ -797,78 +846,87 @@ public java.lang.String getContainerImage() { } } /** + * + * *
      * Optional. Optional custom container image for the job runtime environment. If
      * not specified, a default container image will be used.
      * 
* * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The containerImage to set. * @return This builder for chaining. */ - public Builder setContainerImage( - java.lang.String value) { + public Builder setContainerImage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + containerImage_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Optional custom container image for the job runtime environment. If
      * not specified, a default container image will be used.
      * 
* * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearContainerImage() { - + containerImage_ = getDefaultInstance().getContainerImage(); onChanged(); return this; } /** + * + * *
      * Optional. Optional custom container image for the job runtime environment. If
      * not specified, a default container image will be used.
      * 
* * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for containerImage to set. * @return This builder for chaining. */ - public Builder setContainerImageBytes( - com.google.protobuf.ByteString value) { + public Builder setContainerImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + containerImage_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField properties_; + private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } + private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged();; + internalGetMutableProperties() { + onChanged(); + ; if (properties_ == null) { - properties_ = com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); + properties_ = + com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -880,74 +938,81 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
      * Optional. A mapping of property names to values, which are used to configure workload
      * execution.
      * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
      * Optional. A mapping of property names to values, which are used to configure workload
      * execution.
      * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
      * Optional. A mapping of property names to values, which are used to configure workload
      * execution.
      * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. A mapping of property names to values, which are used to configure workload
      * execution.
      * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -955,72 +1020,72 @@ public java.lang.String getPropertiesOrThrow( } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap() - .clear(); + internalGetMutableProperties().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. A mapping of property names to values, which are used to configure workload
      * execution.
      * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableProperties().getMutableMap() - .remove(key); + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProperties().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableProperties() { + public java.util.Map getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** + * + * *
      * Optional. A mapping of property names to values, which are used to configure workload
      * execution.
      * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putProperties( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putProperties(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"); + } - internalGetMutableProperties().getMutableMap() - .put(key, value); + internalGetMutableProperties().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. A mapping of property names to values, which are used to configure workload
      * execution.
      * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllProperties( - java.util.Map values) { - internalGetMutableProperties().getMutableMap() - .putAll(values); + public Builder putAllProperties(java.util.Map values) { + internalGetMutableProperties().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); } @@ -1030,12 +1095,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.RuntimeConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.RuntimeConfig) private static final com.google.cloud.dataproc.v1.RuntimeConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.RuntimeConfig(); } @@ -1044,27 +1109,27 @@ public static com.google.cloud.dataproc.v1.RuntimeConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuntimeConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1079,6 +1144,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.RuntimeConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java similarity index 63% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java index cc7c8a58cfa2..f7a1a09d56e0 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java @@ -1,112 +1,146 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; -public interface RuntimeConfigOrBuilder extends +public interface RuntimeConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.RuntimeConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Version of the batch runtime.
    * 
* * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * Optional. Version of the batch runtime.
    * 
* * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
    * Optional. Optional custom container image for the job runtime environment. If
    * not specified, a default container image will be used.
    * 
* * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The containerImage. */ java.lang.String getContainerImage(); /** + * + * *
    * Optional. Optional custom container image for the job runtime environment. If
    * not specified, a default container image will be used.
    * 
* * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for containerImage. */ - com.google.protobuf.ByteString - getContainerImageBytes(); + com.google.protobuf.ByteString getContainerImageBytes(); /** + * + * *
    * Optional. A mapping of property names to values, which are used to configure workload
    * execution.
    * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getPropertiesCount(); /** + * + * *
    * Optional. A mapping of property names to values, which are used to configure workload
    * execution.
    * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsProperties( - java.lang.String key); - /** - * Use {@link #getPropertiesMap()} instead. + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsProperties(java.lang.String key); + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getProperties(); + java.util.Map getProperties(); /** + * + * *
    * Optional. A mapping of property names to values, which are used to configure workload
    * execution.
    * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getPropertiesMap(); + java.util.Map getPropertiesMap(); /** + * + * *
    * Optional. A mapping of property names to values, which are used to configure workload
    * execution.
    * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getPropertiesOrDefault( + java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. A mapping of property names to values, which are used to configure workload
    * execution.
    * 
* - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - java.lang.String getPropertiesOrThrow( - java.lang.String key); + java.lang.String getPropertiesOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java similarity index 63% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java index 72a5e468fa88..10875f96ea5b 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Runtime information about workload execution.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.RuntimeInfo} */ -public final class RuntimeInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RuntimeInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.RuntimeInfo) RuntimeInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RuntimeInfo.newBuilder() to construct. private RuntimeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RuntimeInfo() { outputUri_ = ""; diagnosticOutputUri_ = ""; @@ -26,60 +44,59 @@ private RuntimeInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RuntimeInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeInfo_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 internalGetEndpoints(); 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.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.RuntimeInfo.class, com.google.cloud.dataproc.v1.RuntimeInfo.Builder.class); + com.google.cloud.dataproc.v1.RuntimeInfo.class, + com.google.cloud.dataproc.v1.RuntimeInfo.Builder.class); } public static final int ENDPOINTS_FIELD_NUMBER = 1; + private static final class EndpointsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> endpoints_; - private com.google.protobuf.MapField - internalGetEndpoints() { + + private com.google.protobuf.MapField endpoints_; + + private com.google.protobuf.MapField internalGetEndpoints() { if (endpoints_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EndpointsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(EndpointsDefaultEntryHolder.defaultEntry); } return endpoints_; } @@ -88,74 +105,81 @@ public int getEndpointsCount() { return internalGetEndpoints().getMap().size(); } /** + * + * *
    * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
    * URIs.
    * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsEndpoints( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEndpoints(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEndpoints().getMap().containsKey(key); } - /** - * Use {@link #getEndpointsMap()} instead. - */ + /** Use {@link #getEndpointsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEndpoints() { return getEndpointsMap(); } /** + * + * *
    * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
    * URIs.
    * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.Map getEndpointsMap() { return internalGetEndpoints().getMap(); } /** + * + * *
    * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
    * URIs.
    * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.lang.String getEndpointsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEndpoints().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEndpoints().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
    * URIs.
    * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - - public java.lang.String getEndpointsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEndpoints().getMap(); + public java.lang.String getEndpointsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEndpoints().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -165,11 +189,14 @@ public java.lang.String getEndpointsOrThrow( public static final int OUTPUT_URI_FIELD_NUMBER = 2; private volatile java.lang.Object outputUri_; /** + * + * *
    * Output only. A URI pointing to the location of the stdout and stderr of the workload.
    * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The outputUri. */ @java.lang.Override @@ -178,29 +205,29 @@ public java.lang.String getOutputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUri_ = s; return s; } } /** + * + * *
    * Output only. A URI pointing to the location of the stdout and stderr of the workload.
    * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for outputUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputUriBytes() { + public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUri_ = b; return b; } else { @@ -211,11 +238,14 @@ public java.lang.String getOutputUri() { public static final int DIAGNOSTIC_OUTPUT_URI_FIELD_NUMBER = 3; private volatile java.lang.Object diagnosticOutputUri_; /** + * + * *
    * Output only. A URI pointing to the location of the diagnostics tarball.
    * 
* * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The diagnosticOutputUri. */ @java.lang.Override @@ -224,29 +254,29 @@ public java.lang.String getDiagnosticOutputUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diagnosticOutputUri_ = s; return s; } } /** + * + * *
    * Output only. A URI pointing to the location of the diagnostics tarball.
    * 
* * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for diagnosticOutputUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getDiagnosticOutputUriBytes() { + public com.google.protobuf.ByteString getDiagnosticOutputUriBytes() { java.lang.Object ref = diagnosticOutputUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); diagnosticOutputUri_ = b; return b; } else { @@ -255,6 +285,7 @@ public java.lang.String getDiagnosticOutputUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,14 +297,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetEndpoints(), - EndpointsDefaultEntryHolder.defaultEntry, - 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetEndpoints(), EndpointsDefaultEntryHolder.defaultEntry, 1); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outputUri_); } @@ -289,15 +315,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetEndpoints().getMap().entrySet()) { - com.google.protobuf.MapEntry - endpoints__ = EndpointsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, endpoints__); + for (java.util.Map.Entry entry : + internalGetEndpoints().getMap().entrySet()) { + com.google.protobuf.MapEntry endpoints__ = + EndpointsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, endpoints__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outputUri_); @@ -313,19 +339,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.RuntimeInfo)) { return super.equals(obj); } com.google.cloud.dataproc.v1.RuntimeInfo other = (com.google.cloud.dataproc.v1.RuntimeInfo) obj; - if (!internalGetEndpoints().equals( - other.internalGetEndpoints())) return false; - if (!getOutputUri() - .equals(other.getOutputUri())) return false; - if (!getDiagnosticOutputUri() - .equals(other.getDiagnosticOutputUri())) return false; + if (!internalGetEndpoints().equals(other.internalGetEndpoints())) return false; + if (!getOutputUri().equals(other.getOutputUri())) return false; + if (!getDiagnosticOutputUri().equals(other.getDiagnosticOutputUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,152 +373,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.RuntimeInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.RuntimeInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.RuntimeInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.RuntimeInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Runtime information about workload execution.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.RuntimeInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.RuntimeInfo) com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetEndpoints(); 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 internalGetMutableEndpoints(); 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.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.RuntimeInfo.class, com.google.cloud.dataproc.v1.RuntimeInfo.Builder.class); + com.google.cloud.dataproc.v1.RuntimeInfo.class, + com.google.cloud.dataproc.v1.RuntimeInfo.Builder.class); } // Construct using com.google.cloud.dataproc.v1.RuntimeInfo.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -508,9 +535,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; } @java.lang.Override @@ -529,7 +556,8 @@ public com.google.cloud.dataproc.v1.RuntimeInfo build() { @java.lang.Override public com.google.cloud.dataproc.v1.RuntimeInfo buildPartial() { - com.google.cloud.dataproc.v1.RuntimeInfo result = new com.google.cloud.dataproc.v1.RuntimeInfo(this); + com.google.cloud.dataproc.v1.RuntimeInfo result = + new com.google.cloud.dataproc.v1.RuntimeInfo(this); int from_bitField0_ = bitField0_; result.endpoints_ = internalGetEndpoints(); result.endpoints_.makeImmutable(); @@ -543,38 +571,39 @@ public com.google.cloud.dataproc.v1.RuntimeInfo buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.RuntimeInfo) { - return mergeFrom((com.google.cloud.dataproc.v1.RuntimeInfo)other); + return mergeFrom((com.google.cloud.dataproc.v1.RuntimeInfo) other); } else { super.mergeFrom(other); return this; @@ -583,8 +612,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.dataproc.v1.RuntimeInfo other) { if (other == com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance()) return this; - internalGetMutableEndpoints().mergeFrom( - other.internalGetEndpoints()); + internalGetMutableEndpoints().mergeFrom(other.internalGetEndpoints()); if (!other.getOutputUri().isEmpty()) { outputUri_ = other.outputUri_; onChanged(); @@ -619,30 +647,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.MapEntry - endpoints__ = input.readMessage( - EndpointsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableEndpoints().getMutableMap().put( - endpoints__.getKey(), endpoints__.getValue()); - break; - } // case 10 - case 18: { - outputUri_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - diagnosticOutputUri_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.MapEntry endpoints__ = + input.readMessage( + EndpointsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableEndpoints() + .getMutableMap() + .put(endpoints__.getKey(), endpoints__.getValue()); + break; + } // case 10 + case 18: + { + outputUri_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + diagnosticOutputUri_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -652,24 +686,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> endpoints_; + private com.google.protobuf.MapField endpoints_; + private com.google.protobuf.MapField - internalGetEndpoints() { + internalGetEndpoints() { if (endpoints_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EndpointsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(EndpointsDefaultEntryHolder.defaultEntry); } return endpoints_; } + private com.google.protobuf.MapField - internalGetMutableEndpoints() { - onChanged();; + internalGetMutableEndpoints() { + onChanged(); + ; if (endpoints_ == null) { - endpoints_ = com.google.protobuf.MapField.newMapField( - EndpointsDefaultEntryHolder.defaultEntry); + endpoints_ = + com.google.protobuf.MapField.newMapField(EndpointsDefaultEntryHolder.defaultEntry); } if (!endpoints_.isMutable()) { endpoints_ = endpoints_.copy(); @@ -681,74 +717,81 @@ public int getEndpointsCount() { return internalGetEndpoints().getMap().size(); } /** + * + * *
      * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
      * URIs.
      * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsEndpoints( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEndpoints(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEndpoints().getMap().containsKey(key); } - /** - * Use {@link #getEndpointsMap()} instead. - */ + /** Use {@link #getEndpointsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEndpoints() { return getEndpointsMap(); } /** + * + * *
      * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
      * URIs.
      * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.Map getEndpointsMap() { return internalGetEndpoints().getMap(); } /** + * + * *
      * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
      * URIs.
      * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.lang.String getEndpointsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEndpoints().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEndpoints().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
      * URIs.
      * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - - public java.lang.String getEndpointsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEndpoints().getMap(); + public java.lang.String getEndpointsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEndpoints().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -756,84 +799,86 @@ public java.lang.String getEndpointsOrThrow( } public Builder clearEndpoints() { - internalGetMutableEndpoints().getMutableMap() - .clear(); + internalGetMutableEndpoints().getMutableMap().clear(); return this; } /** + * + * *
      * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
      * URIs.
      * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - public Builder removeEndpoints( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableEndpoints().getMutableMap() - .remove(key); + public Builder removeEndpoints(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableEndpoints().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableEndpoints() { + public java.util.Map getMutableEndpoints() { return internalGetMutableEndpoints().getMutableMap(); } /** + * + * *
      * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
      * URIs.
      * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putEndpoints( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putEndpoints(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"); + } - internalGetMutableEndpoints().getMutableMap() - .put(key, value); + internalGetMutableEndpoints().getMutableMap().put(key, value); return this; } /** + * + * *
      * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
      * URIs.
      * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - public Builder putAllEndpoints( - java.util.Map values) { - internalGetMutableEndpoints().getMutableMap() - .putAll(values); + public Builder putAllEndpoints(java.util.Map values) { + internalGetMutableEndpoints().getMutableMap().putAll(values); return this; } private java.lang.Object outputUri_ = ""; /** + * + * *
      * Output only. A URI pointing to the location of the stdout and stderr of the workload.
      * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The outputUri. */ public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUri_ = s; return s; @@ -842,20 +887,21 @@ public java.lang.String getOutputUri() { } } /** + * + * *
      * Output only. A URI pointing to the location of the stdout and stderr of the workload.
      * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for outputUri. */ - public com.google.protobuf.ByteString - getOutputUriBytes() { + public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUri_ = b; return b; } else { @@ -863,54 +909,61 @@ public java.lang.String getOutputUri() { } } /** + * + * *
      * Output only. A URI pointing to the location of the stdout and stderr of the workload.
      * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The outputUri to set. * @return This builder for chaining. */ - public Builder setOutputUri( - java.lang.String value) { + public Builder setOutputUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A URI pointing to the location of the stdout and stderr of the workload.
      * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearOutputUri() { - + outputUri_ = getDefaultInstance().getOutputUri(); onChanged(); return this; } /** + * + * *
      * Output only. A URI pointing to the location of the stdout and stderr of the workload.
      * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for outputUri to set. * @return This builder for chaining. */ - public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { + public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUri_ = value; onChanged(); return this; @@ -918,18 +971,20 @@ public Builder setOutputUriBytes( private java.lang.Object diagnosticOutputUri_ = ""; /** + * + * *
      * Output only. A URI pointing to the location of the diagnostics tarball.
      * 
* * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The diagnosticOutputUri. */ public java.lang.String getDiagnosticOutputUri() { java.lang.Object ref = diagnosticOutputUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diagnosticOutputUri_ = s; return s; @@ -938,20 +993,21 @@ public java.lang.String getDiagnosticOutputUri() { } } /** + * + * *
      * Output only. A URI pointing to the location of the diagnostics tarball.
      * 
* * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for diagnosticOutputUri. */ - public com.google.protobuf.ByteString - getDiagnosticOutputUriBytes() { + public com.google.protobuf.ByteString getDiagnosticOutputUriBytes() { java.lang.Object ref = diagnosticOutputUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); diagnosticOutputUri_ = b; return b; } else { @@ -959,61 +1015,68 @@ public java.lang.String getDiagnosticOutputUri() { } } /** + * + * *
      * Output only. A URI pointing to the location of the diagnostics tarball.
      * 
* * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The diagnosticOutputUri to set. * @return This builder for chaining. */ - public Builder setDiagnosticOutputUri( - java.lang.String value) { + public Builder setDiagnosticOutputUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + diagnosticOutputUri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A URI pointing to the location of the diagnostics tarball.
      * 
* * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDiagnosticOutputUri() { - + diagnosticOutputUri_ = getDefaultInstance().getDiagnosticOutputUri(); onChanged(); return this; } /** + * + * *
      * Output only. A URI pointing to the location of the diagnostics tarball.
      * 
* * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for diagnosticOutputUri to set. * @return This builder for chaining. */ - public Builder setDiagnosticOutputUriBytes( - com.google.protobuf.ByteString value) { + public Builder setDiagnosticOutputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + diagnosticOutputUri_ = 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 +1086,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.RuntimeInfo) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.RuntimeInfo) private static final com.google.cloud.dataproc.v1.RuntimeInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.RuntimeInfo(); } @@ -1037,27 +1100,27 @@ public static com.google.cloud.dataproc.v1.RuntimeInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuntimeInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1072,6 +1135,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.RuntimeInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java similarity index 63% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java index e865844a2c48..9d8377cbc96d 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java @@ -1,110 +1,144 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; -public interface RuntimeInfoOrBuilder extends +public interface RuntimeInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.RuntimeInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
    * URIs.
    * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getEndpointsCount(); /** + * + * *
    * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
    * URIs.
    * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - boolean containsEndpoints( - java.lang.String key); - /** - * Use {@link #getEndpointsMap()} instead. + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ + boolean containsEndpoints(java.lang.String key); + /** Use {@link #getEndpointsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getEndpoints(); + java.util.Map getEndpoints(); /** + * + * *
    * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
    * URIs.
    * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.Map - getEndpointsMap(); + java.util.Map getEndpointsMap(); /** + * + * *
    * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
    * URIs.
    * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ /* nullable */ -java.lang.String getEndpointsOrDefault( + java.lang.String getEndpointsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
    * URIs.
    * 
* - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - java.lang.String getEndpointsOrThrow( - java.lang.String key); + java.lang.String getEndpointsOrThrow(java.lang.String key); /** + * + * *
    * Output only. A URI pointing to the location of the stdout and stderr of the workload.
    * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The outputUri. */ java.lang.String getOutputUri(); /** + * + * *
    * Output only. A URI pointing to the location of the stdout and stderr of the workload.
    * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for outputUri. */ - com.google.protobuf.ByteString - getOutputUriBytes(); + com.google.protobuf.ByteString getOutputUriBytes(); /** + * + * *
    * Output only. A URI pointing to the location of the diagnostics tarball.
    * 
* * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The diagnosticOutputUri. */ java.lang.String getDiagnosticOutputUri(); /** + * + * *
    * Output only. A URI pointing to the location of the diagnostics tarball.
    * 
* * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for diagnosticOutputUri. */ - com.google.protobuf.ByteString - getDiagnosticOutputUriBytes(); + com.google.protobuf.ByteString getDiagnosticOutputUriBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java similarity index 61% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java index 032450cf6a02..63b52a4890aa 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java @@ -1,60 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Security related configuration, including encryption, Kerberos, etc.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.SecurityConfig} */ -public final class SecurityConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SecurityConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SecurityConfig) SecurityConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SecurityConfig.newBuilder() to construct. private SecurityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SecurityConfig() { - } + + private SecurityConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SecurityConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SecurityConfig.class, com.google.cloud.dataproc.v1.SecurityConfig.Builder.class); + com.google.cloud.dataproc.v1.SecurityConfig.class, + com.google.cloud.dataproc.v1.SecurityConfig.Builder.class); } public static final int KERBEROS_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.dataproc.v1.KerberosConfig kerberosConfig_; /** + * + * *
    * Optional. Kerberos related configuration.
    * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the kerberosConfig field is set. */ @java.lang.Override @@ -62,23 +85,34 @@ public boolean hasKerberosConfig() { return kerberosConfig_ != null; } /** + * + * *
    * Optional. Kerberos related configuration.
    * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The kerberosConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.KerberosConfig getKerberosConfig() { - return kerberosConfig_ == null ? com.google.cloud.dataproc.v1.KerberosConfig.getDefaultInstance() : kerberosConfig_; + return kerberosConfig_ == null + ? com.google.cloud.dataproc.v1.KerberosConfig.getDefaultInstance() + : kerberosConfig_; } /** + * + * *
    * Optional. Kerberos related configuration.
    * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.KerberosConfigOrBuilder getKerberosConfigOrBuilder() { @@ -88,12 +122,17 @@ public com.google.cloud.dataproc.v1.KerberosConfigOrBuilder getKerberosConfigOrB public static final int IDENTITY_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.IdentityConfig identityConfig_; /** + * + * *
    * Optional. Identity related configuration, including service account based
    * secure multi-tenancy user mappings.
    * 
* - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the identityConfig field is set. */ @java.lang.Override @@ -101,25 +140,36 @@ public boolean hasIdentityConfig() { return identityConfig_ != null; } /** + * + * *
    * Optional. Identity related configuration, including service account based
    * secure multi-tenancy user mappings.
    * 
* - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The identityConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.IdentityConfig getIdentityConfig() { - return identityConfig_ == null ? com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance() : identityConfig_; + return identityConfig_ == null + ? com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance() + : identityConfig_; } /** + * + * *
    * Optional. Identity related configuration, including service account based
    * secure multi-tenancy user mappings.
    * 
* - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.IdentityConfigOrBuilder getIdentityConfigOrBuilder() { @@ -127,6 +177,7 @@ public com.google.cloud.dataproc.v1.IdentityConfigOrBuilder getIdentityConfigOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +189,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (kerberosConfig_ != null) { output.writeMessage(1, getKerberosConfig()); } @@ -156,12 +206,10 @@ public int getSerializedSize() { size = 0; if (kerberosConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getKerberosConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKerberosConfig()); } if (identityConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getIdentityConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIdentityConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -171,22 +219,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.dataproc.v1.SecurityConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.SecurityConfig other = (com.google.cloud.dataproc.v1.SecurityConfig) obj; + com.google.cloud.dataproc.v1.SecurityConfig other = + (com.google.cloud.dataproc.v1.SecurityConfig) obj; if (hasKerberosConfig() != other.hasKerberosConfig()) return false; if (hasKerberosConfig()) { - if (!getKerberosConfig() - .equals(other.getKerberosConfig())) return false; + if (!getKerberosConfig().equals(other.getKerberosConfig())) return false; } if (hasIdentityConfig() != other.hasIdentityConfig()) return false; if (hasIdentityConfig()) { - if (!getIdentityConfig() - .equals(other.getIdentityConfig())) return false; + if (!getIdentityConfig().equals(other.getIdentityConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -212,130 +259,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SecurityConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.SecurityConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SecurityConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.SecurityConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Security related configuration, including encryption, Kerberos, etc.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.SecurityConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SecurityConfig) com.google.cloud.dataproc.v1.SecurityConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SecurityConfig.class, com.google.cloud.dataproc.v1.SecurityConfig.Builder.class); + com.google.cloud.dataproc.v1.SecurityConfig.class, + com.google.cloud.dataproc.v1.SecurityConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.SecurityConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +408,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; } @java.lang.Override @@ -376,7 +429,8 @@ public com.google.cloud.dataproc.v1.SecurityConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.SecurityConfig buildPartial() { - com.google.cloud.dataproc.v1.SecurityConfig result = new com.google.cloud.dataproc.v1.SecurityConfig(this); + com.google.cloud.dataproc.v1.SecurityConfig result = + new com.google.cloud.dataproc.v1.SecurityConfig(this); if (kerberosConfigBuilder_ == null) { result.kerberosConfig_ = kerberosConfig_; } else { @@ -395,38 +449,39 @@ public com.google.cloud.dataproc.v1.SecurityConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.SecurityConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.SecurityConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.SecurityConfig) other); } else { super.mergeFrom(other); return this; @@ -467,26 +522,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getKerberosConfigFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getKerberosConfigFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - input.readMessage( - getIdentityConfigFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getIdentityConfigFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -499,39 +553,58 @@ public Builder mergeFrom( private com.google.cloud.dataproc.v1.KerberosConfig kerberosConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KerberosConfig, com.google.cloud.dataproc.v1.KerberosConfig.Builder, com.google.cloud.dataproc.v1.KerberosConfigOrBuilder> kerberosConfigBuilder_; + com.google.cloud.dataproc.v1.KerberosConfig, + com.google.cloud.dataproc.v1.KerberosConfig.Builder, + com.google.cloud.dataproc.v1.KerberosConfigOrBuilder> + kerberosConfigBuilder_; /** + * + * *
      * Optional. Kerberos related configuration.
      * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the kerberosConfig field is set. */ public boolean hasKerberosConfig() { return kerberosConfigBuilder_ != null || kerberosConfig_ != null; } /** + * + * *
      * Optional. Kerberos related configuration.
      * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The kerberosConfig. */ public com.google.cloud.dataproc.v1.KerberosConfig getKerberosConfig() { if (kerberosConfigBuilder_ == null) { - return kerberosConfig_ == null ? com.google.cloud.dataproc.v1.KerberosConfig.getDefaultInstance() : kerberosConfig_; + return kerberosConfig_ == null + ? com.google.cloud.dataproc.v1.KerberosConfig.getDefaultInstance() + : kerberosConfig_; } else { return kerberosConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Kerberos related configuration.
      * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setKerberosConfig(com.google.cloud.dataproc.v1.KerberosConfig value) { if (kerberosConfigBuilder_ == null) { @@ -547,11 +620,15 @@ public Builder setKerberosConfig(com.google.cloud.dataproc.v1.KerberosConfig val return this; } /** + * + * *
      * Optional. Kerberos related configuration.
      * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setKerberosConfig( com.google.cloud.dataproc.v1.KerberosConfig.Builder builderForValue) { @@ -565,17 +642,23 @@ public Builder setKerberosConfig( return this; } /** + * + * *
      * Optional. Kerberos related configuration.
      * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeKerberosConfig(com.google.cloud.dataproc.v1.KerberosConfig value) { if (kerberosConfigBuilder_ == null) { if (kerberosConfig_ != null) { kerberosConfig_ = - com.google.cloud.dataproc.v1.KerberosConfig.newBuilder(kerberosConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.KerberosConfig.newBuilder(kerberosConfig_) + .mergeFrom(value) + .buildPartial(); } else { kerberosConfig_ = value; } @@ -587,11 +670,15 @@ public Builder mergeKerberosConfig(com.google.cloud.dataproc.v1.KerberosConfig v return this; } /** + * + * *
      * Optional. Kerberos related configuration.
      * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearKerberosConfig() { if (kerberosConfigBuilder_ == null) { @@ -605,48 +692,64 @@ public Builder clearKerberosConfig() { return this; } /** + * + * *
      * Optional. Kerberos related configuration.
      * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.KerberosConfig.Builder getKerberosConfigBuilder() { - + onChanged(); return getKerberosConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Kerberos related configuration.
      * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.KerberosConfigOrBuilder getKerberosConfigOrBuilder() { if (kerberosConfigBuilder_ != null) { return kerberosConfigBuilder_.getMessageOrBuilder(); } else { - return kerberosConfig_ == null ? - com.google.cloud.dataproc.v1.KerberosConfig.getDefaultInstance() : kerberosConfig_; + return kerberosConfig_ == null + ? com.google.cloud.dataproc.v1.KerberosConfig.getDefaultInstance() + : kerberosConfig_; } } /** + * + * *
      * Optional. Kerberos related configuration.
      * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KerberosConfig, com.google.cloud.dataproc.v1.KerberosConfig.Builder, com.google.cloud.dataproc.v1.KerberosConfigOrBuilder> + com.google.cloud.dataproc.v1.KerberosConfig, + com.google.cloud.dataproc.v1.KerberosConfig.Builder, + com.google.cloud.dataproc.v1.KerberosConfigOrBuilder> getKerberosConfigFieldBuilder() { if (kerberosConfigBuilder_ == null) { - kerberosConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KerberosConfig, com.google.cloud.dataproc.v1.KerberosConfig.Builder, com.google.cloud.dataproc.v1.KerberosConfigOrBuilder>( - getKerberosConfig(), - getParentForChildren(), - isClean()); + kerberosConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.KerberosConfig, + com.google.cloud.dataproc.v1.KerberosConfig.Builder, + com.google.cloud.dataproc.v1.KerberosConfigOrBuilder>( + getKerberosConfig(), getParentForChildren(), isClean()); kerberosConfig_ = null; } return kerberosConfigBuilder_; @@ -654,42 +757,61 @@ public com.google.cloud.dataproc.v1.KerberosConfigOrBuilder getKerberosConfigOrB private com.google.cloud.dataproc.v1.IdentityConfig identityConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.IdentityConfig, com.google.cloud.dataproc.v1.IdentityConfig.Builder, com.google.cloud.dataproc.v1.IdentityConfigOrBuilder> identityConfigBuilder_; + com.google.cloud.dataproc.v1.IdentityConfig, + com.google.cloud.dataproc.v1.IdentityConfig.Builder, + com.google.cloud.dataproc.v1.IdentityConfigOrBuilder> + identityConfigBuilder_; /** + * + * *
      * Optional. Identity related configuration, including service account based
      * secure multi-tenancy user mappings.
      * 
* - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the identityConfig field is set. */ public boolean hasIdentityConfig() { return identityConfigBuilder_ != null || identityConfig_ != null; } /** + * + * *
      * Optional. Identity related configuration, including service account based
      * secure multi-tenancy user mappings.
      * 
* - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The identityConfig. */ public com.google.cloud.dataproc.v1.IdentityConfig getIdentityConfig() { if (identityConfigBuilder_ == null) { - return identityConfig_ == null ? com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance() : identityConfig_; + return identityConfig_ == null + ? com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance() + : identityConfig_; } else { return identityConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Identity related configuration, including service account based
      * secure multi-tenancy user mappings.
      * 
* - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setIdentityConfig(com.google.cloud.dataproc.v1.IdentityConfig value) { if (identityConfigBuilder_ == null) { @@ -705,12 +827,16 @@ public Builder setIdentityConfig(com.google.cloud.dataproc.v1.IdentityConfig val return this; } /** + * + * *
      * Optional. Identity related configuration, including service account based
      * secure multi-tenancy user mappings.
      * 
* - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setIdentityConfig( com.google.cloud.dataproc.v1.IdentityConfig.Builder builderForValue) { @@ -724,18 +850,24 @@ public Builder setIdentityConfig( return this; } /** + * + * *
      * Optional. Identity related configuration, including service account based
      * secure multi-tenancy user mappings.
      * 
* - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeIdentityConfig(com.google.cloud.dataproc.v1.IdentityConfig value) { if (identityConfigBuilder_ == null) { if (identityConfig_ != null) { identityConfig_ = - com.google.cloud.dataproc.v1.IdentityConfig.newBuilder(identityConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.IdentityConfig.newBuilder(identityConfig_) + .mergeFrom(value) + .buildPartial(); } else { identityConfig_ = value; } @@ -747,12 +879,16 @@ public Builder mergeIdentityConfig(com.google.cloud.dataproc.v1.IdentityConfig v return this; } /** + * + * *
      * Optional. Identity related configuration, including service account based
      * secure multi-tenancy user mappings.
      * 
* - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearIdentityConfig() { if (identityConfigBuilder_ == null) { @@ -766,58 +902,74 @@ public Builder clearIdentityConfig() { return this; } /** + * + * *
      * Optional. Identity related configuration, including service account based
      * secure multi-tenancy user mappings.
      * 
* - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.IdentityConfig.Builder getIdentityConfigBuilder() { - + onChanged(); return getIdentityConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Identity related configuration, including service account based
      * secure multi-tenancy user mappings.
      * 
* - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.IdentityConfigOrBuilder getIdentityConfigOrBuilder() { if (identityConfigBuilder_ != null) { return identityConfigBuilder_.getMessageOrBuilder(); } else { - return identityConfig_ == null ? - com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance() : identityConfig_; + return identityConfig_ == null + ? com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance() + : identityConfig_; } } /** + * + * *
      * Optional. Identity related configuration, including service account based
      * secure multi-tenancy user mappings.
      * 
* - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.IdentityConfig, com.google.cloud.dataproc.v1.IdentityConfig.Builder, com.google.cloud.dataproc.v1.IdentityConfigOrBuilder> + com.google.cloud.dataproc.v1.IdentityConfig, + com.google.cloud.dataproc.v1.IdentityConfig.Builder, + com.google.cloud.dataproc.v1.IdentityConfigOrBuilder> getIdentityConfigFieldBuilder() { if (identityConfigBuilder_ == null) { - identityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.IdentityConfig, com.google.cloud.dataproc.v1.IdentityConfig.Builder, com.google.cloud.dataproc.v1.IdentityConfigOrBuilder>( - getIdentityConfig(), - getParentForChildren(), - isClean()); + identityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.IdentityConfig, + com.google.cloud.dataproc.v1.IdentityConfig.Builder, + com.google.cloud.dataproc.v1.IdentityConfigOrBuilder>( + getIdentityConfig(), getParentForChildren(), isClean()); identityConfig_ = null; } return identityConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -827,12 +979,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SecurityConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SecurityConfig) private static final com.google.cloud.dataproc.v1.SecurityConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SecurityConfig(); } @@ -841,27 +993,27 @@ public static com.google.cloud.dataproc.v1.SecurityConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -876,6 +1028,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SecurityConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java similarity index 50% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java index 2b56c9ca829d..15cabbf99fe9 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java @@ -1,66 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface SecurityConfigOrBuilder extends +public interface SecurityConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SecurityConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Kerberos related configuration.
    * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the kerberosConfig field is set. */ boolean hasKerberosConfig(); /** + * + * *
    * Optional. Kerberos related configuration.
    * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The kerberosConfig. */ com.google.cloud.dataproc.v1.KerberosConfig getKerberosConfig(); /** + * + * *
    * Optional. Kerberos related configuration.
    * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.KerberosConfigOrBuilder getKerberosConfigOrBuilder(); /** + * + * *
    * Optional. Identity related configuration, including service account based
    * secure multi-tenancy user mappings.
    * 
* - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the identityConfig field is set. */ boolean hasIdentityConfig(); /** + * + * *
    * Optional. Identity related configuration, including service account based
    * secure multi-tenancy user mappings.
    * 
* - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The identityConfig. */ com.google.cloud.dataproc.v1.IdentityConfig getIdentityConfig(); /** + * + * *
    * Optional. Identity related configuration, including service account based
    * secure multi-tenancy user mappings.
    * 
* - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.IdentityConfigOrBuilder getIdentityConfigOrBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java new file mode 100644 index 000000000000..d1d12ca9472c --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java @@ -0,0 +1,358 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +public final class SharedProto { + private SharedProto() {} + + 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_dataproc_v1_RuntimeConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_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/dataproc/v1/shared.proto\022" + + "\030google.cloud.dataproc.v1\032\037google/api/fi" + + "eld_behavior.proto\"\310\001\n\rRuntimeConfig\022\024\n\007" + + "version\030\001 \001(\tB\003\340A\001\022\034\n\017container_image\030\002 " + + "\001(\tB\003\340A\001\022P\n\nproperties\030\003 \003(\01327.google.cl" + + "oud.dataproc.v1.RuntimeConfig.Properties" + + "EntryB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\253\001\n\021EnvironmentCon" + + "fig\022H\n\020execution_config\030\001 \001(\0132).google.c" + + "loud.dataproc.v1.ExecutionConfigB\003\340A\001\022L\n" + + "\022peripherals_config\030\002 \001(\0132+.google.cloud" + + ".dataproc.v1.PeripheralsConfigB\003\340A\001\"\246\001\n\017" + + "ExecutionConfig\022\034\n\017service_account\030\002 \001(\t" + + "B\003\340A\001\022\032\n\013network_uri\030\004 \001(\tB\003\340A\001H\000\022\035\n\016sub" + + "network_uri\030\005 \001(\tB\003\340A\001H\000\022\031\n\014network_tags" + + "\030\006 \003(\tB\003\340A\001\022\024\n\007kms_key\030\007 \001(\tB\003\340A\001B\t\n\007net" + + "work\"9\n\030SparkHistoryServerConfig\022\035\n\020data" + + "proc_cluster\030\001 \001(\tB\003\340A\001\"\221\001\n\021PeripheralsC" + + "onfig\022\036\n\021metastore_service\030\001 \001(\tB\003\340A\001\022\\\n" + + "\033spark_history_server_config\030\002 \001(\01322.goo" + + "gle.cloud.dataproc.v1.SparkHistoryServer" + + "ConfigB\003\340A\001\"\312\001\n\013RuntimeInfo\022L\n\tendpoints" + + "\030\001 \003(\01324.google.cloud.dataproc.v1.Runtim" + + "eInfo.EndpointsEntryB\003\340A\003\022\027\n\noutput_uri\030" + + "\002 \001(\tB\003\340A\003\022\"\n\025diagnostic_output_uri\030\003 \001(" + + "\tB\003\340A\003\0320\n\016EndpointsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\177\n\020GkeClusterConfig\022\037\n\022" + + "gke_cluster_target\030\002 \001(\tB\003\340A\001\022J\n\020node_po" + + "ol_target\030\003 \003(\0132+.google.cloud.dataproc." + + "v1.GkeNodePoolTargetB\003\340A\001\"\362\001\n\027Kubernetes" + + "ClusterConfig\022!\n\024kubernetes_namespace\030\001 " + + "\001(\tB\003\340A\001\022M\n\022gke_cluster_config\030\002 \001(\0132*.g" + + "oogle.cloud.dataproc.v1.GkeClusterConfig" + + "B\003\340A\002H\000\022[\n\032kubernetes_software_config\030\003 " + + "\001(\01322.google.cloud.dataproc.v1.Kubernete" + + "sSoftwareConfigB\003\340A\001B\010\n\006config\"\303\002\n\030Kuber" + + "netesSoftwareConfig\022c\n\021component_version" + + "\030\001 \003(\0132H.google.cloud.dataproc.v1.Kubern" + + "etesSoftwareConfig.ComponentVersionEntry" + + "\022V\n\nproperties\030\002 \003(\0132B.google.cloud.data" + + "proc.v1.KubernetesSoftwareConfig.Propert" + + "iesEntry\0327\n\025ComponentVersionEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017PropertiesE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\236\002\n" + + "\021GkeNodePoolTarget\022\026\n\tnode_pool\030\001 \001(\tB\003\340" + + "A\002\022D\n\005roles\030\002 \003(\01620.google.cloud.datapro" + + "c.v1.GkeNodePoolTarget.RoleB\003\340A\002\022J\n\020node" + + "_pool_config\030\003 \001(\0132+.google.cloud.datapr" + + "oc.v1.GkeNodePoolConfigB\003\340A\001\"_\n\004Role\022\024\n\020" + + "ROLE_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\016\n\nCONTR" + + "OLLER\020\002\022\020\n\014SPARK_DRIVER\020\003\022\022\n\016SPARK_EXECU" + + "TOR\020\004\"\355\004\n\021GkeNodePoolConfig\022N\n\006config\030\002 " + + "\001(\01329.google.cloud.dataproc.v1.GkeNodePo" + + "olConfig.GkeNodeConfigB\003\340A\001\022\026\n\tlocations" + + "\030\r \003(\tB\003\340A\001\022b\n\013autoscaling\030\004 \001(\0132H.googl" + + "e.cloud.dataproc.v1.GkeNodePoolConfig.Gk" + + "eNodePoolAutoscalingConfigB\003\340A\001\032\346\001\n\rGkeN" + + "odeConfig\022\031\n\014machine_type\030\001 \001(\tB\003\340A\001\022\030\n\013" + + "preemptible\030\n \001(\010B\003\340A\001\022\034\n\017local_ssd_coun" + + "t\030\007 \001(\005B\003\340A\001\022c\n\014accelerators\030\013 \003(\0132H.goo" + + "gle.cloud.dataproc.v1.GkeNodePoolConfig." + + "GkeNodePoolAcceleratorConfigB\003\340A\001\022\035\n\020min" + + "_cpu_platform\030\r \001(\tB\003\340A\001\032S\n\034GkeNodePoolA" + + "cceleratorConfig\022\031\n\021accelerator_count\030\001 " + + "\001(\003\022\030\n\020accelerator_type\030\002 \001(\t\032N\n\034GkeNode" + + "PoolAutoscalingConfig\022\026\n\016min_node_count\030" + + "\002 \001(\005\022\026\n\016max_node_count\030\003 \001(\005*\277\001\n\tCompon" + + "ent\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\014\n\010ANACON" + + "DA\020\005\022\n\n\006DOCKER\020\r\022\t\n\005DRUID\020\t\022\t\n\005FLINK\020\016\022\t" + + "\n\005HBASE\020\013\022\020\n\014HIVE_WEBHCAT\020\003\022\013\n\007JUPYTER\020\001" + + "\022\n\n\006PRESTO\020\006\022\n\n\006RANGER\020\014\022\010\n\004SOLR\020\n\022\014\n\010ZE" + + "PPELIN\020\004\022\r\n\tZOOKEEPER\020\010*J\n\rFailureAction" + + "\022\036\n\032FAILURE_ACTION_UNSPECIFIED\020\000\022\r\n\tNO_A" + + "CTION\020\001\022\n\n\006DELETE\020\002Bo\n\034com.google.cloud." + + "dataproc.v1B\013SharedProtoP\001Z@google.golan" + + "g.org/genproto/googleapis/cloud/dataproc" + + "/v1;dataprocb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor, + new java.lang.String[] { + "Version", "ContainerImage", "Properties", + }); + internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor, + new java.lang.String[] { + "ExecutionConfig", "PeripheralsConfig", + }); + internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor, + new java.lang.String[] { + "ServiceAccount", "NetworkUri", "SubnetworkUri", "NetworkTags", "KmsKey", "Network", + }); + internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor, + new java.lang.String[] { + "DataprocCluster", + }); + internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor, + new java.lang.String[] { + "MetastoreService", "SparkHistoryServerConfig", + }); + internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor, + new java.lang.String[] { + "Endpoints", "OutputUri", "DiagnosticOutputUri", + }); + internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor, + new java.lang.String[] { + "GkeClusterTarget", "NodePoolTarget", + }); + internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor, + new java.lang.String[] { + "KubernetesNamespace", "GkeClusterConfig", "KubernetesSoftwareConfig", "Config", + }); + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor, + new java.lang.String[] { + "ComponentVersion", "Properties", + }); + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor = + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor, + new java.lang.String[] { + "NodePool", "Roles", "NodePoolConfig", + }); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor, + new java.lang.String[] { + "Config", "Locations", "Autoscaling", + }); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor = + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor, + new java.lang.String[] { + "MachineType", "Preemptible", "LocalSsdCount", "Accelerators", "MinCpuPlatform", + }); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor = + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor, + new java.lang.String[] { + "AcceleratorCount", "AcceleratorType", + }); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor = + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor, + new java.lang.String[] { + "MinNodeCount", "MaxNodeCount", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java similarity index 68% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java index 10379c9be0eb..dc124d9710ff 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Shielded Instance Config for clusters using [Compute Engine Shielded
  * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
@@ -11,51 +28,55 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.ShieldedInstanceConfig}
  */
-public final class ShieldedInstanceConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ShieldedInstanceConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ShieldedInstanceConfig)
     ShieldedInstanceConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ShieldedInstanceConfig.newBuilder() to construct.
   private ShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ShieldedInstanceConfig() {
-  }
+
+  private ShieldedInstanceConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ShieldedInstanceConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.ShieldedInstanceConfig.class, com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder.class);
+            com.google.cloud.dataproc.v1.ShieldedInstanceConfig.class,
+            com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder.class);
   }
 
   public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1;
   private boolean enableSecureBoot_;
   /**
+   *
+   *
    * 
    * Optional. Defines whether instances have Secure Boot enabled.
    * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableSecureBoot. */ @java.lang.Override @@ -66,11 +87,14 @@ public boolean getEnableSecureBoot() { public static final int ENABLE_VTPM_FIELD_NUMBER = 2; private boolean enableVtpm_; /** + * + * *
    * Optional. Defines whether instances have the vTPM enabled.
    * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableVtpm. */ @java.lang.Override @@ -81,11 +105,14 @@ public boolean getEnableVtpm() { public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 3; private boolean enableIntegrityMonitoring_; /** + * + * *
    * Optional. Defines whether instances have integrity monitoring enabled.
    * 
* * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -94,6 +121,7 @@ public boolean getEnableIntegrityMonitoring() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -105,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enableSecureBoot_ != false) { output.writeBool(1, enableSecureBoot_); } @@ -126,16 +153,13 @@ public int getSerializedSize() { size = 0; if (enableSecureBoot_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableSecureBoot_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSecureBoot_); } if (enableVtpm_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enableVtpm_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableVtpm_); } if (enableIntegrityMonitoring_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, enableIntegrityMonitoring_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableIntegrityMonitoring_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -145,19 +169,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.ShieldedInstanceConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ShieldedInstanceConfig other = (com.google.cloud.dataproc.v1.ShieldedInstanceConfig) obj; + com.google.cloud.dataproc.v1.ShieldedInstanceConfig other = + (com.google.cloud.dataproc.v1.ShieldedInstanceConfig) obj; - if (getEnableSecureBoot() - != other.getEnableSecureBoot()) return false; - if (getEnableVtpm() - != other.getEnableVtpm()) return false; - if (getEnableIntegrityMonitoring() - != other.getEnableIntegrityMonitoring()) return false; + if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; + if (getEnableVtpm() != other.getEnableVtpm()) return false; + if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -170,110 +192,114 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_SECURE_BOOT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSecureBoot()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSecureBoot()); hash = (37 * hash) + ENABLE_VTPM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableVtpm()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableIntegrityMonitoring()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig 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.dataproc.v1.ShieldedInstanceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.ShieldedInstanceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Shielded Instance Config for clusters using [Compute Engine Shielded
    * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
@@ -281,33 +307,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.ShieldedInstanceConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ShieldedInstanceConfig)
       com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.ShieldedInstanceConfig.class, com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder.class);
+              com.google.cloud.dataproc.v1.ShieldedInstanceConfig.class,
+              com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.ShieldedInstanceConfig.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -321,9 +346,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor;
     }
 
     @java.lang.Override
@@ -342,7 +367,8 @@ public com.google.cloud.dataproc.v1.ShieldedInstanceConfig build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.ShieldedInstanceConfig buildPartial() {
-      com.google.cloud.dataproc.v1.ShieldedInstanceConfig result = new com.google.cloud.dataproc.v1.ShieldedInstanceConfig(this);
+      com.google.cloud.dataproc.v1.ShieldedInstanceConfig result =
+          new com.google.cloud.dataproc.v1.ShieldedInstanceConfig(this);
       result.enableSecureBoot_ = enableSecureBoot_;
       result.enableVtpm_ = enableVtpm_;
       result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_;
@@ -354,38 +380,39 @@ public com.google.cloud.dataproc.v1.ShieldedInstanceConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.ShieldedInstanceConfig) {
-        return mergeFrom((com.google.cloud.dataproc.v1.ShieldedInstanceConfig)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.ShieldedInstanceConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -393,7 +420,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.ShieldedInstanceConfig other) {
-      if (other == com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance())
+        return this;
       if (other.getEnableSecureBoot() != false) {
         setEnableSecureBoot(other.getEnableSecureBoot());
       }
@@ -429,27 +457,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              enableSecureBoot_ = input.readBool();
-
-              break;
-            } // case 8
-            case 16: {
-              enableVtpm_ = input.readBool();
-
-              break;
-            } // case 16
-            case 24: {
-              enableIntegrityMonitoring_ = input.readBool();
-
-              break;
-            } // case 24
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                enableSecureBoot_ = input.readBool();
+
+                break;
+              } // case 8
+            case 16:
+              {
+                enableVtpm_ = input.readBool();
+
+                break;
+              } // case 16
+            case 24:
+              {
+                enableIntegrityMonitoring_ = input.readBool();
+
+                break;
+              } // case 24
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -460,13 +492,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private boolean enableSecureBoot_ ;
+    private boolean enableSecureBoot_;
     /**
+     *
+     *
      * 
      * Optional. Defines whether instances have Secure Boot enabled.
      * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableSecureBoot. */ @java.lang.Override @@ -474,42 +509,51 @@ public boolean getEnableSecureBoot() { return enableSecureBoot_; } /** + * + * *
      * Optional. Defines whether instances have Secure Boot enabled.
      * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The enableSecureBoot to set. * @return This builder for chaining. */ public Builder setEnableSecureBoot(boolean value) { - + enableSecureBoot_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Defines whether instances have Secure Boot enabled.
      * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEnableSecureBoot() { - + enableSecureBoot_ = false; onChanged(); return this; } - private boolean enableVtpm_ ; + private boolean enableVtpm_; /** + * + * *
      * Optional. Defines whether instances have the vTPM enabled.
      * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableVtpm. */ @java.lang.Override @@ -517,42 +561,51 @@ public boolean getEnableVtpm() { return enableVtpm_; } /** + * + * *
      * Optional. Defines whether instances have the vTPM enabled.
      * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The enableVtpm to set. * @return This builder for chaining. */ public Builder setEnableVtpm(boolean value) { - + enableVtpm_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Defines whether instances have the vTPM enabled.
      * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEnableVtpm() { - + enableVtpm_ = false; onChanged(); return this; } - private boolean enableIntegrityMonitoring_ ; + private boolean enableIntegrityMonitoring_; /** + * + * *
      * Optional. Defines whether instances have integrity monitoring enabled.
      * 
* * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -560,37 +613,43 @@ public boolean getEnableIntegrityMonitoring() { return enableIntegrityMonitoring_; } /** + * + * *
      * Optional. Defines whether instances have integrity monitoring enabled.
      * 
* * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The enableIntegrityMonitoring to set. * @return This builder for chaining. */ public Builder setEnableIntegrityMonitoring(boolean value) { - + enableIntegrityMonitoring_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Defines whether instances have integrity monitoring enabled.
      * 
* * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEnableIntegrityMonitoring() { - + enableIntegrityMonitoring_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -600,12 +659,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ShieldedInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ShieldedInstanceConfig) private static final com.google.cloud.dataproc.v1.ShieldedInstanceConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ShieldedInstanceConfig(); } @@ -614,27 +673,27 @@ public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShieldedInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShieldedInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,6 +708,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ShieldedInstanceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java similarity index 61% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java index 478e24f93498..26e0a1389fc8 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java @@ -1,38 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface ShieldedInstanceConfigOrBuilder extends +public interface ShieldedInstanceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ShieldedInstanceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Defines whether instances have Secure Boot enabled.
    * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableSecureBoot. */ boolean getEnableSecureBoot(); /** + * + * *
    * Optional. Defines whether instances have the vTPM enabled.
    * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableVtpm. */ boolean getEnableVtpm(); /** + * + * *
    * Optional. Defines whether instances have integrity monitoring enabled.
    * 
* * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableIntegrityMonitoring. */ boolean getEnableIntegrityMonitoring(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java index 5f71f1dc11f3..6441c29ca995 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Specifies the selection and config of software inside the cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.SoftwareConfig} */ -public final class SoftwareConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SoftwareConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SoftwareConfig) SoftwareConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SoftwareConfig.newBuilder() to construct. private SoftwareConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SoftwareConfig() { imageVersion_ = ""; optionalComponents_ = java.util.Collections.emptyList(); @@ -26,44 +44,46 @@ private SoftwareConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SoftwareConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetProperties(); 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.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SoftwareConfig.class, com.google.cloud.dataproc.v1.SoftwareConfig.Builder.class); + com.google.cloud.dataproc.v1.SoftwareConfig.class, + com.google.cloud.dataproc.v1.SoftwareConfig.Builder.class); } public static final int IMAGE_VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object imageVersion_; /** + * + * *
    * Optional. The version of software inside the cluster. It must be one of the
    * supported [Dataproc
@@ -75,6 +95,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The imageVersion. */ @java.lang.Override @@ -83,14 +104,15 @@ public java.lang.String getImageVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageVersion_ = s; return s; } } /** + * + * *
    * Optional. The version of software inside the cluster. It must be one of the
    * supported [Dataproc
@@ -102,16 +124,15 @@ public java.lang.String getImageVersion() {
    * 
* * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for imageVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageVersionBytes() { + public com.google.protobuf.ByteString getImageVersionBytes() { java.lang.Object ref = imageVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imageVersion_ = b; return b; } else { @@ -120,24 +141,23 @@ public java.lang.String getImageVersion() { } public static final int PROPERTIES_FIELD_NUMBER = 2; + private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; - private com.google.protobuf.MapField - internalGetProperties() { + + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -146,6 +166,8 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
    * Optional. The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -164,24 +186,25 @@ public int getPropertiesCount() {
    * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
    * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
    * Optional. The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -200,14 +223,16 @@ public java.util.Map getProperties() {
    * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
    * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
    * Optional. The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -226,19 +251,21 @@ public java.util.Map getPropertiesMap() {
    * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
    * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -257,15 +284,15 @@ public java.lang.String getPropertiesOrDefault(
    * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
    * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -275,34 +302,47 @@ public java.lang.String getPropertiesOrThrow( public static final int OPTIONAL_COMPONENTS_FIELD_NUMBER = 3; private java.util.List optionalComponents_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.dataproc.v1.Component> optionalComponents_converter_ = + java.lang.Integer, com.google.cloud.dataproc.v1.Component> + optionalComponents_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.dataproc.v1.Component>() { public com.google.cloud.dataproc.v1.Component convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.Component result = com.google.cloud.dataproc.v1.Component.valueOf(from); + com.google.cloud.dataproc.v1.Component result = + com.google.cloud.dataproc.v1.Component.valueOf(from); return result == null ? com.google.cloud.dataproc.v1.Component.UNRECOGNIZED : result; } }; /** + * + * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the optionalComponents. */ @java.lang.Override public java.util.List getOptionalComponentsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.dataproc.v1.Component>(optionalComponents_, optionalComponents_converter_); + java.lang.Integer, com.google.cloud.dataproc.v1.Component>( + optionalComponents_, optionalComponents_converter_); } /** + * + * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of optionalComponents. */ @java.lang.Override @@ -310,11 +350,16 @@ public int getOptionalComponentsCount() { return optionalComponents_.size(); } /** + * + * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The optionalComponents at the given index. */ @@ -323,24 +368,33 @@ public com.google.cloud.dataproc.v1.Component getOptionalComponents(int index) { return optionalComponents_converter_.convert(optionalComponents_.get(index)); } /** + * + * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for optionalComponents. */ @java.lang.Override - public java.util.List - getOptionalComponentsValueList() { + public java.util.List getOptionalComponentsValueList() { return optionalComponents_; } /** + * + * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of optionalComponents at the given index. */ @@ -348,9 +402,11 @@ public com.google.cloud.dataproc.v1.Component getOptionalComponents(int index) { public int getOptionalComponentsValue(int index) { return optionalComponents_.get(index); } + private int optionalComponentsMemoizedSerializedSize; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -362,18 +418,13 @@ public final boolean isInitialized() { } @java.lang.Override - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imageVersion_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetProperties(), - PropertiesDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 2); if (getOptionalComponentsList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(optionalComponentsMemoizedSerializedSize); @@ -393,27 +444,28 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, imageVersion_); } - for (java.util.Map.Entry entry - : internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry - properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, properties__); + for (java.util.Map.Entry entry : + internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, properties__); } { int dataSize = 0; for (int i = 0; i < optionalComponents_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(optionalComponents_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(optionalComponents_.get(i)); } size += dataSize; - if (!getOptionalComponentsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }optionalComponentsMemoizedSerializedSize = dataSize; + if (!getOptionalComponentsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + optionalComponentsMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -423,17 +475,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.SoftwareConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.SoftwareConfig other = (com.google.cloud.dataproc.v1.SoftwareConfig) obj; + com.google.cloud.dataproc.v1.SoftwareConfig other = + (com.google.cloud.dataproc.v1.SoftwareConfig) obj; - if (!getImageVersion() - .equals(other.getImageVersion())) return false; - if (!internalGetProperties().equals( - other.internalGetProperties())) return false; + if (!getImageVersion().equals(other.getImageVersion())) return false; + if (!internalGetProperties().equals(other.internalGetProperties())) return false; if (!optionalComponents_.equals(other.optionalComponents_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -461,152 +512,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SoftwareConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.SoftwareConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SoftwareConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.SoftwareConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specifies the selection and config of software inside the cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.SoftwareConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SoftwareConfig) com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetProperties(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableProperties(); 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.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SoftwareConfig.class, com.google.cloud.dataproc.v1.SoftwareConfig.Builder.class); + com.google.cloud.dataproc.v1.SoftwareConfig.class, + com.google.cloud.dataproc.v1.SoftwareConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.SoftwareConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -619,9 +674,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; } @java.lang.Override @@ -640,7 +695,8 @@ public com.google.cloud.dataproc.v1.SoftwareConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.SoftwareConfig buildPartial() { - com.google.cloud.dataproc.v1.SoftwareConfig result = new com.google.cloud.dataproc.v1.SoftwareConfig(this); + com.google.cloud.dataproc.v1.SoftwareConfig result = + new com.google.cloud.dataproc.v1.SoftwareConfig(this); int from_bitField0_ = bitField0_; result.imageVersion_ = imageVersion_; result.properties_ = internalGetProperties(); @@ -658,38 +714,39 @@ public com.google.cloud.dataproc.v1.SoftwareConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.SoftwareConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.SoftwareConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.SoftwareConfig) other); } else { super.mergeFrom(other); return this; @@ -702,8 +759,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SoftwareConfig other) { imageVersion_ = other.imageVersion_; onChanged(); } - internalGetMutableProperties().mergeFrom( - other.internalGetProperties()); + internalGetMutableProperties().mergeFrom(other.internalGetProperties()); if (!other.optionalComponents_.isEmpty()) { if (optionalComponents_.isEmpty()) { optionalComponents_ = other.optionalComponents_; @@ -740,42 +796,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - imageVersion_ = input.readStringRequireUtf8(); + case 10: + { + imageVersion_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - com.google.protobuf.MapEntry - properties__ = input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableProperties().getMutableMap().put( - properties__.getKey(), properties__.getValue()); - break; - } // case 18 - case 24: { - int tmpRaw = input.readEnum(); - ensureOptionalComponentsIsMutable(); - optionalComponents_.add(tmpRaw); - break; - } // case 24 - case 26: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties() + .getMutableMap() + .put(properties__.getKey(), properties__.getValue()); + break; + } // case 18 + case 24: + { int tmpRaw = input.readEnum(); ensureOptionalComponentsIsMutable(); optionalComponents_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 24 + case 26: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureOptionalComponentsIsMutable(); + optionalComponents_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -785,10 +848,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object imageVersion_ = ""; /** + * + * *
      * Optional. The version of software inside the cluster. It must be one of the
      * supported [Dataproc
@@ -800,13 +866,13 @@ public Builder mergeFrom(
      * 
* * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The imageVersion. */ public java.lang.String getImageVersion() { java.lang.Object ref = imageVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageVersion_ = s; return s; @@ -815,6 +881,8 @@ public java.lang.String getImageVersion() { } } /** + * + * *
      * Optional. The version of software inside the cluster. It must be one of the
      * supported [Dataproc
@@ -826,15 +894,14 @@ public java.lang.String getImageVersion() {
      * 
* * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for imageVersion. */ - public com.google.protobuf.ByteString - getImageVersionBytes() { + public com.google.protobuf.ByteString getImageVersionBytes() { java.lang.Object ref = imageVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imageVersion_ = b; return b; } else { @@ -842,6 +909,8 @@ public java.lang.String getImageVersion() { } } /** + * + * *
      * Optional. The version of software inside the cluster. It must be one of the
      * supported [Dataproc
@@ -853,20 +922,22 @@ public java.lang.String getImageVersion() {
      * 
* * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The imageVersion to set. * @return This builder for chaining. */ - public Builder setImageVersion( - java.lang.String value) { + public Builder setImageVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imageVersion_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The version of software inside the cluster. It must be one of the
      * supported [Dataproc
@@ -878,15 +949,18 @@ public Builder setImageVersion(
      * 
* * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearImageVersion() { - + imageVersion_ = getDefaultInstance().getImageVersion(); onChanged(); return this; } /** + * + * *
      * Optional. The version of software inside the cluster. It must be one of the
      * supported [Dataproc
@@ -898,37 +972,39 @@ public Builder clearImageVersion() {
      * 
* * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for imageVersion to set. * @return This builder for chaining. */ - public Builder setImageVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setImageVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageVersion_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField properties_; + private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } + private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged();; + internalGetMutableProperties() { + onChanged(); + ; if (properties_ == null) { - properties_ = com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); + properties_ = + com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -940,6 +1016,8 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
      * Optional. The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -958,24 +1036,25 @@ public int getPropertiesCount() {
      * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
      * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
      * Optional. The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -994,14 +1073,16 @@ public java.util.Map getProperties() {
      * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
      * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
      * Optional. The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1020,19 +1101,21 @@ public java.util.Map getPropertiesMap() {
      * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
      * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1051,15 +1134,15 @@ public java.lang.String getPropertiesOrDefault(
      * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
      * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1067,11 +1150,12 @@ public java.lang.String getPropertiesOrThrow( } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap() - .clear(); + internalGetMutableProperties().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1090,25 +1174,24 @@ public Builder clearProperties() {
      * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
      * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableProperties().getMutableMap() - .remove(key); + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProperties().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableProperties() { + public java.util.Map getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** + * + * *
      * Optional. The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1127,21 +1210,23 @@ public Builder removeProperties(
      * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
      * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putProperties( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putProperties(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"); + } - internalGetMutableProperties().getMutableMap() - .put(key, value); + internalGetMutableProperties().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. The properties to set on daemon config files.
      * Property keys are specified in `prefix:property` format, for example
@@ -1160,18 +1245,17 @@ public Builder putProperties(
      * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
      * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllProperties( - java.util.Map values) { - internalGetMutableProperties().getMutableMap() - .putAll(values); + public Builder putAllProperties(java.util.Map values) { + internalGetMutableProperties().getMutableMap().putAll(values); return this; } private java.util.List optionalComponents_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureOptionalComponentsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { optionalComponents_ = new java.util.ArrayList(optionalComponents_); @@ -1179,34 +1263,50 @@ private void ensureOptionalComponentsIsMutable() { } } /** + * + * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the optionalComponents. */ public java.util.List getOptionalComponentsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.dataproc.v1.Component>(optionalComponents_, optionalComponents_converter_); + java.lang.Integer, com.google.cloud.dataproc.v1.Component>( + optionalComponents_, optionalComponents_converter_); } /** + * + * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of optionalComponents. */ public int getOptionalComponentsCount() { return optionalComponents_.size(); } /** + * + * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The optionalComponents at the given index. */ @@ -1214,17 +1314,21 @@ public com.google.cloud.dataproc.v1.Component getOptionalComponents(int index) { return optionalComponents_converter_.convert(optionalComponents_.get(index)); } /** + * + * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The optionalComponents to set. * @return This builder for chaining. */ - public Builder setOptionalComponents( - int index, com.google.cloud.dataproc.v1.Component value) { + public Builder setOptionalComponents(int index, com.google.cloud.dataproc.v1.Component value) { if (value == null) { throw new NullPointerException(); } @@ -1234,11 +1338,16 @@ public Builder setOptionalComponents( return this; } /** + * + * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The optionalComponents to add. * @return This builder for chaining. */ @@ -1252,11 +1361,16 @@ public Builder addOptionalComponents(com.google.cloud.dataproc.v1.Component valu return this; } /** + * + * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The optionalComponents to add. * @return This builder for chaining. */ @@ -1270,11 +1384,16 @@ public Builder addAllOptionalComponents( return this; } /** + * + * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearOptionalComponents() { @@ -1284,23 +1403,32 @@ public Builder clearOptionalComponents() { return this; } /** + * + * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for optionalComponents. */ - public java.util.List - getOptionalComponentsValueList() { + public java.util.List getOptionalComponentsValueList() { return java.util.Collections.unmodifiableList(optionalComponents_); } /** + * + * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of optionalComponents at the given index. */ @@ -1308,28 +1436,37 @@ public int getOptionalComponentsValue(int index) { return optionalComponents_.get(index); } /** + * + * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for optionalComponents to set. * @return This builder for chaining. */ - public Builder setOptionalComponentsValue( - int index, int value) { + public Builder setOptionalComponentsValue(int index, int value) { ensureOptionalComponentsIsMutable(); optionalComponents_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for optionalComponents to add. * @return This builder for chaining. */ @@ -1340,16 +1477,20 @@ public Builder addOptionalComponentsValue(int value) { return this; } /** + * + * *
      * Optional. The set of components to activate on the cluster.
      * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The enum numeric values on the wire for optionalComponents to add. * @return This builder for chaining. */ - public Builder addAllOptionalComponentsValue( - java.lang.Iterable values) { + public Builder addAllOptionalComponentsValue(java.lang.Iterable values) { ensureOptionalComponentsIsMutable(); for (int value : values) { optionalComponents_.add(value); @@ -1357,9 +1498,9 @@ public Builder addAllOptionalComponentsValue( 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); } @@ -1369,12 +1510,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SoftwareConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SoftwareConfig) private static final com.google.cloud.dataproc.v1.SoftwareConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SoftwareConfig(); } @@ -1383,27 +1524,27 @@ public static com.google.cloud.dataproc.v1.SoftwareConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SoftwareConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SoftwareConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1418,6 +1559,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SoftwareConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java similarity index 75% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java index feab656b0724..f9f2c6d63004 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface SoftwareConfigOrBuilder extends +public interface SoftwareConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SoftwareConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The version of software inside the cluster. It must be one of the
    * supported [Dataproc
@@ -19,10 +37,13 @@ public interface SoftwareConfigOrBuilder extends
    * 
* * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The imageVersion. */ java.lang.String getImageVersion(); /** + * + * *
    * Optional. The version of software inside the cluster. It must be one of the
    * supported [Dataproc
@@ -34,12 +55,14 @@ public interface SoftwareConfigOrBuilder extends
    * 
* * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for imageVersion. */ - com.google.protobuf.ByteString - getImageVersionBytes(); + com.google.protobuf.ByteString getImageVersionBytes(); /** + * + * *
    * Optional. The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -58,10 +81,13 @@ public interface SoftwareConfigOrBuilder extends
    * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
    * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getPropertiesCount(); /** + * + * *
    * Optional. The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -80,17 +106,16 @@ public interface SoftwareConfigOrBuilder extends
    * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
    * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsProperties( - java.lang.String key); - /** - * Use {@link #getPropertiesMap()} instead. + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsProperties(java.lang.String key); + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getProperties(); + java.util.Map getProperties(); /** + * + * *
    * Optional. The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -109,11 +134,13 @@ boolean containsProperties(
    * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
    * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getPropertiesMap(); + java.util.Map getPropertiesMap(); /** + * + * *
    * Optional. The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -132,15 +159,18 @@ boolean containsProperties(
    * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
    * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getPropertiesOrDefault( + java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. The properties to set on daemon config files.
    * Property keys are specified in `prefix:property` format, for example
@@ -159,56 +189,79 @@ java.lang.String getPropertiesOrDefault(
    * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
    * 
* - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - java.lang.String getPropertiesOrThrow( - java.lang.String key); + java.lang.String getPropertiesOrThrow(java.lang.String key); /** + * + * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the optionalComponents. */ java.util.List getOptionalComponentsList(); /** + * + * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of optionalComponents. */ int getOptionalComponentsCount(); /** + * + * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The optionalComponents at the given index. */ com.google.cloud.dataproc.v1.Component getOptionalComponents(int index); /** + * + * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for optionalComponents. */ - java.util.List - getOptionalComponentsValueList(); + java.util.List getOptionalComponentsValueList(); /** + * + * *
    * Optional. The set of components to activate on the cluster.
    * 
* - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of optionalComponents at the given index. */ diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java similarity index 76% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java index 4d4a629e663e..0b801bc0cd95 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A configuration for running an [Apache Spark](http://spark.apache.org/)
  * batch workload.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.SparkBatch}
  */
-public final class SparkBatch extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SparkBatch extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkBatch)
     SparkBatchOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SparkBatch.newBuilder() to construct.
   private SparkBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SparkBatch() {
     args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -29,38 +47,42 @@ private SparkBatch() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SparkBatch();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.BatchesProto
+        .internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.BatchesProto
+        .internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.SparkBatch.class, com.google.cloud.dataproc.v1.SparkBatch.Builder.class);
+            com.google.cloud.dataproc.v1.SparkBatch.class,
+            com.google.cloud.dataproc.v1.SparkBatch.Builder.class);
   }
 
   private int driverCase_ = 0;
   private java.lang.Object driver_;
+
   public enum DriverCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     MAIN_JAR_FILE_URI(1),
     MAIN_CLASS(2),
     DRIVER_NOT_SET(0);
     private final int value;
+
     private DriverCase(int value) {
       this.value = value;
     }
@@ -76,41 +98,50 @@ public static DriverCase valueOf(int value) {
 
     public static DriverCase forNumber(int value) {
       switch (value) {
-        case 1: return MAIN_JAR_FILE_URI;
-        case 2: return MAIN_CLASS;
-        case 0: return DRIVER_NOT_SET;
-        default: return null;
+        case 1:
+          return MAIN_JAR_FILE_URI;
+        case 2:
+          return MAIN_CLASS;
+        case 0:
+          return DRIVER_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DriverCase
-  getDriverCase() {
-    return DriverCase.forNumber(
-        driverCase_);
+  public DriverCase getDriverCase() {
+    return DriverCase.forNumber(driverCase_);
   }
 
   public static final int MAIN_JAR_FILE_URI_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * Optional. The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the mainJarFileUri field is set. */ public boolean hasMainJarFileUri() { return driverCase_ == 1; } /** + * + * *
    * Optional. The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mainJarFileUri. */ public java.lang.String getMainJarFileUri() { @@ -121,8 +152,7 @@ public java.lang.String getMainJarFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (driverCase_ == 1) { driver_ = s; @@ -131,23 +161,24 @@ public java.lang.String getMainJarFileUri() { } } /** + * + * *
    * Optional. The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mainJarFileUri. */ - public com.google.protobuf.ByteString - getMainJarFileUriBytes() { + public com.google.protobuf.ByteString getMainJarFileUriBytes() { java.lang.Object ref = ""; if (driverCase_ == 1) { ref = driver_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (driverCase_ == 1) { driver_ = b; } @@ -159,24 +190,30 @@ public java.lang.String getMainJarFileUri() { public static final int MAIN_CLASS_FIELD_NUMBER = 2; /** + * + * *
    * Optional. The name of the driver main class. The jar file that contains the class
    * must be in the classpath or specified in `jar_file_uris`.
    * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the mainClass field is set. */ public boolean hasMainClass() { return driverCase_ == 2; } /** + * + * *
    * Optional. The name of the driver main class. The jar file that contains the class
    * must be in the classpath or specified in `jar_file_uris`.
    * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mainClass. */ public java.lang.String getMainClass() { @@ -187,8 +224,7 @@ public java.lang.String getMainClass() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (driverCase_ == 2) { driver_ = s; @@ -197,24 +233,25 @@ public java.lang.String getMainClass() { } } /** + * + * *
    * Optional. The name of the driver main class. The jar file that contains the class
    * must be in the classpath or specified in `jar_file_uris`.
    * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mainClass. */ - public com.google.protobuf.ByteString - getMainClassBytes() { + public com.google.protobuf.ByteString getMainClassBytes() { java.lang.Object ref = ""; if (driverCase_ == 2) { ref = driver_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (driverCase_ == 2) { driver_ = b; } @@ -227,6 +264,8 @@ public java.lang.String getMainClass() { public static final int ARGS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList args_; /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -234,13 +273,15 @@ public java.lang.String getMainClass() {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_; } /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -248,12 +289,15 @@ public java.lang.String getMainClass() {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -261,6 +305,7 @@ public int getArgsCount() {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -268,6 +313,8 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -275,48 +322,56 @@ public java.lang.String getArgs(int index) {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList jarFileUris_; /** + * + * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList - getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { return jarFileUris_; } /** + * + * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -324,54 +379,64 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString - getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } public static final int FILE_URIS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList fileUris_; /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList - getFileUrisList() { + public com.google.protobuf.ProtocolStringList getFileUrisList() { return fileUris_; } /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -379,23 +444,27 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString - getFileUrisBytes(int index) { + public com.google.protobuf.ByteString getFileUrisBytes(int index) { return fileUris_.getByteString(index); } public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList archiveUris_; /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -403,13 +472,15 @@ public java.lang.String getFileUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList - getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { return archiveUris_; } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -417,12 +488,15 @@ public java.lang.String getFileUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -430,6 +504,7 @@ public int getArchiveUrisCount() {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -437,6 +512,8 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -444,15 +521,16 @@ public java.lang.String getArchiveUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString - getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -464,8 +542,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (driverCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); } @@ -539,30 +616,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.dataproc.v1.SparkBatch)) { return super.equals(obj); } com.google.cloud.dataproc.v1.SparkBatch other = (com.google.cloud.dataproc.v1.SparkBatch) obj; - if (!getArgsList() - .equals(other.getArgsList())) return false; - if (!getJarFileUrisList() - .equals(other.getJarFileUrisList())) return false; - if (!getFileUrisList() - .equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList() - .equals(other.getArchiveUrisList())) return false; + if (!getArgsList().equals(other.getArgsList())) return false; + if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; + if (!getFileUrisList().equals(other.getFileUrisList())) return false; + if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; if (!getDriverCase().equals(other.getDriverCase())) return false; switch (driverCase_) { case 1: - if (!getMainJarFileUri() - .equals(other.getMainJarFileUri())) return false; + if (!getMainJarFileUri().equals(other.getMainJarFileUri())) return false; break; case 2: - if (!getMainClass() - .equals(other.getMainClass())) return false; + if (!getMainClass().equals(other.getMainClass())) return false; break; case 0: default: @@ -611,97 +682,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.SparkBatch parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkBatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkBatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkBatch parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.SparkBatch parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkBatch parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.SparkBatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 configuration for running an [Apache Spark](http://spark.apache.org/)
    * batch workload.
@@ -709,33 +787,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.SparkBatch}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkBatch)
       com.google.cloud.dataproc.v1.SparkBatchOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.BatchesProto
+          .internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.BatchesProto
+          .internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.SparkBatch.class, com.google.cloud.dataproc.v1.SparkBatch.Builder.class);
+              com.google.cloud.dataproc.v1.SparkBatch.class,
+              com.google.cloud.dataproc.v1.SparkBatch.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.SparkBatch.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -753,9 +830,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.BatchesProto
+          .internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor;
     }
 
     @java.lang.Override
@@ -774,7 +851,8 @@ public com.google.cloud.dataproc.v1.SparkBatch build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.SparkBatch buildPartial() {
-      com.google.cloud.dataproc.v1.SparkBatch result = new com.google.cloud.dataproc.v1.SparkBatch(this);
+      com.google.cloud.dataproc.v1.SparkBatch result =
+          new com.google.cloud.dataproc.v1.SparkBatch(this);
       int from_bitField0_ = bitField0_;
       if (driverCase_ == 1) {
         result.driver_ = driver_;
@@ -811,38 +889,39 @@ public com.google.cloud.dataproc.v1.SparkBatch buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.SparkBatch) {
-        return mergeFrom((com.google.cloud.dataproc.v1.SparkBatch)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.SparkBatch) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -892,21 +971,24 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkBatch other) {
         onChanged();
       }
       switch (other.getDriverCase()) {
-        case MAIN_JAR_FILE_URI: {
-          driverCase_ = 1;
-          driver_ = other.driver_;
-          onChanged();
-          break;
-        }
-        case MAIN_CLASS: {
-          driverCase_ = 2;
-          driver_ = other.driver_;
-          onChanged();
-          break;
-        }
-        case DRIVER_NOT_SET: {
-          break;
-        }
+        case MAIN_JAR_FILE_URI:
+          {
+            driverCase_ = 1;
+            driver_ = other.driver_;
+            onChanged();
+            break;
+          }
+        case MAIN_CLASS:
+          {
+            driverCase_ = 2;
+            driver_ = other.driver_;
+            onChanged();
+            break;
+          }
+        case DRIVER_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -934,48 +1016,55 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              driverCase_ = 1;
-              driver_ = s;
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              driverCase_ = 2;
-              driver_ = s;
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureArgsIsMutable();
-              args_.add(s);
-              break;
-            } // case 26
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureJarFileUrisIsMutable();
-              jarFileUris_.add(s);
-              break;
-            } // case 34
-            case 42: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureFileUrisIsMutable();
-              fileUris_.add(s);
-              break;
-            } // case 42
-            case 50: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureArchiveUrisIsMutable();
-              archiveUris_.add(s);
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                driverCase_ = 1;
+                driver_ = s;
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                driverCase_ = 2;
+                driver_ = s;
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureArgsIsMutable();
+                args_.add(s);
+                break;
+              } // case 26
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureJarFileUrisIsMutable();
+                jarFileUris_.add(s);
+                break;
+              } // case 34
+            case 42:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureFileUrisIsMutable();
+                fileUris_.add(s);
+                break;
+              } // case 42
+            case 50:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureArchiveUrisIsMutable();
+                archiveUris_.add(s);
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -985,12 +1074,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int driverCase_ = 0;
     private java.lang.Object driver_;
-    public DriverCase
-        getDriverCase() {
-      return DriverCase.forNumber(
-          driverCase_);
+
+    public DriverCase getDriverCase() {
+      return DriverCase.forNumber(driverCase_);
     }
 
     public Builder clearDriver() {
@@ -1003,11 +1092,14 @@ public Builder clearDriver() {
     private int bitField0_;
 
     /**
+     *
+     *
      * 
      * Optional. The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the mainJarFileUri field is set. */ @java.lang.Override @@ -1015,11 +1107,14 @@ public boolean hasMainJarFileUri() { return driverCase_ == 1; } /** + * + * *
      * Optional. The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mainJarFileUri. */ @java.lang.Override @@ -1029,8 +1124,7 @@ public java.lang.String getMainJarFileUri() { ref = driver_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (driverCase_ == 1) { driver_ = s; @@ -1041,24 +1135,25 @@ public java.lang.String getMainJarFileUri() { } } /** + * + * *
      * Optional. The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mainJarFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getMainJarFileUriBytes() { + public com.google.protobuf.ByteString getMainJarFileUriBytes() { java.lang.Object ref = ""; if (driverCase_ == 1) { ref = driver_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (driverCase_ == 1) { driver_ = b; } @@ -1068,30 +1163,35 @@ public java.lang.String getMainJarFileUri() { } } /** + * + * *
      * Optional. The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mainJarFileUri to set. * @return This builder for chaining. */ - public Builder setMainJarFileUri( - java.lang.String value) { + public Builder setMainJarFileUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 1; + throw new NullPointerException(); + } + driverCase_ = 1; driver_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMainJarFileUri() { @@ -1103,20 +1203,22 @@ public Builder clearMainJarFileUri() { return this; } /** + * + * *
      * Optional. The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mainJarFileUri to set. * @return This builder for chaining. */ - public Builder setMainJarFileUriBytes( - com.google.protobuf.ByteString value) { + public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); driverCase_ = 1; driver_ = value; onChanged(); @@ -1124,12 +1226,15 @@ public Builder setMainJarFileUriBytes( } /** + * + * *
      * Optional. The name of the driver main class. The jar file that contains the class
      * must be in the classpath or specified in `jar_file_uris`.
      * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the mainClass field is set. */ @java.lang.Override @@ -1137,12 +1242,15 @@ public boolean hasMainClass() { return driverCase_ == 2; } /** + * + * *
      * Optional. The name of the driver main class. The jar file that contains the class
      * must be in the classpath or specified in `jar_file_uris`.
      * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mainClass. */ @java.lang.Override @@ -1152,8 +1260,7 @@ public java.lang.String getMainClass() { ref = driver_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (driverCase_ == 2) { driver_ = s; @@ -1164,25 +1271,26 @@ public java.lang.String getMainClass() { } } /** + * + * *
      * Optional. The name of the driver main class. The jar file that contains the class
      * must be in the classpath or specified in `jar_file_uris`.
      * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mainClass. */ @java.lang.Override - public com.google.protobuf.ByteString - getMainClassBytes() { + public com.google.protobuf.ByteString getMainClassBytes() { java.lang.Object ref = ""; if (driverCase_ == 2) { ref = driver_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (driverCase_ == 2) { driver_ = b; } @@ -1192,32 +1300,37 @@ public java.lang.String getMainClass() { } } /** + * + * *
      * Optional. The name of the driver main class. The jar file that contains the class
      * must be in the classpath or specified in `jar_file_uris`.
      * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mainClass to set. * @return This builder for chaining. */ - public Builder setMainClass( - java.lang.String value) { + public Builder setMainClass(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 2; + throw new NullPointerException(); + } + driverCase_ = 2; driver_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The name of the driver main class. The jar file that contains the class
      * must be in the classpath or specified in `jar_file_uris`.
      * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMainClass() { @@ -1229,35 +1342,41 @@ public Builder clearMainClass() { return this; } /** + * + * *
      * Optional. The name of the driver main class. The jar file that contains the class
      * must be in the classpath or specified in `jar_file_uris`.
      * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mainClass to set. * @return This builder for chaining. */ - public Builder setMainClassBytes( - com.google.protobuf.ByteString value) { + public Builder setMainClassBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); driverCase_ = 2; driver_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList args_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1265,13 +1384,15 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_.getUnmodifiableView(); } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1279,12 +1400,15 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1292,6 +1416,7 @@ public int getArgsCount() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1299,6 +1424,8 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1306,14 +1433,16 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1321,21 +1450,23 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs( - int index, java.lang.String value) { + public Builder setArgs(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1343,20 +1474,22 @@ public Builder setArgs(
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs( - java.lang.String value) { + public Builder addArgs(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1364,18 +1497,19 @@ public Builder addArgs(
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs( - java.lang.Iterable values) { + public Builder addAllArgs(java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1383,6 +1517,7 @@ public Builder addAllArgs(
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearArgs() { @@ -1392,6 +1527,8 @@ public Builder clearArgs() { return this; } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -1399,60 +1536,70 @@ public Builder clearArgs() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes( - com.google.protobuf.ByteString value) { + public Builder addArgsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList jarFileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureJarFileUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList - getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { return jarFileUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -1460,85 +1607,95 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString - getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The jarFileUris to set. * @return This builder for chaining. */ - public Builder setJarFileUris( - int index, java.lang.String value) { + public Builder setJarFileUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUris( - java.lang.String value) { + public Builder addJarFileUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The jarFileUris to add. * @return This builder for chaining. */ - public Builder addAllJarFileUris( - java.lang.Iterable values) { + public Builder addAllJarFileUris(java.lang.Iterable values) { ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, jarFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearJarFileUris() { @@ -1548,66 +1705,78 @@ public Builder clearJarFileUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the classpath of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList fileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFileUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList - getFileUrisList() { + public com.google.protobuf.ProtocolStringList getFileUrisList() { return fileUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -1615,85 +1784,95 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString - getFileUrisBytes(int index) { + public com.google.protobuf.ByteString getFileUrisBytes(int index) { return fileUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The fileUris to set. * @return This builder for chaining. */ - public Builder setFileUris( - int index, java.lang.String value) { + public Builder setFileUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The fileUris to add. * @return This builder for chaining. */ - public Builder addFileUris( - java.lang.String value) { + public Builder addFileUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The fileUris to add. * @return This builder for chaining. */ - public Builder addAllFileUris( - java.lang.Iterable values) { + public Builder addAllFileUris(java.lang.Iterable values) { ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFileUris() { @@ -1703,35 +1882,41 @@ public Builder clearFileUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the fileUris to add. * @return This builder for chaining. */ - public Builder addFileUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList archiveUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArchiveUrisIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); bitField0_ |= 0x00000008; - } + } } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1739,13 +1924,15 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList - getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { return archiveUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1753,12 +1940,15 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1766,6 +1956,7 @@ public int getArchiveUrisCount() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -1773,6 +1964,8 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1780,14 +1973,16 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString - getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1795,21 +1990,23 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The archiveUris to set. * @return This builder for chaining. */ - public Builder setArchiveUris( - int index, java.lang.String value) { + public Builder setArchiveUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1817,20 +2014,22 @@ public Builder setArchiveUris(
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUris( - java.lang.String value) { + public Builder addArchiveUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1838,18 +2037,19 @@ public Builder addArchiveUris(
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The archiveUris to add. * @return This builder for chaining. */ - public Builder addAllArchiveUris( - java.lang.Iterable values) { + public Builder addAllArchiveUris(java.lang.Iterable values) { ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, archiveUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1857,6 +2057,7 @@ public Builder addAllArchiveUris(
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearArchiveUris() { @@ -1866,6 +2067,8 @@ public Builder clearArchiveUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1873,23 +2076,23 @@ public Builder clearArchiveUris() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArchiveUrisIsMutable(); archiveUris_.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); } @@ -1899,12 +2102,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SparkBatch) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkBatch) private static final com.google.cloud.dataproc.v1.SparkBatch DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkBatch(); } @@ -1913,27 +2116,27 @@ public static com.google.cloud.dataproc.v1.SparkBatch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1948,6 +2151,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SparkBatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java similarity index 83% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java index b36a727fc34a..8ce57703ec4d 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java @@ -1,74 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; -public interface SparkBatchOrBuilder extends +public interface SparkBatchOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkBatch) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the mainJarFileUri field is set. */ boolean hasMainJarFileUri(); /** + * + * *
    * Optional. The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mainJarFileUri. */ java.lang.String getMainJarFileUri(); /** + * + * *
    * Optional. The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mainJarFileUri. */ - com.google.protobuf.ByteString - getMainJarFileUriBytes(); + com.google.protobuf.ByteString getMainJarFileUriBytes(); /** + * + * *
    * Optional. The name of the driver main class. The jar file that contains the class
    * must be in the classpath or specified in `jar_file_uris`.
    * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the mainClass field is set. */ boolean hasMainClass(); /** + * + * *
    * Optional. The name of the driver main class. The jar file that contains the class
    * must be in the classpath or specified in `jar_file_uris`.
    * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mainClass. */ java.lang.String getMainClass(); /** + * + * *
    * Optional. The name of the driver main class. The jar file that contains the class
    * must be in the classpath or specified in `jar_file_uris`.
    * 
* * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mainClass. */ - com.google.protobuf.ByteString - getMainClassBytes(); + com.google.protobuf.ByteString getMainClassBytes(); /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -76,11 +110,13 @@ public interface SparkBatchOrBuilder extends
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - java.util.List - getArgsList(); + java.util.List getArgsList(); /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -88,10 +124,13 @@ public interface SparkBatchOrBuilder extends
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ int getArgsCount(); /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -99,11 +138,14 @@ public interface SparkBatchOrBuilder extends
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -111,103 +153,125 @@ public interface SparkBatchOrBuilder extends
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString - getArgsBytes(int index); + com.google.protobuf.ByteString getArgsBytes(int index); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - java.util.List - getJarFileUrisList(); + java.util.List getJarFileUrisList(); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ int getJarFileUrisCount(); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ java.lang.String getJarFileUris(int index); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the classpath of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - com.google.protobuf.ByteString - getJarFileUrisBytes(int index); + com.google.protobuf.ByteString getJarFileUrisBytes(int index); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - java.util.List - getFileUrisList(); + java.util.List getFileUrisList(); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ int getFileUrisCount(); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ java.lang.String getFileUris(int index); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - com.google.protobuf.ByteString - getFileUrisBytes(int index); + com.google.protobuf.ByteString getFileUrisBytes(int index); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -215,11 +279,13 @@ public interface SparkBatchOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - java.util.List - getArchiveUrisList(); + java.util.List getArchiveUrisList(); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -227,10 +293,13 @@ public interface SparkBatchOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ int getArchiveUrisCount(); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -238,11 +307,14 @@ public interface SparkBatchOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ java.lang.String getArchiveUris(int index); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -250,11 +322,11 @@ public interface SparkBatchOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - com.google.protobuf.ByteString - getArchiveUrisBytes(int index); + com.google.protobuf.ByteString getArchiveUrisBytes(int index); public com.google.cloud.dataproc.v1.SparkBatch.DriverCase getDriverCase(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java similarity index 67% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java index 694864de255b..4b0482e82c98 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Spark History Server configuration for the workload.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.SparkHistoryServerConfig} */ -public final class SparkHistoryServerConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SparkHistoryServerConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkHistoryServerConfig) SparkHistoryServerConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SparkHistoryServerConfig.newBuilder() to construct. private SparkHistoryServerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SparkHistoryServerConfig() { dataprocCluster_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SparkHistoryServerConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.class, com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder.class); + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.class, + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder.class); } public static final int DATAPROC_CLUSTER_FIELD_NUMBER = 1; private volatile java.lang.Object dataprocCluster_; /** + * + * *
    * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
    * Server for the workload.
@@ -59,6 +80,7 @@ protected java.lang.Object newInstance(
    * 
* * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dataprocCluster. */ @java.lang.Override @@ -67,14 +89,15 @@ public java.lang.String getDataprocCluster() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataprocCluster_ = s; return s; } } /** + * + * *
    * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
    * Server for the workload.
@@ -83,16 +106,15 @@ public java.lang.String getDataprocCluster() {
    * 
* * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for dataprocCluster. */ @java.lang.Override - public com.google.protobuf.ByteString - getDataprocClusterBytes() { + public com.google.protobuf.ByteString getDataprocClusterBytes() { java.lang.Object ref = dataprocCluster_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataprocCluster_ = b; return b; } else { @@ -101,6 +123,7 @@ public java.lang.String getDataprocCluster() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -112,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataprocCluster_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataprocCluster_); } @@ -137,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.SparkHistoryServerConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.SparkHistoryServerConfig other = (com.google.cloud.dataproc.v1.SparkHistoryServerConfig) obj; + com.google.cloud.dataproc.v1.SparkHistoryServerConfig other = + (com.google.cloud.dataproc.v1.SparkHistoryServerConfig) obj; - if (!getDataprocCluster() - .equals(other.getDataprocCluster())) return false; + if (!getDataprocCluster().equals(other.getDataprocCluster())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -165,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig 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.dataproc.v1.SparkHistoryServerConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.SparkHistoryServerConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.SparkHistoryServerConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Spark History Server configuration for the workload.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.SparkHistoryServerConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkHistoryServerConfig) com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.class, com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder.class); + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.class, + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.SparkHistoryServerConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -297,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto.internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; } @java.lang.Override @@ -318,7 +347,8 @@ public com.google.cloud.dataproc.v1.SparkHistoryServerConfig build() { @java.lang.Override public com.google.cloud.dataproc.v1.SparkHistoryServerConfig buildPartial() { - com.google.cloud.dataproc.v1.SparkHistoryServerConfig result = new com.google.cloud.dataproc.v1.SparkHistoryServerConfig(this); + com.google.cloud.dataproc.v1.SparkHistoryServerConfig result = + new com.google.cloud.dataproc.v1.SparkHistoryServerConfig(this); result.dataprocCluster_ = dataprocCluster_; onBuilt(); return result; @@ -328,38 +358,39 @@ public com.google.cloud.dataproc.v1.SparkHistoryServerConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.SparkHistoryServerConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.SparkHistoryServerConfig)other); + return mergeFrom((com.google.cloud.dataproc.v1.SparkHistoryServerConfig) other); } else { super.mergeFrom(other); return this; @@ -367,7 +398,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkHistoryServerConfig other) { - if (other == com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance()) + return this; if (!other.getDataprocCluster().isEmpty()) { dataprocCluster_ = other.dataprocCluster_; onChanged(); @@ -398,17 +430,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - dataprocCluster_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + dataprocCluster_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,6 +455,8 @@ public Builder mergeFrom( private java.lang.Object dataprocCluster_ = ""; /** + * + * *
      * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
      * Server for the workload.
@@ -429,13 +465,13 @@ public Builder mergeFrom(
      * 
* * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dataprocCluster. */ public java.lang.String getDataprocCluster() { java.lang.Object ref = dataprocCluster_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataprocCluster_ = s; return s; @@ -444,6 +480,8 @@ public java.lang.String getDataprocCluster() { } } /** + * + * *
      * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
      * Server for the workload.
@@ -452,15 +490,14 @@ public java.lang.String getDataprocCluster() {
      * 
* * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for dataprocCluster. */ - public com.google.protobuf.ByteString - getDataprocClusterBytes() { + public com.google.protobuf.ByteString getDataprocClusterBytes() { java.lang.Object ref = dataprocCluster_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataprocCluster_ = b; return b; } else { @@ -468,6 +505,8 @@ public java.lang.String getDataprocCluster() { } } /** + * + * *
      * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
      * Server for the workload.
@@ -476,20 +515,22 @@ public java.lang.String getDataprocCluster() {
      * 
* * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The dataprocCluster to set. * @return This builder for chaining. */ - public Builder setDataprocCluster( - java.lang.String value) { + public Builder setDataprocCluster(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataprocCluster_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
      * Server for the workload.
@@ -498,15 +539,18 @@ public Builder setDataprocCluster(
      * 
* * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDataprocCluster() { - + dataprocCluster_ = getDefaultInstance().getDataprocCluster(); onChanged(); return this; } /** + * + * *
      * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
      * Server for the workload.
@@ -515,23 +559,23 @@ public Builder clearDataprocCluster() {
      * 
* * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for dataprocCluster to set. * @return This builder for chaining. */ - public Builder setDataprocClusterBytes( - com.google.protobuf.ByteString value) { + public Builder setDataprocClusterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataprocCluster_ = 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); } @@ -541,12 +585,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SparkHistoryServerConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkHistoryServerConfig) private static final com.google.cloud.dataproc.v1.SparkHistoryServerConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkHistoryServerConfig(); } @@ -555,27 +599,27 @@ public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkHistoryServerConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkHistoryServerConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java similarity index 59% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java index 96b452f7ff3d..80e164010494 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; -public interface SparkHistoryServerConfigOrBuilder extends +public interface SparkHistoryServerConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkHistoryServerConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
    * Server for the workload.
@@ -16,10 +34,13 @@ public interface SparkHistoryServerConfigOrBuilder extends
    * 
* * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dataprocCluster. */ java.lang.String getDataprocCluster(); /** + * + * *
    * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
    * Server for the workload.
@@ -28,8 +49,8 @@ public interface SparkHistoryServerConfigOrBuilder extends
    * 
* * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for dataprocCluster. */ - com.google.protobuf.ByteString - getDataprocClusterBytes(); + com.google.protobuf.ByteString getDataprocClusterBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java similarity index 72% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java index 571f308695b3..34af05d6d360 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A Dataproc job for running [Apache Spark](https://spark.apache.org/)
  * applications on YARN.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.SparkJob}
  */
-public final class SparkJob extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SparkJob extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkJob)
     SparkJobOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SparkJob.newBuilder() to construct.
   private SparkJob(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SparkJob() {
     args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -29,50 +47,53 @@ private SparkJob() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SparkJob();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkJob_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.JobsProto
+        .internal_static_google_cloud_dataproc_v1_SparkJob_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 7:
         return internalGetProperties();
       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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.JobsProto
+        .internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.SparkJob.class, com.google.cloud.dataproc.v1.SparkJob.Builder.class);
+            com.google.cloud.dataproc.v1.SparkJob.class,
+            com.google.cloud.dataproc.v1.SparkJob.Builder.class);
   }
 
   private int driverCase_ = 0;
   private java.lang.Object driver_;
+
   public enum DriverCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     MAIN_JAR_FILE_URI(1),
     MAIN_CLASS(2),
     DRIVER_NOT_SET(0);
     private final int value;
+
     private DriverCase(int value) {
       this.value = value;
     }
@@ -88,41 +109,50 @@ public static DriverCase valueOf(int value) {
 
     public static DriverCase forNumber(int value) {
       switch (value) {
-        case 1: return MAIN_JAR_FILE_URI;
-        case 2: return MAIN_CLASS;
-        case 0: return DRIVER_NOT_SET;
-        default: return null;
+        case 1:
+          return MAIN_JAR_FILE_URI;
+        case 2:
+          return MAIN_CLASS;
+        case 0:
+          return DRIVER_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DriverCase
-  getDriverCase() {
-    return DriverCase.forNumber(
-        driverCase_);
+  public DriverCase getDriverCase() {
+    return DriverCase.forNumber(driverCase_);
   }
 
   public static final int MAIN_JAR_FILE_URI_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1; + * * @return Whether the mainJarFileUri field is set. */ public boolean hasMainJarFileUri() { return driverCase_ == 1; } /** + * + * *
    * The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1; + * * @return The mainJarFileUri. */ public java.lang.String getMainJarFileUri() { @@ -133,8 +163,7 @@ public java.lang.String getMainJarFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (driverCase_ == 1) { driver_ = s; @@ -143,23 +172,24 @@ public java.lang.String getMainJarFileUri() { } } /** + * + * *
    * The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1; + * * @return The bytes for mainJarFileUri. */ - public com.google.protobuf.ByteString - getMainJarFileUriBytes() { + public com.google.protobuf.ByteString getMainJarFileUriBytes() { java.lang.Object ref = ""; if (driverCase_ == 1) { ref = driver_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (driverCase_ == 1) { driver_ = b; } @@ -171,24 +201,30 @@ public java.lang.String getMainJarFileUri() { public static final int MAIN_CLASS_FIELD_NUMBER = 2; /** + * + * *
    * The name of the driver's main class. The jar file that contains the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; + * * @return Whether the mainClass field is set. */ public boolean hasMainClass() { return driverCase_ == 2; } /** + * + * *
    * The name of the driver's main class. The jar file that contains the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; + * * @return The mainClass. */ public java.lang.String getMainClass() { @@ -199,8 +235,7 @@ public java.lang.String getMainClass() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (driverCase_ == 2) { driver_ = s; @@ -209,24 +244,25 @@ public java.lang.String getMainClass() { } } /** + * + * *
    * The name of the driver's main class. The jar file that contains the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; + * * @return The bytes for mainClass. */ - public com.google.protobuf.ByteString - getMainClassBytes() { + public com.google.protobuf.ByteString getMainClassBytes() { java.lang.Object ref = ""; if (driverCase_ == 2) { ref = driver_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (driverCase_ == 2) { driver_ = b; } @@ -239,6 +275,8 @@ public java.lang.String getMainClass() { public static final int ARGS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList args_; /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -246,13 +284,15 @@ public java.lang.String getMainClass() {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_; } /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -260,12 +300,15 @@ public java.lang.String getMainClass() {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -273,6 +316,7 @@ public int getArgsCount() {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -280,6 +324,8 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -287,48 +333,56 @@ public java.lang.String getArgs(int index) {
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList jarFileUris_; /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList - getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { return jarFileUris_; } /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -336,54 +390,64 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString - getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } public static final int FILE_URIS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList fileUris_; /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList - getFileUrisList() { + public com.google.protobuf.ProtocolStringList getFileUrisList() { return fileUris_; } /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -391,23 +455,27 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString - getFileUrisBytes(int index) { + public com.google.protobuf.ByteString getFileUrisBytes(int index) { return fileUris_.getByteString(index); } public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList archiveUris_; /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -415,13 +483,15 @@ public java.lang.String getFileUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList - getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { return archiveUris_; } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -429,12 +499,15 @@ public java.lang.String getFileUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -442,6 +515,7 @@ public int getArchiveUrisCount() {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -449,6 +523,8 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -456,33 +532,32 @@ public java.lang.String getArchiveUris(int index) {
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString - getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } public static final int PROPERTIES_FIELD_NUMBER = 7; + private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; - private com.google.protobuf.MapField - internalGetProperties() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -491,6 +566,8 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
    * Optional. A mapping of property names to values, used to configure Spark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -498,24 +575,25 @@ public int getPropertiesCount() {
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
    * Optional. A mapping of property names to values, used to configure Spark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -523,14 +601,16 @@ public java.util.Map getProperties() {
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
    * Optional. A mapping of property names to values, used to configure Spark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -538,19 +618,21 @@ public java.util.Map getPropertiesMap() {
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. A mapping of property names to values, used to configure Spark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -558,15 +640,15 @@ public java.lang.String getPropertiesOrDefault(
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -576,11 +658,16 @@ public java.lang.String getPropertiesOrThrow( public static final int LOGGING_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ @java.lang.Override @@ -588,23 +675,34 @@ public boolean hasLoggingConfig() { return loggingConfig_ != null; } /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { @@ -612,6 +710,7 @@ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBui } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -623,8 +722,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (driverCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); } @@ -643,12 +741,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < archiveUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetProperties(), - PropertiesDefaultEntryHolder.defaultEntry, - 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 7); if (loggingConfig_ != null) { output.writeMessage(8, getLoggingConfig()); } @@ -699,19 +793,18 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArchiveUrisList().size(); } - for (java.util.Map.Entry entry - : internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry - properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, properties__); + for (java.util.Map.Entry entry : + internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, properties__); } if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getLoggingConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLoggingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -721,37 +814,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.dataproc.v1.SparkJob)) { return super.equals(obj); } com.google.cloud.dataproc.v1.SparkJob other = (com.google.cloud.dataproc.v1.SparkJob) obj; - if (!getArgsList() - .equals(other.getArgsList())) return false; - if (!getJarFileUrisList() - .equals(other.getJarFileUrisList())) return false; - if (!getFileUrisList() - .equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList() - .equals(other.getArchiveUrisList())) return false; - if (!internalGetProperties().equals( - other.internalGetProperties())) return false; + if (!getArgsList().equals(other.getArgsList())) return false; + if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; + if (!getFileUrisList().equals(other.getFileUrisList())) return false; + if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; + if (!internalGetProperties().equals(other.internalGetProperties())) return false; if (hasLoggingConfig() != other.hasLoggingConfig()) return false; if (hasLoggingConfig()) { - if (!getLoggingConfig() - .equals(other.getLoggingConfig())) return false; + if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; } if (!getDriverCase().equals(other.getDriverCase())) return false; switch (driverCase_) { case 1: - if (!getMainJarFileUri() - .equals(other.getMainJarFileUri())) return false; + if (!getMainJarFileUri().equals(other.getMainJarFileUri())) return false; break; case 2: - if (!getMainClass() - .equals(other.getMainClass())) return false; + if (!getMainClass().equals(other.getMainClass())) return false; break; case 0: default: @@ -808,97 +893,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.SparkJob parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.SparkJob parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkJob parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.dataproc.v1.SparkJob parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkJob parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkJob 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.dataproc.v1.SparkJob parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.SparkJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc job for running [Apache Spark](https://spark.apache.org/)
    * applications on YARN.
@@ -906,55 +997,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.SparkJob}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkJob)
       com.google.cloud.dataproc.v1.SparkJobOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkJob_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_SparkJob_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 7:
           return internalGetProperties();
         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 7:
           return internalGetMutableProperties();
         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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.SparkJob.class, com.google.cloud.dataproc.v1.SparkJob.Builder.class);
+              com.google.cloud.dataproc.v1.SparkJob.class,
+              com.google.cloud.dataproc.v1.SparkJob.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.SparkJob.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -979,9 +1067,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkJob_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_SparkJob_descriptor;
     }
 
     @java.lang.Override
@@ -1000,7 +1088,8 @@ public com.google.cloud.dataproc.v1.SparkJob build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.SparkJob buildPartial() {
-      com.google.cloud.dataproc.v1.SparkJob result = new com.google.cloud.dataproc.v1.SparkJob(this);
+      com.google.cloud.dataproc.v1.SparkJob result =
+          new com.google.cloud.dataproc.v1.SparkJob(this);
       int from_bitField0_ = bitField0_;
       if (driverCase_ == 1) {
         result.driver_ = driver_;
@@ -1044,38 +1133,39 @@ public com.google.cloud.dataproc.v1.SparkJob buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.SparkJob) {
-        return mergeFrom((com.google.cloud.dataproc.v1.SparkJob)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.SparkJob) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1124,27 +1214,29 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkJob other) {
         }
         onChanged();
       }
-      internalGetMutableProperties().mergeFrom(
-          other.internalGetProperties());
+      internalGetMutableProperties().mergeFrom(other.internalGetProperties());
       if (other.hasLoggingConfig()) {
         mergeLoggingConfig(other.getLoggingConfig());
       }
       switch (other.getDriverCase()) {
-        case MAIN_JAR_FILE_URI: {
-          driverCase_ = 1;
-          driver_ = other.driver_;
-          onChanged();
-          break;
-        }
-        case MAIN_CLASS: {
-          driverCase_ = 2;
-          driver_ = other.driver_;
-          onChanged();
-          break;
-        }
-        case DRIVER_NOT_SET: {
-          break;
-        }
+        case MAIN_JAR_FILE_URI:
+          {
+            driverCase_ = 1;
+            driver_ = other.driver_;
+            onChanged();
+            break;
+          }
+        case MAIN_CLASS:
+          {
+            driverCase_ = 2;
+            driver_ = other.driver_;
+            onChanged();
+            break;
+          }
+        case DRIVER_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1172,63 +1264,72 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              driverCase_ = 1;
-              driver_ = s;
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              driverCase_ = 2;
-              driver_ = s;
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureArgsIsMutable();
-              args_.add(s);
-              break;
-            } // case 26
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureJarFileUrisIsMutable();
-              jarFileUris_.add(s);
-              break;
-            } // case 34
-            case 42: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureFileUrisIsMutable();
-              fileUris_.add(s);
-              break;
-            } // case 42
-            case 50: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureArchiveUrisIsMutable();
-              archiveUris_.add(s);
-              break;
-            } // case 50
-            case 58: {
-              com.google.protobuf.MapEntry
-              properties__ = input.readMessage(
-                  PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableProperties().getMutableMap().put(
-                  properties__.getKey(), properties__.getValue());
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getLoggingConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 66
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                driverCase_ = 1;
+                driver_ = s;
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                driverCase_ = 2;
+                driver_ = s;
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureArgsIsMutable();
+                args_.add(s);
+                break;
+              } // case 26
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureJarFileUrisIsMutable();
+                jarFileUris_.add(s);
+                break;
+              } // case 34
+            case 42:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureFileUrisIsMutable();
+                fileUris_.add(s);
+                break;
+              } // case 42
+            case 50:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureArchiveUrisIsMutable();
+                archiveUris_.add(s);
+                break;
+              } // case 50
+            case 58:
+              {
+                com.google.protobuf.MapEntry properties__ =
+                    input.readMessage(
+                        PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableProperties()
+                    .getMutableMap()
+                    .put(properties__.getKey(), properties__.getValue());
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 66
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1238,12 +1339,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int driverCase_ = 0;
     private java.lang.Object driver_;
-    public DriverCase
-        getDriverCase() {
-      return DriverCase.forNumber(
-          driverCase_);
+
+    public DriverCase getDriverCase() {
+      return DriverCase.forNumber(driverCase_);
     }
 
     public Builder clearDriver() {
@@ -1256,11 +1357,14 @@ public Builder clearDriver() {
     private int bitField0_;
 
     /**
+     *
+     *
      * 
      * The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1; + * * @return Whether the mainJarFileUri field is set. */ @java.lang.Override @@ -1268,11 +1372,14 @@ public boolean hasMainJarFileUri() { return driverCase_ == 1; } /** + * + * *
      * The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1; + * * @return The mainJarFileUri. */ @java.lang.Override @@ -1282,8 +1389,7 @@ public java.lang.String getMainJarFileUri() { ref = driver_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (driverCase_ == 1) { driver_ = s; @@ -1294,24 +1400,25 @@ public java.lang.String getMainJarFileUri() { } } /** + * + * *
      * The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1; + * * @return The bytes for mainJarFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getMainJarFileUriBytes() { + public com.google.protobuf.ByteString getMainJarFileUriBytes() { java.lang.Object ref = ""; if (driverCase_ == 1) { ref = driver_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (driverCase_ == 1) { driver_ = b; } @@ -1321,30 +1428,35 @@ public java.lang.String getMainJarFileUri() { } } /** + * + * *
      * The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1; + * * @param value The mainJarFileUri to set. * @return This builder for chaining. */ - public Builder setMainJarFileUri( - java.lang.String value) { + public Builder setMainJarFileUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 1; + throw new NullPointerException(); + } + driverCase_ = 1; driver_ = value; onChanged(); return this; } /** + * + * *
      * The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1; + * * @return This builder for chaining. */ public Builder clearMainJarFileUri() { @@ -1356,20 +1468,22 @@ public Builder clearMainJarFileUri() { return this; } /** + * + * *
      * The HCFS URI of the jar file that contains the main class.
      * 
* * string main_jar_file_uri = 1; + * * @param value The bytes for mainJarFileUri to set. * @return This builder for chaining. */ - public Builder setMainJarFileUriBytes( - com.google.protobuf.ByteString value) { + public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); driverCase_ = 1; driver_ = value; onChanged(); @@ -1377,12 +1491,15 @@ public Builder setMainJarFileUriBytes( } /** + * + * *
      * The name of the driver's main class. The jar file that contains the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; + * * @return Whether the mainClass field is set. */ @java.lang.Override @@ -1390,12 +1507,15 @@ public boolean hasMainClass() { return driverCase_ == 2; } /** + * + * *
      * The name of the driver's main class. The jar file that contains the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; + * * @return The mainClass. */ @java.lang.Override @@ -1405,8 +1525,7 @@ public java.lang.String getMainClass() { ref = driver_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (driverCase_ == 2) { driver_ = s; @@ -1417,25 +1536,26 @@ public java.lang.String getMainClass() { } } /** + * + * *
      * The name of the driver's main class. The jar file that contains the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; + * * @return The bytes for mainClass. */ @java.lang.Override - public com.google.protobuf.ByteString - getMainClassBytes() { + public com.google.protobuf.ByteString getMainClassBytes() { java.lang.Object ref = ""; if (driverCase_ == 2) { ref = driver_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (driverCase_ == 2) { driver_ = b; } @@ -1445,32 +1565,37 @@ public java.lang.String getMainClass() { } } /** + * + * *
      * The name of the driver's main class. The jar file that contains the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; + * * @param value The mainClass to set. * @return This builder for chaining. */ - public Builder setMainClass( - java.lang.String value) { + public Builder setMainClass(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 2; + throw new NullPointerException(); + } + driverCase_ = 2; driver_ = value; onChanged(); return this; } /** + * + * *
      * The name of the driver's main class. The jar file that contains the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; + * * @return This builder for chaining. */ public Builder clearMainClass() { @@ -1482,35 +1607,41 @@ public Builder clearMainClass() { return this; } /** + * + * *
      * The name of the driver's main class. The jar file that contains the class
      * must be in the default CLASSPATH or specified in `jar_file_uris`.
      * 
* * string main_class = 2; + * * @param value The bytes for mainClass to set. * @return This builder for chaining. */ - public Builder setMainClassBytes( - com.google.protobuf.ByteString value) { + public Builder setMainClassBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); driverCase_ = 2; driver_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList args_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1518,13 +1649,15 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_.getUnmodifiableView(); } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1532,12 +1665,15 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1545,6 +1681,7 @@ public int getArgsCount() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1552,6 +1689,8 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1559,14 +1698,16 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1574,21 +1715,23 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs( - int index, java.lang.String value) { + public Builder setArgs(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1596,20 +1739,22 @@ public Builder setArgs(
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs( - java.lang.String value) { + public Builder addArgs(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1617,18 +1762,19 @@ public Builder addArgs(
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs( - java.lang.Iterable values) { + public Builder addAllArgs(java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1636,6 +1782,7 @@ public Builder addAllArgs(
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearArgs() { @@ -1645,6 +1792,8 @@ public Builder clearArgs() { return this; } /** + * + * *
      * Optional. The arguments to pass to the driver. Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1652,60 +1801,70 @@ public Builder clearArgs() {
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes( - com.google.protobuf.ByteString value) { + public Builder addArgsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList jarFileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureJarFileUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList - getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { return jarFileUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -1713,85 +1872,95 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString - getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The jarFileUris to set. * @return This builder for chaining. */ - public Builder setJarFileUris( - int index, java.lang.String value) { + public Builder setJarFileUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUris( - java.lang.String value) { + public Builder addJarFileUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The jarFileUris to add. * @return This builder for chaining. */ - public Builder addAllJarFileUris( - java.lang.Iterable values) { + public Builder addAllJarFileUris(java.lang.Iterable values) { ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, jarFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearJarFileUris() { @@ -1801,66 +1970,78 @@ public Builder clearJarFileUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
      * Spark driver and tasks.
      * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList fileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFileUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList - getFileUrisList() { + public com.google.protobuf.ProtocolStringList getFileUrisList() { return fileUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -1868,85 +2049,95 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString - getFileUrisBytes(int index) { + public com.google.protobuf.ByteString getFileUrisBytes(int index) { return fileUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The fileUris to set. * @return This builder for chaining. */ - public Builder setFileUris( - int index, java.lang.String value) { + public Builder setFileUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The fileUris to add. * @return This builder for chaining. */ - public Builder addFileUris( - java.lang.String value) { + public Builder addFileUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The fileUris to add. * @return This builder for chaining. */ - public Builder addAllFileUris( - java.lang.Iterable values) { + public Builder addAllFileUris(java.lang.Iterable values) { ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFileUris() { @@ -1956,35 +2147,41 @@ public Builder clearFileUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the fileUris to add. * @return This builder for chaining. */ - public Builder addFileUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList archiveUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArchiveUrisIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); bitField0_ |= 0x00000008; - } + } } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1992,13 +2189,15 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList - getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { return archiveUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2006,12 +2205,15 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2019,6 +2221,7 @@ public int getArchiveUrisCount() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -2026,6 +2229,8 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2033,14 +2238,16 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString - getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2048,21 +2255,23 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The archiveUris to set. * @return This builder for chaining. */ - public Builder setArchiveUris( - int index, java.lang.String value) { + public Builder setArchiveUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2070,20 +2279,22 @@ public Builder setArchiveUris(
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUris( - java.lang.String value) { + public Builder addArchiveUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2091,18 +2302,19 @@ public Builder addArchiveUris(
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The archiveUris to add. * @return This builder for chaining. */ - public Builder addAllArchiveUris( - java.lang.Iterable values) { + public Builder addAllArchiveUris(java.lang.Iterable values) { ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, archiveUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2110,6 +2322,7 @@ public Builder addAllArchiveUris(
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearArchiveUris() { @@ -2119,6 +2332,8 @@ public Builder clearArchiveUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -2126,37 +2341,39 @@ public Builder clearArchiveUris() {
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField properties_; + private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } + private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged();; + internalGetMutableProperties() { + onChanged(); + ; if (properties_ == null) { - properties_ = com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); + properties_ = + com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -2168,6 +2385,8 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Spark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2175,24 +2394,25 @@ public int getPropertiesCount() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Spark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2200,14 +2420,16 @@ public java.util.Map getProperties() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Spark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2215,19 +2437,21 @@ public java.util.Map getPropertiesMap() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Spark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2235,15 +2459,15 @@ public java.lang.String getPropertiesOrDefault(
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2251,11 +2475,12 @@ public java.lang.String getPropertiesOrThrow( } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap() - .clear(); + internalGetMutableProperties().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Spark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2263,25 +2488,24 @@ public Builder clearProperties() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableProperties().getMutableMap() - .remove(key); + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProperties().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableProperties() { + public java.util.Map getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Spark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2289,21 +2513,23 @@ public Builder removeProperties(
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putProperties( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putProperties(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"); + } - internalGetMutableProperties().getMutableMap() - .put(key, value); + internalGetMutableProperties().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. A mapping of property names to values, used to configure Spark.
      * Properties that conflict with values set by the Dataproc API may be
@@ -2311,51 +2537,68 @@ public Builder putProperties(
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllProperties( - java.util.Map values) { - internalGetMutableProperties().getMutableMap() - .putAll(values); + public Builder putAllProperties(java.util.Map values) { + internalGetMutableProperties().getMutableMap().putAll(values); return this; } private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> loggingConfigBuilder_; + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + loggingConfigBuilder_; /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ public boolean hasLoggingConfig() { return loggingConfigBuilder_ != null || loggingConfig_ != null; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } else { return loggingConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { @@ -2371,11 +2614,15 @@ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLoggingConfig( com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { @@ -2389,17 +2636,23 @@ public Builder setLoggingConfig( return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { if (loggingConfig_ != null) { loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) + .mergeFrom(value) + .buildPartial(); } else { loggingConfig_ = value; } @@ -2411,11 +2664,15 @@ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig val return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearLoggingConfig() { if (loggingConfigBuilder_ == null) { @@ -2429,55 +2686,71 @@ public Builder clearLoggingConfig() { return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - + onChanged(); return getLoggingConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { if (loggingConfigBuilder_ != null) { return loggingConfigBuilder_.getMessageOrBuilder(); } else { - return loggingConfig_ == null ? - com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> getLoggingConfigFieldBuilder() { if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), - getParentForChildren(), - isClean()); + loggingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( + getLoggingConfig(), getParentForChildren(), isClean()); loggingConfig_ = null; } return loggingConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2487,12 +2760,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SparkJob) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkJob) private static final com.google.cloud.dataproc.v1.SparkJob DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkJob(); } @@ -2501,27 +2774,27 @@ public static com.google.cloud.dataproc.v1.SparkJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2536,6 +2809,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SparkJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java similarity index 79% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java index 804085ac9b71..0017ad02fa05 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java @@ -1,74 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface SparkJobOrBuilder extends +public interface SparkJobOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkJob) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1; + * * @return Whether the mainJarFileUri field is set. */ boolean hasMainJarFileUri(); /** + * + * *
    * The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1; + * * @return The mainJarFileUri. */ java.lang.String getMainJarFileUri(); /** + * + * *
    * The HCFS URI of the jar file that contains the main class.
    * 
* * string main_jar_file_uri = 1; + * * @return The bytes for mainJarFileUri. */ - com.google.protobuf.ByteString - getMainJarFileUriBytes(); + com.google.protobuf.ByteString getMainJarFileUriBytes(); /** + * + * *
    * The name of the driver's main class. The jar file that contains the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; + * * @return Whether the mainClass field is set. */ boolean hasMainClass(); /** + * + * *
    * The name of the driver's main class. The jar file that contains the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; + * * @return The mainClass. */ java.lang.String getMainClass(); /** + * + * *
    * The name of the driver's main class. The jar file that contains the class
    * must be in the default CLASSPATH or specified in `jar_file_uris`.
    * 
* * string main_class = 2; + * * @return The bytes for mainClass. */ - com.google.protobuf.ByteString - getMainClassBytes(); + com.google.protobuf.ByteString getMainClassBytes(); /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -76,11 +110,13 @@ public interface SparkJobOrBuilder extends
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - java.util.List - getArgsList(); + java.util.List getArgsList(); /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -88,10 +124,13 @@ public interface SparkJobOrBuilder extends
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ int getArgsCount(); /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -99,11 +138,14 @@ public interface SparkJobOrBuilder extends
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** + * + * *
    * Optional. The arguments to pass to the driver. Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -111,103 +153,125 @@ public interface SparkJobOrBuilder extends
    * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString - getArgsBytes(int index); + com.google.protobuf.ByteString getArgsBytes(int index); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - java.util.List - getJarFileUrisList(); + java.util.List getJarFileUrisList(); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ int getJarFileUrisCount(); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ java.lang.String getJarFileUris(int index); /** + * + * *
    * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
    * Spark driver and tasks.
    * 
* * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - com.google.protobuf.ByteString - getJarFileUrisBytes(int index); + com.google.protobuf.ByteString getJarFileUrisBytes(int index); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - java.util.List - getFileUrisList(); + java.util.List getFileUrisList(); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ int getFileUrisCount(); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ java.lang.String getFileUris(int index); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - com.google.protobuf.ByteString - getFileUrisBytes(int index); + com.google.protobuf.ByteString getFileUrisBytes(int index); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -215,11 +279,13 @@ public interface SparkJobOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - java.util.List - getArchiveUrisList(); + java.util.List getArchiveUrisList(); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -227,10 +293,13 @@ public interface SparkJobOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ int getArchiveUrisCount(); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -238,11 +307,14 @@ public interface SparkJobOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ java.lang.String getArchiveUris(int index); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -250,13 +322,15 @@ public interface SparkJobOrBuilder extends
    * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - com.google.protobuf.ByteString - getArchiveUrisBytes(int index); + com.google.protobuf.ByteString getArchiveUrisBytes(int index); /** + * + * *
    * Optional. A mapping of property names to values, used to configure Spark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -264,10 +338,13 @@ public interface SparkJobOrBuilder extends
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getPropertiesCount(); /** + * + * *
    * Optional. A mapping of property names to values, used to configure Spark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -275,17 +352,16 @@ public interface SparkJobOrBuilder extends
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsProperties( - java.lang.String key); - /** - * Use {@link #getPropertiesMap()} instead. + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsProperties(java.lang.String key); + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getProperties(); + java.util.Map getProperties(); /** + * + * *
    * Optional. A mapping of property names to values, used to configure Spark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -293,11 +369,13 @@ boolean containsProperties(
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getPropertiesMap(); + java.util.Map getPropertiesMap(); /** + * + * *
    * Optional. A mapping of property names to values, used to configure Spark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -305,15 +383,18 @@ boolean containsProperties(
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getPropertiesOrDefault( + java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. A mapping of property names to values, used to configure Spark.
    * Properties that conflict with values set by the Dataproc API may be
@@ -321,36 +402,49 @@ java.lang.String getPropertiesOrDefault(
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - java.lang.String getPropertiesOrThrow( - java.lang.String key); + java.lang.String getPropertiesOrThrow(java.lang.String key); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ boolean hasLoggingConfig(); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java similarity index 76% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java index 0c35c8002487..255c7ba7b3cb 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A configuration for running an
  * [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.SparkRBatch}
  */
-public final class SparkRBatch extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SparkRBatch extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkRBatch)
     SparkRBatchOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SparkRBatch.newBuilder() to construct.
   private SparkRBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SparkRBatch() {
     mainRFileUri_ = "";
     args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -30,38 +48,42 @@ private SparkRBatch() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SparkRBatch();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.BatchesProto
+        .internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.BatchesProto
+        .internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.SparkRBatch.class, com.google.cloud.dataproc.v1.SparkRBatch.Builder.class);
+            com.google.cloud.dataproc.v1.SparkRBatch.class,
+            com.google.cloud.dataproc.v1.SparkRBatch.Builder.class);
   }
 
   public static final int MAIN_R_FILE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object mainRFileUri_;
   /**
+   *
+   *
    * 
    * Required. The HCFS URI of the main R file to use as the driver.
    * Must be a `.R` or `.r` file.
    * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mainRFileUri. */ @java.lang.Override @@ -70,30 +92,30 @@ public java.lang.String getMainRFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mainRFileUri_ = s; return s; } } /** + * + * *
    * Required. The HCFS URI of the main R file to use as the driver.
    * Must be a `.R` or `.r` file.
    * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for mainRFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getMainRFileUriBytes() { + public com.google.protobuf.ByteString getMainRFileUriBytes() { java.lang.Object ref = mainRFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mainRFileUri_ = b; return b; } else { @@ -104,6 +126,8 @@ public java.lang.String getMainRFileUri() { public static final int ARGS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList args_; /** + * + * *
    * Optional. The arguments to pass to the Spark driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -111,13 +135,15 @@ public java.lang.String getMainRFileUri() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_; } /** + * + * *
    * Optional. The arguments to pass to the Spark driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -125,12 +151,15 @@ public java.lang.String getMainRFileUri() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
    * Optional. The arguments to pass to the Spark driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -138,6 +167,7 @@ public int getArgsCount() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -145,6 +175,8 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
    * Optional. The arguments to pass to the Spark driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -152,48 +184,56 @@ public java.lang.String getArgs(int index) {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } public static final int FILE_URIS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList fileUris_; /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList - getFileUrisList() { + public com.google.protobuf.ProtocolStringList getFileUrisList() { return fileUris_; } /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -201,23 +241,27 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString - getFileUrisBytes(int index) { + public com.google.protobuf.ByteString getFileUrisBytes(int index) { return fileUris_.getByteString(index); } public static final int ARCHIVE_URIS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList archiveUris_; /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -225,13 +269,15 @@ public java.lang.String getFileUris(int index) {
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList - getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { return archiveUris_; } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -239,12 +285,15 @@ public java.lang.String getFileUris(int index) {
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -252,6 +301,7 @@ public int getArchiveUrisCount() {
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -259,6 +309,8 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -266,15 +318,16 @@ public java.lang.String getArchiveUris(int index) {
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString - getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,8 +339,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainRFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainRFileUri_); } @@ -344,21 +396,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.dataproc.v1.SparkRBatch)) { return super.equals(obj); } com.google.cloud.dataproc.v1.SparkRBatch other = (com.google.cloud.dataproc.v1.SparkRBatch) obj; - if (!getMainRFileUri() - .equals(other.getMainRFileUri())) return false; - if (!getArgsList() - .equals(other.getArgsList())) return false; - if (!getFileUrisList() - .equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList() - .equals(other.getArchiveUrisList())) return false; + if (!getMainRFileUri().equals(other.getMainRFileUri())) return false; + if (!getArgsList().equals(other.getArgsList())) return false; + if (!getFileUrisList().equals(other.getFileUrisList())) return false; + if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -389,97 +437,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkRBatch parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.SparkRBatch parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkRBatch parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.SparkRBatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 configuration for running an
    * [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
@@ -488,33 +543,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.SparkRBatch}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkRBatch)
       com.google.cloud.dataproc.v1.SparkRBatchOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.BatchesProto
+          .internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.BatchesProto
+          .internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.SparkRBatch.class, com.google.cloud.dataproc.v1.SparkRBatch.Builder.class);
+              com.google.cloud.dataproc.v1.SparkRBatch.class,
+              com.google.cloud.dataproc.v1.SparkRBatch.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.SparkRBatch.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -530,9 +584,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.BatchesProto
+          .internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor;
     }
 
     @java.lang.Override
@@ -551,7 +605,8 @@ public com.google.cloud.dataproc.v1.SparkRBatch build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.SparkRBatch buildPartial() {
-      com.google.cloud.dataproc.v1.SparkRBatch result = new com.google.cloud.dataproc.v1.SparkRBatch(this);
+      com.google.cloud.dataproc.v1.SparkRBatch result =
+          new com.google.cloud.dataproc.v1.SparkRBatch(this);
       int from_bitField0_ = bitField0_;
       result.mainRFileUri_ = mainRFileUri_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -577,38 +632,39 @@ public com.google.cloud.dataproc.v1.SparkRBatch buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.SparkRBatch) {
-        return mergeFrom((com.google.cloud.dataproc.v1.SparkRBatch)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.SparkRBatch) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -677,35 +733,40 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              mainRFileUri_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                mainRFileUri_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureArgsIsMutable();
-              args_.add(s);
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureFileUrisIsMutable();
-              fileUris_.add(s);
-              break;
-            } // case 26
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureArchiveUrisIsMutable();
-              archiveUris_.add(s);
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureArgsIsMutable();
+                args_.add(s);
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureFileUrisIsMutable();
+                fileUris_.add(s);
+                break;
+              } // case 26
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureArchiveUrisIsMutable();
+                archiveUris_.add(s);
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -715,23 +776,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object mainRFileUri_ = "";
     /**
+     *
+     *
      * 
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a `.R` or `.r` file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mainRFileUri. */ public java.lang.String getMainRFileUri() { java.lang.Object ref = mainRFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mainRFileUri_ = s; return s; @@ -740,21 +804,22 @@ public java.lang.String getMainRFileUri() { } } /** + * + * *
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a `.R` or `.r` file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for mainRFileUri. */ - public com.google.protobuf.ByteString - getMainRFileUriBytes() { + public com.google.protobuf.ByteString getMainRFileUriBytes() { java.lang.Object ref = mainRFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mainRFileUri_ = b; return b; } else { @@ -762,70 +827,81 @@ public java.lang.String getMainRFileUri() { } } /** + * + * *
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a `.R` or `.r` file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The mainRFileUri to set. * @return This builder for chaining. */ - public Builder setMainRFileUri( - java.lang.String value) { + public Builder setMainRFileUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mainRFileUri_ = value; onChanged(); return this; } /** + * + * *
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a `.R` or `.r` file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMainRFileUri() { - + mainRFileUri_ = getDefaultInstance().getMainRFileUri(); onChanged(); return this; } /** + * + * *
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a `.R` or `.r` file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for mainRFileUri to set. * @return This builder for chaining. */ - public Builder setMainRFileUriBytes( - com.google.protobuf.ByteString value) { + public Builder setMainRFileUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mainRFileUri_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList args_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. The arguments to pass to the Spark driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -833,13 +909,15 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_.getUnmodifiableView(); } /** + * + * *
      * Optional. The arguments to pass to the Spark driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -847,12 +925,15 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
      * Optional. The arguments to pass to the Spark driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -860,6 +941,7 @@ public int getArgsCount() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -867,6 +949,8 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
      * Optional. The arguments to pass to the Spark driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -874,14 +958,16 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } /** + * + * *
      * Optional. The arguments to pass to the Spark driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -889,21 +975,23 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs( - int index, java.lang.String value) { + public Builder setArgs(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the Spark driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -911,20 +999,22 @@ public Builder setArgs(
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs( - java.lang.String value) { + public Builder addArgs(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the Spark driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -932,18 +1022,19 @@ public Builder addArgs(
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs( - java.lang.Iterable values) { + public Builder addAllArgs(java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the Spark driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -951,6 +1042,7 @@ public Builder addAllArgs(
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearArgs() { @@ -960,6 +1052,8 @@ public Builder clearArgs() { return this; } /** + * + * *
      * Optional. The arguments to pass to the Spark driver. Do not include arguments
      * that can be set as batch properties, such as `--conf`, since a collision
@@ -967,60 +1061,70 @@ public Builder clearArgs() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes( - com.google.protobuf.ByteString value) { + public Builder addArgsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList fileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFileUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList - getFileUrisList() { + public com.google.protobuf.ProtocolStringList getFileUrisList() { return fileUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -1028,85 +1132,95 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString - getFileUrisBytes(int index) { + public com.google.protobuf.ByteString getFileUrisBytes(int index) { return fileUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The fileUris to set. * @return This builder for chaining. */ - public Builder setFileUris( - int index, java.lang.String value) { + public Builder setFileUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The fileUris to add. * @return This builder for chaining. */ - public Builder addFileUris( - java.lang.String value) { + public Builder addFileUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The fileUris to add. * @return This builder for chaining. */ - public Builder addAllFileUris( - java.lang.Iterable values) { + public Builder addAllFileUris(java.lang.Iterable values) { ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFileUris() { @@ -1116,35 +1230,41 @@ public Builder clearFileUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the fileUris to add. * @return This builder for chaining. */ - public Builder addFileUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList archiveUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArchiveUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1152,13 +1272,15 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList - getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { return archiveUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1166,12 +1288,15 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1179,6 +1304,7 @@ public int getArchiveUrisCount() {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -1186,6 +1312,8 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1193,14 +1321,16 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString - getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1208,21 +1338,23 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The archiveUris to set. * @return This builder for chaining. */ - public Builder setArchiveUris( - int index, java.lang.String value) { + public Builder setArchiveUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1230,20 +1362,22 @@ public Builder setArchiveUris(
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUris( - java.lang.String value) { + public Builder addArchiveUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1251,18 +1385,19 @@ public Builder addArchiveUris(
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The archiveUris to add. * @return This builder for chaining. */ - public Builder addAllArchiveUris( - java.lang.Iterable values) { + public Builder addAllArchiveUris(java.lang.Iterable values) { ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, archiveUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1270,6 +1405,7 @@ public Builder addAllArchiveUris(
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearArchiveUris() { @@ -1279,6 +1415,8 @@ public Builder clearArchiveUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1286,23 +1424,23 @@ public Builder clearArchiveUris() {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArchiveUrisIsMutable(); archiveUris_.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); } @@ -1312,12 +1450,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SparkRBatch) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkRBatch) private static final com.google.cloud.dataproc.v1.SparkRBatch DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkRBatch(); } @@ -1326,27 +1464,27 @@ public static com.google.cloud.dataproc.v1.SparkRBatch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkRBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkRBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1361,6 +1499,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SparkRBatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java similarity index 81% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java index 5445c5aebc12..1083a66940e6 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; -public interface SparkRBatchOrBuilder extends +public interface SparkRBatchOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkRBatch) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The HCFS URI of the main R file to use as the driver.
    * Must be a `.R` or `.r` file.
    * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mainRFileUri. */ java.lang.String getMainRFileUri(); /** + * + * *
    * Required. The HCFS URI of the main R file to use as the driver.
    * Must be a `.R` or `.r` file.
    * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for mainRFileUri. */ - com.google.protobuf.ByteString - getMainRFileUriBytes(); + com.google.protobuf.ByteString getMainRFileUriBytes(); /** + * + * *
    * Optional. The arguments to pass to the Spark driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -37,11 +60,13 @@ public interface SparkRBatchOrBuilder extends
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - java.util.List - getArgsList(); + java.util.List getArgsList(); /** + * + * *
    * Optional. The arguments to pass to the Spark driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -49,10 +74,13 @@ public interface SparkRBatchOrBuilder extends
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ int getArgsCount(); /** + * + * *
    * Optional. The arguments to pass to the Spark driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -60,11 +88,14 @@ public interface SparkRBatchOrBuilder extends
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** + * + * *
    * Optional. The arguments to pass to the Spark driver. Do not include arguments
    * that can be set as batch properties, such as `--conf`, since a collision
@@ -72,58 +103,70 @@ public interface SparkRBatchOrBuilder extends
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString - getArgsBytes(int index); + com.google.protobuf.ByteString getArgsBytes(int index); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - java.util.List - getFileUrisList(); + java.util.List getFileUrisList(); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ int getFileUrisCount(); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ java.lang.String getFileUris(int index); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - com.google.protobuf.ByteString - getFileUrisBytes(int index); + com.google.protobuf.ByteString getFileUrisBytes(int index); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -131,11 +174,13 @@ public interface SparkRBatchOrBuilder extends
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - java.util.List - getArchiveUrisList(); + java.util.List getArchiveUrisList(); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -143,10 +188,13 @@ public interface SparkRBatchOrBuilder extends
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ int getArchiveUrisCount(); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -154,11 +202,14 @@ public interface SparkRBatchOrBuilder extends
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ java.lang.String getArchiveUris(int index); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -166,9 +217,9 @@ public interface SparkRBatchOrBuilder extends
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - com.google.protobuf.ByteString - getArchiveUrisBytes(int index); + com.google.protobuf.ByteString getArchiveUrisBytes(int index); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java similarity index 70% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java index 74e94b12550d..75d698ebd23c 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A Dataproc job for running
  * [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.SparkRJob}
  */
-public final class SparkRJob extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SparkRJob extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkRJob)
     SparkRJobOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SparkRJob.newBuilder() to construct.
   private SparkRJob(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SparkRJob() {
     mainRFileUri_ = "";
     args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -30,50 +48,53 @@ private SparkRJob() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SparkRJob();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.JobsProto
+        .internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 5:
         return internalGetProperties();
       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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.JobsProto
+        .internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.SparkRJob.class, com.google.cloud.dataproc.v1.SparkRJob.Builder.class);
+            com.google.cloud.dataproc.v1.SparkRJob.class,
+            com.google.cloud.dataproc.v1.SparkRJob.Builder.class);
   }
 
   public static final int MAIN_R_FILE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object mainRFileUri_;
   /**
+   *
+   *
    * 
    * Required. The HCFS URI of the main R file to use as the driver.
    * Must be a .R file.
    * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mainRFileUri. */ @java.lang.Override @@ -82,30 +103,30 @@ public java.lang.String getMainRFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mainRFileUri_ = s; return s; } } /** + * + * *
    * Required. The HCFS URI of the main R file to use as the driver.
    * Must be a .R file.
    * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for mainRFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getMainRFileUriBytes() { + public com.google.protobuf.ByteString getMainRFileUriBytes() { java.lang.Object ref = mainRFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mainRFileUri_ = b; return b; } else { @@ -116,6 +137,8 @@ public java.lang.String getMainRFileUri() { public static final int ARGS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList args_; /** + * + * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -123,13 +146,15 @@ public java.lang.String getMainRFileUri() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_; } /** + * + * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -137,12 +162,15 @@ public java.lang.String getMainRFileUri() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -150,6 +178,7 @@ public int getArgsCount() {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -157,6 +186,8 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -164,48 +195,56 @@ public java.lang.String getArgs(int index) {
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } public static final int FILE_URIS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList fileUris_; /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList - getFileUrisList() { + public com.google.protobuf.ProtocolStringList getFileUrisList() { return fileUris_; } /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -213,23 +252,27 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString - getFileUrisBytes(int index) { + public com.google.protobuf.ByteString getFileUrisBytes(int index) { return fileUris_.getByteString(index); } public static final int ARCHIVE_URIS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList archiveUris_; /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -237,13 +280,15 @@ public java.lang.String getFileUris(int index) {
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList - getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { return archiveUris_; } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -251,12 +296,15 @@ public java.lang.String getFileUris(int index) {
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -264,6 +312,7 @@ public int getArchiveUrisCount() {
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -271,6 +320,8 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -278,33 +329,32 @@ public java.lang.String getArchiveUris(int index) {
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString - getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } public static final int PROPERTIES_FIELD_NUMBER = 5; + private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; - private com.google.protobuf.MapField - internalGetProperties() { + + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -313,6 +363,8 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
    * Optional. A mapping of property names to values, used to configure SparkR.
    * Properties that conflict with values set by the Dataproc API may be
@@ -320,24 +372,25 @@ public int getPropertiesCount() {
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
    * Optional. A mapping of property names to values, used to configure SparkR.
    * Properties that conflict with values set by the Dataproc API may be
@@ -345,14 +398,16 @@ public java.util.Map getProperties() {
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
    * Optional. A mapping of property names to values, used to configure SparkR.
    * Properties that conflict with values set by the Dataproc API may be
@@ -360,19 +415,21 @@ public java.util.Map getPropertiesMap() {
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. A mapping of property names to values, used to configure SparkR.
    * Properties that conflict with values set by the Dataproc API may be
@@ -380,15 +437,15 @@ public java.lang.String getPropertiesOrDefault(
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -398,11 +455,16 @@ public java.lang.String getPropertiesOrThrow( public static final int LOGGING_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ @java.lang.Override @@ -410,23 +472,34 @@ public boolean hasLoggingConfig() { return loggingConfig_ != null; } /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { @@ -434,6 +507,7 @@ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBui } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -445,8 +519,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainRFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainRFileUri_); } @@ -459,12 +532,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < archiveUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, archiveUris_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetProperties(), - PropertiesDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 5); if (loggingConfig_ != null) { output.writeMessage(6, getLoggingConfig()); } @@ -504,19 +573,18 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArchiveUrisList().size(); } - for (java.util.Map.Entry entry - : internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry - properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, properties__); + for (java.util.Map.Entry entry : + internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, properties__); } if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getLoggingConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLoggingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -526,27 +594,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.dataproc.v1.SparkRJob)) { return super.equals(obj); } com.google.cloud.dataproc.v1.SparkRJob other = (com.google.cloud.dataproc.v1.SparkRJob) obj; - if (!getMainRFileUri() - .equals(other.getMainRFileUri())) return false; - if (!getArgsList() - .equals(other.getArgsList())) return false; - if (!getFileUrisList() - .equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList() - .equals(other.getArchiveUrisList())) return false; - if (!internalGetProperties().equals( - other.internalGetProperties())) return false; + if (!getMainRFileUri().equals(other.getMainRFileUri())) return false; + if (!getArgsList().equals(other.getArgsList())) return false; + if (!getFileUrisList().equals(other.getFileUrisList())) return false; + if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; + if (!internalGetProperties().equals(other.internalGetProperties())) return false; if (hasLoggingConfig() != other.hasLoggingConfig()) return false; if (hasLoggingConfig()) { - if (!getLoggingConfig() - .equals(other.getLoggingConfig())) return false; + if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -586,97 +648,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.SparkRJob parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkRJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkRJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkRJob 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.dataproc.v1.SparkRJob parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.SparkRJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc job for running
    * [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
@@ -685,55 +754,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.SparkRJob}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkRJob)
       com.google.cloud.dataproc.v1.SparkRJobOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 5:
           return internalGetProperties();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 5:
           return internalGetMutableProperties();
         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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.SparkRJob.class, com.google.cloud.dataproc.v1.SparkRJob.Builder.class);
+              com.google.cloud.dataproc.v1.SparkRJob.class,
+              com.google.cloud.dataproc.v1.SparkRJob.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.SparkRJob.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -756,9 +822,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor;
     }
 
     @java.lang.Override
@@ -777,7 +843,8 @@ public com.google.cloud.dataproc.v1.SparkRJob build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.SparkRJob buildPartial() {
-      com.google.cloud.dataproc.v1.SparkRJob result = new com.google.cloud.dataproc.v1.SparkRJob(this);
+      com.google.cloud.dataproc.v1.SparkRJob result =
+          new com.google.cloud.dataproc.v1.SparkRJob(this);
       int from_bitField0_ = bitField0_;
       result.mainRFileUri_ = mainRFileUri_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -810,38 +877,39 @@ public com.google.cloud.dataproc.v1.SparkRJob buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.SparkRJob) {
-        return mergeFrom((com.google.cloud.dataproc.v1.SparkRJob)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.SparkRJob) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -884,8 +952,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkRJob other) {
         }
         onChanged();
       }
-      internalGetMutableProperties().mergeFrom(
-          other.internalGetProperties());
+      internalGetMutableProperties().mergeFrom(other.internalGetProperties());
       if (other.hasLoggingConfig()) {
         mergeLoggingConfig(other.getLoggingConfig());
       }
@@ -915,50 +982,57 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              mainRFileUri_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureArgsIsMutable();
-              args_.add(s);
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureFileUrisIsMutable();
-              fileUris_.add(s);
-              break;
-            } // case 26
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureArchiveUrisIsMutable();
-              archiveUris_.add(s);
-              break;
-            } // case 34
-            case 42: {
-              com.google.protobuf.MapEntry
-              properties__ = input.readMessage(
-                  PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableProperties().getMutableMap().put(
-                  properties__.getKey(), properties__.getValue());
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getLoggingConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                mainRFileUri_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureArgsIsMutable();
+                args_.add(s);
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureFileUrisIsMutable();
+                fileUris_.add(s);
+                break;
+              } // case 26
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureArchiveUrisIsMutable();
+                archiveUris_.add(s);
+                break;
+              } // case 34
+            case 42:
+              {
+                com.google.protobuf.MapEntry properties__ =
+                    input.readMessage(
+                        PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableProperties()
+                    .getMutableMap()
+                    .put(properties__.getKey(), properties__.getValue());
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -968,23 +1042,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object mainRFileUri_ = "";
     /**
+     *
+     *
      * 
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a .R file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mainRFileUri. */ public java.lang.String getMainRFileUri() { java.lang.Object ref = mainRFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mainRFileUri_ = s; return s; @@ -993,21 +1070,22 @@ public java.lang.String getMainRFileUri() { } } /** + * + * *
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a .R file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for mainRFileUri. */ - public com.google.protobuf.ByteString - getMainRFileUriBytes() { + public com.google.protobuf.ByteString getMainRFileUriBytes() { java.lang.Object ref = mainRFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mainRFileUri_ = b; return b; } else { @@ -1015,70 +1093,81 @@ public java.lang.String getMainRFileUri() { } } /** + * + * *
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a .R file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The mainRFileUri to set. * @return This builder for chaining. */ - public Builder setMainRFileUri( - java.lang.String value) { + public Builder setMainRFileUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mainRFileUri_ = value; onChanged(); return this; } /** + * + * *
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a .R file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMainRFileUri() { - + mainRFileUri_ = getDefaultInstance().getMainRFileUri(); onChanged(); return this; } /** + * + * *
      * Required. The HCFS URI of the main R file to use as the driver.
      * Must be a .R file.
      * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for mainRFileUri to set. * @return This builder for chaining. */ - public Builder setMainRFileUriBytes( - com.google.protobuf.ByteString value) { + public Builder setMainRFileUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mainRFileUri_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList args_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1086,13 +1175,15 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_.getUnmodifiableView(); } /** + * + * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1100,12 +1191,15 @@ private void ensureArgsIsMutable() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1113,6 +1207,7 @@ public int getArgsCount() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1120,6 +1215,8 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1127,14 +1224,16 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } /** + * + * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1142,21 +1241,23 @@ public java.lang.String getArgs(int index) {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs( - int index, java.lang.String value) { + public Builder setArgs(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1164,20 +1265,22 @@ public Builder setArgs(
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs( - java.lang.String value) { + public Builder addArgs(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1185,18 +1288,19 @@ public Builder addArgs(
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs( - java.lang.Iterable values) { + public Builder addAllArgs(java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); onChanged(); return this; } /** + * + * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1204,6 +1308,7 @@ public Builder addAllArgs(
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearArgs() { @@ -1213,6 +1318,8 @@ public Builder clearArgs() { return this; } /** + * + * *
      * Optional. The arguments to pass to the driver.  Do not include arguments,
      * such as `--conf`, that can be set as job properties, since a collision may
@@ -1220,60 +1327,70 @@ public Builder clearArgs() {
      * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes( - com.google.protobuf.ByteString value) { + public Builder addArgsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList fileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFileUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - public com.google.protobuf.ProtocolStringList - getFileUrisList() { + public com.google.protobuf.ProtocolStringList getFileUrisList() { return fileUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ public int getFileUrisCount() { return fileUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ @@ -1281,85 +1398,95 @@ public java.lang.String getFileUris(int index) { return fileUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - public com.google.protobuf.ByteString - getFileUrisBytes(int index) { + public com.google.protobuf.ByteString getFileUrisBytes(int index) { return fileUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The fileUris to set. * @return This builder for chaining. */ - public Builder setFileUris( - int index, java.lang.String value) { + public Builder setFileUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The fileUris to add. * @return This builder for chaining. */ - public Builder addFileUris( - java.lang.String value) { + public Builder addFileUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The fileUris to add. * @return This builder for chaining. */ - public Builder addAllFileUris( - java.lang.Iterable values) { + public Builder addAllFileUris(java.lang.Iterable values) { ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFileUris() { @@ -1369,35 +1496,41 @@ public Builder clearFileUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of files to be placed in the working directory of
      * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the fileUris to add. * @return This builder for chaining. */ - public Builder addFileUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFileUrisIsMutable(); fileUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList archiveUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArchiveUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1405,13 +1538,15 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - public com.google.protobuf.ProtocolStringList - getArchiveUrisList() { + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { return archiveUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1419,12 +1554,15 @@ private void ensureArchiveUrisIsMutable() {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ public int getArchiveUrisCount() { return archiveUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1432,6 +1570,7 @@ public int getArchiveUrisCount() {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ @@ -1439,6 +1578,8 @@ public java.lang.String getArchiveUris(int index) { return archiveUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1446,14 +1587,16 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - public com.google.protobuf.ByteString - getArchiveUrisBytes(int index) { + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { return archiveUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1461,21 +1604,23 @@ public java.lang.String getArchiveUris(int index) {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The archiveUris to set. * @return This builder for chaining. */ - public Builder setArchiveUris( - int index, java.lang.String value) { + public Builder setArchiveUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1483,20 +1628,22 @@ public Builder setArchiveUris(
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUris( - java.lang.String value) { + public Builder addArchiveUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1504,18 +1651,19 @@ public Builder addArchiveUris(
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The archiveUris to add. * @return This builder for chaining. */ - public Builder addAllArchiveUris( - java.lang.Iterable values) { + public Builder addAllArchiveUris(java.lang.Iterable values) { ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, archiveUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1523,6 +1671,7 @@ public Builder addAllArchiveUris(
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearArchiveUris() { @@ -1532,6 +1681,8 @@ public Builder clearArchiveUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of archives to be extracted into the working directory
      * of each executor. Supported file types:
@@ -1539,37 +1690,39 @@ public Builder clearArchiveUris() {
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the archiveUris to add. * @return This builder for chaining. */ - public Builder addArchiveUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArchiveUrisIsMutable(); archiveUris_.add(value); onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField properties_; + private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } + private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged();; + internalGetMutableProperties() { + onChanged(); + ; if (properties_ == null) { - properties_ = com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); + properties_ = + com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -1581,6 +1734,8 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure SparkR.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1588,24 +1743,25 @@ public int getPropertiesCount() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure SparkR.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1613,14 +1769,16 @@ public java.util.Map getProperties() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure SparkR.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1628,19 +1786,21 @@ public java.util.Map getPropertiesMap() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. A mapping of property names to values, used to configure SparkR.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1648,15 +1808,15 @@ public java.lang.String getPropertiesOrDefault(
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1664,11 +1824,12 @@ public java.lang.String getPropertiesOrThrow( } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap() - .clear(); + internalGetMutableProperties().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. A mapping of property names to values, used to configure SparkR.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1676,25 +1837,24 @@ public Builder clearProperties() {
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableProperties().getMutableMap() - .remove(key); + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProperties().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableProperties() { + public java.util.Map getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure SparkR.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1702,21 +1862,23 @@ public Builder removeProperties(
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putProperties( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putProperties(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"); + } - internalGetMutableProperties().getMutableMap() - .put(key, value); + internalGetMutableProperties().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. A mapping of property names to values, used to configure SparkR.
      * Properties that conflict with values set by the Dataproc API may be
@@ -1724,51 +1886,68 @@ public Builder putProperties(
      * /etc/spark/conf/spark-defaults.conf and classes in user code.
      * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllProperties( - java.util.Map values) { - internalGetMutableProperties().getMutableMap() - .putAll(values); + public Builder putAllProperties(java.util.Map values) { + internalGetMutableProperties().getMutableMap().putAll(values); return this; } private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> loggingConfigBuilder_; + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + loggingConfigBuilder_; /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ public boolean hasLoggingConfig() { return loggingConfigBuilder_ != null || loggingConfig_ != null; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } else { return loggingConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { @@ -1784,11 +1963,15 @@ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLoggingConfig( com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { @@ -1802,17 +1985,23 @@ public Builder setLoggingConfig( return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { if (loggingConfig_ != null) { loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) + .mergeFrom(value) + .buildPartial(); } else { loggingConfig_ = value; } @@ -1824,11 +2013,15 @@ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig val return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearLoggingConfig() { if (loggingConfigBuilder_ == null) { @@ -1842,55 +2035,71 @@ public Builder clearLoggingConfig() { return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - + onChanged(); return getLoggingConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { if (loggingConfigBuilder_ != null) { return loggingConfigBuilder_.getMessageOrBuilder(); } else { - return loggingConfig_ == null ? - com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> getLoggingConfigFieldBuilder() { if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), - getParentForChildren(), - isClean()); + loggingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( + getLoggingConfig(), getParentForChildren(), isClean()); loggingConfig_ = null; } return loggingConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1900,12 +2109,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SparkRJob) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkRJob) private static final com.google.cloud.dataproc.v1.SparkRJob DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkRJob(); } @@ -1914,27 +2123,27 @@ public static com.google.cloud.dataproc.v1.SparkRJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkRJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkRJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1949,6 +2158,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SparkRJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java similarity index 77% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java index 98b4c1c64012..63185648926c 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface SparkRJobOrBuilder extends +public interface SparkRJobOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkRJob) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The HCFS URI of the main R file to use as the driver.
    * Must be a .R file.
    * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mainRFileUri. */ java.lang.String getMainRFileUri(); /** + * + * *
    * Required. The HCFS URI of the main R file to use as the driver.
    * Must be a .R file.
    * 
* * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for mainRFileUri. */ - com.google.protobuf.ByteString - getMainRFileUriBytes(); + com.google.protobuf.ByteString getMainRFileUriBytes(); /** + * + * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -37,11 +60,13 @@ public interface SparkRJobOrBuilder extends
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - java.util.List - getArgsList(); + java.util.List getArgsList(); /** + * + * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -49,10 +74,13 @@ public interface SparkRJobOrBuilder extends
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ int getArgsCount(); /** + * + * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -60,11 +88,14 @@ public interface SparkRJobOrBuilder extends
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** + * + * *
    * Optional. The arguments to pass to the driver.  Do not include arguments,
    * such as `--conf`, that can be set as job properties, since a collision may
@@ -72,58 +103,70 @@ public interface SparkRJobOrBuilder extends
    * 
* * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString - getArgsBytes(int index); + com.google.protobuf.ByteString getArgsBytes(int index); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the fileUris. */ - java.util.List - getFileUrisList(); + java.util.List getFileUrisList(); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of fileUris. */ int getFileUrisCount(); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The fileUris at the given index. */ java.lang.String getFileUris(int index); /** + * + * *
    * Optional. HCFS URIs of files to be placed in the working directory of
    * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the fileUris at the given index. */ - com.google.protobuf.ByteString - getFileUrisBytes(int index); + com.google.protobuf.ByteString getFileUrisBytes(int index); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -131,11 +174,13 @@ public interface SparkRJobOrBuilder extends
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the archiveUris. */ - java.util.List - getArchiveUrisList(); + java.util.List getArchiveUrisList(); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -143,10 +188,13 @@ public interface SparkRJobOrBuilder extends
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of archiveUris. */ int getArchiveUrisCount(); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -154,11 +202,14 @@ public interface SparkRJobOrBuilder extends
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The archiveUris at the given index. */ java.lang.String getArchiveUris(int index); /** + * + * *
    * Optional. HCFS URIs of archives to be extracted into the working directory
    * of each executor. Supported file types:
@@ -166,13 +217,15 @@ public interface SparkRJobOrBuilder extends
    * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the archiveUris at the given index. */ - com.google.protobuf.ByteString - getArchiveUrisBytes(int index); + com.google.protobuf.ByteString getArchiveUrisBytes(int index); /** + * + * *
    * Optional. A mapping of property names to values, used to configure SparkR.
    * Properties that conflict with values set by the Dataproc API may be
@@ -180,10 +233,13 @@ public interface SparkRJobOrBuilder extends
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getPropertiesCount(); /** + * + * *
    * Optional. A mapping of property names to values, used to configure SparkR.
    * Properties that conflict with values set by the Dataproc API may be
@@ -191,17 +247,16 @@ public interface SparkRJobOrBuilder extends
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsProperties( - java.lang.String key); - /** - * Use {@link #getPropertiesMap()} instead. + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsProperties(java.lang.String key); + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getProperties(); + java.util.Map getProperties(); /** + * + * *
    * Optional. A mapping of property names to values, used to configure SparkR.
    * Properties that conflict with values set by the Dataproc API may be
@@ -209,11 +264,13 @@ boolean containsProperties(
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getPropertiesMap(); + java.util.Map getPropertiesMap(); /** + * + * *
    * Optional. A mapping of property names to values, used to configure SparkR.
    * Properties that conflict with values set by the Dataproc API may be
@@ -221,15 +278,18 @@ boolean containsProperties(
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getPropertiesOrDefault( + java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. A mapping of property names to values, used to configure SparkR.
    * Properties that conflict with values set by the Dataproc API may be
@@ -237,36 +297,49 @@ java.lang.String getPropertiesOrDefault(
    * /etc/spark/conf/spark-defaults.conf and classes in user code.
    * 
* - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - java.lang.String getPropertiesOrThrow( - java.lang.String key); + java.lang.String getPropertiesOrThrow(java.lang.String key); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ boolean hasLoggingConfig(); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java similarity index 64% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java index 28bf04869c59..2f60b5de0dc9 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A configuration for running
  * [Apache Spark SQL](http://spark.apache.org/sql/) queries as a batch workload.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.SparkSqlBatch}
  */
-public final class SparkSqlBatch extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SparkSqlBatch extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkSqlBatch)
     SparkSqlBatchOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SparkSqlBatch.newBuilder() to construct.
   private SparkSqlBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SparkSqlBatch() {
     queryFileUri_ = "";
     jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -27,49 +45,52 @@ private SparkSqlBatch() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SparkSqlBatch();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.BatchesProto
+        .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 2:
         return internalGetQueryVariables();
       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.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.BatchesProto
+        .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.SparkSqlBatch.class, com.google.cloud.dataproc.v1.SparkSqlBatch.Builder.class);
+            com.google.cloud.dataproc.v1.SparkSqlBatch.class,
+            com.google.cloud.dataproc.v1.SparkSqlBatch.Builder.class);
   }
 
   public static final int QUERY_FILE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object queryFileUri_;
   /**
+   *
+   *
    * 
    * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
    * 
* * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The queryFileUri. */ @java.lang.Override @@ -78,29 +99,29 @@ public java.lang.String getQueryFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryFileUri_ = s; return s; } } /** + * + * *
    * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
    * 
* * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for queryFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryFileUriBytes() { + public com.google.protobuf.ByteString getQueryFileUriBytes() { java.lang.Object ref = queryFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queryFileUri_ = b; return b; } else { @@ -109,21 +130,22 @@ public java.lang.String getQueryFileUri() { } public static final int QUERY_VARIABLES_FIELD_NUMBER = 2; + private static final class QueryVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> queryVariables_; + + private com.google.protobuf.MapField queryVariables_; + private com.google.protobuf.MapField - internalGetQueryVariables() { + internalGetQueryVariables() { if (queryVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( QueryVariablesDefaultEntryHolder.defaultEntry); @@ -135,74 +157,81 @@ public int getQueryVariablesCount() { return internalGetQueryVariables().getMap().size(); } /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: `SET name="value";`).
    * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsQueryVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsQueryVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetQueryVariables().getMap().containsKey(key); } - /** - * Use {@link #getQueryVariablesMap()} instead. - */ + /** Use {@link #getQueryVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getQueryVariables() { return getQueryVariablesMap(); } /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: `SET name="value";`).
    * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getQueryVariablesMap() { return internalGetQueryVariables().getMap(); } /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: `SET name="value";`).
    * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getQueryVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetQueryVariables().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetQueryVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: `SET name="value";`).
    * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getQueryVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetQueryVariables().getMap(); + public java.lang.String getQueryVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetQueryVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -212,34 +241,42 @@ public java.lang.String getQueryVariablesOrThrow( public static final int JAR_FILE_URIS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList jarFileUris_; /** + * + * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList - getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { return jarFileUris_; } /** + * + * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -247,20 +284,23 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString - getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,17 +312,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(queryFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryFileUri_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetQueryVariables(), - QueryVariablesDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetQueryVariables(), QueryVariablesDefaultEntryHolder.defaultEntry, 2); for (int i = 0; i < jarFileUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jarFileUris_.getRaw(i)); } @@ -298,15 +333,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryFileUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queryFileUri_); } - for (java.util.Map.Entry entry - : internalGetQueryVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry - queryVariables__ = QueryVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, queryVariables__); + for (java.util.Map.Entry entry : + internalGetQueryVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry queryVariables__ = + QueryVariablesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, queryVariables__); } { int dataSize = 0; @@ -324,19 +359,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.SparkSqlBatch)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.SparkSqlBatch other = (com.google.cloud.dataproc.v1.SparkSqlBatch) obj; + com.google.cloud.dataproc.v1.SparkSqlBatch other = + (com.google.cloud.dataproc.v1.SparkSqlBatch) obj; - if (!getQueryFileUri() - .equals(other.getQueryFileUri())) return false; - if (!internalGetQueryVariables().equals( - other.internalGetQueryVariables())) return false; - if (!getJarFileUrisList() - .equals(other.getJarFileUrisList())) return false; + if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; + if (!internalGetQueryVariables().equals(other.internalGetQueryVariables())) return false; + if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -363,97 +396,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.SparkSqlBatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 configuration for running
    * [Apache Spark SQL](http://spark.apache.org/sql/) queries as a batch workload.
@@ -461,55 +501,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.SparkSqlBatch}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkSqlBatch)
       com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.BatchesProto
+          .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 2:
           return internalGetQueryVariables();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 2:
           return internalGetMutableQueryVariables();
         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.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.BatchesProto
+          .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.SparkSqlBatch.class, com.google.cloud.dataproc.v1.SparkSqlBatch.Builder.class);
+              com.google.cloud.dataproc.v1.SparkSqlBatch.class,
+              com.google.cloud.dataproc.v1.SparkSqlBatch.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.SparkSqlBatch.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -522,9 +559,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.BatchesProto.internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.BatchesProto
+          .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor;
     }
 
     @java.lang.Override
@@ -543,7 +580,8 @@ public com.google.cloud.dataproc.v1.SparkSqlBatch build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.SparkSqlBatch buildPartial() {
-      com.google.cloud.dataproc.v1.SparkSqlBatch result = new com.google.cloud.dataproc.v1.SparkSqlBatch(this);
+      com.google.cloud.dataproc.v1.SparkSqlBatch result =
+          new com.google.cloud.dataproc.v1.SparkSqlBatch(this);
       int from_bitField0_ = bitField0_;
       result.queryFileUri_ = queryFileUri_;
       result.queryVariables_ = internalGetQueryVariables();
@@ -561,38 +599,39 @@ public com.google.cloud.dataproc.v1.SparkSqlBatch buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.SparkSqlBatch) {
-        return mergeFrom((com.google.cloud.dataproc.v1.SparkSqlBatch)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.SparkSqlBatch) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -605,8 +644,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkSqlBatch other) {
         queryFileUri_ = other.queryFileUri_;
         onChanged();
       }
-      internalGetMutableQueryVariables().mergeFrom(
-          other.internalGetQueryVariables());
+      internalGetMutableQueryVariables().mergeFrom(other.internalGetQueryVariables());
       if (!other.jarFileUris_.isEmpty()) {
         if (jarFileUris_.isEmpty()) {
           jarFileUris_ = other.jarFileUris_;
@@ -643,31 +681,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              queryFileUri_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                queryFileUri_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              com.google.protobuf.MapEntry
-              queryVariables__ = input.readMessage(
-                  QueryVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableQueryVariables().getMutableMap().put(
-                  queryVariables__.getKey(), queryVariables__.getValue());
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureJarFileUrisIsMutable();
-              jarFileUris_.add(s);
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.protobuf.MapEntry queryVariables__ =
+                    input.readMessage(
+                        QueryVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableQueryVariables()
+                    .getMutableMap()
+                    .put(queryVariables__.getKey(), queryVariables__.getValue());
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureJarFileUrisIsMutable();
+                jarFileUris_.add(s);
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -677,22 +721,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object queryFileUri_ = "";
     /**
+     *
+     *
      * 
      * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
      * 
* * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The queryFileUri. */ public java.lang.String getQueryFileUri() { java.lang.Object ref = queryFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryFileUri_ = s; return s; @@ -701,20 +748,21 @@ public java.lang.String getQueryFileUri() { } } /** + * + * *
      * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
      * 
* * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for queryFileUri. */ - public com.google.protobuf.ByteString - getQueryFileUriBytes() { + public com.google.protobuf.ByteString getQueryFileUriBytes() { java.lang.Object ref = queryFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queryFileUri_ = b; return b; } else { @@ -722,75 +770,84 @@ public java.lang.String getQueryFileUri() { } } /** + * + * *
      * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
      * 
* * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUri( - java.lang.String value) { + public Builder setQueryFileUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + queryFileUri_ = value; onChanged(); return this; } /** + * + * *
      * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
      * 
* * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearQueryFileUri() { - + queryFileUri_ = getDefaultInstance().getQueryFileUri(); onChanged(); return this; } /** + * + * *
      * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
      * 
* * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUriBytes( - com.google.protobuf.ByteString value) { + public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryFileUri_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> queryVariables_; + private com.google.protobuf.MapField queryVariables_; + private com.google.protobuf.MapField - internalGetQueryVariables() { + internalGetQueryVariables() { if (queryVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( QueryVariablesDefaultEntryHolder.defaultEntry); } return queryVariables_; } + private com.google.protobuf.MapField - internalGetMutableQueryVariables() { - onChanged();; + internalGetMutableQueryVariables() { + onChanged(); + ; if (queryVariables_ == null) { - queryVariables_ = com.google.protobuf.MapField.newMapField( - QueryVariablesDefaultEntryHolder.defaultEntry); + queryVariables_ = + com.google.protobuf.MapField.newMapField(QueryVariablesDefaultEntryHolder.defaultEntry); } if (!queryVariables_.isMutable()) { queryVariables_ = queryVariables_.copy(); @@ -802,74 +859,85 @@ public int getQueryVariablesCount() { return internalGetQueryVariables().getMap().size(); } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: `SET name="value";`).
      * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsQueryVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsQueryVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetQueryVariables().getMap().containsKey(key); } - /** - * Use {@link #getQueryVariablesMap()} instead. - */ + /** Use {@link #getQueryVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getQueryVariables() { return getQueryVariablesMap(); } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: `SET name="value";`).
      * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getQueryVariablesMap() { return internalGetQueryVariables().getMap(); } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: `SET name="value";`).
      * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getQueryVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetQueryVariables().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetQueryVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: `SET name="value";`).
      * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getQueryVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetQueryVariables().getMap(); + public java.lang.String getQueryVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetQueryVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -877,106 +945,119 @@ public java.lang.String getQueryVariablesOrThrow( } public Builder clearQueryVariables() { - internalGetMutableQueryVariables().getMutableMap() - .clear(); + internalGetMutableQueryVariables().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: `SET name="value";`).
      * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeQueryVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableQueryVariables().getMutableMap() - .remove(key); + public Builder removeQueryVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableQueryVariables().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableQueryVariables() { + public java.util.Map getMutableQueryVariables() { return internalGetMutableQueryVariables().getMutableMap(); } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: `SET name="value";`).
      * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putQueryVariables( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putQueryVariables(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"); + } - internalGetMutableQueryVariables().getMutableMap() - .put(key, value); + internalGetMutableQueryVariables().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: `SET name="value";`).
      * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllQueryVariables( - java.util.Map values) { - internalGetMutableQueryVariables().getMutableMap() - .putAll(values); + public Builder putAllQueryVariables(java.util.Map values) { + internalGetMutableQueryVariables().getMutableMap().putAll(values); return this; } - private com.google.protobuf.LazyStringList jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList jarFileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureJarFileUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList - getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { return jarFileUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -984,80 +1065,90 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString - getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The jarFileUris to set. * @return This builder for chaining. */ - public Builder setJarFileUris( - int index, java.lang.String value) { + public Builder setJarFileUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUris( - java.lang.String value) { + public Builder addJarFileUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The jarFileUris to add. * @return This builder for chaining. */ - public Builder addAllJarFileUris( - java.lang.Iterable values) { + public Builder addAllJarFileUris(java.lang.Iterable values) { ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, jarFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearJarFileUris() { @@ -1067,28 +1158,30 @@ public Builder clearJarFileUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureJarFileUrisIsMutable(); jarFileUris_.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); } @@ -1098,12 +1191,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SparkSqlBatch) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkSqlBatch) private static final com.google.cloud.dataproc.v1.SparkSqlBatch DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkSqlBatch(); } @@ -1112,27 +1205,27 @@ public static com.google.cloud.dataproc.v1.SparkSqlBatch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkSqlBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkSqlBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1147,6 +1240,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SparkSqlBatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java similarity index 67% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java index 8f8ba6cabc9a..7d6a521457e3 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java @@ -1,131 +1,170 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/batches.proto package com.google.cloud.dataproc.v1; -public interface SparkSqlBatchOrBuilder extends +public interface SparkSqlBatchOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkSqlBatch) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
    * 
* * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The queryFileUri. */ java.lang.String getQueryFileUri(); /** + * + * *
    * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
    * 
* * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for queryFileUri. */ - com.google.protobuf.ByteString - getQueryFileUriBytes(); + com.google.protobuf.ByteString getQueryFileUriBytes(); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: `SET name="value";`).
    * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getQueryVariablesCount(); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: `SET name="value";`).
    * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsQueryVariables( - java.lang.String key); - /** - * Use {@link #getQueryVariablesMap()} instead. + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsQueryVariables(java.lang.String key); + /** Use {@link #getQueryVariablesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getQueryVariables(); + java.util.Map getQueryVariables(); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: `SET name="value";`).
    * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getQueryVariablesMap(); + java.util.Map getQueryVariablesMap(); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: `SET name="value";`).
    * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getQueryVariablesOrDefault( + java.lang.String getQueryVariablesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: `SET name="value";`).
    * 
* - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - java.lang.String getQueryVariablesOrThrow( - java.lang.String key); + java.lang.String getQueryVariablesOrThrow(java.lang.String key); /** + * + * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - java.util.List - getJarFileUrisList(); + java.util.List getJarFileUrisList(); /** + * + * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ int getJarFileUrisCount(); /** + * + * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ java.lang.String getJarFileUris(int index); /** + * + * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - com.google.protobuf.ByteString - getJarFileUrisBytes(int index); + com.google.protobuf.ByteString getJarFileUrisBytes(int index); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java similarity index 63% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java index ac43169e8c94..7b4e8c18f443 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A Dataproc job for running [Apache Spark
  * SQL](https://spark.apache.org/sql/) queries.
@@ -11,67 +28,71 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.SparkSqlJob}
  */
-public final class SparkSqlJob extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SparkSqlJob extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkSqlJob)
     SparkSqlJobOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SparkSqlJob.newBuilder() to construct.
   private SparkSqlJob(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SparkSqlJob() {
     jarFileUris_ = 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 SparkSqlJob();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.JobsProto
+        .internal_static_google_cloud_dataproc_v1_SparkSqlJob_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 3:
         return internalGetScriptVariables();
       case 4:
         return internalGetProperties();
       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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.JobsProto
+        .internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.SparkSqlJob.class, com.google.cloud.dataproc.v1.SparkSqlJob.Builder.class);
+            com.google.cloud.dataproc.v1.SparkSqlJob.class,
+            com.google.cloud.dataproc.v1.SparkSqlJob.Builder.class);
   }
 
   private int queriesCase_ = 0;
   private java.lang.Object queries_;
+
   public enum QueriesCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     QUERY_FILE_URI(1),
     QUERY_LIST(2),
     QUERIES_NOT_SET(0);
     private final int value;
+
     private QueriesCase(int value) {
       this.value = value;
     }
@@ -87,41 +108,50 @@ public static QueriesCase valueOf(int value) {
 
     public static QueriesCase forNumber(int value) {
       switch (value) {
-        case 1: return QUERY_FILE_URI;
-        case 2: return QUERY_LIST;
-        case 0: return QUERIES_NOT_SET;
-        default: return null;
+        case 1:
+          return QUERY_FILE_URI;
+        case 2:
+          return QUERY_LIST;
+        case 0:
+          return QUERIES_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public QueriesCase
-  getQueriesCase() {
-    return QueriesCase.forNumber(
-        queriesCase_);
+  public QueriesCase getQueriesCase() {
+    return QueriesCase.forNumber(queriesCase_);
   }
 
   public static final int QUERY_FILE_URI_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; + * * @return Whether the queryFileUri field is set. */ public boolean hasQueryFileUri() { return queriesCase_ == 1; } /** + * + * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; + * * @return The queryFileUri. */ public java.lang.String getQueryFileUri() { @@ -132,8 +162,7 @@ public java.lang.String getQueryFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (queriesCase_ == 1) { queries_ = s; @@ -142,23 +171,24 @@ public java.lang.String getQueryFileUri() { } } /** + * + * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; + * * @return The bytes for queryFileUri. */ - public com.google.protobuf.ByteString - getQueryFileUriBytes() { + public com.google.protobuf.ByteString getQueryFileUriBytes() { java.lang.Object ref = ""; if (queriesCase_ == 1) { ref = queries_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (queriesCase_ == 1) { queries_ = b; } @@ -170,11 +200,14 @@ public java.lang.String getQueryFileUri() { public static final int QUERY_LIST_FIELD_NUMBER = 2; /** + * + * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return Whether the queryList field is set. */ @java.lang.Override @@ -182,21 +215,26 @@ public boolean hasQueryList() { return queriesCase_ == 2; } /** + * + * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return The queryList. */ @java.lang.Override public com.google.cloud.dataproc.v1.QueryList getQueryList() { if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; + return (com.google.cloud.dataproc.v1.QueryList) queries_; } return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } /** + * + * *
    * A list of queries.
    * 
@@ -206,27 +244,28 @@ public com.google.cloud.dataproc.v1.QueryList getQueryList() { @java.lang.Override public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; + return (com.google.cloud.dataproc.v1.QueryList) queries_; } return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } public static final int SCRIPT_VARIABLES_FIELD_NUMBER = 3; + private static final class ScriptVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> scriptVariables_; + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField scriptVariables_; + private com.google.protobuf.MapField - internalGetScriptVariables() { + internalGetScriptVariables() { if (scriptVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( ScriptVariablesDefaultEntryHolder.defaultEntry); @@ -238,74 +277,81 @@ public int getScriptVariablesCount() { return internalGetScriptVariables().getMap().size(); } /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: SET `name="value";`).
    * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsScriptVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsScriptVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetScriptVariables().getMap().containsKey(key); } - /** - * Use {@link #getScriptVariablesMap()} instead. - */ + /** Use {@link #getScriptVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getScriptVariables() { return getScriptVariablesMap(); } /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: SET `name="value";`).
    * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getScriptVariablesMap() { return internalGetScriptVariables().getMap(); } /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: SET `name="value";`).
    * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetScriptVariables().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetScriptVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: SET `name="value";`).
    * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getScriptVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetScriptVariables().getMap(); + public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetScriptVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -313,24 +359,23 @@ public java.lang.String getScriptVariablesOrThrow( } public static final int PROPERTIES_FIELD_NUMBER = 4; + private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; - private com.google.protobuf.MapField - internalGetProperties() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -339,78 +384,85 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
    * Optional. A mapping of property names to values, used to configure
    * Spark SQL's SparkConf. Properties that conflict with values set by the
    * Dataproc API may be overwritten.
    * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
    * Optional. A mapping of property names to values, used to configure
    * Spark SQL's SparkConf. Properties that conflict with values set by the
    * Dataproc API may be overwritten.
    * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
    * Optional. A mapping of property names to values, used to configure
    * Spark SQL's SparkConf. Properties that conflict with values set by the
    * Dataproc API may be overwritten.
    * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. A mapping of property names to values, used to configure
    * Spark SQL's SparkConf. Properties that conflict with values set by the
    * Dataproc API may be overwritten.
    * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -420,34 +472,42 @@ public java.lang.String getPropertiesOrThrow( public static final int JAR_FILE_URIS_FIELD_NUMBER = 56; private com.google.protobuf.LazyStringList jarFileUris_; /** + * + * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList - getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { return jarFileUris_; } /** + * + * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** + * + * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -455,27 +515,34 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** + * + * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString - getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } public static final int LOGGING_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ @java.lang.Override @@ -483,23 +550,34 @@ public boolean hasLoggingConfig() { return loggingConfig_ != null; } /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { @@ -507,6 +585,7 @@ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBui } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -518,26 +597,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 (queriesCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_); } if (queriesCase_ == 2) { output.writeMessage(2, (com.google.cloud.dataproc.v1.QueryList) queries_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetScriptVariables(), - ScriptVariablesDefaultEntryHolder.defaultEntry, - 3); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetProperties(), - PropertiesDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetScriptVariables(), ScriptVariablesDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 4); if (loggingConfig_ != null) { output.writeMessage(6, getLoggingConfig()); } @@ -557,32 +627,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queries_); } if (queriesCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.dataproc.v1.QueryList) queries_); - } - for (java.util.Map.Entry entry - : internalGetScriptVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry - scriptVariables__ = ScriptVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, scriptVariables__); - } - for (java.util.Map.Entry entry - : internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry - properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, properties__); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataproc.v1.QueryList) queries_); + } + for (java.util.Map.Entry entry : + internalGetScriptVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry scriptVariables__ = + ScriptVariablesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, scriptVariables__); + } + for (java.util.Map.Entry entry : + internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, properties__); } if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getLoggingConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLoggingConfig()); } { int dataSize = 0; @@ -600,33 +670,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.SparkSqlJob)) { return super.equals(obj); } com.google.cloud.dataproc.v1.SparkSqlJob other = (com.google.cloud.dataproc.v1.SparkSqlJob) obj; - if (!internalGetScriptVariables().equals( - other.internalGetScriptVariables())) return false; - if (!internalGetProperties().equals( - other.internalGetProperties())) return false; - if (!getJarFileUrisList() - .equals(other.getJarFileUrisList())) return false; + if (!internalGetScriptVariables().equals(other.internalGetScriptVariables())) return false; + if (!internalGetProperties().equals(other.internalGetProperties())) return false; + if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; if (hasLoggingConfig() != other.hasLoggingConfig()) return false; if (hasLoggingConfig()) { - if (!getLoggingConfig() - .equals(other.getLoggingConfig())) return false; + if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; } if (!getQueriesCase().equals(other.getQueriesCase())) return false; switch (queriesCase_) { case 1: - if (!getQueryFileUri() - .equals(other.getQueryFileUri())) return false; + if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; break; case 2: - if (!getQueryList() - .equals(other.getQueryList())) return false; + if (!getQueryList().equals(other.getQueryList())) return false; break; case 0: default: @@ -675,97 +739,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SparkSqlJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.SparkSqlJob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkSqlJob parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.SparkSqlJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc job for running [Apache Spark
    * SQL](https://spark.apache.org/sql/) queries.
@@ -773,59 +844,56 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.SparkSqlJob}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkSqlJob)
       com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 3:
           return internalGetScriptVariables();
         case 4:
           return internalGetProperties();
         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 3:
           return internalGetMutableScriptVariables();
         case 4:
           return internalGetMutableProperties();
         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.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.SparkSqlJob.class, com.google.cloud.dataproc.v1.SparkSqlJob.Builder.class);
+              com.google.cloud.dataproc.v1.SparkSqlJob.class,
+              com.google.cloud.dataproc.v1.SparkSqlJob.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.SparkSqlJob.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -848,9 +916,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor;
     }
 
     @java.lang.Override
@@ -869,7 +937,8 @@ public com.google.cloud.dataproc.v1.SparkSqlJob build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.SparkSqlJob buildPartial() {
-      com.google.cloud.dataproc.v1.SparkSqlJob result = new com.google.cloud.dataproc.v1.SparkSqlJob(this);
+      com.google.cloud.dataproc.v1.SparkSqlJob result =
+          new com.google.cloud.dataproc.v1.SparkSqlJob(this);
       int from_bitField0_ = bitField0_;
       if (queriesCase_ == 1) {
         result.queries_ = queries_;
@@ -904,38 +973,39 @@ public com.google.cloud.dataproc.v1.SparkSqlJob buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.SparkSqlJob) {
-        return mergeFrom((com.google.cloud.dataproc.v1.SparkSqlJob)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.SparkSqlJob) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -944,10 +1014,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkSqlJob other) {
       if (other == com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance()) return this;
-      internalGetMutableScriptVariables().mergeFrom(
-          other.internalGetScriptVariables());
-      internalGetMutableProperties().mergeFrom(
-          other.internalGetProperties());
+      internalGetMutableScriptVariables().mergeFrom(other.internalGetScriptVariables());
+      internalGetMutableProperties().mergeFrom(other.internalGetProperties());
       if (!other.jarFileUris_.isEmpty()) {
         if (jarFileUris_.isEmpty()) {
           jarFileUris_ = other.jarFileUris_;
@@ -962,19 +1030,22 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkSqlJob other) {
         mergeLoggingConfig(other.getLoggingConfig());
       }
       switch (other.getQueriesCase()) {
-        case QUERY_FILE_URI: {
-          queriesCase_ = 1;
-          queries_ = other.queries_;
-          onChanged();
-          break;
-        }
-        case QUERY_LIST: {
-          mergeQueryList(other.getQueryList());
-          break;
-        }
-        case QUERIES_NOT_SET: {
-          break;
-        }
+        case QUERY_FILE_URI:
+          {
+            queriesCase_ = 1;
+            queries_ = other.queries_;
+            onChanged();
+            break;
+          }
+        case QUERY_LIST:
+          {
+            mergeQueryList(other.getQueryList());
+            break;
+          }
+        case QUERIES_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1002,54 +1073,61 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              queriesCase_ = 1;
-              queries_ = s;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getQueryListFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              queriesCase_ = 2;
-              break;
-            } // case 18
-            case 26: {
-              com.google.protobuf.MapEntry
-              scriptVariables__ = input.readMessage(
-                  ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableScriptVariables().getMutableMap().put(
-                  scriptVariables__.getKey(), scriptVariables__.getValue());
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              properties__ = input.readMessage(
-                  PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableProperties().getMutableMap().put(
-                  properties__.getKey(), properties__.getValue());
-              break;
-            } // case 34
-            case 50: {
-              input.readMessage(
-                  getLoggingConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 50
-            case 450: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureJarFileUrisIsMutable();
-              jarFileUris_.add(s);
-              break;
-            } // case 450
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                queriesCase_ = 1;
+                queries_ = s;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getQueryListFieldBuilder().getBuilder(), extensionRegistry);
+                queriesCase_ = 2;
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.protobuf.MapEntry scriptVariables__ =
+                    input.readMessage(
+                        ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableScriptVariables()
+                    .getMutableMap()
+                    .put(scriptVariables__.getKey(), scriptVariables__.getValue());
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry properties__ =
+                    input.readMessage(
+                        PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableProperties()
+                    .getMutableMap()
+                    .put(properties__.getKey(), properties__.getValue());
+                break;
+              } // case 34
+            case 50:
+              {
+                input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 50
+            case 450:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureJarFileUrisIsMutable();
+                jarFileUris_.add(s);
+                break;
+              } // case 450
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1059,12 +1137,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int queriesCase_ = 0;
     private java.lang.Object queries_;
-    public QueriesCase
-        getQueriesCase() {
-      return QueriesCase.forNumber(
-          queriesCase_);
+
+    public QueriesCase getQueriesCase() {
+      return QueriesCase.forNumber(queriesCase_);
     }
 
     public Builder clearQueries() {
@@ -1077,11 +1155,14 @@ public Builder clearQueries() {
     private int bitField0_;
 
     /**
+     *
+     *
      * 
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; + * * @return Whether the queryFileUri field is set. */ @java.lang.Override @@ -1089,11 +1170,14 @@ public boolean hasQueryFileUri() { return queriesCase_ == 1; } /** + * + * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; + * * @return The queryFileUri. */ @java.lang.Override @@ -1103,8 +1187,7 @@ public java.lang.String getQueryFileUri() { ref = queries_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (queriesCase_ == 1) { queries_ = s; @@ -1115,24 +1198,25 @@ public java.lang.String getQueryFileUri() { } } /** + * + * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; + * * @return The bytes for queryFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryFileUriBytes() { + public com.google.protobuf.ByteString getQueryFileUriBytes() { java.lang.Object ref = ""; if (queriesCase_ == 1) { ref = queries_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (queriesCase_ == 1) { queries_ = b; } @@ -1142,30 +1226,35 @@ public java.lang.String getQueryFileUri() { } } /** + * + * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; + * * @param value The queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUri( - java.lang.String value) { + public Builder setQueryFileUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - queriesCase_ = 1; + throw new NullPointerException(); + } + queriesCase_ = 1; queries_ = value; onChanged(); return this; } /** + * + * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; + * * @return This builder for chaining. */ public Builder clearQueryFileUri() { @@ -1177,20 +1266,22 @@ public Builder clearQueryFileUri() { return this; } /** + * + * *
      * The HCFS URI of the script that contains SQL queries.
      * 
* * string query_file_uri = 1; + * * @param value The bytes for queryFileUri to set. * @return This builder for chaining. */ - public Builder setQueryFileUriBytes( - com.google.protobuf.ByteString value) { + public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); queriesCase_ = 1; queries_ = value; onChanged(); @@ -1198,13 +1289,19 @@ public Builder setQueryFileUriBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder> queryListBuilder_; + com.google.cloud.dataproc.v1.QueryList, + com.google.cloud.dataproc.v1.QueryList.Builder, + com.google.cloud.dataproc.v1.QueryListOrBuilder> + queryListBuilder_; /** + * + * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return Whether the queryList field is set. */ @java.lang.Override @@ -1212,11 +1309,14 @@ public boolean hasQueryList() { return queriesCase_ == 2; } /** + * + * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return The queryList. */ @java.lang.Override @@ -1234,6 +1334,8 @@ public com.google.cloud.dataproc.v1.QueryList getQueryList() { } } /** + * + * *
      * A list of queries.
      * 
@@ -1254,14 +1356,15 @@ public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList value) { return this; } /** + * + * *
      * A list of queries.
      * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; */ - public Builder setQueryList( - com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { + public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { if (queryListBuilder_ == null) { queries_ = builderForValue.build(); onChanged(); @@ -1272,6 +1375,8 @@ public Builder setQueryList( return this; } /** + * + * *
      * A list of queries.
      * 
@@ -1280,10 +1385,13 @@ public Builder setQueryList( */ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { if (queryListBuilder_ == null) { - if (queriesCase_ == 2 && - queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { - queries_ = com.google.cloud.dataproc.v1.QueryList.newBuilder((com.google.cloud.dataproc.v1.QueryList) queries_) - .mergeFrom(value).buildPartial(); + if (queriesCase_ == 2 + && queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { + queries_ = + com.google.cloud.dataproc.v1.QueryList.newBuilder( + (com.google.cloud.dataproc.v1.QueryList) queries_) + .mergeFrom(value) + .buildPartial(); } else { queries_ = value; } @@ -1299,6 +1407,8 @@ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { return this; } /** + * + * *
      * A list of queries.
      * 
@@ -1322,6 +1432,8 @@ public Builder clearQueryList() { return this; } /** + * + * *
      * A list of queries.
      * 
@@ -1332,6 +1444,8 @@ public com.google.cloud.dataproc.v1.QueryList.Builder getQueryListBuilder() { return getQueryListFieldBuilder().getBuilder(); } /** + * + * *
      * A list of queries.
      * 
@@ -1350,6 +1464,8 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { } } /** + * + * *
      * A list of queries.
      * 
@@ -1357,40 +1473,49 @@ public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { * .google.cloud.dataproc.v1.QueryList query_list = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder> + com.google.cloud.dataproc.v1.QueryList, + com.google.cloud.dataproc.v1.QueryList.Builder, + com.google.cloud.dataproc.v1.QueryListOrBuilder> getQueryListFieldBuilder() { if (queryListBuilder_ == null) { if (!(queriesCase_ == 2)) { queries_ = com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); } - queryListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, com.google.cloud.dataproc.v1.QueryList.Builder, com.google.cloud.dataproc.v1.QueryListOrBuilder>( + queryListBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.QueryList, + com.google.cloud.dataproc.v1.QueryList.Builder, + com.google.cloud.dataproc.v1.QueryListOrBuilder>( (com.google.cloud.dataproc.v1.QueryList) queries_, getParentForChildren(), isClean()); queries_ = null; } queriesCase_ = 2; - onChanged();; + onChanged(); + ; return queryListBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> scriptVariables_; + private com.google.protobuf.MapField scriptVariables_; + private com.google.protobuf.MapField - internalGetScriptVariables() { + internalGetScriptVariables() { if (scriptVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( ScriptVariablesDefaultEntryHolder.defaultEntry); } return scriptVariables_; } + private com.google.protobuf.MapField - internalGetMutableScriptVariables() { - onChanged();; + internalGetMutableScriptVariables() { + onChanged(); + ; if (scriptVariables_ == null) { - scriptVariables_ = com.google.protobuf.MapField.newMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); + scriptVariables_ = + com.google.protobuf.MapField.newMapField( + ScriptVariablesDefaultEntryHolder.defaultEntry); } if (!scriptVariables_.isMutable()) { scriptVariables_ = scriptVariables_.copy(); @@ -1402,74 +1527,85 @@ public int getScriptVariablesCount() { return internalGetScriptVariables().getMap().size(); } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: SET `name="value";`).
      * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsScriptVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsScriptVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetScriptVariables().getMap().containsKey(key); } - /** - * Use {@link #getScriptVariablesMap()} instead. - */ + /** Use {@link #getScriptVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getScriptVariables() { return getScriptVariablesMap(); } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: SET `name="value";`).
      * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getScriptVariablesMap() { return internalGetScriptVariables().getMap(); } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: SET `name="value";`).
      * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetScriptVariables().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetScriptVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: SET `name="value";`).
      * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getScriptVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetScriptVariables().getMap(); + public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetScriptVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1477,86 +1613,91 @@ public java.lang.String getScriptVariablesOrThrow( } public Builder clearScriptVariables() { - internalGetMutableScriptVariables().getMutableMap() - .clear(); + internalGetMutableScriptVariables().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: SET `name="value";`).
      * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeScriptVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableScriptVariables().getMutableMap() - .remove(key); + public Builder removeScriptVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableScriptVariables().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableScriptVariables() { + public java.util.Map getMutableScriptVariables() { return internalGetMutableScriptVariables().getMutableMap(); } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: SET `name="value";`).
      * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putScriptVariables( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putScriptVariables(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"); + } - internalGetMutableScriptVariables().getMutableMap() - .put(key, value); + internalGetMutableScriptVariables().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Mapping of query variable names to values (equivalent to the
      * Spark SQL command: SET `name="value";`).
      * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllScriptVariables( - java.util.Map values) { - internalGetMutableScriptVariables().getMutableMap() - .putAll(values); + public Builder putAllScriptVariables(java.util.Map values) { + internalGetMutableScriptVariables().getMutableMap().putAll(values); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField properties_; + private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } + private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged();; + internalGetMutableProperties() { + onChanged(); + ; if (properties_ == null) { - properties_ = com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); + properties_ = + com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -1568,78 +1709,85 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure
      * Spark SQL's SparkConf. Properties that conflict with values set by the
      * Dataproc API may be overwritten.
      * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure
      * Spark SQL's SparkConf. Properties that conflict with values set by the
      * Dataproc API may be overwritten.
      * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure
      * Spark SQL's SparkConf. Properties that conflict with values set by the
      * Dataproc API may be overwritten.
      * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. A mapping of property names to values, used to configure
      * Spark SQL's SparkConf. Properties that conflict with values set by the
      * Dataproc API may be overwritten.
      * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetProperties().getMap(); + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1647,109 +1795,119 @@ public java.lang.String getPropertiesOrThrow( } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap() - .clear(); + internalGetMutableProperties().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. A mapping of property names to values, used to configure
      * Spark SQL's SparkConf. Properties that conflict with values set by the
      * Dataproc API may be overwritten.
      * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableProperties().getMutableMap() - .remove(key); + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProperties().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableProperties() { + public java.util.Map getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** + * + * *
      * Optional. A mapping of property names to values, used to configure
      * Spark SQL's SparkConf. Properties that conflict with values set by the
      * Dataproc API may be overwritten.
      * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putProperties( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putProperties(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"); + } - internalGetMutableProperties().getMutableMap() - .put(key, value); + internalGetMutableProperties().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. A mapping of property names to values, used to configure
      * Spark SQL's SparkConf. Properties that conflict with values set by the
      * Dataproc API may be overwritten.
      * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllProperties( - java.util.Map values) { - internalGetMutableProperties().getMutableMap() - .putAll(values); + public Builder putAllProperties(java.util.Map values) { + internalGetMutableProperties().getMutableMap().putAll(values); return this; } - private com.google.protobuf.LazyStringList jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList jarFileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureJarFileUrisIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - public com.google.protobuf.ProtocolStringList - getJarFileUrisList() { + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { return jarFileUris_.getUnmodifiableView(); } /** + * + * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ public int getJarFileUrisCount() { return jarFileUris_.size(); } /** + * + * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ @@ -1757,80 +1915,90 @@ public java.lang.String getJarFileUris(int index) { return jarFileUris_.get(index); } /** + * + * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - public com.google.protobuf.ByteString - getJarFileUrisBytes(int index) { + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { return jarFileUris_.getByteString(index); } /** + * + * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The jarFileUris to set. * @return This builder for chaining. */ - public Builder setJarFileUris( - int index, java.lang.String value) { + public Builder setJarFileUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUris( - java.lang.String value) { + public Builder addJarFileUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The jarFileUris to add. * @return This builder for chaining. */ - public Builder addAllJarFileUris( - java.lang.Iterable values) { + public Builder addAllJarFileUris(java.lang.Iterable values) { ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, jarFileUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); onChanged(); return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearJarFileUris() { @@ -1840,20 +2008,22 @@ public Builder clearJarFileUris() { return this; } /** + * + * *
      * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
      * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the jarFileUris to add. * @return This builder for chaining. */ - public Builder addJarFileUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureJarFileUrisIsMutable(); jarFileUris_.add(value); onChanged(); @@ -1862,39 +2032,58 @@ public Builder addJarFileUrisBytes( private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> loggingConfigBuilder_; + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + loggingConfigBuilder_; /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ public boolean hasLoggingConfig() { return loggingConfigBuilder_ != null || loggingConfig_ != null; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } else { return loggingConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { @@ -1910,11 +2099,15 @@ public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLoggingConfig( com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { @@ -1928,17 +2121,23 @@ public Builder setLoggingConfig( return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { if (loggingConfig_ != null) { loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) + .mergeFrom(value) + .buildPartial(); } else { loggingConfig_ = value; } @@ -1950,11 +2149,15 @@ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig val return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearLoggingConfig() { if (loggingConfigBuilder_ == null) { @@ -1968,55 +2171,71 @@ public Builder clearLoggingConfig() { return this; } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - + onChanged(); return getLoggingConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { if (loggingConfigBuilder_ != null) { return loggingConfigBuilder_.getMessageOrBuilder(); } else { - return loggingConfig_ == null ? - com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + return loggingConfig_ == null + ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } } /** + * + * *
      * Optional. The runtime log config for job execution.
      * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> getLoggingConfigFieldBuilder() { if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, com.google.cloud.dataproc.v1.LoggingConfig.Builder, com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), - getParentForChildren(), - isClean()); + loggingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.LoggingConfig, + com.google.cloud.dataproc.v1.LoggingConfig.Builder, + com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( + getLoggingConfig(), getParentForChildren(), isClean()); loggingConfig_ = null; } return loggingConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2026,12 +2245,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SparkSqlJob) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkSqlJob) private static final com.google.cloud.dataproc.v1.SparkSqlJob DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkSqlJob(); } @@ -2040,27 +2259,27 @@ public static com.google.cloud.dataproc.v1.SparkSqlJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkSqlJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkSqlJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2075,6 +2294,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SparkSqlJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java index 8dfd6ba69b20..5c89007c8880 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java @@ -1,60 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface SparkSqlJobOrBuilder extends +public interface SparkSqlJobOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkSqlJob) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; + * * @return Whether the queryFileUri field is set. */ boolean hasQueryFileUri(); /** + * + * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; + * * @return The queryFileUri. */ java.lang.String getQueryFileUri(); /** + * + * *
    * The HCFS URI of the script that contains SQL queries.
    * 
* * string query_file_uri = 1; + * * @return The bytes for queryFileUri. */ - com.google.protobuf.ByteString - getQueryFileUriBytes(); + com.google.protobuf.ByteString getQueryFileUriBytes(); /** + * + * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return Whether the queryList field is set. */ boolean hasQueryList(); /** + * + * *
    * A list of queries.
    * 
* * .google.cloud.dataproc.v1.QueryList query_list = 2; + * * @return The queryList. */ com.google.cloud.dataproc.v1.QueryList getQueryList(); /** + * + * *
    * A list of queries.
    * 
@@ -64,197 +96,237 @@ public interface SparkSqlJobOrBuilder extends com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder(); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: SET `name="value";`).
    * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getScriptVariablesCount(); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: SET `name="value";`).
    * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsScriptVariables( - java.lang.String key); - /** - * Use {@link #getScriptVariablesMap()} instead. + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsScriptVariables(java.lang.String key); + /** Use {@link #getScriptVariablesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getScriptVariables(); + java.util.Map getScriptVariables(); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: SET `name="value";`).
    * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getScriptVariablesMap(); + java.util.Map getScriptVariablesMap(); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: SET `name="value";`).
    * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getScriptVariablesOrDefault( + java.lang.String getScriptVariablesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Mapping of query variable names to values (equivalent to the
    * Spark SQL command: SET `name="value";`).
    * 
* - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - java.lang.String getScriptVariablesOrThrow( - java.lang.String key); + java.lang.String getScriptVariablesOrThrow(java.lang.String key); /** + * + * *
    * Optional. A mapping of property names to values, used to configure
    * Spark SQL's SparkConf. Properties that conflict with values set by the
    * Dataproc API may be overwritten.
    * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getPropertiesCount(); /** + * + * *
    * Optional. A mapping of property names to values, used to configure
    * Spark SQL's SparkConf. Properties that conflict with values set by the
    * Dataproc API may be overwritten.
    * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsProperties( - java.lang.String key); - /** - * Use {@link #getPropertiesMap()} instead. + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsProperties(java.lang.String key); + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getProperties(); + java.util.Map getProperties(); /** + * + * *
    * Optional. A mapping of property names to values, used to configure
    * Spark SQL's SparkConf. Properties that conflict with values set by the
    * Dataproc API may be overwritten.
    * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getPropertiesMap(); + java.util.Map getPropertiesMap(); /** + * + * *
    * Optional. A mapping of property names to values, used to configure
    * Spark SQL's SparkConf. Properties that conflict with values set by the
    * Dataproc API may be overwritten.
    * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getPropertiesOrDefault( + java.lang.String getPropertiesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. A mapping of property names to values, used to configure
    * Spark SQL's SparkConf. Properties that conflict with values set by the
    * Dataproc API may be overwritten.
    * 
* - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - java.lang.String getPropertiesOrThrow( - java.lang.String key); + java.lang.String getPropertiesOrThrow(java.lang.String key); /** + * + * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the jarFileUris. */ - java.util.List - getJarFileUrisList(); + java.util.List getJarFileUrisList(); /** + * + * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of jarFileUris. */ int getJarFileUrisCount(); /** + * + * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The jarFileUris at the given index. */ java.lang.String getJarFileUris(int index); /** + * + * *
    * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
    * 
* * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the jarFileUris at the given index. */ - com.google.protobuf.ByteString - getJarFileUrisBytes(int index); + com.google.protobuf.ByteString getJarFileUrisBytes(int index); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the loggingConfig field is set. */ boolean hasLoggingConfig(); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The loggingConfig. */ com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); /** + * + * *
    * Optional. The runtime log config for job execution.
    * 
* - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java similarity index 74% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java index a99c7f435ed7..8fad0e81c12a 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to start a cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.StartClusterRequest} */ -public final class StartClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.StartClusterRequest) StartClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartClusterRequest.newBuilder() to construct. private StartClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartClusterRequest() { projectId_ = ""; region_ = ""; @@ -29,38 +47,42 @@ private StartClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.StartClusterRequest.class, com.google.cloud.dataproc.v1.StartClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.StartClusterRequest.class, + com.google.cloud.dataproc.v1.StartClusterRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -69,30 +91,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -103,11 +125,14 @@ public java.lang.String getProjectId() { public static final int REGION_FIELD_NUMBER = 2; private volatile java.lang.Object region_; /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ @java.lang.Override @@ -116,29 +141,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -149,11 +174,14 @@ public java.lang.String getRegion() { public static final int CLUSTER_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object clusterName_; /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ @java.lang.Override @@ -162,29 +190,29 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -195,12 +223,15 @@ public java.lang.String getClusterName() { public static final int CLUSTER_UUID_FIELD_NUMBER = 4; private volatile java.lang.Object clusterUuid_; /** + * + * *
    * Optional. Specifying the `cluster_uuid` means the RPC will fail
    * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The clusterUuid. */ @java.lang.Override @@ -209,30 +240,30 @@ public java.lang.String getClusterUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; } } /** + * + * *
    * Optional. Specifying the `cluster_uuid` means the RPC will fail
    * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for clusterUuid. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterUuidBytes() { + public com.google.protobuf.ByteString getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -243,6 +274,8 @@ public java.lang.String getClusterUuid() { public static final int REQUEST_ID_FIELD_NUMBER = 5; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
@@ -257,6 +290,7 @@ public java.lang.String getClusterUuid() {
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -265,14 +299,15 @@ 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. A unique ID used to identify the request. If the server
    * receives two
@@ -287,16 +322,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 5 [(.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 { @@ -305,6 +339,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -316,8 +351,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -365,23 +399,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.dataproc.v1.StartClusterRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.StartClusterRequest other = (com.google.cloud.dataproc.v1.StartClusterRequest) obj; - - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getRegion() - .equals(other.getRegion())) return false; - if (!getClusterName() - .equals(other.getClusterName())) return false; - if (!getClusterUuid() - .equals(other.getClusterUuid())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + com.google.cloud.dataproc.v1.StartClusterRequest other = + (com.google.cloud.dataproc.v1.StartClusterRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getClusterName().equals(other.getClusterName())) return false; + if (!getClusterUuid().equals(other.getClusterUuid())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -408,130 +438,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.StartClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.StartClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.StartClusterRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.StartClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to start a cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.StartClusterRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.StartClusterRequest) com.google.cloud.dataproc.v1.StartClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.StartClusterRequest.class, com.google.cloud.dataproc.v1.StartClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.StartClusterRequest.class, + com.google.cloud.dataproc.v1.StartClusterRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.StartClusterRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -549,9 +585,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; } @java.lang.Override @@ -570,7 +606,8 @@ public com.google.cloud.dataproc.v1.StartClusterRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.StartClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.StartClusterRequest result = new com.google.cloud.dataproc.v1.StartClusterRequest(this); + com.google.cloud.dataproc.v1.StartClusterRequest result = + new com.google.cloud.dataproc.v1.StartClusterRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.clusterName_ = clusterName_; @@ -584,38 +621,39 @@ public com.google.cloud.dataproc.v1.StartClusterRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.StartClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.StartClusterRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.StartClusterRequest) other); } else { super.mergeFrom(other); return this; @@ -623,7 +661,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.StartClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.StartClusterRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.StartClusterRequest.getDefaultInstance()) + return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -670,37 +709,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - projectId_ = input.readStringRequireUtf8(); + case 10: + { + projectId_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - region_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + region_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - clusterName_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + clusterName_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - clusterUuid_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + clusterUuid_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: + { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -713,19 +758,21 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -734,21 +781,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -756,57 +804,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -814,18 +869,20 @@ public Builder setProjectIdBytes( private java.lang.Object region_ = ""; /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -834,20 +891,21 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -855,54 +913,61 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion( - java.lang.String value) { + public Builder setRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -910,18 +975,20 @@ public Builder setRegionBytes( private java.lang.Object clusterName_ = ""; /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -930,20 +997,21 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -951,54 +1019,61 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName( - java.lang.String value) { + public Builder setClusterName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1006,19 +1081,21 @@ public Builder setClusterNameBytes( private java.lang.Object clusterUuid_ = ""; /** + * + * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The clusterUuid. */ public java.lang.String getClusterUuid() { java.lang.Object ref = clusterUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; @@ -1027,21 +1104,22 @@ public java.lang.String getClusterUuid() { } } /** + * + * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for clusterUuid. */ - public com.google.protobuf.ByteString - getClusterUuidBytes() { + public com.google.protobuf.ByteString getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -1049,57 +1127,64 @@ public java.lang.String getClusterUuid() { } } /** + * + * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuid( - java.lang.String value) { + public Builder setClusterUuid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterUuid_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearClusterUuid() { - + clusterUuid_ = getDefaultInstance().getClusterUuid(); onChanged(); return this; } /** + * + * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuidBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUuid_ = value; onChanged(); return this; @@ -1107,6 +1192,8 @@ public Builder setClusterUuidBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
@@ -1121,13 +1208,13 @@ public Builder setClusterUuidBytes(
      * 
* * string request_id = 5 [(.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; @@ -1136,6 +1223,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
@@ -1150,15 +1239,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 5 [(.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 { @@ -1166,6 +1254,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
@@ -1180,20 +1270,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 5 [(.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. A unique ID used to identify the request. If the server
      * receives two
@@ -1208,15 +1300,18 @@ public Builder setRequestId(
      * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
@@ -1231,23 +1326,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 5 [(.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); } @@ -1257,12 +1352,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.StartClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.StartClusterRequest) private static final com.google.cloud.dataproc.v1.StartClusterRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.StartClusterRequest(); } @@ -1271,27 +1366,27 @@ public static com.google.cloud.dataproc.v1.StartClusterRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1306,6 +1401,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.StartClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java index 35083974375b..11582245a54e 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java @@ -1,97 +1,135 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface StartClusterRequestOrBuilder extends +public interface StartClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.StartClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ java.lang.String getRegion(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - com.google.protobuf.ByteString - getRegionBytes(); + com.google.protobuf.ByteString getRegionBytes(); /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ java.lang.String getClusterName(); /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString - getClusterNameBytes(); + com.google.protobuf.ByteString getClusterNameBytes(); /** + * + * *
    * Optional. Specifying the `cluster_uuid` means the RPC will fail
    * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The clusterUuid. */ java.lang.String getClusterUuid(); /** + * + * *
    * Optional. Specifying the `cluster_uuid` means the RPC will fail
    * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for clusterUuid. */ - com.google.protobuf.ByteString - getClusterUuidBytes(); + com.google.protobuf.ByteString getClusterUuidBytes(); /** + * + * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
@@ -106,10 +144,13 @@ public interface StartClusterRequestOrBuilder extends
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
@@ -124,8 +165,8 @@ public interface StartClusterRequestOrBuilder extends
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java similarity index 74% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java index 5ff18cf74c10..916ecc60aefa 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to stop a cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.StopClusterRequest} */ -public final class StopClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.StopClusterRequest) StopClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopClusterRequest.newBuilder() to construct. private StopClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StopClusterRequest() { projectId_ = ""; region_ = ""; @@ -29,38 +47,42 @@ private StopClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.StopClusterRequest.class, com.google.cloud.dataproc.v1.StopClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.StopClusterRequest.class, + com.google.cloud.dataproc.v1.StopClusterRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -69,30 +91,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -103,11 +125,14 @@ public java.lang.String getProjectId() { public static final int REGION_FIELD_NUMBER = 2; private volatile java.lang.Object region_; /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ @java.lang.Override @@ -116,29 +141,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -149,11 +174,14 @@ public java.lang.String getRegion() { public static final int CLUSTER_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object clusterName_; /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ @java.lang.Override @@ -162,29 +190,29 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -195,12 +223,15 @@ public java.lang.String getClusterName() { public static final int CLUSTER_UUID_FIELD_NUMBER = 4; private volatile java.lang.Object clusterUuid_; /** + * + * *
    * Optional. Specifying the `cluster_uuid` means the RPC will fail
    * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The clusterUuid. */ @java.lang.Override @@ -209,30 +240,30 @@ public java.lang.String getClusterUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; } } /** + * + * *
    * Optional. Specifying the `cluster_uuid` means the RPC will fail
    * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for clusterUuid. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterUuidBytes() { + public com.google.protobuf.ByteString getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -243,6 +274,8 @@ public java.lang.String getClusterUuid() { public static final int REQUEST_ID_FIELD_NUMBER = 5; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
@@ -257,6 +290,7 @@ public java.lang.String getClusterUuid() {
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -265,14 +299,15 @@ 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. A unique ID used to identify the request. If the server
    * receives two
@@ -287,16 +322,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 5 [(.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 { @@ -305,6 +339,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -316,8 +351,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -365,23 +399,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.dataproc.v1.StopClusterRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.StopClusterRequest other = (com.google.cloud.dataproc.v1.StopClusterRequest) obj; - - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getRegion() - .equals(other.getRegion())) return false; - if (!getClusterName() - .equals(other.getClusterName())) return false; - if (!getClusterUuid() - .equals(other.getClusterUuid())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + com.google.cloud.dataproc.v1.StopClusterRequest other = + (com.google.cloud.dataproc.v1.StopClusterRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getClusterName().equals(other.getClusterName())) return false; + if (!getClusterUuid().equals(other.getClusterUuid())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -408,130 +438,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.StopClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.StopClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.StopClusterRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.StopClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to stop a cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.StopClusterRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.StopClusterRequest) com.google.cloud.dataproc.v1.StopClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.StopClusterRequest.class, com.google.cloud.dataproc.v1.StopClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.StopClusterRequest.class, + com.google.cloud.dataproc.v1.StopClusterRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.StopClusterRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -549,9 +585,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; } @java.lang.Override @@ -570,7 +606,8 @@ public com.google.cloud.dataproc.v1.StopClusterRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.StopClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.StopClusterRequest result = new com.google.cloud.dataproc.v1.StopClusterRequest(this); + com.google.cloud.dataproc.v1.StopClusterRequest result = + new com.google.cloud.dataproc.v1.StopClusterRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.clusterName_ = clusterName_; @@ -584,38 +621,39 @@ public com.google.cloud.dataproc.v1.StopClusterRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.StopClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.StopClusterRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.StopClusterRequest) other); } else { super.mergeFrom(other); return this; @@ -623,7 +661,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.StopClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.StopClusterRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.StopClusterRequest.getDefaultInstance()) + return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -670,37 +709,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - projectId_ = input.readStringRequireUtf8(); + case 10: + { + projectId_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - region_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + region_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - clusterName_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + clusterName_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - clusterUuid_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + clusterUuid_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: + { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -713,19 +758,21 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -734,21 +781,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -756,57 +804,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -814,18 +869,20 @@ public Builder setProjectIdBytes( private java.lang.Object region_ = ""; /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -834,20 +891,21 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -855,54 +913,61 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion( - java.lang.String value) { + public Builder setRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -910,18 +975,20 @@ public Builder setRegionBytes( private java.lang.Object clusterName_ = ""; /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -930,20 +997,21 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -951,54 +1019,61 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName( - java.lang.String value) { + public Builder setClusterName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1006,19 +1081,21 @@ public Builder setClusterNameBytes( private java.lang.Object clusterUuid_ = ""; /** + * + * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The clusterUuid. */ public java.lang.String getClusterUuid() { java.lang.Object ref = clusterUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; @@ -1027,21 +1104,22 @@ public java.lang.String getClusterUuid() { } } /** + * + * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for clusterUuid. */ - public com.google.protobuf.ByteString - getClusterUuidBytes() { + public com.google.protobuf.ByteString getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -1049,57 +1127,64 @@ public java.lang.String getClusterUuid() { } } /** + * + * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuid( - java.lang.String value) { + public Builder setClusterUuid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterUuid_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearClusterUuid() { - + clusterUuid_ = getDefaultInstance().getClusterUuid(); onChanged(); return this; } /** + * + * *
      * Optional. Specifying the `cluster_uuid` means the RPC will fail
      * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
      * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuidBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUuid_ = value; onChanged(); return this; @@ -1107,6 +1192,8 @@ public Builder setClusterUuidBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
@@ -1121,13 +1208,13 @@ public Builder setClusterUuidBytes(
      * 
* * string request_id = 5 [(.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; @@ -1136,6 +1223,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
@@ -1150,15 +1239,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 5 [(.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 { @@ -1166,6 +1254,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
@@ -1180,20 +1270,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 5 [(.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. A unique ID used to identify the request. If the server
      * receives two
@@ -1208,15 +1300,18 @@ public Builder setRequestId(
      * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
@@ -1231,23 +1326,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 5 [(.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); } @@ -1257,12 +1352,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.StopClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.StopClusterRequest) private static final com.google.cloud.dataproc.v1.StopClusterRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.StopClusterRequest(); } @@ -1271,27 +1366,27 @@ public static com.google.cloud.dataproc.v1.StopClusterRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1306,6 +1401,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.StopClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java index 26a85567e536..ec9a1c19d7f0 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java @@ -1,97 +1,135 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface StopClusterRequestOrBuilder extends +public interface StopClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.StopClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ java.lang.String getRegion(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - com.google.protobuf.ByteString - getRegionBytes(); + com.google.protobuf.ByteString getRegionBytes(); /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ java.lang.String getClusterName(); /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString - getClusterNameBytes(); + com.google.protobuf.ByteString getClusterNameBytes(); /** + * + * *
    * Optional. Specifying the `cluster_uuid` means the RPC will fail
    * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The clusterUuid. */ java.lang.String getClusterUuid(); /** + * + * *
    * Optional. Specifying the `cluster_uuid` means the RPC will fail
    * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
    * 
* * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for clusterUuid. */ - com.google.protobuf.ByteString - getClusterUuidBytes(); + com.google.protobuf.ByteString getClusterUuidBytes(); /** + * + * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
@@ -106,10 +144,13 @@ public interface StopClusterRequestOrBuilder extends
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
@@ -124,8 +165,8 @@ public interface StopClusterRequestOrBuilder extends
    * 
* * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java similarity index 74% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java index 82bc67eccc29..b57b71ff970a 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to submit a job.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.SubmitJobRequest} */ -public final class SubmitJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SubmitJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SubmitJobRequest) SubmitJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SubmitJobRequest.newBuilder() to construct. private SubmitJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SubmitJobRequest() { projectId_ = ""; region_ = ""; @@ -27,38 +45,42 @@ private SubmitJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SubmitJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SubmitJobRequest.class, com.google.cloud.dataproc.v1.SubmitJobRequest.Builder.class); + com.google.cloud.dataproc.v1.SubmitJobRequest.class, + com.google.cloud.dataproc.v1.SubmitJobRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -67,30 +89,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -101,11 +123,14 @@ public java.lang.String getProjectId() { public static final int REGION_FIELD_NUMBER = 3; private volatile java.lang.Object region_; /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ @java.lang.Override @@ -114,29 +139,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -147,11 +172,14 @@ public java.lang.String getRegion() { public static final int JOB_FIELD_NUMBER = 2; private com.google.cloud.dataproc.v1.Job job_; /** + * + * *
    * Required. The job resource.
    * 
* * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the job field is set. */ @java.lang.Override @@ -159,11 +187,14 @@ public boolean hasJob() { return job_ != null; } /** + * + * *
    * Required. The job resource.
    * 
* * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The job. */ @java.lang.Override @@ -171,6 +202,8 @@ public com.google.cloud.dataproc.v1.Job getJob() { return job_ == null ? com.google.cloud.dataproc.v1.Job.getDefaultInstance() : job_; } /** + * + * *
    * Required. The job resource.
    * 
@@ -185,6 +218,8 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A unique id used to identify the request. If the server
    * receives two
@@ -199,6 +234,7 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -207,14 +243,15 @@ 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. A unique id used to identify the request. If the server
    * receives two
@@ -229,16 +266,15 @@ 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 { @@ -247,6 +283,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,8 +295,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -285,8 +321,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } if (job_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getJob()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getJob()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); @@ -302,24 +337,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.dataproc.v1.SubmitJobRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.SubmitJobRequest other = (com.google.cloud.dataproc.v1.SubmitJobRequest) obj; + com.google.cloud.dataproc.v1.SubmitJobRequest other = + (com.google.cloud.dataproc.v1.SubmitJobRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getRegion() - .equals(other.getRegion())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) return false; if (hasJob() != other.hasJob()) return false; if (hasJob()) { - if (!getJob() - .equals(other.getJob())) return false; + if (!getJob().equals(other.getJob())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -346,130 +378,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.SubmitJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SubmitJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.SubmitJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to submit a job.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.SubmitJobRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SubmitJobRequest) com.google.cloud.dataproc.v1.SubmitJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SubmitJobRequest.class, com.google.cloud.dataproc.v1.SubmitJobRequest.Builder.class); + com.google.cloud.dataproc.v1.SubmitJobRequest.class, + com.google.cloud.dataproc.v1.SubmitJobRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.SubmitJobRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -489,9 +527,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; } @java.lang.Override @@ -510,7 +548,8 @@ public com.google.cloud.dataproc.v1.SubmitJobRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.SubmitJobRequest buildPartial() { - com.google.cloud.dataproc.v1.SubmitJobRequest result = new com.google.cloud.dataproc.v1.SubmitJobRequest(this); + com.google.cloud.dataproc.v1.SubmitJobRequest result = + new com.google.cloud.dataproc.v1.SubmitJobRequest(this); result.projectId_ = projectId_; result.region_ = region_; if (jobBuilder_ == null) { @@ -527,38 +566,39 @@ public com.google.cloud.dataproc.v1.SubmitJobRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.SubmitJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.SubmitJobRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.SubmitJobRequest) other); } else { super.mergeFrom(other); return this; @@ -608,34 +648,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - projectId_ = input.readStringRequireUtf8(); + case 10: + { + projectId_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getJobFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getJobFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - region_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + region_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -648,19 +691,21 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -669,21 +714,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -691,57 +737,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -749,18 +802,20 @@ public Builder setProjectIdBytes( private java.lang.Object region_ = ""; /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -769,20 +824,21 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -790,54 +846,61 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion( - java.lang.String value) { + public Builder setRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -845,24 +908,33 @@ public Builder setRegionBytes( private com.google.cloud.dataproc.v1.Job job_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, com.google.cloud.dataproc.v1.Job.Builder, com.google.cloud.dataproc.v1.JobOrBuilder> jobBuilder_; + com.google.cloud.dataproc.v1.Job, + com.google.cloud.dataproc.v1.Job.Builder, + com.google.cloud.dataproc.v1.JobOrBuilder> + jobBuilder_; /** + * + * *
      * Required. The job resource.
      * 
* * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the job field is set. */ public boolean hasJob() { return jobBuilder_ != null || job_ != null; } /** + * + * *
      * Required. The job resource.
      * 
* * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The job. */ public com.google.cloud.dataproc.v1.Job getJob() { @@ -873,6 +945,8 @@ public com.google.cloud.dataproc.v1.Job getJob() { } } /** + * + * *
      * Required. The job resource.
      * 
@@ -893,14 +967,15 @@ public Builder setJob(com.google.cloud.dataproc.v1.Job value) { return this; } /** + * + * *
      * Required. The job resource.
      * 
* * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setJob( - com.google.cloud.dataproc.v1.Job.Builder builderForValue) { + public Builder setJob(com.google.cloud.dataproc.v1.Job.Builder builderForValue) { if (jobBuilder_ == null) { job_ = builderForValue.build(); onChanged(); @@ -911,6 +986,8 @@ public Builder setJob( return this; } /** + * + * *
      * Required. The job resource.
      * 
@@ -920,8 +997,7 @@ public Builder setJob( public Builder mergeJob(com.google.cloud.dataproc.v1.Job value) { if (jobBuilder_ == null) { if (job_ != null) { - job_ = - com.google.cloud.dataproc.v1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + job_ = com.google.cloud.dataproc.v1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); } else { job_ = value; } @@ -933,6 +1009,8 @@ public Builder mergeJob(com.google.cloud.dataproc.v1.Job value) { return this; } /** + * + * *
      * Required. The job resource.
      * 
@@ -951,6 +1029,8 @@ public Builder clearJob() { return this; } /** + * + * *
      * Required. The job resource.
      * 
@@ -958,11 +1038,13 @@ public Builder clearJob() { * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.Job.Builder getJobBuilder() { - + onChanged(); return getJobFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The job resource.
      * 
@@ -973,11 +1055,12 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { if (jobBuilder_ != null) { return jobBuilder_.getMessageOrBuilder(); } else { - return job_ == null ? - com.google.cloud.dataproc.v1.Job.getDefaultInstance() : job_; + return job_ == null ? com.google.cloud.dataproc.v1.Job.getDefaultInstance() : job_; } } /** + * + * *
      * Required. The job resource.
      * 
@@ -985,14 +1068,17 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, com.google.cloud.dataproc.v1.Job.Builder, com.google.cloud.dataproc.v1.JobOrBuilder> + com.google.cloud.dataproc.v1.Job, + com.google.cloud.dataproc.v1.Job.Builder, + com.google.cloud.dataproc.v1.JobOrBuilder> getJobFieldBuilder() { if (jobBuilder_ == null) { - jobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, com.google.cloud.dataproc.v1.Job.Builder, com.google.cloud.dataproc.v1.JobOrBuilder>( - getJob(), - getParentForChildren(), - isClean()); + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.Job, + com.google.cloud.dataproc.v1.Job.Builder, + com.google.cloud.dataproc.v1.JobOrBuilder>( + getJob(), getParentForChildren(), isClean()); job_ = null; } return jobBuilder_; @@ -1000,6 +1086,8 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique id used to identify the request. If the server
      * receives two
@@ -1014,13 +1102,13 @@ public com.google.cloud.dataproc.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; @@ -1029,6 +1117,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique id used to identify the request. If the server
      * receives two
@@ -1043,15 +1133,14 @@ 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 { @@ -1059,6 +1148,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique id used to identify the request. If the server
      * receives two
@@ -1073,20 +1164,22 @@ public java.lang.String getRequestId() {
      * 
* * 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. A unique id used to identify the request. If the server
      * receives two
@@ -1101,15 +1194,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A unique id used to identify the request. If the server
      * receives two
@@ -1124,23 +1220,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); } @@ -1150,12 +1246,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.SubmitJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SubmitJobRequest) private static final com.google.cloud.dataproc.v1.SubmitJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SubmitJobRequest(); } @@ -1164,27 +1260,27 @@ public static com.google.cloud.dataproc.v1.SubmitJobRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubmitJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubmitJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1199,6 +1295,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.SubmitJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java index 31f3a4f8ced9..cc9dcd7353aa 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java @@ -1,73 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface SubmitJobRequestOrBuilder extends +public interface SubmitJobRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SubmitJobRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ java.lang.String getRegion(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - com.google.protobuf.ByteString - getRegionBytes(); + com.google.protobuf.ByteString getRegionBytes(); /** + * + * *
    * Required. The job resource.
    * 
* * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the job field is set. */ boolean hasJob(); /** + * + * *
    * Required. The job resource.
    * 
* * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The job. */ com.google.cloud.dataproc.v1.Job getJob(); /** + * + * *
    * Required. The job resource.
    * 
@@ -77,6 +111,8 @@ public interface SubmitJobRequestOrBuilder extends com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder(); /** + * + * *
    * Optional. A unique id used to identify the request. If the server
    * receives two
@@ -91,10 +127,13 @@ public interface SubmitJobRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique id used to identify the request. If the server
    * receives two
@@ -109,8 +148,8 @@ public interface SubmitJobRequestOrBuilder extends
    * 
* * 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/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java similarity index 81% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java index f98031f6b836..e40d43e99ad8 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A configurable parameter that replaces one or more fields in the template.
  * Parameterizable fields:
@@ -18,15 +35,16 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.TemplateParameter}
  */
-public final class TemplateParameter extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TemplateParameter extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.TemplateParameter)
     TemplateParameterOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TemplateParameter.newBuilder() to construct.
   private TemplateParameter(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TemplateParameter() {
     name_ = "";
     fields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -35,32 +53,35 @@ private TemplateParameter() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TemplateParameter();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
+        .internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_TemplateParameter_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
+        .internal_static_google_cloud_dataproc_v1_TemplateParameter_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.TemplateParameter.class, com.google.cloud.dataproc.v1.TemplateParameter.Builder.class);
+            com.google.cloud.dataproc.v1.TemplateParameter.class,
+            com.google.cloud.dataproc.v1.TemplateParameter.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. Parameter name.
    * The parameter name is used as the key, and paired with the
@@ -72,6 +93,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -80,14 +102,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Parameter name.
    * The parameter name is used as the key, and paired with the
@@ -99,16 +122,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -119,6 +141,8 @@ public java.lang.String getName() { public static final int FIELDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList fields_; /** + * + * *
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
@@ -159,13 +183,15 @@ public java.lang.String getName() {
    * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the fields. */ - public com.google.protobuf.ProtocolStringList - getFieldsList() { + public com.google.protobuf.ProtocolStringList getFieldsList() { return fields_; } /** + * + * *
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
@@ -206,12 +232,15 @@ public java.lang.String getName() {
    * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of fields. */ public int getFieldsCount() { return fields_.size(); } /** + * + * *
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
@@ -252,6 +281,7 @@ public int getFieldsCount() {
    * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The fields at the given index. */ @@ -259,6 +289,8 @@ public java.lang.String getFields(int index) { return fields_.get(index); } /** + * + * *
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
@@ -299,23 +331,26 @@ public java.lang.String getFields(int index) {
    * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - public com.google.protobuf.ByteString - getFieldsBytes(int index) { + public com.google.protobuf.ByteString getFieldsBytes(int index) { return fields_.getByteString(index); } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Optional. Brief description of the parameter.
    * Must not exceed 1024 characters.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -324,30 +359,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Optional. Brief description of the parameter.
    * Must not exceed 1024 characters.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -358,11 +393,16 @@ public java.lang.String getDescription() { public static final int VALIDATION_FIELD_NUMBER = 4; private com.google.cloud.dataproc.v1.ParameterValidation validation_; /** + * + * *
    * Optional. Validation rules to be applied to this parameter's value.
    * 
* - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the validation field is set. */ @java.lang.Override @@ -370,23 +410,34 @@ public boolean hasValidation() { return validation_ != null; } /** + * + * *
    * Optional. Validation rules to be applied to this parameter's value.
    * 
* - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The validation. */ @java.lang.Override public com.google.cloud.dataproc.v1.ParameterValidation getValidation() { - return validation_ == null ? com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance() : validation_; + return validation_ == null + ? com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance() + : validation_; } /** + * + * *
    * Optional. Validation rules to be applied to this parameter's value.
    * 
* - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.ParameterValidationOrBuilder getValidationOrBuilder() { @@ -394,6 +445,7 @@ public com.google.cloud.dataproc.v1.ParameterValidationOrBuilder getValidationOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -405,8 +457,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -443,8 +494,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (validation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getValidation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getValidation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -454,23 +504,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.TemplateParameter)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.TemplateParameter other = (com.google.cloud.dataproc.v1.TemplateParameter) obj; + com.google.cloud.dataproc.v1.TemplateParameter other = + (com.google.cloud.dataproc.v1.TemplateParameter) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getFieldsList() - .equals(other.getFieldsList())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getFieldsList().equals(other.getFieldsList())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasValidation() != other.hasValidation()) return false; if (hasValidation()) { - if (!getValidation() - .equals(other.getValidation())) return false; + if (!getValidation().equals(other.getValidation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -500,97 +547,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.TemplateParameter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.TemplateParameter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.TemplateParameter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.TemplateParameter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 configurable parameter that replaces one or more fields in the template.
    * Parameterizable fields:
@@ -605,33 +659,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.TemplateParameter}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.TemplateParameter)
       com.google.cloud.dataproc.v1.TemplateParameterOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
+          .internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_TemplateParameter_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
+          .internal_static_google_cloud_dataproc_v1_TemplateParameter_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.TemplateParameter.class, com.google.cloud.dataproc.v1.TemplateParameter.Builder.class);
+              com.google.cloud.dataproc.v1.TemplateParameter.class,
+              com.google.cloud.dataproc.v1.TemplateParameter.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.TemplateParameter.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -651,9 +704,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
+          .internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor;
     }
 
     @java.lang.Override
@@ -672,7 +725,8 @@ public com.google.cloud.dataproc.v1.TemplateParameter build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.TemplateParameter buildPartial() {
-      com.google.cloud.dataproc.v1.TemplateParameter result = new com.google.cloud.dataproc.v1.TemplateParameter(this);
+      com.google.cloud.dataproc.v1.TemplateParameter result =
+          new com.google.cloud.dataproc.v1.TemplateParameter(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -694,38 +748,39 @@ public com.google.cloud.dataproc.v1.TemplateParameter buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.TemplateParameter) {
-        return mergeFrom((com.google.cloud.dataproc.v1.TemplateParameter)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.TemplateParameter) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -781,35 +836,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureFieldsIsMutable();
-              fields_.add(s);
-              break;
-            } // case 18
-            case 26: {
-              description_ = input.readStringRequireUtf8();
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureFieldsIsMutable();
+                fields_.add(s);
+                break;
+              } // case 18
+            case 26:
+              {
+                description_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getValidationFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getValidationFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -819,10 +877,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. Parameter name.
      * The parameter name is used as the key, and paired with the
@@ -834,13 +895,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -849,6 +910,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Parameter name.
      * The parameter name is used as the key, and paired with the
@@ -860,15 +923,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -876,6 +938,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Parameter name.
      * The parameter name is used as the key, and paired with the
@@ -887,20 +951,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Parameter name.
      * The parameter name is used as the key, and paired with the
@@ -912,15 +978,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Parameter name.
      * The parameter name is used as the key, and paired with the
@@ -932,29 +1001,33 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList fields_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fields_ = new com.google.protobuf.LazyStringArrayList(fields_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
@@ -995,13 +1068,15 @@ private void ensureFieldsIsMutable() {
      * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the fields. */ - public com.google.protobuf.ProtocolStringList - getFieldsList() { + public com.google.protobuf.ProtocolStringList getFieldsList() { return fields_.getUnmodifiableView(); } /** + * + * *
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
@@ -1042,12 +1117,15 @@ private void ensureFieldsIsMutable() {
      * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of fields. */ public int getFieldsCount() { return fields_.size(); } /** + * + * *
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
@@ -1088,6 +1166,7 @@ public int getFieldsCount() {
      * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The fields at the given index. */ @@ -1095,6 +1174,8 @@ public java.lang.String getFields(int index) { return fields_.get(index); } /** + * + * *
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
@@ -1135,14 +1216,16 @@ public java.lang.String getFields(int index) {
      * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - public com.google.protobuf.ByteString - getFieldsBytes(int index) { + public com.google.protobuf.ByteString getFieldsBytes(int index) { return fields_.getByteString(index); } /** + * + * *
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
@@ -1183,21 +1266,23 @@ public java.lang.String getFields(int index) {
      * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The fields to set. * @return This builder for chaining. */ - public Builder setFields( - int index, java.lang.String value) { + public Builder setFields(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); + throw new NullPointerException(); + } + ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
@@ -1238,20 +1323,22 @@ public Builder setFields(
      * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The fields to add. * @return This builder for chaining. */ - public Builder addFields( - java.lang.String value) { + public Builder addFields(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); + throw new NullPointerException(); + } + ensureFieldsIsMutable(); fields_.add(value); onChanged(); return this; } /** + * + * *
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
@@ -1292,18 +1379,19 @@ public Builder addFields(
      * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The fields to add. * @return This builder for chaining. */ - public Builder addAllFields( - java.lang.Iterable values) { + public Builder addAllFields(java.lang.Iterable values) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); onChanged(); return this; } /** + * + * *
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
@@ -1344,6 +1432,7 @@ public Builder addAllFields(
      * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFields() { @@ -1353,6 +1442,8 @@ public Builder clearFields() { return this; } /** + * + * *
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
@@ -1393,15 +1484,15 @@ public Builder clearFields() {
      * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the fields to add. * @return This builder for chaining. */ - public Builder addFieldsBytes( - com.google.protobuf.ByteString value) { + public Builder addFieldsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFieldsIsMutable(); fields_.add(value); onChanged(); @@ -1410,19 +1501,21 @@ public Builder addFieldsBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Optional. Brief description of the parameter.
      * Must not exceed 1024 characters.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1431,21 +1524,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. Brief description of the parameter.
      * Must not exceed 1024 characters.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1453,57 +1547,64 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. Brief description of the parameter.
      * Must not exceed 1024 characters.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Brief description of the parameter.
      * Must not exceed 1024 characters.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Optional. Brief description of the parameter.
      * Must not exceed 1024 characters.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1511,39 +1612,58 @@ public Builder setDescriptionBytes( private com.google.cloud.dataproc.v1.ParameterValidation validation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ParameterValidation, com.google.cloud.dataproc.v1.ParameterValidation.Builder, com.google.cloud.dataproc.v1.ParameterValidationOrBuilder> validationBuilder_; + com.google.cloud.dataproc.v1.ParameterValidation, + com.google.cloud.dataproc.v1.ParameterValidation.Builder, + com.google.cloud.dataproc.v1.ParameterValidationOrBuilder> + validationBuilder_; /** + * + * *
      * Optional. Validation rules to be applied to this parameter's value.
      * 
* - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the validation field is set. */ public boolean hasValidation() { return validationBuilder_ != null || validation_ != null; } /** + * + * *
      * Optional. Validation rules to be applied to this parameter's value.
      * 
* - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The validation. */ public com.google.cloud.dataproc.v1.ParameterValidation getValidation() { if (validationBuilder_ == null) { - return validation_ == null ? com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance() : validation_; + return validation_ == null + ? com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance() + : validation_; } else { return validationBuilder_.getMessage(); } } /** + * + * *
      * Optional. Validation rules to be applied to this parameter's value.
      * 
* - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setValidation(com.google.cloud.dataproc.v1.ParameterValidation value) { if (validationBuilder_ == null) { @@ -1559,11 +1679,15 @@ public Builder setValidation(com.google.cloud.dataproc.v1.ParameterValidation va return this; } /** + * + * *
      * Optional. Validation rules to be applied to this parameter's value.
      * 
* - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setValidation( com.google.cloud.dataproc.v1.ParameterValidation.Builder builderForValue) { @@ -1577,17 +1701,23 @@ public Builder setValidation( return this; } /** + * + * *
      * Optional. Validation rules to be applied to this parameter's value.
      * 
* - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeValidation(com.google.cloud.dataproc.v1.ParameterValidation value) { if (validationBuilder_ == null) { if (validation_ != null) { validation_ = - com.google.cloud.dataproc.v1.ParameterValidation.newBuilder(validation_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.ParameterValidation.newBuilder(validation_) + .mergeFrom(value) + .buildPartial(); } else { validation_ = value; } @@ -1599,11 +1729,15 @@ public Builder mergeValidation(com.google.cloud.dataproc.v1.ParameterValidation return this; } /** + * + * *
      * Optional. Validation rules to be applied to this parameter's value.
      * 
* - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearValidation() { if (validationBuilder_ == null) { @@ -1617,55 +1751,71 @@ public Builder clearValidation() { return this; } /** + * + * *
      * Optional. Validation rules to be applied to this parameter's value.
      * 
* - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.ParameterValidation.Builder getValidationBuilder() { - + onChanged(); return getValidationFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Validation rules to be applied to this parameter's value.
      * 
* - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.ParameterValidationOrBuilder getValidationOrBuilder() { if (validationBuilder_ != null) { return validationBuilder_.getMessageOrBuilder(); } else { - return validation_ == null ? - com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance() : validation_; + return validation_ == null + ? com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance() + : validation_; } } /** + * + * *
      * Optional. Validation rules to be applied to this parameter's value.
      * 
* - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ParameterValidation, com.google.cloud.dataproc.v1.ParameterValidation.Builder, com.google.cloud.dataproc.v1.ParameterValidationOrBuilder> + com.google.cloud.dataproc.v1.ParameterValidation, + com.google.cloud.dataproc.v1.ParameterValidation.Builder, + com.google.cloud.dataproc.v1.ParameterValidationOrBuilder> getValidationFieldBuilder() { if (validationBuilder_ == null) { - validationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ParameterValidation, com.google.cloud.dataproc.v1.ParameterValidation.Builder, com.google.cloud.dataproc.v1.ParameterValidationOrBuilder>( - getValidation(), - getParentForChildren(), - isClean()); + validationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ParameterValidation, + com.google.cloud.dataproc.v1.ParameterValidation.Builder, + com.google.cloud.dataproc.v1.ParameterValidationOrBuilder>( + getValidation(), getParentForChildren(), isClean()); validation_ = null; } return validationBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1675,12 +1825,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.TemplateParameter) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.TemplateParameter) private static final com.google.cloud.dataproc.v1.TemplateParameter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.TemplateParameter(); } @@ -1689,27 +1839,27 @@ public static com.google.cloud.dataproc.v1.TemplateParameter getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TemplateParameter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TemplateParameter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1724,6 +1874,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.TemplateParameter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java similarity index 88% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java index 0720978109f7..5625583f17f1 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface TemplateParameterOrBuilder extends +public interface TemplateParameterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.TemplateParameter) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parameter name.
    * The parameter name is used as the key, and paired with the
@@ -19,10 +37,13 @@ public interface TemplateParameterOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Parameter name.
    * The parameter name is used as the key, and paired with the
@@ -34,12 +55,14 @@ public interface TemplateParameterOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
@@ -80,11 +103,13 @@ public interface TemplateParameterOrBuilder extends
    * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the fields. */ - java.util.List - getFieldsList(); + java.util.List getFieldsList(); /** + * + * *
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
@@ -125,10 +150,13 @@ public interface TemplateParameterOrBuilder extends
    * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of fields. */ int getFieldsCount(); /** + * + * *
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
@@ -169,11 +197,14 @@ public interface TemplateParameterOrBuilder extends
    * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The fields at the given index. */ java.lang.String getFields(int index); /** + * + * *
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
@@ -214,58 +245,77 @@ public interface TemplateParameterOrBuilder extends
    * 
* * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - com.google.protobuf.ByteString - getFieldsBytes(int index); + com.google.protobuf.ByteString getFieldsBytes(int index); /** + * + * *
    * Optional. Brief description of the parameter.
    * Must not exceed 1024 characters.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. Brief description of the parameter.
    * Must not exceed 1024 characters.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Optional. Validation rules to be applied to this parameter's value.
    * 
* - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the validation field is set. */ boolean hasValidation(); /** + * + * *
    * Optional. Validation rules to be applied to this parameter's value.
    * 
* - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The validation. */ com.google.cloud.dataproc.v1.ParameterValidation getValidation(); /** + * + * *
    * Optional. Validation rules to be applied to this parameter's value.
    * 
* - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.ParameterValidationOrBuilder getValidationOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java similarity index 61% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java index 5e192e7cdc99..cfdd01c01189 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java @@ -1,60 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/autoscaling_policies.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to update an autoscaling policy.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest} */ -public final class UpdateAutoscalingPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) UpdateAutoscalingPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateAutoscalingPolicyRequest.newBuilder() to construct. - private UpdateAutoscalingPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateAutoscalingPolicyRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateAutoscalingPolicyRequest() { - } + + private UpdateAutoscalingPolicyRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateAutoscalingPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.class, com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.Builder.class); + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.class, + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.Builder.class); } public static final int POLICY_FIELD_NUMBER = 1; private com.google.cloud.dataproc.v1.AutoscalingPolicy policy_; /** + * + * *
    * Required. The updated autoscaling policy.
    * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the policy field is set. */ @java.lang.Override @@ -62,23 +86,34 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
    * Required. The updated autoscaling policy.
    * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The policy. */ @java.lang.Override public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy() { - return policy_ == null ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() : policy_; + return policy_ == null + ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() + : policy_; } /** + * + * *
    * Required. The updated autoscaling policy.
    * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder() { @@ -86,6 +121,7 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (policy_ != null) { output.writeMessage(1, getPolicy()); } @@ -112,8 +147,7 @@ public int getSerializedSize() { size = 0; if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -123,17 +157,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.dataproc.v1.UpdateAutoscalingPolicyRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest other = (com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) obj; + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest other = + (com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) obj; if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { - if (!getPolicy() - .equals(other.getPolicy())) return false; + if (!getPolicy().equals(other.getPolicy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -156,129 +190,136 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest 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.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to update an autoscaling policy.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.class, com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.Builder.class); + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.class, + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +333,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto + .internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; } @java.lang.Override @@ -313,7 +354,8 @@ public com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest buildPartial() { - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest result = new com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest(this); + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest result = + new com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest(this); if (policyBuilder_ == null) { result.policy_ = policy_; } else { @@ -327,38 +369,39 @@ public com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -366,7 +409,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest other) { - if (other == com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.getDefaultInstance()) + return this; if (other.hasPolicy()) { mergePolicy(other.getPolicy()); } @@ -396,19 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getPolicyFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,39 +465,58 @@ public Builder mergeFrom( private com.google.cloud.dataproc.v1.AutoscalingPolicy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> policyBuilder_; + com.google.cloud.dataproc.v1.AutoscalingPolicy, + com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, + com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> + policyBuilder_; /** + * + * *
      * Required. The updated autoscaling policy.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** + * + * *
      * Required. The updated autoscaling policy.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The policy. */ public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy() { if (policyBuilder_ == null) { - return policy_ == null ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() : policy_; + return policy_ == null + ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() + : policy_; } else { return policyBuilder_.getMessage(); } } /** + * + * *
      * Required. The updated autoscaling policy.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { if (policyBuilder_ == null) { @@ -469,11 +532,15 @@ public Builder setPolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { return this; } /** + * + * *
      * Required. The updated autoscaling policy.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPolicy( com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder builderForValue) { @@ -487,17 +554,23 @@ public Builder setPolicy( return this; } /** + * + * *
      * Required. The updated autoscaling policy.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { if (policyBuilder_ == null) { if (policy_ != null) { policy_ = - com.google.cloud.dataproc.v1.AutoscalingPolicy.newBuilder(policy_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.AutoscalingPolicy.newBuilder(policy_) + .mergeFrom(value) + .buildPartial(); } else { policy_ = value; } @@ -509,11 +582,15 @@ public Builder mergePolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) return this; } /** + * + * *
      * Required. The updated autoscaling policy.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPolicy() { if (policyBuilder_ == null) { @@ -527,55 +604,71 @@ public Builder clearPolicy() { return this; } /** + * + * *
      * Required. The updated autoscaling policy.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder getPolicyBuilder() { - + onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The updated autoscaling policy.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { - return policy_ == null ? - com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() : policy_; + return policy_ == null + ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() + : policy_; } } /** + * + * *
      * Required. The updated autoscaling policy.
      * 
* - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> + com.google.cloud.dataproc.v1.AutoscalingPolicy, + com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, + com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { - policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder>( - getPolicy(), - getParentForChildren(), - isClean()); + policyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.AutoscalingPolicy, + com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, + com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder>( + getPolicy(), getParentForChildren(), isClean()); policy_ = null; } return policyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -585,12 +678,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) private static final com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest(); } @@ -599,27 +692,27 @@ public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateAutoscalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAutoscalingPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,6 +727,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..6ca8ce6df66a --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/autoscaling_policies.proto + +package com.google.cloud.dataproc.v1; + +public interface UpdateAutoscalingPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The updated autoscaling policy.
+   * 
+ * + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the policy field is set. + */ + boolean hasPolicy(); + /** + * + * + *
+   * Required. The updated autoscaling policy.
+   * 
+ * + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policy. + */ + com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy(); + /** + * + * + *
+   * Required. The updated autoscaling policy.
+   * 
+ * + * + * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder(); +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java similarity index 79% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java index 31f5b360e3e4..b49efd6ab0eb 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to update a cluster.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.UpdateClusterRequest} */ -public final class UpdateClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.UpdateClusterRequest) UpdateClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateClusterRequest.newBuilder() to construct. private UpdateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateClusterRequest() { projectId_ = ""; region_ = ""; @@ -28,38 +46,42 @@ private UpdateClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateClusterRequest.class, com.google.cloud.dataproc.v1.UpdateClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.UpdateClusterRequest.class, + com.google.cloud.dataproc.v1.UpdateClusterRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -68,30 +90,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -102,11 +124,14 @@ public java.lang.String getProjectId() { public static final int REGION_FIELD_NUMBER = 5; private volatile java.lang.Object region_; /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ @java.lang.Override @@ -115,29 +140,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -148,11 +173,14 @@ public java.lang.String getRegion() { public static final int CLUSTER_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object clusterName_; /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ @java.lang.Override @@ -161,29 +189,29 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -194,11 +222,15 @@ public java.lang.String getClusterName() { public static final int CLUSTER_FIELD_NUMBER = 3; private com.google.cloud.dataproc.v1.Cluster cluster_; /** + * + * *
    * Required. The changes to the cluster.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the cluster field is set. */ @java.lang.Override @@ -206,11 +238,15 @@ public boolean hasCluster() { return cluster_ != null; } /** + * + * *
    * Required. The changes to the cluster.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The cluster. */ @java.lang.Override @@ -218,11 +254,14 @@ public com.google.cloud.dataproc.v1.Cluster getCluster() { return cluster_ == null ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() : cluster_; } /** + * + * *
    * Required. The changes to the cluster.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { @@ -232,6 +271,8 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { public static final int GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER = 6; private com.google.protobuf.Duration gracefulDecommissionTimeout_; /** + * + * *
    * Optional. Timeout for graceful YARN decomissioning. Graceful
    * decommissioning allows removing nodes from the cluster without
@@ -243,7 +284,10 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() {
    * Only supported on Dataproc image versions 1.2 and higher.
    * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gracefulDecommissionTimeout field is set. */ @java.lang.Override @@ -251,6 +295,8 @@ public boolean hasGracefulDecommissionTimeout() { return gracefulDecommissionTimeout_ != null; } /** + * + * *
    * Optional. Timeout for graceful YARN decomissioning. Graceful
    * decommissioning allows removing nodes from the cluster without
@@ -262,14 +308,21 @@ public boolean hasGracefulDecommissionTimeout() {
    * Only supported on Dataproc image versions 1.2 and higher.
    * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gracefulDecommissionTimeout. */ @java.lang.Override public com.google.protobuf.Duration getGracefulDecommissionTimeout() { - return gracefulDecommissionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : gracefulDecommissionTimeout_; + return gracefulDecommissionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : gracefulDecommissionTimeout_; } /** + * + * *
    * Optional. Timeout for graceful YARN decomissioning. Graceful
    * decommissioning allows removing nodes from the cluster without
@@ -281,7 +334,9 @@ public com.google.protobuf.Duration getGracefulDecommissionTimeout() {
    * Only supported on Dataproc image versions 1.2 and higher.
    * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { @@ -291,6 +346,8 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui public static final int UPDATE_MASK_FIELD_NUMBER = 4; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Specifies the path, relative to `Cluster`, of
    * the field to update. For example, to change the number of workers
@@ -342,7 +399,9 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui
    *  </table>
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -350,6 +409,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Specifies the path, relative to `Cluster`, of
    * the field to update. For example, to change the number of workers
@@ -401,7 +462,9 @@ public boolean hasUpdateMask() {
    *  </table>
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -409,6 +472,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Specifies the path, relative to `Cluster`, of
    * the field to update. For example, to change the number of workers
@@ -460,7 +525,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *  </table>
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -470,6 +536,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 7; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
@@ -484,6 +552,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -492,14 +561,15 @@ 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. A unique ID used to identify the request. If the server
    * receives two
@@ -514,16 +584,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 7 [(.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 { @@ -532,6 +601,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -543,8 +613,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -582,19 +651,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); } if (cluster_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCluster()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCluster()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, region_); } if (gracefulDecommissionTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getGracefulDecommissionTimeout()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getGracefulDecommissionTimeout()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, requestId_); @@ -607,36 +675,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.UpdateClusterRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.UpdateClusterRequest other = (com.google.cloud.dataproc.v1.UpdateClusterRequest) obj; + com.google.cloud.dataproc.v1.UpdateClusterRequest other = + (com.google.cloud.dataproc.v1.UpdateClusterRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getRegion() - .equals(other.getRegion())) return false; - if (!getClusterName() - .equals(other.getClusterName())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getClusterName().equals(other.getClusterName())) return false; if (hasCluster() != other.hasCluster()) return false; if (hasCluster()) { - if (!getCluster() - .equals(other.getCluster())) return false; + if (!getCluster().equals(other.getCluster())) return false; } if (hasGracefulDecommissionTimeout() != other.hasGracefulDecommissionTimeout()) return false; if (hasGracefulDecommissionTimeout()) { - if (!getGracefulDecommissionTimeout() - .equals(other.getGracefulDecommissionTimeout())) return false; + if (!getGracefulDecommissionTimeout().equals(other.getGracefulDecommissionTimeout())) + return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -674,129 +737,135 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.UpdateClusterRequest 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.dataproc.v1.UpdateClusterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.UpdateClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to update a cluster.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.UpdateClusterRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.UpdateClusterRequest) com.google.cloud.dataproc.v1.UpdateClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateClusterRequest.class, com.google.cloud.dataproc.v1.UpdateClusterRequest.Builder.class); + com.google.cloud.dataproc.v1.UpdateClusterRequest.class, + com.google.cloud.dataproc.v1.UpdateClusterRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.UpdateClusterRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -830,9 +899,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; } @java.lang.Override @@ -851,7 +920,8 @@ public com.google.cloud.dataproc.v1.UpdateClusterRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.UpdateClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.UpdateClusterRequest result = new com.google.cloud.dataproc.v1.UpdateClusterRequest(this); + com.google.cloud.dataproc.v1.UpdateClusterRequest result = + new com.google.cloud.dataproc.v1.UpdateClusterRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.clusterName_ = clusterName_; @@ -879,38 +949,39 @@ public com.google.cloud.dataproc.v1.UpdateClusterRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.UpdateClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.UpdateClusterRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.UpdateClusterRequest) other); } else { super.mergeFrom(other); return this; @@ -918,7 +989,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.UpdateClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.UpdateClusterRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.UpdateClusterRequest.getDefaultInstance()) + return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -970,53 +1042,56 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - input.readMessage( - getClusterFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 34: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - region_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - input.readMessage( - getGracefulDecommissionTimeoutFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - case 58: { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getClusterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + input.readMessage( + getGracefulDecommissionTimeoutFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1029,19 +1104,21 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1050,21 +1127,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -1072,57 +1150,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project the
      * cluster belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1130,18 +1215,20 @@ public Builder setProjectIdBytes( private java.lang.Object region_ = ""; /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -1150,20 +1237,21 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -1171,54 +1259,61 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion( - java.lang.String value) { + public Builder setRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -1226,18 +1321,20 @@ public Builder setRegionBytes( private java.lang.Object clusterName_ = ""; /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -1246,20 +1343,21 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -1267,54 +1365,61 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName( - java.lang.String value) { + public Builder setClusterName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** + * + * *
      * Required. The cluster name.
      * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1322,39 +1427,58 @@ public Builder setClusterNameBytes( private com.google.cloud.dataproc.v1.Cluster cluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, com.google.cloud.dataproc.v1.Cluster.Builder, com.google.cloud.dataproc.v1.ClusterOrBuilder> clusterBuilder_; + com.google.cloud.dataproc.v1.Cluster, + com.google.cloud.dataproc.v1.Cluster.Builder, + com.google.cloud.dataproc.v1.ClusterOrBuilder> + clusterBuilder_; /** + * + * *
      * Required. The changes to the cluster.
      * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the cluster field is set. */ public boolean hasCluster() { return clusterBuilder_ != null || cluster_ != null; } /** + * + * *
      * Required. The changes to the cluster.
      * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The cluster. */ public com.google.cloud.dataproc.v1.Cluster getCluster() { if (clusterBuilder_ == null) { - return cluster_ == null ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() : cluster_; + return cluster_ == null + ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() + : cluster_; } else { return clusterBuilder_.getMessage(); } } /** + * + * *
      * Required. The changes to the cluster.
      * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCluster(com.google.cloud.dataproc.v1.Cluster value) { if (clusterBuilder_ == null) { @@ -1370,14 +1494,17 @@ public Builder setCluster(com.google.cloud.dataproc.v1.Cluster value) { return this; } /** + * + * *
      * Required. The changes to the cluster.
      * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCluster( - com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { + public Builder setCluster(com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { if (clusterBuilder_ == null) { cluster_ = builderForValue.build(); onChanged(); @@ -1388,17 +1515,23 @@ public Builder setCluster( return this; } /** + * + * *
      * Required. The changes to the cluster.
      * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCluster(com.google.cloud.dataproc.v1.Cluster value) { if (clusterBuilder_ == null) { if (cluster_ != null) { cluster_ = - com.google.cloud.dataproc.v1.Cluster.newBuilder(cluster_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.Cluster.newBuilder(cluster_) + .mergeFrom(value) + .buildPartial(); } else { cluster_ = value; } @@ -1410,11 +1543,15 @@ public Builder mergeCluster(com.google.cloud.dataproc.v1.Cluster value) { return this; } /** + * + * *
      * Required. The changes to the cluster.
      * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCluster() { if (clusterBuilder_ == null) { @@ -1428,48 +1565,64 @@ public Builder clearCluster() { return this; } /** + * + * *
      * Required. The changes to the cluster.
      * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.Cluster.Builder getClusterBuilder() { - + onChanged(); return getClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The changes to the cluster.
      * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { if (clusterBuilder_ != null) { return clusterBuilder_.getMessageOrBuilder(); } else { - return cluster_ == null ? - com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() : cluster_; + return cluster_ == null + ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() + : cluster_; } } /** + * + * *
      * Required. The changes to the cluster.
      * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, com.google.cloud.dataproc.v1.Cluster.Builder, com.google.cloud.dataproc.v1.ClusterOrBuilder> + com.google.cloud.dataproc.v1.Cluster, + com.google.cloud.dataproc.v1.Cluster.Builder, + com.google.cloud.dataproc.v1.ClusterOrBuilder> getClusterFieldBuilder() { if (clusterBuilder_ == null) { - clusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, com.google.cloud.dataproc.v1.Cluster.Builder, com.google.cloud.dataproc.v1.ClusterOrBuilder>( - getCluster(), - getParentForChildren(), - isClean()); + clusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.Cluster, + com.google.cloud.dataproc.v1.Cluster.Builder, + com.google.cloud.dataproc.v1.ClusterOrBuilder>( + getCluster(), getParentForChildren(), isClean()); cluster_ = null; } return clusterBuilder_; @@ -1477,8 +1630,13 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { private com.google.protobuf.Duration gracefulDecommissionTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> gracefulDecommissionTimeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + gracefulDecommissionTimeoutBuilder_; /** + * + * *
      * Optional. Timeout for graceful YARN decomissioning. Graceful
      * decommissioning allows removing nodes from the cluster without
@@ -1490,13 +1648,18 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() {
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gracefulDecommissionTimeout field is set. */ public boolean hasGracefulDecommissionTimeout() { return gracefulDecommissionTimeoutBuilder_ != null || gracefulDecommissionTimeout_ != null; } /** + * + * *
      * Optional. Timeout for graceful YARN decomissioning. Graceful
      * decommissioning allows removing nodes from the cluster without
@@ -1508,17 +1671,24 @@ public boolean hasGracefulDecommissionTimeout() {
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gracefulDecommissionTimeout. */ public com.google.protobuf.Duration getGracefulDecommissionTimeout() { if (gracefulDecommissionTimeoutBuilder_ == null) { - return gracefulDecommissionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : gracefulDecommissionTimeout_; + return gracefulDecommissionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : gracefulDecommissionTimeout_; } else { return gracefulDecommissionTimeoutBuilder_.getMessage(); } } /** + * + * *
      * Optional. Timeout for graceful YARN decomissioning. Graceful
      * decommissioning allows removing nodes from the cluster without
@@ -1530,7 +1700,9 @@ public com.google.protobuf.Duration getGracefulDecommissionTimeout() {
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value) { if (gracefulDecommissionTimeoutBuilder_ == null) { @@ -1546,6 +1718,8 @@ public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value return this; } /** + * + * *
      * Optional. Timeout for graceful YARN decomissioning. Graceful
      * decommissioning allows removing nodes from the cluster without
@@ -1557,7 +1731,9 @@ public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGracefulDecommissionTimeout( com.google.protobuf.Duration.Builder builderForValue) { @@ -1571,6 +1747,8 @@ public Builder setGracefulDecommissionTimeout( return this; } /** + * + * *
      * Optional. Timeout for graceful YARN decomissioning. Graceful
      * decommissioning allows removing nodes from the cluster without
@@ -1582,13 +1760,17 @@ public Builder setGracefulDecommissionTimeout(
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration value) { if (gracefulDecommissionTimeoutBuilder_ == null) { if (gracefulDecommissionTimeout_ != null) { gracefulDecommissionTimeout_ = - com.google.protobuf.Duration.newBuilder(gracefulDecommissionTimeout_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(gracefulDecommissionTimeout_) + .mergeFrom(value) + .buildPartial(); } else { gracefulDecommissionTimeout_ = value; } @@ -1600,6 +1782,8 @@ public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration val return this; } /** + * + * *
      * Optional. Timeout for graceful YARN decomissioning. Graceful
      * decommissioning allows removing nodes from the cluster without
@@ -1611,7 +1795,9 @@ public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration val
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGracefulDecommissionTimeout() { if (gracefulDecommissionTimeoutBuilder_ == null) { @@ -1625,6 +1811,8 @@ public Builder clearGracefulDecommissionTimeout() { return this; } /** + * + * *
      * Optional. Timeout for graceful YARN decomissioning. Graceful
      * decommissioning allows removing nodes from the cluster without
@@ -1636,14 +1824,18 @@ public Builder clearGracefulDecommissionTimeout() {
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getGracefulDecommissionTimeoutBuilder() { - + onChanged(); return getGracefulDecommissionTimeoutFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Timeout for graceful YARN decomissioning. Graceful
      * decommissioning allows removing nodes from the cluster without
@@ -1655,17 +1847,22 @@ public com.google.protobuf.Duration.Builder getGracefulDecommissionTimeoutBuilde
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { if (gracefulDecommissionTimeoutBuilder_ != null) { return gracefulDecommissionTimeoutBuilder_.getMessageOrBuilder(); } else { - return gracefulDecommissionTimeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : gracefulDecommissionTimeout_; + return gracefulDecommissionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : gracefulDecommissionTimeout_; } } /** + * + * *
      * Optional. Timeout for graceful YARN decomissioning. Graceful
      * decommissioning allows removing nodes from the cluster without
@@ -1677,17 +1874,22 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui
      * Only supported on Dataproc image versions 1.2 and higher.
      * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getGracefulDecommissionTimeoutFieldBuilder() { if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getGracefulDecommissionTimeout(), - getParentForChildren(), - isClean()); + gracefulDecommissionTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getGracefulDecommissionTimeout(), getParentForChildren(), isClean()); gracefulDecommissionTimeout_ = null; } return gracefulDecommissionTimeoutBuilder_; @@ -1695,8 +1897,13 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. Specifies the path, relative to `Cluster`, of
      * the field to update. For example, to change the number of workers
@@ -1748,13 +1955,17 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui
      *  </table>
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Specifies the path, relative to `Cluster`, of
      * the field to update. For example, to change the number of workers
@@ -1806,17 +2017,23 @@ public boolean hasUpdateMask() {
      *  </table>
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. Specifies the path, relative to `Cluster`, of
      * the field to update. For example, to change the number of workers
@@ -1868,7 +2085,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      *  </table>
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1884,6 +2102,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Specifies the path, relative to `Cluster`, of
      * the field to update. For example, to change the number of workers
@@ -1935,10 +2155,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *  </table>
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -1949,6 +2169,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Specifies the path, relative to `Cluster`, of
      * the field to update. For example, to change the number of workers
@@ -2000,13 +2222,14 @@ public Builder setUpdateMask(
      *  </table>
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -2018,6 +2241,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Specifies the path, relative to `Cluster`, of
      * the field to update. For example, to change the number of workers
@@ -2069,7 +2294,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      *  </table>
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -2083,6 +2309,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Specifies the path, relative to `Cluster`, of
      * the field to update. For example, to change the number of workers
@@ -2134,14 +2362,17 @@ public Builder clearUpdateMask() {
      *  </table>
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Specifies the path, relative to `Cluster`, of
      * the field to update. For example, to change the number of workers
@@ -2193,17 +2424,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      *  </table>
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. Specifies the path, relative to `Cluster`, of
      * the field to update. For example, to change the number of workers
@@ -2255,17 +2490,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      *  </table>
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -2273,6 +2512,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
@@ -2287,13 +2528,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string request_id = 7 [(.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; @@ -2302,6 +2543,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
@@ -2316,15 +2559,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 7 [(.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 { @@ -2332,6 +2574,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
@@ -2346,20 +2590,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 7 [(.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. A unique ID used to identify the request. If the server
      * receives two
@@ -2374,15 +2620,18 @@ public Builder setRequestId(
      * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A unique ID used to identify the request. If the server
      * receives two
@@ -2397,23 +2646,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 7 [(.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); } @@ -2423,12 +2672,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.UpdateClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.UpdateClusterRequest) private static final com.google.cloud.dataproc.v1.UpdateClusterRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.UpdateClusterRequest(); } @@ -2437,27 +2686,27 @@ public static com.google.cloud.dataproc.v1.UpdateClusterRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2472,6 +2721,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.UpdateClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java similarity index 87% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java index 33a370d47669..d3ae4455e35e 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java @@ -1,102 +1,146 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface UpdateClusterRequestOrBuilder extends +public interface UpdateClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.UpdateClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the Google Cloud Platform project the
    * cluster belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ java.lang.String getRegion(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - com.google.protobuf.ByteString - getRegionBytes(); + com.google.protobuf.ByteString getRegionBytes(); /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The clusterName. */ java.lang.String getClusterName(); /** + * + * *
    * Required. The cluster name.
    * 
* * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString - getClusterNameBytes(); + com.google.protobuf.ByteString getClusterNameBytes(); /** + * + * *
    * Required. The changes to the cluster.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the cluster field is set. */ boolean hasCluster(); /** + * + * *
    * Required. The changes to the cluster.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The cluster. */ com.google.cloud.dataproc.v1.Cluster getCluster(); /** + * + * *
    * Required. The changes to the cluster.
    * 
* - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder(); /** + * + * *
    * Optional. Timeout for graceful YARN decomissioning. Graceful
    * decommissioning allows removing nodes from the cluster without
@@ -108,11 +152,16 @@ public interface UpdateClusterRequestOrBuilder extends
    * Only supported on Dataproc image versions 1.2 and higher.
    * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gracefulDecommissionTimeout field is set. */ boolean hasGracefulDecommissionTimeout(); /** + * + * *
    * Optional. Timeout for graceful YARN decomissioning. Graceful
    * decommissioning allows removing nodes from the cluster without
@@ -124,11 +173,16 @@ public interface UpdateClusterRequestOrBuilder extends
    * Only supported on Dataproc image versions 1.2 and higher.
    * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gracefulDecommissionTimeout. */ com.google.protobuf.Duration getGracefulDecommissionTimeout(); /** + * + * *
    * Optional. Timeout for graceful YARN decomissioning. Graceful
    * decommissioning allows removing nodes from the cluster without
@@ -140,11 +194,15 @@ public interface UpdateClusterRequestOrBuilder extends
    * Only supported on Dataproc image versions 1.2 and higher.
    * 
* - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder(); /** + * + * *
    * Required. Specifies the path, relative to `Cluster`, of
    * the field to update. For example, to change the number of workers
@@ -196,11 +254,15 @@ public interface UpdateClusterRequestOrBuilder extends
    *  </table>
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Specifies the path, relative to `Cluster`, of
    * the field to update. For example, to change the number of workers
@@ -252,11 +314,15 @@ public interface UpdateClusterRequestOrBuilder extends
    *  </table>
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Specifies the path, relative to `Cluster`, of
    * the field to update. For example, to change the number of workers
@@ -308,11 +374,14 @@ public interface UpdateClusterRequestOrBuilder extends
    *  </table>
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
@@ -327,10 +396,13 @@ public interface UpdateClusterRequestOrBuilder extends
    * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique ID used to identify the request. If the server
    * receives two
@@ -345,8 +417,8 @@ public interface UpdateClusterRequestOrBuilder extends
    * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java similarity index 74% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java index f477d5cff8e6..f13425dd7d51 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to update a job.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.UpdateJobRequest} */ -public final class UpdateJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.UpdateJobRequest) UpdateJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateJobRequest.newBuilder() to construct. private UpdateJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateJobRequest() { projectId_ = ""; region_ = ""; @@ -27,38 +45,42 @@ private UpdateJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateJobRequest.class, com.google.cloud.dataproc.v1.UpdateJobRequest.Builder.class); + com.google.cloud.dataproc.v1.UpdateJobRequest.class, + com.google.cloud.dataproc.v1.UpdateJobRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -67,30 +89,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -101,11 +123,14 @@ public java.lang.String getProjectId() { public static final int REGION_FIELD_NUMBER = 2; private volatile java.lang.Object region_; /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ @java.lang.Override @@ -114,29 +139,29 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -147,11 +172,14 @@ public java.lang.String getRegion() { public static final int JOB_ID_FIELD_NUMBER = 3; private volatile java.lang.Object jobId_; /** + * + * *
    * Required. The job ID.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The jobId. */ @java.lang.Override @@ -160,29 +188,29 @@ public java.lang.String getJobId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; } } /** + * + * *
    * Required. The job ID.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for jobId. */ @java.lang.Override - public com.google.protobuf.ByteString - getJobIdBytes() { + public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobId_ = b; return b; } else { @@ -193,11 +221,14 @@ public java.lang.String getJobId() { public static final int JOB_FIELD_NUMBER = 4; private com.google.cloud.dataproc.v1.Job job_; /** + * + * *
    * Required. The changes to the job.
    * 
* * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the job field is set. */ @java.lang.Override @@ -205,11 +236,14 @@ public boolean hasJob() { return job_ != null; } /** + * + * *
    * Required. The changes to the job.
    * 
* * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The job. */ @java.lang.Override @@ -217,6 +251,8 @@ public com.google.cloud.dataproc.v1.Job getJob() { return job_ == null ? com.google.cloud.dataproc.v1.Job.getDefaultInstance() : job_; } /** + * + * *
    * Required. The changes to the job.
    * 
@@ -231,6 +267,8 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 5; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Specifies the path, relative to <code>Job</code>, of
    * the field to update. For example, to update the labels of a Job the
@@ -240,7 +278,9 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() {
    * field that can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -248,6 +288,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Specifies the path, relative to <code>Job</code>, of
    * the field to update. For example, to update the labels of a Job the
@@ -257,7 +299,9 @@ public boolean hasUpdateMask() {
    * field that can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -265,6 +309,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Specifies the path, relative to <code>Job</code>, of
    * the field to update. For example, to update the labels of a Job the
@@ -274,7 +320,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * field that can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -282,6 +329,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,8 +341,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -329,12 +376,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobId_); } if (job_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getJob()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getJob()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -344,28 +389,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.dataproc.v1.UpdateJobRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.UpdateJobRequest other = (com.google.cloud.dataproc.v1.UpdateJobRequest) obj; + com.google.cloud.dataproc.v1.UpdateJobRequest other = + (com.google.cloud.dataproc.v1.UpdateJobRequest) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getRegion() - .equals(other.getRegion())) return false; - if (!getJobId() - .equals(other.getJobId())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) 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 (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -397,130 +438,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.UpdateJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.UpdateJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.UpdateJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A request to update a job.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.UpdateJobRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.UpdateJobRequest) com.google.cloud.dataproc.v1.UpdateJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateJobRequest.class, com.google.cloud.dataproc.v1.UpdateJobRequest.Builder.class); + com.google.cloud.dataproc.v1.UpdateJobRequest.class, + com.google.cloud.dataproc.v1.UpdateJobRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.UpdateJobRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -546,9 +593,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; } @java.lang.Override @@ -567,7 +614,8 @@ public com.google.cloud.dataproc.v1.UpdateJobRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.UpdateJobRequest buildPartial() { - com.google.cloud.dataproc.v1.UpdateJobRequest result = new com.google.cloud.dataproc.v1.UpdateJobRequest(this); + com.google.cloud.dataproc.v1.UpdateJobRequest result = + new com.google.cloud.dataproc.v1.UpdateJobRequest(this); result.projectId_ = projectId_; result.region_ = region_; result.jobId_ = jobId_; @@ -589,38 +637,39 @@ public com.google.cloud.dataproc.v1.UpdateJobRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.UpdateJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.UpdateJobRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.UpdateJobRequest) other); } else { super.mergeFrom(other); return this; @@ -673,41 +722,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - region_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - input.readMessage( - getJobFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + input.readMessage(getJobFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -720,19 +771,21 @@ public Builder mergeFrom( private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -741,21 +794,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -763,57 +817,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the Google Cloud Platform project that the job
      * belongs to.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -821,18 +882,20 @@ public Builder setProjectIdBytes( private java.lang.Object region_ = ""; /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -841,20 +904,21 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -862,54 +926,61 @@ public java.lang.String getRegion() { } } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion( - java.lang.String value) { + public Builder setRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** + * + * *
      * Required. The Dataproc region in which to handle the request.
      * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; @@ -917,18 +988,20 @@ public Builder setRegionBytes( private java.lang.Object jobId_ = ""; /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The jobId. */ public java.lang.String getJobId() { java.lang.Object ref = jobId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; @@ -937,20 +1010,21 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for jobId. */ - public com.google.protobuf.ByteString - getJobIdBytes() { + public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobId_ = b; return b; } else { @@ -958,54 +1032,61 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The jobId to set. * @return This builder for chaining. */ - public Builder setJobId( - java.lang.String value) { + public Builder setJobId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearJobId() { - + jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** + * + * *
      * Required. The job ID.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for jobId to set. * @return This builder for chaining. */ - public Builder setJobIdBytes( - com.google.protobuf.ByteString value) { + public Builder setJobIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobId_ = value; onChanged(); return this; @@ -1013,24 +1094,33 @@ public Builder setJobIdBytes( private com.google.cloud.dataproc.v1.Job job_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, com.google.cloud.dataproc.v1.Job.Builder, com.google.cloud.dataproc.v1.JobOrBuilder> jobBuilder_; + com.google.cloud.dataproc.v1.Job, + com.google.cloud.dataproc.v1.Job.Builder, + com.google.cloud.dataproc.v1.JobOrBuilder> + jobBuilder_; /** + * + * *
      * Required. The changes to the job.
      * 
* * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the job field is set. */ public boolean hasJob() { return jobBuilder_ != null || job_ != null; } /** + * + * *
      * Required. The changes to the job.
      * 
* * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The job. */ public com.google.cloud.dataproc.v1.Job getJob() { @@ -1041,6 +1131,8 @@ public com.google.cloud.dataproc.v1.Job getJob() { } } /** + * + * *
      * Required. The changes to the job.
      * 
@@ -1061,14 +1153,15 @@ public Builder setJob(com.google.cloud.dataproc.v1.Job value) { return this; } /** + * + * *
      * Required. The changes to the job.
      * 
* * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setJob( - com.google.cloud.dataproc.v1.Job.Builder builderForValue) { + public Builder setJob(com.google.cloud.dataproc.v1.Job.Builder builderForValue) { if (jobBuilder_ == null) { job_ = builderForValue.build(); onChanged(); @@ -1079,6 +1172,8 @@ public Builder setJob( return this; } /** + * + * *
      * Required. The changes to the job.
      * 
@@ -1088,8 +1183,7 @@ public Builder setJob( public Builder mergeJob(com.google.cloud.dataproc.v1.Job value) { if (jobBuilder_ == null) { if (job_ != null) { - job_ = - com.google.cloud.dataproc.v1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + job_ = com.google.cloud.dataproc.v1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); } else { job_ = value; } @@ -1101,6 +1195,8 @@ public Builder mergeJob(com.google.cloud.dataproc.v1.Job value) { return this; } /** + * + * *
      * Required. The changes to the job.
      * 
@@ -1119,6 +1215,8 @@ public Builder clearJob() { return this; } /** + * + * *
      * Required. The changes to the job.
      * 
@@ -1126,11 +1224,13 @@ public Builder clearJob() { * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dataproc.v1.Job.Builder getJobBuilder() { - + onChanged(); return getJobFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The changes to the job.
      * 
@@ -1141,11 +1241,12 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { if (jobBuilder_ != null) { return jobBuilder_.getMessageOrBuilder(); } else { - return job_ == null ? - com.google.cloud.dataproc.v1.Job.getDefaultInstance() : job_; + return job_ == null ? com.google.cloud.dataproc.v1.Job.getDefaultInstance() : job_; } } /** + * + * *
      * Required. The changes to the job.
      * 
@@ -1153,14 +1254,17 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, com.google.cloud.dataproc.v1.Job.Builder, com.google.cloud.dataproc.v1.JobOrBuilder> + com.google.cloud.dataproc.v1.Job, + com.google.cloud.dataproc.v1.Job.Builder, + com.google.cloud.dataproc.v1.JobOrBuilder> getJobFieldBuilder() { if (jobBuilder_ == null) { - jobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, com.google.cloud.dataproc.v1.Job.Builder, com.google.cloud.dataproc.v1.JobOrBuilder>( - getJob(), - getParentForChildren(), - isClean()); + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.Job, + com.google.cloud.dataproc.v1.Job.Builder, + com.google.cloud.dataproc.v1.JobOrBuilder>( + getJob(), getParentForChildren(), isClean()); job_ = null; } return jobBuilder_; @@ -1168,8 +1272,13 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. Specifies the path, relative to <code>Job</code>, of
      * the field to update. For example, to update the labels of a Job the
@@ -1179,13 +1288,17 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() {
      * field that can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Specifies the path, relative to <code>Job</code>, of
      * the field to update. For example, to update the labels of a Job the
@@ -1195,17 +1308,23 @@ public boolean hasUpdateMask() {
      * field that can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. Specifies the path, relative to <code>Job</code>, of
      * the field to update. For example, to update the labels of a Job the
@@ -1215,7 +1334,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * field that can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1231,6 +1351,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Specifies the path, relative to <code>Job</code>, of
      * the field to update. For example, to update the labels of a Job the
@@ -1240,10 +1362,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * field that can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -1254,6 +1376,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Specifies the path, relative to <code>Job</code>, of
      * the field to update. For example, to update the labels of a Job the
@@ -1263,13 +1387,14 @@ public Builder setUpdateMask(
      * field that can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1281,6 +1406,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Specifies the path, relative to <code>Job</code>, of
      * the field to update. For example, to update the labels of a Job the
@@ -1290,7 +1417,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * field that can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -1304,6 +1432,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Specifies the path, relative to <code>Job</code>, of
      * the field to update. For example, to update the labels of a Job the
@@ -1313,14 +1443,17 @@ public Builder clearUpdateMask() {
      * field that can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Specifies the path, relative to <code>Job</code>, of
      * the field to update. For example, to update the labels of a Job the
@@ -1330,17 +1463,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * field that can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. Specifies the path, relative to <code>Job</code>, of
      * the field to update. For example, to update the labels of a Job the
@@ -1350,24 +1487,28 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * field that can be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1377,12 +1518,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.UpdateJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.UpdateJobRequest) private static final com.google.cloud.dataproc.v1.UpdateJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.UpdateJobRequest(); } @@ -1391,27 +1532,27 @@ public static com.google.cloud.dataproc.v1.UpdateJobRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1426,6 +1567,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.UpdateJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java index 8ffa1051874a..b4d66081e4ac 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java @@ -1,93 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface UpdateJobRequestOrBuilder extends +public interface UpdateJobRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.UpdateJobRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the Google Cloud Platform project that the job
    * belongs to.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The region. */ java.lang.String getRegion(); /** + * + * *
    * Required. The Dataproc region in which to handle the request.
    * 
* * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for region. */ - com.google.protobuf.ByteString - getRegionBytes(); + com.google.protobuf.ByteString getRegionBytes(); /** + * + * *
    * Required. The job ID.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The jobId. */ java.lang.String getJobId(); /** + * + * *
    * Required. The job ID.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for jobId. */ - com.google.protobuf.ByteString - getJobIdBytes(); + com.google.protobuf.ByteString getJobIdBytes(); /** + * + * *
    * Required. The changes to the job.
    * 
* * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the job field is set. */ boolean hasJob(); /** + * + * *
    * Required. The changes to the job.
    * 
* * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The job. */ com.google.cloud.dataproc.v1.Job getJob(); /** + * + * *
    * Required. The changes to the job.
    * 
@@ -97,6 +136,8 @@ public interface UpdateJobRequestOrBuilder extends com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder(); /** + * + * *
    * Required. Specifies the path, relative to <code>Job</code>, of
    * the field to update. For example, to update the labels of a Job the
@@ -106,11 +147,15 @@ public interface UpdateJobRequestOrBuilder extends
    * field that can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Specifies the path, relative to <code>Job</code>, of
    * the field to update. For example, to update the labels of a Job the
@@ -120,11 +165,15 @@ public interface UpdateJobRequestOrBuilder extends
    * field that can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Specifies the path, relative to <code>Job</code>, of
    * the field to update. For example, to update the labels of a Job the
@@ -134,7 +183,8 @@ public interface UpdateJobRequestOrBuilder extends
    * field that can be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java similarity index 62% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java index 93beaf840317..3feffb7f46ec 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java @@ -1,61 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A request to update a workflow template.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest} */ -public final class UpdateWorkflowTemplateRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) UpdateWorkflowTemplateRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateWorkflowTemplateRequest.newBuilder() to construct. private UpdateWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateWorkflowTemplateRequest() { - } + + private UpdateWorkflowTemplateRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateWorkflowTemplateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.class, + com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.Builder.class); } public static final int TEMPLATE_FIELD_NUMBER = 1; private com.google.cloud.dataproc.v1.WorkflowTemplate template_; /** + * + * *
    * Required. The updated workflow template.
    * The `template.version` field must match the current version.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the template field is set. */ @java.lang.Override @@ -63,25 +86,36 @@ public boolean hasTemplate() { return template_ != null; } /** + * + * *
    * Required. The updated workflow template.
    * The `template.version` field must match the current version.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The template. */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate() { - return template_ == null ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() + : template_; } /** + * + * *
    * Required. The updated workflow template.
    * The `template.version` field must match the current version.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder() { @@ -89,6 +123,7 @@ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuild } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -100,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (template_ != null) { output.writeMessage(1, getTemplate()); } @@ -115,8 +149,7 @@ public int getSerializedSize() { size = 0; if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTemplate()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTemplate()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -126,17 +159,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.dataproc.v1.UpdateWorkflowTemplateRequest)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest other = (com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) obj; + com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest other = + (com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) obj; if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) return false; + if (!getTemplate().equals(other.getTemplate())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -159,129 +192,136 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest 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.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 request to update a workflow template.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.class, com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.Builder.class); + com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.class, + com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.Builder.class); } // Construct using com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -295,9 +335,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; } @java.lang.Override @@ -316,7 +356,8 @@ public com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest build() { @java.lang.Override public com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest result = new com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest(this); + com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest result = + new com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest(this); if (templateBuilder_ == null) { result.template_ = template_; } else { @@ -330,38 +371,39 @@ public com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest)other); + return mergeFrom((com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +411,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest other) { - if (other == com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.getDefaultInstance()) + return this; if (other.hasTemplate()) { mergeTemplate(other.getTemplate()); } @@ -399,19 +442,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getTemplateFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getTemplateFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -424,42 +467,61 @@ public Builder mergeFrom( private com.google.cloud.dataproc.v1.WorkflowTemplate template_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> templateBuilder_; + com.google.cloud.dataproc.v1.WorkflowTemplate, + com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, + com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> + templateBuilder_; /** + * + * *
      * Required. The updated workflow template.
      * The `template.version` field must match the current version.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the template field is set. */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** + * + * *
      * Required. The updated workflow template.
      * The `template.version` field must match the current version.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The template. */ public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate() { if (templateBuilder_ == null) { - return template_ == null ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() + : template_; } else { return templateBuilder_.getMessage(); } } /** + * + * *
      * Required. The updated workflow template.
      * The `template.version` field must match the current version.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) { if (templateBuilder_ == null) { @@ -475,12 +537,16 @@ public Builder setTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) return this; } /** + * + * *
      * Required. The updated workflow template.
      * The `template.version` field must match the current version.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTemplate( com.google.cloud.dataproc.v1.WorkflowTemplate.Builder builderForValue) { @@ -494,18 +560,24 @@ public Builder setTemplate( return this; } /** + * + * *
      * Required. The updated workflow template.
      * The `template.version` field must match the current version.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = - com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder(template_) + .mergeFrom(value) + .buildPartial(); } else { template_ = value; } @@ -517,12 +589,16 @@ public Builder mergeTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value return this; } /** + * + * *
      * Required. The updated workflow template.
      * The `template.version` field must match the current version.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTemplate() { if (templateBuilder_ == null) { @@ -536,58 +612,74 @@ public Builder clearTemplate() { return this; } /** + * + * *
      * Required. The updated workflow template.
      * The `template.version` field must match the current version.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder getTemplateBuilder() { - + onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The updated workflow template.
      * The `template.version` field must match the current version.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { - return template_ == null ? - com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() + : template_; } } /** + * + * *
      * Required. The updated workflow template.
      * The `template.version` field must match the current version.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> + com.google.cloud.dataproc.v1.WorkflowTemplate, + com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, + com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); + templateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.WorkflowTemplate, + com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, + com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( + getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -597,12 +689,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) private static final com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest(); } @@ -611,27 +703,27 @@ public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkflowTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -646,6 +738,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..0d428c4aba75 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java @@ -0,0 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/workflow_templates.proto + +package com.google.cloud.dataproc.v1; + +public interface UpdateWorkflowTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The updated workflow template.
+   * The `template.version` field must match the current version.
+   * 
+ * + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the template field is set. + */ + boolean hasTemplate(); + /** + * + * + *
+   * Required. The updated workflow template.
+   * The `template.version` field must match the current version.
+   * 
+ * + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The template. + */ + com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate(); + /** + * + * + *
+   * Required. The updated workflow template.
+   * The `template.version` field must match the current version.
+   * 
+ * + * + * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder(); +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java similarity index 68% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java index 6a6cd874f1cd..38fc0bcc5356 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java @@ -1,84 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Validation based on a list of allowed values.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ValueValidation} */ -public final class ValueValidation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ValueValidation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ValueValidation) ValueValidationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ValueValidation.newBuilder() to construct. private ValueValidation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ValueValidation() { values_ = 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 ValueValidation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ValueValidation_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ValueValidation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ValueValidation.class, com.google.cloud.dataproc.v1.ValueValidation.Builder.class); + com.google.cloud.dataproc.v1.ValueValidation.class, + com.google.cloud.dataproc.v1.ValueValidation.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList values_; /** + * + * *
    * Required. List of allowed values for the parameter.
    * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList - getValuesList() { + public com.google.protobuf.ProtocolStringList getValuesList() { return values_; } /** + * + * *
    * Required. List of allowed values for the parameter.
    * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** + * + * *
    * Required. List of allowed values for the parameter.
    * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The values at the given index. */ @@ -86,20 +113,23 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** + * + * *
    * Required. List of allowed values for the parameter.
    * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { + public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -111,8 +141,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); } @@ -141,15 +170,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.dataproc.v1.ValueValidation)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.ValueValidation other = (com.google.cloud.dataproc.v1.ValueValidation) obj; + com.google.cloud.dataproc.v1.ValueValidation other = + (com.google.cloud.dataproc.v1.ValueValidation) obj; - if (!getValuesList() - .equals(other.getValuesList())) return false; + if (!getValuesList().equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -170,130 +199,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.ValueValidation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.ValueValidation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ValueValidation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.ValueValidation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Validation based on a list of allowed values.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ValueValidation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ValueValidation) com.google.cloud.dataproc.v1.ValueValidationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ValueValidation_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ValueValidation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ValueValidation.class, com.google.cloud.dataproc.v1.ValueValidation.Builder.class); + com.google.cloud.dataproc.v1.ValueValidation.class, + com.google.cloud.dataproc.v1.ValueValidation.Builder.class); } // Construct using com.google.cloud.dataproc.v1.ValueValidation.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -303,9 +338,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; } @java.lang.Override @@ -324,7 +359,8 @@ public com.google.cloud.dataproc.v1.ValueValidation build() { @java.lang.Override public com.google.cloud.dataproc.v1.ValueValidation buildPartial() { - com.google.cloud.dataproc.v1.ValueValidation result = new com.google.cloud.dataproc.v1.ValueValidation(this); + com.google.cloud.dataproc.v1.ValueValidation result = + new com.google.cloud.dataproc.v1.ValueValidation(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); @@ -339,38 +375,39 @@ public com.google.cloud.dataproc.v1.ValueValidation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.ValueValidation) { - return mergeFrom((com.google.cloud.dataproc.v1.ValueValidation)other); + return mergeFrom((com.google.cloud.dataproc.v1.ValueValidation) other); } else { super.mergeFrom(other); return this; @@ -415,18 +452,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -436,44 +475,55 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList values_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Required. List of allowed values for the parameter.
      * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList - getValuesList() { + public com.google.protobuf.ProtocolStringList getValuesList() { return values_.getUnmodifiableView(); } /** + * + * *
      * Required. List of allowed values for the parameter.
      * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** + * + * *
      * Required. List of allowed values for the parameter.
      * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The values at the given index. */ @@ -481,80 +531,90 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** + * + * *
      * Required. List of allowed values for the parameter.
      * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { + public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } /** + * + * *
      * Required. List of allowed values for the parameter.
      * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ - public Builder setValues( - int index, java.lang.String value) { + public Builder setValues(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. List of allowed values for the parameter.
      * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The values to add. * @return This builder for chaining. */ - public Builder addValues( - java.lang.String value) { + public Builder addValues(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** + * + * *
      * Required. List of allowed values for the parameter.
      * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The values to add. * @return This builder for chaining. */ - public Builder addAllValues( - java.lang.Iterable values) { + public Builder addAllValues(java.lang.Iterable values) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); onChanged(); return this; } /** + * + * *
      * Required. List of allowed values for the parameter.
      * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearValues() { @@ -564,28 +624,30 @@ public Builder clearValues() { return this; } /** + * + * *
      * Required. List of allowed values for the parameter.
      * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the values to add. * @return This builder for chaining. */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { + public Builder addValuesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.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); } @@ -595,12 +657,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ValueValidation) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ValueValidation) private static final com.google.cloud.dataproc.v1.ValueValidation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ValueValidation(); } @@ -609,27 +671,27 @@ public static com.google.cloud.dataproc.v1.ValueValidation getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValueValidation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValueValidation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -644,6 +706,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.ValueValidation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java similarity index 62% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java index 79cf41968dd6..213558389ef2 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java @@ -1,50 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface ValueValidationOrBuilder extends +public interface ValueValidationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ValueValidation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. List of allowed values for the parameter.
    * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the values. */ - java.util.List - getValuesList(); + java.util.List getValuesList(); /** + * + * *
    * Required. List of allowed values for the parameter.
    * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of values. */ int getValuesCount(); /** + * + * *
    * Required. List of allowed values for the parameter.
    * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** + * + * *
    * Required. List of allowed values for the parameter.
    * 
* * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - com.google.protobuf.ByteString - getValuesBytes(int index); + com.google.protobuf.ByteString getValuesBytes(int index); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java similarity index 66% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java index 77e4d5a0f8f2..f2b6bfdc03c9 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * The Dataproc cluster config for a cluster that does not directly control the
  * underlying compute resources, such as a [Dataproc-on-GKE
@@ -12,52 +29,57 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.VirtualClusterConfig}
  */
-public final class VirtualClusterConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class VirtualClusterConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.VirtualClusterConfig)
     VirtualClusterConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use VirtualClusterConfig.newBuilder() to construct.
   private VirtualClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private VirtualClusterConfig() {
     stagingBucket_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new VirtualClusterConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.ClustersProto
+        .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.VirtualClusterConfig.class, com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder.class);
+            com.google.cloud.dataproc.v1.VirtualClusterConfig.class,
+            com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder.class);
   }
 
   private int infrastructureConfigCase_ = 0;
   private java.lang.Object infrastructureConfig_;
+
   public enum InfrastructureConfigCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     KUBERNETES_CLUSTER_CONFIG(6),
     INFRASTRUCTURECONFIG_NOT_SET(0);
     private final int value;
+
     private InfrastructureConfigCase(int value) {
       this.value = value;
     }
@@ -73,25 +95,29 @@ public static InfrastructureConfigCase valueOf(int value) {
 
     public static InfrastructureConfigCase forNumber(int value) {
       switch (value) {
-        case 6: return KUBERNETES_CLUSTER_CONFIG;
-        case 0: return INFRASTRUCTURECONFIG_NOT_SET;
-        default: return null;
+        case 6:
+          return KUBERNETES_CLUSTER_CONFIG;
+        case 0:
+          return INFRASTRUCTURECONFIG_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public InfrastructureConfigCase
-  getInfrastructureConfigCase() {
-    return InfrastructureConfigCase.forNumber(
-        infrastructureConfigCase_);
+  public InfrastructureConfigCase getInfrastructureConfigCase() {
+    return InfrastructureConfigCase.forNumber(infrastructureConfigCase_);
   }
 
   public static final int STAGING_BUCKET_FIELD_NUMBER = 1;
   private volatile java.lang.Object stagingBucket_;
   /**
+   *
+   *
    * 
    * Optional. A Cloud Storage bucket used to stage job
    * dependencies, config files, and job driver console output.
@@ -107,6 +133,7 @@ public int getNumber() {
    * 
* * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The stagingBucket. */ @java.lang.Override @@ -115,14 +142,15 @@ public java.lang.String getStagingBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stagingBucket_ = s; return s; } } /** + * + * *
    * Optional. A Cloud Storage bucket used to stage job
    * dependencies, config files, and job driver console output.
@@ -138,16 +166,15 @@ public java.lang.String getStagingBucket() {
    * 
* * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for stagingBucket. */ @java.lang.Override - public com.google.protobuf.ByteString - getStagingBucketBytes() { + public com.google.protobuf.ByteString getStagingBucketBytes() { java.lang.Object ref = stagingBucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stagingBucket_ = b; return b; } else { @@ -157,12 +184,17 @@ public java.lang.String getStagingBucket() { public static final int KUBERNETES_CLUSTER_CONFIG_FIELD_NUMBER = 6; /** + * + * *
    * Required. The configuration for running the Dataproc cluster on
    * Kubernetes.
    * 
* - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the kubernetesClusterConfig field is set. */ @java.lang.Override @@ -170,33 +202,43 @@ public boolean hasKubernetesClusterConfig() { return infrastructureConfigCase_ == 6; } /** + * + * *
    * Required. The configuration for running the Dataproc cluster on
    * Kubernetes.
    * 
* - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The kubernetesClusterConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.KubernetesClusterConfig getKubernetesClusterConfig() { if (infrastructureConfigCase_ == 6) { - return (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_; + return (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_; } return com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); } /** + * + * *
    * Required. The configuration for running the Dataproc cluster on
    * Kubernetes.
    * 
* - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder getKubernetesClusterConfigOrBuilder() { + public com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder + getKubernetesClusterConfigOrBuilder() { if (infrastructureConfigCase_ == 6) { - return (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_; + return (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_; } return com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); } @@ -204,11 +246,16 @@ public com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder getKubernet public static final int AUXILIARY_SERVICES_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliaryServicesConfig_; /** + * + * *
    * Optional. Configuration of auxiliary services used by this cluster.
    * 
* - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the auxiliaryServicesConfig field is set. */ @java.lang.Override @@ -216,30 +263,43 @@ public boolean hasAuxiliaryServicesConfig() { return auxiliaryServicesConfig_ != null; } /** + * + * *
    * Optional. Configuration of auxiliary services used by this cluster.
    * 
* - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The auxiliaryServicesConfig. */ @java.lang.Override public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getAuxiliaryServicesConfig() { - return auxiliaryServicesConfig_ == null ? com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance() : auxiliaryServicesConfig_; + return auxiliaryServicesConfig_ == null + ? com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance() + : auxiliaryServicesConfig_; } /** + * + * *
    * Optional. Configuration of auxiliary services used by this cluster.
    * 
* - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder getAuxiliaryServicesConfigOrBuilder() { + public com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder + getAuxiliaryServicesConfigOrBuilder() { return getAuxiliaryServicesConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,13 +311,13 @@ public final boolean isInitialized() { } @java.lang.Override - 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(stagingBucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stagingBucket_); } if (infrastructureConfigCase_ == 6) { - output.writeMessage(6, (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_); + output.writeMessage( + 6, (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_); } if (auxiliaryServicesConfig_ != null) { output.writeMessage(7, getAuxiliaryServicesConfig()); @@ -275,12 +335,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stagingBucket_); } if (infrastructureConfigCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_); } if (auxiliaryServicesConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getAuxiliaryServicesConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAuxiliaryServicesConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -290,25 +351,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.VirtualClusterConfig)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.VirtualClusterConfig other = (com.google.cloud.dataproc.v1.VirtualClusterConfig) obj; + com.google.cloud.dataproc.v1.VirtualClusterConfig other = + (com.google.cloud.dataproc.v1.VirtualClusterConfig) obj; - if (!getStagingBucket() - .equals(other.getStagingBucket())) return false; + if (!getStagingBucket().equals(other.getStagingBucket())) return false; if (hasAuxiliaryServicesConfig() != other.hasAuxiliaryServicesConfig()) return false; if (hasAuxiliaryServicesConfig()) { - if (!getAuxiliaryServicesConfig() - .equals(other.getAuxiliaryServicesConfig())) return false; + if (!getAuxiliaryServicesConfig().equals(other.getAuxiliaryServicesConfig())) return false; } if (!getInfrastructureConfigCase().equals(other.getInfrastructureConfigCase())) return false; switch (infrastructureConfigCase_) { case 6: - if (!getKubernetesClusterConfig() - .equals(other.getKubernetesClusterConfig())) return false; + if (!getKubernetesClusterConfig().equals(other.getKubernetesClusterConfig())) return false; break; case 0: default: @@ -344,96 +403,103 @@ public int hashCode() { } public static com.google.cloud.dataproc.v1.VirtualClusterConfig 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.dataproc.v1.VirtualClusterConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.VirtualClusterConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc cluster config for a cluster that does not directly control the
    * underlying compute resources, such as a [Dataproc-on-GKE
@@ -442,33 +508,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.VirtualClusterConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.VirtualClusterConfig)
       com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.VirtualClusterConfig.class, com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder.class);
+              com.google.cloud.dataproc.v1.VirtualClusterConfig.class,
+              com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.VirtualClusterConfig.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -489,9 +554,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.ClustersProto.internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.ClustersProto
+          .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor;
     }
 
     @java.lang.Override
@@ -510,7 +575,8 @@ public com.google.cloud.dataproc.v1.VirtualClusterConfig build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.VirtualClusterConfig buildPartial() {
-      com.google.cloud.dataproc.v1.VirtualClusterConfig result = new com.google.cloud.dataproc.v1.VirtualClusterConfig(this);
+      com.google.cloud.dataproc.v1.VirtualClusterConfig result =
+          new com.google.cloud.dataproc.v1.VirtualClusterConfig(this);
       result.stagingBucket_ = stagingBucket_;
       if (infrastructureConfigCase_ == 6) {
         if (kubernetesClusterConfigBuilder_ == null) {
@@ -533,38 +599,39 @@ public com.google.cloud.dataproc.v1.VirtualClusterConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.VirtualClusterConfig) {
-        return mergeFrom((com.google.cloud.dataproc.v1.VirtualClusterConfig)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.VirtualClusterConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -572,7 +639,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.VirtualClusterConfig other) {
-      if (other == com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance())
+        return this;
       if (!other.getStagingBucket().isEmpty()) {
         stagingBucket_ = other.stagingBucket_;
         onChanged();
@@ -581,13 +649,15 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.VirtualClusterConfig other
         mergeAuxiliaryServicesConfig(other.getAuxiliaryServicesConfig());
       }
       switch (other.getInfrastructureConfigCase()) {
-        case KUBERNETES_CLUSTER_CONFIG: {
-          mergeKubernetesClusterConfig(other.getKubernetesClusterConfig());
-          break;
-        }
-        case INFRASTRUCTURECONFIG_NOT_SET: {
-          break;
-        }
+        case KUBERNETES_CLUSTER_CONFIG:
+          {
+            mergeKubernetesClusterConfig(other.getKubernetesClusterConfig());
+            break;
+          }
+        case INFRASTRUCTURECONFIG_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -615,31 +685,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              stagingBucket_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                stagingBucket_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 50: {
-              input.readMessage(
-                  getKubernetesClusterConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              infrastructureConfigCase_ = 6;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getAuxiliaryServicesConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 10
+            case 50:
+              {
+                input.readMessage(
+                    getKubernetesClusterConfigFieldBuilder().getBuilder(), extensionRegistry);
+                infrastructureConfigCase_ = 6;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(
+                    getAuxiliaryServicesConfigFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 58
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 58
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -649,12 +721,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int infrastructureConfigCase_ = 0;
     private java.lang.Object infrastructureConfig_;
-    public InfrastructureConfigCase
-        getInfrastructureConfigCase() {
-      return InfrastructureConfigCase.forNumber(
-          infrastructureConfigCase_);
+
+    public InfrastructureConfigCase getInfrastructureConfigCase() {
+      return InfrastructureConfigCase.forNumber(infrastructureConfigCase_);
     }
 
     public Builder clearInfrastructureConfig() {
@@ -664,9 +736,10 @@ public Builder clearInfrastructureConfig() {
       return this;
     }
 
-
     private java.lang.Object stagingBucket_ = "";
     /**
+     *
+     *
      * 
      * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
@@ -682,13 +755,13 @@ public Builder clearInfrastructureConfig() {
      * 
* * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The stagingBucket. */ public java.lang.String getStagingBucket() { java.lang.Object ref = stagingBucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stagingBucket_ = s; return s; @@ -697,6 +770,8 @@ public java.lang.String getStagingBucket() { } } /** + * + * *
      * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
@@ -712,15 +787,14 @@ public java.lang.String getStagingBucket() {
      * 
* * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for stagingBucket. */ - public com.google.protobuf.ByteString - getStagingBucketBytes() { + public com.google.protobuf.ByteString getStagingBucketBytes() { java.lang.Object ref = stagingBucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stagingBucket_ = b; return b; } else { @@ -728,6 +802,8 @@ public java.lang.String getStagingBucket() { } } /** + * + * *
      * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
@@ -743,20 +819,22 @@ public java.lang.String getStagingBucket() {
      * 
* * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The stagingBucket to set. * @return This builder for chaining. */ - public Builder setStagingBucket( - java.lang.String value) { + public Builder setStagingBucket(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stagingBucket_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
@@ -772,15 +850,18 @@ public Builder setStagingBucket(
      * 
* * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearStagingBucket() { - + stagingBucket_ = getDefaultInstance().getStagingBucket(); onChanged(); return this; } /** + * + * *
      * Optional. A Cloud Storage bucket used to stage job
      * dependencies, config files, and job driver console output.
@@ -796,30 +877,38 @@ public Builder clearStagingBucket() {
      * 
* * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for stagingBucket to set. * @return This builder for chaining. */ - public Builder setStagingBucketBytes( - com.google.protobuf.ByteString value) { + public Builder setStagingBucketBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stagingBucket_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KubernetesClusterConfig, com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder> kubernetesClusterConfigBuilder_; + com.google.cloud.dataproc.v1.KubernetesClusterConfig, + com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, + com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder> + kubernetesClusterConfigBuilder_; /** + * + * *
      * Required. The configuration for running the Dataproc cluster on
      * Kubernetes.
      * 
* - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the kubernetesClusterConfig field is set. */ @java.lang.Override @@ -827,12 +916,17 @@ public boolean hasKubernetesClusterConfig() { return infrastructureConfigCase_ == 6; } /** + * + * *
      * Required. The configuration for running the Dataproc cluster on
      * Kubernetes.
      * 
* - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The kubernetesClusterConfig. */ @java.lang.Override @@ -850,14 +944,19 @@ public com.google.cloud.dataproc.v1.KubernetesClusterConfig getKubernetesCluster } } /** + * + * *
      * Required. The configuration for running the Dataproc cluster on
      * Kubernetes.
      * 
* - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setKubernetesClusterConfig(com.google.cloud.dataproc.v1.KubernetesClusterConfig value) { + public Builder setKubernetesClusterConfig( + com.google.cloud.dataproc.v1.KubernetesClusterConfig value) { if (kubernetesClusterConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -871,12 +970,16 @@ public Builder setKubernetesClusterConfig(com.google.cloud.dataproc.v1.Kubernete return this; } /** + * + * *
      * Required. The configuration for running the Dataproc cluster on
      * Kubernetes.
      * 
* - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setKubernetesClusterConfig( com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder builderForValue) { @@ -890,19 +993,28 @@ public Builder setKubernetesClusterConfig( return this; } /** + * + * *
      * Required. The configuration for running the Dataproc cluster on
      * Kubernetes.
      * 
* - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeKubernetesClusterConfig(com.google.cloud.dataproc.v1.KubernetesClusterConfig value) { + public Builder mergeKubernetesClusterConfig( + com.google.cloud.dataproc.v1.KubernetesClusterConfig value) { if (kubernetesClusterConfigBuilder_ == null) { - if (infrastructureConfigCase_ == 6 && - infrastructureConfig_ != com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance()) { - infrastructureConfig_ = com.google.cloud.dataproc.v1.KubernetesClusterConfig.newBuilder((com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_) - .mergeFrom(value).buildPartial(); + if (infrastructureConfigCase_ == 6 + && infrastructureConfig_ + != com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance()) { + infrastructureConfig_ = + com.google.cloud.dataproc.v1.KubernetesClusterConfig.newBuilder( + (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_) + .mergeFrom(value) + .buildPartial(); } else { infrastructureConfig_ = value; } @@ -918,12 +1030,16 @@ public Builder mergeKubernetesClusterConfig(com.google.cloud.dataproc.v1.Kuberne return this; } /** + * + * *
      * Required. The configuration for running the Dataproc cluster on
      * Kubernetes.
      * 
* - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearKubernetesClusterConfig() { if (kubernetesClusterConfigBuilder_ == null) { @@ -942,26 +1058,36 @@ public Builder clearKubernetesClusterConfig() { return this; } /** + * + * *
      * Required. The configuration for running the Dataproc cluster on
      * Kubernetes.
      * 
* - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder getKubernetesClusterConfigBuilder() { + public com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder + getKubernetesClusterConfigBuilder() { return getKubernetesClusterConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The configuration for running the Dataproc cluster on
      * Kubernetes.
      * 
* - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder getKubernetesClusterConfigOrBuilder() { + public com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder + getKubernetesClusterConfigOrBuilder() { if ((infrastructureConfigCase_ == 6) && (kubernetesClusterConfigBuilder_ != null)) { return kubernetesClusterConfigBuilder_.getMessageOrBuilder(); } else { @@ -972,69 +1098,100 @@ public com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder getKubernet } } /** + * + * *
      * Required. The configuration for running the Dataproc cluster on
      * Kubernetes.
      * 
* - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KubernetesClusterConfig, com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder> + com.google.cloud.dataproc.v1.KubernetesClusterConfig, + com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, + com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder> getKubernetesClusterConfigFieldBuilder() { if (kubernetesClusterConfigBuilder_ == null) { if (!(infrastructureConfigCase_ == 6)) { - infrastructureConfig_ = com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); + infrastructureConfig_ = + com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); } - kubernetesClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KubernetesClusterConfig, com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder>( + kubernetesClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.KubernetesClusterConfig, + com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, + com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder>( (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_, getParentForChildren(), isClean()); infrastructureConfig_ = null; } infrastructureConfigCase_ = 6; - onChanged();; + onChanged(); + ; return kubernetesClusterConfigBuilder_; } private com.google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliaryServicesConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig, com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder, com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder> auxiliaryServicesConfigBuilder_; + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig, + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder, + com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder> + auxiliaryServicesConfigBuilder_; /** + * + * *
      * Optional. Configuration of auxiliary services used by this cluster.
      * 
* - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the auxiliaryServicesConfig field is set. */ public boolean hasAuxiliaryServicesConfig() { return auxiliaryServicesConfigBuilder_ != null || auxiliaryServicesConfig_ != null; } /** + * + * *
      * Optional. Configuration of auxiliary services used by this cluster.
      * 
* - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The auxiliaryServicesConfig. */ public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getAuxiliaryServicesConfig() { if (auxiliaryServicesConfigBuilder_ == null) { - return auxiliaryServicesConfig_ == null ? com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance() : auxiliaryServicesConfig_; + return auxiliaryServicesConfig_ == null + ? com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance() + : auxiliaryServicesConfig_; } else { return auxiliaryServicesConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Configuration of auxiliary services used by this cluster.
      * 
* - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAuxiliaryServicesConfig(com.google.cloud.dataproc.v1.AuxiliaryServicesConfig value) { + public Builder setAuxiliaryServicesConfig( + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig value) { if (auxiliaryServicesConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1048,11 +1205,15 @@ public Builder setAuxiliaryServicesConfig(com.google.cloud.dataproc.v1.Auxiliary return this; } /** + * + * *
      * Optional. Configuration of auxiliary services used by this cluster.
      * 
* - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAuxiliaryServicesConfig( com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder builderForValue) { @@ -1066,17 +1227,25 @@ public Builder setAuxiliaryServicesConfig( return this; } /** + * + * *
      * Optional. Configuration of auxiliary services used by this cluster.
      * 
* - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeAuxiliaryServicesConfig(com.google.cloud.dataproc.v1.AuxiliaryServicesConfig value) { + public Builder mergeAuxiliaryServicesConfig( + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig value) { if (auxiliaryServicesConfigBuilder_ == null) { if (auxiliaryServicesConfig_ != null) { auxiliaryServicesConfig_ = - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.newBuilder(auxiliaryServicesConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.newBuilder( + auxiliaryServicesConfig_) + .mergeFrom(value) + .buildPartial(); } else { auxiliaryServicesConfig_ = value; } @@ -1088,11 +1257,15 @@ public Builder mergeAuxiliaryServicesConfig(com.google.cloud.dataproc.v1.Auxilia return this; } /** + * + * *
      * Optional. Configuration of auxiliary services used by this cluster.
      * 
* - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAuxiliaryServicesConfig() { if (auxiliaryServicesConfigBuilder_ == null) { @@ -1106,55 +1279,73 @@ public Builder clearAuxiliaryServicesConfig() { return this; } /** + * + * *
      * Optional. Configuration of auxiliary services used by this cluster.
      * 
* - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder getAuxiliaryServicesConfigBuilder() { - + public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder + getAuxiliaryServicesConfigBuilder() { + onChanged(); return getAuxiliaryServicesConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Configuration of auxiliary services used by this cluster.
      * 
* - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder getAuxiliaryServicesConfigOrBuilder() { + public com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder + getAuxiliaryServicesConfigOrBuilder() { if (auxiliaryServicesConfigBuilder_ != null) { return auxiliaryServicesConfigBuilder_.getMessageOrBuilder(); } else { - return auxiliaryServicesConfig_ == null ? - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance() : auxiliaryServicesConfig_; + return auxiliaryServicesConfig_ == null + ? com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance() + : auxiliaryServicesConfig_; } } /** + * + * *
      * Optional. Configuration of auxiliary services used by this cluster.
      * 
* - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig, com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder, com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder> + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig, + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder, + com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder> getAuxiliaryServicesConfigFieldBuilder() { if (auxiliaryServicesConfigBuilder_ == null) { - auxiliaryServicesConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig, com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder, com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder>( - getAuxiliaryServicesConfig(), - getParentForChildren(), - isClean()); + auxiliaryServicesConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig, + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder, + com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder>( + getAuxiliaryServicesConfig(), getParentForChildren(), isClean()); auxiliaryServicesConfig_ = null; } return auxiliaryServicesConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1164,12 +1355,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.VirtualClusterConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.VirtualClusterConfig) private static final com.google.cloud.dataproc.v1.VirtualClusterConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.VirtualClusterConfig(); } @@ -1178,27 +1369,27 @@ public static com.google.cloud.dataproc.v1.VirtualClusterConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VirtualClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VirtualClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1213,6 +1404,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.VirtualClusterConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java similarity index 61% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java index caa22c2f1e85..10fd29f6c8d8 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/clusters.proto package com.google.cloud.dataproc.v1; -public interface VirtualClusterConfigOrBuilder extends +public interface VirtualClusterConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.VirtualClusterConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. A Cloud Storage bucket used to stage job
    * dependencies, config files, and job driver console output.
@@ -23,10 +41,13 @@ public interface VirtualClusterConfigOrBuilder extends
    * 
* * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The stagingBucket. */ java.lang.String getStagingBucket(); /** + * + * *
    * Optional. A Cloud Storage bucket used to stage job
    * dependencies, config files, and job driver console output.
@@ -42,67 +63,98 @@ public interface VirtualClusterConfigOrBuilder extends
    * 
* * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for stagingBucket. */ - com.google.protobuf.ByteString - getStagingBucketBytes(); + com.google.protobuf.ByteString getStagingBucketBytes(); /** + * + * *
    * Required. The configuration for running the Dataproc cluster on
    * Kubernetes.
    * 
* - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the kubernetesClusterConfig field is set. */ boolean hasKubernetesClusterConfig(); /** + * + * *
    * Required. The configuration for running the Dataproc cluster on
    * Kubernetes.
    * 
* - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The kubernetesClusterConfig. */ com.google.cloud.dataproc.v1.KubernetesClusterConfig getKubernetesClusterConfig(); /** + * + * *
    * Required. The configuration for running the Dataproc cluster on
    * Kubernetes.
    * 
* - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder getKubernetesClusterConfigOrBuilder(); + com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder + getKubernetesClusterConfigOrBuilder(); /** + * + * *
    * Optional. Configuration of auxiliary services used by this cluster.
    * 
* - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the auxiliaryServicesConfig field is set. */ boolean hasAuxiliaryServicesConfig(); /** + * + * *
    * Optional. Configuration of auxiliary services used by this cluster.
    * 
* - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The auxiliaryServicesConfig. */ com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getAuxiliaryServicesConfig(); /** + * + * *
    * Optional. Configuration of auxiliary services used by this cluster.
    * 
* - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder getAuxiliaryServicesConfigOrBuilder(); + com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder + getAuxiliaryServicesConfigOrBuilder(); - public com.google.cloud.dataproc.v1.VirtualClusterConfig.InfrastructureConfigCase getInfrastructureConfigCase(); + public com.google.cloud.dataproc.v1.VirtualClusterConfig.InfrastructureConfigCase + getInfrastructureConfigCase(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java similarity index 61% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java index fab1a12aed2f..2676802e28a0 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java @@ -1,114 +1,153 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * The workflow graph.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.WorkflowGraph} */ -public final class WorkflowGraph extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WorkflowGraph extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.WorkflowGraph) WorkflowGraphOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WorkflowGraph.newBuilder() to construct. private WorkflowGraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WorkflowGraph() { nodes_ = 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 WorkflowGraph(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowGraph_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowGraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowGraph.class, com.google.cloud.dataproc.v1.WorkflowGraph.Builder.class); + com.google.cloud.dataproc.v1.WorkflowGraph.class, + com.google.cloud.dataproc.v1.WorkflowGraph.Builder.class); } public static final int NODES_FIELD_NUMBER = 1; private java.util.List nodes_; /** + * + * *
    * Output only. The workflow nodes.
    * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getNodesList() { return nodes_; } /** + * + * *
    * Output only. The workflow nodes.
    * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getNodesOrBuilderList() { return nodes_; } /** + * + * *
    * Output only. The workflow nodes.
    * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getNodesCount() { return nodes_.size(); } /** + * + * *
    * Output only. The workflow nodes.
    * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowNode getNodes(int index) { return nodes_.get(index); } /** + * + * *
    * Output only. The workflow nodes.
    * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder getNodesOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder getNodesOrBuilder(int index) { return nodes_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +159,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < nodes_.size(); i++) { output.writeMessage(1, nodes_.get(i)); } @@ -135,8 +173,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nodes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nodes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -146,15 +183,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.dataproc.v1.WorkflowGraph)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.WorkflowGraph other = (com.google.cloud.dataproc.v1.WorkflowGraph) obj; + com.google.cloud.dataproc.v1.WorkflowGraph other = + (com.google.cloud.dataproc.v1.WorkflowGraph) obj; - if (!getNodesList() - .equals(other.getNodesList())) return false; + if (!getNodesList().equals(other.getNodesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -175,130 +212,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowGraph parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.WorkflowGraph parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.WorkflowGraph parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.WorkflowGraph prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 workflow graph.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.WorkflowGraph} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.WorkflowGraph) com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowGraph_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowGraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowGraph.class, com.google.cloud.dataproc.v1.WorkflowGraph.Builder.class); + com.google.cloud.dataproc.v1.WorkflowGraph.class, + com.google.cloud.dataproc.v1.WorkflowGraph.Builder.class); } // Construct using com.google.cloud.dataproc.v1.WorkflowGraph.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -313,9 +356,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; } @java.lang.Override @@ -334,7 +377,8 @@ public com.google.cloud.dataproc.v1.WorkflowGraph build() { @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowGraph buildPartial() { - com.google.cloud.dataproc.v1.WorkflowGraph result = new com.google.cloud.dataproc.v1.WorkflowGraph(this); + com.google.cloud.dataproc.v1.WorkflowGraph result = + new com.google.cloud.dataproc.v1.WorkflowGraph(this); int from_bitField0_ = bitField0_; if (nodesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -353,38 +397,39 @@ public com.google.cloud.dataproc.v1.WorkflowGraph buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.WorkflowGraph) { - return mergeFrom((com.google.cloud.dataproc.v1.WorkflowGraph)other); + return mergeFrom((com.google.cloud.dataproc.v1.WorkflowGraph) other); } else { super.mergeFrom(other); return this; @@ -411,9 +456,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowGraph other) { nodesBuilder_ = null; nodes_ = other.nodes_; bitField0_ = (bitField0_ & ~0x00000001); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodesFieldBuilder() : null; + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodesFieldBuilder() + : null; } else { nodesBuilder_.addAllMessages(other.nodes_); } @@ -445,25 +491,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.dataproc.v1.WorkflowNode m = - input.readMessage( - com.google.cloud.dataproc.v1.WorkflowNode.parser(), - extensionRegistry); - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(m); - } else { - nodesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.dataproc.v1.WorkflowNode m = + input.readMessage( + com.google.cloud.dataproc.v1.WorkflowNode.parser(), extensionRegistry); + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(m); + } else { + nodesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -473,26 +520,35 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List nodes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nodes_ = new java.util.ArrayList(nodes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowNode, com.google.cloud.dataproc.v1.WorkflowNode.Builder, com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder> nodesBuilder_; + com.google.cloud.dataproc.v1.WorkflowNode, + com.google.cloud.dataproc.v1.WorkflowNode.Builder, + com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder> + nodesBuilder_; /** + * + * *
      * Output only. The workflow nodes.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getNodesList() { if (nodesBuilder_ == null) { @@ -502,11 +558,15 @@ public java.util.List getNodesList() } } /** + * + * *
      * Output only. The workflow nodes.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getNodesCount() { if (nodesBuilder_ == null) { @@ -516,11 +576,15 @@ public int getNodesCount() { } } /** + * + * *
      * Output only. The workflow nodes.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.WorkflowNode getNodes(int index) { if (nodesBuilder_ == null) { @@ -530,14 +594,17 @@ public com.google.cloud.dataproc.v1.WorkflowNode getNodes(int index) { } } /** + * + * *
      * Output only. The workflow nodes.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNodes( - int index, com.google.cloud.dataproc.v1.WorkflowNode value) { + public Builder setNodes(int index, com.google.cloud.dataproc.v1.WorkflowNode value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -551,11 +618,15 @@ public Builder setNodes( return this; } /** + * + * *
      * Output only. The workflow nodes.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setNodes( int index, com.google.cloud.dataproc.v1.WorkflowNode.Builder builderForValue) { @@ -569,11 +640,15 @@ public Builder setNodes( return this; } /** + * + * *
      * Output only. The workflow nodes.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addNodes(com.google.cloud.dataproc.v1.WorkflowNode value) { if (nodesBuilder_ == null) { @@ -589,14 +664,17 @@ public Builder addNodes(com.google.cloud.dataproc.v1.WorkflowNode value) { return this; } /** + * + * *
      * Output only. The workflow nodes.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addNodes( - int index, com.google.cloud.dataproc.v1.WorkflowNode value) { + public Builder addNodes(int index, com.google.cloud.dataproc.v1.WorkflowNode value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -610,14 +688,17 @@ public Builder addNodes( return this; } /** + * + * *
      * Output only. The workflow nodes.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addNodes( - com.google.cloud.dataproc.v1.WorkflowNode.Builder builderForValue) { + public Builder addNodes(com.google.cloud.dataproc.v1.WorkflowNode.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(builderForValue.build()); @@ -628,11 +709,15 @@ public Builder addNodes( return this; } /** + * + * *
      * Output only. The workflow nodes.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addNodes( int index, com.google.cloud.dataproc.v1.WorkflowNode.Builder builderForValue) { @@ -646,18 +731,21 @@ public Builder addNodes( return this; } /** + * + * *
      * Output only. The workflow nodes.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllNodes( java.lang.Iterable values) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); onChanged(); } else { nodesBuilder_.addAllMessages(values); @@ -665,11 +753,15 @@ public Builder addAllNodes( return this; } /** + * + * *
      * Output only. The workflow nodes.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearNodes() { if (nodesBuilder_ == null) { @@ -682,11 +774,15 @@ public Builder clearNodes() { return this; } /** + * + * *
      * Output only. The workflow nodes.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeNodes(int index) { if (nodesBuilder_ == null) { @@ -699,39 +795,50 @@ public Builder removeNodes(int index) { return this; } /** + * + * *
      * Output only. The workflow nodes.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.WorkflowNode.Builder getNodesBuilder( - int index) { + public com.google.cloud.dataproc.v1.WorkflowNode.Builder getNodesBuilder(int index) { return getNodesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The workflow nodes.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder getNodesOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder getNodesOrBuilder(int index) { if (nodesBuilder_ == null) { - return nodes_.get(index); } else { + return nodes_.get(index); + } else { return nodesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The workflow nodes.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getNodesOrBuilderList() { + public java.util.List + getNodesOrBuilderList() { if (nodesBuilder_ != null) { return nodesBuilder_.getMessageOrBuilderList(); } else { @@ -739,56 +846,69 @@ public com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder getNodesOrBuilder( } } /** + * + * *
      * Output only. The workflow nodes.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.WorkflowNode.Builder addNodesBuilder() { - return getNodesFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.WorkflowNode.getDefaultInstance()); + return getNodesFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.WorkflowNode.getDefaultInstance()); } /** + * + * *
      * Output only. The workflow nodes.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.dataproc.v1.WorkflowNode.Builder addNodesBuilder( - int index) { - return getNodesFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.WorkflowNode.getDefaultInstance()); + public com.google.cloud.dataproc.v1.WorkflowNode.Builder addNodesBuilder(int index) { + return getNodesFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.WorkflowNode.getDefaultInstance()); } /** + * + * *
      * Output only. The workflow nodes.
      * 
* - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getNodesBuilderList() { + public java.util.List getNodesBuilderList() { return getNodesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowNode, com.google.cloud.dataproc.v1.WorkflowNode.Builder, com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder> + com.google.cloud.dataproc.v1.WorkflowNode, + com.google.cloud.dataproc.v1.WorkflowNode.Builder, + com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder> getNodesFieldBuilder() { if (nodesBuilder_ == null) { - nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowNode, com.google.cloud.dataproc.v1.WorkflowNode.Builder, com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder>( - nodes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + nodesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.WorkflowNode, + com.google.cloud.dataproc.v1.WorkflowNode.Builder, + com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder>( + nodes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); nodes_ = null; } return nodesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -798,12 +918,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.WorkflowGraph) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.WorkflowGraph) private static final com.google.cloud.dataproc.v1.WorkflowGraph DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.WorkflowGraph(); } @@ -812,27 +932,27 @@ public static com.google.cloud.dataproc.v1.WorkflowGraph getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowGraph parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowGraph parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -847,6 +967,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.WorkflowGraph getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java new file mode 100644 index 000000000000..c1aefd7ffb66 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java @@ -0,0 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/workflow_templates.proto + +package com.google.cloud.dataproc.v1; + +public interface WorkflowGraphOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.WorkflowGraph) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The workflow nodes.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getNodesList(); + /** + * + * + *
+   * Output only. The workflow nodes.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataproc.v1.WorkflowNode getNodes(int index); + /** + * + * + *
+   * Output only. The workflow nodes.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getNodesCount(); + /** + * + * + *
+   * Output only. The workflow nodes.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getNodesOrBuilderList(); + /** + * + * + *
+   * Output only. The workflow nodes.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder getNodesOrBuilder(int index); +} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java similarity index 66% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java index 2e67af778aad..71fa99cdd200 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A Dataproc workflow template resource.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.WorkflowMetadata} */ -public final class WorkflowMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WorkflowMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.WorkflowMetadata) WorkflowMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WorkflowMetadata.newBuilder() to construct. private WorkflowMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WorkflowMetadata() { template_ = ""; state_ = 0; @@ -28,51 +46,54 @@ private WorkflowMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WorkflowMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_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 internalGetParameters(); 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.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowMetadata_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowMetadata.class, com.google.cloud.dataproc.v1.WorkflowMetadata.Builder.class); + com.google.cloud.dataproc.v1.WorkflowMetadata.class, + com.google.cloud.dataproc.v1.WorkflowMetadata.Builder.class); } /** + * + * *
    * The operation state.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.WorkflowMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unused.
      * 
@@ -81,6 +102,8 @@ public enum State */ UNKNOWN(0), /** + * + * *
      * The operation has been created.
      * 
@@ -89,6 +112,8 @@ public enum State */ PENDING(1), /** + * + * *
      * The operation is running.
      * 
@@ -97,6 +122,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * The operation is done; either cancelled or completed.
      * 
@@ -108,6 +135,8 @@ public enum State ; /** + * + * *
      * Unused.
      * 
@@ -116,6 +145,8 @@ public enum State */ public static final int UNKNOWN_VALUE = 0; /** + * + * *
      * The operation has been created.
      * 
@@ -124,6 +155,8 @@ public enum State */ public static final int PENDING_VALUE = 1; /** + * + * *
      * The operation is running.
      * 
@@ -132,6 +165,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * The operation is done; either cancelled or completed.
      * 
@@ -140,7 +175,6 @@ public enum State */ public static final int DONE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -165,50 +199,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return UNKNOWN; - case 1: return PENDING; - case 2: return RUNNING; - case 3: return DONE; - default: return null; + case 0: + return UNKNOWN; + case 1: + return PENDING; + case 2: + return RUNNING; + case 3: + return DONE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataproc.v1.WorkflowMetadata.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; @@ -228,6 +263,8 @@ private State(int value) { public static final int TEMPLATE_FIELD_NUMBER = 1; private volatile java.lang.Object template_; /** + * + * *
    * Output only. The resource name of the workflow template as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -240,6 +277,7 @@ private State(int value) {
    * 
* * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The template. */ @java.lang.Override @@ -248,14 +286,15 @@ public java.lang.String getTemplate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); template_ = s; return s; } } /** + * + * *
    * Output only. The resource name of the workflow template as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -268,16 +307,15 @@ public java.lang.String getTemplate() {
    * 
* * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for template. */ @java.lang.Override - public com.google.protobuf.ByteString - getTemplateBytes() { + public com.google.protobuf.ByteString getTemplateBytes() { java.lang.Object ref = template_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); template_ = b; return b; } else { @@ -288,12 +326,15 @@ public java.lang.String getTemplate() { public static final int VERSION_FIELD_NUMBER = 2; private int version_; /** + * + * *
    * Output only. The version of template at the time of
    * workflow instantiation.
    * 
* * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The version. */ @java.lang.Override @@ -304,11 +345,16 @@ public int getVersion() { public static final int CREATE_CLUSTER_FIELD_NUMBER = 3; private com.google.cloud.dataproc.v1.ClusterOperation createCluster_; /** + * + * *
    * Output only. The create cluster operation metadata.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createCluster field is set. */ @java.lang.Override @@ -316,23 +362,34 @@ public boolean hasCreateCluster() { return createCluster_ != null; } /** + * + * *
    * Output only. The create cluster operation metadata.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createCluster. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperation getCreateCluster() { - return createCluster_ == null ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() : createCluster_; + return createCluster_ == null + ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() + : createCluster_; } /** + * + * *
    * Output only. The create cluster operation metadata.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getCreateClusterOrBuilder() { @@ -342,11 +399,16 @@ public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getCreateClusterOr public static final int GRAPH_FIELD_NUMBER = 4; private com.google.cloud.dataproc.v1.WorkflowGraph graph_; /** + * + * *
    * Output only. The workflow graph.
    * 
* - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the graph field is set. */ @java.lang.Override @@ -354,23 +416,34 @@ public boolean hasGraph() { return graph_ != null; } /** + * + * *
    * Output only. The workflow graph.
    * 
* - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The graph. */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowGraph getGraph() { - return graph_ == null ? com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance() : graph_; + return graph_ == null + ? com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance() + : graph_; } /** + * + * *
    * Output only. The workflow graph.
    * 
* - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder getGraphOrBuilder() { @@ -380,11 +453,16 @@ public com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder getGraphOrBuilder() { public static final int DELETE_CLUSTER_FIELD_NUMBER = 5; private com.google.cloud.dataproc.v1.ClusterOperation deleteCluster_; /** + * + * *
    * Output only. The delete cluster operation metadata.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteCluster field is set. */ @java.lang.Override @@ -392,23 +470,34 @@ public boolean hasDeleteCluster() { return deleteCluster_ != null; } /** + * + * *
    * Output only. The delete cluster operation metadata.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteCluster. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperation getDeleteCluster() { - return deleteCluster_ == null ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() : deleteCluster_; + return deleteCluster_ == null + ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() + : deleteCluster_; } /** + * + * *
    * Output only. The delete cluster operation metadata.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getDeleteClusterOrBuilder() { @@ -418,38 +507,56 @@ public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getDeleteClusterOr public static final int STATE_FIELD_NUMBER = 6; private int state_; /** + * + * *
    * Output only. The workflow state.
    * 
* - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The workflow state.
    * 
* - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowMetadata.State getState() { + @java.lang.Override + public com.google.cloud.dataproc.v1.WorkflowMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.WorkflowMetadata.State result = com.google.cloud.dataproc.v1.WorkflowMetadata.State.valueOf(state_); - return result == null ? com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.WorkflowMetadata.State result = + com.google.cloud.dataproc.v1.WorkflowMetadata.State.valueOf(state_); + return result == null + ? com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNRECOGNIZED + : result; } public static final int CLUSTER_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object clusterName_; /** + * + * *
    * Output only. The name of the target cluster.
    * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterName. */ @java.lang.Override @@ -458,29 +565,29 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** + * + * *
    * Output only. The name of the target cluster.
    * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -489,24 +596,23 @@ public java.lang.String getClusterName() { } public static final int PARAMETERS_FIELD_NUMBER = 8; + private static final class ParametersDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowMetadata_ParametersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> parameters_; - private com.google.protobuf.MapField - internalGetParameters() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_ParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField parameters_; + + private com.google.protobuf.MapField internalGetParameters() { if (parameters_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParametersDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParametersDefaultEntryHolder.defaultEntry); } return parameters_; } @@ -515,28 +621,30 @@ public int getParametersCount() { return internalGetParameters().getMap().size(); } /** + * + * *
    * Map from parameter names to values that were used for those parameters.
    * 
* * map<string, string> parameters = 8; */ - @java.lang.Override - public boolean containsParameters( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsParameters(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetParameters().getMap().containsKey(key); } - /** - * Use {@link #getParametersMap()} instead. - */ + /** Use {@link #getParametersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParameters() { return getParametersMap(); } /** + * + * *
    * Map from parameter names to values that were used for those parameters.
    * 
@@ -544,11 +652,12 @@ public java.util.Map getParameters() { * map<string, string> parameters = 8; */ @java.lang.Override - public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } /** + * + * *
    * Map from parameter names to values that were used for those parameters.
    * 
@@ -556,16 +665,17 @@ public java.util.Map getParametersMap() { * map<string, string> parameters = 8; */ @java.lang.Override - public java.lang.String getParametersOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParameters().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Map from parameter names to values that were used for those parameters.
    * 
@@ -573,12 +683,11 @@ public java.lang.String getParametersOrDefault( * map<string, string> parameters = 8; */ @java.lang.Override - - public java.lang.String getParametersOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParameters().getMap(); + public java.lang.String getParametersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParameters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -588,11 +697,15 @@ public java.lang.String getParametersOrThrow( public static final int START_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Output only. Workflow start time.
    * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -600,11 +713,15 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Output only. Workflow start time.
    * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ @java.lang.Override @@ -612,11 +729,14 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Output only. Workflow start time.
    * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -626,11 +746,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. Workflow end time.
    * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -638,11 +762,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. Workflow end time.
    * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -650,11 +778,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. Workflow end time.
    * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -664,11 +795,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int CLUSTER_UUID_FIELD_NUMBER = 11; private volatile java.lang.Object clusterUuid_; /** + * + * *
    * Output only. The UUID of target cluster.
    * 
* * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterUuid. */ @java.lang.Override @@ -677,29 +811,29 @@ public java.lang.String getClusterUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; } } /** + * + * *
    * Output only. The UUID of target cluster.
    * 
* * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterUuid. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterUuidBytes() { + public com.google.protobuf.ByteString getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -710,13 +844,17 @@ public java.lang.String getClusterUuid() { public static final int DAG_TIMEOUT_FIELD_NUMBER = 12; private com.google.protobuf.Duration dagTimeout_; /** + * + * *
    * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
    * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the dagTimeout field is set. */ @java.lang.Override @@ -724,13 +862,17 @@ public boolean hasDagTimeout() { return dagTimeout_ != null; } /** + * + * *
    * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
    * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The dagTimeout. */ @java.lang.Override @@ -738,13 +880,16 @@ public com.google.protobuf.Duration getDagTimeout() { return dagTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; } /** + * + * *
    * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
    * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { @@ -754,12 +899,17 @@ public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { public static final int DAG_START_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp dagStartTime_; /** + * + * *
    * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
    * begins.
    * 
* - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the dagStartTime field is set. */ @java.lang.Override @@ -767,25 +917,36 @@ public boolean hasDagStartTime() { return dagStartTime_ != null; } /** + * + * *
    * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
    * begins.
    * 
* - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The dagStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getDagStartTime() { - return dagStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dagStartTime_; + return dagStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dagStartTime_; } /** + * + * *
    * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
    * begins.
    * 
* - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { @@ -795,11 +956,16 @@ public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { public static final int DAG_END_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp dagEndTime_; /** + * + * *
    * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
    * 
* - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the dagEndTime field is set. */ @java.lang.Override @@ -807,11 +973,16 @@ public boolean hasDagEndTime() { return dagEndTime_ != null; } /** + * + * *
    * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
    * 
* - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The dagEndTime. */ @java.lang.Override @@ -819,11 +990,15 @@ public com.google.protobuf.Timestamp getDagEndTime() { return dagEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dagEndTime_; } /** + * + * *
    * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
    * 
* - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder() { @@ -831,6 +1006,7 @@ public com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -842,8 +1018,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(template_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, template_); } @@ -865,12 +1040,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterName_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetParameters(), - ParametersDefaultEntryHolder.defaultEntry, - 8); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 8); if (startTime_ != null) { output.writeMessage(9, getStartTime()); } @@ -902,60 +1073,50 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, template_); } if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, version_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); } if (createCluster_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateCluster()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateCluster()); } if (graph_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getGraph()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGraph()); } if (deleteCluster_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getDeleteCluster()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDeleteCluster()); } if (state_ != com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clusterName_); } - for (java.util.Map.Entry entry - : internalGetParameters().getMap().entrySet()) { - com.google.protobuf.MapEntry - parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, parameters__); + for (java.util.Map.Entry entry : + internalGetParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry parameters__ = + ParametersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, parameters__); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, clusterUuid_); } if (dagTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getDagTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDagTimeout()); } if (dagStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getDagStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDagStartTime()); } if (dagEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getDagEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getDagEndTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -965,63 +1126,51 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.WorkflowMetadata)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.WorkflowMetadata other = (com.google.cloud.dataproc.v1.WorkflowMetadata) obj; + com.google.cloud.dataproc.v1.WorkflowMetadata other = + (com.google.cloud.dataproc.v1.WorkflowMetadata) obj; - if (!getTemplate() - .equals(other.getTemplate())) return false; - if (getVersion() - != other.getVersion()) return false; + if (!getTemplate().equals(other.getTemplate())) return false; + if (getVersion() != other.getVersion()) return false; if (hasCreateCluster() != other.hasCreateCluster()) return false; if (hasCreateCluster()) { - if (!getCreateCluster() - .equals(other.getCreateCluster())) return false; + if (!getCreateCluster().equals(other.getCreateCluster())) return false; } if (hasGraph() != other.hasGraph()) return false; if (hasGraph()) { - if (!getGraph() - .equals(other.getGraph())) return false; + if (!getGraph().equals(other.getGraph())) return false; } if (hasDeleteCluster() != other.hasDeleteCluster()) return false; if (hasDeleteCluster()) { - if (!getDeleteCluster() - .equals(other.getDeleteCluster())) return false; + if (!getDeleteCluster().equals(other.getDeleteCluster())) return false; } if (state_ != other.state_) return false; - if (!getClusterName() - .equals(other.getClusterName())) return false; - if (!internalGetParameters().equals( - other.internalGetParameters())) return false; + if (!getClusterName().equals(other.getClusterName())) return false; + if (!internalGetParameters().equals(other.internalGetParameters())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } - if (!getClusterUuid() - .equals(other.getClusterUuid())) return false; + if (!getClusterUuid().equals(other.getClusterUuid())) return false; if (hasDagTimeout() != other.hasDagTimeout()) return false; if (hasDagTimeout()) { - if (!getDagTimeout() - .equals(other.getDagTimeout())) return false; + if (!getDagTimeout().equals(other.getDagTimeout())) return false; } if (hasDagStartTime() != other.hasDagStartTime()) return false; if (hasDagStartTime()) { - if (!getDagStartTime() - .equals(other.getDagStartTime())) return false; + if (!getDagStartTime().equals(other.getDagStartTime())) return false; } if (hasDagEndTime() != other.hasDagEndTime()) return false; if (hasDagEndTime()) { - if (!getDagEndTime() - .equals(other.getDagEndTime())) return false; + if (!getDagEndTime().equals(other.getDagEndTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1085,152 +1234,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.WorkflowMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.WorkflowMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.WorkflowMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc workflow template resource.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.WorkflowMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.WorkflowMetadata) com.google.cloud.dataproc.v1.WorkflowMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 8: return internalGetParameters(); 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 internalGetMutableParameters(); 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.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowMetadata_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowMetadata.class, com.google.cloud.dataproc.v1.WorkflowMetadata.Builder.class); + com.google.cloud.dataproc.v1.WorkflowMetadata.class, + com.google.cloud.dataproc.v1.WorkflowMetadata.Builder.class); } // Construct using com.google.cloud.dataproc.v1.WorkflowMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1297,9 +1450,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor; } @java.lang.Override @@ -1318,7 +1471,8 @@ public com.google.cloud.dataproc.v1.WorkflowMetadata build() { @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowMetadata buildPartial() { - com.google.cloud.dataproc.v1.WorkflowMetadata result = new com.google.cloud.dataproc.v1.WorkflowMetadata(this); + com.google.cloud.dataproc.v1.WorkflowMetadata result = + new com.google.cloud.dataproc.v1.WorkflowMetadata(this); int from_bitField0_ = bitField0_; result.template_ = template_; result.version_ = version_; @@ -1375,38 +1529,39 @@ public com.google.cloud.dataproc.v1.WorkflowMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.WorkflowMetadata) { - return mergeFrom((com.google.cloud.dataproc.v1.WorkflowMetadata)other); + return mergeFrom((com.google.cloud.dataproc.v1.WorkflowMetadata) other); } else { super.mergeFrom(other); return this; @@ -1438,8 +1593,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowMetadata other) { clusterName_ = other.clusterName_; onChanged(); } - internalGetMutableParameters().mergeFrom( - other.internalGetParameters()); + internalGetMutableParameters().mergeFrom(other.internalGetParameters()); if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } @@ -1485,101 +1639,102 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - template_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - version_ = input.readInt32(); - - break; - } // case 16 - case 26: { - input.readMessage( - getCreateClusterFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 34: { - input.readMessage( - getGraphFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - input.readMessage( - getDeleteClusterFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 48: { - state_ = input.readEnum(); - - break; - } // case 48 - case 58: { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - com.google.protobuf.MapEntry - parameters__ = input.readMessage( - ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableParameters().getMutableMap().put( - parameters__.getKey(), parameters__.getValue()); - break; - } // case 66 - case 74: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 74 - case 82: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 82 - case 90: { - clusterUuid_ = input.readStringRequireUtf8(); - - break; - } // case 90 - case 98: { - input.readMessage( - getDagTimeoutFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 98 - case 106: { - input.readMessage( - getDagStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 106 - case 114: { - input.readMessage( - getDagEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 114 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + template_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + version_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + input.readMessage(getCreateClusterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getGraphFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getDeleteClusterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + + break; + } // case 48 + case 58: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry parameters__ = + input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableParameters() + .getMutableMap() + .put(parameters__.getKey(), parameters__.getValue()); + break; + } // case 66 + case 74: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 90: + { + clusterUuid_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: + { + input.readMessage(getDagTimeoutFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 98 + case 106: + { + input.readMessage(getDagStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 106 + case 114: + { + input.readMessage(getDagEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 114 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1589,10 +1744,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object template_ = ""; /** + * + * *
      * Output only. The resource name of the workflow template as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1605,13 +1763,13 @@ public Builder mergeFrom(
      * 
* * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The template. */ public java.lang.String getTemplate() { java.lang.Object ref = template_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); template_ = s; return s; @@ -1620,6 +1778,8 @@ public java.lang.String getTemplate() { } } /** + * + * *
      * Output only. The resource name of the workflow template as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1632,15 +1792,14 @@ public java.lang.String getTemplate() {
      * 
* * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for template. */ - public com.google.protobuf.ByteString - getTemplateBytes() { + public com.google.protobuf.ByteString getTemplateBytes() { java.lang.Object ref = template_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); template_ = b; return b; } else { @@ -1648,6 +1807,8 @@ public java.lang.String getTemplate() { } } /** + * + * *
      * Output only. The resource name of the workflow template as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1660,20 +1821,22 @@ public java.lang.String getTemplate() {
      * 
* * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The template to set. * @return This builder for chaining. */ - public Builder setTemplate( - java.lang.String value) { + public Builder setTemplate(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + template_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the workflow template as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1686,15 +1849,18 @@ public Builder setTemplate(
      * 
* * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTemplate() { - + template_ = getDefaultInstance().getTemplate(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the workflow template as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1707,29 +1873,32 @@ public Builder clearTemplate() {
      * 
* * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for template to set. * @return This builder for chaining. */ - public Builder setTemplateBytes( - com.google.protobuf.ByteString value) { + public Builder setTemplateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + template_ = value; onChanged(); return this; } - private int version_ ; + private int version_; /** + * + * *
      * Output only. The version of template at the time of
      * workflow instantiation.
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The version. */ @java.lang.Override @@ -1737,32 +1906,38 @@ public int getVersion() { return version_; } /** + * + * *
      * Output only. The version of template at the time of
      * workflow instantiation.
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { - + version_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The version of template at the time of
      * workflow instantiation.
      * 
* * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = 0; onChanged(); return this; @@ -1770,39 +1945,58 @@ public Builder clearVersion() { private com.google.cloud.dataproc.v1.ClusterOperation createCluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperation, com.google.cloud.dataproc.v1.ClusterOperation.Builder, com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> createClusterBuilder_; + com.google.cloud.dataproc.v1.ClusterOperation, + com.google.cloud.dataproc.v1.ClusterOperation.Builder, + com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> + createClusterBuilder_; /** + * + * *
      * Output only. The create cluster operation metadata.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createCluster field is set. */ public boolean hasCreateCluster() { return createClusterBuilder_ != null || createCluster_ != null; } /** + * + * *
      * Output only. The create cluster operation metadata.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createCluster. */ public com.google.cloud.dataproc.v1.ClusterOperation getCreateCluster() { if (createClusterBuilder_ == null) { - return createCluster_ == null ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() : createCluster_; + return createCluster_ == null + ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() + : createCluster_; } else { return createClusterBuilder_.getMessage(); } } /** + * + * *
      * Output only. The create cluster operation metadata.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateCluster(com.google.cloud.dataproc.v1.ClusterOperation value) { if (createClusterBuilder_ == null) { @@ -1818,11 +2012,15 @@ public Builder setCreateCluster(com.google.cloud.dataproc.v1.ClusterOperation va return this; } /** + * + * *
      * Output only. The create cluster operation metadata.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateCluster( com.google.cloud.dataproc.v1.ClusterOperation.Builder builderForValue) { @@ -1836,17 +2034,23 @@ public Builder setCreateCluster( return this; } /** + * + * *
      * Output only. The create cluster operation metadata.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateCluster(com.google.cloud.dataproc.v1.ClusterOperation value) { if (createClusterBuilder_ == null) { if (createCluster_ != null) { createCluster_ = - com.google.cloud.dataproc.v1.ClusterOperation.newBuilder(createCluster_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.ClusterOperation.newBuilder(createCluster_) + .mergeFrom(value) + .buildPartial(); } else { createCluster_ = value; } @@ -1858,11 +2062,15 @@ public Builder mergeCreateCluster(com.google.cloud.dataproc.v1.ClusterOperation return this; } /** + * + * *
      * Output only. The create cluster operation metadata.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateCluster() { if (createClusterBuilder_ == null) { @@ -1876,48 +2084,64 @@ public Builder clearCreateCluster() { return this; } /** + * + * *
      * Output only. The create cluster operation metadata.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterOperation.Builder getCreateClusterBuilder() { - + onChanged(); return getCreateClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The create cluster operation metadata.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getCreateClusterOrBuilder() { if (createClusterBuilder_ != null) { return createClusterBuilder_.getMessageOrBuilder(); } else { - return createCluster_ == null ? - com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() : createCluster_; + return createCluster_ == null + ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() + : createCluster_; } } /** + * + * *
      * Output only. The create cluster operation metadata.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperation, com.google.cloud.dataproc.v1.ClusterOperation.Builder, com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> + com.google.cloud.dataproc.v1.ClusterOperation, + com.google.cloud.dataproc.v1.ClusterOperation.Builder, + com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> getCreateClusterFieldBuilder() { if (createClusterBuilder_ == null) { - createClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperation, com.google.cloud.dataproc.v1.ClusterOperation.Builder, com.google.cloud.dataproc.v1.ClusterOperationOrBuilder>( - getCreateCluster(), - getParentForChildren(), - isClean()); + createClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterOperation, + com.google.cloud.dataproc.v1.ClusterOperation.Builder, + com.google.cloud.dataproc.v1.ClusterOperationOrBuilder>( + getCreateCluster(), getParentForChildren(), isClean()); createCluster_ = null; } return createClusterBuilder_; @@ -1925,39 +2149,58 @@ public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getCreateClusterOr private com.google.cloud.dataproc.v1.WorkflowGraph graph_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowGraph, com.google.cloud.dataproc.v1.WorkflowGraph.Builder, com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder> graphBuilder_; + com.google.cloud.dataproc.v1.WorkflowGraph, + com.google.cloud.dataproc.v1.WorkflowGraph.Builder, + com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder> + graphBuilder_; /** + * + * *
      * Output only. The workflow graph.
      * 
* - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the graph field is set. */ public boolean hasGraph() { return graphBuilder_ != null || graph_ != null; } /** + * + * *
      * Output only. The workflow graph.
      * 
* - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The graph. */ public com.google.cloud.dataproc.v1.WorkflowGraph getGraph() { if (graphBuilder_ == null) { - return graph_ == null ? com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance() : graph_; + return graph_ == null + ? com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance() + : graph_; } else { return graphBuilder_.getMessage(); } } /** + * + * *
      * Output only. The workflow graph.
      * 
* - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setGraph(com.google.cloud.dataproc.v1.WorkflowGraph value) { if (graphBuilder_ == null) { @@ -1973,14 +2216,17 @@ public Builder setGraph(com.google.cloud.dataproc.v1.WorkflowGraph value) { return this; } /** + * + * *
      * Output only. The workflow graph.
      * 
* - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setGraph( - com.google.cloud.dataproc.v1.WorkflowGraph.Builder builderForValue) { + public Builder setGraph(com.google.cloud.dataproc.v1.WorkflowGraph.Builder builderForValue) { if (graphBuilder_ == null) { graph_ = builderForValue.build(); onChanged(); @@ -1991,17 +2237,23 @@ public Builder setGraph( return this; } /** + * + * *
      * Output only. The workflow graph.
      * 
* - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeGraph(com.google.cloud.dataproc.v1.WorkflowGraph value) { if (graphBuilder_ == null) { if (graph_ != null) { graph_ = - com.google.cloud.dataproc.v1.WorkflowGraph.newBuilder(graph_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.WorkflowGraph.newBuilder(graph_) + .mergeFrom(value) + .buildPartial(); } else { graph_ = value; } @@ -2013,11 +2265,15 @@ public Builder mergeGraph(com.google.cloud.dataproc.v1.WorkflowGraph value) { return this; } /** + * + * *
      * Output only. The workflow graph.
      * 
* - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearGraph() { if (graphBuilder_ == null) { @@ -2031,48 +2287,64 @@ public Builder clearGraph() { return this; } /** + * + * *
      * Output only. The workflow graph.
      * 
* - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.WorkflowGraph.Builder getGraphBuilder() { - + onChanged(); return getGraphFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The workflow graph.
      * 
* - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder getGraphOrBuilder() { if (graphBuilder_ != null) { return graphBuilder_.getMessageOrBuilder(); } else { - return graph_ == null ? - com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance() : graph_; + return graph_ == null + ? com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance() + : graph_; } } /** + * + * *
      * Output only. The workflow graph.
      * 
* - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowGraph, com.google.cloud.dataproc.v1.WorkflowGraph.Builder, com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder> + com.google.cloud.dataproc.v1.WorkflowGraph, + com.google.cloud.dataproc.v1.WorkflowGraph.Builder, + com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder> getGraphFieldBuilder() { if (graphBuilder_ == null) { - graphBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowGraph, com.google.cloud.dataproc.v1.WorkflowGraph.Builder, com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder>( - getGraph(), - getParentForChildren(), - isClean()); + graphBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.WorkflowGraph, + com.google.cloud.dataproc.v1.WorkflowGraph.Builder, + com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder>( + getGraph(), getParentForChildren(), isClean()); graph_ = null; } return graphBuilder_; @@ -2080,39 +2352,58 @@ public com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder getGraphOrBuilder() { private com.google.cloud.dataproc.v1.ClusterOperation deleteCluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperation, com.google.cloud.dataproc.v1.ClusterOperation.Builder, com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> deleteClusterBuilder_; + com.google.cloud.dataproc.v1.ClusterOperation, + com.google.cloud.dataproc.v1.ClusterOperation.Builder, + com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> + deleteClusterBuilder_; /** + * + * *
      * Output only. The delete cluster operation metadata.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteCluster field is set. */ public boolean hasDeleteCluster() { return deleteClusterBuilder_ != null || deleteCluster_ != null; } /** + * + * *
      * Output only. The delete cluster operation metadata.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteCluster. */ public com.google.cloud.dataproc.v1.ClusterOperation getDeleteCluster() { if (deleteClusterBuilder_ == null) { - return deleteCluster_ == null ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() : deleteCluster_; + return deleteCluster_ == null + ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() + : deleteCluster_; } else { return deleteClusterBuilder_.getMessage(); } } /** + * + * *
      * Output only. The delete cluster operation metadata.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteCluster(com.google.cloud.dataproc.v1.ClusterOperation value) { if (deleteClusterBuilder_ == null) { @@ -2128,11 +2419,15 @@ public Builder setDeleteCluster(com.google.cloud.dataproc.v1.ClusterOperation va return this; } /** + * + * *
      * Output only. The delete cluster operation metadata.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteCluster( com.google.cloud.dataproc.v1.ClusterOperation.Builder builderForValue) { @@ -2146,17 +2441,23 @@ public Builder setDeleteCluster( return this; } /** + * + * *
      * Output only. The delete cluster operation metadata.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteCluster(com.google.cloud.dataproc.v1.ClusterOperation value) { if (deleteClusterBuilder_ == null) { if (deleteCluster_ != null) { deleteCluster_ = - com.google.cloud.dataproc.v1.ClusterOperation.newBuilder(deleteCluster_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.ClusterOperation.newBuilder(deleteCluster_) + .mergeFrom(value) + .buildPartial(); } else { deleteCluster_ = value; } @@ -2168,11 +2469,15 @@ public Builder mergeDeleteCluster(com.google.cloud.dataproc.v1.ClusterOperation return this; } /** + * + * *
      * Output only. The delete cluster operation metadata.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteCluster() { if (deleteClusterBuilder_ == null) { @@ -2186,48 +2491,64 @@ public Builder clearDeleteCluster() { return this; } /** + * + * *
      * Output only. The delete cluster operation metadata.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterOperation.Builder getDeleteClusterBuilder() { - + onChanged(); return getDeleteClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The delete cluster operation metadata.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getDeleteClusterOrBuilder() { if (deleteClusterBuilder_ != null) { return deleteClusterBuilder_.getMessageOrBuilder(); } else { - return deleteCluster_ == null ? - com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() : deleteCluster_; + return deleteCluster_ == null + ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() + : deleteCluster_; } } /** + * + * *
      * Output only. The delete cluster operation metadata.
      * 
* - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperation, com.google.cloud.dataproc.v1.ClusterOperation.Builder, com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> + com.google.cloud.dataproc.v1.ClusterOperation, + com.google.cloud.dataproc.v1.ClusterOperation.Builder, + com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> getDeleteClusterFieldBuilder() { if (deleteClusterBuilder_ == null) { - deleteClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperation, com.google.cloud.dataproc.v1.ClusterOperation.Builder, com.google.cloud.dataproc.v1.ClusterOperationOrBuilder>( - getDeleteCluster(), - getParentForChildren(), - isClean()); + deleteClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ClusterOperation, + com.google.cloud.dataproc.v1.ClusterOperation.Builder, + com.google.cloud.dataproc.v1.ClusterOperationOrBuilder>( + getDeleteCluster(), getParentForChildren(), isClean()); deleteCluster_ = null; } return deleteClusterBuilder_; @@ -2235,51 +2556,75 @@ public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getDeleteClusterOr private int state_ = 0; /** + * + * *
      * Output only. The workflow state.
      * 
* - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The workflow state.
      * 
* - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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; } /** + * + * *
      * Output only. The workflow state.
      * 
* - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.WorkflowMetadata.State result = com.google.cloud.dataproc.v1.WorkflowMetadata.State.valueOf(state_); - return result == null ? com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.WorkflowMetadata.State result = + com.google.cloud.dataproc.v1.WorkflowMetadata.State.valueOf(state_); + return result == null + ? com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The workflow state.
      * 
* - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2287,21 +2632,26 @@ public Builder setState(com.google.cloud.dataproc.v1.WorkflowMetadata.State valu if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The workflow state.
      * 
* - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2309,18 +2659,20 @@ public Builder clearState() { private java.lang.Object clusterName_ = ""; /** + * + * *
      * Output only. The name of the target cluster.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -2329,20 +2681,21 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Output only. The name of the target cluster.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString - getClusterNameBytes() { + public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -2350,75 +2703,84 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * Output only. The name of the target cluster.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName( - java.lang.String value) { + public Builder setClusterName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of the target cluster.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** + * + * *
      * Output only. The name of the target cluster.
      * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> parameters_; + private com.google.protobuf.MapField parameters_; + private com.google.protobuf.MapField - internalGetParameters() { + internalGetParameters() { if (parameters_ == null) { return com.google.protobuf.MapField.emptyMapField( ParametersDefaultEntryHolder.defaultEntry); } return parameters_; } + private com.google.protobuf.MapField - internalGetMutableParameters() { - onChanged();; + internalGetMutableParameters() { + onChanged(); + ; if (parameters_ == null) { - parameters_ = com.google.protobuf.MapField.newMapField( - ParametersDefaultEntryHolder.defaultEntry); + parameters_ = + com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); } if (!parameters_.isMutable()) { parameters_ = parameters_.copy(); @@ -2430,28 +2792,30 @@ public int getParametersCount() { return internalGetParameters().getMap().size(); } /** + * + * *
      * Map from parameter names to values that were used for those parameters.
      * 
* * map<string, string> parameters = 8; */ - @java.lang.Override - public boolean containsParameters( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsParameters(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetParameters().getMap().containsKey(key); } - /** - * Use {@link #getParametersMap()} instead. - */ + /** Use {@link #getParametersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParameters() { return getParametersMap(); } /** + * + * *
      * Map from parameter names to values that were used for those parameters.
      * 
@@ -2459,11 +2823,12 @@ public java.util.Map getParameters() { * map<string, string> parameters = 8; */ @java.lang.Override - public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } /** + * + * *
      * Map from parameter names to values that were used for those parameters.
      * 
@@ -2471,16 +2836,17 @@ public java.util.Map getParametersMap() { * map<string, string> parameters = 8; */ @java.lang.Override - public java.lang.String getParametersOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParameters().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Map from parameter names to values that were used for those parameters.
      * 
@@ -2488,12 +2854,11 @@ public java.lang.String getParametersOrDefault( * map<string, string> parameters = 8; */ @java.lang.Override - - public java.lang.String getParametersOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParameters().getMap(); + public java.lang.String getParametersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParameters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2501,87 +2866,95 @@ public java.lang.String getParametersOrThrow( } public Builder clearParameters() { - internalGetMutableParameters().getMutableMap() - .clear(); + internalGetMutableParameters().getMutableMap().clear(); return this; } /** + * + * *
      * Map from parameter names to values that were used for those parameters.
      * 
* * map<string, string> parameters = 8; */ - - public Builder removeParameters( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableParameters().getMutableMap() - .remove(key); + public Builder removeParameters(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableParameters().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableParameters() { + public java.util.Map getMutableParameters() { return internalGetMutableParameters().getMutableMap(); } /** + * + * *
      * Map from parameter names to values that were used for those parameters.
      * 
* * map<string, string> parameters = 8; */ - public Builder putParameters( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putParameters(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"); + } - internalGetMutableParameters().getMutableMap() - .put(key, value); + internalGetMutableParameters().getMutableMap().put(key, value); return this; } /** + * + * *
      * Map from parameter names to values that were used for those parameters.
      * 
* * map<string, string> parameters = 8; */ - - public Builder putAllParameters( - java.util.Map values) { - internalGetMutableParameters().getMutableMap() - .putAll(values); + public Builder putAllParameters(java.util.Map values) { + internalGetMutableParameters().getMutableMap().putAll(values); return this; } private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Output only. Workflow start time.
      * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Output only. Workflow start time.
      * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -2592,11 +2965,14 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Output only. Workflow start time.
      * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -2612,14 +2988,16 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Workflow start time.
      * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -2630,17 +3008,20 @@ public Builder setStartTime( return this; } /** + * + * *
      * Output only. Workflow start time.
      * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -2652,11 +3033,14 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Workflow start time.
      * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -2670,48 +3054,59 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Output only. Workflow start time.
      * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Workflow start time.
      * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * Output only. Workflow start time.
      * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -2719,24 +3114,35 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { 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. Workflow end time.
      * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Output only. Workflow end time.
      * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -2747,11 +3153,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. Workflow end time.
      * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -2767,14 +3176,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Workflow end time.
      * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 10 [(.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(); @@ -2785,17 +3196,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. Workflow end time.
      * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 10 [(.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; } @@ -2807,11 +3221,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Workflow end time.
      * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -2825,48 +3242,59 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. Workflow end time.
      * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Workflow end time.
      * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 10 [(.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. Workflow end time.
      * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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_; @@ -2874,18 +3302,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object clusterUuid_ = ""; /** + * + * *
      * Output only. The UUID of target cluster.
      * 
* * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterUuid. */ public java.lang.String getClusterUuid() { java.lang.Object ref = clusterUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterUuid_ = s; return s; @@ -2894,20 +3324,21 @@ public java.lang.String getClusterUuid() { } } /** + * + * *
      * Output only. The UUID of target cluster.
      * 
* * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterUuid. */ - public com.google.protobuf.ByteString - getClusterUuidBytes() { + public com.google.protobuf.ByteString getClusterUuidBytes() { java.lang.Object ref = clusterUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterUuid_ = b; return b; } else { @@ -2915,54 +3346,61 @@ public java.lang.String getClusterUuid() { } } /** + * + * *
      * Output only. The UUID of target cluster.
      * 
* * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuid( - java.lang.String value) { + public Builder setClusterUuid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterUuid_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The UUID of target cluster.
      * 
* * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClusterUuid() { - + clusterUuid_ = getDefaultInstance().getClusterUuid(); onChanged(); return this; } /** + * + * *
      * Output only. The UUID of target cluster.
      * 
* * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for clusterUuid to set. * @return This builder for chaining. */ - public Builder setClusterUuidBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUuid_ = value; onChanged(); return this; @@ -2970,45 +3408,64 @@ public Builder setClusterUuidBytes( private com.google.protobuf.Duration dagTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> dagTimeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + dagTimeoutBuilder_; /** + * + * *
      * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the dagTimeout field is set. */ public boolean hasDagTimeout() { return dagTimeoutBuilder_ != null || dagTimeout_ != null; } /** + * + * *
      * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The dagTimeout. */ public com.google.protobuf.Duration getDagTimeout() { if (dagTimeoutBuilder_ == null) { - return dagTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; + return dagTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dagTimeout_; } else { return dagTimeoutBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDagTimeout(com.google.protobuf.Duration value) { if (dagTimeoutBuilder_ == null) { @@ -3024,16 +3481,19 @@ public Builder setDagTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDagTimeout( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDagTimeout(com.google.protobuf.Duration.Builder builderForValue) { if (dagTimeoutBuilder_ == null) { dagTimeout_ = builderForValue.build(); onChanged(); @@ -3044,19 +3504,23 @@ public Builder setDagTimeout( return this; } /** + * + * *
      * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDagTimeout(com.google.protobuf.Duration value) { if (dagTimeoutBuilder_ == null) { if (dagTimeout_ != null) { dagTimeout_ = - com.google.protobuf.Duration.newBuilder(dagTimeout_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(dagTimeout_).mergeFrom(value).buildPartial(); } else { dagTimeout_ = value; } @@ -3068,13 +3532,17 @@ public Builder mergeDagTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDagTimeout() { if (dagTimeoutBuilder_ == null) { @@ -3088,54 +3556,70 @@ public Builder clearDagTimeout() { return this; } /** + * + * *
      * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Duration.Builder getDagTimeoutBuilder() { - + onChanged(); return getDagTimeoutFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { if (dagTimeoutBuilder_ != null) { return dagTimeoutBuilder_.getMessageOrBuilder(); } else { - return dagTimeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; + return dagTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dagTimeout_; } } /** + * + * *
      * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getDagTimeoutFieldBuilder() { if (dagTimeoutBuilder_ == null) { - dagTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDagTimeout(), - getParentForChildren(), - isClean()); + dagTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDagTimeout(), getParentForChildren(), isClean()); dagTimeout_ = null; } return dagTimeoutBuilder_; @@ -3143,42 +3627,61 @@ public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { private com.google.protobuf.Timestamp dagStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> dagStartTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + dagStartTimeBuilder_; /** + * + * *
      * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
      * begins.
      * 
* - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the dagStartTime field is set. */ public boolean hasDagStartTime() { return dagStartTimeBuilder_ != null || dagStartTime_ != null; } /** + * + * *
      * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
      * begins.
      * 
* - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The dagStartTime. */ public com.google.protobuf.Timestamp getDagStartTime() { if (dagStartTimeBuilder_ == null) { - return dagStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dagStartTime_; + return dagStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dagStartTime_; } else { return dagStartTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
      * begins.
      * 
* - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDagStartTime(com.google.protobuf.Timestamp value) { if (dagStartTimeBuilder_ == null) { @@ -3194,15 +3697,18 @@ public Builder setDagStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
      * begins.
      * 
* - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDagStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDagStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (dagStartTimeBuilder_ == null) { dagStartTime_ = builderForValue.build(); onChanged(); @@ -3213,18 +3719,24 @@ public Builder setDagStartTime( return this; } /** + * + * *
      * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
      * begins.
      * 
* - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDagStartTime(com.google.protobuf.Timestamp value) { if (dagStartTimeBuilder_ == null) { if (dagStartTime_ != null) { dagStartTime_ = - com.google.protobuf.Timestamp.newBuilder(dagStartTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(dagStartTime_) + .mergeFrom(value) + .buildPartial(); } else { dagStartTime_ = value; } @@ -3236,12 +3748,16 @@ public Builder mergeDagStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
      * begins.
      * 
* - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDagStartTime() { if (dagStartTimeBuilder_ == null) { @@ -3255,51 +3771,67 @@ public Builder clearDagStartTime() { return this; } /** + * + * *
      * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
      * begins.
      * 
* - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDagStartTimeBuilder() { - + onChanged(); return getDagStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
      * begins.
      * 
* - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { if (dagStartTimeBuilder_ != null) { return dagStartTimeBuilder_.getMessageOrBuilder(); } else { - return dagStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : dagStartTime_; + return dagStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dagStartTime_; } } /** + * + * *
      * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
      * begins.
      * 
* - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.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> getDagStartTimeFieldBuilder() { if (dagStartTimeBuilder_ == null) { - dagStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDagStartTime(), - getParentForChildren(), - isClean()); + dagStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDagStartTime(), getParentForChildren(), isClean()); dagStartTime_ = null; } return dagStartTimeBuilder_; @@ -3307,39 +3839,58 @@ public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { private com.google.protobuf.Timestamp dagEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> dagEndTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + dagEndTimeBuilder_; /** + * + * *
      * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the dagEndTime field is set. */ public boolean hasDagEndTime() { return dagEndTimeBuilder_ != null || dagEndTime_ != null; } /** + * + * *
      * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The dagEndTime. */ public com.google.protobuf.Timestamp getDagEndTime() { if (dagEndTimeBuilder_ == null) { - return dagEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dagEndTime_; + return dagEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dagEndTime_; } else { return dagEndTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDagEndTime(com.google.protobuf.Timestamp value) { if (dagEndTimeBuilder_ == null) { @@ -3355,14 +3906,17 @@ public Builder setDagEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDagEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDagEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (dagEndTimeBuilder_ == null) { dagEndTime_ = builderForValue.build(); onChanged(); @@ -3373,17 +3927,21 @@ public Builder setDagEndTime( return this; } /** + * + * *
      * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDagEndTime(com.google.protobuf.Timestamp value) { if (dagEndTimeBuilder_ == null) { if (dagEndTime_ != null) { dagEndTime_ = - com.google.protobuf.Timestamp.newBuilder(dagEndTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(dagEndTime_).mergeFrom(value).buildPartial(); } else { dagEndTime_ = value; } @@ -3395,11 +3953,15 @@ public Builder mergeDagEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDagEndTime() { if (dagEndTimeBuilder_ == null) { @@ -3413,55 +3975,71 @@ public Builder clearDagEndTime() { return this; } /** + * + * *
      * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDagEndTimeBuilder() { - + onChanged(); return getDagEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder() { if (dagEndTimeBuilder_ != null) { return dagEndTimeBuilder_.getMessageOrBuilder(); } else { - return dagEndTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : dagEndTime_; + return dagEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dagEndTime_; } } /** + * + * *
      * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.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> getDagEndTimeFieldBuilder() { if (dagEndTimeBuilder_ == null) { - dagEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDagEndTime(), - getParentForChildren(), - isClean()); + dagEndTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDagEndTime(), getParentForChildren(), isClean()); dagEndTime_ = null; } return dagEndTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3471,12 +4049,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.WorkflowMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.WorkflowMetadata) private static final com.google.cloud.dataproc.v1.WorkflowMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.WorkflowMetadata(); } @@ -3485,27 +4063,27 @@ public static com.google.cloud.dataproc.v1.WorkflowMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3520,6 +4098,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.WorkflowMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java index 2e884bd68904..f015e14e20db 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface WorkflowMetadataOrBuilder extends +public interface WorkflowMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.WorkflowMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the workflow template as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -20,10 +38,13 @@ public interface WorkflowMetadataOrBuilder extends
    * 
* * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The template. */ java.lang.String getTemplate(); /** + * + * *
    * Output only. The resource name of the workflow template as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -36,143 +57,205 @@ public interface WorkflowMetadataOrBuilder extends
    * 
* * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for template. */ - com.google.protobuf.ByteString - getTemplateBytes(); + com.google.protobuf.ByteString getTemplateBytes(); /** + * + * *
    * Output only. The version of template at the time of
    * workflow instantiation.
    * 
* * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The version. */ int getVersion(); /** + * + * *
    * Output only. The create cluster operation metadata.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createCluster field is set. */ boolean hasCreateCluster(); /** + * + * *
    * Output only. The create cluster operation metadata.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createCluster. */ com.google.cloud.dataproc.v1.ClusterOperation getCreateCluster(); /** + * + * *
    * Output only. The create cluster operation metadata.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getCreateClusterOrBuilder(); /** + * + * *
    * Output only. The workflow graph.
    * 
* - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the graph field is set. */ boolean hasGraph(); /** + * + * *
    * Output only. The workflow graph.
    * 
* - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The graph. */ com.google.cloud.dataproc.v1.WorkflowGraph getGraph(); /** + * + * *
    * Output only. The workflow graph.
    * 
* - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder getGraphOrBuilder(); /** + * + * *
    * Output only. The delete cluster operation metadata.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteCluster field is set. */ boolean hasDeleteCluster(); /** + * + * *
    * Output only. The delete cluster operation metadata.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteCluster. */ com.google.cloud.dataproc.v1.ClusterOperation getDeleteCluster(); /** + * + * *
    * Output only. The delete cluster operation metadata.
    * 
* - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getDeleteClusterOrBuilder(); /** + * + * *
    * Output only. The workflow state.
    * 
* - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The workflow state.
    * 
* - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.dataproc.v1.WorkflowMetadata.State getState(); /** + * + * *
    * Output only. The name of the target cluster.
    * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterName. */ java.lang.String getClusterName(); /** + * + * *
    * Output only. The name of the target cluster.
    * 
* * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString - getClusterNameBytes(); + com.google.protobuf.ByteString getClusterNameBytes(); /** + * + * *
    * Map from parameter names to values that were used for those parameters.
    * 
@@ -181,30 +264,31 @@ public interface WorkflowMetadataOrBuilder extends */ int getParametersCount(); /** + * + * *
    * Map from parameter names to values that were used for those parameters.
    * 
* * map<string, string> parameters = 8; */ - boolean containsParameters( - java.lang.String key); - /** - * Use {@link #getParametersMap()} instead. - */ + boolean containsParameters(java.lang.String key); + /** Use {@link #getParametersMap()} instead. */ @java.lang.Deprecated - java.util.Map - getParameters(); + java.util.Map getParameters(); /** + * + * *
    * Map from parameter names to values that were used for those parameters.
    * 
* * map<string, string> parameters = 8; */ - java.util.Map - getParametersMap(); + java.util.Map getParametersMap(); /** + * + * *
    * Map from parameter names to values that were used for those parameters.
    * 
@@ -213,182 +297,248 @@ boolean containsParameters( */ /* nullable */ -java.lang.String getParametersOrDefault( + java.lang.String getParametersOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Map from parameter names to values that were used for those parameters.
    * 
* * map<string, string> parameters = 8; */ - - java.lang.String getParametersOrThrow( - java.lang.String key); + java.lang.String getParametersOrThrow(java.lang.String key); /** + * + * *
    * Output only. Workflow start time.
    * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Output only. Workflow start time.
    * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Output only. Workflow start time.
    * 
* - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Output only. Workflow end time.
    * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. Workflow end time.
    * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. Workflow end time.
    * 
* - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. The UUID of target cluster.
    * 
* * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterUuid. */ java.lang.String getClusterUuid(); /** + * + * *
    * Output only. The UUID of target cluster.
    * 
* * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterUuid. */ - com.google.protobuf.ByteString - getClusterUuidBytes(); + com.google.protobuf.ByteString getClusterUuidBytes(); /** + * + * *
    * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
    * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the dagTimeout field is set. */ boolean hasDagTimeout(); /** + * + * *
    * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
    * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The dagTimeout. */ com.google.protobuf.Duration getDagTimeout(); /** + * + * *
    * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
    * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder(); /** + * + * *
    * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
    * begins.
    * 
* - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the dagStartTime field is set. */ boolean hasDagStartTime(); /** + * + * *
    * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
    * begins.
    * 
* - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The dagStartTime. */ com.google.protobuf.Timestamp getDagStartTime(); /** + * + * *
    * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
    * begins.
    * 
* - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder(); /** + * + * *
    * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
    * 
* - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the dagEndTime field is set. */ boolean hasDagEndTime(); /** + * + * *
    * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
    * 
* - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The dagEndTime. */ com.google.protobuf.Timestamp getDagEndTime(); /** + * + * *
    * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
    * 
* - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java index 9e4be6d3e7b2..0f4fcbca21f3 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * The workflow node.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.WorkflowNode} */ -public final class WorkflowNode extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WorkflowNode extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.WorkflowNode) WorkflowNodeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WorkflowNode.newBuilder() to construct. private WorkflowNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WorkflowNode() { stepId_ = ""; prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -29,39 +47,43 @@ private WorkflowNode() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WorkflowNode(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowNode_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowNode_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowNode.class, com.google.cloud.dataproc.v1.WorkflowNode.Builder.class); + com.google.cloud.dataproc.v1.WorkflowNode.class, + com.google.cloud.dataproc.v1.WorkflowNode.Builder.class); } /** + * + * *
    * The workflow node state.
    * 
* * Protobuf enum {@code google.cloud.dataproc.v1.WorkflowNode.NodeState} */ - public enum NodeState - implements com.google.protobuf.ProtocolMessageEnum { + public enum NodeState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * State is unspecified.
      * 
@@ -70,6 +92,8 @@ public enum NodeState */ NODE_STATE_UNSPECIFIED(0), /** + * + * *
      * The node is awaiting prerequisite node to finish.
      * 
@@ -78,6 +102,8 @@ public enum NodeState */ BLOCKED(1), /** + * + * *
      * The node is runnable but not running.
      * 
@@ -86,6 +112,8 @@ public enum NodeState */ RUNNABLE(2), /** + * + * *
      * The node is running.
      * 
@@ -94,6 +122,8 @@ public enum NodeState */ RUNNING(3), /** + * + * *
      * The node completed successfully.
      * 
@@ -102,6 +132,8 @@ public enum NodeState */ COMPLETED(4), /** + * + * *
      * The node failed. A node can be marked FAILED because
      * its ancestor or peer failed.
@@ -114,6 +146,8 @@ public enum NodeState
     ;
 
     /**
+     *
+     *
      * 
      * State is unspecified.
      * 
@@ -122,6 +156,8 @@ public enum NodeState */ public static final int NODE_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The node is awaiting prerequisite node to finish.
      * 
@@ -130,6 +166,8 @@ public enum NodeState */ public static final int BLOCKED_VALUE = 1; /** + * + * *
      * The node is runnable but not running.
      * 
@@ -138,6 +176,8 @@ public enum NodeState */ public static final int RUNNABLE_VALUE = 2; /** + * + * *
      * The node is running.
      * 
@@ -146,6 +186,8 @@ public enum NodeState */ public static final int RUNNING_VALUE = 3; /** + * + * *
      * The node completed successfully.
      * 
@@ -154,6 +196,8 @@ public enum NodeState */ public static final int COMPLETED_VALUE = 4; /** + * + * *
      * The node failed. A node can be marked FAILED because
      * its ancestor or peer failed.
@@ -163,7 +207,6 @@ public enum NodeState
      */
     public static final int FAILED_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -188,52 +231,55 @@ public static NodeState valueOf(int value) {
      */
     public static NodeState forNumber(int value) {
       switch (value) {
-        case 0: return NODE_STATE_UNSPECIFIED;
-        case 1: return BLOCKED;
-        case 2: return RUNNABLE;
-        case 3: return RUNNING;
-        case 4: return COMPLETED;
-        case 5: return FAILED;
-        default: return null;
+        case 0:
+          return NODE_STATE_UNSPECIFIED;
+        case 1:
+          return BLOCKED;
+        case 2:
+          return RUNNABLE;
+        case 3:
+          return RUNNING;
+        case 4:
+          return COMPLETED;
+        case 5:
+          return FAILED;
+        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<
-        NodeState> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public NodeState findValueByNumber(int number) {
-              return NodeState.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public NodeState findValueByNumber(int number) {
+            return NodeState.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.dataproc.v1.WorkflowNode.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final NodeState[] VALUES = values();
 
-    public static NodeState valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static NodeState 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;
@@ -253,11 +299,14 @@ private NodeState(int value) {
   public static final int STEP_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object stepId_;
   /**
+   *
+   *
    * 
    * Output only. The name of the node.
    * 
* * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stepId. */ @java.lang.Override @@ -266,29 +315,29 @@ public java.lang.String getStepId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stepId_ = s; return s; } } /** + * + * *
    * Output only. The name of the node.
    * 
* * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stepId. */ @java.lang.Override - public com.google.protobuf.ByteString - getStepIdBytes() { + public com.google.protobuf.ByteString getStepIdBytes() { java.lang.Object ref = stepId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stepId_ = b; return b; } else { @@ -299,34 +348,45 @@ public java.lang.String getStepId() { public static final int PREREQUISITE_STEP_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList prerequisiteStepIds_; /** + * + * *
    * Output only. Node's prerequisite nodes.
    * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the prerequisiteStepIds. */ - public com.google.protobuf.ProtocolStringList - getPrerequisiteStepIdsList() { + public com.google.protobuf.ProtocolStringList getPrerequisiteStepIdsList() { return prerequisiteStepIds_; } /** + * + * *
    * Output only. Node's prerequisite nodes.
    * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of prerequisiteStepIds. */ public int getPrerequisiteStepIdsCount() { return prerequisiteStepIds_.size(); } /** + * + * *
    * Output only. Node's prerequisite nodes.
    * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The prerequisiteStepIds at the given index. */ @@ -334,27 +394,33 @@ public java.lang.String getPrerequisiteStepIds(int index) { return prerequisiteStepIds_.get(index); } /** + * + * *
    * Output only. Node's prerequisite nodes.
    * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the prerequisiteStepIds at the given index. */ - public com.google.protobuf.ByteString - getPrerequisiteStepIdsBytes(int index) { + public com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index) { return prerequisiteStepIds_.getByteString(index); } public static final int JOB_ID_FIELD_NUMBER = 3; private volatile java.lang.Object jobId_; /** + * + * *
    * Output only. The job id; populated after the node enters RUNNING state.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The jobId. */ @java.lang.Override @@ -363,29 +429,29 @@ 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; } } /** + * + * *
    * Output only. The job id; populated after the node enters RUNNING state.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -396,38 +462,56 @@ public java.lang.String getJobId() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** + * + * *
    * Output only. The node state.
    * 
* - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The node state.
    * 
* - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowNode.NodeState getState() { + @java.lang.Override + public com.google.cloud.dataproc.v1.WorkflowNode.NodeState getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.WorkflowNode.NodeState result = com.google.cloud.dataproc.v1.WorkflowNode.NodeState.valueOf(state_); - return result == null ? com.google.cloud.dataproc.v1.WorkflowNode.NodeState.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.WorkflowNode.NodeState result = + com.google.cloud.dataproc.v1.WorkflowNode.NodeState.valueOf(state_); + return result == null + ? com.google.cloud.dataproc.v1.WorkflowNode.NodeState.UNRECOGNIZED + : result; } public static final int ERROR_FIELD_NUMBER = 6; private volatile java.lang.Object error_; /** + * + * *
    * Output only. The error detail.
    * 
* * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The error. */ @java.lang.Override @@ -436,29 +520,29 @@ public java.lang.String getError() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } } /** + * + * *
    * Output only. The error detail.
    * 
* * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for error. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorBytes() { + public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); error_ = b; return b; } else { @@ -467,6 +551,7 @@ public java.lang.String getError() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -478,8 +563,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stepId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stepId_); } @@ -489,7 +573,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobId_); } - if (state_ != com.google.cloud.dataproc.v1.WorkflowNode.NodeState.NODE_STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.dataproc.v1.WorkflowNode.NodeState.NODE_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { @@ -518,9 +603,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobId_); } - if (state_ != com.google.cloud.dataproc.v1.WorkflowNode.NodeState.NODE_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, state_); + if (state_ + != com.google.cloud.dataproc.v1.WorkflowNode.NodeState.NODE_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, error_); @@ -533,22 +618,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.dataproc.v1.WorkflowNode)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.WorkflowNode other = (com.google.cloud.dataproc.v1.WorkflowNode) obj; + com.google.cloud.dataproc.v1.WorkflowNode other = + (com.google.cloud.dataproc.v1.WorkflowNode) obj; - if (!getStepId() - .equals(other.getStepId())) return false; - if (!getPrerequisiteStepIdsList() - .equals(other.getPrerequisiteStepIdsList())) return false; - if (!getJobId() - .equals(other.getJobId())) return false; + if (!getStepId().equals(other.getStepId())) return false; + if (!getPrerequisiteStepIdsList().equals(other.getPrerequisiteStepIdsList())) return false; + if (!getJobId().equals(other.getJobId())) return false; if (state_ != other.state_) return false; - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -577,130 +659,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowNode parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.WorkflowNode parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.WorkflowNode parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.WorkflowNode prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 workflow node.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.WorkflowNode} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.WorkflowNode) com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowNode_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowNode_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowNode.class, com.google.cloud.dataproc.v1.WorkflowNode.Builder.class); + com.google.cloud.dataproc.v1.WorkflowNode.class, + com.google.cloud.dataproc.v1.WorkflowNode.Builder.class); } // Construct using com.google.cloud.dataproc.v1.WorkflowNode.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -718,9 +806,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; } @java.lang.Override @@ -739,7 +827,8 @@ public com.google.cloud.dataproc.v1.WorkflowNode build() { @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowNode buildPartial() { - com.google.cloud.dataproc.v1.WorkflowNode result = new com.google.cloud.dataproc.v1.WorkflowNode(this); + com.google.cloud.dataproc.v1.WorkflowNode result = + new com.google.cloud.dataproc.v1.WorkflowNode(this); int from_bitField0_ = bitField0_; result.stepId_ = stepId_; if (((bitField0_ & 0x00000001) != 0)) { @@ -758,38 +847,39 @@ public com.google.cloud.dataproc.v1.WorkflowNode buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.WorkflowNode) { - return mergeFrom((com.google.cloud.dataproc.v1.WorkflowNode)other); + return mergeFrom((com.google.cloud.dataproc.v1.WorkflowNode) other); } else { super.mergeFrom(other); return this; @@ -849,38 +939,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - stepId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.add(s); - break; - } // case 18 - case 26: { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 40: { - state_ = input.readEnum(); - - break; - } // case 40 - case 50: { - error_ = input.readStringRequireUtf8(); - - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + stepId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePrerequisiteStepIdsIsMutable(); + prerequisiteStepIds_.add(s); + break; + } // case 18 + case 26: + { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 40: + { + state_ = input.readEnum(); + + break; + } // case 40 + case 50: + { + error_ = input.readStringRequireUtf8(); + + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -890,22 +986,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object stepId_ = ""; /** + * + * *
      * Output only. The name of the node.
      * 
* * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stepId. */ public java.lang.String getStepId() { java.lang.Object ref = stepId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stepId_ = s; return s; @@ -914,20 +1013,21 @@ public java.lang.String getStepId() { } } /** + * + * *
      * Output only. The name of the node.
      * 
* * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stepId. */ - public com.google.protobuf.ByteString - getStepIdBytes() { + public com.google.protobuf.ByteString getStepIdBytes() { java.lang.Object ref = stepId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stepId_ = b; return b; } else { @@ -935,95 +1035,115 @@ public java.lang.String getStepId() { } } /** + * + * *
      * Output only. The name of the node.
      * 
* * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The stepId to set. * @return This builder for chaining. */ - public Builder setStepId( - java.lang.String value) { + public Builder setStepId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stepId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of the node.
      * 
* * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStepId() { - + stepId_ = getDefaultInstance().getStepId(); onChanged(); return this; } /** + * + * *
      * Output only. The name of the node.
      * 
* * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for stepId to set. * @return This builder for chaining. */ - public Builder setStepIdBytes( - com.google.protobuf.ByteString value) { + public Builder setStepIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stepId_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList prerequisiteStepIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePrerequisiteStepIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { prerequisiteStepIds_ = new com.google.protobuf.LazyStringArrayList(prerequisiteStepIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Output only. Node's prerequisite nodes.
      * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the prerequisiteStepIds. */ - public com.google.protobuf.ProtocolStringList - getPrerequisiteStepIdsList() { + public com.google.protobuf.ProtocolStringList getPrerequisiteStepIdsList() { return prerequisiteStepIds_.getUnmodifiableView(); } /** + * + * *
      * Output only. Node's prerequisite nodes.
      * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of prerequisiteStepIds. */ public int getPrerequisiteStepIdsCount() { return prerequisiteStepIds_.size(); } /** + * + * *
      * Output only. Node's prerequisite nodes.
      * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The prerequisiteStepIds at the given index. */ @@ -1031,80 +1151,95 @@ public java.lang.String getPrerequisiteStepIds(int index) { return prerequisiteStepIds_.get(index); } /** + * + * *
      * Output only. Node's prerequisite nodes.
      * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the prerequisiteStepIds at the given index. */ - public com.google.protobuf.ByteString - getPrerequisiteStepIdsBytes(int index) { + public com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index) { return prerequisiteStepIds_.getByteString(index); } /** + * + * *
      * Output only. Node's prerequisite nodes.
      * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index to set the value at. * @param value The prerequisiteStepIds to set. * @return This builder for chaining. */ - public Builder setPrerequisiteStepIds( - int index, java.lang.String value) { + public Builder setPrerequisiteStepIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePrerequisiteStepIdsIsMutable(); + throw new NullPointerException(); + } + ensurePrerequisiteStepIdsIsMutable(); prerequisiteStepIds_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. Node's prerequisite nodes.
      * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The prerequisiteStepIds to add. * @return This builder for chaining. */ - public Builder addPrerequisiteStepIds( - java.lang.String value) { + public Builder addPrerequisiteStepIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePrerequisiteStepIdsIsMutable(); + throw new NullPointerException(); + } + ensurePrerequisiteStepIdsIsMutable(); prerequisiteStepIds_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. Node's prerequisite nodes.
      * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param values The prerequisiteStepIds to add. * @return This builder for chaining. */ - public Builder addAllPrerequisiteStepIds( - java.lang.Iterable values) { + public Builder addAllPrerequisiteStepIds(java.lang.Iterable values) { ensurePrerequisiteStepIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, prerequisiteStepIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prerequisiteStepIds_); onChanged(); return this; } /** + * + * *
      * Output only. Node's prerequisite nodes.
      * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearPrerequisiteStepIds() { @@ -1114,20 +1249,23 @@ public Builder clearPrerequisiteStepIds() { return this; } /** + * + * *
      * Output only. Node's prerequisite nodes.
      * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes of the prerequisiteStepIds to add. * @return This builder for chaining. */ - public Builder addPrerequisiteStepIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addPrerequisiteStepIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePrerequisiteStepIdsIsMutable(); prerequisiteStepIds_.add(value); onChanged(); @@ -1136,18 +1274,20 @@ public Builder addPrerequisiteStepIdsBytes( private java.lang.Object jobId_ = ""; /** + * + * *
      * Output only. The job id; populated after the node enters RUNNING state.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1156,20 +1296,21 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Output only. The job id; populated after the node enters RUNNING state.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1177,54 +1318,61 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Output only. The job id; populated after the node enters RUNNING state.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; } /** + * + * *
      * Output only. The job id; populated after the node enters RUNNING state.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearJobId() { - + jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** + * + * *
      * Output only. The job id; populated after the node enters RUNNING state.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1232,51 +1380,75 @@ public Builder setJobIdBytes( private int state_ = 0; /** + * + * *
      * Output only. The node state.
      * 
* - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The node state.
      * 
* - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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; } /** + * + * *
      * Output only. The node state.
      * 
* - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowNode.NodeState getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.WorkflowNode.NodeState result = com.google.cloud.dataproc.v1.WorkflowNode.NodeState.valueOf(state_); - return result == null ? com.google.cloud.dataproc.v1.WorkflowNode.NodeState.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.WorkflowNode.NodeState result = + com.google.cloud.dataproc.v1.WorkflowNode.NodeState.valueOf(state_); + return result == null + ? com.google.cloud.dataproc.v1.WorkflowNode.NodeState.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The node state.
      * 
* - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1284,21 +1456,26 @@ public Builder setState(com.google.cloud.dataproc.v1.WorkflowNode.NodeState valu if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The node state.
      * 
* - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1306,18 +1483,20 @@ public Builder clearState() { private java.lang.Object error_ = ""; /** + * + * *
      * Output only. The error detail.
      * 
* * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The error. */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; @@ -1326,20 +1505,21 @@ public java.lang.String getError() { } } /** + * + * *
      * Output only. The error detail.
      * 
* * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for error. */ - public com.google.protobuf.ByteString - getErrorBytes() { + public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); error_ = b; return b; } else { @@ -1347,61 +1527,68 @@ public java.lang.String getError() { } } /** + * + * *
      * Output only. The error detail.
      * 
* * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The error to set. * @return This builder for chaining. */ - public Builder setError( - java.lang.String value) { + public Builder setError(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + error_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The error detail.
      * 
* * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearError() { - + error_ = getDefaultInstance().getError(); onChanged(); return this; } /** + * + * *
      * Output only. The error detail.
      * 
* * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for error to set. * @return This builder for chaining. */ - public Builder setErrorBytes( - com.google.protobuf.ByteString value) { + public Builder setErrorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + error_ = 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); } @@ -1411,12 +1598,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.WorkflowNode) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.WorkflowNode) private static final com.google.cloud.dataproc.v1.WorkflowNode DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.WorkflowNode(); } @@ -1425,27 +1612,27 @@ public static com.google.cloud.dataproc.v1.WorkflowNode getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowNode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1460,6 +1647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.WorkflowNode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java index 0e8f711f4b7c..003abfa0cfba 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java @@ -1,129 +1,184 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface WorkflowNodeOrBuilder extends +public interface WorkflowNodeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.WorkflowNode) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The name of the node.
    * 
* * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stepId. */ java.lang.String getStepId(); /** + * + * *
    * Output only. The name of the node.
    * 
* * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for stepId. */ - com.google.protobuf.ByteString - getStepIdBytes(); + com.google.protobuf.ByteString getStepIdBytes(); /** + * + * *
    * Output only. Node's prerequisite nodes.
    * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the prerequisiteStepIds. */ - java.util.List - getPrerequisiteStepIdsList(); + java.util.List getPrerequisiteStepIdsList(); /** + * + * *
    * Output only. Node's prerequisite nodes.
    * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of prerequisiteStepIds. */ int getPrerequisiteStepIdsCount(); /** + * + * *
    * Output only. Node's prerequisite nodes.
    * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The prerequisiteStepIds at the given index. */ java.lang.String getPrerequisiteStepIds(int index); /** + * + * *
    * Output only. Node's prerequisite nodes.
    * 
* - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the prerequisiteStepIds at the given index. */ - com.google.protobuf.ByteString - getPrerequisiteStepIdsBytes(int index); + com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index); /** + * + * *
    * Output only. The job id; populated after the node enters RUNNING state.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The jobId. */ java.lang.String getJobId(); /** + * + * *
    * Output only. The job id; populated after the node enters RUNNING state.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for jobId. */ - com.google.protobuf.ByteString - getJobIdBytes(); + com.google.protobuf.ByteString getJobIdBytes(); /** + * + * *
    * Output only. The node state.
    * 
* - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The node state.
    * 
* - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.dataproc.v1.WorkflowNode.NodeState getState(); /** + * + * *
    * Output only. The error detail.
    * 
* * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The error. */ java.lang.String getError(); /** + * + * *
    * Output only. The error detail.
    * 
* * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for error. */ - com.google.protobuf.ByteString - getErrorBytes(); + com.google.protobuf.ByteString getErrorBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java similarity index 69% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java index 0bc1a2fb2865..8358e925e74e 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * A Dataproc workflow template resource.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.WorkflowTemplate} */ -public final class WorkflowTemplate extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WorkflowTemplate extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.WorkflowTemplate) WorkflowTemplateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WorkflowTemplate.newBuilder() to construct. private WorkflowTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WorkflowTemplate() { id_ = ""; name_ = ""; @@ -28,45 +46,46 @@ private WorkflowTemplate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WorkflowTemplate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplate_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_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.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplate_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowTemplate.class, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder.class); + com.google.cloud.dataproc.v1.WorkflowTemplate.class, + com.google.cloud.dataproc.v1.WorkflowTemplate.Builder.class); } public static final int ID_FIELD_NUMBER = 2; private volatile java.lang.Object id_; /** * string id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The id. */ @java.lang.Override @@ -75,8 +94,7 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -84,16 +102,15 @@ public java.lang.String getId() { } /** * string id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -104,6 +121,8 @@ public java.lang.String getId() { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -116,6 +135,7 @@ public java.lang.String getId() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -124,14 +144,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -144,16 +165,15 @@ public java.lang.String getName() {
    * 
* * 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 { @@ -164,6 +184,8 @@ public java.lang.String getName() { public static final int VERSION_FIELD_NUMBER = 3; private int version_; /** + * + * *
    * Optional. Used to perform a consistent read-modify-write.
    * This field should be left blank for a `CreateWorkflowTemplate` request. It
@@ -176,6 +198,7 @@ public java.lang.String getName() {
    * 
* * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ @java.lang.Override @@ -186,11 +209,15 @@ public int getVersion() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time template was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -198,11 +225,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time template was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -210,11 +241,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time template was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -224,11 +258,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time template was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -236,11 +274,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time template was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -248,11 +290,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time template was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -260,24 +305,23 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 6; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplate_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -286,6 +330,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels to associate with this template. These labels
    * will be propagated to all jobs and clusters created by the workflow
@@ -300,22 +346,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-
   @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();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this template. These labels
    * will be propagated to all jobs and clusters created by the workflow
@@ -331,11 +377,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this template. These labels
    * will be propagated to all jobs and clusters created by the workflow
@@ -351,16 +398,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this template. These labels
    * will be propagated to all jobs and clusters created by the workflow
@@ -376,12 +423,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @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();
     }
@@ -391,11 +437,16 @@ public java.lang.String getLabelsOrThrow(
   public static final int PLACEMENT_FIELD_NUMBER = 7;
   private com.google.cloud.dataproc.v1.WorkflowTemplatePlacement placement_;
   /**
+   *
+   *
    * 
    * Required. WorkflowTemplate scheduling information.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the placement field is set. */ @java.lang.Override @@ -403,23 +454,34 @@ public boolean hasPlacement() { return placement_ != null; } /** + * + * *
    * Required. WorkflowTemplate scheduling information.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The placement. */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement getPlacement() { - return placement_ == null ? com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance() : placement_; + return placement_ == null + ? com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance() + : placement_; } /** + * + * *
    * Required. WorkflowTemplate scheduling information.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder getPlacementOrBuilder() { @@ -429,136 +491,176 @@ public com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder getPlacem public static final int JOBS_FIELD_NUMBER = 8; private java.util.List jobs_; /** + * + * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getJobsList() { return jobs_; } /** + * + * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getJobsOrBuilderList() { return jobs_; } /** + * + * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getJobsCount() { return jobs_.size(); } /** + * + * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.OrderedJob getJobs(int index) { return jobs_.get(index); } /** + * + * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.OrderedJobOrBuilder getJobsOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.OrderedJobOrBuilder getJobsOrBuilder(int index) { return jobs_.get(index); } public static final int PARAMETERS_FIELD_NUMBER = 9; private java.util.List parameters_; /** + * + * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getParametersList() { return parameters_; } /** + * + * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getParametersOrBuilderList() { return parameters_; } /** + * + * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getParametersCount() { return parameters_.size(); } /** + * + * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.TemplateParameter getParameters(int index) { return parameters_.get(index); } /** + * + * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBuilder(int index) { return parameters_.get(index); } public static final int DAG_TIMEOUT_FIELD_NUMBER = 10; private com.google.protobuf.Duration dagTimeout_; /** + * + * *
    * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
@@ -572,7 +674,9 @@ public com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBu
    * the cluster is deleted.
    * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the dagTimeout field is set. */ @java.lang.Override @@ -580,6 +684,8 @@ public boolean hasDagTimeout() { return dagTimeout_ != null; } /** + * + * *
    * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
@@ -593,7 +699,9 @@ public boolean hasDagTimeout() {
    * the cluster is deleted.
    * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The dagTimeout. */ @java.lang.Override @@ -601,6 +709,8 @@ public com.google.protobuf.Duration getDagTimeout() { return dagTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; } /** + * + * *
    * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
@@ -614,7 +724,8 @@ public com.google.protobuf.Duration getDagTimeout() {
    * the cluster is deleted.
    * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { @@ -622,6 +733,7 @@ public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -633,8 +745,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -650,12 +761,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(5, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); if (placement_ != null) { output.writeMessage(7, getPlacement()); } @@ -684,42 +791,35 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, version_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, version_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdateTime()); - } - 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(5, getUpdateTime()); + } + 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 (placement_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getPlacement()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPlacement()); } for (int i = 0; i < jobs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, jobs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, jobs_.get(i)); } for (int i = 0; i < parameters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, parameters_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, parameters_.get(i)); } if (dagTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getDagTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDagTimeout()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -729,44 +829,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.WorkflowTemplate)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.WorkflowTemplate other = (com.google.cloud.dataproc.v1.WorkflowTemplate) obj; + com.google.cloud.dataproc.v1.WorkflowTemplate other = + (com.google.cloud.dataproc.v1.WorkflowTemplate) obj; - if (!getId() - .equals(other.getId())) return false; - if (!getName() - .equals(other.getName())) return false; - if (getVersion() - != other.getVersion()) return false; + if (!getId().equals(other.getId())) return false; + if (!getName().equals(other.getName())) return false; + if (getVersion() != other.getVersion()) 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 (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasPlacement() != other.hasPlacement()) return false; if (hasPlacement()) { - if (!getPlacement() - .equals(other.getPlacement())) return false; + if (!getPlacement().equals(other.getPlacement())) return false; } - if (!getJobsList() - .equals(other.getJobsList())) return false; - if (!getParametersList() - .equals(other.getParametersList())) return false; + if (!getJobsList().equals(other.getJobsList())) return false; + if (!getParametersList().equals(other.getParametersList())) return false; if (hasDagTimeout() != other.hasDagTimeout()) return false; if (hasDagTimeout()) { - if (!getDagTimeout() - .equals(other.getDagTimeout())) return false; + if (!getDagTimeout().equals(other.getDagTimeout())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -818,152 +909,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.WorkflowTemplate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.WorkflowTemplate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.WorkflowTemplate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Dataproc workflow template resource.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.WorkflowTemplate} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.WorkflowTemplate) com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_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.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplate_fieldAccessorTable + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowTemplate.class, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder.class); + com.google.cloud.dataproc.v1.WorkflowTemplate.class, + com.google.cloud.dataproc.v1.WorkflowTemplate.Builder.class); } // Construct using com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1016,9 +1111,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplate_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.WorkflowTemplatesProto + .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_descriptor; } @java.lang.Override @@ -1037,7 +1132,8 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate build() { @java.lang.Override public com.google.cloud.dataproc.v1.WorkflowTemplate buildPartial() { - com.google.cloud.dataproc.v1.WorkflowTemplate result = new com.google.cloud.dataproc.v1.WorkflowTemplate(this); + com.google.cloud.dataproc.v1.WorkflowTemplate result = + new com.google.cloud.dataproc.v1.WorkflowTemplate(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; @@ -1090,38 +1186,39 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.WorkflowTemplate) { - return mergeFrom((com.google.cloud.dataproc.v1.WorkflowTemplate)other); + return mergeFrom((com.google.cloud.dataproc.v1.WorkflowTemplate) other); } else { super.mergeFrom(other); return this; @@ -1147,8 +1244,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowTemplate other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasPlacement()) { mergePlacement(other.getPlacement()); } @@ -1170,9 +1266,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowTemplate other) { jobsBuilder_ = null; jobs_ = other.jobs_; bitField0_ = (bitField0_ & ~0x00000002); - jobsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getJobsFieldBuilder() : null; + jobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getJobsFieldBuilder() + : null; } else { jobsBuilder_.addAllMessages(other.jobs_); } @@ -1196,9 +1293,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowTemplate other) { parametersBuilder_ = null; parameters_ = other.parameters_; bitField0_ = (bitField0_ & ~0x00000004); - parametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getParametersFieldBuilder() : null; + parametersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getParametersFieldBuilder() + : null; } else { parametersBuilder_.addAllMessages(other.parameters_); } @@ -1233,89 +1331,92 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - id_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - version_ = input.readInt32(); - - break; - } // case 24 - case 34: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 50 - case 58: { - input.readMessage( - getPlacementFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 58 - case 66: { - com.google.cloud.dataproc.v1.OrderedJob m = - input.readMessage( - com.google.cloud.dataproc.v1.OrderedJob.parser(), - extensionRegistry); - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.add(m); - } else { - jobsBuilder_.addMessage(m); - } - break; - } // case 66 - case 74: { - com.google.cloud.dataproc.v1.TemplateParameter m = - input.readMessage( - com.google.cloud.dataproc.v1.TemplateParameter.parser(), - extensionRegistry); - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(m); - } else { - parametersBuilder_.addMessage(m); - } - break; - } // case 74 - case 82: { - input.readMessage( - getDagTimeoutFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + id_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + version_ = input.readInt32(); + + break; + } // case 24 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 50 + case 58: + { + input.readMessage(getPlacementFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 66: + { + com.google.cloud.dataproc.v1.OrderedJob m = + input.readMessage( + com.google.cloud.dataproc.v1.OrderedJob.parser(), extensionRegistry); + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(m); + } else { + jobsBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + com.google.cloud.dataproc.v1.TemplateParameter m = + input.readMessage( + com.google.cloud.dataproc.v1.TemplateParameter.parser(), extensionRegistry); + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(m); + } else { + parametersBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + input.readMessage(getDagTimeoutFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1325,18 +1426,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object id_ = ""; /** * string id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -1346,15 +1448,14 @@ public java.lang.String getId() { } /** * string id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -1363,41 +1464,42 @@ public java.lang.String getId() { } /** * string id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** * string id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * string id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -1405,6 +1507,8 @@ public Builder setIdBytes( private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1417,13 +1521,13 @@ public Builder setIdBytes(
      * 
* * 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; @@ -1432,6 +1536,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1444,15 +1550,14 @@ public java.lang.String getName() {
      * 
* * 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 { @@ -1460,6 +1565,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1472,20 +1579,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1498,15 +1607,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the workflow template, as described
      * in https://cloud.google.com/apis/design/resource_names.
@@ -1519,23 +1631,25 @@ public Builder clearName() {
      * 
* * 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; } - private int version_ ; + private int version_; /** + * + * *
      * Optional. Used to perform a consistent read-modify-write.
      * This field should be left blank for a `CreateWorkflowTemplate` request. It
@@ -1548,6 +1662,7 @@ public Builder setNameBytes(
      * 
* * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ @java.lang.Override @@ -1555,6 +1670,8 @@ public int getVersion() { return version_; } /** + * + * *
      * Optional. Used to perform a consistent read-modify-write.
      * This field should be left blank for a `CreateWorkflowTemplate` request. It
@@ -1567,16 +1684,19 @@ public int getVersion() {
      * 
* * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { - + version_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Used to perform a consistent read-modify-write.
      * This field should be left blank for a `CreateWorkflowTemplate` request. It
@@ -1589,10 +1709,11 @@ public Builder setVersion(int value) {
      * 
* * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = 0; onChanged(); return this; @@ -1600,39 +1721,58 @@ public Builder clearVersion() { 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 template was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.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 template was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.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 template was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1648,14 +1788,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time template was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.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(); @@ -1666,17 +1809,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time template was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.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; } @@ -1688,11 +1835,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time template was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1706,48 +1857,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time template was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time template was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.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 template was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.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_; @@ -1755,39 +1922,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time template was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The time template was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time template was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1803,14 +1989,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time template was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.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(); @@ -1821,17 +2010,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time template was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.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; } @@ -1843,11 +2036,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time template was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1861,69 +2058,84 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time template was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time template was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time template was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.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_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1935,6 +2147,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels to associate with this template. These labels
      * will be propagated to all jobs and clusters created by the workflow
@@ -1949,22 +2163,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-
     @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();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this template. These labels
      * will be propagated to all jobs and clusters created by the workflow
@@ -1980,11 +2194,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this template. These labels
      * will be propagated to all jobs and clusters created by the workflow
@@ -2000,16 +2215,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this template. These labels
      * will be propagated to all jobs and clusters created by the workflow
@@ -2025,12 +2241,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @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();
       }
@@ -2038,11 +2253,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this template. These labels
      * will be propagated to all jobs and clusters created by the workflow
@@ -2057,23 +2273,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    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();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this template. These labels
      * will be propagated to all jobs and clusters created by the workflow
@@ -2088,19 +2302,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    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;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this template. These labels
      * will be propagated to all jobs and clusters created by the workflow
@@ -2115,49 +2330,65 @@ public Builder putLabels(
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    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.dataproc.v1.WorkflowTemplatePlacement placement_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.dataproc.v1.WorkflowTemplatePlacement, com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder, com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder> placementBuilder_;
+            com.google.cloud.dataproc.v1.WorkflowTemplatePlacement,
+            com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder,
+            com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder>
+        placementBuilder_;
     /**
+     *
+     *
      * 
      * Required. WorkflowTemplate scheduling information.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the placement field is set. */ public boolean hasPlacement() { return placementBuilder_ != null || placement_ != null; } /** + * + * *
      * Required. WorkflowTemplate scheduling information.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The placement. */ public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement getPlacement() { if (placementBuilder_ == null) { - return placement_ == null ? com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance() : placement_; + return placement_ == null + ? com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance() + : placement_; } else { return placementBuilder_.getMessage(); } } /** + * + * *
      * Required. WorkflowTemplate scheduling information.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPlacement(com.google.cloud.dataproc.v1.WorkflowTemplatePlacement value) { if (placementBuilder_ == null) { @@ -2173,11 +2404,15 @@ public Builder setPlacement(com.google.cloud.dataproc.v1.WorkflowTemplatePlaceme return this; } /** + * + * *
      * Required. WorkflowTemplate scheduling information.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPlacement( com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder builderForValue) { @@ -2191,17 +2426,23 @@ public Builder setPlacement( return this; } /** + * + * *
      * Required. WorkflowTemplate scheduling information.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePlacement(com.google.cloud.dataproc.v1.WorkflowTemplatePlacement value) { if (placementBuilder_ == null) { if (placement_ != null) { placement_ = - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.newBuilder(placement_).mergeFrom(value).buildPartial(); + com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.newBuilder(placement_) + .mergeFrom(value) + .buildPartial(); } else { placement_ = value; } @@ -2213,11 +2454,15 @@ public Builder mergePlacement(com.google.cloud.dataproc.v1.WorkflowTemplatePlace return this; } /** + * + * *
      * Required. WorkflowTemplate scheduling information.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPlacement() { if (placementBuilder_ == null) { @@ -2231,71 +2476,95 @@ public Builder clearPlacement() { return this; } /** + * + * *
      * Required. WorkflowTemplate scheduling information.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder getPlacementBuilder() { - + onChanged(); return getPlacementFieldBuilder().getBuilder(); } /** + * + * *
      * Required. WorkflowTemplate scheduling information.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder getPlacementOrBuilder() { if (placementBuilder_ != null) { return placementBuilder_.getMessageOrBuilder(); } else { - return placement_ == null ? - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance() : placement_; + return placement_ == null + ? com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance() + : placement_; } } /** + * + * *
      * Required. WorkflowTemplate scheduling information.
      * 
* - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement, com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder, com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder> + com.google.cloud.dataproc.v1.WorkflowTemplatePlacement, + com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder, + com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder> getPlacementFieldBuilder() { if (placementBuilder_ == null) { - placementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement, com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder, com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder>( - getPlacement(), - getParentForChildren(), - isClean()); + placementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.WorkflowTemplatePlacement, + com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder, + com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder>( + getPlacement(), getParentForChildren(), isClean()); placement_ = null; } return placementBuilder_; } private java.util.List jobs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureJobsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { jobs_ = new java.util.ArrayList(jobs_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.OrderedJob, com.google.cloud.dataproc.v1.OrderedJob.Builder, com.google.cloud.dataproc.v1.OrderedJobOrBuilder> jobsBuilder_; + com.google.cloud.dataproc.v1.OrderedJob, + com.google.cloud.dataproc.v1.OrderedJob.Builder, + com.google.cloud.dataproc.v1.OrderedJobOrBuilder> + jobsBuilder_; /** + * + * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getJobsList() { if (jobsBuilder_ == null) { @@ -2305,11 +2574,15 @@ public java.util.List getJobsList() { } } /** + * + * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getJobsCount() { if (jobsBuilder_ == null) { @@ -2319,11 +2592,15 @@ public int getJobsCount() { } } /** + * + * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.OrderedJob getJobs(int index) { if (jobsBuilder_ == null) { @@ -2333,14 +2610,17 @@ public com.google.cloud.dataproc.v1.OrderedJob getJobs(int index) { } } /** + * + * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setJobs( - int index, com.google.cloud.dataproc.v1.OrderedJob value) { + public Builder setJobs(int index, com.google.cloud.dataproc.v1.OrderedJob value) { if (jobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2354,11 +2634,15 @@ public Builder setJobs( return this; } /** + * + * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setJobs( int index, com.google.cloud.dataproc.v1.OrderedJob.Builder builderForValue) { @@ -2372,11 +2656,15 @@ public Builder setJobs( return this; } /** + * + * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addJobs(com.google.cloud.dataproc.v1.OrderedJob value) { if (jobsBuilder_ == null) { @@ -2392,14 +2680,17 @@ public Builder addJobs(com.google.cloud.dataproc.v1.OrderedJob value) { return this; } /** + * + * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addJobs( - int index, com.google.cloud.dataproc.v1.OrderedJob value) { + public Builder addJobs(int index, com.google.cloud.dataproc.v1.OrderedJob value) { if (jobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2413,14 +2704,17 @@ public Builder addJobs( return this; } /** + * + * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addJobs( - com.google.cloud.dataproc.v1.OrderedJob.Builder builderForValue) { + public Builder addJobs(com.google.cloud.dataproc.v1.OrderedJob.Builder builderForValue) { if (jobsBuilder_ == null) { ensureJobsIsMutable(); jobs_.add(builderForValue.build()); @@ -2431,11 +2725,15 @@ public Builder addJobs( return this; } /** + * + * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addJobs( int index, com.google.cloud.dataproc.v1.OrderedJob.Builder builderForValue) { @@ -2449,18 +2747,21 @@ public Builder addJobs( return this; } /** + * + * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ 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); @@ -2468,11 +2769,15 @@ public Builder addAllJobs( return this; } /** + * + * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearJobs() { if (jobsBuilder_ == null) { @@ -2485,11 +2790,15 @@ public Builder clearJobs() { return this; } /** + * + * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeJobs(int index) { if (jobsBuilder_ == null) { @@ -2502,39 +2811,50 @@ public Builder removeJobs(int index) { return this; } /** + * + * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.dataproc.v1.OrderedJob.Builder getJobsBuilder( - int index) { + public com.google.cloud.dataproc.v1.OrderedJob.Builder getJobsBuilder(int index) { return getJobsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.dataproc.v1.OrderedJobOrBuilder getJobsOrBuilder( - int index) { + public com.google.cloud.dataproc.v1.OrderedJobOrBuilder getJobsOrBuilder(int index) { if (jobsBuilder_ == null) { - return jobs_.get(index); } else { + return jobs_.get(index); + } else { return jobsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getJobsOrBuilderList() { + public java.util.List + getJobsOrBuilderList() { if (jobsBuilder_ != null) { return jobsBuilder_.getMessageOrBuilderList(); } else { @@ -2542,74 +2862,96 @@ public com.google.cloud.dataproc.v1.OrderedJobOrBuilder getJobsOrBuilder( } } /** + * + * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.dataproc.v1.OrderedJob.Builder addJobsBuilder() { - return getJobsFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.OrderedJob.getDefaultInstance()); + return getJobsFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.OrderedJob.getDefaultInstance()); } /** + * + * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.dataproc.v1.OrderedJob.Builder addJobsBuilder( - int index) { - return getJobsFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.OrderedJob.getDefaultInstance()); + public com.google.cloud.dataproc.v1.OrderedJob.Builder addJobsBuilder(int index) { + return getJobsFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.OrderedJob.getDefaultInstance()); } /** + * + * *
      * Required. The Directed Acyclic Graph of Jobs to submit.
      * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getJobsBuilderList() { + public java.util.List getJobsBuilderList() { return getJobsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.OrderedJob, com.google.cloud.dataproc.v1.OrderedJob.Builder, com.google.cloud.dataproc.v1.OrderedJobOrBuilder> + com.google.cloud.dataproc.v1.OrderedJob, + com.google.cloud.dataproc.v1.OrderedJob.Builder, + com.google.cloud.dataproc.v1.OrderedJobOrBuilder> getJobsFieldBuilder() { if (jobsBuilder_ == null) { - jobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.OrderedJob, com.google.cloud.dataproc.v1.OrderedJob.Builder, com.google.cloud.dataproc.v1.OrderedJobOrBuilder>( - jobs_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + jobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.OrderedJob, + com.google.cloud.dataproc.v1.OrderedJob.Builder, + com.google.cloud.dataproc.v1.OrderedJobOrBuilder>( + jobs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); jobs_ = null; } return jobsBuilder_; } private java.util.List parameters_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureParametersIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - parameters_ = new java.util.ArrayList(parameters_); + parameters_ = + new java.util.ArrayList(parameters_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.TemplateParameter, com.google.cloud.dataproc.v1.TemplateParameter.Builder, com.google.cloud.dataproc.v1.TemplateParameterOrBuilder> parametersBuilder_; + com.google.cloud.dataproc.v1.TemplateParameter, + com.google.cloud.dataproc.v1.TemplateParameter.Builder, + com.google.cloud.dataproc.v1.TemplateParameterOrBuilder> + parametersBuilder_; /** + * + * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getParametersList() { if (parametersBuilder_ == null) { @@ -2619,13 +2961,17 @@ public java.util.List getParamet } } /** + * + * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getParametersCount() { if (parametersBuilder_ == null) { @@ -2635,13 +2981,17 @@ public int getParametersCount() { } } /** + * + * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.TemplateParameter getParameters(int index) { if (parametersBuilder_ == null) { @@ -2651,16 +3001,19 @@ public com.google.cloud.dataproc.v1.TemplateParameter getParameters(int index) { } } /** + * + * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setParameters( - int index, com.google.cloud.dataproc.v1.TemplateParameter value) { + public Builder setParameters(int index, com.google.cloud.dataproc.v1.TemplateParameter value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2674,13 +3027,17 @@ public Builder setParameters( return this; } /** + * + * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setParameters( int index, com.google.cloud.dataproc.v1.TemplateParameter.Builder builderForValue) { @@ -2694,13 +3051,17 @@ public Builder setParameters( return this; } /** + * + * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addParameters(com.google.cloud.dataproc.v1.TemplateParameter value) { if (parametersBuilder_ == null) { @@ -2716,16 +3077,19 @@ public Builder addParameters(com.google.cloud.dataproc.v1.TemplateParameter valu return this; } /** + * + * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addParameters( - int index, com.google.cloud.dataproc.v1.TemplateParameter value) { + public Builder addParameters(int index, com.google.cloud.dataproc.v1.TemplateParameter value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2739,13 +3103,17 @@ public Builder addParameters( return this; } /** + * + * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addParameters( com.google.cloud.dataproc.v1.TemplateParameter.Builder builderForValue) { @@ -2759,13 +3127,17 @@ public Builder addParameters( return this; } /** + * + * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addParameters( int index, com.google.cloud.dataproc.v1.TemplateParameter.Builder builderForValue) { @@ -2779,20 +3151,23 @@ public Builder addParameters( return this; } /** + * + * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllParameters( java.lang.Iterable values) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, parameters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); onChanged(); } else { parametersBuilder_.addAllMessages(values); @@ -2800,13 +3175,17 @@ public Builder addAllParameters( return this; } /** + * + * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearParameters() { if (parametersBuilder_ == null) { @@ -2819,13 +3198,17 @@ public Builder clearParameters() { return this; } /** + * + * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeParameters(int index) { if (parametersBuilder_ == null) { @@ -2838,45 +3221,57 @@ public Builder removeParameters(int index) { return this; } /** + * + * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.TemplateParameter.Builder getParametersBuilder( - int index) { + public com.google.cloud.dataproc.v1.TemplateParameter.Builder getParametersBuilder(int index) { return getParametersFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBuilder( int index) { if (parametersBuilder_ == null) { - return parameters_.get(index); } else { + return parameters_.get(index); + } else { return parametersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getParametersOrBuilderList() { + public java.util.List + getParametersOrBuilderList() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilderList(); } else { @@ -2884,55 +3279,69 @@ public com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBu } } /** + * + * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.TemplateParameter.Builder addParametersBuilder() { - return getParametersFieldBuilder().addBuilder( - com.google.cloud.dataproc.v1.TemplateParameter.getDefaultInstance()); + return getParametersFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.TemplateParameter.getDefaultInstance()); } /** + * + * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.TemplateParameter.Builder addParametersBuilder( - int index) { - return getParametersFieldBuilder().addBuilder( - index, com.google.cloud.dataproc.v1.TemplateParameter.getDefaultInstance()); + public com.google.cloud.dataproc.v1.TemplateParameter.Builder addParametersBuilder(int index) { + return getParametersFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.TemplateParameter.getDefaultInstance()); } /** + * + * *
      * Optional. Template parameters whose values are substituted into the
      * template. Values for parameters must be provided when the template is
      * instantiated.
      * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getParametersBuilderList() { + public java.util.List + getParametersBuilderList() { return getParametersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.TemplateParameter, com.google.cloud.dataproc.v1.TemplateParameter.Builder, com.google.cloud.dataproc.v1.TemplateParameterOrBuilder> + com.google.cloud.dataproc.v1.TemplateParameter, + com.google.cloud.dataproc.v1.TemplateParameter.Builder, + com.google.cloud.dataproc.v1.TemplateParameterOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { - parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.TemplateParameter, com.google.cloud.dataproc.v1.TemplateParameter.Builder, com.google.cloud.dataproc.v1.TemplateParameterOrBuilder>( - parameters_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + parametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.TemplateParameter, + com.google.cloud.dataproc.v1.TemplateParameter.Builder, + com.google.cloud.dataproc.v1.TemplateParameterOrBuilder>( + parameters_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; @@ -2940,8 +3349,13 @@ public com.google.cloud.dataproc.v1.TemplateParameter.Builder addParametersBuild private com.google.protobuf.Duration dagTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> dagTimeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + dagTimeoutBuilder_; /** + * + * *
      * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
@@ -2955,13 +3369,17 @@ public com.google.cloud.dataproc.v1.TemplateParameter.Builder addParametersBuild
      * the cluster is deleted.
      * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the dagTimeout field is set. */ public boolean hasDagTimeout() { return dagTimeoutBuilder_ != null || dagTimeout_ != null; } /** + * + * *
      * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
@@ -2975,17 +3393,23 @@ public boolean hasDagTimeout() {
      * the cluster is deleted.
      * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The dagTimeout. */ public com.google.protobuf.Duration getDagTimeout() { if (dagTimeoutBuilder_ == null) { - return dagTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; + return dagTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dagTimeout_; } else { return dagTimeoutBuilder_.getMessage(); } } /** + * + * *
      * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
@@ -2999,7 +3423,8 @@ public com.google.protobuf.Duration getDagTimeout() {
      * the cluster is deleted.
      * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDagTimeout(com.google.protobuf.Duration value) { if (dagTimeoutBuilder_ == null) { @@ -3015,6 +3440,8 @@ public Builder setDagTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
@@ -3028,10 +3455,10 @@ public Builder setDagTimeout(com.google.protobuf.Duration value) {
      * the cluster is deleted.
      * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDagTimeout( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDagTimeout(com.google.protobuf.Duration.Builder builderForValue) { if (dagTimeoutBuilder_ == null) { dagTimeout_ = builderForValue.build(); onChanged(); @@ -3042,6 +3469,8 @@ public Builder setDagTimeout( return this; } /** + * + * *
      * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
@@ -3055,13 +3484,14 @@ public Builder setDagTimeout(
      * the cluster is deleted.
      * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeDagTimeout(com.google.protobuf.Duration value) { if (dagTimeoutBuilder_ == null) { if (dagTimeout_ != null) { dagTimeout_ = - com.google.protobuf.Duration.newBuilder(dagTimeout_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(dagTimeout_).mergeFrom(value).buildPartial(); } else { dagTimeout_ = value; } @@ -3073,6 +3503,8 @@ public Builder mergeDagTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
@@ -3086,7 +3518,8 @@ public Builder mergeDagTimeout(com.google.protobuf.Duration value) {
      * the cluster is deleted.
      * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearDagTimeout() { if (dagTimeoutBuilder_ == null) { @@ -3100,6 +3533,8 @@ public Builder clearDagTimeout() { return this; } /** + * + * *
      * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
@@ -3113,14 +3548,17 @@ public Builder clearDagTimeout() {
      * the cluster is deleted.
      * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getDagTimeoutBuilder() { - + onChanged(); return getDagTimeoutFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
@@ -3134,17 +3572,21 @@ public com.google.protobuf.Duration.Builder getDagTimeoutBuilder() {
      * the cluster is deleted.
      * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { if (dagTimeoutBuilder_ != null) { return dagTimeoutBuilder_.getMessageOrBuilder(); } else { - return dagTimeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; + return dagTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dagTimeout_; } } /** + * + * *
      * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
      * [JSON representation of
@@ -3158,24 +3600,28 @@ public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() {
      * the cluster is deleted.
      * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getDagTimeoutFieldBuilder() { if (dagTimeoutBuilder_ == null) { - dagTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDagTimeout(), - getParentForChildren(), - isClean()); + dagTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDagTimeout(), getParentForChildren(), isClean()); dagTimeout_ = null; } return dagTimeoutBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3185,12 +3631,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.WorkflowTemplate) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.WorkflowTemplate) private static final com.google.cloud.dataproc.v1.WorkflowTemplate DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.WorkflowTemplate(); } @@ -3199,27 +3645,27 @@ public static com.google.cloud.dataproc.v1.WorkflowTemplate getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3234,6 +3680,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.WorkflowTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java similarity index 76% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java index a64d4f715c35..5e314eb2a9c7 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java @@ -1,25 +1,44 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; -public interface WorkflowTemplateOrBuilder extends +public interface WorkflowTemplateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.WorkflowTemplate) com.google.protobuf.MessageOrBuilder { /** * string id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The id. */ java.lang.String getId(); /** * string id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * Output only. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -32,10 +51,13 @@ public interface WorkflowTemplateOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the workflow template, as described
    * in https://cloud.google.com/apis/design/resource_names.
@@ -48,12 +70,14 @@ public interface WorkflowTemplateOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. Used to perform a consistent read-modify-write.
    * This field should be left blank for a `CreateWorkflowTemplate` request. It
@@ -66,65 +90,90 @@ public interface WorkflowTemplateOrBuilder extends
    * 
* * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ int getVersion(); /** + * + * *
    * Output only. The time template was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time template was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time template was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time template was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time template was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time template was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Optional. The labels to associate with this template. These labels
    * will be propagated to all jobs and clusters created by the workflow
@@ -141,6 +190,8 @@ public interface WorkflowTemplateOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this template. These labels
    * will be propagated to all jobs and clusters created by the workflow
@@ -155,15 +206,13 @@ public interface WorkflowTemplateOrBuilder extends
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  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();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this template. These labels
    * will be propagated to all jobs and clusters created by the workflow
@@ -178,9 +227,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this template. These labels
    * will be propagated to all jobs and clusters created by the workflow
@@ -197,11 +247,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this template. These labels
    * will be propagated to all jobs and clusters created by the workflow
@@ -216,136 +268,185 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Required. WorkflowTemplate scheduling information.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the placement field is set. */ boolean hasPlacement(); /** + * + * *
    * Required. WorkflowTemplate scheduling information.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The placement. */ com.google.cloud.dataproc.v1.WorkflowTemplatePlacement getPlacement(); /** + * + * *
    * Required. WorkflowTemplate scheduling information.
    * 
* - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder getPlacementOrBuilder(); /** + * + * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getJobsList(); + java.util.List getJobsList(); /** + * + * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.dataproc.v1.OrderedJob getJobs(int index); /** + * + * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ int getJobsCount(); /** + * + * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getJobsOrBuilderList(); + java.util.List getJobsOrBuilderList(); /** + * + * *
    * Required. The Directed Acyclic Graph of Jobs to submit.
    * 
* - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.dataproc.v1.OrderedJobOrBuilder getJobsOrBuilder( - int index); + com.google.cloud.dataproc.v1.OrderedJobOrBuilder getJobsOrBuilder(int index); /** + * + * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getParametersList(); + java.util.List getParametersList(); /** + * + * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.TemplateParameter getParameters(int index); /** + * + * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getParametersCount(); /** + * + * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getParametersOrBuilderList(); /** + * + * *
    * Optional. Template parameters whose values are substituted into the
    * template. Values for parameters must be provided when the template is
    * instantiated.
    * 
* - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBuilder( - int index); + com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBuilder(int index); /** + * + * *
    * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
@@ -359,11 +460,15 @@ com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBuilder(
    * the cluster is deleted.
    * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the dagTimeout field is set. */ boolean hasDagTimeout(); /** + * + * *
    * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
@@ -377,11 +482,15 @@ com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBuilder(
    * the cluster is deleted.
    * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The dagTimeout. */ com.google.protobuf.Duration getDagTimeout(); /** + * + * *
    * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
    * [JSON representation of
@@ -395,7 +504,8 @@ com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBuilder(
    * the cluster is deleted.
    * 
* - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java similarity index 72% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java index 75755e3cc42b..eeb2c01db319 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/workflow_templates.proto package com.google.cloud.dataproc.v1; /** + * + * *
  * Specifies workflow execution target.
  * Either `managed_cluster` or `cluster_selector` is required.
@@ -11,52 +28,56 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.WorkflowTemplatePlacement}
  */
-public final class WorkflowTemplatePlacement extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class WorkflowTemplatePlacement extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.WorkflowTemplatePlacement)
     WorkflowTemplatePlacementOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use WorkflowTemplatePlacement.newBuilder() to construct.
   private WorkflowTemplatePlacement(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private WorkflowTemplatePlacement() {
-  }
+
+  private WorkflowTemplatePlacement() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new WorkflowTemplatePlacement();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
+        .internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
+        .internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.class, com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder.class);
+            com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.class,
+            com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder.class);
   }
 
   private int placementCase_ = 0;
   private java.lang.Object placement_;
+
   public enum PlacementCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     MANAGED_CLUSTER(1),
     CLUSTER_SELECTOR(2),
     PLACEMENT_NOT_SET(0);
     private final int value;
+
     private PlacementCase(int value) {
       this.value = value;
     }
@@ -72,30 +93,36 @@ public static PlacementCase valueOf(int value) {
 
     public static PlacementCase forNumber(int value) {
       switch (value) {
-        case 1: return MANAGED_CLUSTER;
-        case 2: return CLUSTER_SELECTOR;
-        case 0: return PLACEMENT_NOT_SET;
-        default: return null;
+        case 1:
+          return MANAGED_CLUSTER;
+        case 2:
+          return CLUSTER_SELECTOR;
+        case 0:
+          return PLACEMENT_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public PlacementCase
-  getPlacementCase() {
-    return PlacementCase.forNumber(
-        placementCase_);
+  public PlacementCase getPlacementCase() {
+    return PlacementCase.forNumber(placementCase_);
   }
 
   public static final int MANAGED_CLUSTER_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * A cluster that is managed by the workflow.
    * 
* * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; + * * @return Whether the managedCluster field is set. */ @java.lang.Override @@ -103,21 +130,26 @@ public boolean hasManagedCluster() { return placementCase_ == 1; } /** + * + * *
    * A cluster that is managed by the workflow.
    * 
* * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; + * * @return The managedCluster. */ @java.lang.Override public com.google.cloud.dataproc.v1.ManagedCluster getManagedCluster() { if (placementCase_ == 1) { - return (com.google.cloud.dataproc.v1.ManagedCluster) placement_; + return (com.google.cloud.dataproc.v1.ManagedCluster) placement_; } return com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance(); } /** + * + * *
    * A cluster that is managed by the workflow.
    * 
@@ -127,13 +159,15 @@ public com.google.cloud.dataproc.v1.ManagedCluster getManagedCluster() { @java.lang.Override public com.google.cloud.dataproc.v1.ManagedClusterOrBuilder getManagedClusterOrBuilder() { if (placementCase_ == 1) { - return (com.google.cloud.dataproc.v1.ManagedCluster) placement_; + return (com.google.cloud.dataproc.v1.ManagedCluster) placement_; } return com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance(); } public static final int CLUSTER_SELECTOR_FIELD_NUMBER = 2; /** + * + * *
    * Optional. A selector that chooses target cluster for jobs based
    * on metadata.
@@ -141,6 +175,7 @@ public com.google.cloud.dataproc.v1.ManagedClusterOrBuilder getManagedClusterOrB
    * 
* * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; + * * @return Whether the clusterSelector field is set. */ @java.lang.Override @@ -148,6 +183,8 @@ public boolean hasClusterSelector() { return placementCase_ == 2; } /** + * + * *
    * Optional. A selector that chooses target cluster for jobs based
    * on metadata.
@@ -155,16 +192,19 @@ public boolean hasClusterSelector() {
    * 
* * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; + * * @return The clusterSelector. */ @java.lang.Override public com.google.cloud.dataproc.v1.ClusterSelector getClusterSelector() { if (placementCase_ == 2) { - return (com.google.cloud.dataproc.v1.ClusterSelector) placement_; + return (com.google.cloud.dataproc.v1.ClusterSelector) placement_; } return com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance(); } /** + * + * *
    * Optional. A selector that chooses target cluster for jobs based
    * on metadata.
@@ -176,12 +216,13 @@ public com.google.cloud.dataproc.v1.ClusterSelector getClusterSelector() {
   @java.lang.Override
   public com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder getClusterSelectorOrBuilder() {
     if (placementCase_ == 2) {
-       return (com.google.cloud.dataproc.v1.ClusterSelector) placement_;
+      return (com.google.cloud.dataproc.v1.ClusterSelector) placement_;
     }
     return com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -193,8 +234,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (placementCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.dataproc.v1.ManagedCluster) placement_);
     }
@@ -211,12 +251,14 @@ public int getSerializedSize() {
 
     size = 0;
     if (placementCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.dataproc.v1.ManagedCluster) placement_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.dataproc.v1.ManagedCluster) placement_);
     }
     if (placementCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.cloud.dataproc.v1.ClusterSelector) placement_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.cloud.dataproc.v1.ClusterSelector) placement_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -226,22 +268,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.dataproc.v1.WorkflowTemplatePlacement)) {
       return super.equals(obj);
     }
-    com.google.cloud.dataproc.v1.WorkflowTemplatePlacement other = (com.google.cloud.dataproc.v1.WorkflowTemplatePlacement) obj;
+    com.google.cloud.dataproc.v1.WorkflowTemplatePlacement other =
+        (com.google.cloud.dataproc.v1.WorkflowTemplatePlacement) obj;
 
     if (!getPlacementCase().equals(other.getPlacementCase())) return false;
     switch (placementCase_) {
       case 1:
-        if (!getManagedCluster()
-            .equals(other.getManagedCluster())) return false;
+        if (!getManagedCluster().equals(other.getManagedCluster())) return false;
         break;
       case 2:
-        if (!getClusterSelector()
-            .equals(other.getClusterSelector())) return false;
+        if (!getClusterSelector().equals(other.getClusterSelector())) return false;
         break;
       case 0:
       default:
@@ -275,96 +316,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement 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.dataproc.v1.WorkflowTemplatePlacement parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.dataproc.v1.WorkflowTemplatePlacement prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.dataproc.v1.WorkflowTemplatePlacement prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Specifies workflow execution target.
    * Either `managed_cluster` or `cluster_selector` is required.
@@ -372,33 +421,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.WorkflowTemplatePlacement}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.WorkflowTemplatePlacement)
       com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
+          .internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
+          .internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.class, com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder.class);
+              com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.class,
+              com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -414,9 +462,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.WorkflowTemplatesProto
+          .internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor;
     }
 
     @java.lang.Override
@@ -435,7 +483,8 @@ public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement buildPartial() {
-      com.google.cloud.dataproc.v1.WorkflowTemplatePlacement result = new com.google.cloud.dataproc.v1.WorkflowTemplatePlacement(this);
+      com.google.cloud.dataproc.v1.WorkflowTemplatePlacement result =
+          new com.google.cloud.dataproc.v1.WorkflowTemplatePlacement(this);
       if (placementCase_ == 1) {
         if (managedClusterBuilder_ == null) {
           result.placement_ = placement_;
@@ -459,38 +508,39 @@ public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.WorkflowTemplatePlacement) {
-        return mergeFrom((com.google.cloud.dataproc.v1.WorkflowTemplatePlacement)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.WorkflowTemplatePlacement) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -498,19 +548,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowTemplatePlacement other) {
-      if (other == com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance()) return this;
+      if (other == com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance())
+        return this;
       switch (other.getPlacementCase()) {
-        case MANAGED_CLUSTER: {
-          mergeManagedCluster(other.getManagedCluster());
-          break;
-        }
-        case CLUSTER_SELECTOR: {
-          mergeClusterSelector(other.getClusterSelector());
-          break;
-        }
-        case PLACEMENT_NOT_SET: {
-          break;
-        }
+        case MANAGED_CLUSTER:
+          {
+            mergeManagedCluster(other.getManagedCluster());
+            break;
+          }
+        case CLUSTER_SELECTOR:
+          {
+            mergeClusterSelector(other.getClusterSelector());
+            break;
+          }
+        case PLACEMENT_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -538,26 +592,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getManagedClusterFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              placementCase_ = 1;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getClusterSelectorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              placementCase_ = 2;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getManagedClusterFieldBuilder().getBuilder(), extensionRegistry);
+                placementCase_ = 1;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getClusterSelectorFieldBuilder().getBuilder(), extensionRegistry);
+                placementCase_ = 2;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -567,12 +620,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int placementCase_ = 0;
     private java.lang.Object placement_;
-    public PlacementCase
-        getPlacementCase() {
-      return PlacementCase.forNumber(
-          placementCase_);
+
+    public PlacementCase getPlacementCase() {
+      return PlacementCase.forNumber(placementCase_);
     }
 
     public Builder clearPlacement() {
@@ -582,15 +635,20 @@ public Builder clearPlacement() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.dataproc.v1.ManagedCluster, com.google.cloud.dataproc.v1.ManagedCluster.Builder, com.google.cloud.dataproc.v1.ManagedClusterOrBuilder> managedClusterBuilder_;
+            com.google.cloud.dataproc.v1.ManagedCluster,
+            com.google.cloud.dataproc.v1.ManagedCluster.Builder,
+            com.google.cloud.dataproc.v1.ManagedClusterOrBuilder>
+        managedClusterBuilder_;
     /**
+     *
+     *
      * 
      * A cluster that is managed by the workflow.
      * 
* * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; + * * @return Whether the managedCluster field is set. */ @java.lang.Override @@ -598,11 +656,14 @@ public boolean hasManagedCluster() { return placementCase_ == 1; } /** + * + * *
      * A cluster that is managed by the workflow.
      * 
* * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; + * * @return The managedCluster. */ @java.lang.Override @@ -620,6 +681,8 @@ public com.google.cloud.dataproc.v1.ManagedCluster getManagedCluster() { } } /** + * + * *
      * A cluster that is managed by the workflow.
      * 
@@ -640,6 +703,8 @@ public Builder setManagedCluster(com.google.cloud.dataproc.v1.ManagedCluster val return this; } /** + * + * *
      * A cluster that is managed by the workflow.
      * 
@@ -658,6 +723,8 @@ public Builder setManagedCluster( return this; } /** + * + * *
      * A cluster that is managed by the workflow.
      * 
@@ -666,10 +733,13 @@ public Builder setManagedCluster( */ public Builder mergeManagedCluster(com.google.cloud.dataproc.v1.ManagedCluster value) { if (managedClusterBuilder_ == null) { - if (placementCase_ == 1 && - placement_ != com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance()) { - placement_ = com.google.cloud.dataproc.v1.ManagedCluster.newBuilder((com.google.cloud.dataproc.v1.ManagedCluster) placement_) - .mergeFrom(value).buildPartial(); + if (placementCase_ == 1 + && placement_ != com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance()) { + placement_ = + com.google.cloud.dataproc.v1.ManagedCluster.newBuilder( + (com.google.cloud.dataproc.v1.ManagedCluster) placement_) + .mergeFrom(value) + .buildPartial(); } else { placement_ = value; } @@ -685,6 +755,8 @@ public Builder mergeManagedCluster(com.google.cloud.dataproc.v1.ManagedCluster v return this; } /** + * + * *
      * A cluster that is managed by the workflow.
      * 
@@ -708,6 +780,8 @@ public Builder clearManagedCluster() { return this; } /** + * + * *
      * A cluster that is managed by the workflow.
      * 
@@ -718,6 +792,8 @@ public com.google.cloud.dataproc.v1.ManagedCluster.Builder getManagedClusterBuil return getManagedClusterFieldBuilder().getBuilder(); } /** + * + * *
      * A cluster that is managed by the workflow.
      * 
@@ -736,6 +812,8 @@ public com.google.cloud.dataproc.v1.ManagedClusterOrBuilder getManagedClusterOrB } } /** + * + * *
      * A cluster that is managed by the workflow.
      * 
@@ -743,27 +821,38 @@ public com.google.cloud.dataproc.v1.ManagedClusterOrBuilder getManagedClusterOrB * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ManagedCluster, com.google.cloud.dataproc.v1.ManagedCluster.Builder, com.google.cloud.dataproc.v1.ManagedClusterOrBuilder> + com.google.cloud.dataproc.v1.ManagedCluster, + com.google.cloud.dataproc.v1.ManagedCluster.Builder, + com.google.cloud.dataproc.v1.ManagedClusterOrBuilder> getManagedClusterFieldBuilder() { if (managedClusterBuilder_ == null) { if (!(placementCase_ == 1)) { placement_ = com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance(); } - managedClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ManagedCluster, com.google.cloud.dataproc.v1.ManagedCluster.Builder, com.google.cloud.dataproc.v1.ManagedClusterOrBuilder>( + managedClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ManagedCluster, + com.google.cloud.dataproc.v1.ManagedCluster.Builder, + com.google.cloud.dataproc.v1.ManagedClusterOrBuilder>( (com.google.cloud.dataproc.v1.ManagedCluster) placement_, getParentForChildren(), isClean()); placement_ = null; } placementCase_ = 1; - onChanged();; + onChanged(); + ; return managedClusterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterSelector, com.google.cloud.dataproc.v1.ClusterSelector.Builder, com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder> clusterSelectorBuilder_; + com.google.cloud.dataproc.v1.ClusterSelector, + com.google.cloud.dataproc.v1.ClusterSelector.Builder, + com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder> + clusterSelectorBuilder_; /** + * + * *
      * Optional. A selector that chooses target cluster for jobs based
      * on metadata.
@@ -771,6 +860,7 @@ public com.google.cloud.dataproc.v1.ManagedClusterOrBuilder getManagedClusterOrB
      * 
* * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; + * * @return Whether the clusterSelector field is set. */ @java.lang.Override @@ -778,6 +868,8 @@ public boolean hasClusterSelector() { return placementCase_ == 2; } /** + * + * *
      * Optional. A selector that chooses target cluster for jobs based
      * on metadata.
@@ -785,6 +877,7 @@ public boolean hasClusterSelector() {
      * 
* * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; + * * @return The clusterSelector. */ @java.lang.Override @@ -802,6 +895,8 @@ public com.google.cloud.dataproc.v1.ClusterSelector getClusterSelector() { } } /** + * + * *
      * Optional. A selector that chooses target cluster for jobs based
      * on metadata.
@@ -824,6 +919,8 @@ public Builder setClusterSelector(com.google.cloud.dataproc.v1.ClusterSelector v
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. A selector that chooses target cluster for jobs based
      * on metadata.
@@ -844,6 +941,8 @@ public Builder setClusterSelector(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. A selector that chooses target cluster for jobs based
      * on metadata.
@@ -854,10 +953,13 @@ public Builder setClusterSelector(
      */
     public Builder mergeClusterSelector(com.google.cloud.dataproc.v1.ClusterSelector value) {
       if (clusterSelectorBuilder_ == null) {
-        if (placementCase_ == 2 &&
-            placement_ != com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance()) {
-          placement_ = com.google.cloud.dataproc.v1.ClusterSelector.newBuilder((com.google.cloud.dataproc.v1.ClusterSelector) placement_)
-              .mergeFrom(value).buildPartial();
+        if (placementCase_ == 2
+            && placement_ != com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance()) {
+          placement_ =
+              com.google.cloud.dataproc.v1.ClusterSelector.newBuilder(
+                      (com.google.cloud.dataproc.v1.ClusterSelector) placement_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           placement_ = value;
         }
@@ -873,6 +975,8 @@ public Builder mergeClusterSelector(com.google.cloud.dataproc.v1.ClusterSelector
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. A selector that chooses target cluster for jobs based
      * on metadata.
@@ -898,6 +1002,8 @@ public Builder clearClusterSelector() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. A selector that chooses target cluster for jobs based
      * on metadata.
@@ -910,6 +1016,8 @@ public com.google.cloud.dataproc.v1.ClusterSelector.Builder getClusterSelectorBu
       return getClusterSelectorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Optional. A selector that chooses target cluster for jobs based
      * on metadata.
@@ -930,6 +1038,8 @@ public com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder getClusterSelectorO
       }
     }
     /**
+     *
+     *
      * 
      * Optional. A selector that chooses target cluster for jobs based
      * on metadata.
@@ -939,26 +1049,32 @@ public com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder getClusterSelectorO
      * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.dataproc.v1.ClusterSelector, com.google.cloud.dataproc.v1.ClusterSelector.Builder, com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder> 
+            com.google.cloud.dataproc.v1.ClusterSelector,
+            com.google.cloud.dataproc.v1.ClusterSelector.Builder,
+            com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder>
         getClusterSelectorFieldBuilder() {
       if (clusterSelectorBuilder_ == null) {
         if (!(placementCase_ == 2)) {
           placement_ = com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance();
         }
-        clusterSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dataproc.v1.ClusterSelector, com.google.cloud.dataproc.v1.ClusterSelector.Builder, com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder>(
+        clusterSelectorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.dataproc.v1.ClusterSelector,
+                com.google.cloud.dataproc.v1.ClusterSelector.Builder,
+                com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder>(
                 (com.google.cloud.dataproc.v1.ClusterSelector) placement_,
                 getParentForChildren(),
                 isClean());
         placement_ = null;
       }
       placementCase_ = 2;
-      onChanged();;
+      onChanged();
+      ;
       return clusterSelectorBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -968,12 +1084,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.WorkflowTemplatePlacement)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.WorkflowTemplatePlacement)
   private static final com.google.cloud.dataproc.v1.WorkflowTemplatePlacement DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.WorkflowTemplatePlacement();
   }
@@ -982,27 +1098,27 @@ public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public WorkflowTemplatePlacement parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public WorkflowTemplatePlacement parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1017,6 +1133,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.java
similarity index 75%
rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.java
rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.java
index 9accf3aac590..5f6a313a786a 100644
--- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.java
+++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.java
@@ -1,31 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/dataproc/v1/workflow_templates.proto
 
 package com.google.cloud.dataproc.v1;
 
-public interface WorkflowTemplatePlacementOrBuilder extends
+public interface WorkflowTemplatePlacementOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.WorkflowTemplatePlacement)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A cluster that is managed by the workflow.
    * 
* * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; + * * @return Whether the managedCluster field is set. */ boolean hasManagedCluster(); /** + * + * *
    * A cluster that is managed by the workflow.
    * 
* * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; + * * @return The managedCluster. */ com.google.cloud.dataproc.v1.ManagedCluster getManagedCluster(); /** + * + * *
    * A cluster that is managed by the workflow.
    * 
@@ -35,6 +59,8 @@ public interface WorkflowTemplatePlacementOrBuilder extends com.google.cloud.dataproc.v1.ManagedClusterOrBuilder getManagedClusterOrBuilder(); /** + * + * *
    * Optional. A selector that chooses target cluster for jobs based
    * on metadata.
@@ -42,10 +68,13 @@ public interface WorkflowTemplatePlacementOrBuilder extends
    * 
* * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; + * * @return Whether the clusterSelector field is set. */ boolean hasClusterSelector(); /** + * + * *
    * Optional. A selector that chooses target cluster for jobs based
    * on metadata.
@@ -53,10 +82,13 @@ public interface WorkflowTemplatePlacementOrBuilder extends
    * 
* * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; + * * @return The clusterSelector. */ com.google.cloud.dataproc.v1.ClusterSelector getClusterSelector(); /** + * + * *
    * Optional. A selector that chooses target cluster for jobs based
    * on metadata.
diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java
new file mode 100644
index 000000000000..b5036aaf926b
--- /dev/null
+++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java
@@ -0,0 +1,640 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/dataproc/v1/workflow_templates.proto
+
+package com.google.cloud.dataproc.v1;
+
+public final class WorkflowTemplatesProto {
+  private WorkflowTemplatesProto() {}
+
+  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_dataproc_v1_WorkflowTemplate_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_WorkflowTemplate_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_WorkflowTemplate_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_WorkflowTemplate_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ManagedCluster_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_ManagedCluster_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ManagedCluster_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ClusterSelector_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_ClusterSelector_ClusterLabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ClusterSelector_ClusterLabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_OrderedJob_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_OrderedJob_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_OrderedJob_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_OrderedJob_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_TemplateParameter_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ParameterValidation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_RegexValidation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ValueValidation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_WorkflowMetadata_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_WorkflowMetadata_ParametersEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_WorkflowMetadata_ParametersEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ClusterOperation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_WorkflowGraph_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_WorkflowNode_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_ParametersEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_ParametersEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n1google/cloud/dataproc/v1/workflow_temp"
+          + "lates.proto\022\030google.cloud.dataproc.v1\032\034g"
+          + "oogle/api/annotations.proto\032\027google/api/"
+          + "client.proto\032\037google/api/field_behavior."
+          + "proto\032\031google/api/resource.proto\032\'google"
+          + "/cloud/dataproc/v1/clusters.proto\032#googl"
+          + "e/cloud/dataproc/v1/jobs.proto\032#google/l"
+          + "ongrunning/operations.proto\032\036google/prot"
+          + "obuf/duration.proto\032\033google/protobuf/emp"
+          + "ty.proto\032\037google/protobuf/timestamp.prot"
+          + "o\"\202\006\n\020WorkflowTemplate\022\017\n\002id\030\002 \001(\tB\003\340A\002\022"
+          + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007version\030\003 \001(\005B\003\340A\001"
+          + "\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf."
+          + "TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.go"
+          + "ogle.protobuf.TimestampB\003\340A\003\022K\n\006labels\030\006"
+          + " \003(\01326.google.cloud.dataproc.v1.Workflow"
+          + "Template.LabelsEntryB\003\340A\001\022K\n\tplacement\030\007"
+          + " \001(\01323.google.cloud.dataproc.v1.Workflow"
+          + "TemplatePlacementB\003\340A\002\0227\n\004jobs\030\010 \003(\0132$.g"
+          + "oogle.cloud.dataproc.v1.OrderedJobB\003\340A\002\022"
+          + "D\n\nparameters\030\t \003(\0132+.google.cloud.datap"
+          + "roc.v1.TemplateParameterB\003\340A\001\0223\n\013dag_tim"
+          + "eout\030\n \001(\0132\031.google.protobuf.DurationB\003\340"
+          + "A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030"
+          + "\002 \001(\t:\0028\001:\312\001\352A\306\001\n(dataproc.googleapis.co"
+          + "m/WorkflowTemplate\022Iprojects/{project}/r"
+          + "egions/{region}/workflowTemplates/{workf"
+          + "low_template}\022Mprojects/{project}/locati"
+          + "ons/{location}/workflowTemplates/{workfl"
+          + "ow_template} \001\"\264\001\n\031WorkflowTemplatePlace"
+          + "ment\022C\n\017managed_cluster\030\001 \001(\0132(.google.c"
+          + "loud.dataproc.v1.ManagedClusterH\000\022E\n\020clu"
+          + "ster_selector\030\002 \001(\0132).google.cloud.datap"
+          + "roc.v1.ClusterSelectorH\000B\013\n\tplacement\"\343\001"
+          + "\n\016ManagedCluster\022\031\n\014cluster_name\030\002 \001(\tB\003"
+          + "\340A\002\022<\n\006config\030\003 \001(\0132\'.google.cloud.datap"
+          + "roc.v1.ClusterConfigB\003\340A\002\022I\n\006labels\030\004 \003("
+          + "\01324.google.cloud.dataproc.v1.ManagedClus"
+          + "ter.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003k"
+          + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\265\001\n\017ClusterS"
+          + "elector\022\021\n\004zone\030\001 \001(\tB\003\340A\001\022Y\n\016cluster_la"
+          + "bels\030\002 \003(\0132<.google.cloud.dataproc.v1.Cl"
+          + "usterSelector.ClusterLabelsEntryB\003\340A\002\0324\n"
+          + "\022ClusterLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu"
+          + "e\030\002 \001(\t:\0028\001\"\206\006\n\nOrderedJob\022\024\n\007step_id\030\001 "
+          + "\001(\tB\003\340A\002\022>\n\nhadoop_job\030\002 \001(\0132#.google.cl"
+          + "oud.dataproc.v1.HadoopJobB\003\340A\001H\000\022<\n\tspar"
+          + "k_job\030\003 \001(\0132\".google.cloud.dataproc.v1.S"
+          + "parkJobB\003\340A\001H\000\022@\n\013pyspark_job\030\004 \001(\0132$.go"
+          + "ogle.cloud.dataproc.v1.PySparkJobB\003\340A\001H\000"
+          + "\022:\n\010hive_job\030\005 \001(\0132!.google.cloud.datapr"
+          + "oc.v1.HiveJobB\003\340A\001H\000\0228\n\007pig_job\030\006 \001(\0132 ."
+          + "google.cloud.dataproc.v1.PigJobB\003\340A\001H\000\022?"
+          + "\n\013spark_r_job\030\013 \001(\0132#.google.cloud.datap"
+          + "roc.v1.SparkRJobB\003\340A\001H\000\022C\n\rspark_sql_job"
+          + "\030\007 \001(\0132%.google.cloud.dataproc.v1.SparkS"
+          + "qlJobB\003\340A\001H\000\022>\n\npresto_job\030\014 \001(\0132#.googl"
+          + "e.cloud.dataproc.v1.PrestoJobB\003\340A\001H\000\022E\n\006"
+          + "labels\030\010 \003(\01320.google.cloud.dataproc.v1."
+          + "OrderedJob.LabelsEntryB\003\340A\001\022@\n\nschedulin"
+          + "g\030\t \001(\0132\'.google.cloud.dataproc.v1.JobSc"
+          + "hedulingB\003\340A\001\022\"\n\025prerequisite_step_ids\030\n"
+          + " \003(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
+          + "\005value\030\002 \001(\t:\0028\001B\n\n\010job_type\"\235\001\n\021Templat"
+          + "eParameter\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\006fields\030"
+          + "\002 \003(\tB\003\340A\002\022\030\n\013description\030\003 \001(\tB\003\340A\001\022F\n\n"
+          + "validation\030\004 \001(\0132-.google.cloud.dataproc"
+          + ".v1.ParameterValidationB\003\340A\001\"\241\001\n\023Paramet"
+          + "erValidation\022:\n\005regex\030\001 \001(\0132).google.clo"
+          + "ud.dataproc.v1.RegexValidationH\000\022;\n\006valu"
+          + "es\030\002 \001(\0132).google.cloud.dataproc.v1.Valu"
+          + "eValidationH\000B\021\n\017validation_type\"\'\n\017Rege"
+          + "xValidation\022\024\n\007regexes\030\001 \003(\tB\003\340A\002\"&\n\017Val"
+          + "ueValidation\022\023\n\006values\030\001 \003(\tB\003\340A\002\"\324\006\n\020Wo"
+          + "rkflowMetadata\022\025\n\010template\030\001 \001(\tB\003\340A\003\022\024\n"
+          + "\007version\030\002 \001(\005B\003\340A\003\022G\n\016create_cluster\030\003 "
+          + "\001(\0132*.google.cloud.dataproc.v1.ClusterOp"
+          + "erationB\003\340A\003\022;\n\005graph\030\004 \001(\0132\'.google.clo"
+          + "ud.dataproc.v1.WorkflowGraphB\003\340A\003\022G\n\016del"
+          + "ete_cluster\030\005 \001(\0132*.google.cloud.datapro"
+          + "c.v1.ClusterOperationB\003\340A\003\022D\n\005state\030\006 \001("
+          + "\01620.google.cloud.dataproc.v1.WorkflowMet"
+          + "adata.StateB\003\340A\003\022\031\n\014cluster_name\030\007 \001(\tB\003"
+          + "\340A\003\022N\n\nparameters\030\010 \003(\0132:.google.cloud.d"
+          + "ataproc.v1.WorkflowMetadata.ParametersEn"
+          + "try\0223\n\nstart_time\030\t \001(\0132\032.google.protobu"
+          + "f.TimestampB\003\340A\003\0221\n\010end_time\030\n \001(\0132\032.goo"
+          + "gle.protobuf.TimestampB\003\340A\003\022\031\n\014cluster_u"
+          + "uid\030\013 \001(\tB\003\340A\003\0223\n\013dag_timeout\030\014 \001(\0132\031.go"
+          + "ogle.protobuf.DurationB\003\340A\003\0227\n\016dag_start"
+          + "_time\030\r \001(\0132\032.google.protobuf.TimestampB"
+          + "\003\340A\003\0225\n\014dag_end_time\030\016 \001(\0132\032.google.prot"
+          + "obuf.TimestampB\003\340A\003\0321\n\017ParametersEntry\022\013"
+          + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\005State\022"
+          + "\013\n\007UNKNOWN\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010"
+          + "\n\004DONE\020\003\"T\n\020ClusterOperation\022\031\n\014operatio"
+          + "n_id\030\001 \001(\tB\003\340A\003\022\022\n\005error\030\002 \001(\tB\003\340A\003\022\021\n\004d"
+          + "one\030\003 \001(\010B\003\340A\003\"K\n\rWorkflowGraph\022:\n\005nodes"
+          + "\030\001 \003(\0132&.google.cloud.dataproc.v1.Workfl"
+          + "owNodeB\003\340A\003\"\243\002\n\014WorkflowNode\022\024\n\007step_id\030"
+          + "\001 \001(\tB\003\340A\003\022\"\n\025prerequisite_step_ids\030\002 \003("
+          + "\tB\003\340A\003\022\023\n\006job_id\030\003 \001(\tB\003\340A\003\022D\n\005state\030\005 \001"
+          + "(\01620.google.cloud.dataproc.v1.WorkflowNo"
+          + "de.NodeStateB\003\340A\003\022\022\n\005error\030\006 \001(\tB\003\340A\003\"j\n"
+          + "\tNodeState\022\032\n\026NODE_STATE_UNSPECIFIED\020\000\022\013"
+          + "\n\007BLOCKED\020\001\022\014\n\010RUNNABLE\020\002\022\013\n\007RUNNING\020\003\022\r"
+          + "\n\tCOMPLETED\020\004\022\n\n\006FAILED\020\005\"\244\001\n\035CreateWork"
+          + "flowTemplateRequest\022@\n\006parent\030\001 \001(\tB0\340A\002"
+          + "\372A*\022(dataproc.googleapis.com/WorkflowTem"
+          + "plate\022A\n\010template\030\002 \001(\0132*.google.cloud.d"
+          + "ataproc.v1.WorkflowTemplateB\003\340A\002\"r\n\032GetW"
+          + "orkflowTemplateRequest\022>\n\004name\030\001 \001(\tB0\340A"
+          + "\002\372A*\n(dataproc.googleapis.com/WorkflowTe"
+          + "mplate\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\255\002\n\"Instant"
+          + "iateWorkflowTemplateRequest\022>\n\004name\030\001 \001("
+          + "\tB0\340A\002\372A*\n(dataproc.googleapis.com/Workf"
+          + "lowTemplate\022\024\n\007version\030\002 \001(\005B\003\340A\001\022\027\n\nreq"
+          + "uest_id\030\005 \001(\tB\003\340A\001\022e\n\nparameters\030\006 \003(\0132L"
+          + ".google.cloud.dataproc.v1.InstantiateWor"
+          + "kflowTemplateRequest.ParametersEntryB\003\340A"
+          + "\001\0321\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val"
+          + "ue\030\002 \001(\t:\0028\001\"\310\001\n(InstantiateInlineWorkfl"
+          + "owTemplateRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A"
+          + "*\022(dataproc.googleapis.com/WorkflowTempl"
+          + "ate\022A\n\010template\030\002 \001(\0132*.google.cloud.dat"
+          + "aproc.v1.WorkflowTemplateB\003\340A\002\022\027\n\nreques"
+          + "t_id\030\003 \001(\tB\003\340A\001\"b\n\035UpdateWorkflowTemplat"
+          + "eRequest\022A\n\010template\030\001 \001(\0132*.google.clou"
+          + "d.dataproc.v1.WorkflowTemplateB\003\340A\002\"\221\001\n\034"
+          + "ListWorkflowTemplatesRequest\022@\n\006parent\030\001"
+          + " \001(\tB0\340A\002\372A*\022(dataproc.googleapis.com/Wo"
+          + "rkflowTemplate\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027"
+          + "\n\npage_token\030\003 \001(\tB\003\340A\001\"\201\001\n\035ListWorkflow"
+          + "TemplatesResponse\022B\n\ttemplates\030\001 \003(\0132*.g"
+          + "oogle.cloud.dataproc.v1.WorkflowTemplate"
+          + "B\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\"u\n\035D"
+          + "eleteWorkflowTemplateRequest\022>\n\004name\030\001 \001"
+          + "(\tB0\340A\002\372A*\n(dataproc.googleapis.com/Work"
+          + "flowTemplate\022\024\n\007version\030\002 \001(\005B\003\340A\0012\346\020\n\027W"
+          + "orkflowTemplateService\022\233\002\n\026CreateWorkflo"
+          + "wTemplate\0227.google.cloud.dataproc.v1.Cre"
+          + "ateWorkflowTemplateRequest\032*.google.clou"
+          + "d.dataproc.v1.WorkflowTemplate\"\233\001\202\323\344\223\002\202\001"
+          + "\"5/v1/{parent=projects/*/locations/*}/wo"
+          + "rkflowTemplates:\010templateZ?\"3/v1/{parent"
+          + "=projects/*/regions/*}/workflowTemplates"
+          + ":\010template\332A\017parent,template\022\364\001\n\023GetWork"
+          + "flowTemplate\0224.google.cloud.dataproc.v1."
+          + "GetWorkflowTemplateRequest\032*.google.clou"
+          + "d.dataproc.v1.WorkflowTemplate\"{\202\323\344\223\002n\0225"
+          + "/v1/{name=projects/*/locations/*/workflo"
+          + "wTemplates/*}Z5\0223/v1/{name=projects/*/re"
+          + "gions/*/workflowTemplates/*}\332A\004name\022\325\002\n\033"
+          + "InstantiateWorkflowTemplate\022<.google.clo"
+          + "ud.dataproc.v1.InstantiateWorkflowTempla"
+          + "teRequest\032\035.google.longrunning.Operation"
+          + "\"\330\001\202\323\344\223\002\214\001\"A/v1/{name=projects/*/locatio"
+          + "ns/*/workflowTemplates/*}:instantiate:\001*"
+          + "ZD\"?/v1/{name=projects/*/regions/*/workf"
+          + "lowTemplates/*}:instantiate:\001*\332A\004name\332A\017"
+          + "name,parameters\312A)\n\025google.protobuf.Empt"
+          + "y\022\020WorkflowMetadata\022\364\002\n!InstantiateInlin"
+          + "eWorkflowTemplate\022B.google.cloud.datapro"
+          + "c.v1.InstantiateInlineWorkflowTemplateRe"
+          + "quest\032\035.google.longrunning.Operation\"\353\001\202"
+          + "\323\344\223\002\246\001\"G/v1/{parent=projects/*/locations"
+          + "/*}/workflowTemplates:instantiateInline:"
+          + "\010templateZQ\"E/v1/{parent=projects/*/regi"
+          + "ons/*}/workflowTemplates:instantiateInli"
+          + "ne:\010template\332A\017parent,template\312A)\n\025googl"
+          + "e.protobuf.Empty\022\020WorkflowMetadata\022\246\002\n\026U"
+          + "pdateWorkflowTemplate\0227.google.cloud.dat"
+          + "aproc.v1.UpdateWorkflowTemplateRequest\032*"
+          + ".google.cloud.dataproc.v1.WorkflowTempla"
+          + "te\"\246\001\202\323\344\223\002\224\001\032>/v1/{template.name=project"
+          + "s/*/locations/*/workflowTemplates/*}:\010te"
+          + "mplateZH\032
  * A YARN application created by a job. Application information is a subset of
  * <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.dataproc.v1.YarnApplication}
  */
-public final class YarnApplication extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class YarnApplication extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.YarnApplication)
     YarnApplicationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use YarnApplication.newBuilder() to construct.
   private YarnApplication(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private YarnApplication() {
     name_ = "";
     state_ = 0;
@@ -30,30 +48,33 @@ private YarnApplication() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new YarnApplication();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.dataproc.v1.JobsProto
+        .internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable
+    return com.google.cloud.dataproc.v1.JobsProto
+        .internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dataproc.v1.YarnApplication.class, com.google.cloud.dataproc.v1.YarnApplication.Builder.class);
+            com.google.cloud.dataproc.v1.YarnApplication.class,
+            com.google.cloud.dataproc.v1.YarnApplication.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The application state, corresponding to
    * <code>YarnProtos.YarnApplicationStateProto</code>.
@@ -61,9 +82,10 @@ protected java.lang.Object newInstance(
    *
    * Protobuf enum {@code google.cloud.dataproc.v1.YarnApplication.State}
    */
-  public enum State
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum State implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Status is unspecified.
      * 
@@ -72,6 +94,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Status is NEW.
      * 
@@ -80,6 +104,8 @@ public enum State */ NEW(1), /** + * + * *
      * Status is NEW_SAVING.
      * 
@@ -88,6 +114,8 @@ public enum State */ NEW_SAVING(2), /** + * + * *
      * Status is SUBMITTED.
      * 
@@ -96,6 +124,8 @@ public enum State */ SUBMITTED(3), /** + * + * *
      * Status is ACCEPTED.
      * 
@@ -104,6 +134,8 @@ public enum State */ ACCEPTED(4), /** + * + * *
      * Status is RUNNING.
      * 
@@ -112,6 +144,8 @@ public enum State */ RUNNING(5), /** + * + * *
      * Status is FINISHED.
      * 
@@ -120,6 +154,8 @@ public enum State */ FINISHED(6), /** + * + * *
      * Status is FAILED.
      * 
@@ -128,6 +164,8 @@ public enum State */ FAILED(7), /** + * + * *
      * Status is KILLED.
      * 
@@ -139,6 +177,8 @@ public enum State ; /** + * + * *
      * Status is unspecified.
      * 
@@ -147,6 +187,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Status is NEW.
      * 
@@ -155,6 +197,8 @@ public enum State */ public static final int NEW_VALUE = 1; /** + * + * *
      * Status is NEW_SAVING.
      * 
@@ -163,6 +207,8 @@ public enum State */ public static final int NEW_SAVING_VALUE = 2; /** + * + * *
      * Status is SUBMITTED.
      * 
@@ -171,6 +217,8 @@ public enum State */ public static final int SUBMITTED_VALUE = 3; /** + * + * *
      * Status is ACCEPTED.
      * 
@@ -179,6 +227,8 @@ public enum State */ public static final int ACCEPTED_VALUE = 4; /** + * + * *
      * Status is RUNNING.
      * 
@@ -187,6 +237,8 @@ public enum State */ public static final int RUNNING_VALUE = 5; /** + * + * *
      * Status is FINISHED.
      * 
@@ -195,6 +247,8 @@ public enum State */ public static final int FINISHED_VALUE = 6; /** + * + * *
      * Status is FAILED.
      * 
@@ -203,6 +257,8 @@ public enum State */ public static final int FAILED_VALUE = 7; /** + * + * *
      * Status is KILLED.
      * 
@@ -211,7 +267,6 @@ public enum State */ public static final int KILLED_VALUE = 8; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -236,55 +291,61 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return NEW; - case 2: return NEW_SAVING; - case 3: return SUBMITTED; - case 4: return ACCEPTED; - case 5: return RUNNING; - case 6: return FINISHED; - case 7: return FAILED; - case 8: return KILLED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return NEW; + case 2: + return NEW_SAVING; + case 3: + return SUBMITTED; + case 4: + return ACCEPTED; + case 5: + return RUNNING; + case 6: + return FINISHED; + case 7: + return FAILED; + case 8: + return KILLED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataproc.v1.YarnApplication.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; @@ -304,11 +365,14 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The application name.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -317,29 +381,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The application name.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -350,38 +414,56 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** + * + * *
    * Required. The application state.
    * 
* - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Required. The application state.
    * 
* - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.dataproc.v1.YarnApplication.State getState() { + @java.lang.Override + public com.google.cloud.dataproc.v1.YarnApplication.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.YarnApplication.State result = com.google.cloud.dataproc.v1.YarnApplication.State.valueOf(state_); - return result == null ? com.google.cloud.dataproc.v1.YarnApplication.State.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.YarnApplication.State result = + com.google.cloud.dataproc.v1.YarnApplication.State.valueOf(state_); + return result == null + ? com.google.cloud.dataproc.v1.YarnApplication.State.UNRECOGNIZED + : result; } public static final int PROGRESS_FIELD_NUMBER = 3; private float progress_; /** + * + * *
    * Required. The numerical progress of the application, from 1 to 100.
    * 
* * float progress = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The progress. */ @java.lang.Override @@ -392,6 +474,8 @@ public float getProgress() { public static final int TRACKING_URL_FIELD_NUMBER = 4; private volatile java.lang.Object trackingUrl_; /** + * + * *
    * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
    * TimelineServer that provides application-specific information. The URL uses
@@ -400,6 +484,7 @@ public float getProgress() {
    * 
* * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The trackingUrl. */ @java.lang.Override @@ -408,14 +493,15 @@ public java.lang.String getTrackingUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingUrl_ = s; return s; } } /** + * + * *
    * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
    * TimelineServer that provides application-specific information. The URL uses
@@ -424,16 +510,15 @@ public java.lang.String getTrackingUrl() {
    * 
* * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for trackingUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getTrackingUrlBytes() { + public com.google.protobuf.ByteString getTrackingUrlBytes() { java.lang.Object ref = trackingUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); trackingUrl_ = b; return b; } else { @@ -442,6 +527,7 @@ public java.lang.String getTrackingUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -453,12 +539,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ != com.google.cloud.dataproc.v1.YarnApplication.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.dataproc.v1.YarnApplication.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (java.lang.Float.floatToRawIntBits(progress_) != 0) { @@ -479,13 +565,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ != com.google.cloud.dataproc.v1.YarnApplication.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + if (state_ + != com.google.cloud.dataproc.v1.YarnApplication.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (java.lang.Float.floatToRawIntBits(progress_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, progress_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, progress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trackingUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, trackingUrl_); @@ -498,21 +583,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.dataproc.v1.YarnApplication)) { return super.equals(obj); } - com.google.cloud.dataproc.v1.YarnApplication other = (com.google.cloud.dataproc.v1.YarnApplication) obj; + com.google.cloud.dataproc.v1.YarnApplication other = + (com.google.cloud.dataproc.v1.YarnApplication) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (java.lang.Float.floatToIntBits(getProgress()) - != java.lang.Float.floatToIntBits( - other.getProgress())) return false; - if (!getTrackingUrl() - .equals(other.getTrackingUrl())) return false; + != java.lang.Float.floatToIntBits(other.getProgress())) return false; + if (!getTrackingUrl().equals(other.getTrackingUrl())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -529,8 +612,7 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + PROGRESS_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getProgress()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getProgress()); hash = (37 * hash) + TRACKING_URL_FIELD_NUMBER; hash = (53 * hash) + getTrackingUrl().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -538,97 +620,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.dataproc.v1.YarnApplication parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.YarnApplication parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.dataproc.v1.YarnApplication parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.dataproc.v1.YarnApplication parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.dataproc.v1.YarnApplication parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.YarnApplication parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.dataproc.v1.YarnApplication prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 YARN application created by a job. Application information is a subset of
    * <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.
@@ -638,33 +727,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.dataproc.v1.YarnApplication}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.YarnApplication)
       com.google.cloud.dataproc.v1.YarnApplicationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dataproc.v1.YarnApplication.class, com.google.cloud.dataproc.v1.YarnApplication.Builder.class);
+              com.google.cloud.dataproc.v1.YarnApplication.class,
+              com.google.cloud.dataproc.v1.YarnApplication.Builder.class);
     }
 
     // Construct using com.google.cloud.dataproc.v1.YarnApplication.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -680,9 +768,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.dataproc.v1.JobsProto.internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.dataproc.v1.JobsProto
+          .internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor;
     }
 
     @java.lang.Override
@@ -701,7 +789,8 @@ public com.google.cloud.dataproc.v1.YarnApplication build() {
 
     @java.lang.Override
     public com.google.cloud.dataproc.v1.YarnApplication buildPartial() {
-      com.google.cloud.dataproc.v1.YarnApplication result = new com.google.cloud.dataproc.v1.YarnApplication(this);
+      com.google.cloud.dataproc.v1.YarnApplication result =
+          new com.google.cloud.dataproc.v1.YarnApplication(this);
       result.name_ = name_;
       result.state_ = state_;
       result.progress_ = progress_;
@@ -714,38 +803,39 @@ public com.google.cloud.dataproc.v1.YarnApplication buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dataproc.v1.YarnApplication) {
-        return mergeFrom((com.google.cloud.dataproc.v1.YarnApplication)other);
+        return mergeFrom((com.google.cloud.dataproc.v1.YarnApplication) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -794,32 +884,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 16: {
-              state_ = input.readEnum();
-
-              break;
-            } // case 16
-            case 29: {
-              progress_ = input.readFloat();
-
-              break;
-            } // case 29
-            case 34: {
-              trackingUrl_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 16:
+              {
+                state_ = input.readEnum();
+
+                break;
+              } // case 16
+            case 29:
+              {
+                progress_ = input.readFloat();
+
+                break;
+              } // case 29
+            case 34:
+              {
+                trackingUrl_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -832,18 +927,20 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The application name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -852,20 +949,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The application name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -873,54 +971,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The application name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The application name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The application name.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -928,51 +1033,75 @@ public Builder setNameBytes( private int state_ = 0; /** + * + * *
      * Required. The application state.
      * 
* - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Required. The application state.
      * 
* - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @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; } /** + * + * *
      * Required. The application state.
      * 
* - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.dataproc.v1.YarnApplication.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.YarnApplication.State result = com.google.cloud.dataproc.v1.YarnApplication.State.valueOf(state_); - return result == null ? com.google.cloud.dataproc.v1.YarnApplication.State.UNRECOGNIZED : result; + com.google.cloud.dataproc.v1.YarnApplication.State result = + com.google.cloud.dataproc.v1.YarnApplication.State.valueOf(state_); + return result == null + ? com.google.cloud.dataproc.v1.YarnApplication.State.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The application state.
      * 
* - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -980,33 +1109,41 @@ public Builder setState(com.google.cloud.dataproc.v1.YarnApplication.State value if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The application state.
      * 
* - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private float progress_ ; + private float progress_; /** + * + * *
      * Required. The numerical progress of the application, from 1 to 100.
      * 
* * float progress = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The progress. */ @java.lang.Override @@ -1014,30 +1151,36 @@ public float getProgress() { return progress_; } /** + * + * *
      * Required. The numerical progress of the application, from 1 to 100.
      * 
* * float progress = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The progress to set. * @return This builder for chaining. */ public Builder setProgress(float value) { - + progress_ = value; onChanged(); return this; } /** + * + * *
      * Required. The numerical progress of the application, from 1 to 100.
      * 
* * float progress = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProgress() { - + progress_ = 0F; onChanged(); return this; @@ -1045,6 +1188,8 @@ public Builder clearProgress() { private java.lang.Object trackingUrl_ = ""; /** + * + * *
      * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
      * TimelineServer that provides application-specific information. The URL uses
@@ -1053,13 +1198,13 @@ public Builder clearProgress() {
      * 
* * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The trackingUrl. */ public java.lang.String getTrackingUrl() { java.lang.Object ref = trackingUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingUrl_ = s; return s; @@ -1068,6 +1213,8 @@ public java.lang.String getTrackingUrl() { } } /** + * + * *
      * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
      * TimelineServer that provides application-specific information. The URL uses
@@ -1076,15 +1223,14 @@ public java.lang.String getTrackingUrl() {
      * 
* * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for trackingUrl. */ - public com.google.protobuf.ByteString - getTrackingUrlBytes() { + public com.google.protobuf.ByteString getTrackingUrlBytes() { java.lang.Object ref = trackingUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); trackingUrl_ = b; return b; } else { @@ -1092,6 +1238,8 @@ public java.lang.String getTrackingUrl() { } } /** + * + * *
      * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
      * TimelineServer that provides application-specific information. The URL uses
@@ -1100,20 +1248,22 @@ public java.lang.String getTrackingUrl() {
      * 
* * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The trackingUrl to set. * @return This builder for chaining. */ - public Builder setTrackingUrl( - java.lang.String value) { + public Builder setTrackingUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + trackingUrl_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
      * TimelineServer that provides application-specific information. The URL uses
@@ -1122,15 +1272,18 @@ public Builder setTrackingUrl(
      * 
* * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTrackingUrl() { - + trackingUrl_ = getDefaultInstance().getTrackingUrl(); onChanged(); return this; } /** + * + * *
      * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
      * TimelineServer that provides application-specific information. The URL uses
@@ -1139,23 +1292,23 @@ public Builder clearTrackingUrl() {
      * 
* * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for trackingUrl to set. * @return This builder for chaining. */ - public Builder setTrackingUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setTrackingUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trackingUrl_ = 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); } @@ -1165,12 +1318,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.YarnApplication) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.YarnApplication) private static final com.google.cloud.dataproc.v1.YarnApplication DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.YarnApplication(); } @@ -1179,27 +1332,27 @@ public static com.google.cloud.dataproc.v1.YarnApplication getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public YarnApplication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public YarnApplication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1214,6 +1367,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dataproc.v1.YarnApplication getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java similarity index 65% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java index 337b0fc9799a..f748c330f016 100644 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java @@ -1,62 +1,98 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dataproc/v1/jobs.proto package com.google.cloud.dataproc.v1; -public interface YarnApplicationOrBuilder extends +public interface YarnApplicationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.YarnApplication) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The application name.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The application name.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The application state.
    * 
* - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Required. The application state.
    * 
* - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The state. */ com.google.cloud.dataproc.v1.YarnApplication.State getState(); /** + * + * *
    * Required. The numerical progress of the application, from 1 to 100.
    * 
* * float progress = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The progress. */ float getProgress(); /** + * + * *
    * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
    * TimelineServer that provides application-specific information. The URL uses
@@ -65,10 +101,13 @@ public interface YarnApplicationOrBuilder extends
    * 
* * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The trackingUrl. */ java.lang.String getTrackingUrl(); /** + * + * *
    * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
    * TimelineServer that provides application-specific information. The URL uses
@@ -77,8 +116,8 @@ public interface YarnApplicationOrBuilder extends
    * 
* * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for trackingUrl. */ - com.google.protobuf.ByteString - getTrackingUrlBytes(); + com.google.protobuf.ByteString getTrackingUrlBytes(); } diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto similarity index 100% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/batches.proto b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/batches.proto similarity index 100% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/batches.proto rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/batches.proto diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto similarity index 100% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto similarity index 100% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/node_groups.proto b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/node_groups.proto similarity index 100% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/node_groups.proto rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/node_groups.proto diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto similarity index 100% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto similarity index 100% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto similarity index 100% rename from owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto rename to java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider1.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetEndpoint.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetEndpoint.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicy.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicy.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicy.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPolicies.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPolicies.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPolicies.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPolicies.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPolicies.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPolicies.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPolicies.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPolicies.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservice/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider1.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetEndpoint.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetEndpoint.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatch.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatch.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatch.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatch.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatchLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatchLRO.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatchLRO.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/AsyncCreateBatchLRO.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatch.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatch.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatch.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatch.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchLocationnameBatchString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchLocationnameBatchString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchLocationnameBatchString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchLocationnameBatchString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchStringBatchString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchStringBatchString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchStringBatchString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/createbatch/SyncCreateBatchStringBatchString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/AsyncDeleteBatch.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/AsyncDeleteBatch.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/AsyncDeleteBatch.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/AsyncDeleteBatch.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatch.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatch.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatch.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatch.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchBatchname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchBatchname.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchBatchname.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchBatchname.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/deletebatch/SyncDeleteBatchString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/AsyncGetBatch.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/AsyncGetBatch.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/AsyncGetBatch.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/AsyncGetBatch.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatch.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatch.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatch.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatch.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchBatchname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchBatchname.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchBatchname.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchBatchname.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/getbatch/SyncGetBatchString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatches.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatches.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatches.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatches.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatchesPaged.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatchesPaged.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatchesPaged.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/AsyncListBatchesPaged.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatches.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatches.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatches.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatches.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesLocationname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesLocationname.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesLocationname.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesLocationname.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontroller/listbatches/SyncListBatchesString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider1.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetEndpoint.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetEndpoint.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateCluster.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateCluster.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateCluster.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateClusterLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateClusterLRO.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateClusterLRO.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/AsyncCreateClusterLRO.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateCluster.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateCluster.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateCluster.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateClusterStringStringCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateClusterStringStringCluster.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateClusterStringStringCluster.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/createcluster/SyncCreateClusterStringStringCluster.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteCluster.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteCluster.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteCluster.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteClusterLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteClusterLRO.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteClusterLRO.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/AsyncDeleteClusterLRO.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteCluster.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteCluster.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteCluster.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteClusterStringStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteClusterStringStringString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteClusterStringStringString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/deletecluster/SyncDeleteClusterStringStringString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseCluster.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseCluster.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseCluster.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseClusterLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseClusterLRO.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseClusterLRO.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/AsyncDiagnoseClusterLRO.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseCluster.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseCluster.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseCluster.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseClusterStringStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseClusterStringStringString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseClusterStringStringString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/diagnosecluster/SyncDiagnoseClusterStringStringString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/AsyncGetCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/AsyncGetCluster.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/AsyncGetCluster.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/AsyncGetCluster.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetCluster.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetCluster.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetCluster.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetClusterStringStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetClusterStringStringString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetClusterStringStringString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/getcluster/SyncGetClusterStringStringString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClusters.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClusters.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClusters.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClusters.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClustersPaged.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClustersPaged.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClustersPaged.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/AsyncListClustersPaged.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClusters.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClusters.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClusters.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClusters.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringStringString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringStringString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/listclusters/SyncListClustersStringStringString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartCluster.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartCluster.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartCluster.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartClusterLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartClusterLRO.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartClusterLRO.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/AsyncStartClusterLRO.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/SyncStartCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/SyncStartCluster.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/SyncStartCluster.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/startcluster/SyncStartCluster.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopCluster.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopCluster.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopCluster.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopClusterLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopClusterLRO.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopClusterLRO.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/AsyncStopClusterLRO.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/SyncStopCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/SyncStopCluster.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/SyncStopCluster.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/stopcluster/SyncStopCluster.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateCluster.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateCluster.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateCluster.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateClusterLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateClusterLRO.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateClusterLRO.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/AsyncUpdateClusterLRO.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateCluster.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateCluster.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateCluster.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontroller/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/AsyncCancelJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/AsyncCancelJob.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/AsyncCancelJob.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/AsyncCancelJob.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJob.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJob.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJob.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJobStringStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJobStringStringString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJobStringStringString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/canceljob/SyncCancelJobStringStringString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider1.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetEndpoint.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetEndpoint.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/AsyncDeleteJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/AsyncDeleteJob.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/AsyncDeleteJob.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/AsyncDeleteJob.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJob.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJob.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJob.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJobStringStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJobStringStringString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJobStringStringString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/deletejob/SyncDeleteJobStringStringString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/AsyncGetJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/AsyncGetJob.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/AsyncGetJob.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/AsyncGetJob.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJob.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJob.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJob.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJobStringStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJobStringStringString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJobStringStringString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/getjob/SyncGetJobStringStringString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobs.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobs.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobs.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobs.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobsPaged.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobsPaged.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobsPaged.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/AsyncListJobsPaged.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobs.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobs.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobs.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobs.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringStringString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringStringString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/listjobs/SyncListJobsStringStringString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/AsyncSubmitJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/AsyncSubmitJob.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/AsyncSubmitJob.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/AsyncSubmitJob.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJob.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJob.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJob.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJobStringStringJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJobStringStringJob.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJobStringStringJob.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjob/SyncSubmitJobStringStringJob.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperation.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperation.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperation.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperation.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperation.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperation.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperation.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperation.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/AsyncUpdateJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/AsyncUpdateJob.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/AsyncUpdateJob.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/AsyncUpdateJob.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/SyncUpdateJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/SyncUpdateJob.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/SyncUpdateJob.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontroller/updatejob/SyncUpdateJob.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider1.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetEndpoint.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetEndpoint.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/AsyncCreateNodeGroup.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/AsyncCreateNodeGroup.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/AsyncCreateNodeGroup.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/AsyncCreateNodeGroup.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/AsyncCreateNodeGroupLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/AsyncCreateNodeGroupLRO.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/AsyncCreateNodeGroupLRO.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/AsyncCreateNodeGroupLRO.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroup.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroup.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroup.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroup.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroupClusterregionnameNodegroupString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroupClusterregionnameNodegroupString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroupClusterregionnameNodegroupString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroupClusterregionnameNodegroupString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroupStringNodegroupString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroupStringNodegroupString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroupStringNodegroupString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/createnodegroup/SyncCreateNodeGroupStringNodegroupString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/AsyncGetNodeGroup.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/AsyncGetNodeGroup.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/AsyncGetNodeGroup.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/AsyncGetNodeGroup.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroup.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroup.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroup.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroup.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroupNodegroupname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroupNodegroupname.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroupNodegroupname.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroupNodegroupname.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroupString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroupString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroupString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/getnodegroup/SyncGetNodeGroupString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/AsyncResizeNodeGroup.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/AsyncResizeNodeGroup.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/AsyncResizeNodeGroup.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/AsyncResizeNodeGroup.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/AsyncResizeNodeGroupLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/AsyncResizeNodeGroupLRO.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/AsyncResizeNodeGroupLRO.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/AsyncResizeNodeGroupLRO.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/SyncResizeNodeGroup.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/SyncResizeNodeGroup.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/SyncResizeNodeGroup.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/SyncResizeNodeGroup.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/SyncResizeNodeGroupStringInt.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/SyncResizeNodeGroupStringInt.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/SyncResizeNodeGroupStringInt.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontroller/resizenodegroup/SyncResizeNodeGroupStringInt.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontrollersettings/getnodegroup/SyncGetNodeGroup.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontrollersettings/getnodegroup/SyncGetNodeGroup.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontrollersettings/getnodegroup/SyncGetNodeGroup.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/nodegroupcontrollersettings/getnodegroup/SyncGetNodeGroup.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/nodegroupcontrollerstubsettings/getnodegroup/SyncGetNodeGroup.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/nodegroupcontrollerstubsettings/getnodegroup/SyncGetNodeGroup.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/nodegroupcontrollerstubsettings/getnodegroup/SyncGetNodeGroup.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/nodegroupcontrollerstubsettings/getnodegroup/SyncGetNodeGroup.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider1.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetEndpoint.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetEndpoint.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/AsyncCreateWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/AsyncCreateWorkflowTemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/AsyncCreateWorkflowTemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/AsyncCreateWorkflowTemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/AsyncGetWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/AsyncGetWorkflowTemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/AsyncGetWorkflowTemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/AsyncGetWorkflowTemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplates.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplates.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplates.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplates.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplates.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplates.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplates.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplates.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesString.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesString.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/listworkflowtemplates/SyncListWorkflowTemplatesString.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservice/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java similarity index 100% rename from owl-bot-staging/java-dataproc/v1/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java rename to java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java diff --git a/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java b/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java deleted file mode 100644 index 98571129828e..000000000000 --- a/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java +++ /dev/null @@ -1,664 +0,0 @@ -package com.google.cloud.dataproc.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * The API interface for managing autoscaling policies in the
- * Dataproc API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/autoscaling_policies.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AutoscalingPolicyServiceGrpc { - - private AutoscalingPolicyServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dataproc.v1.AutoscalingPolicyService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateAutoscalingPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAutoscalingPolicy", - requestType = com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.class, - responseType = com.google.cloud.dataproc.v1.AutoscalingPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateAutoscalingPolicyMethod() { - io.grpc.MethodDescriptor getCreateAutoscalingPolicyMethod; - if ((getCreateAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod) == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getCreateAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod) == null) { - AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod = getCreateAutoscalingPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAutoscalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance())) - .setSchemaDescriptor(new AutoscalingPolicyServiceMethodDescriptorSupplier("CreateAutoscalingPolicy")) - .build(); - } - } - } - return getCreateAutoscalingPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateAutoscalingPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAutoscalingPolicy", - requestType = com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.class, - responseType = com.google.cloud.dataproc.v1.AutoscalingPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateAutoscalingPolicyMethod() { - io.grpc.MethodDescriptor getUpdateAutoscalingPolicyMethod; - if ((getUpdateAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getUpdateAutoscalingPolicyMethod) == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getUpdateAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getUpdateAutoscalingPolicyMethod) == null) { - AutoscalingPolicyServiceGrpc.getUpdateAutoscalingPolicyMethod = getUpdateAutoscalingPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAutoscalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance())) - .setSchemaDescriptor(new AutoscalingPolicyServiceMethodDescriptorSupplier("UpdateAutoscalingPolicy")) - .build(); - } - } - } - return getUpdateAutoscalingPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAutoscalingPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAutoscalingPolicy", - requestType = com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.class, - responseType = com.google.cloud.dataproc.v1.AutoscalingPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAutoscalingPolicyMethod() { - io.grpc.MethodDescriptor getGetAutoscalingPolicyMethod; - if ((getGetAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getGetAutoscalingPolicyMethod) == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getGetAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getGetAutoscalingPolicyMethod) == null) { - AutoscalingPolicyServiceGrpc.getGetAutoscalingPolicyMethod = getGetAutoscalingPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAutoscalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance())) - .setSchemaDescriptor(new AutoscalingPolicyServiceMethodDescriptorSupplier("GetAutoscalingPolicy")) - .build(); - } - } - } - return getGetAutoscalingPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getListAutoscalingPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAutoscalingPolicies", - requestType = com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.class, - responseType = com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAutoscalingPoliciesMethod() { - io.grpc.MethodDescriptor getListAutoscalingPoliciesMethod; - if ((getListAutoscalingPoliciesMethod = AutoscalingPolicyServiceGrpc.getListAutoscalingPoliciesMethod) == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getListAutoscalingPoliciesMethod = AutoscalingPolicyServiceGrpc.getListAutoscalingPoliciesMethod) == null) { - AutoscalingPolicyServiceGrpc.getListAutoscalingPoliciesMethod = getListAutoscalingPoliciesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAutoscalingPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AutoscalingPolicyServiceMethodDescriptorSupplier("ListAutoscalingPolicies")) - .build(); - } - } - } - return getListAutoscalingPoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteAutoscalingPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAutoscalingPolicy", - requestType = com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteAutoscalingPolicyMethod() { - io.grpc.MethodDescriptor getDeleteAutoscalingPolicyMethod; - if ((getDeleteAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getDeleteAutoscalingPolicyMethod) == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getDeleteAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getDeleteAutoscalingPolicyMethod) == null) { - AutoscalingPolicyServiceGrpc.getDeleteAutoscalingPolicyMethod = getDeleteAutoscalingPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAutoscalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AutoscalingPolicyServiceMethodDescriptorSupplier("DeleteAutoscalingPolicy")) - .build(); - } - } - } - return getDeleteAutoscalingPolicyMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static AutoscalingPolicyServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoscalingPolicyServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceStub(channel, callOptions); - } - }; - return AutoscalingPolicyServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AutoscalingPolicyServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoscalingPolicyServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceBlockingStub(channel, callOptions); - } - }; - return AutoscalingPolicyServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AutoscalingPolicyServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoscalingPolicyServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceFutureStub(channel, callOptions); - } - }; - return AutoscalingPolicyServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * The API interface for managing autoscaling policies in the
-   * Dataproc API.
-   * 
- */ - public static abstract class AutoscalingPolicyServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates new autoscaling policy.
-     * 
- */ - public void createAutoscalingPolicy(com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAutoscalingPolicyMethod(), responseObserver); - } - - /** - *
-     * Updates (replaces) autoscaling policy.
-     * Disabled check for update_mask, because all updates will be full
-     * replacements.
-     * 
- */ - public void updateAutoscalingPolicy(com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAutoscalingPolicyMethod(), responseObserver); - } - - /** - *
-     * Retrieves autoscaling policy.
-     * 
- */ - public void getAutoscalingPolicy(com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAutoscalingPolicyMethod(), responseObserver); - } - - /** - *
-     * Lists autoscaling policies in the project.
-     * 
- */ - public void listAutoscalingPolicies(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAutoscalingPoliciesMethod(), responseObserver); - } - - /** - *
-     * Deletes an autoscaling policy. It is an error to delete an autoscaling
-     * policy that is in use by one or more clusters.
-     * 
- */ - public void deleteAutoscalingPolicy(com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAutoscalingPolicyMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateAutoscalingPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy>( - this, METHODID_CREATE_AUTOSCALING_POLICY))) - .addMethod( - getUpdateAutoscalingPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy>( - this, METHODID_UPDATE_AUTOSCALING_POLICY))) - .addMethod( - getGetAutoscalingPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy>( - this, METHODID_GET_AUTOSCALING_POLICY))) - .addMethod( - getListAutoscalingPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest, - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse>( - this, METHODID_LIST_AUTOSCALING_POLICIES))) - .addMethod( - getDeleteAutoscalingPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_AUTOSCALING_POLICY))) - .build(); - } - } - - /** - *
-   * The API interface for managing autoscaling policies in the
-   * Dataproc API.
-   * 
- */ - public static final class AutoscalingPolicyServiceStub extends io.grpc.stub.AbstractAsyncStub { - private AutoscalingPolicyServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoscalingPolicyServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceStub(channel, callOptions); - } - - /** - *
-     * Creates new autoscaling policy.
-     * 
- */ - public void createAutoscalingPolicy(com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAutoscalingPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates (replaces) autoscaling policy.
-     * Disabled check for update_mask, because all updates will be full
-     * replacements.
-     * 
- */ - public void updateAutoscalingPolicy(com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAutoscalingPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieves autoscaling policy.
-     * 
- */ - public void getAutoscalingPolicy(com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAutoscalingPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists autoscaling policies in the project.
-     * 
- */ - public void listAutoscalingPolicies(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAutoscalingPoliciesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an autoscaling policy. It is an error to delete an autoscaling
-     * policy that is in use by one or more clusters.
-     * 
- */ - public void deleteAutoscalingPolicy(com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAutoscalingPolicyMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * The API interface for managing autoscaling policies in the
-   * Dataproc API.
-   * 
- */ - public static final class AutoscalingPolicyServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private AutoscalingPolicyServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoscalingPolicyServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates new autoscaling policy.
-     * 
- */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy createAutoscalingPolicy(com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAutoscalingPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates (replaces) autoscaling policy.
-     * Disabled check for update_mask, because all updates will be full
-     * replacements.
-     * 
- */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy updateAutoscalingPolicy(com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAutoscalingPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieves autoscaling policy.
-     * 
- */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy getAutoscalingPolicy(com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAutoscalingPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists autoscaling policies in the project.
-     * 
- */ - public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse listAutoscalingPolicies(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAutoscalingPoliciesMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an autoscaling policy. It is an error to delete an autoscaling
-     * policy that is in use by one or more clusters.
-     * 
- */ - public com.google.protobuf.Empty deleteAutoscalingPolicy(com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAutoscalingPolicyMethod(), getCallOptions(), request); - } - } - - /** - *
-   * The API interface for managing autoscaling policies in the
-   * Dataproc API.
-   * 
- */ - public static final class AutoscalingPolicyServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private AutoscalingPolicyServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoscalingPolicyServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Creates new autoscaling policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createAutoscalingPolicy( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAutoscalingPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates (replaces) autoscaling policy.
-     * Disabled check for update_mask, because all updates will be full
-     * replacements.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateAutoscalingPolicy( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAutoscalingPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieves autoscaling policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAutoscalingPolicy( - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAutoscalingPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists autoscaling policies in the project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listAutoscalingPolicies( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAutoscalingPoliciesMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an autoscaling policy. It is an error to delete an autoscaling
-     * policy that is in use by one or more clusters.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteAutoscalingPolicy( - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAutoscalingPolicyMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_AUTOSCALING_POLICY = 0; - private static final int METHODID_UPDATE_AUTOSCALING_POLICY = 1; - private static final int METHODID_GET_AUTOSCALING_POLICY = 2; - private static final int METHODID_LIST_AUTOSCALING_POLICIES = 3; - private static final int METHODID_DELETE_AUTOSCALING_POLICY = 4; - - 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 AutoscalingPolicyServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AutoscalingPolicyServiceImplBase 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_AUTOSCALING_POLICY: - serviceImpl.createAutoscalingPolicy((com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_AUTOSCALING_POLICY: - serviceImpl.updateAutoscalingPolicy((com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_AUTOSCALING_POLICY: - serviceImpl.getAutoscalingPolicy((com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_AUTOSCALING_POLICIES: - serviceImpl.listAutoscalingPolicies((com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_AUTOSCALING_POLICY: - serviceImpl.deleteAutoscalingPolicy((com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) 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 AutoscalingPolicyServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AutoscalingPolicyServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AutoscalingPolicyService"); - } - } - - private static final class AutoscalingPolicyServiceFileDescriptorSupplier - extends AutoscalingPolicyServiceBaseDescriptorSupplier { - AutoscalingPolicyServiceFileDescriptorSupplier() {} - } - - private static final class AutoscalingPolicyServiceMethodDescriptorSupplier - extends AutoscalingPolicyServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AutoscalingPolicyServiceMethodDescriptorSupplier(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 (AutoscalingPolicyServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AutoscalingPolicyServiceFileDescriptorSupplier()) - .addMethod(getCreateAutoscalingPolicyMethod()) - .addMethod(getUpdateAutoscalingPolicyMethod()) - .addMethod(getGetAutoscalingPolicyMethod()) - .addMethod(getListAutoscalingPoliciesMethod()) - .addMethod(getDeleteAutoscalingPolicyMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java b/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java deleted file mode 100644 index 25dffd869bf1..000000000000 --- a/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java +++ /dev/null @@ -1,565 +0,0 @@ -package com.google.cloud.dataproc.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * The BatchController provides methods to manage batch workloads.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/batches.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BatchControllerGrpc { - - private BatchControllerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dataproc.v1.BatchController"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateBatchMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateBatch", - requestType = com.google.cloud.dataproc.v1.CreateBatchRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateBatchMethod() { - io.grpc.MethodDescriptor getCreateBatchMethod; - if ((getCreateBatchMethod = BatchControllerGrpc.getCreateBatchMethod) == null) { - synchronized (BatchControllerGrpc.class) { - if ((getCreateBatchMethod = BatchControllerGrpc.getCreateBatchMethod) == null) { - BatchControllerGrpc.getCreateBatchMethod = getCreateBatchMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBatch")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.CreateBatchRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BatchControllerMethodDescriptorSupplier("CreateBatch")) - .build(); - } - } - } - return getCreateBatchMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetBatchMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBatch", - requestType = com.google.cloud.dataproc.v1.GetBatchRequest.class, - responseType = com.google.cloud.dataproc.v1.Batch.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBatchMethod() { - io.grpc.MethodDescriptor getGetBatchMethod; - if ((getGetBatchMethod = BatchControllerGrpc.getGetBatchMethod) == null) { - synchronized (BatchControllerGrpc.class) { - if ((getGetBatchMethod = BatchControllerGrpc.getGetBatchMethod) == null) { - BatchControllerGrpc.getGetBatchMethod = getGetBatchMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBatch")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.GetBatchRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.Batch.getDefaultInstance())) - .setSchemaDescriptor(new BatchControllerMethodDescriptorSupplier("GetBatch")) - .build(); - } - } - } - return getGetBatchMethod; - } - - private static volatile io.grpc.MethodDescriptor getListBatchesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListBatches", - requestType = com.google.cloud.dataproc.v1.ListBatchesRequest.class, - responseType = com.google.cloud.dataproc.v1.ListBatchesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListBatchesMethod() { - io.grpc.MethodDescriptor getListBatchesMethod; - if ((getListBatchesMethod = BatchControllerGrpc.getListBatchesMethod) == null) { - synchronized (BatchControllerGrpc.class) { - if ((getListBatchesMethod = BatchControllerGrpc.getListBatchesMethod) == null) { - BatchControllerGrpc.getListBatchesMethod = getListBatchesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBatches")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListBatchesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListBatchesResponse.getDefaultInstance())) - .setSchemaDescriptor(new BatchControllerMethodDescriptorSupplier("ListBatches")) - .build(); - } - } - } - return getListBatchesMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteBatchMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteBatch", - requestType = com.google.cloud.dataproc.v1.DeleteBatchRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteBatchMethod() { - io.grpc.MethodDescriptor getDeleteBatchMethod; - if ((getDeleteBatchMethod = BatchControllerGrpc.getDeleteBatchMethod) == null) { - synchronized (BatchControllerGrpc.class) { - if ((getDeleteBatchMethod = BatchControllerGrpc.getDeleteBatchMethod) == null) { - BatchControllerGrpc.getDeleteBatchMethod = getDeleteBatchMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBatch")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.DeleteBatchRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new BatchControllerMethodDescriptorSupplier("DeleteBatch")) - .build(); - } - } - } - return getDeleteBatchMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static BatchControllerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BatchControllerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchControllerStub(channel, callOptions); - } - }; - return BatchControllerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BatchControllerBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BatchControllerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchControllerBlockingStub(channel, callOptions); - } - }; - return BatchControllerBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static BatchControllerFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BatchControllerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchControllerFutureStub(channel, callOptions); - } - }; - return BatchControllerFutureStub.newStub(factory, channel); - } - - /** - *
-   * The BatchController provides methods to manage batch workloads.
-   * 
- */ - public static abstract class BatchControllerImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a batch workload that executes asynchronously.
-     * 
- */ - public void createBatch(com.google.cloud.dataproc.v1.CreateBatchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBatchMethod(), responseObserver); - } - - /** - *
-     * Gets the batch workload resource representation.
-     * 
- */ - public void getBatch(com.google.cloud.dataproc.v1.GetBatchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBatchMethod(), responseObserver); - } - - /** - *
-     * Lists batch workloads.
-     * 
- */ - public void listBatches(com.google.cloud.dataproc.v1.ListBatchesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBatchesMethod(), responseObserver); - } - - /** - *
-     * Deletes the batch workload resource. If the batch is not in terminal state,
-     * the delete fails and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public void deleteBatch(com.google.cloud.dataproc.v1.DeleteBatchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBatchMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateBatchMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.CreateBatchRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_BATCH))) - .addMethod( - getGetBatchMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.GetBatchRequest, - com.google.cloud.dataproc.v1.Batch>( - this, METHODID_GET_BATCH))) - .addMethod( - getListBatchesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.ListBatchesRequest, - com.google.cloud.dataproc.v1.ListBatchesResponse>( - this, METHODID_LIST_BATCHES))) - .addMethod( - getDeleteBatchMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.DeleteBatchRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_BATCH))) - .build(); - } - } - - /** - *
-   * The BatchController provides methods to manage batch workloads.
-   * 
- */ - public static final class BatchControllerStub extends io.grpc.stub.AbstractAsyncStub { - private BatchControllerStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BatchControllerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchControllerStub(channel, callOptions); - } - - /** - *
-     * Creates a batch workload that executes asynchronously.
-     * 
- */ - public void createBatch(com.google.cloud.dataproc.v1.CreateBatchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBatchMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the batch workload resource representation.
-     * 
- */ - public void getBatch(com.google.cloud.dataproc.v1.GetBatchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBatchMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists batch workloads.
-     * 
- */ - public void listBatches(com.google.cloud.dataproc.v1.ListBatchesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBatchesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the batch workload resource. If the batch is not in terminal state,
-     * the delete fails and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public void deleteBatch(com.google.cloud.dataproc.v1.DeleteBatchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBatchMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * The BatchController provides methods to manage batch workloads.
-   * 
- */ - public static final class BatchControllerBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private BatchControllerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BatchControllerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchControllerBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a batch workload that executes asynchronously.
-     * 
- */ - public com.google.longrunning.Operation createBatch(com.google.cloud.dataproc.v1.CreateBatchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateBatchMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the batch workload resource representation.
-     * 
- */ - public com.google.cloud.dataproc.v1.Batch getBatch(com.google.cloud.dataproc.v1.GetBatchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBatchMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists batch workloads.
-     * 
- */ - public com.google.cloud.dataproc.v1.ListBatchesResponse listBatches(com.google.cloud.dataproc.v1.ListBatchesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBatchesMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the batch workload resource. If the batch is not in terminal state,
-     * the delete fails and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public com.google.protobuf.Empty deleteBatch(com.google.cloud.dataproc.v1.DeleteBatchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBatchMethod(), getCallOptions(), request); - } - } - - /** - *
-   * The BatchController provides methods to manage batch workloads.
-   * 
- */ - public static final class BatchControllerFutureStub extends io.grpc.stub.AbstractFutureStub { - private BatchControllerFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BatchControllerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchControllerFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a batch workload that executes asynchronously.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createBatch( - com.google.cloud.dataproc.v1.CreateBatchRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateBatchMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the batch workload resource representation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getBatch( - com.google.cloud.dataproc.v1.GetBatchRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetBatchMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists batch workloads.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listBatches( - com.google.cloud.dataproc.v1.ListBatchesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListBatchesMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the batch workload resource. If the batch is not in terminal state,
-     * the delete fails and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteBatch( - com.google.cloud.dataproc.v1.DeleteBatchRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteBatchMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_BATCH = 0; - private static final int METHODID_GET_BATCH = 1; - private static final int METHODID_LIST_BATCHES = 2; - private static final int METHODID_DELETE_BATCH = 3; - - 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 BatchControllerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BatchControllerImplBase 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_BATCH: - serviceImpl.createBatch((com.google.cloud.dataproc.v1.CreateBatchRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_BATCH: - serviceImpl.getBatch((com.google.cloud.dataproc.v1.GetBatchRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_BATCHES: - serviceImpl.listBatches((com.google.cloud.dataproc.v1.ListBatchesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_BATCH: - serviceImpl.deleteBatch((com.google.cloud.dataproc.v1.DeleteBatchRequest) 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 BatchControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BatchControllerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BatchController"); - } - } - - private static final class BatchControllerFileDescriptorSupplier - extends BatchControllerBaseDescriptorSupplier { - BatchControllerFileDescriptorSupplier() {} - } - - private static final class BatchControllerMethodDescriptorSupplier - extends BatchControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BatchControllerMethodDescriptorSupplier(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 (BatchControllerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BatchControllerFileDescriptorSupplier()) - .addMethod(getCreateBatchMethod()) - .addMethod(getGetBatchMethod()) - .addMethod(getListBatchesMethod()) - .addMethod(getDeleteBatchMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java b/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java deleted file mode 100644 index 3698d2064977..000000000000 --- a/owl-bot-staging/java-dataproc/v1/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java +++ /dev/null @@ -1,839 +0,0 @@ -package com.google.cloud.dataproc.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * The JobController provides methods to manage jobs.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/jobs.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class JobControllerGrpc { - - private JobControllerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dataproc.v1.JobController"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getSubmitJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SubmitJob", - requestType = com.google.cloud.dataproc.v1.SubmitJobRequest.class, - responseType = com.google.cloud.dataproc.v1.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSubmitJobMethod() { - io.grpc.MethodDescriptor getSubmitJobMethod; - if ((getSubmitJobMethod = JobControllerGrpc.getSubmitJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getSubmitJobMethod = JobControllerGrpc.getSubmitJobMethod) == null) { - JobControllerGrpc.getSubmitJobMethod = getSubmitJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubmitJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.SubmitJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.Job.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("SubmitJob")) - .build(); - } - } - } - return getSubmitJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getSubmitJobAsOperationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SubmitJobAsOperation", - requestType = com.google.cloud.dataproc.v1.SubmitJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSubmitJobAsOperationMethod() { - io.grpc.MethodDescriptor getSubmitJobAsOperationMethod; - if ((getSubmitJobAsOperationMethod = JobControllerGrpc.getSubmitJobAsOperationMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getSubmitJobAsOperationMethod = JobControllerGrpc.getSubmitJobAsOperationMethod) == null) { - JobControllerGrpc.getSubmitJobAsOperationMethod = getSubmitJobAsOperationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubmitJobAsOperation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.SubmitJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("SubmitJobAsOperation")) - .build(); - } - } - } - return getSubmitJobAsOperationMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetJob", - requestType = com.google.cloud.dataproc.v1.GetJobRequest.class, - responseType = com.google.cloud.dataproc.v1.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetJobMethod() { - io.grpc.MethodDescriptor getGetJobMethod; - if ((getGetJobMethod = JobControllerGrpc.getGetJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getGetJobMethod = JobControllerGrpc.getGetJobMethod) == null) { - JobControllerGrpc.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.dataproc.v1.GetJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.Job.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("GetJob")) - .build(); - } - } - } - return getGetJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getListJobsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListJobs", - requestType = com.google.cloud.dataproc.v1.ListJobsRequest.class, - responseType = com.google.cloud.dataproc.v1.ListJobsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListJobsMethod() { - io.grpc.MethodDescriptor getListJobsMethod; - if ((getListJobsMethod = JobControllerGrpc.getListJobsMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getListJobsMethod = JobControllerGrpc.getListJobsMethod) == null) { - JobControllerGrpc.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.dataproc.v1.ListJobsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListJobsResponse.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("ListJobs")) - .build(); - } - } - } - return getListJobsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateJob", - requestType = com.google.cloud.dataproc.v1.UpdateJobRequest.class, - responseType = com.google.cloud.dataproc.v1.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateJobMethod() { - io.grpc.MethodDescriptor getUpdateJobMethod; - if ((getUpdateJobMethod = JobControllerGrpc.getUpdateJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getUpdateJobMethod = JobControllerGrpc.getUpdateJobMethod) == null) { - JobControllerGrpc.getUpdateJobMethod = getUpdateJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.UpdateJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.Job.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("UpdateJob")) - .build(); - } - } - } - return getUpdateJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getCancelJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CancelJob", - requestType = com.google.cloud.dataproc.v1.CancelJobRequest.class, - responseType = com.google.cloud.dataproc.v1.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCancelJobMethod() { - io.grpc.MethodDescriptor getCancelJobMethod; - if ((getCancelJobMethod = JobControllerGrpc.getCancelJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getCancelJobMethod = JobControllerGrpc.getCancelJobMethod) == null) { - JobControllerGrpc.getCancelJobMethod = getCancelJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.CancelJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.Job.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("CancelJob")) - .build(); - } - } - } - return getCancelJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteJob", - requestType = com.google.cloud.dataproc.v1.DeleteJobRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteJobMethod() { - io.grpc.MethodDescriptor getDeleteJobMethod; - if ((getDeleteJobMethod = JobControllerGrpc.getDeleteJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getDeleteJobMethod = JobControllerGrpc.getDeleteJobMethod) == null) { - JobControllerGrpc.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.dataproc.v1.DeleteJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("DeleteJob")) - .build(); - } - } - } - return getDeleteJobMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static JobControllerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public JobControllerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerStub(channel, callOptions); - } - }; - return JobControllerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static JobControllerBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public JobControllerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerBlockingStub(channel, callOptions); - } - }; - return JobControllerBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static JobControllerFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public JobControllerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerFutureStub(channel, callOptions); - } - }; - return JobControllerFutureStub.newStub(factory, channel); - } - - /** - *
-   * The JobController provides methods to manage jobs.
-   * 
- */ - public static abstract class JobControllerImplBase implements io.grpc.BindableService { - - /** - *
-     * Submits a job to a cluster.
-     * 
- */ - public void submitJob(com.google.cloud.dataproc.v1.SubmitJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitJobMethod(), responseObserver); - } - - /** - *
-     * Submits job to a cluster.
-     * 
- */ - public void submitJobAsOperation(com.google.cloud.dataproc.v1.SubmitJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitJobAsOperationMethod(), responseObserver); - } - - /** - *
-     * Gets the resource representation for a job in a project.
-     * 
- */ - public void getJob(com.google.cloud.dataproc.v1.GetJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobMethod(), responseObserver); - } - - /** - *
-     * Lists regions/{region}/jobs in a project.
-     * 
- */ - public void listJobs(com.google.cloud.dataproc.v1.ListJobsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListJobsMethod(), responseObserver); - } - - /** - *
-     * Updates a job in a project.
-     * 
- */ - public void updateJob(com.google.cloud.dataproc.v1.UpdateJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateJobMethod(), responseObserver); - } - - /** - *
-     * Starts a job cancellation request. To access the job resource
-     * after cancellation, call
-     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
-     * or
-     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
-     * 
- */ - public void cancelJob(com.google.cloud.dataproc.v1.CancelJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelJobMethod(), responseObserver); - } - - /** - *
-     * Deletes the job from the project. If the job is active, the delete fails,
-     * and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public void deleteJob(com.google.cloud.dataproc.v1.DeleteJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteJobMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getSubmitJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.SubmitJobRequest, - com.google.cloud.dataproc.v1.Job>( - this, METHODID_SUBMIT_JOB))) - .addMethod( - getSubmitJobAsOperationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.SubmitJobRequest, - com.google.longrunning.Operation>( - this, METHODID_SUBMIT_JOB_AS_OPERATION))) - .addMethod( - getGetJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.GetJobRequest, - com.google.cloud.dataproc.v1.Job>( - this, METHODID_GET_JOB))) - .addMethod( - getListJobsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.ListJobsRequest, - com.google.cloud.dataproc.v1.ListJobsResponse>( - this, METHODID_LIST_JOBS))) - .addMethod( - getUpdateJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.UpdateJobRequest, - com.google.cloud.dataproc.v1.Job>( - this, METHODID_UPDATE_JOB))) - .addMethod( - getCancelJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.CancelJobRequest, - com.google.cloud.dataproc.v1.Job>( - this, METHODID_CANCEL_JOB))) - .addMethod( - getDeleteJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.DeleteJobRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_JOB))) - .build(); - } - } - - /** - *
-   * The JobController provides methods to manage jobs.
-   * 
- */ - public static final class JobControllerStub extends io.grpc.stub.AbstractAsyncStub { - private JobControllerStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected JobControllerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerStub(channel, callOptions); - } - - /** - *
-     * Submits a job to a cluster.
-     * 
- */ - public void submitJob(com.google.cloud.dataproc.v1.SubmitJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSubmitJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Submits job to a cluster.
-     * 
- */ - public void submitJobAsOperation(com.google.cloud.dataproc.v1.SubmitJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSubmitJobAsOperationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the resource representation for a job in a project.
-     * 
- */ - public void getJob(com.google.cloud.dataproc.v1.GetJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists regions/{region}/jobs in a project.
-     * 
- */ - public void listJobs(com.google.cloud.dataproc.v1.ListJobsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListJobsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a job in a project.
-     * 
- */ - public void updateJob(com.google.cloud.dataproc.v1.UpdateJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts a job cancellation request. To access the job resource
-     * after cancellation, call
-     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
-     * or
-     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
-     * 
- */ - public void cancelJob(com.google.cloud.dataproc.v1.CancelJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the job from the project. If the job is active, the delete fails,
-     * and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public void deleteJob(com.google.cloud.dataproc.v1.DeleteJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * The JobController provides methods to manage jobs.
-   * 
- */ - public static final class JobControllerBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private JobControllerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected JobControllerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerBlockingStub(channel, callOptions); - } - - /** - *
-     * Submits a job to a cluster.
-     * 
- */ - public com.google.cloud.dataproc.v1.Job submitJob(com.google.cloud.dataproc.v1.SubmitJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSubmitJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Submits job to a cluster.
-     * 
- */ - public com.google.longrunning.Operation submitJobAsOperation(com.google.cloud.dataproc.v1.SubmitJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSubmitJobAsOperationMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the resource representation for a job in a project.
-     * 
- */ - public com.google.cloud.dataproc.v1.Job getJob(com.google.cloud.dataproc.v1.GetJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists regions/{region}/jobs in a project.
-     * 
- */ - public com.google.cloud.dataproc.v1.ListJobsResponse listJobs(com.google.cloud.dataproc.v1.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListJobsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a job in a project.
-     * 
- */ - public com.google.cloud.dataproc.v1.Job updateJob(com.google.cloud.dataproc.v1.UpdateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts a job cancellation request. To access the job resource
-     * after cancellation, call
-     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
-     * or
-     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
-     * 
- */ - public com.google.cloud.dataproc.v1.Job cancelJob(com.google.cloud.dataproc.v1.CancelJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the job from the project. If the job is active, the delete fails,
-     * and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public com.google.protobuf.Empty deleteJob(com.google.cloud.dataproc.v1.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteJobMethod(), getCallOptions(), request); - } - } - - /** - *
-   * The JobController provides methods to manage jobs.
-   * 
- */ - public static final class JobControllerFutureStub extends io.grpc.stub.AbstractFutureStub { - private JobControllerFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected JobControllerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerFutureStub(channel, callOptions); - } - - /** - *
-     * Submits a job to a cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture submitJob( - com.google.cloud.dataproc.v1.SubmitJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSubmitJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Submits job to a cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture submitJobAsOperation( - com.google.cloud.dataproc.v1.SubmitJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSubmitJobAsOperationMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the resource representation for a job in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getJob( - com.google.cloud.dataproc.v1.GetJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists regions/{region}/jobs in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listJobs( - com.google.cloud.dataproc.v1.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListJobsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a job in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateJob( - com.google.cloud.dataproc.v1.UpdateJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts a job cancellation request. To access the job resource
-     * after cancellation, call
-     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
-     * or
-     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture cancelJob( - com.google.cloud.dataproc.v1.CancelJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCancelJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the job from the project. If the job is active, the delete fails,
-     * and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteJob( - com.google.cloud.dataproc.v1.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_SUBMIT_JOB = 0; - private static final int METHODID_SUBMIT_JOB_AS_OPERATION = 1; - private static final int METHODID_GET_JOB = 2; - private static final int METHODID_LIST_JOBS = 3; - private static final int METHODID_UPDATE_JOB = 4; - private static final int METHODID_CANCEL_JOB = 5; - private static final int METHODID_DELETE_JOB = 6; - - 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 JobControllerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(JobControllerImplBase 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_SUBMIT_JOB: - serviceImpl.submitJob((com.google.cloud.dataproc.v1.SubmitJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SUBMIT_JOB_AS_OPERATION: - serviceImpl.submitJobAsOperation((com.google.cloud.dataproc.v1.SubmitJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_JOB: - serviceImpl.getJob((com.google.cloud.dataproc.v1.GetJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_JOBS: - serviceImpl.listJobs((com.google.cloud.dataproc.v1.ListJobsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_JOB: - serviceImpl.updateJob((com.google.cloud.dataproc.v1.UpdateJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CANCEL_JOB: - serviceImpl.cancelJob((com.google.cloud.dataproc.v1.CancelJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_JOB: - serviceImpl.deleteJob((com.google.cloud.dataproc.v1.DeleteJobRequest) 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 JobControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - JobControllerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("JobController"); - } - } - - private static final class JobControllerFileDescriptorSupplier - extends JobControllerBaseDescriptorSupplier { - JobControllerFileDescriptorSupplier() {} - } - - private static final class JobControllerMethodDescriptorSupplier - extends JobControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - JobControllerMethodDescriptorSupplier(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 (JobControllerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new JobControllerFileDescriptorSupplier()) - .addMethod(getSubmitJobMethod()) - .addMethod(getSubmitJobAsOperationMethod()) - .addMethod(getGetJobMethod()) - .addMethod(getListJobsMethod()) - .addMethod(getUpdateJobMethod()) - .addMethod(getCancelJobMethod()) - .addMethod(getDeleteJobMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java deleted file mode 100644 index d26f01201c19..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java +++ /dev/null @@ -1,277 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -public final class AutoscalingPoliciesProto { - private AutoscalingPoliciesProto() {} - 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_dataproc_v1_AutoscalingPolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/dataproc/v1/autoscaling_p" + - "olicies.proto\022\030google.cloud.dataproc.v1\032" + - "\034google/api/annotations.proto\032\027google/ap" + - "i/client.proto\032\037google/api/field_behavio" + - "r.proto\032\031google/api/resource.proto\032\036goog" + - "le/protobuf/duration.proto\032\033google/proto" + - "buf/empty.proto\"\245\005\n\021AutoscalingPolicy\022\n\n" + - "\002id\030\001 \001(\t\022\021\n\004name\030\002 \001(\tB\003\340A\003\022S\n\017basic_al" + - "gorithm\030\003 \001(\01323.google.cloud.dataproc.v1" + - ".BasicAutoscalingAlgorithmB\003\340A\002H\000\022Z\n\rwor" + - "ker_config\030\004 \001(\0132>.google.cloud.dataproc" + - ".v1.InstanceGroupAutoscalingPolicyConfig" + - "B\003\340A\002\022d\n\027secondary_worker_config\030\005 \001(\0132>" + - ".google.cloud.dataproc.v1.InstanceGroupA" + - "utoscalingPolicyConfigB\003\340A\001\022L\n\006labels\030\006 " + - "\003(\01327.google.cloud.dataproc.v1.Autoscali" + - "ngPolicy.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry" + - "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\317\001\352A\313\001\n" + - ")dataproc.googleapis.com/AutoscalingPoli" + - "cy\022Pprojects/{project}/locations/{locati" + - "on}/autoscalingPolicies/{autoscaling_pol" + - "icy}\022Lprojects/{project}/regions/{region" + - "}/autoscalingPolicies/{autoscaling_polic" + - "y}B\013\n\talgorithm\"\260\001\n\031BasicAutoscalingAlgo" + - "rithm\022P\n\013yarn_config\030\001 \001(\01324.google.clou" + - "d.dataproc.v1.BasicYarnAutoscalingConfig" + - "B\003\340A\002H\000\0227\n\017cooldown_period\030\002 \001(\0132\031.googl" + - "e.protobuf.DurationB\003\340A\001B\010\n\006config\"\371\001\n\032B" + - "asicYarnAutoscalingConfig\022E\n\035graceful_de" + - "commission_timeout\030\005 \001(\0132\031.google.protob" + - "uf.DurationB\003\340A\002\022\034\n\017scale_up_factor\030\001 \001(" + - "\001B\003\340A\002\022\036\n\021scale_down_factor\030\002 \001(\001B\003\340A\002\022)" + - "\n\034scale_up_min_worker_fraction\030\003 \001(\001B\003\340A" + - "\001\022+\n\036scale_down_min_worker_fraction\030\004 \001(" + - "\001B\003\340A\001\"s\n$InstanceGroupAutoscalingPolicy" + - "Config\022\032\n\rmin_instances\030\001 \001(\005B\003\340A\001\022\032\n\rma" + - "x_instances\030\002 \001(\005B\003\340A\002\022\023\n\006weight\030\003 \001(\005B\003" + - "\340A\001\"\245\001\n\036CreateAutoscalingPolicyRequest\022A" + - "\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)dataproc.googlea" + - "pis.com/AutoscalingPolicy\022@\n\006policy\030\002 \001(" + - "\0132+.google.cloud.dataproc.v1.Autoscaling" + - "PolicyB\003\340A\002\"^\n\033GetAutoscalingPolicyReque" + - "st\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)dataproc.googl" + - "eapis.com/AutoscalingPolicy\"b\n\036UpdateAut" + - "oscalingPolicyRequest\022@\n\006policy\030\001 \001(\0132+." + - "google.cloud.dataproc.v1.AutoscalingPoli" + - "cyB\003\340A\002\"a\n\036DeleteAutoscalingPolicyReques" + - "t\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)dataproc.google" + - "apis.com/AutoscalingPolicy\"\224\001\n\036ListAutos" + - "calingPoliciesRequest\022A\n\006parent\030\001 \001(\tB1\340" + - "A\002\372A+\022)dataproc.googleapis.com/Autoscali" + - "ngPolicy\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" + - "_token\030\003 \001(\tB\003\340A\001\"\203\001\n\037ListAutoscalingPol" + - "iciesResponse\022B\n\010policies\030\001 \003(\0132+.google" + - ".cloud.dataproc.v1.AutoscalingPolicyB\003\340A" + - "\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\0032\256\013\n\030Auto" + - "scalingPolicyService\022\234\002\n\027CreateAutoscali" + - "ngPolicy\0228.google.cloud.dataproc.v1.Crea" + - "teAutoscalingPolicyRequest\032+.google.clou" + - "d.dataproc.v1.AutoscalingPolicy\"\231\001\202\323\344\223\002\202" + - "\001\"7/v1/{parent=projects/*/locations/*}/a" + - "utoscalingPolicies:\006policyZ?\"5/v1/{paren" + - "t=projects/*/regions/*}/autoscalingPolic" + - "ies:\006policy\332A\rparent,policy\022\243\002\n\027UpdateAu" + - "toscalingPolicy\0228.google.cloud.dataproc." + - "v1.UpdateAutoscalingPolicyRequest\032+.goog" + - "le.cloud.dataproc.v1.AutoscalingPolicy\"\240" + - "\001\202\323\344\223\002\220\001\032>/v1/{policy.name=projects/*/lo" + - "cations/*/autoscalingPolicies/*}:\006policy" + - "ZF\032 - * Optional. The Hive Metastore configuration for this workload. - *
- * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the metastoreConfig field is set. - */ - boolean hasMetastoreConfig(); - /** - *
-   * Optional. The Hive Metastore configuration for this workload.
-   * 
- * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The metastoreConfig. - */ - com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig(); - /** - *
-   * Optional. The Hive Metastore configuration for this workload.
-   * 
- * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder(); - - /** - *
-   * Optional. The Spark History Server configuration for the workload.
-   * 
- * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the sparkHistoryServerConfig field is set. - */ - boolean hasSparkHistoryServerConfig(); - /** - *
-   * Optional. The Spark History Server configuration for the workload.
-   * 
- * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The sparkHistoryServerConfig. - */ - com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig(); - /** - *
-   * Optional. The Spark History Server configuration for the workload.
-   * 
- * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder(); -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java deleted file mode 100644 index 91f6dec7c8ef..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java +++ /dev/null @@ -1,302 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -public final class BatchesProto { - private BatchesProto() {} - 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_dataproc_v1_CreateBatchRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_Batch_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_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/dataproc/v1/batches.proto" + - "\022\030google.cloud.dataproc.v1\032\034google/api/a" + - "nnotations.proto\032\027google/api/client.prot" + - "o\032\037google/api/field_behavior.proto\032\031goog" + - "le/api/resource.proto\032%google/cloud/data" + - "proc/v1/shared.proto\032#google/longrunning" + - "/operations.proto\032\033google/protobuf/empty" + - ".proto\032\037google/protobuf/timestamp.proto\"" + - "\260\001\n\022CreateBatchRequest\0225\n\006parent\030\001 \001(\tB%" + - "\340A\002\372A\037\022\035dataproc.googleapis.com/Batch\0223\n" + - "\005batch\030\002 \001(\0132\037.google.cloud.dataproc.v1." + - "BatchB\003\340A\002\022\025\n\010batch_id\030\003 \001(\tB\003\340A\001\022\027\n\nreq" + - "uest_id\030\004 \001(\tB\003\340A\001\"F\n\017GetBatchRequest\0223\n" + - "\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dataproc.googleapis" + - ".com/Batch\"|\n\022ListBatchesRequest\0225\n\006pare" + - "nt\030\001 \001(\tB%\340A\002\372A\037\022\035dataproc.googleapis.co" + - "m/Batch\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_" + - "token\030\003 \001(\tB\003\340A\001\"`\n\023ListBatchesResponse\022" + - "0\n\007batches\030\001 \003(\0132\037.google.cloud.dataproc" + - ".v1.Batch\022\027\n\017next_page_token\030\002 \001(\t\"I\n\022De" + - "leteBatchRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035" + - "dataproc.googleapis.com/Batch\"\310\n\n\005Batch\022" + - "\021\n\004name\030\001 \001(\tB\003\340A\003\022\021\n\004uuid\030\002 \001(\tB\003\340A\003\0224\n" + - "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" + - "estampB\003\340A\003\022D\n\rpyspark_batch\030\004 \001(\0132&.goo" + - "gle.cloud.dataproc.v1.PySparkBatchB\003\340A\001H" + - "\000\022@\n\013spark_batch\030\005 \001(\0132$.google.cloud.da" + - "taproc.v1.SparkBatchB\003\340A\001H\000\022C\n\rspark_r_b" + - "atch\030\006 \001(\0132%.google.cloud.dataproc.v1.Sp" + - "arkRBatchB\003\340A\001H\000\022G\n\017spark_sql_batch\030\007 \001(" + - "\0132\'.google.cloud.dataproc.v1.SparkSqlBat" + - "chB\003\340A\001H\000\022@\n\014runtime_info\030\010 \001(\0132%.google" + - ".cloud.dataproc.v1.RuntimeInfoB\003\340A\003\0229\n\005s" + - "tate\030\t \001(\0162%.google.cloud.dataproc.v1.Ba" + - "tch.StateB\003\340A\003\022\032\n\rstate_message\030\n \001(\tB\003\340" + - "A\003\0223\n\nstate_time\030\013 \001(\0132\032.google.protobuf" + - ".TimestampB\003\340A\003\022\024\n\007creator\030\014 \001(\tB\003\340A\003\022@\n" + - "\006labels\030\r \003(\0132+.google.cloud.dataproc.v1" + - ".Batch.LabelsEntryB\003\340A\001\022D\n\016runtime_confi" + - "g\030\016 \001(\0132\'.google.cloud.dataproc.v1.Runti" + - "meConfigB\003\340A\001\022L\n\022environment_config\030\017 \001(" + - "\0132+.google.cloud.dataproc.v1.Environment" + - "ConfigB\003\340A\001\022\026\n\toperation\030\020 \001(\tB\003\340A\003\022H\n\rs" + - "tate_history\030\021 \003(\0132,.google.cloud.datapr" + - "oc.v1.Batch.StateHistoryB\003\340A\003\032\240\001\n\014StateH" + - "istory\0229\n\005state\030\001 \001(\0162%.google.cloud.dat" + - "aproc.v1.Batch.StateB\003\340A\003\022\032\n\rstate_messa" + - "ge\030\002 \001(\tB\003\340A\003\0229\n\020state_start_time\030\003 \001(\0132" + - "\032.google.protobuf.TimestampB\003\340A\003\032-\n\013Labe" + - "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + - "r\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDI" + - "NG\020\001\022\013\n\007RUNNING\020\002\022\016\n\nCANCELLING\020\003\022\r\n\tCAN" + - "CELLED\020\004\022\r\n\tSUCCEEDED\020\005\022\n\n\006FAILED\020\006:[\352AX" + - "\n\035dataproc.googleapis.com/Batch\0227project" + - "s/{project}/locations/{location}/batches" + - "/{batch}B\016\n\014batch_config\"\262\001\n\014PySparkBatc" + - "h\022!\n\024main_python_file_uri\030\001 \001(\tB\003\340A\002\022\021\n\004" + - "args\030\002 \003(\tB\003\340A\001\022\035\n\020python_file_uris\030\003 \003(" + - "\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 \003(\tB\003\340A\001\022\026\n\tfi" + - "le_uris\030\005 \003(\tB\003\340A\001\022\031\n\014archive_uris\030\006 \003(\t" + - "B\003\340A\001\"\265\001\n\nSparkBatch\022 \n\021main_jar_file_ur" + - "i\030\001 \001(\tB\003\340A\001H\000\022\031\n\nmain_class\030\002 \001(\tB\003\340A\001H" + - "\000\022\021\n\004args\030\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 " + - "\003(\tB\003\340A\001\022\026\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014arch" + - "ive_uris\030\006 \003(\tB\003\340A\001B\010\n\006driver\"q\n\013SparkRB" + - "atch\022\034\n\017main_r_file_uri\030\001 \001(\tB\003\340A\002\022\021\n\004ar" + - "gs\030\002 \003(\tB\003\340A\001\022\026\n\tfile_uris\030\003 \003(\tB\003\340A\001\022\031\n" + - "\014archive_uris\030\004 \003(\tB\003\340A\001\"\332\001\n\rSparkSqlBat" + - "ch\022\033\n\016query_file_uri\030\001 \001(\tB\003\340A\002\022Y\n\017query" + - "_variables\030\002 \003(\0132;.google.cloud.dataproc" + - ".v1.SparkSqlBatch.QueryVariablesEntryB\003\340" + - "A\001\022\032\n\rjar_file_uris\030\003 \003(\tB\003\340A\001\0325\n\023QueryV" + - "ariablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + - "\t:\0028\0012\235\006\n\017BatchController\022\352\001\n\013CreateBatc" + - "h\022,.google.cloud.dataproc.v1.CreateBatch" + - "Request\032\035.google.longrunning.Operation\"\215" + - "\001\202\323\344\223\0024\"+/v1/{parent=projects/*/location" + - "s/*}/batches:\005batch\332A\025parent,batch,batch" + - "_id\312A8\n\005Batch\022/google.cloud.dataproc.v1." + - "BatchOperationMetadata\022\222\001\n\010GetBatch\022).go" + - "ogle.cloud.dataproc.v1.GetBatchRequest\032\037" + - ".google.cloud.dataproc.v1.Batch\":\202\323\344\223\002-\022" + - "+/v1/{name=projects/*/locations/*/batche" + - "s/*}\332A\004name\022\250\001\n\013ListBatches\022,.google.clo" + - "ud.dataproc.v1.ListBatchesRequest\032-.goog" + - "le.cloud.dataproc.v1.ListBatchesResponse" + - "\"<\202\323\344\223\002-\022+/v1/{parent=projects/*/locatio" + - "ns/*}/batches\332A\006parent\022\217\001\n\013DeleteBatch\022," + - ".google.cloud.dataproc.v1.DeleteBatchReq" + - "uest\032\026.google.protobuf.Empty\":\202\323\344\223\002-*+/v" + - "1/{name=projects/*/locations/*/batches/*" + - "}\332A\004name\032K\312A\027dataproc.googleapis.com\322A.h" + - "ttps://www.googleapis.com/auth/cloud-pla" + - "tformBp\n\034com.google.cloud.dataproc.v1B\014B" + - "atchesProtoP\001Z@google.golang.org/genprot" + - "o/googleapis/cloud/dataproc/v1;dataprocb" + - "\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.dataproc.v1.SharedProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor, - new java.lang.String[] { "Parent", "Batch", "BatchId", "RequestId", }); - internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor, - new java.lang.String[] { "Batches", "NextPageToken", }); - internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_dataproc_v1_Batch_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Batch_descriptor, - new java.lang.String[] { "Name", "Uuid", "CreateTime", "PysparkBatch", "SparkBatch", "SparkRBatch", "SparkSqlBatch", "RuntimeInfo", "State", "StateMessage", "StateTime", "Creator", "Labels", "RuntimeConfig", "EnvironmentConfig", "Operation", "StateHistory", "BatchConfig", }); - internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor = - internal_static_google_cloud_dataproc_v1_Batch_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor, - new java.lang.String[] { "State", "StateMessage", "StateStartTime", }); - internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_Batch_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor, - new java.lang.String[] { "MainPythonFileUri", "Args", "PythonFileUris", "JarFileUris", "FileUris", "ArchiveUris", }); - internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor, - new java.lang.String[] { "MainJarFileUri", "MainClass", "Args", "JarFileUris", "FileUris", "ArchiveUris", "Driver", }); - internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor, - new java.lang.String[] { "MainRFileUri", "Args", "FileUris", "ArchiveUris", }); - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor, - new java.lang.String[] { "QueryFileUri", "QueryVariables", "JarFileUris", }); - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.dataproc.v1.SharedProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java deleted file mode 100644 index c04708e80c84..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java +++ /dev/null @@ -1,893 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public final class ClustersProto { - private ClustersProto() {} - 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_dataproc_v1_Cluster_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_NodeGroup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_NodeGroup_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_NodeGroup_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ReservationAffinity_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/dataproc/v1/clusters.prot" + - "o\022\030google.cloud.dataproc.v1\032\034google/api/" + - "annotations.proto\032\027google/api/client.pro" + - "to\032\037google/api/field_behavior.proto\032\031goo" + - "gle/api/resource.proto\032%google/cloud/dat" + - "aproc/v1/shared.proto\032#google/longrunnin" + - "g/operations.proto\032\036google/protobuf/dura" + - "tion.proto\032 google/protobuf/field_mask.p" + - "roto\032\037google/protobuf/timestamp.proto\"\242\004" + - "\n\007Cluster\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\031\n\014cl" + - "uster_name\030\002 \001(\tB\003\340A\002\022<\n\006config\030\003 \001(\0132\'." + - "google.cloud.dataproc.v1.ClusterConfigB\003" + - "\340A\001\022S\n\026virtual_cluster_config\030\n \001(\0132..go" + - "ogle.cloud.dataproc.v1.VirtualClusterCon" + - "figB\003\340A\001\022B\n\006labels\030\010 \003(\0132-.google.cloud." + - "dataproc.v1.Cluster.LabelsEntryB\003\340A\001\022<\n\006" + - "status\030\004 \001(\0132\'.google.cloud.dataproc.v1." + - "ClusterStatusB\003\340A\003\022D\n\016status_history\030\007 \003" + - "(\0132\'.google.cloud.dataproc.v1.ClusterSta" + - "tusB\003\340A\003\022\031\n\014cluster_uuid\030\006 \001(\tB\003\340A\003\022>\n\007m" + - "etrics\030\t \001(\0132(.google.cloud.dataproc.v1." + - "ClusterMetricsB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\t\n\rClusterCo" + - "nfig\022\032\n\rconfig_bucket\030\001 \001(\tB\003\340A\001\022\030\n\013temp" + - "_bucket\030\002 \001(\tB\003\340A\001\022K\n\022gce_cluster_config" + - "\030\010 \001(\0132*.google.cloud.dataproc.v1.GceClu" + - "sterConfigB\003\340A\001\022I\n\rmaster_config\030\t \001(\0132-" + - ".google.cloud.dataproc.v1.InstanceGroupC" + - "onfigB\003\340A\001\022I\n\rworker_config\030\n \001(\0132-.goog" + - "le.cloud.dataproc.v1.InstanceGroupConfig" + - "B\003\340A\001\022S\n\027secondary_worker_config\030\014 \001(\0132-" + - ".google.cloud.dataproc.v1.InstanceGroupC" + - "onfigB\003\340A\001\022F\n\017software_config\030\r \001(\0132(.go" + - "ogle.cloud.dataproc.v1.SoftwareConfigB\003\340" + - "A\001\022W\n\026initialization_actions\030\013 \003(\01322.goo" + - "gle.cloud.dataproc.v1.NodeInitialization" + - "ActionB\003\340A\001\022J\n\021encryption_config\030\017 \001(\0132*" + - ".google.cloud.dataproc.v1.EncryptionConf" + - "igB\003\340A\001\022L\n\022autoscaling_config\030\022 \001(\0132+.go" + - "ogle.cloud.dataproc.v1.AutoscalingConfig" + - "B\003\340A\001\022F\n\017security_config\030\020 \001(\0132(.google." + - "cloud.dataproc.v1.SecurityConfigB\003\340A\001\022H\n" + - "\020lifecycle_config\030\021 \001(\0132).google.cloud.d" + - "ataproc.v1.LifecycleConfigB\003\340A\001\022F\n\017endpo" + - "int_config\030\023 \001(\0132(.google.cloud.dataproc" + - ".v1.EndpointConfigB\003\340A\001\022H\n\020metastore_con" + - "fig\030\024 \001(\0132).google.cloud.dataproc.v1.Met" + - "astoreConfigB\003\340A\001\022S\n\026dataproc_metric_con" + - "fig\030\027 \001(\0132..google.cloud.dataproc.v1.Dat" + - "aprocMetricConfigB\003\340A\001\022P\n\025auxiliary_node" + - "_groups\030\031 \003(\0132,.google.cloud.dataproc.v1" + - ".AuxiliaryNodeGroupB\003\340A\001\"\204\002\n\024VirtualClus" + - "terConfig\022\033\n\016staging_bucket\030\001 \001(\tB\003\340A\001\022[" + - "\n\031kubernetes_cluster_config\030\006 \001(\01321.goog" + - "le.cloud.dataproc.v1.KubernetesClusterCo" + - "nfigB\003\340A\002H\000\022Y\n\031auxiliary_services_config" + - "\030\007 \001(\01321.google.cloud.dataproc.v1.Auxili" + - "aryServicesConfigB\003\340A\001B\027\n\025infrastructure" + - "_config\"\301\001\n\027AuxiliaryServicesConfig\022H\n\020m" + - "etastore_config\030\001 \001(\0132).google.cloud.dat" + - "aproc.v1.MetastoreConfigB\003\340A\001\022\\\n\033spark_h" + - "istory_server_config\030\002 \001(\01322.google.clou" + - "d.dataproc.v1.SparkHistoryServerConfigB\003" + - "\340A\001\"\272\001\n\016EndpointConfig\022P\n\nhttp_ports\030\001 \003" + - "(\01327.google.cloud.dataproc.v1.EndpointCo" + - "nfig.HttpPortsEntryB\003\340A\003\022$\n\027enable_http_" + - "port_access\030\002 \001(\010B\003\340A\001\0320\n\016HttpPortsEntry" + - "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\",\n\021Auto" + - "scalingConfig\022\027\n\npolicy_uri\030\001 \001(\tB\003\340A\001\"4" + - "\n\020EncryptionConfig\022 \n\023gce_pd_kms_key_nam" + - "e\030\001 \001(\tB\003\340A\001\"\233\007\n\020GceClusterConfig\022\025\n\010zon" + - "e_uri\030\001 \001(\tB\003\340A\001\022\030\n\013network_uri\030\002 \001(\tB\003\340" + - "A\001\022\033\n\016subnetwork_uri\030\006 \001(\tB\003\340A\001\022\035\n\020inter" + - "nal_ip_only\030\007 \001(\010B\003\340A\001\022k\n\032private_ipv6_g" + - "oogle_access\030\014 \001(\0162B.google.cloud.datapr" + - "oc.v1.GceClusterConfig.PrivateIpv6Google" + - "AccessB\003\340A\001\022\034\n\017service_account\030\010 \001(\tB\003\340A" + - "\001\022#\n\026service_account_scopes\030\003 \003(\tB\003\340A\001\022\014" + - "\n\004tags\030\004 \003(\t\022J\n\010metadata\030\005 \003(\01328.google." + - "cloud.dataproc.v1.GceClusterConfig.Metad" + - "ataEntry\022P\n\024reservation_affinity\030\013 \001(\0132-" + - ".google.cloud.dataproc.v1.ReservationAff" + - "inityB\003\340A\001\022M\n\023node_group_affinity\030\r \001(\0132" + - "+.google.cloud.dataproc.v1.NodeGroupAffi" + - "nityB\003\340A\001\022W\n\030shielded_instance_config\030\016 " + - "\001(\01320.google.cloud.dataproc.v1.ShieldedI" + - "nstanceConfigB\003\340A\001\022_\n\034confidential_insta" + - "nce_config\030\017 \001(\01324.google.cloud.dataproc" + - ".v1.ConfidentialInstanceConfigB\003\340A\001\032/\n\rM" + - "etadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + - ":\0028\001\"\203\001\n\027PrivateIpv6GoogleAccess\022*\n&PRIV" + - "ATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\020\000\022\033\n\027" + - "INHERIT_FROM_SUBNETWORK\020\001\022\014\n\010OUTBOUND\020\002\022" + - "\021\n\rBIDIRECTIONAL\020\003\"0\n\021NodeGroupAffinity\022" + - "\033\n\016node_group_uri\030\001 \001(\tB\003\340A\002\"}\n\026Shielded" + - "InstanceConfig\022\037\n\022enable_secure_boot\030\001 \001" + - "(\010B\003\340A\001\022\030\n\013enable_vtpm\030\002 \001(\010B\003\340A\001\022(\n\033ena" + - "ble_integrity_monitoring\030\003 \001(\010B\003\340A\001\"F\n\032C" + - "onfidentialInstanceConfig\022(\n\033enable_conf" + - "idential_compute\030\001 \001(\010B\003\340A\001\"\315\004\n\023Instance" + - "GroupConfig\022\032\n\rnum_instances\030\001 \001(\005B\003\340A\001\022" + - "\033\n\016instance_names\030\002 \003(\tB\003\340A\003\022\026\n\timage_ur" + - "i\030\003 \001(\tB\003\340A\001\022\035\n\020machine_type_uri\030\004 \001(\tB\003" + - "\340A\001\022>\n\013disk_config\030\005 \001(\0132$.google.cloud." + - "dataproc.v1.DiskConfigB\003\340A\001\022\033\n\016is_preemp" + - "tible\030\006 \001(\010B\003\340A\003\022Y\n\016preemptibility\030\n \001(\016" + - "2<.google.cloud.dataproc.v1.InstanceGrou" + - "pConfig.PreemptibilityB\003\340A\001\022O\n\024managed_g" + - "roup_config\030\007 \001(\0132,.google.cloud.datapro" + - "c.v1.ManagedGroupConfigB\003\340A\003\022F\n\014accelera" + - "tors\030\010 \003(\0132+.google.cloud.dataproc.v1.Ac" + - "celeratorConfigB\003\340A\001\022\035\n\020min_cpu_platform" + - "\030\t \001(\tB\003\340A\001\"V\n\016Preemptibility\022\036\n\032PREEMPT" + - "IBILITY_UNSPECIFIED\020\000\022\023\n\017NON_PREEMPTIBLE" + - "\020\001\022\017\n\013PREEMPTIBLE\020\002\"c\n\022ManagedGroupConfi" + - "g\022#\n\026instance_template_name\030\001 \001(\tB\003\340A\003\022(" + - "\n\033instance_group_manager_name\030\002 \001(\tB\003\340A\003" + - "\"L\n\021AcceleratorConfig\022\034\n\024accelerator_typ" + - "e_uri\030\001 \001(\t\022\031\n\021accelerator_count\030\002 \001(\005\"\210" + - "\001\n\nDiskConfig\022\033\n\016boot_disk_type\030\003 \001(\tB\003\340" + - "A\001\022\036\n\021boot_disk_size_gb\030\001 \001(\005B\003\340A\001\022\033\n\016nu" + - "m_local_ssds\030\002 \001(\005B\003\340A\001\022 \n\023local_ssd_int" + - "erface\030\004 \001(\tB\003\340A\001\"n\n\022AuxiliaryNodeGroup\022" + - "<\n\nnode_group\030\001 \001(\0132#.google.cloud.datap" + - "roc.v1.NodeGroupB\003\340A\002\022\032\n\rnode_group_id\030\002" + - " \001(\tB\003\340A\001\"\275\003\n\tNodeGroup\022\014\n\004name\030\001 \001(\t\022<\n" + - "\005roles\030\002 \003(\0162(.google.cloud.dataproc.v1." + - "NodeGroup.RoleB\003\340A\002\022M\n\021node_group_config" + - "\030\003 \001(\0132-.google.cloud.dataproc.v1.Instan" + - "ceGroupConfigB\003\340A\001\022D\n\006labels\030\004 \003(\0132/.goo" + - "gle.cloud.dataproc.v1.NodeGroup.LabelsEn" + - "tryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001\"(\n\004Role\022\024\n\020ROLE_UNSPECIF" + - "IED\020\000\022\n\n\006DRIVER\020\001:v\352As\n!dataproc.googlea" + - "pis.com/NodeGroup\022Nprojects/{project}/re" + - "gions/{region}/clusters/{cluster}/nodeGr" + - "oups/{node_group}\"s\n\030NodeInitializationA" + - "ction\022\034\n\017executable_file\030\001 \001(\tB\003\340A\002\0229\n\021e" + - "xecution_timeout\030\002 \001(\0132\031.google.protobuf" + - ".DurationB\003\340A\001\"\307\003\n\rClusterStatus\022A\n\005stat" + - "e\030\001 \001(\0162-.google.cloud.dataproc.v1.Clust" + - "erStatus.StateB\003\340A\003\022\026\n\006detail\030\002 \001(\tB\006\340A\003" + - "\340A\001\0229\n\020state_start_time\030\003 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\022G\n\010substate\030\004 \001(\016" + - "20.google.cloud.dataproc.v1.ClusterStatu" + - "s.SubstateB\003\340A\003\"\230\001\n\005State\022\013\n\007UNKNOWN\020\000\022\014" + - "\n\010CREATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003\022\027\n\023" + - "ERROR_DUE_TO_UPDATE\020\t\022\014\n\010DELETING\020\004\022\014\n\010U" + - "PDATING\020\005\022\014\n\010STOPPING\020\006\022\013\n\007STOPPED\020\007\022\014\n\010" + - "STARTING\020\010\"<\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022" + - "\r\n\tUNHEALTHY\020\001\022\020\n\014STALE_STATUS\020\002\"\240\001\n\016Sec" + - "urityConfig\022F\n\017kerberos_config\030\001 \001(\0132(.g" + - "oogle.cloud.dataproc.v1.KerberosConfigB\003" + - "\340A\001\022F\n\017identity_config\030\002 \001(\0132(.google.cl" + - "oud.dataproc.v1.IdentityConfigB\003\340A\001\"\220\004\n\016" + - "KerberosConfig\022\034\n\017enable_kerberos\030\001 \001(\010B" + - "\003\340A\001\022(\n\033root_principal_password_uri\030\002 \001(" + - "\tB\003\340A\001\022\030\n\013kms_key_uri\030\003 \001(\tB\003\340A\001\022\031\n\014keys" + - "tore_uri\030\004 \001(\tB\003\340A\001\022\033\n\016truststore_uri\030\005 " + - "\001(\tB\003\340A\001\022\"\n\025keystore_password_uri\030\006 \001(\tB" + - "\003\340A\001\022\035\n\020key_password_uri\030\007 \001(\tB\003\340A\001\022$\n\027t" + - "ruststore_password_uri\030\010 \001(\tB\003\340A\001\022$\n\027cro" + - "ss_realm_trust_realm\030\t \001(\tB\003\340A\001\022\"\n\025cross" + - "_realm_trust_kdc\030\n \001(\tB\003\340A\001\022+\n\036cross_rea" + - "lm_trust_admin_server\030\013 \001(\tB\003\340A\001\0222\n%cros" + - "s_realm_trust_shared_password_uri\030\014 \001(\tB" + - "\003\340A\001\022\033\n\016kdc_db_key_uri\030\r \001(\tB\003\340A\001\022\037\n\022tgt" + - "_lifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n\005realm\030\017 \001(" + - "\tB\003\340A\001\"\306\001\n\016IdentityConfig\022r\n\034user_servic" + - "e_account_mapping\030\001 \003(\0132G.google.cloud.d" + - "ataproc.v1.IdentityConfig.UserServiceAcc" + - "ountMappingEntryB\003\340A\002\032@\n\036UserServiceAcco" + - "untMappingEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001\"\371\001\n\016SoftwareConfig\022\032\n\rimage_vers" + - "ion\030\001 \001(\tB\003\340A\001\022Q\n\nproperties\030\002 \003(\01328.goo" + - "gle.cloud.dataproc.v1.SoftwareConfig.Pro" + - "pertiesEntryB\003\340A\001\022E\n\023optional_components" + - "\030\003 \003(\0162#.google.cloud.dataproc.v1.Compon" + - "entB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t" + - "\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\002\n\017LifecycleConfig\022" + - "7\n\017idle_delete_ttl\030\001 \001(\0132\031.google.protob" + - "uf.DurationB\003\340A\001\022;\n\020auto_delete_time\030\002 \001" + - "(\0132\032.google.protobuf.TimestampB\003\340A\001H\000\0229\n" + - "\017auto_delete_ttl\030\003 \001(\0132\031.google.protobuf" + - ".DurationB\003\340A\001H\000\0228\n\017idle_start_time\030\004 \001(" + - "\0132\032.google.protobuf.TimestampB\003\340A\003B\005\n\003tt" + - "l\"_\n\017MetastoreConfig\022L\n\032dataproc_metasto" + - "re_service\030\001 \001(\tB(\340A\002\372A\"\n metastore.goog" + - "leapis.com/Service\"\377\002\n\024DataprocMetricCon" + - "fig\022K\n\007metrics\030\001 \003(\01325.google.cloud.data" + - "proc.v1.DataprocMetricConfig.MetricB\003\340A\002" + - "\032\200\001\n\006Metric\022W\n\rmetric_source\030\001 \001(\0162;.goo" + - "gle.cloud.dataproc.v1.DataprocMetricConf" + - "ig.MetricSourceB\003\340A\002\022\035\n\020metric_overrides" + - "\030\002 \003(\tB\003\340A\001\"\226\001\n\014MetricSource\022\035\n\031METRIC_S" + - "OURCE_UNSPECIFIED\020\000\022\035\n\031MONITORING_AGENT_" + - "DEFAULTS\020\001\022\010\n\004HDFS\020\002\022\t\n\005SPARK\020\003\022\010\n\004YARN\020" + - "\004\022\030\n\024SPARK_HISTORY_SERVER\020\005\022\017\n\013HIVESERVE" + - "R2\020\006\"\232\002\n\016ClusterMetrics\022O\n\014hdfs_metrics\030" + - "\001 \003(\01329.google.cloud.dataproc.v1.Cluster" + - "Metrics.HdfsMetricsEntry\022O\n\014yarn_metrics" + - "\030\002 \003(\01329.google.cloud.dataproc.v1.Cluste" + - "rMetrics.YarnMetricsEntry\0322\n\020HdfsMetrics" + - "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0322\n" + - "\020YarnMetricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + - "\002 \001(\003:\0028\001\"\356\001\n\024CreateClusterRequest\022\027\n\npr" + - "oject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002" + - "\0227\n\007cluster\030\002 \001(\0132!.google.cloud.datapro" + - "c.v1.ClusterB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340" + - "A\001\022V\n action_on_failed_primary_workers\030\005" + - " \001(\0162\'.google.cloud.dataproc.v1.FailureA" + - "ctionB\003\340A\001\"\256\002\n\024UpdateClusterRequest\022\027\n\np" + - "roject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\005 \001(\tB\003\340A" + - "\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\0227\n\007cluster\030" + - "\003 \001(\0132!.google.cloud.dataproc.v1.Cluster" + - "B\003\340A\002\022E\n\035graceful_decommission_timeout\030\006" + - " \001(\0132\031.google.protobuf.DurationB\003\340A\001\0224\n\013" + - "update_mask\030\004 \001(\0132\032.google.protobuf.Fiel" + - "dMaskB\003\340A\002\022\027\n\nrequest_id\030\007 \001(\tB\003\340A\001\"\221\001\n\022" + - "StopClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003" + - "\340A\002\022\023\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_name" + - "\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027" + - "\n\nrequest_id\030\005 \001(\tB\003\340A\001\"\222\001\n\023StartCluster" + - "Request\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006regi" + - "on\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\003 \001(\tB\003\340A\002" + - "\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_i" + - "d\030\005 \001(\tB\003\340A\001\"\223\001\n\024DeleteClusterRequest\022\027\n" + - "\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003" + - "\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\022\031\n\014cluste" + - "r_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340" + - "A\001\"\\\n\021GetClusterRequest\022\027\n\nproject_id\030\001 " + - "\001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster" + - "_name\030\002 \001(\tB\003\340A\002\"\211\001\n\023ListClustersRequest" + - "\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\004 \001(" + - "\tB\003\340A\002\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\026\n\tpage_size" + - "\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"n\n\024" + - "ListClustersResponse\0228\n\010clusters\030\001 \003(\0132!" + - ".google.cloud.dataproc.v1.ClusterB\003\340A\003\022\034" + - "\n\017next_page_token\030\002 \001(\tB\003\340A\003\"a\n\026Diagnose" + - "ClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022" + - "\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001" + - "(\tB\003\340A\002\"1\n\026DiagnoseClusterResults\022\027\n\nout" + - "put_uri\030\001 \001(\tB\003\340A\003\"\370\001\n\023ReservationAffini" + - "ty\022Y\n\030consume_reservation_type\030\001 \001(\01622.g" + - "oogle.cloud.dataproc.v1.ReservationAffin" + - "ity.TypeB\003\340A\001\022\020\n\003key\030\002 \001(\tB\003\340A\001\022\023\n\006value" + - "s\030\003 \003(\tB\003\340A\001\"_\n\004Type\022\024\n\020TYPE_UNSPECIFIED" + - "\020\000\022\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY_RESERVATIO" + - "N\020\002\022\030\n\024SPECIFIC_RESERVATION\020\0032\344\020\n\021Cluste" + - "rController\022\200\002\n\rCreateCluster\022..google.c" + - "loud.dataproc.v1.CreateClusterRequest\032\035." + - "google.longrunning.Operation\"\237\001\202\323\344\223\002>\"3/" + - "v1/projects/{project_id}/regions/{region" + - "}/clusters:\007cluster\332A\031project_id,region," + - "cluster\312A<\n\007Cluster\0221google.cloud.datapr" + - "oc.v1.ClusterOperationMetadata\022\250\002\n\rUpdat" + - "eCluster\022..google.cloud.dataproc.v1.Upda" + - "teClusterRequest\032\035.google.longrunning.Op" + - "eration\"\307\001\202\323\344\223\002M2B/v1/projects/{project_" + - "id}/regions/{region}/clusters/{cluster_n" + - "ame}:\007cluster\332A2project_id,region,cluste" + - "r_name,cluster,update_mask\312A<\n\007Cluster\0221" + - "google.cloud.dataproc.v1.ClusterOperatio" + - "nMetadata\022\356\001\n\013StopCluster\022,.google.cloud" + - ".dataproc.v1.StopClusterRequest\032\035.google" + - ".longrunning.Operation\"\221\001\202\323\344\223\002L\"G/v1/pro" + - "jects/{project_id}/regions/{region}/clus" + - "ters/{cluster_name}:stop:\001*\312A<\n\007Cluster\022" + - "1google.cloud.dataproc.v1.ClusterOperati" + - "onMetadata\022\361\001\n\014StartCluster\022-.google.clo" + - "ud.dataproc.v1.StartClusterRequest\032\035.goo" + - "gle.longrunning.Operation\"\222\001\202\323\344\223\002M\"H/v1/" + - "projects/{project_id}/regions/{region}/c" + - "lusters/{cluster_name}:start:\001*\312A<\n\007Clus" + - "ter\0221google.cloud.dataproc.v1.ClusterOpe" + - "rationMetadata\022\231\002\n\rDeleteCluster\022..googl" + - "e.cloud.dataproc.v1.DeleteClusterRequest" + - "\032\035.google.longrunning.Operation\"\270\001\202\323\344\223\002D" + - "*B/v1/projects/{project_id}/regions/{reg" + - "ion}/clusters/{cluster_name}\332A\036project_i" + - "d,region,cluster_name\312AJ\n\025google.protobu" + - "f.Empty\0221google.cloud.dataproc.v1.Cluste" + - "rOperationMetadata\022\311\001\n\nGetCluster\022+.goog" + - "le.cloud.dataproc.v1.GetClusterRequest\032!" + - ".google.cloud.dataproc.v1.Cluster\"k\202\323\344\223\002" + - "D\022B/v1/projects/{project_id}/regions/{re" + - "gion}/clusters/{cluster_name}\332A\036project_" + - "id,region,cluster_name\022\331\001\n\014ListClusters\022" + - "-.google.cloud.dataproc.v1.ListClustersR" + - "equest\032..google.cloud.dataproc.v1.ListCl" + - "ustersResponse\"j\202\323\344\223\0025\0223/v1/projects/{pr" + - "oject_id}/regions/{region}/clusters\332A\021pr" + - "oject_id,region\332A\030project_id,region,filt" + - "er\022\252\002\n\017DiagnoseCluster\0220.google.cloud.da" + - "taproc.v1.DiagnoseClusterRequest\032\035.googl" + - "e.longrunning.Operation\"\305\001\202\323\344\223\002P\"K/v1/pr" + - "ojects/{project_id}/regions/{region}/clu" + - "sters/{cluster_name}:diagnose:\001*\332A\036proje" + - "ct_id,region,cluster_name\312AK\n\026DiagnoseCl" + - "usterResults\0221google.cloud.dataproc.v1.C" + - "lusterOperationMetadata\032K\312A\027dataproc.goo" + - "gleapis.com\322A.https://www.googleapis.com" + - "/auth/cloud-platformB\263\002\n\034com.google.clou" + - "d.dataproc.v1B\rClustersProtoP\001Z@google.g" + - "olang.org/genproto/googleapis/cloud/data" + - "proc/v1;dataproc\352A^\n container.googleapi" + - "s.com/Cluster\022:projects/{project}/locati" + - "ons/{location}/clusters/{cluster}\352A^\n me" + - "tastore.googleapis.com/Service\022:projects" + - "/{project}/locations/{location}/services" + - "/{service}b\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.dataproc.v1.SharedProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1_Cluster_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Cluster_descriptor, - new java.lang.String[] { "ProjectId", "ClusterName", "Config", "VirtualClusterConfig", "Labels", "Status", "StatusHistory", "ClusterUuid", "Metrics", }); - internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_Cluster_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor, - new java.lang.String[] { "ConfigBucket", "TempBucket", "GceClusterConfig", "MasterConfig", "WorkerConfig", "SecondaryWorkerConfig", "SoftwareConfig", "InitializationActions", "EncryptionConfig", "AutoscalingConfig", "SecurityConfig", "LifecycleConfig", "EndpointConfig", "MetastoreConfig", "DataprocMetricConfig", "AuxiliaryNodeGroups", }); - internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor, - new java.lang.String[] { "StagingBucket", "KubernetesClusterConfig", "AuxiliaryServicesConfig", "InfrastructureConfig", }); - internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor, - new java.lang.String[] { "MetastoreConfig", "SparkHistoryServerConfig", }); - internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor, - new java.lang.String[] { "HttpPorts", "EnableHttpPortAccess", }); - internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor, - new java.lang.String[] { "PolicyUri", }); - internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor, - new java.lang.String[] { "GcePdKmsKeyName", }); - internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor, - new java.lang.String[] { "ZoneUri", "NetworkUri", "SubnetworkUri", "InternalIpOnly", "PrivateIpv6GoogleAccess", "ServiceAccount", "ServiceAccountScopes", "Tags", "Metadata", "ReservationAffinity", "NodeGroupAffinity", "ShieldedInstanceConfig", "ConfidentialInstanceConfig", }); - internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor = - internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor, - new java.lang.String[] { "NodeGroupUri", }); - internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor, - new java.lang.String[] { "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", }); - internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor, - new java.lang.String[] { "EnableConfidentialCompute", }); - internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor, - new java.lang.String[] { "NumInstances", "InstanceNames", "ImageUri", "MachineTypeUri", "DiskConfig", "IsPreemptible", "Preemptibility", "ManagedGroupConfig", "Accelerators", "MinCpuPlatform", }); - internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor, - new java.lang.String[] { "InstanceTemplateName", "InstanceGroupManagerName", }); - internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor, - new java.lang.String[] { "AcceleratorTypeUri", "AcceleratorCount", }); - internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor, - new java.lang.String[] { "BootDiskType", "BootDiskSizeGb", "NumLocalSsds", "LocalSsdInterface", }); - internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor, - new java.lang.String[] { "NodeGroup", "NodeGroupId", }); - internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_dataproc_v1_NodeGroup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor, - new java.lang.String[] { "Name", "Roles", "NodeGroupConfig", "Labels", }); - internal_static_google_cloud_dataproc_v1_NodeGroup_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_NodeGroup_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_NodeGroup_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor, - new java.lang.String[] { "ExecutableFile", "ExecutionTimeout", }); - internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor, - new java.lang.String[] { "State", "Detail", "StateStartTime", "Substate", }); - internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor, - new java.lang.String[] { "KerberosConfig", "IdentityConfig", }); - internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor, - new java.lang.String[] { "EnableKerberos", "RootPrincipalPasswordUri", "KmsKeyUri", "KeystoreUri", "TruststoreUri", "KeystorePasswordUri", "KeyPasswordUri", "TruststorePasswordUri", "CrossRealmTrustRealm", "CrossRealmTrustKdc", "CrossRealmTrustAdminServer", "CrossRealmTrustSharedPasswordUri", "KdcDbKeyUri", "TgtLifetimeHours", "Realm", }); - internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor, - new java.lang.String[] { "UserServiceAccountMapping", }); - internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor = - internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor, - new java.lang.String[] { "ImageVersion", "Properties", "OptionalComponents", }); - internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor, - new java.lang.String[] { "IdleDeleteTtl", "AutoDeleteTime", "AutoDeleteTtl", "IdleStartTime", "Ttl", }); - internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor, - new java.lang.String[] { "DataprocMetastoreService", }); - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor, - new java.lang.String[] { "Metrics", }); - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor = - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor, - new java.lang.String[] { "MetricSource", "MetricOverrides", }); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor, - new java.lang.String[] { "HdfsMetrics", "YarnMetrics", }); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor, - new java.lang.String[] { "ProjectId", "Region", "Cluster", "RequestId", "ActionOnFailedPrimaryWorkers", }); - internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor, - new java.lang.String[] { "ProjectId", "Region", "ClusterName", "Cluster", "GracefulDecommissionTimeout", "UpdateMask", "RequestId", }); - internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor, - new java.lang.String[] { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); - internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor, - new java.lang.String[] { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); - internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor, - new java.lang.String[] { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); - internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor, - new java.lang.String[] { "ProjectId", "Region", "ClusterName", }); - internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor, - new java.lang.String[] { "ProjectId", "Region", "Filter", "PageSize", "PageToken", }); - internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor, - new java.lang.String[] { "Clusters", "NextPageToken", }); - internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor, - new java.lang.String[] { "ProjectId", "Region", "ClusterName", }); - internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor, - new java.lang.String[] { "OutputUri", }); - internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor, - new java.lang.String[] { "ConsumeReservationType", "Key", "Values", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - 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.dataproc.v1.SharedProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java deleted file mode 100644 index 1ddda0d301c2..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java +++ /dev/null @@ -1,20 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface ConfidentialInstanceConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ConfidentialInstanceConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Optional. Defines whether the instance should have confidential compute
-   * enabled.
-   * 
- * - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The enableConfidentialCompute. - */ - boolean getEnableConfidentialCompute(); -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java deleted file mode 100644 index 949a80766920..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface DataprocMetricConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DataprocMetricConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Metrics sources to enable.
-   * 
- * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getMetricsList(); - /** - *
-   * Required. Metrics sources to enable.
-   * 
- * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getMetrics(int index); - /** - *
-   * Required. Metrics sources to enable.
-   * 
- * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - int getMetricsCount(); - /** - *
-   * Required. Metrics sources to enable.
-   * 
- * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getMetricsOrBuilderList(); - /** - *
-   * Required. Metrics sources to enable.
-   * 
- * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder getMetricsOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java deleted file mode 100644 index a40d86c1607f..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -public interface DeleteBatchRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DeleteBatchRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the batch resource to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the batch resource to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java deleted file mode 100644 index 6dbb332657a4..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -public interface EnvironmentConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.EnvironmentConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Optional. Execution configuration for a workload.
-   * 
- * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the executionConfig field is set. - */ - boolean hasExecutionConfig(); - /** - *
-   * Optional. Execution configuration for a workload.
-   * 
- * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The executionConfig. - */ - com.google.cloud.dataproc.v1.ExecutionConfig getExecutionConfig(); - /** - *
-   * Optional. Execution configuration for a workload.
-   * 
- * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder getExecutionConfigOrBuilder(); - - /** - *
-   * Optional. Peripherals configuration that workload has access to.
-   * 
- * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the peripheralsConfig field is set. - */ - boolean hasPeripheralsConfig(); - /** - *
-   * Optional. Peripherals configuration that workload has access to.
-   * 
- * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The peripheralsConfig. - */ - com.google.cloud.dataproc.v1.PeripheralsConfig getPeripheralsConfig(); - /** - *
-   * Optional. Peripherals configuration that workload has access to.
-   * 
- * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder getPeripheralsConfigOrBuilder(); -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java deleted file mode 100644 index 09771c24601b..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -public interface GetBatchRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetBatchRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the batch to retrieve.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the batch to retrieve.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequestOrBuilder.java deleted file mode 100644 index 48a868b1d154..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetNodeGroupRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/node_groups.proto - -package com.google.cloud.dataproc.v1; - -public interface GetNodeGroupRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetNodeGroupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the node group to retrieve.
-   * Format:
-   * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the node group to retrieve.
-   * Format:
-   * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java deleted file mode 100644 index 67403d5ae433..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java +++ /dev/null @@ -1,65 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface IdentityConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.IdentityConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Map of user to service account.
-   * 
- * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - int getUserServiceAccountMappingCount(); - /** - *
-   * Required. Map of user to service account.
-   * 
- * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - boolean containsUserServiceAccountMapping( - java.lang.String key); - /** - * Use {@link #getUserServiceAccountMappingMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getUserServiceAccountMapping(); - /** - *
-   * Required. Map of user to service account.
-   * 
- * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.Map - getUserServiceAccountMappingMap(); - /** - *
-   * Required. Map of user to service account.
-   * 
- * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - - /* nullable */ -java.lang.String getUserServiceAccountMappingOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - *
-   * Required. Map of user to service account.
-   * 
- * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - - java.lang.String getUserServiceAccountMappingOrThrow( - java.lang.String key); -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java deleted file mode 100644 index 67afe5f7a452..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java +++ /dev/null @@ -1,714 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public final class JobsProto { - private JobsProto() {} - 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_dataproc_v1_LoggingConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkJob_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_QueryList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_HiveJob_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PigJob_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_JobReference_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_Job_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DeleteJobRequest_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/dataproc/v1/jobs.proto\022\030g" + - "oogle.cloud.dataproc.v1\032\034google/api/anno" + - "tations.proto\032\027google/api/client.proto\032\037" + - "google/api/field_behavior.proto\032#google/" + - "longrunning/operations.proto\032\033google/pro" + - "tobuf/empty.proto\032 google/protobuf/field" + - "_mask.proto\032\037google/protobuf/timestamp.p" + - "roto\"\301\002\n\rLoggingConfig\022W\n\021driver_log_lev" + - "els\030\002 \003(\0132<.google.cloud.dataproc.v1.Log" + - "gingConfig.DriverLogLevelsEntry\032e\n\024Drive" + - "rLogLevelsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 " + - "\001(\0162-.google.cloud.dataproc.v1.LoggingCo" + - "nfig.Level:\0028\001\"p\n\005Level\022\025\n\021LEVEL_UNSPECI" + - "FIED\020\000\022\007\n\003ALL\020\001\022\t\n\005TRACE\020\002\022\t\n\005DEBUG\020\003\022\010\n" + - "\004INFO\020\004\022\010\n\004WARN\020\005\022\t\n\005ERROR\020\006\022\t\n\005FATAL\020\007\022" + - "\007\n\003OFF\020\010\"\361\002\n\tHadoopJob\022\033\n\021main_jar_file_" + - "uri\030\001 \001(\tH\000\022\024\n\nmain_class\030\002 \001(\tH\000\022\021\n\004arg" + - "s\030\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 \003(\tB\003\340A\001" + - "\022\026\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014archive_uris" + - "\030\006 \003(\tB\003\340A\001\022L\n\nproperties\030\007 \003(\01323.google" + - ".cloud.dataproc.v1.HadoopJob.PropertiesE" + - "ntryB\003\340A\001\022D\n\016logging_config\030\010 \001(\0132\'.goog" + - "le.cloud.dataproc.v1.LoggingConfigB\003\340A\001\032" + - "1\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + - "\030\002 \001(\t:\0028\001B\010\n\006driver\"\357\002\n\010SparkJob\022\033\n\021mai" + - "n_jar_file_uri\030\001 \001(\tH\000\022\024\n\nmain_class\030\002 \001" + - "(\tH\000\022\021\n\004args\030\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris" + - "\030\004 \003(\tB\003\340A\001\022\026\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014a" + - "rchive_uris\030\006 \003(\tB\003\340A\001\022K\n\nproperties\030\007 \003" + - "(\01322.google.cloud.dataproc.v1.SparkJob.P" + - "ropertiesEntryB\003\340A\001\022D\n\016logging_config\030\010 " + - "\001(\0132\'.google.cloud.dataproc.v1.LoggingCo" + - "nfigB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(" + - "\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006driver\"\370\002\n\nPySpa" + - "rkJob\022!\n\024main_python_file_uri\030\001 \001(\tB\003\340A\002" + - "\022\021\n\004args\030\002 \003(\tB\003\340A\001\022\035\n\020python_file_uris\030" + - "\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 \003(\tB\003\340A\001\022\026" + - "\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014archive_uris\030\006" + - " \003(\tB\003\340A\001\022M\n\nproperties\030\007 \003(\01324.google.c" + - "loud.dataproc.v1.PySparkJob.PropertiesEn" + - "tryB\003\340A\001\022D\n\016logging_config\030\010 \001(\0132\'.googl" + - "e.cloud.dataproc.v1.LoggingConfigB\003\340A\001\0321" + - "\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + - "\002 \001(\t:\0028\001\"!\n\tQueryList\022\024\n\007queries\030\001 \003(\tB" + - "\003\340A\002\"\265\003\n\007HiveJob\022\030\n\016query_file_uri\030\001 \001(\t" + - "H\000\0229\n\nquery_list\030\002 \001(\0132#.google.cloud.da" + - "taproc.v1.QueryListH\000\022 \n\023continue_on_fai" + - "lure\030\003 \001(\010B\003\340A\001\022U\n\020script_variables\030\004 \003(" + - "\01326.google.cloud.dataproc.v1.HiveJob.Scr" + - "iptVariablesEntryB\003\340A\001\022J\n\nproperties\030\005 \003" + - "(\01321.google.cloud.dataproc.v1.HiveJob.Pr" + - "opertiesEntryB\003\340A\001\022\032\n\rjar_file_uris\030\006 \003(" + - "\tB\003\340A\001\0326\n\024ScriptVariablesEntry\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017PropertiesEntr" + - "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007que" + - "ries\"\345\003\n\013SparkSqlJob\022\030\n\016query_file_uri\030\001" + - " \001(\tH\000\0229\n\nquery_list\030\002 \001(\0132#.google.clou" + - "d.dataproc.v1.QueryListH\000\022Y\n\020script_vari" + - "ables\030\003 \003(\0132:.google.cloud.dataproc.v1.S" + - "parkSqlJob.ScriptVariablesEntryB\003\340A\001\022N\n\n" + - "properties\030\004 \003(\01325.google.cloud.dataproc" + - ".v1.SparkSqlJob.PropertiesEntryB\003\340A\001\022\032\n\r" + - "jar_file_uris\0308 \003(\tB\003\340A\001\022D\n\016logging_conf" + - "ig\030\006 \001(\0132\'.google.cloud.dataproc.v1.Logg" + - "ingConfigB\003\340A\001\0326\n\024ScriptVariablesEntry\022\013" + - "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017Proper" + - "tiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001B\t\n\007queries\"\370\003\n\006PigJob\022\030\n\016query_file_ur" + - "i\030\001 \001(\tH\000\0229\n\nquery_list\030\002 \001(\0132#.google.c" + - "loud.dataproc.v1.QueryListH\000\022 \n\023continue" + - "_on_failure\030\003 \001(\010B\003\340A\001\022T\n\020script_variabl" + - "es\030\004 \003(\01325.google.cloud.dataproc.v1.PigJ" + - "ob.ScriptVariablesEntryB\003\340A\001\022I\n\nproperti" + - "es\030\005 \003(\01320.google.cloud.dataproc.v1.PigJ" + - "ob.PropertiesEntryB\003\340A\001\022\032\n\rjar_file_uris" + - "\030\006 \003(\tB\003\340A\001\022D\n\016logging_config\030\007 \001(\0132\'.go" + - "ogle.cloud.dataproc.v1.LoggingConfigB\003\340A" + - "\001\0326\n\024ScriptVariablesEntry\022\013\n\003key\030\001 \001(\t\022\r" + - "\n\005value\030\002 \001(\t:\0028\001\0321\n\017PropertiesEntry\022\013\n\003" + - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007queries\"" + - "\266\002\n\tSparkRJob\022\034\n\017main_r_file_uri\030\001 \001(\tB\003" + - "\340A\002\022\021\n\004args\030\002 \003(\tB\003\340A\001\022\026\n\tfile_uris\030\003 \003(" + - "\tB\003\340A\001\022\031\n\014archive_uris\030\004 \003(\tB\003\340A\001\022L\n\npro" + - "perties\030\005 \003(\01323.google.cloud.dataproc.v1" + - ".SparkRJob.PropertiesEntryB\003\340A\001\022D\n\016loggi" + - "ng_config\030\006 \001(\0132\'.google.cloud.dataproc." + - "v1.LoggingConfigB\003\340A\001\0321\n\017PropertiesEntry" + - "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\212\003\n\tPre" + - "stoJob\022\030\n\016query_file_uri\030\001 \001(\tH\000\0229\n\nquer" + - "y_list\030\002 \001(\0132#.google.cloud.dataproc.v1." + - "QueryListH\000\022 \n\023continue_on_failure\030\003 \001(\010" + - "B\003\340A\001\022\032\n\routput_format\030\004 \001(\tB\003\340A\001\022\030\n\013cli" + - "ent_tags\030\005 \003(\tB\003\340A\001\022L\n\nproperties\030\006 \003(\0132" + - "3.google.cloud.dataproc.v1.PrestoJob.Pro" + - "pertiesEntryB\003\340A\001\022D\n\016logging_config\030\007 \001(" + - "\0132\'.google.cloud.dataproc.v1.LoggingConf" + - "igB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022" + - "\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007queries\"\322\001\n\014JobPla" + - "cement\022\031\n\014cluster_name\030\001 \001(\tB\003\340A\002\022\031\n\014clu" + - "ster_uuid\030\002 \001(\tB\003\340A\003\022V\n\016cluster_labels\030\003" + - " \003(\01329.google.cloud.dataproc.v1.JobPlace" + - "ment.ClusterLabelsEntryB\003\340A\001\0324\n\022ClusterL" + - "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + - "8\001\"\331\003\n\tJobStatus\022=\n\005state\030\001 \001(\0162).google" + - ".cloud.dataproc.v1.JobStatus.StateB\003\340A\003\022" + - "\027\n\007details\030\002 \001(\tB\006\340A\003\340A\001\0229\n\020state_start_" + - "time\030\006 \001(\0132\032.google.protobuf.TimestampB\003" + - "\340A\003\022C\n\010substate\030\007 \001(\0162,.google.cloud.dat" + - "aproc.v1.JobStatus.SubstateB\003\340A\003\"\251\001\n\005Sta" + - "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\016" + - "\n\nSETUP_DONE\020\010\022\013\n\007RUNNING\020\002\022\022\n\016CANCEL_PE" + - "NDING\020\003\022\022\n\016CANCEL_STARTED\020\007\022\r\n\tCANCELLED" + - "\020\004\022\010\n\004DONE\020\005\022\t\n\005ERROR\020\006\022\023\n\017ATTEMPT_FAILU" + - "RE\020\t\"H\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022\r\n\tSUB" + - "MITTED\020\001\022\n\n\006QUEUED\020\002\022\020\n\014STALE_STATUS\020\003\"<" + - "\n\014JobReference\022\027\n\nproject_id\030\001 \001(\tB\003\340A\001\022" + - "\023\n\006job_id\030\002 \001(\tB\003\340A\001\"\245\002\n\017YarnApplication" + - "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022C\n\005state\030\002 \001(\0162/.goo" + - "gle.cloud.dataproc.v1.YarnApplication.St" + - "ateB\003\340A\002\022\025\n\010progress\030\003 \001(\002B\003\340A\002\022\031\n\014track" + - "ing_url\030\004 \001(\tB\003\340A\001\"\207\001\n\005State\022\025\n\021STATE_UN" + - "SPECIFIED\020\000\022\007\n\003NEW\020\001\022\016\n\nNEW_SAVING\020\002\022\r\n\t" + - "SUBMITTED\020\003\022\014\n\010ACCEPTED\020\004\022\013\n\007RUNNING\020\005\022\014" + - "\n\010FINISHED\020\006\022\n\n\006FAILED\020\007\022\n\n\006KILLED\020\010\"\330\t\n" + - "\003Job\022>\n\treference\030\001 \001(\0132&.google.cloud.d" + - "ataproc.v1.JobReferenceB\003\340A\001\022>\n\tplacemen" + - "t\030\002 \001(\0132&.google.cloud.dataproc.v1.JobPl" + - "acementB\003\340A\002\022>\n\nhadoop_job\030\003 \001(\0132#.googl" + - "e.cloud.dataproc.v1.HadoopJobB\003\340A\001H\000\022<\n\t" + - "spark_job\030\004 \001(\0132\".google.cloud.dataproc." + - "v1.SparkJobB\003\340A\001H\000\022@\n\013pyspark_job\030\005 \001(\0132" + - "$.google.cloud.dataproc.v1.PySparkJobB\003\340" + - "A\001H\000\022:\n\010hive_job\030\006 \001(\0132!.google.cloud.da" + - "taproc.v1.HiveJobB\003\340A\001H\000\0228\n\007pig_job\030\007 \001(" + - "\0132 .google.cloud.dataproc.v1.PigJobB\003\340A\001" + - "H\000\022?\n\013spark_r_job\030\025 \001(\0132#.google.cloud.d" + - "ataproc.v1.SparkRJobB\003\340A\001H\000\022C\n\rspark_sql" + - "_job\030\014 \001(\0132%.google.cloud.dataproc.v1.Sp" + - "arkSqlJobB\003\340A\001H\000\022>\n\npresto_job\030\027 \001(\0132#.g" + - "oogle.cloud.dataproc.v1.PrestoJobB\003\340A\001H\000" + - "\0228\n\006status\030\010 \001(\0132#.google.cloud.dataproc" + - ".v1.JobStatusB\003\340A\003\022@\n\016status_history\030\r \003" + - "(\0132#.google.cloud.dataproc.v1.JobStatusB" + - "\003\340A\003\022I\n\021yarn_applications\030\t \003(\0132).google" + - ".cloud.dataproc.v1.YarnApplicationB\003\340A\003\022" + - "\'\n\032driver_output_resource_uri\030\021 \001(\tB\003\340A\003" + - "\022%\n\030driver_control_files_uri\030\017 \001(\tB\003\340A\003\022" + - ">\n\006labels\030\022 \003(\0132).google.cloud.dataproc." + - "v1.Job.LabelsEntryB\003\340A\001\022@\n\nscheduling\030\024 " + - "\001(\0132\'.google.cloud.dataproc.v1.JobSchedu" + - "lingB\003\340A\001\022\025\n\010job_uuid\030\026 \001(\tB\003\340A\003\022\021\n\004done" + - "\030\030 \001(\010B\003\340A\003\022W\n\030driver_scheduling_config\030" + - "\033 \001(\01320.google.cloud.dataproc.v1.DriverS" + - "chedulingConfigB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\n\n\010type_job\"" + - "E\n\026DriverSchedulingConfig\022\026\n\tmemory_mb\030\001" + - " \001(\005B\003\340A\002\022\023\n\006vcores\030\002 \001(\005B\003\340A\002\"T\n\rJobSch" + - "eduling\022\"\n\025max_failures_per_hour\030\001 \001(\005B\003" + - "\340A\001\022\037\n\022max_failures_total\030\002 \001(\005B\003\340A\001\"\212\001\n" + - "\020SubmitJobRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340" + - "A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022/\n\003job\030\002 \001(\0132\035.g" + - "oogle.cloud.dataproc.v1.JobB\003\340A\002\022\027\n\nrequ" + - "est_id\030\004 \001(\tB\003\340A\001\"\256\001\n\013JobMetadata\022\023\n\006job" + - "_id\030\001 \001(\tB\003\340A\003\0228\n\006status\030\002 \001(\0132#.google." + - "cloud.dataproc.v1.JobStatusB\003\340A\003\022\033\n\016oper" + - "ation_type\030\003 \001(\tB\003\340A\003\0223\n\nstart_time\030\004 \001(" + - "\0132\032.google.protobuf.TimestampB\003\340A\003\"R\n\rGe" + - "tJobRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006" + - "region\030\003 \001(\tB\003\340A\002\022\023\n\006job_id\030\002 \001(\tB\003\340A\002\"\263" + - "\002\n\017ListJobsRequest\022\027\n\nproject_id\030\001 \001(\tB\003" + - "\340A\002\022\023\n\006region\030\006 \001(\tB\003\340A\002\022\026\n\tpage_size\030\002 " + - "\001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\031\n\014clu" + - "ster_name\030\004 \001(\tB\003\340A\001\022Y\n\021job_state_matche" + - "r\030\005 \001(\01629.google.cloud.dataproc.v1.ListJ" + - "obsRequest.JobStateMatcherB\003\340A\001\022\023\n\006filte" + - "r\030\007 \001(\tB\003\340A\001\"6\n\017JobStateMatcher\022\007\n\003ALL\020\000" + - "\022\n\n\006ACTIVE\020\001\022\016\n\nNON_ACTIVE\020\002\"\274\001\n\020UpdateJ" + - "obRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006re" + - "gion\030\002 \001(\tB\003\340A\002\022\023\n\006job_id\030\003 \001(\tB\003\340A\002\022/\n\003" + - "job\030\004 \001(\0132\035.google.cloud.dataproc.v1.Job" + - "B\003\340A\002\0224\n\013update_mask\030\005 \001(\0132\032.google.prot" + - "obuf.FieldMaskB\003\340A\002\"b\n\020ListJobsResponse\022" + - "0\n\004jobs\030\001 \003(\0132\035.google.cloud.dataproc.v1" + - ".JobB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"" + - "U\n\020CancelJobRequest\022\027\n\nproject_id\030\001 \001(\tB" + - "\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\023\n\006job_id\030\002 \001(" + - "\tB\003\340A\002\"U\n\020DeleteJobRequest\022\027\n\nproject_id" + - "\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\023\n\006job_" + - "id\030\002 \001(\tB\003\340A\0022\374\n\n\rJobController\022\261\001\n\tSubm" + - "itJob\022*.google.cloud.dataproc.v1.SubmitJ" + - "obRequest\032\035.google.cloud.dataproc.v1.Job" + - "\"Y\202\323\344\223\002;\"6/v1/projects/{project_id}/regi" + - "ons/{region}/jobs:submit:\001*\332A\025project_id" + - ",region,job\022\336\001\n\024SubmitJobAsOperation\022*.g" + - "oogle.cloud.dataproc.v1.SubmitJobRequest" + - "\032\035.google.longrunning.Operation\"{\202\323\344\223\002F\"" + - "A/v1/projects/{project_id}/regions/{regi" + - "on}/jobs:submitAsOperation:\001*\332A\027project_" + - "id, region, job\312A\022\n\003Job\022\013JobMetadata\022\255\001\n" + - "\006GetJob\022\'.google.cloud.dataproc.v1.GetJo" + - "bRequest\032\035.google.cloud.dataproc.v1.Job\"" + - "[\202\323\344\223\002:\0228/v1/projects/{project_id}/regio" + - "ns/{region}/jobs/{job_id}\332A\030project_id,r" + - "egion,job_id\022\311\001\n\010ListJobs\022).google.cloud" + - ".dataproc.v1.ListJobsRequest\032*.google.cl" + - "oud.dataproc.v1.ListJobsResponse\"f\202\323\344\223\0021" + - "\022//v1/projects/{project_id}/regions/{reg" + - "ion}/jobs\332A\021project_id,region\332A\030project_" + - "id,region,filter\022\235\001\n\tUpdateJob\022*.google." + - "cloud.dataproc.v1.UpdateJobRequest\032\035.goo" + - "gle.cloud.dataproc.v1.Job\"E\202\323\344\223\002?28/v1/p" + - "rojects/{project_id}/regions/{region}/jo" + - "bs/{job_id}:\003job\022\275\001\n\tCancelJob\022*.google." + - "cloud.dataproc.v1.CancelJobRequest\032\035.goo" + - "gle.cloud.dataproc.v1.Job\"e\202\323\344\223\002D\"?/v1/p" + - "rojects/{project_id}/regions/{region}/jo" + - "bs/{job_id}:cancel:\001*\332A\030project_id,regio" + - "n,job_id\022\254\001\n\tDeleteJob\022*.google.cloud.da" + - "taproc.v1.DeleteJobRequest\032\026.google.prot" + - "obuf.Empty\"[\202\323\344\223\002:*8/v1/projects/{projec" + - "t_id}/regions/{region}/jobs/{job_id}\332A\030p" + - "roject_id,region,job_id\032K\312A\027dataproc.goo" + - "gleapis.com\322A.https://www.googleapis.com" + - "/auth/cloud-platformBm\n\034com.google.cloud" + - ".dataproc.v1B\tJobsProtoP\001Z@google.golang" + - ".org/genproto/googleapis/cloud/dataproc/" + - "v1;dataprocb\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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor, - new java.lang.String[] { "DriverLogLevels", }); - internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor, - new java.lang.String[] { "MainJarFileUri", "MainClass", "Args", "JarFileUris", "FileUris", "ArchiveUris", "Properties", "LoggingConfig", "Driver", }); - internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_SparkJob_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkJob_descriptor, - new java.lang.String[] { "MainJarFileUri", "MainClass", "Args", "JarFileUris", "FileUris", "ArchiveUris", "Properties", "LoggingConfig", "Driver", }); - internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_SparkJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor, - new java.lang.String[] { "MainPythonFileUri", "Args", "PythonFileUris", "JarFileUris", "FileUris", "ArchiveUris", "Properties", "LoggingConfig", }); - internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_QueryList_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_QueryList_descriptor, - new java.lang.String[] { "Queries", }); - internal_static_google_cloud_dataproc_v1_HiveJob_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_HiveJob_descriptor, - new java.lang.String[] { "QueryFileUri", "QueryList", "ContinueOnFailure", "ScriptVariables", "Properties", "JarFileUris", "Queries", }); - internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_HiveJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_HiveJob_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor, - new java.lang.String[] { "QueryFileUri", "QueryList", "ScriptVariables", "Properties", "JarFileUris", "LoggingConfig", "Queries", }); - internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_PigJob_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PigJob_descriptor, - new java.lang.String[] { "QueryFileUri", "QueryList", "ContinueOnFailure", "ScriptVariables", "Properties", "JarFileUris", "LoggingConfig", "Queries", }); - internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_PigJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_PigJob_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor, - new java.lang.String[] { "MainRFileUri", "Args", "FileUris", "ArchiveUris", "Properties", "LoggingConfig", }); - internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor, - new java.lang.String[] { "QueryFileUri", "QueryList", "ContinueOnFailure", "OutputFormat", "ClientTags", "Properties", "LoggingConfig", "Queries", }); - internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor, - new java.lang.String[] { "ClusterName", "ClusterUuid", "ClusterLabels", }); - internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_JobStatus_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_JobStatus_descriptor, - new java.lang.String[] { "State", "Details", "StateStartTime", "Substate", }); - internal_static_google_cloud_dataproc_v1_JobReference_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_JobReference_descriptor, - new java.lang.String[] { "ProjectId", "JobId", }); - internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor, - new java.lang.String[] { "Name", "State", "Progress", "TrackingUrl", }); - internal_static_google_cloud_dataproc_v1_Job_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Job_descriptor, - new java.lang.String[] { "Reference", "Placement", "HadoopJob", "SparkJob", "PysparkJob", "HiveJob", "PigJob", "SparkRJob", "SparkSqlJob", "PrestoJob", "Status", "StatusHistory", "YarnApplications", "DriverOutputResourceUri", "DriverControlFilesUri", "Labels", "Scheduling", "JobUuid", "Done", "DriverSchedulingConfig", "TypeJob", }); - internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_Job_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DriverSchedulingConfig_descriptor, - new java.lang.String[] { "MemoryMb", "Vcores", }); - internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor, - new java.lang.String[] { "MaxFailuresPerHour", "MaxFailuresTotal", }); - internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor, - new java.lang.String[] { "ProjectId", "Region", "Job", "RequestId", }); - internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor, - new java.lang.String[] { "JobId", "Status", "OperationType", "StartTime", }); - internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor, - new java.lang.String[] { "ProjectId", "Region", "JobId", }); - internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor, - new java.lang.String[] { "ProjectId", "Region", "PageSize", "PageToken", "ClusterName", "JobStateMatcher", "Filter", }); - internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor, - new java.lang.String[] { "ProjectId", "Region", "JobId", "Job", "UpdateMask", }); - internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor, - new java.lang.String[] { "Jobs", "NextPageToken", }); - internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor, - new java.lang.String[] { "ProjectId", "Region", "JobId", }); - internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_dataproc_v1_DeleteJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor, - new java.lang.String[] { "ProjectId", "Region", "JobId", }); - 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.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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java deleted file mode 100644 index 1ee2f98e7c83..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface MetastoreConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.MetastoreConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of an existing Dataproc Metastore service.
-   * Example:
-   * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
-   * 
- * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The dataprocMetastoreService. - */ - java.lang.String getDataprocMetastoreService(); - /** - *
-   * Required. Resource name of an existing Dataproc Metastore service.
-   * Example:
-   * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
-   * 
- * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for dataprocMetastoreService. - */ - com.google.protobuf.ByteString - getDataprocMetastoreServiceBytes(); -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupsProto.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupsProto.java deleted file mode 100644 index b9159d16a5d2..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupsProto.java +++ /dev/null @@ -1,138 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/node_groups.proto - -package com.google.cloud.dataproc.v1; - -public final class NodeGroupsProto { - private NodeGroupsProto() {} - 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_dataproc_v1_CreateNodeGroupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_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/dataproc/v1/node_groups.p" + - "roto\022\030google.cloud.dataproc.v1\032\034google/a" + - "pi/annotations.proto\032\027google/api/client." + - "proto\032\037google/api/field_behavior.proto\032\031" + - "google/api/resource.proto\032\'google/cloud/" + - "dataproc/v1/clusters.proto\032#google/longr" + - "unning/operations.proto\032\036google/protobuf" + - "/duration.proto\"\306\001\n\026CreateNodeGroupReque" + - "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!dataproc.goo" + - "gleapis.com/NodeGroup\022<\n\nnode_group\030\002 \001(" + - "\0132#.google.cloud.dataproc.v1.NodeGroupB\003" + - "\340A\002\022\032\n\rnode_group_id\030\004 \001(\tB\003\340A\001\022\027\n\nreque" + - "st_id\030\003 \001(\tB\003\340A\001\"\236\001\n\026ResizeNodeGroupRequ" + - "est\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\021\n\004size\030\002 \001(\005B\003\340A" + - "\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022E\n\035graceful_d" + - "ecommission_timeout\030\004 \001(\0132\031.google.proto" + - "buf.DurationB\003\340A\001\"N\n\023GetNodeGroupRequest" + - "\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dataproc.googlea" + - "pis.com/NodeGroup2\247\006\n\023NodeGroupControlle" + - "r\022\225\002\n\017CreateNodeGroup\0220.google.cloud.dat" + - "aproc.v1.CreateNodeGroupRequest\032\035.google" + - ".longrunning.Operation\"\260\001\202\323\344\223\002E\"7/v1/{pa" + - "rent=projects/*/regions/*/clusters/*}/no" + - "deGroups:\nnode_group\332A\037parent,node_group" + - ",node_group_id\312A@\n\tNodeGroup\0223google.clo" + - "ud.dataproc.v1.NodeGroupOperationMetadat" + - "a\022\375\001\n\017ResizeNodeGroup\0220.google.cloud.dat" + - "aproc.v1.ResizeNodeGroupRequest\032\035.google" + - ".longrunning.Operation\"\230\001\202\323\344\223\002C\">/v1/{na" + - "me=projects/*/regions/*/clusters/*/nodeG" + - "roups/*}:resize:\001*\332A\tname,size\312A@\n\tNodeG" + - "roup\0223google.cloud.dataproc.v1.NodeGroup" + - "OperationMetadata\022\252\001\n\014GetNodeGroup\022-.goo" + - "gle.cloud.dataproc.v1.GetNodeGroupReques" + - "t\032#.google.cloud.dataproc.v1.NodeGroup\"F" + - "\202\323\344\223\0029\0227/v1/{name=projects/*/regions/*/c" + - "lusters/*/nodeGroups/*}\332A\004name\032K\312A\027datap" + - "roc.googleapis.com\322A.https://www.googlea" + - "pis.com/auth/cloud-platformB\325\001\n\034com.goog" + - "le.cloud.dataproc.v1B\017NodeGroupsProtoP\001Z" + - "@google.golang.org/genproto/googleapis/c" + - "loud/dataproc/v1;dataproc\352A_\n%dataproc.g" + - "oogleapis.com/ClusterRegion\0226projects/{p" + - "roject}/regions/{region}/clusters/{clust" + - "er}b\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.dataproc.v1.ClustersProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_CreateNodeGroupRequest_descriptor, - new java.lang.String[] { "Parent", "NodeGroup", "NodeGroupId", "RequestId", }); - internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ResizeNodeGroupRequest_descriptor, - new java.lang.String[] { "Name", "Size", "RequestId", "GracefulDecommissionTimeout", }); - internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GetNodeGroupRequest_descriptor, - new java.lang.String[] { "Name", }); - 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.resourceDefinition); - 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.dataproc.v1.ClustersProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java deleted file mode 100644 index 3900311ef56c..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java +++ /dev/null @@ -1,173 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/operations.proto - -package com.google.cloud.dataproc.v1; - -public final class OperationsProto { - private OperationsProto() {} - 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_dataproc_v1_BatchOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_LabelsEntry_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/dataproc/v1/operations.pr" + - "oto\022\030google.cloud.dataproc.v1\032\037google/ap" + - "i/field_behavior.proto\032\037google/protobuf/" + - "timestamp.proto\"\343\003\n\026BatchOperationMetada" + - "ta\022\r\n\005batch\030\001 \001(\t\022\022\n\nbatch_uuid\030\002 \001(\t\022/\n" + - "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" + - "estamp\022-\n\tdone_time\030\004 \001(\0132\032.google.proto" + - "buf.Timestamp\022[\n\016operation_type\030\006 \001(\0162C." + - "google.cloud.dataproc.v1.BatchOperationM" + - "etadata.BatchOperationType\022\023\n\013descriptio" + - "n\030\007 \001(\t\022L\n\006labels\030\010 \003(\0132<.google.cloud.d" + - "ataproc.v1.BatchOperationMetadata.Labels" + - "Entry\022\020\n\010warnings\030\t \003(\t\032-\n\013LabelsEntry\022\013" + - "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\022BatchO" + - "perationType\022$\n BATCH_OPERATION_TYPE_UNS" + - "PECIFIED\020\000\022\t\n\005BATCH\020\001\"\211\002\n\026ClusterOperati" + - "onStatus\022J\n\005state\030\001 \001(\01626.google.cloud.d" + - "ataproc.v1.ClusterOperationStatus.StateB" + - "\003\340A\003\022\030\n\013inner_state\030\002 \001(\tB\003\340A\003\022\024\n\007detail" + - "s\030\003 \001(\tB\003\340A\003\0229\n\020state_start_time\030\004 \001(\0132\032" + - ".google.protobuf.TimestampB\003\340A\003\"8\n\005State" + - "\022\013\n\007UNKNOWN\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022" + - "\010\n\004DONE\020\003\"\270\003\n\030ClusterOperationMetadata\022\031" + - "\n\014cluster_name\030\007 \001(\tB\003\340A\003\022\031\n\014cluster_uui" + - "d\030\010 \001(\tB\003\340A\003\022E\n\006status\030\t \001(\01320.google.cl" + - "oud.dataproc.v1.ClusterOperationStatusB\003" + - "\340A\003\022M\n\016status_history\030\n \003(\01320.google.clo" + - "ud.dataproc.v1.ClusterOperationStatusB\003\340" + - "A\003\022\033\n\016operation_type\030\013 \001(\tB\003\340A\003\022\030\n\013descr" + - "iption\030\014 \001(\tB\003\340A\003\022S\n\006labels\030\r \003(\0132>.goog" + - "le.cloud.dataproc.v1.ClusterOperationMet" + - "adata.LabelsEntryB\003\340A\003\022\025\n\010warnings\030\016 \003(\t" + - "B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\t:\0028\001\"\372\004\n\032NodeGroupOperationMetad" + - "ata\022\032\n\rnode_group_id\030\001 \001(\tB\003\340A\003\022\031\n\014clust" + - "er_uuid\030\002 \001(\tB\003\340A\003\022E\n\006status\030\003 \001(\01320.goo" + - "gle.cloud.dataproc.v1.ClusterOperationSt" + - "atusB\003\340A\003\022M\n\016status_history\030\004 \003(\01320.goog" + - "le.cloud.dataproc.v1.ClusterOperationSta" + - "tusB\003\340A\003\022c\n\016operation_type\030\005 \001(\0162K.googl" + - "e.cloud.dataproc.v1.NodeGroupOperationMe" + - "tadata.NodeGroupOperationType\022\030\n\013descrip" + - "tion\030\006 \001(\tB\003\340A\003\022U\n\006labels\030\007 \003(\0132@.google" + - ".cloud.dataproc.v1.NodeGroupOperationMet" + - "adata.LabelsEntryB\003\340A\003\022\025\n\010warnings\030\010 \003(\t" + - "B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\t:\0028\001\"s\n\026NodeGroupOperationType\022)" + - "\n%NODE_GROUP_OPERATION_TYPE_UNSPECIFIED\020" + - "\000\022\n\n\006CREATE\020\001\022\n\n\006UPDATE\020\002\022\n\n\006DELETE\020\003\022\n\n" + - "\006RESIZE\020\004Bs\n\034com.google.cloud.dataproc.v" + - "1B\017OperationsProtoP\001Z@google.golang.org/" + - "genproto/googleapis/cloud/dataproc/v1;da" + - "taprocb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor, - new java.lang.String[] { "Batch", "BatchUuid", "CreateTime", "DoneTime", "OperationType", "Description", "Labels", "Warnings", }); - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor, - new java.lang.String[] { "State", "InnerState", "Details", "StateStartTime", }); - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor, - new java.lang.String[] { "ClusterName", "ClusterUuid", "Status", "StatusHistory", "OperationType", "Description", "Labels", "Warnings", }); - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor, - new java.lang.String[] { "NodeGroupId", "ClusterUuid", "Status", "StatusHistory", "OperationType", "Description", "Labels", "Warnings", }); - internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_NodeGroupOperationMetadata_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java deleted file mode 100644 index 8728f3b2a2fa..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java +++ /dev/null @@ -1,316 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -public final class SharedProto { - private SharedProto() {} - 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_dataproc_v1_RuntimeConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_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/dataproc/v1/shared.proto\022" + - "\030google.cloud.dataproc.v1\032\037google/api/fi" + - "eld_behavior.proto\"\310\001\n\rRuntimeConfig\022\024\n\007" + - "version\030\001 \001(\tB\003\340A\001\022\034\n\017container_image\030\002 " + - "\001(\tB\003\340A\001\022P\n\nproperties\030\003 \003(\01327.google.cl" + - "oud.dataproc.v1.RuntimeConfig.Properties" + - "EntryB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001" + - "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\253\001\n\021EnvironmentCon" + - "fig\022H\n\020execution_config\030\001 \001(\0132).google.c" + - "loud.dataproc.v1.ExecutionConfigB\003\340A\001\022L\n" + - "\022peripherals_config\030\002 \001(\0132+.google.cloud" + - ".dataproc.v1.PeripheralsConfigB\003\340A\001\"\246\001\n\017" + - "ExecutionConfig\022\034\n\017service_account\030\002 \001(\t" + - "B\003\340A\001\022\032\n\013network_uri\030\004 \001(\tB\003\340A\001H\000\022\035\n\016sub" + - "network_uri\030\005 \001(\tB\003\340A\001H\000\022\031\n\014network_tags" + - "\030\006 \003(\tB\003\340A\001\022\024\n\007kms_key\030\007 \001(\tB\003\340A\001B\t\n\007net" + - "work\"9\n\030SparkHistoryServerConfig\022\035\n\020data" + - "proc_cluster\030\001 \001(\tB\003\340A\001\"\221\001\n\021PeripheralsC" + - "onfig\022\036\n\021metastore_service\030\001 \001(\tB\003\340A\001\022\\\n" + - "\033spark_history_server_config\030\002 \001(\01322.goo" + - "gle.cloud.dataproc.v1.SparkHistoryServer" + - "ConfigB\003\340A\001\"\312\001\n\013RuntimeInfo\022L\n\tendpoints" + - "\030\001 \003(\01324.google.cloud.dataproc.v1.Runtim" + - "eInfo.EndpointsEntryB\003\340A\003\022\027\n\noutput_uri\030" + - "\002 \001(\tB\003\340A\003\022\"\n\025diagnostic_output_uri\030\003 \001(" + - "\tB\003\340A\003\0320\n\016EndpointsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + - "\005value\030\002 \001(\t:\0028\001\"\177\n\020GkeClusterConfig\022\037\n\022" + - "gke_cluster_target\030\002 \001(\tB\003\340A\001\022J\n\020node_po" + - "ol_target\030\003 \003(\0132+.google.cloud.dataproc." + - "v1.GkeNodePoolTargetB\003\340A\001\"\362\001\n\027Kubernetes" + - "ClusterConfig\022!\n\024kubernetes_namespace\030\001 " + - "\001(\tB\003\340A\001\022M\n\022gke_cluster_config\030\002 \001(\0132*.g" + - "oogle.cloud.dataproc.v1.GkeClusterConfig" + - "B\003\340A\002H\000\022[\n\032kubernetes_software_config\030\003 " + - "\001(\01322.google.cloud.dataproc.v1.Kubernete" + - "sSoftwareConfigB\003\340A\001B\010\n\006config\"\303\002\n\030Kuber" + - "netesSoftwareConfig\022c\n\021component_version" + - "\030\001 \003(\0132H.google.cloud.dataproc.v1.Kubern" + - "etesSoftwareConfig.ComponentVersionEntry" + - "\022V\n\nproperties\030\002 \003(\0132B.google.cloud.data" + - "proc.v1.KubernetesSoftwareConfig.Propert" + - "iesEntry\0327\n\025ComponentVersionEntry\022\013\n\003key" + - "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017PropertiesE" + - "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\236\002\n" + - "\021GkeNodePoolTarget\022\026\n\tnode_pool\030\001 \001(\tB\003\340" + - "A\002\022D\n\005roles\030\002 \003(\01620.google.cloud.datapro" + - "c.v1.GkeNodePoolTarget.RoleB\003\340A\002\022J\n\020node" + - "_pool_config\030\003 \001(\0132+.google.cloud.datapr" + - "oc.v1.GkeNodePoolConfigB\003\340A\001\"_\n\004Role\022\024\n\020" + - "ROLE_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\016\n\nCONTR" + - "OLLER\020\002\022\020\n\014SPARK_DRIVER\020\003\022\022\n\016SPARK_EXECU" + - "TOR\020\004\"\355\004\n\021GkeNodePoolConfig\022N\n\006config\030\002 " + - "\001(\01329.google.cloud.dataproc.v1.GkeNodePo" + - "olConfig.GkeNodeConfigB\003\340A\001\022\026\n\tlocations" + - "\030\r \003(\tB\003\340A\001\022b\n\013autoscaling\030\004 \001(\0132H.googl" + - "e.cloud.dataproc.v1.GkeNodePoolConfig.Gk" + - "eNodePoolAutoscalingConfigB\003\340A\001\032\346\001\n\rGkeN" + - "odeConfig\022\031\n\014machine_type\030\001 \001(\tB\003\340A\001\022\030\n\013" + - "preemptible\030\n \001(\010B\003\340A\001\022\034\n\017local_ssd_coun" + - "t\030\007 \001(\005B\003\340A\001\022c\n\014accelerators\030\013 \003(\0132H.goo" + - "gle.cloud.dataproc.v1.GkeNodePoolConfig." + - "GkeNodePoolAcceleratorConfigB\003\340A\001\022\035\n\020min" + - "_cpu_platform\030\r \001(\tB\003\340A\001\032S\n\034GkeNodePoolA" + - "cceleratorConfig\022\031\n\021accelerator_count\030\001 " + - "\001(\003\022\030\n\020accelerator_type\030\002 \001(\t\032N\n\034GkeNode" + - "PoolAutoscalingConfig\022\026\n\016min_node_count\030" + - "\002 \001(\005\022\026\n\016max_node_count\030\003 \001(\005*\277\001\n\tCompon" + - "ent\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\014\n\010ANACON" + - "DA\020\005\022\n\n\006DOCKER\020\r\022\t\n\005DRUID\020\t\022\t\n\005FLINK\020\016\022\t" + - "\n\005HBASE\020\013\022\020\n\014HIVE_WEBHCAT\020\003\022\013\n\007JUPYTER\020\001" + - "\022\n\n\006PRESTO\020\006\022\n\n\006RANGER\020\014\022\010\n\004SOLR\020\n\022\014\n\010ZE" + - "PPELIN\020\004\022\r\n\tZOOKEEPER\020\010*J\n\rFailureAction" + - "\022\036\n\032FAILURE_ACTION_UNSPECIFIED\020\000\022\r\n\tNO_A" + - "CTION\020\001\022\n\n\006DELETE\020\002Bo\n\034com.google.cloud." + - "dataproc.v1B\013SharedProtoP\001Z@google.golan" + - "g.org/genproto/googleapis/cloud/dataproc" + - "/v1;dataprocb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor, - new java.lang.String[] { "Version", "ContainerImage", "Properties", }); - internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor, - new java.lang.String[] { "ExecutionConfig", "PeripheralsConfig", }); - internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor, - new java.lang.String[] { "ServiceAccount", "NetworkUri", "SubnetworkUri", "NetworkTags", "KmsKey", "Network", }); - internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor, - new java.lang.String[] { "DataprocCluster", }); - internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor, - new java.lang.String[] { "MetastoreService", "SparkHistoryServerConfig", }); - internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor, - new java.lang.String[] { "Endpoints", "OutputUri", "DiagnosticOutputUri", }); - internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor, - new java.lang.String[] { "GkeClusterTarget", "NodePoolTarget", }); - internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor, - new java.lang.String[] { "KubernetesNamespace", "GkeClusterConfig", "KubernetesSoftwareConfig", "Config", }); - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor, - new java.lang.String[] { "ComponentVersion", "Properties", }); - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor = - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor, - new java.lang.String[] { "NodePool", "Roles", "NodePoolConfig", }); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor, - new java.lang.String[] { "Config", "Locations", "Autoscaling", }); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor = - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor, - new java.lang.String[] { "MachineType", "Preemptible", "LocalSsdCount", "Accelerators", "MinCpuPlatform", }); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor = - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor, - new java.lang.String[] { "AcceleratorCount", "AcceleratorType", }); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor = - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor, - new java.lang.String[] { "MinNodeCount", "MaxNodeCount", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java deleted file mode 100644 index eb8948771a90..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -public interface UpdateAutoscalingPolicyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The updated autoscaling policy.
-   * 
- * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the policy field is set. - */ - boolean hasPolicy(); - /** - *
-   * Required. The updated autoscaling policy.
-   * 
- * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The policy. - */ - com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy(); - /** - *
-   * Required. The updated autoscaling policy.
-   * 
- * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder(); -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java deleted file mode 100644 index 862109929e8c..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface UpdateWorkflowTemplateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The updated workflow template.
-   * The `template.version` field must match the current version.
-   * 
- * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the template field is set. - */ - boolean hasTemplate(); - /** - *
-   * Required. The updated workflow template.
-   * The `template.version` field must match the current version.
-   * 
- * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The template. - */ - com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate(); - /** - *
-   * Required. The updated workflow template.
-   * The `template.version` field must match the current version.
-   * 
- * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder(); -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java deleted file mode 100644 index e2c61eab873a..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface WorkflowGraphOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.WorkflowGraph) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. The workflow nodes.
-   * 
- * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.util.List - getNodesList(); - /** - *
-   * Output only. The workflow nodes.
-   * 
- * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.dataproc.v1.WorkflowNode getNodes(int index); - /** - *
-   * Output only. The workflow nodes.
-   * 
- * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - int getNodesCount(); - /** - *
-   * Output only. The workflow nodes.
-   * 
- * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.util.List - getNodesOrBuilderList(); - /** - *
-   * Output only. The workflow nodes.
-   * 
- * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder getNodesOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java b/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java deleted file mode 100644 index 7fc84a90297d..000000000000 --- a/owl-bot-staging/java-dataproc/v1/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java +++ /dev/null @@ -1,559 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public final class WorkflowTemplatesProto { - private WorkflowTemplatesProto() {} - 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_dataproc_v1_WorkflowTemplate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_WorkflowTemplate_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowTemplate_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ManagedCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ManagedCluster_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ManagedCluster_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterSelector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterSelector_ClusterLabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterSelector_ClusterLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_OrderedJob_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_OrderedJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_OrderedJob_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_OrderedJob_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_TemplateParameter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ParameterValidation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_RegexValidation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ValueValidation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_WorkflowMetadata_ParametersEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowMetadata_ParametersEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterOperation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowGraph_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowNode_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_ParametersEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_ParametersEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/dataproc/v1/workflow_temp" + - "lates.proto\022\030google.cloud.dataproc.v1\032\034g" + - "oogle/api/annotations.proto\032\027google/api/" + - "client.proto\032\037google/api/field_behavior." + - "proto\032\031google/api/resource.proto\032\'google" + - "/cloud/dataproc/v1/clusters.proto\032#googl" + - "e/cloud/dataproc/v1/jobs.proto\032#google/l" + - "ongrunning/operations.proto\032\036google/prot" + - "obuf/duration.proto\032\033google/protobuf/emp" + - "ty.proto\032\037google/protobuf/timestamp.prot" + - "o\"\202\006\n\020WorkflowTemplate\022\017\n\002id\030\002 \001(\tB\003\340A\002\022" + - "\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007version\030\003 \001(\005B\003\340A\001" + - "\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf." + - "TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\003\340A\003\022K\n\006labels\030\006" + - " \003(\01326.google.cloud.dataproc.v1.Workflow" + - "Template.LabelsEntryB\003\340A\001\022K\n\tplacement\030\007" + - " \001(\01323.google.cloud.dataproc.v1.Workflow" + - "TemplatePlacementB\003\340A\002\0227\n\004jobs\030\010 \003(\0132$.g" + - "oogle.cloud.dataproc.v1.OrderedJobB\003\340A\002\022" + - "D\n\nparameters\030\t \003(\0132+.google.cloud.datap" + - "roc.v1.TemplateParameterB\003\340A\001\0223\n\013dag_tim" + - "eout\030\n \001(\0132\031.google.protobuf.DurationB\003\340" + - "A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + - "\002 \001(\t:\0028\001:\312\001\352A\306\001\n(dataproc.googleapis.co" + - "m/WorkflowTemplate\022Iprojects/{project}/r" + - "egions/{region}/workflowTemplates/{workf" + - "low_template}\022Mprojects/{project}/locati" + - "ons/{location}/workflowTemplates/{workfl" + - "ow_template} \001\"\264\001\n\031WorkflowTemplatePlace" + - "ment\022C\n\017managed_cluster\030\001 \001(\0132(.google.c" + - "loud.dataproc.v1.ManagedClusterH\000\022E\n\020clu" + - "ster_selector\030\002 \001(\0132).google.cloud.datap" + - "roc.v1.ClusterSelectorH\000B\013\n\tplacement\"\343\001" + - "\n\016ManagedCluster\022\031\n\014cluster_name\030\002 \001(\tB\003" + - "\340A\002\022<\n\006config\030\003 \001(\0132\'.google.cloud.datap" + - "roc.v1.ClusterConfigB\003\340A\002\022I\n\006labels\030\004 \003(" + - "\01324.google.cloud.dataproc.v1.ManagedClus" + - "ter.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\265\001\n\017ClusterS" + - "elector\022\021\n\004zone\030\001 \001(\tB\003\340A\001\022Y\n\016cluster_la" + - "bels\030\002 \003(\0132<.google.cloud.dataproc.v1.Cl" + - "usterSelector.ClusterLabelsEntryB\003\340A\002\0324\n" + - "\022ClusterLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + - "e\030\002 \001(\t:\0028\001\"\206\006\n\nOrderedJob\022\024\n\007step_id\030\001 " + - "\001(\tB\003\340A\002\022>\n\nhadoop_job\030\002 \001(\0132#.google.cl" + - "oud.dataproc.v1.HadoopJobB\003\340A\001H\000\022<\n\tspar" + - "k_job\030\003 \001(\0132\".google.cloud.dataproc.v1.S" + - "parkJobB\003\340A\001H\000\022@\n\013pyspark_job\030\004 \001(\0132$.go" + - "ogle.cloud.dataproc.v1.PySparkJobB\003\340A\001H\000" + - "\022:\n\010hive_job\030\005 \001(\0132!.google.cloud.datapr" + - "oc.v1.HiveJobB\003\340A\001H\000\0228\n\007pig_job\030\006 \001(\0132 ." + - "google.cloud.dataproc.v1.PigJobB\003\340A\001H\000\022?" + - "\n\013spark_r_job\030\013 \001(\0132#.google.cloud.datap" + - "roc.v1.SparkRJobB\003\340A\001H\000\022C\n\rspark_sql_job" + - "\030\007 \001(\0132%.google.cloud.dataproc.v1.SparkS" + - "qlJobB\003\340A\001H\000\022>\n\npresto_job\030\014 \001(\0132#.googl" + - "e.cloud.dataproc.v1.PrestoJobB\003\340A\001H\000\022E\n\006" + - "labels\030\010 \003(\01320.google.cloud.dataproc.v1." + - "OrderedJob.LabelsEntryB\003\340A\001\022@\n\nschedulin" + - "g\030\t \001(\0132\'.google.cloud.dataproc.v1.JobSc" + - "hedulingB\003\340A\001\022\"\n\025prerequisite_step_ids\030\n" + - " \003(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + - "\005value\030\002 \001(\t:\0028\001B\n\n\010job_type\"\235\001\n\021Templat" + - "eParameter\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\006fields\030" + - "\002 \003(\tB\003\340A\002\022\030\n\013description\030\003 \001(\tB\003\340A\001\022F\n\n" + - "validation\030\004 \001(\0132-.google.cloud.dataproc" + - ".v1.ParameterValidationB\003\340A\001\"\241\001\n\023Paramet" + - "erValidation\022:\n\005regex\030\001 \001(\0132).google.clo" + - "ud.dataproc.v1.RegexValidationH\000\022;\n\006valu" + - "es\030\002 \001(\0132).google.cloud.dataproc.v1.Valu" + - "eValidationH\000B\021\n\017validation_type\"\'\n\017Rege" + - "xValidation\022\024\n\007regexes\030\001 \003(\tB\003\340A\002\"&\n\017Val" + - "ueValidation\022\023\n\006values\030\001 \003(\tB\003\340A\002\"\324\006\n\020Wo" + - "rkflowMetadata\022\025\n\010template\030\001 \001(\tB\003\340A\003\022\024\n" + - "\007version\030\002 \001(\005B\003\340A\003\022G\n\016create_cluster\030\003 " + - "\001(\0132*.google.cloud.dataproc.v1.ClusterOp" + - "erationB\003\340A\003\022;\n\005graph\030\004 \001(\0132\'.google.clo" + - "ud.dataproc.v1.WorkflowGraphB\003\340A\003\022G\n\016del" + - "ete_cluster\030\005 \001(\0132*.google.cloud.datapro" + - "c.v1.ClusterOperationB\003\340A\003\022D\n\005state\030\006 \001(" + - "\01620.google.cloud.dataproc.v1.WorkflowMet" + - "adata.StateB\003\340A\003\022\031\n\014cluster_name\030\007 \001(\tB\003" + - "\340A\003\022N\n\nparameters\030\010 \003(\0132:.google.cloud.d" + - "ataproc.v1.WorkflowMetadata.ParametersEn" + - "try\0223\n\nstart_time\030\t \001(\0132\032.google.protobu" + - "f.TimestampB\003\340A\003\0221\n\010end_time\030\n \001(\0132\032.goo" + - "gle.protobuf.TimestampB\003\340A\003\022\031\n\014cluster_u" + - "uid\030\013 \001(\tB\003\340A\003\0223\n\013dag_timeout\030\014 \001(\0132\031.go" + - "ogle.protobuf.DurationB\003\340A\003\0227\n\016dag_start" + - "_time\030\r \001(\0132\032.google.protobuf.TimestampB" + - "\003\340A\003\0225\n\014dag_end_time\030\016 \001(\0132\032.google.prot" + - "obuf.TimestampB\003\340A\003\0321\n\017ParametersEntry\022\013" + - "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\005State\022" + - "\013\n\007UNKNOWN\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010" + - "\n\004DONE\020\003\"T\n\020ClusterOperation\022\031\n\014operatio" + - "n_id\030\001 \001(\tB\003\340A\003\022\022\n\005error\030\002 \001(\tB\003\340A\003\022\021\n\004d" + - "one\030\003 \001(\010B\003\340A\003\"K\n\rWorkflowGraph\022:\n\005nodes" + - "\030\001 \003(\0132&.google.cloud.dataproc.v1.Workfl" + - "owNodeB\003\340A\003\"\243\002\n\014WorkflowNode\022\024\n\007step_id\030" + - "\001 \001(\tB\003\340A\003\022\"\n\025prerequisite_step_ids\030\002 \003(" + - "\tB\003\340A\003\022\023\n\006job_id\030\003 \001(\tB\003\340A\003\022D\n\005state\030\005 \001" + - "(\01620.google.cloud.dataproc.v1.WorkflowNo" + - "de.NodeStateB\003\340A\003\022\022\n\005error\030\006 \001(\tB\003\340A\003\"j\n" + - "\tNodeState\022\032\n\026NODE_STATE_UNSPECIFIED\020\000\022\013" + - "\n\007BLOCKED\020\001\022\014\n\010RUNNABLE\020\002\022\013\n\007RUNNING\020\003\022\r" + - "\n\tCOMPLETED\020\004\022\n\n\006FAILED\020\005\"\244\001\n\035CreateWork" + - "flowTemplateRequest\022@\n\006parent\030\001 \001(\tB0\340A\002" + - "\372A*\022(dataproc.googleapis.com/WorkflowTem" + - "plate\022A\n\010template\030\002 \001(\0132*.google.cloud.d" + - "ataproc.v1.WorkflowTemplateB\003\340A\002\"r\n\032GetW" + - "orkflowTemplateRequest\022>\n\004name\030\001 \001(\tB0\340A" + - "\002\372A*\n(dataproc.googleapis.com/WorkflowTe" + - "mplate\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\255\002\n\"Instant" + - "iateWorkflowTemplateRequest\022>\n\004name\030\001 \001(" + - "\tB0\340A\002\372A*\n(dataproc.googleapis.com/Workf" + - "lowTemplate\022\024\n\007version\030\002 \001(\005B\003\340A\001\022\027\n\nreq" + - "uest_id\030\005 \001(\tB\003\340A\001\022e\n\nparameters\030\006 \003(\0132L" + - ".google.cloud.dataproc.v1.InstantiateWor" + - "kflowTemplateRequest.ParametersEntryB\003\340A" + - "\001\0321\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\t:\0028\001\"\310\001\n(InstantiateInlineWorkfl" + - "owTemplateRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A" + - "*\022(dataproc.googleapis.com/WorkflowTempl" + - "ate\022A\n\010template\030\002 \001(\0132*.google.cloud.dat" + - "aproc.v1.WorkflowTemplateB\003\340A\002\022\027\n\nreques" + - "t_id\030\003 \001(\tB\003\340A\001\"b\n\035UpdateWorkflowTemplat" + - "eRequest\022A\n\010template\030\001 \001(\0132*.google.clou" + - "d.dataproc.v1.WorkflowTemplateB\003\340A\002\"\221\001\n\034" + - "ListWorkflowTemplatesRequest\022@\n\006parent\030\001" + - " \001(\tB0\340A\002\372A*\022(dataproc.googleapis.com/Wo" + - "rkflowTemplate\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" + - "\n\npage_token\030\003 \001(\tB\003\340A\001\"\201\001\n\035ListWorkflow" + - "TemplatesResponse\022B\n\ttemplates\030\001 \003(\0132*.g" + - "oogle.cloud.dataproc.v1.WorkflowTemplate" + - "B\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\"u\n\035D" + - "eleteWorkflowTemplateRequest\022>\n\004name\030\001 \001" + - "(\tB0\340A\002\372A*\n(dataproc.googleapis.com/Work" + - "flowTemplate\022\024\n\007version\030\002 \001(\005B\003\340A\0012\346\020\n\027W" + - "orkflowTemplateService\022\233\002\n\026CreateWorkflo" + - "wTemplate\0227.google.cloud.dataproc.v1.Cre" + - "ateWorkflowTemplateRequest\032*.google.clou" + - "d.dataproc.v1.WorkflowTemplate\"\233\001\202\323\344\223\002\202\001" + - "\"5/v1/{parent=projects/*/locations/*}/wo" + - "rkflowTemplates:\010templateZ?\"3/v1/{parent" + - "=projects/*/regions/*}/workflowTemplates" + - ":\010template\332A\017parent,template\022\364\001\n\023GetWork" + - "flowTemplate\0224.google.cloud.dataproc.v1." + - "GetWorkflowTemplateRequest\032*.google.clou" + - "d.dataproc.v1.WorkflowTemplate\"{\202\323\344\223\002n\0225" + - "/v1/{name=projects/*/locations/*/workflo" + - "wTemplates/*}Z5\0223/v1/{name=projects/*/re" + - "gions/*/workflowTemplates/*}\332A\004name\022\325\002\n\033" + - "InstantiateWorkflowTemplate\022<.google.clo" + - "ud.dataproc.v1.InstantiateWorkflowTempla" + - "teRequest\032\035.google.longrunning.Operation" + - "\"\330\001\202\323\344\223\002\214\001\"A/v1/{name=projects/*/locatio" + - "ns/*/workflowTemplates/*}:instantiate:\001*" + - "ZD\"?/v1/{name=projects/*/regions/*/workf" + - "lowTemplates/*}:instantiate:\001*\332A\004name\332A\017" + - "name,parameters\312A)\n\025google.protobuf.Empt" + - "y\022\020WorkflowMetadata\022\364\002\n!InstantiateInlin" + - "eWorkflowTemplate\022B.google.cloud.datapro" + - "c.v1.InstantiateInlineWorkflowTemplateRe" + - "quest\032\035.google.longrunning.Operation\"\353\001\202" + - "\323\344\223\002\246\001\"G/v1/{parent=projects/*/locations" + - "/*}/workflowTemplates:instantiateInline:" + - "\010templateZQ\"E/v1/{parent=projects/*/regi" + - "ons/*}/workflowTemplates:instantiateInli" + - "ne:\010template\332A\017parent,template\312A)\n\025googl" + - "e.protobuf.Empty\022\020WorkflowMetadata\022\246\002\n\026U" + - "pdateWorkflowTemplate\0227.google.cloud.dat" + - "aproc.v1.UpdateWorkflowTemplateRequest\032*" + - ".google.cloud.dataproc.v1.WorkflowTempla" + - "te\"\246\001\202\323\344\223\002\224\001\032>/v1/{template.name=project" + - "s/*/locations/*/workflowTemplates/*}:\010te" + - "mplateZH\032